[julia-users] Is GLSO useful?

2016-03-19 Thread Jeff Waller
It's a pretty old paper and feels interesting, but I'm surprised it's not implemented anywhere. it's called GLSO . Has anyone heard of this, has it been found not useful and discarded or something? Improved upon? Maybe it goes by another name?

[julia-users] Re: julia on ARM for a drone

2016-02-17 Thread Jeff Waller
You know it's kind of a feeling right now + 1 specific thing and + planned thing. The grand idea is. I want to imbue a drone with AI, which in general requires an implementation and a community and Julia is a good pick. Latency is a possible problem. Right now the hardware is not super fast

[julia-users] Re: julia on ARM for a drone

2016-02-15 Thread Jeff Waller
There are 2 things that appear to be direct result of this new OS/processor. On startup: WARNING: unable to determine host cpu name And also, apparently julia sets the git crt path based on the OS, but in the case of this and others like it, the OS will not be recognized. Fails: *julia>

[julia-users] Re: julia on ARM for a drone

2016-02-15 Thread Jeff Waller
On Monday, February 15, 2016 at 5:55:19 AM UTC-5, Viral Shah wrote: > > Making sure I understand correctly, were you using the distribution on > julialang.org/downloads? If you had to do a few things to get it to work, > can you file issues? I personally would love to see more such

[julia-users] Re: I think I'm obtaining the nightly ubuntu PPA incorrectly...

2016-02-07 Thread Jeff Waller
this is a downside of having a project that spans 3 travis languages; (c++, node, julia) -- currently the language is set to c++. Ironically, the c++ provided by language c++ is the wrong one on Linux (gcc 4.6 is too old). I think I copied that script back in the day, but have since modified

[julia-users] Re: I think I'm obtaining the nightly ubuntu PPA incorrectly...

2016-02-06 Thread Jeff Waller
On Saturday, February 6, 2016 at 8:12:11 AM UTC-5, Tony Kelman wrote: > > Don't think the problem is on your end. That's probably just how long it's > been since the ppa nightlies were updated successfully. Elliot has been too > busy to keep them updated regularly, and has asked elsewhere if

[julia-users] Re: julia on ARM for a drone

2016-02-06 Thread Jeff Waller
An update: It turns out that the default linux client compiled for ARM does work with a few modifications . It is indeed slow to JIT-compile, (on the order of seconds), but is fast after that. See randomMatrix.txt in the gist, for exact

[julia-users] I think I'm obtaining the nightly ubuntu PPA incorrectly...

2016-02-05 Thread Jeff Waller
For travis sudo add-apt-repository ppa:staticfloat/julianightlies I end up with one from November 1.81s$ julia -e 'versioninfo()' Julia Version 0.5.0-dev+1491 Commit 41fb1ba (2015-11-27 16:54 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Xeon(R) CPU @ 2.30GHz

[julia-users] julia on ARM for a drone

2016-02-01 Thread Jeff Waller
Does update last month and the discussion about arm nightlies mean that ARM is generally supported now? I have a specific purpose in

[julia-users] Re: Can Julia function be serialized and sent by network?

2015-08-10 Thread Jeff Waller
My question is: does Julia's serialization produce completely self-containing code that can be run on workers? In other words, is it possible to send serialized function over network to another host / Julia process and applied there without any additional information from the first

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-30 Thread Jeff Waller
Specifically I think this will not work because of the following: double ArrayMaker::ArrayMak(int iNum, float fNum) { jl_init(JULIA_INIT_DIR); jl_atexit_hook(); return sol; } } What this is doing it starting up a 2nd julia engine inside of the original julia engine,

[julia-users] Re: PyPlot; how to get rid of that annoying flashed-tk-window artifact?

2015-07-22 Thread Jeff Waller
matplotlib 1.1.1 I would recommend trying a newer Matplotlib, and on OS/X I strongly recommend using the Anaconda Python distro. Anything else is a big headache to maintain in the long run. It's ok. no need for that. I was wrong anyway it was 1.4.3 all along. I did find a way to

[julia-users] Re: PyPlot; how to get rid of that annoying flashed-tk-window artifact?

