Re: [julia-users] addpath from Matlab?

2014-03-10 Thread Ethan Anderes
Thanks Kevin. I hadn't tried require since I wanted the ability to chance the scripts and re-include them. However, it appears require/reload will accomplish the same thing (although I guess I will need to change all my requires to reloads if I want it done without exiting the repl). Cheers, E

[julia-users] Re: inserting javascript driven graphs in ijulia

2014-03-10 Thread Jon Norberg
I Will check That out, thanks

Re: [julia-users] addpath from Matlab?

2014-03-10 Thread Kevin Squire
If you use require("script.jl") instead of include, it will search the LOAD_PATH. Cheers, Kevin On Mon, Mar 10, 2014 at 9:49 PM, Ethan Anderes wrote: > Hi, > > Is there an addpath equivalent from Matlab? Basically, I have a directory > that contains a bunch of scripts and modules. I've been

[julia-users] addpath from Matlab?

2014-03-10 Thread Ethan Anderes
Hi, Is there an addpath equivalent from Matlab? Basically, I have a directory that contains a bunch of scripts and modules. I've been using include to run the scripts but don't want to add the full path to each script. For example, dir is a directory which contains Mod.jl and script.jl. The las

[julia-users] GSoC: Dynamic distributed execution for data parallel tasks in Julia

