[julia-users] Re: More memory allocation confusion with Immutable types

2016-01-26 Thread Nitin Arora
Great, that fixed it. Thank you very much. I am not from CS background and am still understanding the syntax so this was very helpful. Nitin On Tuesday, January 26, 2016 at 10:56:31 PM UTC-8, Kristoffer Carlsson wrote: > > Your vector type is not concrete. > > Use: > > Pts = Array(Point{Float6

[julia-users] Re: More memory allocation confusion with Immutable types

2016-01-26 Thread Kristoffer Carlsson
Your vector type is not concrete. Use: Pts = Array(Point{Float64},10) and fix your method definition, i.e. function fillpts!{T <: AbstractFloat}(PointVec::Vector{Point{T}}) On Wednesday, January 27, 2016 at 7:39:19 AM UTC+1, Nitin Arora wrote: > > First of all thanks to all of those who answ

[julia-users] Great read as Julia's package ecosystem grows ("a la npm" nested dependencies)

2016-01-26 Thread Tomas Lycken
Interesting read (or skim, in my case)! I think there are some major problems with npm's nested approach too - for example, file paths tend to become so long that at least Windows has real troubles handling them (it's not fun to try to get out of a situation where you can't delete a folder bec

[julia-users] More memory allocation confusion with Immutable types

2016-01-26 Thread Nitin Arora
First of all thanks to all of those who answered questions in my previous post. I ran into another, rather confusing behavior: Say we define an immutable type as: immutable Point{T<:AbstractFloat} state:: Vector{T} # State Vector (length = 6) dstate :: Vector{T} # Derivative vector wrt

[julia-users] Using Interpolations.jl How to define the behavior when out of bounds?

2016-01-26 Thread Tomas Lycken
Yes, that's the correct way to specify the extrapolation behavior, but you don't seem to use it afterwards; your last two lines refer to Uinterp and Vinterp, rather than Uextrap and Vextrap. To get the desired behavior for OOB indices, you must index into the result of extrapolate(...). If you

[julia-users] Re: Julia Benchmarks Feedback

2016-01-26 Thread Nitin Arora
Check out this thread. There seems to be discussion on this matter already. Looks like the code used for these benchmarks was not well optimized for Julia and looks they are including Julia startup time and JIT compilation. https://groups.google.com/d/topic/julia-users/4AgBccftrps/discussion an

Re: [julia-users] install julia on ubuntu globally

2016-01-26 Thread Isaiah Norton
If you install via apt-get, it will be available for all users (like any distro software). If you install the "generic" Linux version, then availability will depend on install location and path configuration. However, packages will not be globally shared without doing further work -- search for "

[julia-users] Great read as Julia's package ecosystem grows ("a la npm" nested dependencies)

2016-01-26 Thread max
This might have been linked before in the Julia community but I had personnally not seen it before and it definitely felt close to home: http://dontkry.com/posts/code/modules-the-right-way.html one relevant illustration: https://github.com/tbreloff/Plots.jl/issues/88

Re: [julia-users] Weird problem when I call a C function from a DLL library inside a loop

2016-01-26 Thread Isaiah Norton
First suggestion: make sure you have read through the ccall section of the manual: http://docs.julialang.org/en/release-0.4/manual/calling-c-and-fortran-code/ (this is probably not the cause of the crash, but you may want to use e.g. `Ptr{Int32}` if you are returning a pointer) Second suggestion

[julia-users] Weird problem when I call a C function from a DLL library inside a loop

2016-01-26 Thread Lutfullah Tomak
What is the C code for Study_create?

[julia-users] install julia on ubuntu globally

2016-01-26 Thread Chris
Hi does the install details for julia on ubuntu install globally, or just the current user, as we want it globally?

Re: [julia-users] @everywhere using Images gives error

2016-01-26 Thread Musfir Mohammed
Hi It looks to me like the package images and ImageMagick have not been imported "import" prior to "using". As I understand import doesn't make the exported functions available in the namespace of each worker, where we call the using.

[julia-users] Using Interpolations.jl How to define the behavior when out of bounds?

2016-01-26 Thread argel . ramirez
Hi! I'm porting a Matlab code into Julia, so far my results are amazing: The program in Matlab takes 5-6 hours to run while the program in Julia takes a little more than 8 minutes! However, there is a difference in the results... In julia i'm using the Interpolations package to do the same thin

[julia-users] Overview of how ClusterManagers work?

2016-01-26 Thread sam . morrison
Hi there, I’m a bit new to julia and parallel computing. I was wondering if anyone could give me a quick summary of how the SSHManager works. Particularly, how it handles data transport and remote references. Ive read: http://docs.julialang.org/en/latest/manual/parallel-computing/ and gone throu

[julia-users] Weird problem when I call a C function from a DLL library inside a loop

2016-01-26 Thread Júlio Dias
I really can´t understand what is going wrong. I would appreciate some help At first, I defined a function which calls a simple C DLL function function Study_create(iprt) ptr_pointer = ccall((:Study_create, "MyLibraryWin32"),Int32,(Int32,),iprt) return ptr_pointer end I have no problem to ca

Re: [julia-users] interp1-like functionality from Grid.jl

2016-01-26 Thread Argel Ramírez Reyes
Thanks, Tim! 2016-01-21 17:04 GMT-06:00 Tim Holy : > Now you should probably be using Interpolations.jl. > > --Tim > > On Wednesday, January 20, 2016 05:35:53 PM argel.rami...@ciencias.unam.mx > wrote: > > Cant get it to work, maybe i'm not understanding something. Can you help > me? > > On Julia

[julia-users] Julia vs Clojure for Distributed Scientific Simulations

2016-01-26 Thread George
I'm working on a scientific simulation that is going to require a distributed environment. There has been some discussion about whether to use Julia or Clojure for this project. A few micro benchmarks seem to have different results for each language. I'm not yet sold as to which language may

Re: [julia-users] Seg Fault Using a Pointer Load

2016-01-26 Thread Bryan Rivera
Ok, it makes sense now.

Re: [julia-users] run(pipeline()) --> ERROR: failed process:

2016-01-26 Thread Isaiah Norton
The message means the process exited with an error ... Try running it directly (or read the actual process error message in the file that you piped stderr to). On Tue, Jan 26, 2016 at 12:56 AM, jda wrote: > *Running the following line on Julia 0.4.1:* > > > *run(pipeline(`julia $path`, stdout=ou

Re: [julia-users] Seg Fault Using a Pointer Load

2016-01-26 Thread Isaiah Norton
> > Does this mean `Ptr{UInt32}(1000)` does not alloc any memory? > No, in the code_llvm output, the address is received as argument `%0` and passed to the `load` pseudo-instruction. The call means "load a UInt32 from address 1000". Please do have a look at the documentation: help?> unsafe_load

Re: [julia-users] Seg Fault Using a Pointer Load

2016-01-26 Thread Bryan Rivera
julia> @code_llvm unsafe_load( Ptr{UInt32}(1000) ) define i32 @julia_unsafe_load_21205(i32*) { top: %1 = load i32* %0, align 1 ret i32 %1 } Does this mean `Ptr{UInt32}(1000)` does not alloc any memory? What effect does the 1000 have?

Re: [julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread cdm
epic. On Tuesday, January 26, 2016 at 4:31:40 PM UTC-8, Stefan Karpinski wrote: > > > Perhaps Julia is in *a lull in the hype curve* at the moment. But if so, > I think that's ok – we're doing crucial work in preparation for Julia 1.0 – > work that will let us *race far ahead into the future*.

Re: [julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Stefan Karpinski
There are two issues here: 1. Literal speed – the benchmarks indicate Julia being 2x slower than fast languages. They benchmarks, however, are including Julia startup time and JIT compilation. So being 2x slower than C is pretty damned good. 2. Development speed – "Julia instead is slowing down"

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Sisyphuss
Yeah, this is Jeff's Femato ! On Wednesday, January 27, 2016 at 12:57:49 AM UTC+1, Ismael Venegas Castelló wrote: > > That is just one implementation of scheme among many, try: > > julia --lisp > > ;-) > > El martes, 26 de enero de 2016, 17:49:00 (UTC-6), Sisyphuss escribió: >> >> Didn't imagine

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Ismael Venegas Castelló
That is just one implementation of scheme among many, try: julia --lisp ;-) El martes, 26 de enero de 2016, 17:49:00 (UTC-6), Sisyphuss escribió: > > Didn't imagine that the Scheme is called "gauche" in Ubuntu... > > P.S. "gauche" is a French word, which means "left" > > > > On Wednesday, Januar

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Ismael Venegas Castelló
I'll try to fix one of them in my spare time, and see if he can fix the rest. El martes, 26 de enero de 2016, 17:41:25 (UTC-6), Sisyphuss escribió: > > See what I find :"yes, i am bad at julia, pr please how to better code in > it. or i can remove the tests with julia." > Ref: https://github.com

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Sisyphuss
Didn't imagine that the Scheme is called "gauche" in Ubuntu... P.S. "gauche" is a French word, which means "left" On Wednesday, January 27, 2016 at 12:24:14 AM UTC+1, Ismael Venegas Castelló wrote: > > I wondered the same first time I saw quine-relay! ...Yusuke is genius :D > > * https://githu

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Sisyphuss
See what I find :"yes, i am bad at julia, pr please how to better code in it. or i can remove the tests with julia." Ref: https://github.com/kostya/benchmarks/issues/9 On Wednesday, January 27, 2016 at 12:24:14 AM UTC+1, Ismael Venegas Castelló wrote: > > I wondered the same first time I saw q

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Ismael Venegas Castelló
I wondered the same first time I saw quine-relay! ...Yusuke is genius :D * https://github.com/mame/quine-relay El martes, 26 de enero de 2016, 16:49:29 (UTC-6), Sisyphuss escribió: > > I didn't know that a man can learn so many languages... is he a genius? > > > On Tuesday, January 26, 2016 at 1

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Sisyphuss
I didn't know that a man can learn so many languages... is he a genius? On Tuesday, January 26, 2016 at 11:39:00 PM UTC+1, Ismael Venegas Castelló wrote: > > @ylluminate looking at the structure of > the Julia programs, I can only see @kostya

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Ismael Venegas Castelló
I was also saddened to see this observation: *Julia instead is slowing down and it disappeared from my radar during the last 9 month. It is still young and promising but it slowed down a bit this year so I don’t think it deserve the Top 5 for now.* http://www.davideaversa.it/2015/12/the-most-pr

[julia-users] Re: Lies... and then benchmarks...

2016-01-26 Thread Ismael Venegas Castelló
@ylluminate looking at the structure of the Julia programs, I can only see @kostya is timing both Julia startup, the JIT and the code at the same time, which is wrong - https://github.com/kostya/benchmarks/blob/master/base64/test.

Re: [julia-users] Nested functions cause type instability?

2016-01-26 Thread Sisyphuss
Hope that when this is all finished, there could be a blog explaining this new feature, which solves the closure problem! On Tuesday, January 26, 2016 at 7:29:23 PM UTC+1, Stefan Karpinski wrote: > > Currently, yes. This will change very soon. > > On Tue, Jan 26, 2016 at 1:24 PM, Sisyphuss > wro

[julia-users] Lies... and then benchmarks...

2016-01-26 Thread Ismael Venegas Castelló
Continues: https://github.com/JuliaLang/julia/issues/14808#event-527206420

Re: [julia-users] ERROR: LoadError: OutOfMemoryError()

2016-01-26 Thread jda
Thanks, I have considered much of what you mentioned while making my code but of course it can always be rechecked over again for these things. Good point about float32; in my calculation precision ends up being important. I do wonder whether my code which is mostly vectorized (i.e. matlab st

Re: [julia-users] ERROR: LoadError: OutOfMemoryError()

2016-01-26 Thread Milan Bouchet-Valat
Le mardi 26 janvier 2016 à 12:59 -0800, jda a écrit : > The OSes and the Julia versions are all 64-bit.  Thanks for the .exe > links, I was looking for them.  Good suggestion to install the 0.4.3 > version of Julia on the mac laptop.   > > What I found has led me to a different question.  I have f

Re: [julia-users] ERROR: LoadError: OutOfMemoryError()

2016-01-26 Thread jda
The OSes and the Julia versions are all 64-bit. Thanks for the .exe links, I was looking for them. Good suggestion to install the 0.4.3 version of Julia on the mac laptop. What I found has led me to a different question. I have found that actually the same size matrix that before ran just

[julia-users] Re: a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread cdm
an ESS-Julia-mode appears available ... https://github.com/syl20bnr/spacemacs/blob/ef5a2ad5ee6362588244374364fe4ac2df066f37/layers/%2Blang/ess/packages.el#L41

Re: [julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
> On Tue, 26 Jan 2016 21:01:45 +0200, Joshua Ballanco said: > Have you tried URL encoding the slash? Something like: > “pass%2Fword”? In my original post, I said this (I guess I shouldn't have clipped it from my response): I tried RFC 3986 percent-encoding the password, which turns the slash

Re: [julia-users] Seg Fault Using a Pointer Load

2016-01-26 Thread Yichao Yu
On Tue, Jan 26, 2016 at 1:47 PM, Bryan Rivera wrote: > Why are these ops causing a segfault? > > unsafe_pointer_to_objref( Ptr{UInt32}(1000) ) > > > unsafe_load( Ptr{UInt32}(1000) ) It's unclear what do you want to do here. The code you've written roughly correspond to void *dummy1 = *(volatile

Re: [julia-users] Seg Fault Using a Pointer Load

2016-01-26 Thread Stefan Karpinski
Because you're loading junk addresses that are not valid pointers to memory in your process. On Tue, Jan 26, 2016 at 1:47 PM, Bryan Rivera wrote: > Why are these ops causing a segfault? > > unsafe_pointer_to_objref( Ptr{UInt32}(1000) ) > > > unsafe_load( Ptr{UInt32}(1000) ) > > The only reason I

Re: [julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Joshua Ballanco
On January 26, 2016 at 15:42:11, Josef Sachs (sa...@cyb.org(mailto:sa...@cyb.org)) wrote: > Here is the URL that I tried to post, with the parts on separate lines. > https: > // > user > : > pass/word > @ > google.com > > I was trying to demonstrate a password with a slash in it. > The @ follow

[julia-users] Re: a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread cdm
a link ... https://github.com/syl20bnr/spacemacs

[julia-users] Seg Fault Using a Pointer Load

2016-01-26 Thread Bryan Rivera
Why are these ops causing a segfault? unsafe_pointer_to_objref( Ptr{UInt32}(1000) ) unsafe_load( Ptr{UInt32}(1000) ) The only reason I am using a pointer is because of a C function call. When I try to write a test using only Julia, it fails. The load is what I narrowed it down to.

Re: [julia-users] Re: Create distributed array from a file

2016-01-26 Thread Charles Novaes de Santana
Hi Christopher, Regarding to the limitations of your machine, you could consider using CloudArray.jl (https://github.com/gsd-ufal/CloudArray.jl) and their cloud platform CloudArrayBox (http://cloudarraybox.cloudapp.net/) Hope it helps, Charles On 26 January 2016 at 18:41, Christopher Fisher wr

Re: [julia-users] Tail call optimization

2016-01-26 Thread Stefan Karpinski
There is no tail call optimization. If you're going to implement factorial in Julia, use a loop. On Tue, Jan 26, 2016 at 1:33 PM, Sisyphuss wrote: > > > I wrote 3 versions of factorial: by recursion, by iteration, by for-loop > > rec_factorial(n) = n == one(n) ? one(n) : n * rec_factorial(n-1) >

[julia-users] Tail call optimization

2016-01-26 Thread Sisyphuss
I wrote 3 versions of factorial: by recursion, by iteration, by for-loop rec_factorial(n) = n == one(n) ? one(n) : n * rec_factorial(n-1) function iter_factorial(n) fact_iter(one(n),one(n),n) end function fact_iter(product, counter, max_count) if counter > max_count product else

Re: [julia-users] Nested functions cause type instability?

2016-01-26 Thread Yichao Yu
On Tue, Jan 26, 2016 at 1:24 PM, Sisyphuss wrote: > I have the following code: > > function factorial(n) > function fact_iter(product, counter, max_count) > if counter > max_count > product > else > fact_iter(product * counter, counter + one(counter), max_count) > end >

Re: [julia-users] Nested functions cause type instability?

2016-01-26 Thread Stefan Karpinski
Currently, yes. This will change very soon. On Tue, Jan 26, 2016 at 1:24 PM, Sisyphuss wrote: > I have the following code: > > function factorial(n) > function fact_iter(product, counter, max_count) > if counter > max_count > product > else > fact_iter(product * counter, co

[julia-users] Nested functions cause type instability?

2016-01-26 Thread Sisyphuss
I have the following code: function factorial(n) function fact_iter(product, counter, max_count) if counter > max_count product else fact_iter(product * counter, counter + one(counter), max_count) end end fact_iter(one(n),one(n),n) end By `@code_warntype factorial(1

[julia-users] ANN: Multithreaded Sparse Matrix Vector Product

2016-01-26 Thread Lars Ruthotto
Dear all, I just added a new module that (in my experience) speeds up matrix-vector products involving sparse matrices. It is Fortran and OpenMP based and should build automatically on Unix systems (although testing is still limited). You can find the package here: https://github.com/lruthotto

[julia-users] Re: Create distributed array from a file

2016-01-26 Thread Christopher Fisher
Perhaps if its a precompling issue, it would be faster if I precomplied with a smaller distributed array. I'll try that and report back in the next day or two. On Tuesday, January 26, 2016 at 12:28:21 PM UTC-5, Christopher Fisher wrote: > > Thanks for the idea. It may not apply in my particular

[julia-users] Re: Running multiple scripts in parallel Julia sessions

2016-01-26 Thread Ritchie Lee
Thanks for the suggestions everyone! On Monday, January 25, 2016 at 4:11:25 AM UTC-8, michae...@gmail.com wrote: > > It would be easy to do this using the MPI.jl package. That's what I would > do, but only because I'm familiar with how it works. The native parallel > methods of Julia may work ju

[julia-users] Re: Create distributed array from a file

2016-01-26 Thread Christopher Fisher
Thanks for the idea. It may not apply in my particular case. I forgot to mention that my memory is 32GB on the machine I am using. So swapping with the hard drive does not seem likely. Given that the second execution of the function is much faster (1 second vs 5 min), my best guess is that the

[julia-users] Re: Create distributed array from a file

2016-01-26 Thread naelson
Hello Christopher, I saw you code and you noticed you are reading all the data(3GB) locally, maybe it's causing your machine to use swap memory, which leads to the performance issue. You can check that by 1: open htop in one terminal (apt-get install -y htop) 2: run your application 3: check the

[julia-users] Re: a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread Kenta Sato
This may be an off-the-topic suggestion, but Spacemacs with ESS layer is almost an IDE to me. I started to use it a few days ago (so I may missing something important) and found it includes features like: * REPL integration * Completing names from imported modules * Document viewer * etc. I bel

Re: [julia-users] Re: Adding another function to Cairo.jl

2016-01-26 Thread hustf
tirsdag 26. januar 2016 13.29.06 UTC+1 skrev cormu...@mac.com følgende: > > Using github isn't my favourite computer-based activity, but let's see > how it goes. The blue shell background doesn't help much. It scares the willies out of me.

[julia-users] Re: Capturing output of interactive julia

2016-01-26 Thread Sebastian Nowozin
Hi, for a non-programmatic way to do that (i.e. to record a single session) you can use the "screen" utility for that. In our shell, run screen, then press ctrl-a H, and then run Julia. The file is created in the directory you started screen in, and named screenlog.0 Sebastian On Saturday,

[julia-users] Re: a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread Andre P.
Just wanted to add that I use Atom+Julia client both on Windows and Mac. The firewall issue with Atom has been resolved. The regular instruction had some issues. I suggest following the dev install. https://github.com/JunoLab/atom-julia-client/blob/master/docs/README.md

Re: [julia-users] UTF8String in embedded julia

2016-01-26 Thread Ján Adamčák
I have new question: how I can transfer Vector{UTF8String}(10) to Julia from C? I think I need use jl_value_t* array_type= jl_apply_array_type( jl_uint8_type, 1 ); jl_array_t* x = jl_alloc_array_1d(array_type , 10); JL_GC_PUSH1(&x); but this give me only Vector{UInt8}(10)

Re: [julia-users] a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread Viral Shah
We are also quite close to having new complete bundles like Juno + LT. Would be great for Mike to chime in here. -viral > On 26-Jan-2016, at 8:18 PM, Andre P. wrote: > > Just wanted to add that I use Atom+Julia client both on Windows and Mac. The > firewall issue with Atom has been resolved.

[julia-users] Re: a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread Andre P.
No need to wait for Atom. I've been using Atom+Juno with Julia 0.4.2 for 2 weeks ow. It works very well. Easily the best IDE I have used with Julia.

Re: [julia-users] UTF8String in embedded julia

2016-01-26 Thread Ján Adamčák
My final solution for 2nd problem: in userimg.jl I have added this line: demo(x::Vector{UInt8}) = lowercase(utf8(x)).data and in start_func.c I have this code: #include #include int main() { jl_init_with_image(NULL, "libMyJuliaImage.dll"); int utf8_length = 6; jl_v

Re: [julia-users] UTF8String in embedded julia

2016-01-26 Thread Ján Adamčák
Ok, thanks. My final solution for 1st problem: in userimg.jl I have added this line: demo(x::Vector{UInt8}) = println("x: ", utf8(x)) and in start_func.c I have this code: #include #include int main() { jl_init_with_image(NULL, "libMyJuliaImage.dll"); int utf8_length = 6; jl_value_t*

[julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
> On Tue, 26 Jan 2016 05:30:57 -0800 (PST), said: > On Tuesday, January 26, 2016 at 11:07:37 PM UTC+10, Josef Sachs > wrote: >> >> Is there a way to use Requests.jl with HTTP Basic Authentication >> when the password contains a slash? >> julia> using Requests >> julia> get("https://user:pa

[julia-users] Re: Package Directory of Remote Workers

2016-01-26 Thread Young-Jun Ko
What seems to work here is to put the import statements into the .juliarc.jl file on the remote machine. This seems a bit clumsy though. On Tuesday, January 26, 2016 at 10:05:57 AM UTC+1, Young-Jun Ko wrote: > > Hello, > > I am trying to use the parallel processing capabilities of julia in the >

[julia-users] Re: Requests.jl with HTTP Basic Authentication

2016-01-26 Thread elextr
On Tuesday, January 26, 2016 at 11:07:37 PM UTC+10, Josef Sachs wrote: > > Is there a way to use Requests.jl with HTTP Basic Authentication > when the password contains a slash? > > julia> using Requests > > julia> get("https://user:pass/wo...@google.com ") > Doesn't it need an @ after the

[julia-users] Requests.jl with HTTP Basic Authentication

2016-01-26 Thread Josef Sachs
Is there a way to use Requests.jl with HTTP Basic Authentication when the password contains a slash? julia> using Requests julia> get("https://user:pass/w...@google.com";) ERROR: Port must be numeric (decimal) in parse_authority at /home/sachs/.julia/v0.4/URIParser/src/parser.jl:129 in parse_ur

Re: [julia-users] Re: Adding another function to Cairo.jl

2016-01-26 Thread cormullion
After some success with an external function definition, I had a go at a PR. Using github isn't my favourite computer-based activity, but let's see how it goes.

Re: [julia-users] ERROR: LoadError: OutOfMemoryError()

2016-01-26 Thread Milan Bouchet-Valat
Le lundi 25 janvier 2016 à 21:51 -0800, jda a écrit : > I've run into the following problem while running a simulation code > (of a differential equation).  Because of the nature of the > problem, the matrices are dense.  In particular one line of code that > runs the backslash operator gives an Ou

Re: [julia-users] Profileview not working due to a bug in gtk.jl

2016-01-26 Thread Tim Holy
Would be great to report this as an issue at Gtk.jl: https://github.com/JuliaLang/Gtk.jl Please include details from versioninfo() and Pkg.status() (probably just the Gtk line). --Tim On Monday, January 25, 2016 07:14:06 PM Gabriel Goh wrote: > This is the error I am getting when I run > > imp

Re: [julia-users] Re: Adding another function to Cairo.jl

2016-01-26 Thread Andreas Lobinger
It took me some iterations to get a PR and the git/github logic correctly (you might look into my old and closed PRs). I'd recommend (because i believe in testing) to do add an example along the implementation. And i want to turn around your comment: The thing about Cairo and Cairo.jl is — once

[julia-users] Re: a good IDE for Julia ? (Julia Studio does not work with Julia v 0.3.0)

2016-01-26 Thread Sisyphuss
Wait for Juno/Atom and use Juno/LT for now. Ref: http://junolab.org/docs/install-manual.html On Saturday, January 23, 2016 at 9:11:49 PM UTC+1, PattiMichelle wrote: > > Eclipse isn't terribly user-friendly for noobs like me - has anyone been > able to get liclipse to point to their Juila instal

[julia-users] Re: ANN: Julia v0.4.3 released

2016-01-26 Thread Sisyphuss
Because Juno IDE is developed and maintained by another organization Junolab. If you would like to use the latest version of Julia inside Juno, you could "install it from LightTable" by following the instructions here . On Sunday, January 24, 2016 at

Re: [julia-users] Re: Adding another function to Cairo.jl

2016-01-26 Thread cormullion
@tshort - Thanks, that's what I forgot... ! It works fine, I'll see about making a pull request. (The thing about Cairo and Cairo.jl is — once you get it installed and working, you don't want to mess with it... :))

[julia-users] Package Directory of Remote Workers

2016-01-26 Thread Young-Jun Ko
Hello, I am trying to use the parallel processing capabilities of julia in the following way. I have two machine m1, m2 with the following characteristics: - They do not share a file system. - User names are different - Julia and packages are installed in different locations. I connect m1 and

Re: [julia-users] Understanding immutable type memory allocation

2016-01-26 Thread Nitin Arora
Sorry, I dropped the ball on this and missed this chain of posts over the holidays. I posted a similar questions, where I encountered this doubt again, after seeing spurious memory allocations in my code. I just opened an issue on GitHub for this. https://github.com/JuliaLang/julia/issues/1480

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Nitin Arora
Thanks. I just opened an issue to improve the docs https://github.com/JuliaLang/julia/issues/14801 On Tuesday, January 26, 2016 at 12:23:30 AM UTC-8, Mauro wrote: > > I think the only time performance of immutables can be better than > mutables, is when they are also isbits. This is the case wh

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Mauro
I think the only time performance of immutables can be better than mutables, is when they are also isbits. This is the case when all the fields of an immutable are isbits. Note that the compiler if free to either copy or reference immutables as the are immutable. On Tue, 2016-01-26 at 09:19, Nit

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Nitin Arora
Okay thanks. But Is it not true that, if I pass the immutable Point type or an array of the same to various functions, then Julia compiler will pass it by copying instead of passing it by reference ? >From the documentation: *"An object with an immutable type is passed around (both in assign

Re: [julia-users] What does `type X Int,Int end` do?

2016-01-26 Thread Mauro
Related discussion in: https://github.com/JuliaLang/julia/issues/9443 On Tue, 2016-01-26 at 01:58, Erik Schnetter wrote: > I didn't know that you can write > ```Julia > type B > i::Int > b(x)=2x > B(x)=new(b(x)) > end > ``` > and thus get a very private function `b`... > > -erik > > >

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Nitin Arora
Thanks, I somehow missed that fact while checking for memory allocations. On Monday, January 25, 2016 at 11:59:42 PM UTC-8, Kristoffer Carlsson wrote: > > The reason you get allocations is because you are running things in global > scope. > > > http://docs.julialang.org/en/release-0.4/manual/per

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Mauro
> I assume from mutate you mean not changing type of the sub-variable (e.g > "vstate" above) ? I plan to change the values inside that vector but the > vector itself, both in length and type, will remain constant. Yes, then I'd use immutable. However, I don't think it will improve performance ove

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Kristoffer Carlsson
The reason you get allocations is because you are running things in global scope. http://docs.julialang.org/en/release-0.4/manual/performance-tips/#avoid-global-variables Seems immutable would work well for your use case.

Re: [julia-users] Immutable vs. Mutable composite types: Trying to understand performance and memory allocations

2016-01-26 Thread Kristoffer Carlsson
The reason you get allocations is because you are running things in global scope. http://docs.julialang.org/en/release-0.4/manual/performance-tips/#avoid-global-variables Seems immutable would work well for your use case.