2015-07-21 Thread Jeff Waller
What OS are you on, and what Python distro? I haven't noticed this... OS/X Mavericks, Python 2.7.5 (Apple default) matplotlib 1.1.1 Julia Version 0.4.0-dev+6075 Commit 4b757af* (2015-07-19 00:53 UTC) Platform Info: System: Darwin (x86_64-apple-darwin13.4.0) CPU: Intel(R) Core(TM)

[julia-users] PyPlot; how to get rid of that annoying flashed-tk-window artifact?

2015-07-20 Thread Jeff Waller
Whenever PyPlot renders something, I'm getting a brief flashed window; I think it's a result of the backend trying to render in a window directly, but can't find a way to disable it. Running inside IJulia I have PyPlot.pygui(false) PyPlot.backend TkAgg

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-19 Thread Jeff Waller
So I built and installed Cxx and then attempted to use it with embedded Julia and was successful. The tricky part is pretty tricky especially for someone not familiar how the whole thing is laid out, I've put most of what I did in this gist https://gist.github.com/waTeim/ec622a0630f220e6b3c3

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-19 Thread Jeff Waller
Symbolic links to link which files though? Sorry if the questions I raise are already answered by the git, I just failed to understand it properly so that's why I come back with these questions now. I've added a listing of the entire directory structure

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-18 Thread Jeff Waller
On Saturday, July 18, 2015 at 5:24:33 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello again and thanks a lot for the suggestions. Thing is, I went back to the source version of Julia where Cxx is already built and runs properly, so there wasn't much for me to do, I run in terminal also

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-17 Thread Jeff Waller
Yea I think what you're seeing is that Cxx needs to use the source tree for example Make.inc only exists in the source tree while embedding assumes the installed tree. How to reconcile this the best way I'm not sure yet. I myself found Cxx interesting enough to try, but the build failed a

Re: [julia-users] Re: Embedding Julia with C++

2015-07-14 Thread Jeff Waller
-config.jl --ldlibs I actually don't have any bin folder inside my julia folder, so I can't do any of the suggested modifications. What could I do different in this case? Where is it? Use that instead. On Monday, July 13, 2015 at 7:55:10 PM UTC+2, Jeff Waller wrote

[julia-users] Re: Errors while trying to use cxx and embed Julia together

2015-07-14 Thread Jeff Waller
Some notes I think a gist might be better and then we can annotate and stuff in place. Google groups is just a mailing list and is bad for extended debugging info don't worry about it too much just a suggestion. 1) jl_value_t * ret = jl_call2(func, argument, argument2); sol =

Re: [julia-users] Re: Embedding Julia with C++

2015-07-14 Thread Jeff Waller
Your path for includes doesn't have julia/src, which is where julia.h lives. This is in part true, but is not the whole story. Yes it is true that julia.h is found in src in the source directory tree, but the file julia.h as well as julia the executable, libjulia, etc get copied into the

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Jeff Waller
This is the problem, or part of it anyway. That file lives under `julia/contrib` in a source build. Hmm this should be bundled into all 0.4, oh oh.

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Jeff Waller
Ok this is turning into kind of a debugging session, but /home/kostav/julia/contrib/julia-config.jl --cflags just run it on the command line. What's the output? What version of 0.4? Is it current as of a few days ago? In the version I'm using all is well. I will obtain/compile the latest

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Jeff Waller
CFLAGS += $(shell $/home/kostav/julia/contrib/julia-config.jl --cflags) take out the 2nd $ CFLAGS += $(shell /home/kostav/julia/contrib/julia-config.jl --cflags) what results?

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Jeff Waller
On Monday, July 13, 2015 at 11:36:34 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Ok, my current Julia version (that I installed via running the source code) is: *Version 0.4.0-dev+5841 (2015-07-07 14:58 UTC)*So, what should I do different so that -I flag gets the proper value? Could

[julia-users] Re: MongoDB and Julia

2015-07-13 Thread Jeff Waller
On Monday, July 13, 2015 at 3:27:49 AM UTC-4, Kevin Liu wrote: Any help would be greatly appreciated. I am even debating over the idea of contributing to the development of this package because I believe so much in the language and need to use MongoDB. I think this is why it's