2014-03-10 Thread Wenlin Hu
Dear all, I am a PhD candidate of Stony Brook University, USA. My major is Applied Mathematics. I am very excited about the opportunity to contribute to Julia community from now on. I have more than five-year research experience on mathematical modeling and large-scale numerical simulation (on

[julia-users] Re: readchomp, readlines & friends on Windows

2014-03-10 Thread Peter Simon
Thank-you to Tony for straightening me out (off-line). As clearly stated in the help, readchomp() is *supposed* to return a single string, and only strips newlines from the very end. What I wanted was lines = open("test.txt","r") do fid map(chomp,readlines(fid)) end which works fine. S

Re: [julia-users] readchomp, readlines & friends on Windows

2014-03-10 Thread Peter Simon
To be perfectly honest, I'm not in the same league in terms of system programming skills as you core Julia developers. I suspect that any solution I come up with will not be sufficiently efficient or elegant. However, I will play around with this, and if I come up with a solution I think is re

[julia-users] Re: readchomp, readlines & friends on Windows

2014-03-10 Thread Tony Kelman
+1 for more "doing-the-right-thing"-ness wrt annoying carriage returns. Semi-related: in test/spawn.jl, the tests on lines 17 and 23 fail when run in a Windows command prompt but succeed from an MSYS/Cygwin terminal because they pipe to whichever sort.exe is found in PATH, and lines are termina

Re: [julia-users] The multi-dispach is dispaching me

2014-03-10 Thread J Luis
Still doesn't work but getting closer julia> using GMT; API=create_session(); dim=uint64([2,9]); julia> V = create_data (API, 5, 1, 0) Ptr{Void} @0x julia> V = create_data (API, 5, 1, 0, dim) ERROR: no method create_data(Ptr{None}, Int64, Int64, Int64, Array{Uint64,1 }) so its t

Re: [julia-users] The multi-dispach is dispaching me

2014-03-10 Thread Leah Hanson
I think Jacob was suggesting something like this: function create_data(API::Ptr{None}, family=5, geometry=1, mode=0, par::Ptr=C_NULL, wesn::Ptr=C_NULL, inc::Ptr=C_NULL, reg=0, pad=2, data::Ptr{None}=C_NULL) Have you tried that? (The Ptr types are loosened by removing the type parameter).

Re: [julia-users] reducing memory allocations during line-oriented text processing

2014-03-10 Thread Keith Campbell
> > Looks like ccall to :jl_substrtod might be adaptable for memory efficient > processing if the example below can be generalized. > cheers, > Keith > > > julia> function str_ccall(N) > mystr = ascii("1.1,2.2") > ax=Array(Float64,1) > sx=0 > ex=2 >

Re: [julia-users] The multi-dispach is dispaching me

2014-03-10 Thread J Luis
Thanks, but if I try without default values function create_data(API::Ptr{None}, family, geometry, mode, par::Ptr{ Culonglong}, wesn::Ptr{Cdouble}, inc::Ptr{Cdouble}, reg, pad, data::Ptr{None}) I still get the same error, and note that the Culonglong was not using the C_NULL default valu

Re: [julia-users] readchomp, readlines & friends on Windows

2014-03-10 Thread Kevin Squire
If you have time, why don't you give it a go at fixing this and submitting a pull request? Kevin On Monday, March 10, 2014, Peter Simon wrote: > Just tried to grab the lines in a text file on Windows using Julia Version > 0.3.0-prerelease+1570 with the following code: > > lines = open("test.cut

Re: [julia-users] The multi-dispach is dispaching me

2014-03-10 Thread Jacob Quinn
Not sure, but my guess would be that C_NULL is not being accepted as a Ptr{Culonglong} or Ptr{Cdouble} since it's type is Ptr{Void} (or Ptr{None}). You can either remove those type annotations or just use Ptr as the type annotation to test this theory. -Jacob On Mon, Mar 10, 2014 at 8:20 PM, J L

Re: [julia-users] Printing to console the instantiated objects and their type

2014-03-10 Thread Matthew Crews
Oh, thank you! My goodness I feel like an idiot. Thanks for answering the newbie question. -Matthew On Monday, March 10, 2014 5:21:41 PM UTC-7, Jacob Quinn wrote: > > whos() will get you started at least. > > -Jacob > > > On Mon, Mar 10, 2014 at 8:18 PM, Matthew Crews > > > wrote: > >> I've be

Re: [julia-users] Printing to console the instantiated objects and their type

2014-03-10 Thread Jacob Quinn
whos() will get you started at least. -Jacob On Mon, Mar 10, 2014 at 8:18 PM, Matthew Crews wrote: > I've been watching Julia since the Channel 9 video at Lang.NEXT and I've > been wanting to jump to develop my algorithms in it for some time but one > thing that holds me back it being able to q

[julia-users] The multi-dispach is dispaching me

2014-03-10 Thread J Luis
I have spend some hours around this but I'm not getting nowhere. The following C function has this signature void *GMT_Create_Data (void *API, unsigned int family, unsigned int geometry , unsigned int mode, uint64_t par[], double *wesn, double *inc,

[julia-users] readchomp, readlines & friends on Windows

2014-03-10 Thread Peter Simon
Just tried to grab the lines in a text file on Windows using Julia Version 0.3.0-prerelease+1570 with the following code: lines = open("test.cut","r") do fid readchomp(fid) end lines came back to be a single string with embeded "\r\n" characters. I had expected to get an array of strings wi

[julia-users] Printing to console the instantiated objects and their type

2014-03-10 Thread Matthew Crews
I've been watching Julia since the Channel 9 video at Lang.NEXT and I've been wanting to jump to develop my algorithms in it for some time but one thing that holds me back it being able to quickly review what objects I have instantiated and their types, something like the MATLAB workspace brows

Re: [julia-users] catch syntax errors in eval(Expr)

2014-03-10 Thread Laszlo Hars
It looks like I will not be able to use this REPL until the TTY bug gets fixed in Julia. Pity... In the mean time I tried to improve the syntax error catching task. (I was wrong with the assignment eating up part of the error: the code captured parts of the string, and upon return we saw only t

[julia-users] Re: Multidims array

2014-03-10 Thread Renoir
Ah, ok... thank you all. Regards. Il giorno lunedì 10 marzo 2014 23:52:49 UTC+1, Daniel H ha scritto: > > by the way, your b is 2 dimensional > it's 3x3 > > On Monday, March 10, 2014 3:52:05 PM UTC-7, Daniel H wrote: >> >> b = [1 2 3; 3 4 5; 6 7 8]; >> >> ndim_b = length(size(b)) >> >> On Monday,

[julia-users] Re: Multidims array

2014-03-10 Thread Daniel H
by the way, your b is 2 dimensional it's 3x3 On Monday, March 10, 2014 3:52:05 PM UTC-7, Daniel H wrote: > > b = [1 2 3; 3 4 5; 6 7 8]; > > ndim_b = length(size(b)) > > On Monday, March 10, 2014 3:45:58 PM UTC-7, Renoir wrote: >> >> What sintax have i to use to get an-dim array? >> >> This code >>

[julia-users] Re: Multidims array

2014-03-10 Thread Daniel H
b = [1 2 3; 3 4 5; 6 7 8]; ndim_b = length(size(b)) On Monday, March 10, 2014 3:45:58 PM UTC-7, Renoir wrote: > > What sintax have i to use to get an-dim array? > > This code > > a = [1 2 3; 4 5 6] > b = [1 2 3; 3 4 5; 6 7 8] > println(ndims(a)) > println(ndims(b)) > > outputs > 2 > 2 > > i would

[julia-users] Re: Multidims array

2014-03-10 Thread andrew cooke
you're confusing size in one dimension with the number of dimensions? julia> size([1 2 3; 3 4 5]) (2,3) On Monday, 10 March 2014 19:45:58 UTC-3, Renoir wrote: > > What sintax have i to use to get an-dim array? > > This code > > a = [1 2 3; 4 5 6] > b = [1 2 3; 3 4 5; 6 7 8] > println(ndims(a))

[julia-users] Multidims array

2014-03-10 Thread Renoir
What sintax have i to use to get an-dim array? This code a = [1 2 3; 4 5 6] b = [1 2 3; 3 4 5; 6 7 8] println(ndims(a)) println(ndims(b)) outputs 2 2 i would have expected 2 3 Obviously i misunderstand something Regards.

Re: [julia-users] catch syntax errors in eval(Expr)

2014-03-10 Thread Jameson Nash
> `julia> write(STDIN, "\njulia> ")` this is sometimes valid, but was really just a typo from coding at 4am. generally it's sufficient to just use orig_stdout > Where can I find the differences between entering commands into the Julia console and writing them in Julia programs? I put this code in

[julia-users] Troubles saving/loading data (HDF5 / JLD)

2014-03-10 Thread Zachary Roth
I'm having some trouble loading saved data, and I haven't had any luck in looking for solutions online. I've reduced the code to as short of an example as I could: using HDF5, JLD type Test values::Vector{Integer} end x = Test([]) @save "test.jld" x @load "test.jld" x When I run the abov

Re: [julia-users] How to check whether a values is nothing using the Julia C API?

2014-03-10 Thread Kenta Sato
Thank you for your correction. So, the python/ directory in IJulia project is a residue of the historical process, and pyjulia (or other binding between Python and Julia) will enable %julia magic in IPython cells with a little effort. At a glance, IHaskell (https://github.com/gibiansky/IHaskell)

[julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Daniel H
Yup filed it. https://github.com/JuliaLang/julia/issues/6103

Re: [julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Stefan Karpinski
https://github.com/JuliaLang/julia/issues/new On Mon, Mar 10, 2014 at 5:14 PM, Daniel H wrote: > Ya it is really weird that gc() doesn't trigger automatically. > Where would be the best place to file such issue? >

[julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Daniel H
Ya it is really weird that gc() doesn't trigger automatically. Where would be the best place to file such issue?

Re: [julia-users] reducing memory allocations during line-oriented text processing

2014-03-10 Thread Stefan Karpinski
Jeff and I were just discussing a plan to massively reduce the overhead for strings and eliminate substrings. It's a bit early to get into much detail, but it would hopefully help with a lot of string-related problems that are pretty inefficient right now. Not very helpful at the moment, unfortunat

Re: [julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Tim Holy
Hmm, looking at your example more carefully, that is weird---you shouldn't need an incremental GC for that, because gc should be triggered at the next allocation. I'm getting the same thing on Linux. Want to file an issue? --Tim On Monday, March 10, 2014 01:15:44 PM Daniel H wrote: > To me, it

Re: [julia-users] reducing memory allocations during line-oriented text processing

2014-03-10 Thread John Myles White
My (not very educated) guess is that each SubString object gets its own memory allocated. In the past, I've dealt with these problems by using raw-byte buffers and working with those, since you can keep reusing a single buffer for every line and avoid all memory allocation. I'm not clear what c

Re: [julia-users] reducing memory allocations during line-oriented text processing

2014-03-10 Thread Tim Holy
Have you tried the profiler, to see where the allocations are happening? ProfileView.jl makes it relatively simple, because it highlights in red lines that trigger garbage collection. But be sure to read the "Import points" section at the end of the README. --Tim On Monday, March 10, 2014 01:3

[julia-users] reducing memory allocations during line-oriented text processing

2014-03-10 Thread Keith Campbell
Hi all, I'm trying to minimize memory allocation while doing line-oriented processing on a fairly large set of text files. SubString and pre-allocated outputs have helped, but I'm still getting memory allocations proportional to the size of the input set and looking for new ideas. The to

[julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Daniel H
To me, it looks like the gc didn't kick off automatically because current gc is expensive or maybe it's the OS or my personal settings that prevent gc to trigger itself. Can anyone try it on their computer and see if gc() trigger automatically? I guess, for now, I would call gc() manually.

Re: [julia-users] Re: Problems building GSL for RandomMatrices

2014-03-10 Thread Jiahao Chen
I haven't maintained either GSL or RandomMatrices in awhile and it's quite likely that something is broken. I'll have a look later today. Thanks, Jiahao Chen Staff Research Scientist MIT Computer Science and Artificial Intelligence Laboratory On Mon, Mar 10, 2014 at 3:45 PM, Kieron Drake wrote:

Re: [julia-users] Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Tim Holy
This actually touches on a "deep" issue, one that has a lot of potential to positively impact the performance of functions that allocate memory. But a good incremental/generational GC is a tricky thing to get right. Fortunately, a brave and capable soul has already submitted a very exciting pull

[julia-users] Re: Packing and unpacking parameters

2014-03-10 Thread James Porter
I've struggled with this exact problem in python in the past (e.g. https://stackoverflow.com/questions/16182898/unpacking-parameters-for-a-simulation). It's exacerbated by the fact that interfaces to solvers, optimizers, etc. often require the parameters be passed in as a vector, so using dicti

[julia-users] Re: GSOC- 2014 Computer Visions using OpenCV

2014-03-10 Thread Siddha Ganju
Thank you for your warm welcome Isaiah. Also thank you Tim for making it much easier for me to understand the basic concept. I have a fair idea now. I am looking into the links posted and will keep regular updates coming here.

[julia-users] Re: Problems building GSL for RandomMatrices

2014-03-10 Thread Kieron Drake
I trimmed my JULIA_HOME folder name length to avoid the overall 255 windows name limit. That got me further... But, now I get complaints about failing to satisfy dependency libgsl: =[ ERROR: GSL ]= Provider PackageManager failed t

Re: [julia-users] GSOC- 2014 Computer Visions using OpenCV

2014-03-10 Thread Tim Holy
One way to think about the OpenCV project is as a way of getting a lot more image processing algorithms than are currently present in the native-Julia Images.jl package. Consequently, if you're looking specifically for a bug report, there are a couple requesting additional functionality in Image

[julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Daniel H
> > I'm using Mac OS X 10.8.5. Should gc work properly on this OS? > I don't want to manually call gc() since I will write functions later and would like gc to run automatically. > >

Re: [julia-users] Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Stefan Karpinski
What OS are you on? GC should get triggered before you run out but some OSes have really poor behavior in this regard. > On Mar 10, 2014, at 3:15 PM, Daniel H wrote: > > Hi all, > > I find that Julia's GC doesn't collect garbage regularly, so the computer > might run out of memory and starts

[julia-users] Re: Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Ivar Nesje
You can manually call `gc()` when you think it is time to do some cleaning. kl. 20:15:58 UTC+1 mandag 10. mars 2014 skrev Daniel H følgende: > > Hi all, > > I find that Julia's GC doesn't collect garbage regularly, so the computer > might run out of memory and starts swapping. > > Here's what I d

[julia-users] Re: CCall for one function - Error: type: anonymous ...

2014-03-10 Thread Patrick Foley
Yes! Both of those solutions worked! Thanks! - Patrick On Monday, March 10, 2014 3:23:55 PM UTC-4, Ivar Nesje wrote: > > It seems to me like the error message is correct. The first argument to > ccall must be constant, and it looks like you have a variable called `path` > in your ccall. > > C

Re: [julia-users] Re: CCall for one function - Error: type: anonymous ...

2014-03-10 Thread Stefan Karpinski
The first argument to ccall must be (:f, :libfoo) where the second argument is a literal string or symbol. > On Mar 10, 2014, at 3:10 PM, Patrick Foley > wrote: > > I have changed the function to now be > "extern double bessela1(double x) { " > > Everything still compiles nicely, but I get t

[julia-users] Re: CCall for one function - Error: type: anonymous ...

2014-03-10 Thread Ivar Nesje
It seems to me like the error message is correct. The first argument to ccall must be constant, and it looks like you have a variable called `path` in your ccall. Can you try to declare path as const, or just put the library name/path as a string/symbol in the ccall expression. Ivar kl. 20:1

[julia-users] Garbage Collection in Julia vs MATLAB

2014-03-10 Thread Daniel H
Hi all, I find that Julia's GC doesn't collect garbage regularly, so the computer might run out of memory and starts swapping. Here's what I did A = B = C = # so now there's only 100 MB free on the memory C = 0 # still 100MB free Julia not cleaning up Memory. MATLAB would free the

[julia-users] Re: CCall for one function - Error: type: anonymous ...

2014-03-10 Thread Patrick Foley
I have changed the function to now be "extern double bessela1(double x) { " Everything still compiles nicely, but I get the same error. - Patrick On Monday, March 10, 2014 2:45:12 PM UTC-4, Patrick Foley wrote: > > Hi All, > > I wrote some C code to compute a ratio of bessel functions, and a

[julia-users] CCall for one function - Error: type: anonymous ...

2014-03-10 Thread Patrick Foley
Hi All, I wrote some C code to compute a ratio of bessel functions, and am now trying to access it with Julia. I have compiled it into a shared library with "gcc -std=c99 -fPIC -shared -lm bessela1.c -o bessela1.so". This compiles without any errors or warnings, and the code works. I'm t

Re: [julia-users] catch syntax errors in eval(Expr)

2014-03-10 Thread Laszlo Hars
Jameson, Thanks, for the code sample. I tried it, but nothing visible happens. As far as I can tell, the program already exits at the first line of the infinite loop [the command write(STDIN, "\njulia> ")], with some error message, which I cannot see because of the redirected STDERR. Probably i

[julia-users] Re: the state of julia webstack

2014-03-10 Thread Felix
Great to know julia web stack is moving forward, more hacking then.

[julia-users] Re: the state of julia webstack

2014-03-10 Thread Felix
Great to know julia web stack is moving forward, more hacking then.

[julia-users] Re: Problems building GSL for RandomMatrices

2014-03-10 Thread Kieron Drake
BTW -- I note that the required filename "repodata%2f4a21ea25c5c6827148dc5358d0dbbcba7aa71e31a523e141374784ff2a81251a-primary.xml" appears to be too long for Windows... Is that the issue? - kieron

Re: [julia-users] How to check whether a values is nothing using the Julia C API?

2014-03-10 Thread Steven G. Johnson
On Sunday, March 9, 2014 10:20:23 PM UTC-4, Kenta Sato wrote: > > I know that pyjulia exists, but I didn't try it. > The core idea of pyjulia seems to be incorporated into IJulia, but they > does not share the source code. > I'm going to investigate the functionality of PyCall.jl. > pyjulia and

[julia-users] Problems building GSL for RandomMatrices

2014-03-10 Thread Kieron Drake
I was trying to use RandomMatrices... I had problems with GSL (apparently). When I tried Pkg.build("GSL") I got the following Had tried Pkg.update(0 with no effect. Have included versioninfo() in the below...Any clues? - kieron julia> Pkg.build("GSL") INFO: Building GSL INFO: Updating Win

Re: [julia-users] GSOC- 2014 Computer Visions using OpenCV

2014-03-10 Thread Isaiah Norton
Hi Siddha, Welcome to Julia. You are welcome to propose other approaches, but the approach mentioned on the GSoC page is to adapt the existing Python generators roughly as follows: 1. emit pure C wrappers (the current generator uses the CPython API) 2. emit Julia code for function calls to the C

[julia-users] GSOC- 2014 Computer Visions using OpenCV

2014-03-10 Thread Siddha Ganju
Hi everyone, With regards to the "Computer Visions using OpenCV" project suggested on GitHub, I can see that it includes immense Data Visualization techniques so that all the high computation can be represented graphically. This image reminded me of the

Re: [julia-users] How to check whether a values is nothing using the Julia C API?

2014-03-10 Thread Felipe Cruz
I'm sorry. add julia/src dir to cffi include dir, because *options.h* it's not exported so JULIA_DIR/include/julia Segunda-feira, 10 de Março de 2014 11:49:29 UTC-3, Felipe Cruz escreveu: > > Hi All! > > I started another project to integrate Python and Julia, but instead of > using Python ctyp

Re: [julia-users] How to check whether a values is nothing using the Julia C API?

2014-03-10 Thread Felipe Cruz
Hi All! I started another project to integrate Python and Julia, but instead of using Python ctypes, I'm using Python cffi: https://github.com/felipecruz/pyju I found cffi much better than ctypes, plus, it brings PyPy compatibility. There's already some code working but, so far, I needed to ma

Re: [julia-users] Re: Hashing speed question

2014-03-10 Thread Stefan Karpinski
Interesting. I've been inclined to randomize our hashing for quite some time now and have been keeping that option in mind during my work on numeric hashing. I know Marek, who wrote csiphash which is apparently the standard C implementation of SipHash – he was at

Re: [julia-users] [ANN] Docopt.jl - a new port of docopt in Julia

2014-03-10 Thread Kenta Sato
Oh, exactly! I didn't notice that convention of package names in Julia. I'll rename it soon. Thank you for your advice. On Monday, March 10, 2014 10:48:33 PM UTC+9, Stefan Karpinski wrote: > > Very cool. I've always liked the DocOpt approach to option parsing. I'm > sure the docopt folks will get

Re: [julia-users] the state of julia webstack

2014-03-10 Thread Stefan Karpinski
The Julia web stack is the way forward. Most of those who built it originally are working various places (not on Julia, tragically ;) and not spending time on the web stack, but we are using it for various things. The web stack packages all live under the JuliaLang organization, makes them fairly o

Re: [julia-users] [ANN] Docopt.jl - a new port of docopt in Julia

2014-03-10 Thread Stefan Karpinski
Very cool. I've always liked the DocOpt approach to option parsing. I'm sure the docopt folks will get around to that issue soon and in the meantime, it's nice to announce it here. I'm wondering if the name shouldn't be DocOpt since modules are conventionally capitalized in Julia and the word, alth

Re: [julia-users] Trouble getting Sundials.jl to work

2014-03-10 Thread Isaiah Norton
try: julia> push!(DL_LOAD_PATH, "/usr/local/lib/") you can also double-check whether it is loadable: julia> dlopen("/usr/local/lib/libsundials_cvode.so") clang.jl is only a dependency for generating the bindings, not at runtime. On Mon, Mar 10, 2014 at 8:42 AM, Thomas Moore wrote: > Thanks

Re: [julia-users] Element-wise operations and allocation

2014-03-10 Thread Tim Holy
I'm heading out the door and don't have time to search for previous discussions, but this has come up many times in the past---there are good (if admittedly unfortunate) reasons for this. Someone needs to add this to the FAQ! --Tim On Monday, March 10, 2014 05:24:20 AM Carlos Becker wrote: > H

Re: [julia-users] Element-wise operations and allocation

2014-03-10 Thread Andreas Noack Jensen
When b is an array there will be a reallocation when doing *= or /=. Instead you can use scale!(c,2) for *=. For + you can use broadcast!(+,A,[2]). Maybe there should be a broadcast(Function,Array,Number) method. If you update julia you'll also notice that A+=2 throws a deprecation warning because

[julia-users] Re: Element-wise operations and allocation

2014-03-10 Thread Cristóvão Duarte Sousa
Please see https://github.com/JuliaLang/julia/issues/249 and https://github.com/JuliaLang/julia/issues/3424. On Monday, March 10, 2014 12:24:20 PM UTC, Carlos Becker wrote: > > Hello, I recently found out this: > > julia> b = rand((1024,1024)) > > julia> sizeof(b) > 8388608 > > julia> @time b

Re: [julia-users] Trouble getting Sundials.jl to work

2014-03-10 Thread Thomas Moore
Thanks for your help everyone! I couldn't find the .so file originally, but after building it again with ./configure --enable-shared there was a libsundials_cvode.so in my /usr/local/lib. However I still have the same problem. So far I have: removed sundials with Pkg.rm("Sundials") reinstalled

[julia-users] Element-wise operations and allocation

2014-03-10 Thread Carlos Becker
Hello, I recently found out this: julia> b = rand((1024,1024)) julia> sizeof(b) 8388608 julia> @time b += 2; elapsed time: 0.007002567 seconds (8388704 bytes allocated) which, with further investigation, I could verify that it is allocating a new array every time I do something like b += 2

Re: [julia-users] Trouble getting Sundials.jl to work

2014-03-10 Thread Isaiah Norton
Ah, good call. Use `./configure --enable-shared` for the Makefile build. On Mon, Mar 10, 2014 at 3:34 AM, Ivar Nesje wrote: > I do not know CMake, but now that I have a computer I found out that I > probably used > > BUILD_SHARED_LIBS:BOOL=on > > > > > kl. 07:43:38 UTC+1 mandag 10. mars 2014 sk

Re: [julia-users] Segmentation fault for function with args and varrags

2014-03-10 Thread Alex
Thanks Ivar & Tim. Issue submitted: https://github.com/JuliaLang/julia/issues/6098 Best, Alex.

Re: [julia-users] Segmentation fault for function with args and varrags

2014-03-10 Thread Ivar Nesje
I can confirm the issue on my machine. Version 0.3.0-prerelease+1915 (2014-03-09 00:41 UTC) Commit fb18482* (1 day old master) x86_64-apple-darwin13.1.0 If you do not have/want a github account, I can submit and follow up the issue for you. Ivar

Re: [julia-users] Segmentation fault for function with args and varrags

2014-03-10 Thread Tim Holy
Please file this as an issue; it's likely to get more of the right kind of attention that way. You'll also need to provide more information, see https://gist.github.com/staticfloat/6188418. --Tim On Monday, March 10, 2014 03:49:14 AM Alex wrote: > Hi! > > I am not sure that the description in

[julia-users] Segmentation fault for function with args and varrags

2014-03-10 Thread Alex
Hi! I am not sure that the description in the subject is accurate, but this works julia> foo(ts...) = hcat(ts...) foo (generic function with 1 method) julia> foo([0.:0.0001:300]...) 1x301 Array{Float64,2}: 0.0 0.0001 0.0002 0.0003 0.0004 0.0005 0.0006 0.0007 0.0008 … 299.999 299

[julia-users] Re: Hashing speed question

2014-03-10 Thread Roman Sinayev
So I realized it is the same problem as https://github.com/JuliaLang/julia/issues/1423 Python switched to SipHash for strings: http://legacy.python.org/dev/peps/pep-0456/ On Wednesday, March 5, 2014 6:19:20 AM UTC-8, Pierre-Yves Gérardy wrote: > > On Wednesday, March 5, 2014 4:52:19 AM UTC+1, Ke

Re: [julia-users] catch syntax errors in eval(Expr)

2014-03-10 Thread Jameson Nash
>> it is fairly trivial to implement your own REPL > Not to a noob. This is why I asked the questions in the first place. Would you mind giving some details? (I could not find an easy way to read-write to a Pipe or IOBuffer from an AutoHotkey script or use named Windows pipes from Julia. Then, how

[julia-users] Re: intersecting sets is slow

2014-03-10 Thread harven
Le lundi 10 mars 2014 02:07:40 UTC+1, andrew cooke a écrit : > > > ok, i think your problem is that map(reverse, dict) is returning an array. > > if you make that a Set{UTF8String} then everything is fast. > > cheers, > andrew > Indeed, that's it. Thanks! julia> @time result = sort([intersect(

[julia-users] the state of julia webstack

2014-03-10 Thread Felix
Am working on a particular problem that fit well in julia and will like to give it a web front end, julia is solving very interesting problem as we all know and like her for, but in providing tools for web/http IMHO I think is lacking, what I will like to know is will the juliawebstack[.org] b

Re: [julia-users] Trouble getting Sundials.jl to work

2014-03-10 Thread Ivar Nesje
I do not know CMake, but now that I have a computer I found out that I probably used BUILD_SHARED_LIBS:BOOL=on kl. 07:43:38 UTC+1 mandag 10. mars 2014 skrev Ivar Nesje følgende: > > Sundials does not compile a shared library by default. You must look in > the PDF manual to find the right opt

[julia-users] Re: How to see the list of defined variables?

2014-03-10 Thread Freddy Chua
Cool thanks! On Monday, March 10, 2014 3:21:28 PM UTC+8, Andrea Pagnani wrote: > > whos() and not whose() sorry > > > > On Monday, March 10, 2014 8:12:39 AM UTC+1, Freddy Chua wrote: >> >> In matlab, I can type "who" to see the defined variables in the workspace. >> >> What do I type in Julia? >>

[julia-users] Re: How to see the list of defined variables?

2014-03-10 Thread Andrea Pagnani
whos() and not whose() sorry On Monday, March 10, 2014 8:12:39 AM UTC+1, Freddy Chua wrote: > > In matlab, I can type "who" to see the defined variables in the workspace. > > What do I type in Julia? >

[julia-users] Re: How to see the list of defined variables?

2014-03-10 Thread Andrea Pagnani
whose() On Monday, March 10, 2014 8:12:39 AM UTC+1, Freddy Chua wrote: > > In matlab, I can type "who" to see the defined variables in the workspace. > > What do I type in Julia? >

[julia-users] How to see the list of defined variables?

2014-03-10 Thread Freddy Chua
In matlab, I can type "who" to see the defined variables in the workspace. What do I type in Julia?