Re: [julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Jeff Waller
On Monday, July 13, 2015 at 10:54:57 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Any ideas on how to fix the compile error: julia.h: No such file or directory #include julia.h compilation terminated.? Yea of course. This is a result of the -I flag having the wrong value. There was a

[julia-users] Re: Embedding Julia with C++

2015-07-13 Thread Jeff Waller
It's not clear to me which version you are using? Depending on the version, It is referred to in the URL you linked... I'll just cut to the chase use 0.4 and julia_config.jl as described in the doc, create a Makefile just cut-and-paste the example, and augment with your source. All but one

[julia-users] Deep Dreams via Mocha?

2015-07-10 Thread Jeff Waller
So the deep dreams setup is available and the notebook is very simple here are the relevant components that it uses from cStringIO import StringIO import numpy as np import scipy.ndimage as nd import PIL.Image #from PIL import Image from IPython.display import clear_output, Image, display from

[julia-users] ANN node-julia 1.2.0

2015-07-09 Thread Jeff Waller
A couple of new features with this version Windows support (finally) There were a couple of things preventing this. First off Julia is compiled with gcc on Windows, but node-gyp needs MSVC, that had to be overcome, the the good news was the library libjulia.dll can be used by the MIcrosoft

Re: [julia-users] calling julia functions in C++

2015-06-30 Thread Jeff Waller
On Tuesday, June 30, 2015 at 1:52:46 PM UTC-4, Tom Breloff wrote: I remember a post recently about improved performance when packing many function arguments into an immutable for function calling. Is this (jl_call1 vs jl_call) the reason? No that's just for convenience. Also, if

Re: [julia-users] readandwrite: how can I read a line as soon as it's written by the process?

2015-06-28 Thread Jeff Waller
On Saturday, June 27, 2015 at 5:03:53 PM UTC-4, ele...@gmail.com wrote: Is your od program flushing its output? Maybe its stuck in its internal buffers, not in the pipe. nah man, if it's it's od, it's not going to do that, the only thing simpler is cat; I suppose you could try cat. What

[julia-users] Re: Embedding Julia with C++

2015-06-23 Thread Jeff Waller
Embedded Julia is of particular interest to me. To answer your question, everything in Julia is available via embedded Julia. I would very much discourage use of version 0.3.2; avoid it if you can. I think that particular version has the uv.h problem which is fixed in later versions. Can you

[julia-users] Re: Backend deployment for website

2015-06-16 Thread Jeff Waller
On Tuesday, June 16, 2015 at 11:35:40 AM UTC-4, Matthew Krick wrote: I've read everything I could on deployment options, but my head is still a mess when it comes to all the choices, especially with how fast julia is moving! I have a website on a node.js server when the user inputs a list

Re: [julia-users] Re: Julia Summer of Code

2015-05-22 Thread Jeff Waller
On Thursday, May 21, 2015 at 4:55:16 PM UTC-4, Jey Kottalam wrote: Hi Jeff, they relied on a 3rd party to containerize a Pythonprogram for transmission That is due to the pecularities of Python's serialization module than anything intrinsic to creating a Spark binding. (E.g.

[julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Jeff Waller
how close is this to what you need? *[@sprintf(%02d,i) for i = 1:99]*

[julia-users] Re: Julia Summer of Code

2015-05-19 Thread Jeff Waller
Is this the part where I say Julia-Spark again? I think this is pretty doable in time. It will likely be more or less a port of PySpark https://github.com/apache/spark/tree/master/python/pyspark since Julia and Python are similar in capability. I think I counted about 6K lines (including

Re: [julia-users] Using Julia program as computation backend

2015-05-19 Thread Jeff Waller
On Monday, May 18, 2015 at 10:55:10 AM UTC-4, Roman Kravchik wrote: Thanks for the link. But it seems to be like CGI-style operation - eval julia expression and i'm not sure it's a perspective direction. Hmm, if I I'm understanding this correctly, then no, it's not CGI-like; there is no

[julia-users] ANN node-julia 1.1.0

2015-05-15 Thread Jeff Waller
This version supports 0.4.x using svec as well as previous 0.4.x and of course 0.3.x as well here's the docs http://node-julia.readme.io/ if interested. It's been a pretty long time + the svec change was breaking, so not all of the feature requests made it in to this, like the cool one

[julia-users] Re: Problem with if else in Julia

2015-05-15 Thread Jeff Waller
Well I think the problem here is that though M[:,1]' * M[:,1] has only 1 value, it's still a (1x1) matrix, and not a scalar. What happens when you change to this? a=(M[:,1]' * M[:,1])[1] related. is automatically converting a 1x1 matrix to a scalar or defining comparison between 1x1 matrices

[julia-users] Re: Spark and Julia

2015-04-04 Thread Jeff Waller
On Saturday, April 4, 2015 at 2:22:38 AM UTC-4, Viral Shah wrote: I am changing the subject of this thread from GSOC to Spark. I was just looking around and found this: https://github.com/d9w/Spark.jl

[julia-users] Re: URGENT: Google Summer of Code

2015-03-27 Thread Jeff Waller
Well with very little time lest (15 minutes?) I'd like to reiterate the idea of Julia-Spark. Simply put, the basic idea is too allow big data to flow into Julia via Spark.

[julia-users] Re: Some simple use cases for multi-threading

2015-03-15 Thread Jeff Waller
I'll like for sure the ability for Julia to support event driven tasks within the same process, in particular (of course) for web-originated requests and the originating thread never waits. Could the threading model allow auto-scale? Is it possible to automatically decompose aggregate ops from

Re: [julia-users] Intel Xeon Phi support?

2015-03-10 Thread Jeff Waller
On Tuesday, March 10, 2015 at 1:39:42 PM UTC-4, Stefan Karpinski wrote: I'm not sure what that would mean – CPUs don't ship with software. Julia will support Kinght's Landing, however, although it probably won't do so until version 0.5. On Tue, Mar 10, 2015 at 1:36 PM, Karel Zapfe

[julia-users] Re: How to embed Julia into Visual Studoi 2013?

2015-03-10 Thread Jeff Waller
On Tuesday, March 10, 2015 at 12:25:20 PM UTC-4, Yuhui ZHI wrote: Hello everyone, I have a question: how to embed Julia into VS2013? I have read this: https://github.com/JuliaLang/julia/blob/release-0.3/doc/manual/embedding.rst But I still have no idea. I am using vs2013 in the

Re: [julia-users] Intel Xeon Phi support?

2015-03-10 Thread Jeff Waller
On Tuesday, March 10, 2015 at 2:07:34 PM UTC-4, Viral Shah wrote: LLVM support for KNL is already in place. So yes, it will come quickly, but in a released version of Julia, that is certainly no earlier than 0.5. It is also quite likely that we need good multi-threading support to ensure

[julia-users] Re: Share Library and Julia

2015-02-23 Thread Jeff Waller
What can be the problem? ​ I think this: jeffw@dub1:~$ echo _Z6CP_lliPc | c++filt CP_lli(char*) jeffw@dub1:~$ echo _Z6CP_lliPh | c++filt CP_lli(unsigned char*)

[julia-users] Re: api - web scraping

2015-02-22 Thread Jeff Waller
On Saturday, February 21, 2015 at 6:49:10 AM UTC-5, pip7...@gmail.com wrote: Any web scraping library or modules for the Julia language. If so, any links - examples. Regards Hey! I wonder if you could use noodle http://noodlejs.com/ and/or cheerio https://github.com/cheeriojs/cheerio

[julia-users] Re: Grouping - Dataframes

2015-02-22 Thread Jeff Waller
On Sunday, February 22, 2015 at 4:07:48 PM UTC-5, Philip Sivyer wrote: Hi I get :Col1 anonymous function)) when I try *(df,:Col1,x-sum(x[:Col2]))* Any ideas. Will take a look at the link in a minute Regards you forgot the by

[julia-users] Re: Grouping - Dataframes

2015-02-22 Thread Jeff Waller
if the DataFrame if represented by the variable df, how about *by(df,:Col1,x-sum(x[:Col2]))*

Re: [julia-users] what path to set in jl_init

2015-01-31 Thread Jeff Waller
Instead of jl_init, I use the following jl_init_with_image((char*)install_directory.c_str(),(char*)sys.ji); where install_directory is the directory of libjulia (e.g. /usr/local/julia/lib/julia), but whatever corresponds to how you link using -Wl,rpath

Re: [julia-users] Re: ANN node-julia 1.0.0

2015-01-18 Thread Jeff Waller
On Sunday, January 18, 2015 at 7:11:01 PM UTC-5, Eric Forgy wrote: I am probably confused, but in the link, they are talking about running Node in Nashorn and it even points to a list of Node modules they are currently able to run. https://avatar-js.java.net

[julia-users] Re: ANN node-julia 1.0.0

2015-01-18 Thread Jeff Waller
On Sunday, January 18, 2015 at 5:47:51 AM UTC-5, Eric Forgy wrote: Hi Jeff, I really like this idea and look forward to giving node-julia (and Julia for that matter) a spin. As I explain here https://groups.google.com/forum/#!topic/julia-users/umHiBwVLQ4g, I'm building a web app with

Re: [julia-users] ANN node-julia 1.0.0

2015-01-17 Thread Jeff Waller
On Saturday, January 17, 2015 at 10:53:36 AM UTC-5, Test This wrote: Some basic questions: We know that Node is blocking on cpu intensive tasks. If I use the async option, are the calculations run separately. That is does it allow the mode process to continue with its event loop. The

Re: [julia-users] ANN node-julia 1.0.0

2015-01-17 Thread Jeff Waller
On Saturday, January 17, 2015 at 10:02:21 PM UTC-5, Test This wrote: This is awesome. That would provide an easy way to scale a web-application at least to some extent by outsourcing the CPU intensive calculation out of Node. And you get access to BLAS, Mocha (GPU even), JuMP, Optim,

Re: [julia-users] ANN node-julia 1.0.0

2015-01-17 Thread Jeff Waller
On Saturday, January 17, 2015 at 10:59:13 PM UTC-5, Tony Kelman wrote: Might be interesting to compare the performance here vs https://github.com/amd/furious.js Ok I'm up for this, it's a lot of stuff, hope the cut-and-paste install method works. The unit test page

Re: [julia-users] ANN node-julia 1.0.0

2015-01-16 Thread Jeff Waller
On Friday, January 16, 2015 at 4:26:30 PM UTC-5, Stefan Karpinski wrote: This is super cool. I wonder if it wouldn't be possible allow Julia to operate on JavaScript typed arrays in-place? Hmm, maybe! With some caveats first the good news. Here's where the Javascript array buffer is

[julia-users] Re: FE solver in Julia fast and faster

2015-01-10 Thread Jeff Waller
Hmm, not knowing a lot about this, just the keyword I have the question. Is it possible to make it 3x faster yet and/or what hardware is that benchmark obtained from?

Re: [julia-users] Re: [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-06 Thread Jeff Waller
Hmm Atom eh? I read that you're communicating via TCP, but I wonder If there is some sort of abstraction possible, and it need not be process to process. Have not thought it through, but feel something is there.

Re: [julia-users] Re: [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-06 Thread Jeff Waller
Oh man, I think there might be a way! Inspired by this because you know Atom is essentially node + chromium, I tried git clone node-julia and then bizarro% cd node-julia/ bizarro% HOME=~/.atom-shell-gyp node-gyp rebuild --target=0.19.5 --arch=x64

Re: [julia-users] Re: [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-06 Thread Jeff Waller
I'd be interested in getting a Julia engine in Atom, but I would not be so interested in Julia for visualization when, unless I'm mistaken, at that point you can use d3 directly. That would be cool if true. Is it? Can we get the Julia.eval to return a javascript array? Getting Julia and

Re: [julia-users] Re: [ANN] Blink.jl – Web-based GUIs for Julia

2015-01-06 Thread Jeff Waller
On Tuesday, January 6, 2015 8:24:23 PM UTC-5, Mike Innes wrote: That's very cool. You should definitely package this up if you can. The JS-on-top approach might actually make it easier to package up a Julia app, at least in the short term. (Also, if you don't want to call julia.eval

[julia-users] Re: Why does the following give an error: p = 1; 2p+1 ??

2015-01-05 Thread Jeff Waller
Perhaps this is a good reason to change behaviour such that e is no longer a constant: it has always seemed bit odd to use a valuable latin singleton in this way. We could use a unicode script e (U+212F) instead, as suggested by wikipedia:

Re: [julia-users] Re: Why does the following give an error: p = 1; 2p+1 ??

2015-01-05 Thread Jeff Waller
The cause for this thread is mainly a lexical analyzer bug for hex notation. Except for the error in #9617, I'm fine with the current behavior and syntax even with the semi e-ambiguity if you want the scientific notation literal, use no spaces. This is only ambiguous because Julia permits a

[julia-users] Re: Why does the following give an error: p = 1; 2p+1 ??

2015-01-04 Thread Jeff Waller
Also in 0.4.x this *julia * *2p+* *(type-error double number #f)* *unexpected error: #0 (read-number #io stream #f #f)**ERROR: syntax: malformed expression*

[julia-users] Re: checking a version number?

2014-12-31 Thread Jeff Waller
On Wednesday, December 31, 2014 7:03:34 AM UTC-5, Andreas Lobinger wrote: What is the recommended way to get a julia major/minor version number (i need to check v.0.4)? Just parse Base.VERSION? Within Julia: *julia * *VERSION**v0.4.0-dev+2340* *julia * *VERSION.minor**4* Also,

[julia-users] Re: Declaring variables in julia

2014-12-31 Thread Jeff Waller
On Wednesday, December 31, 2014 7:57:25 AM UTC-5, sadhanapriya...@vit.ac.in wrote: hi Please let me know how to declare float, double, long int, unsigned long and unsigned char to some variable in julia( Please mention syntax) I've found the following works for me As others have

[julia-users] Re: Community Support for Julia on Travis CI

2014-12-18 Thread Jeff Waller
Perhaps related: Warning: error initializing module GMP: ErrorException(The dynamically loaded GMP library (version 5.1.3 with __gmp_bits_per_limb == 64) does not correspond to the compile time version (version 6.0.0 with __gmp_bits_per_limb == 64). Please rebuild Julia.) I have not

Re: [julia-users] Re: How can I sort Dict efficiently?

2014-12-08 Thread Jeff Waller
This can be done in O(N). Avoid sorting as it will be O(NlogN) Here's one of many Q on how http://stackoverflow.com/questions/7272534/finding-the-first-n-largest-elements-in-an-array

Re: [julia-users] Re: What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-05 Thread Jeff Waller
On Friday, December 5, 2014 5:47:15 AM UTC-5, Páll Haraldsson wrote: On Friday, December 5, 2014 1:11:12 AM UTC, ivo welch wrote: there are no good web development language environments (server, browser) IMHO, and julia will not fit this bill, either. You are forgetting PHP :) All

Re: [julia-users] Re: What is Julia bad for - currently? Practically (or theoretically) - any other language more powerful?

2014-12-05 Thread Jeff Waller
On Friday, December 5, 2014 12:43:20 PM UTC-5, Steven G. Johnson wrote: On Friday, December 5, 2014 9:57:42 AM UTC-5, Sebastian Nowozin wrote: I find Julia great, but for the technical computing goal, my biggest grime with Julia (0.3.3 and 0.4.0-dev) at the moment is the lack of simple

Re: [julia-users] Re: Why doesn't @sprintf evaluate its format string?

2014-12-03 Thread Jeff Waller
I think this could be done by instead of expanding into specific (optimized) code dedicated to each argument, it instead would expand into a tree of if statements connected to a bunch of Expr(:call,:typeof,more args) and ? : (whatever the parse tree is for that). Essentially a function call

Re: [julia-users] Re: Why doesn't @sprintf evaluate its format string?

2014-12-03 Thread Jeff Waller
Unfortunately the number of types or arguments one can encounter is unbounded. Are you talking about the format specifiers or the arguments? Yea, the format specifiers, poor choice of words, my bad.

[julia-users] Re: Lua Jit out performed Julia for my stock prediction engine use case

2014-11-30 Thread Jeff Waller
Pepsi challenge time?! Do you have a link to your data?

Re: [julia-users] Different type columns in Matrix

2014-11-29 Thread Jeff Waller
I'd add one more. Or two arrays or a composite with 2 arrays. After all whatever is supposed to take advantage of everything being in one array is going to have some subtle error when the types change out from under it moving from one column to the next. Or you will use Any and it will be

Re: [julia-users] Re: Text editor for coding Julia: Atom vs Light Table vs Bracket

2014-11-29 Thread Jeff Waller
const r_sun = 695500.0KiloMeter; export r_sun const r_jupiter = 69173.0KiloMeter; export r_jupiter const r_saturn = 57316.0KiloMeter; export r_saturn I have a semi-related question. Why this way? Why not read these values from a database at startup or at

Re: [julia-users] Different type columns in Matrix

2014-11-29 Thread Jeff Waller
This 3 column are neccessary for later analysis in my work, first and second column index and 3rd values. I have to use three columns same time. Ok right so, whatever the exact expression is, it's going to have the form f(A[:,1:2]) where f does some indexing function followed sometime

[julia-users] Re: julia vs cython benchmark

2014-11-26 Thread Jeff Waller
There is one thing is see as a potential. The outer loop *i* is incrementing the first index, and Julia stores things in column-major order, so any speed gain from CPU cache is potentially lost since you using elements that are not contiguous in the inner loops.

Re: [julia-users] Security problem with unitialized memory

2014-11-25 Thread Jeff Waller
On Monday, November 24, 2014 10:54:36 PM UTC-5, Simon Kornblith wrote: In general, arrays cannot be assumed to be 16-byte aligned because it's always possible to create one that isn't using pointer_to_array. However, from Intel's AVX introduction

Re: [julia-users] calling libraries of c++ or fortran90 code in Julia

2014-11-21 Thread Jeff Waller
*bizarro% echo __ZZL7initGPUP9resamplerPKjS2_jE12__FUNCTION__01 |c++filt**initGPU(resampler*, unsigned int const*, unsigned int const*, unsigned int)::__FUNCTION__* I'm not entirely sure what that even means (virtual table?), but you know what? I bet you compiled this with clang because

Re: [julia-users] calling libraries of c++ or fortran90 code in Julia

2014-11-21 Thread Jeff Waller
Oh yea. I cut-n-pasted the wrong line, well I'll just fix that and *echo __ZL7initGPUP9resamplerPKjS2_j|c++filt**initGPU(resampler*, unsigned int const*, unsigned int const*, unsigned int)* different symbol same comment. but if it has to be this way, hmm FUNC LOCAL DEFAULT --- that

Re: [julia-users] SymTridiagonal

2014-11-17 Thread Jeff Waller
As a user, ones(n,1) and ones(n) both return me a vector, and it is confusing to find that ones(n,1) != ones(n) I was where you are now a few months ago. It's a learning cure thing, I think, because now I don't make that mistake anymore or I'm like, oh yea, of course and change it 2

Re: [julia-users] Re: @DSL Domain code

2014-11-16 Thread Jeff Waller
Its just something inside me that rebels against having code inside strings. Yea, I don't like it either. If feels half-done. New token? @@

Re: [julia-users] Intel Xeon Phi support?

2014-11-07 Thread Jeff Waller
On Thursday, November 6, 2014 1:14:51 PM UTC-5, Viral Shah wrote: We had ordered a couple, but they are really difficult to get working. There is a fair bit of compiler work that is required to get it to work - so it is safe to assume that this is not coming anytime soon. However, the

[julia-users] Re: Failure of installing Julia 0.4 (latest master) on Mac OS X 10.10

2014-10-29 Thread Jeff Waller
Also having problems after a fetch... lots of link errors followed by _ztrsen_, referenced from _zneupd_ in zneupd.o _zunm2r_, referenced from: _zneupd_ in zneupd.o ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status make[4]: *** [libarpack.la]

[julia-users] Re: Multi-OS (Linux + Mac) testing in Travis

2014-10-10 Thread Jeff Waller
Wow, this is exactly what I need. As I just got Travis functional last night for the first time @ 3 (you should see the crazy binding.gyp file), I feel the universe is reaching out to me. Thanks, Tony, thanks, universe.

Re: [julia-users] Re: Article on `@simd`

2014-09-23 Thread Jeff Waller
Could this theoretical thing be approached incrementally? Meaning here's a project and he's some intermediate results and now it's 1.5x faster, and now he's something better and it's 2.7 all the while the goal is apparent but difficult. Or would it kind of be all works or doesn't?

[julia-users] Re: How to convert a cell type to array type?

2014-09-21 Thread Jeff Waller
perhaps this? *cell2mat(A)=hvcat(size(A),reshape(A,*(size(A)...))...)*

[julia-users] ANN: node-julia

2014-09-18 Thread Jeff Waller
It's usable enough now, so it's time to announce this. node-julia https://github.com/waTeim/node-julia is a portal from node.js to Julia. It's purpose is partly to allow the node-HTTP-javascript guys access to the excellence that is Julia, and visa versa the Julia guys access to the HTTP

Re: [julia-users] More with embedding with dynamic libraries (Linux)

2014-09-17 Thread Jeff Waller
Oh I knew I could count on you guys. Thanks for the reply, of course my natural response is. What is RTLD_GLOBAL? Don't worry too much about that, I can probably look it up. I found a not desirable workaround by setting LD_PRELOAD to load libjulia.so first, but that causes a 2nd problem see

[julia-users] More with embedding with dynamic libraries (Linux)

2014-09-15 Thread Jeff Waller
Hi all, Remember this problem with dlopen and openblas https://groups.google.com/forum/#!topic/julia-users/A8HwlmldVTM? That problem was resolved by modifying how embedded Julia loads (perhaps only on OS/X).Well now there is a similar problem on Linux. Same software. The exact problem is

Re: [julia-users] How come (x, y) isn't legal syntax?

2014-09-10 Thread Jeff Waller
I would add that ()(1,2) works; I'm imagining that it changes the context and forces the parser to use the one legal interpretation.

[julia-users] Re: self dot product of all columns in a matrix: Julia vs. Octave

2014-09-08 Thread Jeff Waller
On Monday, September 8, 2014 7:37:52 AM UTC-4, Mohammed El-Beltagy wrote: Octave seems to be doing a pretty good job for this type of calculation. If you want to squeeze a bit more performance out of Julia, you can try to use explicit loops (devectorize as in

[julia-users] Re: self dot product of all columns in a matrix: Julia vs. Octave

2014-09-08 Thread Jeff Waller
On Monday, September 8, 2014 12:37:16 PM UTC-4, Tony Kelman wrote: Calm down. It's very easy to match Octave here, by writing the standard library in C. Julia chose not to go that route. Of course everyone would like the concise vectorized syntax to be as fast as the for-loop syntax. If

Re: [julia-users] Re: self dot product of all columns in a matrix: Julia vs. Octave

2014-09-08 Thread Jeff Waller
I feel that x^2 must among the things that are convenient and fast; it's one of those language elements that people simply depend on. If it's inconvenient, then people are going to experience that over and over. If it's not fast enough people are going experience slowness over and over.

Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Jeff Waller
Likewise no problems compiling using an older version of clang (Xcode 5.0.2), but I do see that flag bizarro% clang --version Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix It looks like it's in there. There is a test to

[julia-users] Unable to dlopen openblas and dSFMT by default when using embedded Julia

2014-08-12 Thread Jeff Waller
This is on OS/X I do have a workaround, but I'd like to get to the bottom of it. I don't see anywhere in the code where either of these 2 libraries are loaded explicitly --- maybe it's in loading sys.ji? My workaround can be to set an env variable, but it would be better to understand and

Re: [julia-users] Unable to dlopen openblas and dSFMT by default when using embedded Julia

2014-08-12 Thread Jeff Waller
. -E Likewise as above, I have no control over that. On Tue, Aug 12, 2014 at 3:12 AM, Jeff Waller trut...@gmail.com javascript: wrote: This is on OS/X I do have a workaround, but I'd like to get to the bottom of it. I don't see anywhere in the code where either of these 2 libraries

Re: [julia-users] Unable to dlopen openblas and dSFMT by default when using embedded Julia

2014-08-12 Thread Jeff Waller
On Tuesday, August 12, 2014 2:36:03 PM UTC-4, Elliot Saba wrote: Alright, I worked up a little proof-of-concept demo here https://github.com/staticfloat/dltest/tree/master, but the long and the short of it is that you should be able to alter the rpath of YOUR library to include whatever

Re: [julia-users] Unable to dlopen openblas and dSFMT by default when using embedded Julia

2014-08-12 Thread Jeff Waller
In fact this does indeed just work. I did need to specify rpath, but didn't need to do anything else, this one value of rpath during the link step was enough to resolve both libjulia and libopenblas, etc. e.g. -Wl,-rpath,/usr/local/julia/lib/julia, Also. *Version 0.4.0-dev+92

  1   2   >