Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Elliot Saba
Do other interpreters such as `ipython` run slowly? If you run `strace julia`, it will print out system calls as they execute. Are there certain syscalls that are taking a long amount of time? E.g. does it freeze for a long time on an lstat(), or a read(), or something? -E On Wed, Aug 26, 2015

[julia-users] format short e?

2015-08-26 Thread Dominique Orban
One of the most useful Matlab commands to me is `format short e`, which displays all real numbers using the e format and just 4 decimals. Is there such a thing in Julia? Or a plan for such a thing?

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Elliot Saba
After Julia is loaded, run the following command and tell us what it prints out; it will give us the same information as what Yichao is talking about. filter( x - contains(x, sys.$(Sys.dlext)), Sys.dllist()) -E On Wed, Aug 26, 2015 at 11:43 AM, Chris 7hunderstr...@gmail.com wrote: I have a

[julia-users] Re: Command line help documentation

2015-08-26 Thread Benjamin Deonovic
I found my answer. In Julia 0.4 you have access to the doc macro: help? @doc Documentation ≡≡≡ Functions, methods and types can be documented by placing a string before the definition: # The Foo Function `foo(x)`: Foo the living hell out of `x`. foo(x) = ...

Re: [julia-users] Re: Multiple dispatch confusion

2015-08-26 Thread Jameson Nash
https://github.com/JuliaLang/julia/issues/7357 On Wed, Aug 26, 2015 at 2:27 PM Yichao Yu yyc1...@gmail.com wrote: On Wed, Aug 26, 2015 at 12:33 PM, Matt Bauman mbau...@gmail.com wrote: Yes, this can be surprising. Look at `methods(u)`: julia methods(u) # 5 methods for generic function

[julia-users] Re: Pyplot graphic error

2015-08-26 Thread Steven G. Johnson
On Wednesday, August 26, 2015 at 2:07:44 PM UTC-4, Juan Carlos Cuevas Bautista wrote: I am plotting some data in Julia and I am using PyPlot. The issue is that the plots that I am getting are kind of messy. When I use the command plot, it gives the next error: libpng error: bad

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Elliot Saba
Does `top` show that Julia is taking up a huge amount of CPU or memory? -E On Wed, Aug 26, 2015 at 11:49 AM, Chris 7hunderstr...@gmail.com wrote: That gives /home/cbinz/julia/usr/bin/../lib/julia/sys.so On Wednesday, August 26, 2015 at 2:47:06 PM UTC-4, Elliot Saba wrote: After Julia is

Re: [julia-users] Type promotion bug?

2015-08-26 Thread Yichao Yu
On Wed, Aug 26, 2015 at 12:44 PM, Sisyphuss zhengwend...@gmail.com wrote: Of course, I know how to write the valid code. But in the interactive environment, if someone accidentally defines the promote_rule in the non-base way, he will find himself in an incomprehensible situation. There's

Re: [julia-users] Re: Command line help documentation

2015-08-26 Thread Stefan Karpinski
In particular, unless you have special requirements, you can just put a bare string in front of a method definition to document it. Let us know how it works and if you have an problems or confusion – feedback from brand new users of features is very helpful! On Wed, Aug 26, 2015 at 2:56 PM,

Re: [julia-users] Re: Multiple dispatch confusion

2015-08-26 Thread Yichao Yu
On Wed, Aug 26, 2015 at 12:33 PM, Matt Bauman mbau...@gmail.com wrote: Yes, this can be surprising. Look at `methods(u)`: julia methods(u) # 5 methods for generic function u: u(c::Float64) at none:7 u(c::Float64, h::Float64) at none:3 u(c::Float64, h::Float64, b) at none:3 u(c::Float64,

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Yichao Yu
On Wed, Aug 26, 2015 at 2:20 PM, Chris 7hunderstr...@gmail.com wrote: ipython is not installed, but `python` seems to run just fine. Nothing jumps out at me as taking very long with `strace julia`. Maybe do a lsof/fuser on the sys.so (should be in /usr/lib/julia/ or similar directory) to see

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
I have a sys.so in ~/julia/usr/lib/julia/, but I'm not sure how to run fuser or lsof to do what you're asking. On Wednesday, August 26, 2015 at 2:32:32 PM UTC-4, Yichao Yu wrote: On Wed, Aug 26, 2015 at 2:20 PM, Chris 7hunde...@gmail.com javascript: wrote: ipython is not installed, but

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Jeffrey Sarnoff
It is easy to get Java from Javascript, just drop the script. Integrating the two -- naah; if it were, node.js would have an older sibling ''java.js On Wednesday, August 26, 2015 at 1:17:06 PM UTC-4, Stefan Karpinski wrote: Is JavaScript actually easy to integrate with Java? On Aug 26,

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Tony Kelman
I suspect it can be if you use Nashorn. On sandboxing, we could potentially look into experimenting with PNaCl as a backend. Or use existing sandboxes that exist across all browsers by compiling to js with Emscripten, or WebAssembly as that develops. On Wednesday, August 26, 2015 at 10:17:06

Re: [julia-users] Type promotion bug?

2015-08-26 Thread Sisyphuss
Of course, I know how to write the valid code. But in the interactive environment, if someone accidentally defines the promote_rule in the non-base way, he will find himself in an incomprehensible situation. On Wednesday, August 26, 2015 at 4:15:59 PM UTC+2, Luthaf wrote: By doing

[julia-users] Compose - rotation ?

2015-08-26 Thread Mark
Learning Compose. Trying the code below to rotate images. The rotate function seems to work on the line-drawn V but not on the colored checker box. How do I fix this so the rotate function works for drawings like the checker box? Some outputs attached. Thank you for your advice.

[julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
Nope, not NFS-mounted. On Wednesday, August 26, 2015 at 2:07:14 PM UTC-4, John Gibson wrote: Run df ~. That'll tell you where the file system containing your home directory is mounted. If it says nfs:/..., it's NFS-mounted. John On Wednesday, August 26, 2015 at 11:12:48 AM UTC-4, Chris

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
ipython is not installed, but `python` seems to run just fine. Nothing jumps out at me as taking very long with `strace julia`. On Wednesday, August 26, 2015 at 2:14:48 PM UTC-4, Elliot Saba wrote: Do other interpreters such as `ipython` run slowly? If you run `strace julia`, it will print

Re: [julia-users] Re: Julia as scripting language for larger project

2015-08-26 Thread Isaiah Norton
In this context, sandboxing means restricting the privileges allowed to untrusted code: https://en.wikipedia.org/wiki/Sandbox_(computer_security) Sandboxing is what allows one to run arbitrary JavaScript code (from wherever) in your web browser without generally needing to worry about what that

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
That gives /home/cbinz/julia/usr/bin/../lib/julia/sys.so On Wednesday, August 26, 2015 at 2:47:06 PM UTC-4, Elliot Saba wrote: After Julia is loaded, run the following command and tell us what it prints out; it will give us the same information as what Yichao is talking about. filter( x -

[julia-users] Re: packages that depend on unregistered packages (also: pkg REQUIRE allow urls)?

2015-08-26 Thread tim . lebel
+1 for allowing URLs in the REQUIRE file I have the same issue, packages are on a company network and cannot be registered. Will try out Declarative Packages but it would be nice to have the built-in solution, as I don't see it conflicting with how REQUIRE works currently. On Saturday, July

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Fengyang Wang
On Wednesday, August 26, 2015 at 1:17:06 PM UTC-4, Stefan Karpinski wrote: Is JavaScript actually easy to integrate with Java? Java has always come bundled with a Javascript interpreter (first Rhino, now Nashorn). It can be used like this: *package sample1;* *import

Re: [julia-users] Re: Pyplot graphic error

2015-08-26 Thread Juan Carlos Cuevas Bautista
Hi Steven, No, it works perfectly in Python. 2015-08-26 15:07 GMT-04:00 Steven G. Johnson stevenj@gmail.com: On Wednesday, August 26, 2015 at 2:07:44 PM UTC-4, Juan Carlos Cuevas Bautista wrote: I am plotting some data in Julia and I am using PyPlot. The issue is that the plots that

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Stefan Karpinski
Joke's on NetScape. On Wed, Aug 26, 2015 at 4:06 PM, Fengyang Wang fengyangwa...@gmail.com wrote: On Wednesday, August 26, 2015 at 1:17:06 PM UTC-4, Stefan Karpinski wrote: Is JavaScript actually easy to integrate with Java? Java has always come bundled with a Javascript interpreter (first

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
While julia is opening, it's pegged at around 99% CPU usage. It drops to something very low after startup, though. On Wednesday, August 26, 2015 at 4:02:35 PM UTC-4, Elliot Saba wrote: Does `top` show that Julia is taking up a huge amount of CPU or memory? -E On Wed, Aug 26, 2015 at 11:49

[julia-users] Re: How to best define an EulerAngles type

2015-08-26 Thread daniel . matz
Josh, While that would indeed work, I think your function isn't type stable. I think Simon's answer above is the way to go. Daniel

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Fengyang Wang
Thank you for your response! This has been very helpful.

Re: [julia-users] Very poor performance on Linux

2015-08-26 Thread Chris
It's a 32-CPU machine, and they're all Intel(R) Xeon(R) CPU E5-4650 0 @ 2.70GHz. There's about a half terabyte of RAM. It's running Debian 7.0 (wheezy). I don't believe I'm running from an NFS mount, although I'm not entirely sure how to rule that out. top appears to be the largest user of

Re: [julia-users] Very poor performance on Linux

2015-08-26 Thread Elliot Saba
If you open a process manager such as `top`, is there some other process that is hogging your CPU/RAM/disk? -E On Wed, Aug 26, 2015 at 9:49 AM, Isaiah Norton isaiah.nor...@gmail.com wrote: Any ideas? Are you running Julia from an NFS mount? (not a known problem, just a guess) On Wed, Aug

[julia-users] Re: julia-mode.el indentation after multi-line statement

2015-08-26 Thread Dan Schmidt
As a note to anyone who looks into this (which may be me), this only happens at the top level. If I put your code inside a function, it indents fine. On Wednesday, August 26, 2015 at 11:05:56 AM UTC-4, Thomas Covert wrote: If I write a multiline statement in emacs with julia-mode.el (or

[julia-users] Re: How to best define an EulerAngles type

2015-08-26 Thread Josh Langsfeld
You can always just make the arguments give all the parameters: type EulerAngles{T : Number, Seq} angles::Vector{T} end EulerAngles{T}(seq, angles::Vector{T}) = EulerAngles{T,seq}(angles) julia EulerAngles(321, [pi,pi/2,0])

Re: [julia-users] Multiple dispatch confusion

2015-08-26 Thread Jameson Nash
You've defined a lot of methods here in shorthand notation: u(c::Float64, h::Float64, b, a) u(c::Float64, h::Float64, b) = u(c::Float64, h::Float64, b, a) u(c::Float64, h::Float64) = u(c::Float64, h::Float64, b) u(c::Float64, a) u(c::Float64) = u(c::Float64, a) If you look at methods(u), you'll

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Isaiah Norton
Does such a sandbox exist? 1. No Is there a portable way to install a portable Julia 2. The installation process is platform-specific. The generic linux binaries should work on any reasonably recent linux. The Windows installer can be unpackaged and used like a portable binary. Not sure

[julia-users] Pyplot graphic error

2015-08-26 Thread Juan Carlos Cuevas Bautista
Hi Everybody, I am plotting some data in Julia and I am using PyPlot. The issue is that the plots that I am getting are kind of messy. When I use the command plot, it gives the next error: libpng error: bad parameters to zlib However I am not using or saving the figure like a png. I was

[julia-users] Re: How to best define an EulerAngles type

2015-08-26 Thread Jeffrey Sarnoff
Daniel, Don't use the third choice -- one of the great things about working with Julia is that parametric or conditioning aspects of a multifaceted design can be actual parameters or typed in such a way that details of sub-specification become avenues of dispatch. You mention it would be

Re: [julia-users] Very poor performance on Linux

2015-08-26 Thread Isaiah Norton
Any ideas? Are you running Julia from an NFS mount? (not a known problem, just a guess) On Wed, Aug 26, 2015 at 11:12 AM, Chris 7hunderstr...@gmail.com wrote: Hello, I recently got access to a new Linux machine, and I've been trying to run some of my code there. I tried downloading a

Re: [julia-users] Julia as scripting language for larger project

2015-08-26 Thread Stefan Karpinski
Is JavaScript actually easy to integrate with Java? On Aug 26, 2015, at 12:21 PM, Fengyang Wang fengyangwa...@gmail.com wrote: Hi, I learned Julia recently, and I must say it has been incredible for scientific work. I am in love with the clean, modern syntax. Props to the developers

[julia-users] Re: Julia as scripting language for larger project

2015-08-26 Thread Benjamin Deonovic
Not sure what you mean by julia sandbox, but there is https://www.juliabox.org/ if you want to try out julia without having to install on your machine. On Wednesday, August 26, 2015 at 11:23:29 AM UTC-5, Fengyang Wang wrote: Hi, I learned Julia recently, and I must say it has been

[julia-users] Re: Very poor performance on Linux

2015-08-26 Thread John Gibson
Run df ~. That'll tell you where the file system containing your home directory is mounted. If it says nfs:/..., it's NFS-mounted. John On Wednesday, August 26, 2015 at 11:12:48 AM UTC-4, Chris wrote: Hello, I recently got access to a new Linux machine, and I've been trying to run some

[julia-users] Command line help documentation

2015-08-26 Thread Benjamin Deonovic
How can I get documentation for my functions in my package to show up when someone uses the command line help functionality like: help? sort INFO: Loading help data... Base.sort(v, [alg=algorithm,] [by=transform,] [lt=comparison,] [rev= false]) Variant of sort! that returns a sorted copy

[julia-users] Re: Multiple dispatch confusion

2015-08-26 Thread Matt Bauman
Yes, this can be surprising. Look at `methods(u)`: julia methods(u) # 5 methods for generic function u: u(c::Float64) at none:7 u(c::Float64, h::Float64) at none:3 u(c::Float64, h::Float64, b) at none:3 u(c::Float64, h::Float64, b, a) at none:3 u(c::Float64, a) at none:7 When you call `u(2.)`,

[julia-users] Multiple dispatch confusion

2015-08-26 Thread Nils Gudat
I'm defining a function with two methods as follows: a = 2. b = 0.8 function u(c::Float64, h::Float64, b=b, a=a) ((c/(h^b))^(1-a))/(1-a) end function u(c::Float64, a=a) c^(1-a)/(1-a) end However, when calling u(2.), the result is -0.87..., which should be the result of the function

[julia-users] Julia as scripting language for larger project

2015-08-26 Thread Fengyang Wang
Hi, I learned Julia recently, and I must say it has been incredible for scientific work. I am in love with the clean, modern syntax. Props to the developers for their tireless efforts to improve this language even further! Historically, Lua and Javascript have been the most common choices for

[julia-users] Re: Multiple dispatch confusion

2015-08-26 Thread Sisyphuss
I agree with you. It dispatches twice. On Wednesday, August 26, 2015 at 6:33:43 PM UTC+2, Matt Bauman wrote: Yes, this can be surprising. Look at `methods(u)`: julia methods(u) # 5 methods for generic function u: u(c::Float64) at none:7 u(c::Float64, h::Float64) at none:3 u(c::Float64,

[julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Uwe Fechner
Can you tell a little bit more about your machine? Which CPU? How much RAM? Which Linux version? Uwe Am Mittwoch, 26. August 2015 17:12:48 UTC+2 schrieb Chris: Hello, I recently got access to a new Linux machine, and I've been trying to run some of my code there. I tried downloading a

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Stefan Karpinski
Can you do @time RandomDevice() and see how long that takes? On Wed, Aug 26, 2015 at 4:40 PM, Chris 7hunderstr...@gmail.com wrote: I assume you don't want to know the actual output (if you do let me know), but hexdump /dev/random gives a new line very slowly, perhaps once every 8 seconds or

[julia-users] Extra '\n' char while creating a string spaning over two lines

2015-08-26 Thread J Luis
I need to build a command as a string to pass to an external program (GMT), so I started to build it this way julia ps = V:\example_23.ps; julia name=Rome; julia pscoast -Rg -JH90/9i -Glightgreen -Sblue -A1000 -Dc -Bg30 -B+t\Distances from * name * to the World\ -K

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Stefan Karpinski
Random guess... What happens when you try to read from /dev/random? On Aug 26, 2015, at 4:15 PM, Chris 7hunderstr...@gmail.com wrote: While julia is opening, it's pegged at around 99% CPU usage. It drops to something very low after startup, though. On Wednesday, August 26, 2015 at

[julia-users] Re: Performance between R, Julia and Cpp

2015-08-26 Thread Michael Wang
Thank you Kristoffer. This helps a lot. On Sunday, August 23, 2015 at 12:46:04 PM UTC-7, Kristoffer Carlsson wrote: What's good with Julia is that if something is if a library or something is slow it is usually easy to tweak it to get your performance. For example, if we only focus on the

Re: [julia-users] How to best define an EulerAngles type

2015-08-26 Thread Jeffrey Sarnoff
Yes, quaternions are much cleaner -- I use them. On Wednesday, August 26, 2015 at 5:20:33 AM UTC-4, Tim Holy wrote: Only partially relevant, but my general reaction to Euler angles is: don't do it, because of gimbal lock. https://github.com/forio/Quaternions.jl and

[julia-users] Re: How to best define an EulerAngles type

2015-08-26 Thread Simon Danisch
First of all I would recommend FixedSizeArrays or NTuples for this, as they can be faster in some cases and you can restrict them to 3 dimensions. Then I'd follow Tim Holy's advice. Concerning your problem, you can do this on 0.4: call{T : Number, SEQ}(::Type{EulerAngles{SEQ}, a::Vector{T}} =

Re: [julia-users] Re: ANN: JuliaDiff -- differentiation tools in Julia

2015-08-26 Thread Christoph Ortner
I never used the AD packages myself. But if you have a function that implements F(y), then AD should give you a new function that implements DF(y). Then evaluate that at each data point. From the data alone you cannot do it of course. Christoph

Re: [julia-users] Re: ANN: JuliaDiff -- differentiation tools in Julia

2015-08-26 Thread Spencer Lyon
It would be awesome to get this under AD.  I'm not sure I follow with how to get DF(y) at each output point. Can you provide a quick example (made up data is totally fine)? Thanks // Spencer On August 25, 2015 at 4:15:28 PM EDT, Christoph Ortner christophortn...@gmail.com wrote:In this case

Re: [julia-users] Re: ANN: JuliaDiff -- differentiation tools in Julia

2015-08-26 Thread Christoph Ortner
After learning that (y, F(y)) = (y, y’) is the output from an ODE solver, if the ODE is regular, then the solution ought to be smooth and standard spline interpolation (B-splines or Hermite since you have y') should give you very good results. Have you tried Interpolations.jl as Tim Holy

[julia-users] PyPlot: How to change the aspect ratio of a plot?

2015-08-26 Thread Daniel Carrera
Hello, I am using PyPlot and I cannot figure out how to change the aspect ratio of a plot. I googled for some answers and I found a thread from Python users about aspect ratios in Matplotlib: http://stackoverflow.com/questions/7965743/how-can-i-set-the-aspect-ratio-in-matplotlib I am trying

Re: [julia-users] Type promotion bug?

2015-08-26 Thread Luthaf
By doing promote_rule() = 1 And then Base.promote_rule{T}(::Type{A{T}},::Type{C{T}}) = C{T} You are defining two different functions. Only the second one is used by the promotion system. The valid code is abstract B type A:B end type C:B end

[julia-users] Re: create a similar array with different dimension

2015-08-26 Thread harven
Le mercredi 26 août 2015 16:02:37 UTC+2, Sisyphuss a écrit : Try just `similar(M,(2,2))`. Thanks, that works.

[julia-users] Re: How to best define an EulerAngles type

2015-08-26 Thread Jeffrey Sarnoff
Simon's example: type EulerAngles{SEQ,T} a::Vector{T} end call{T : Number, SEQ}(::Type{EulerAngles{SEQ}}, a::Vector{T}) = EulerAngles{SEQ, T}(a) julia EulerAngles{123}([10.0,20.0,30.0]) EulerAngles{123,Float64}([10.0,20.0,30.0]) On Wednesday, August 26, 2015 at 8:56:55 AM UTC-4, Simon

[julia-users] Iterating over set with many deletions causing performance problems

2015-08-26 Thread Michael Swarbrick Jones
My code has a large set of available 'cells' (user defined type). At each iteration we add some cells to the available cells set, iterate over it, find the 'best' cell, and delete it from the available cells set (every cell is added and deleted from available set exactly once, I am not worried

[julia-users] Request help on the error: symbol lookup error: ...libcholmod.so.. undefined symbol: dpotrf_

2015-08-26 Thread Yonghee Lee
Hi! I got an error during sparse Cholesky computation related Mixed Models. So I ran test for MixedModels and I got the same error as below: /usr/bin/julia: symbol lookup error: /usr/bin/../lib/x86_64-linux-gnu/julia/libcholmod.so: undefined symbol: dpotrf_ I found very similar issue for

[julia-users] Re: create a similar array with different dimension

2015-08-26 Thread Sisyphuss
Try just `similar(M,(2,2))`. On Wednesday, August 26, 2015 at 3:37:40 PM UTC+2, harven wrote: Hi, I have an array and I want to create a similar array with same element type but different dimensions (say, 2x2). julia similar(M, ?, (2,2)) Is there a way to skip the second optional

Re: [julia-users] How to best define an EulerAngles type

2015-08-26 Thread Tim Holy
Only partially relevant, but my general reaction to Euler angles is: don't do it, because of gimbal lock. https://github.com/forio/Quaternions.jl and https://github.com/timholy/AffineTransforms.jl have algorithms that are not vulnerable to this problem. Take this advice with a grain of salt, of

[julia-users] create a similar array with different dimension

2015-08-26 Thread harven
Hi, I have an array and I want to create a similar array with same element type but different dimensions (say, 2x2). julia similar(M, ?, (2,2)) Is there a way to skip the second optional argument, which should be infered from M, and just provide the third? I have a similar question with

[julia-users] Re: create a similar array with different dimension

2015-08-26 Thread Sisyphuss
I think `similar` is implemented by optional variable instead of keyword variable. But I'm not sure. Anyway, you can use `eltype(M)` for the second argument. On Wednesday, August 26, 2015 at 3:37:40 PM UTC+2, harven wrote: Hi, I have an array and I want to create a similar array with same

Re: [julia-users] Re: ANN: JuliaDiff -- differentiation tools in Julia

2015-08-26 Thread Jarrett Revels
Hi, This could be a chance to battle-test ForwardDiff.jl's new API. It takes exact derivatives and we're trying to make it easy to use. If your discrete grid is granular enough, ForwardDiff.jl should work great. Just keep in mind that ForwardDiff is so accurate (i.e., to machine-epsilon

Re: [julia-users] Re: PyPlot: How to change the aspect ratio of a plot?

2015-08-26 Thread Daniel Carrera
On 26 August 2015 at 16:46, Steven G. Johnson stevenj@gmail.com wrote: The answers in the stackoverflow thread you linked work for me, e.g. w, h = plt[:figaspect](0.5) figure(figsize=(w,h)) plot(rand(10)) I often have trouble converting from Python+Matplotlib to Julia+PyPlot. Even

Re: [julia-users] Re: PyPlot: How to change the aspect ratio of a plot?

2015-08-26 Thread Nils Gudat
https://github.com/stevengj/PyPlot.jl#exported-functions

[julia-users] Very poor performance on Linux

2015-08-26 Thread Chris
Hello, I recently got access to a new Linux machine, and I've been trying to run some of my code there. I tried downloading a binary and using that, but after I saw the performance issues, I built Julia from source, and the issues persist. First: julia @time versioninfo() Julia Version

Re: [julia-users] Iterating over set with many deletions causing performance problems

2015-08-26 Thread Yichao Yu
On Wed, Aug 26, 2015 at 5:32 AM, Michael Swarbrick Jones swarbrickjo...@googlemail.com wrote: My code has a large set of available 'cells' (user defined type). At each iteration we add some cells to the available cells set, iterate over it, find the 'best' cell, and delete it from the

[julia-users] julia-mode.el indentation after multi-line statement

2015-08-26 Thread Thomas Covert
If I write a multiline statement in emacs with julia-mode.el (or ESS-julia for that matter), emacs seems to want to indent the line AFTER a multi-line statement is complete. For example, What I'd like to see: y1 = f(x, z) y2 = g(x) What I actually see: y1 = f(x, z)

Re: [julia-users] Re: PyPlot: How to change the aspect ratio of a plot?

2015-08-26 Thread Nils Gudat
FWIW, I always think the fig/ax syntax aligns best with Python, e.g. fig, ax = PyPlot.subplots(2,2, ...) ax[1,1][:plot](..., linestyle = :, label = ...) ax[1,1][:legend](loc=best) ax[1,2][:hist](..., alpha = 0.5, label = ...) fig[:title](Some title) with this syntax, you can more or less convert

Re: [julia-users] julia-mode.el indentation after multi-line statement

2015-08-26 Thread Yichao Yu
On Wed, Aug 26, 2015 at 11:05 AM, Thomas Covert thom.cov...@gmail.com wrote: If I write a multiline statement in emacs with julia-mode.el (or ESS-julia for that matter), emacs seems to want to indent the line AFTER a multi-line statement is complete. For example, What I'd like to see: y1 =

Re: [julia-users] Type promotion bug?

2015-08-26 Thread Sisyphuss
In other words, it won't fix? On Wednesday, August 26, 2015 at 6:41:36 AM UTC+2, Stefan Karpinski wrote: Don't do the first non-base definition. On Wed, Aug 26, 2015 at 12:27 AM, Sisyphuss zhengw...@gmail.com javascript: wrote: This modification works, but it fails sometimes: abstract

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
I assume you don't want to know the actual output (if you do let me know), but hexdump /dev/random gives a new line very slowly, perhaps once every 8 seconds or so. On Wednesday, August 26, 2015 at 4:33:49 PM UTC-4, Stefan Karpinski wrote: Random guess... What happens when you try to read

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Chris
ERROR: RandomDevice not defined On Wednesday, August 26, 2015 at 6:13:12 PM UTC-4, Stefan Karpinski wrote: Can you do @time RandomDevice() and see how long that takes? On Wed, Aug 26, 2015 at 4:40 PM, Chris 7hunde...@gmail.com javascript: wrote: I assume you don't want to know the actual

[julia-users] ANN: Strada.jl -- A deep learning library for Julia based on Caffe

2015-08-26 Thread Philipp Moritz
I'd like to announce Strada https://github.com/pcmoritz/Strada.jl, a Julia library around the Deep Learning framework Caffe http://caffe.berkeleyvision.org/ being developed at Berkeley. For some of the features, have a look at the documentation http://stradajl.readthedocs.org/en/latest/. I

Re: [julia-users] Extra '\n' char while creating a string spaning over two lines

2015-08-26 Thread Jameson Nash
\e is the shorthand for typing the escape character, you will probably want to escape the backslash like so: `\\`. It looks like you may be trying to create a command string, but you've used string delimiters () instead of cmd delimiters (`). Julia always uses the entire literal string (include

Re: [julia-users] Extra '\n' char while creating a string spaning over two lines

2015-08-26 Thread J Luis
\e is the shorthand for typing the escape character, you will probably want to escape the backslash like so: `\\`. Yes, it was a wrong copy past. Other option is to declare the variable as It looks like you may be trying to create a command string, but you've used string delimiters

Re: [julia-users] Re: Very poor performance on Linux

2015-08-26 Thread Steven G. Johnson
On Wednesday, August 26, 2015 at 8:15:18 PM UTC-4, Chris wrote: ERROR: RandomDevice not defined On Wednesday, August 26, 2015 at 6:13:12 PM UTC-4, Stefan Karpinski wrote: Can you do @time RandomDevice() and see how long that takes? RandomDevice() is only in Julia 0.4.

[julia-users] Re: Multiple dispatch confusion

2015-08-26 Thread Andrew
In 0.4 you can do this using callable types, which is a convenient way of encapsulating parameters. That would let you use the syntax u(2.) . Alternatively, why not just drop the default parameters and pass them explicitly? The way I did this recently was to make use of the type system and

[julia-users] Re: IDE for Julia

2015-08-26 Thread Jeffrey Sarnoff
Hi, Deb You noted that you are using Julia-0.3.7. Unless you are required to use 0.3.7, your first step should be installing the current version. you can get it at http://julialang.org/downloads/ There are a couple of IDE efforts underway. They do help, but there is no RStudio-like

Re: [julia-users] Re: PyPlot: How to change the aspect ratio of a plot?

2015-08-26 Thread Daniel Carrera
On 26 August 2015 at 17:14, Nils Gudat nils.gu...@gmail.com wrote: FWIW, I always think the fig/ax syntax aligns best with Python, e.g. fig, ax = PyPlot.subplots(2,2, ...) ax[1,1][:plot](..., linestyle = :, label = ...) ax[1,1][:legend](loc=best) ax[1,2][:hist](..., alpha = 0.5, label =

Re: [julia-users] Request help on the error: symbol lookup error: ...libcholmod.so.. undefined symbol: dpotrf_

2015-08-26 Thread Jameson Nash
Please open this as an issue on github On Wed, Aug 26, 2015 at 10:41 AM Yonghee Lee drago...@gmail.com wrote: Hi! I got an error during sparse Cholesky computation related Mixed Models. So I ran test for MixedModels and I got the same error as below: /usr/bin/julia: symbol lookup error:

[julia-users] Re: How to best define an EulerAngles type

2015-08-26 Thread daniel . matz
Thank you all for your responses! Jeffrey -- Sorry that my wording wasn't clear. I don't want to extract the sequence from the type, I just want to be able to dispatch based on the sequence. My end goal is to have a function that computes a rotation tensor from an Euler sequence, and I would

[julia-users] Re: ANN: Strada.jl -- A deep learning library for Julia based on Caffe

2015-08-26 Thread Jeffrey Sarnoff
thanks for sharing your efforts On Wednesday, August 26, 2015 at 8:53:13 PM UTC-4, Philipp Moritz wrote: I'd like to announce Strada https://github.com/pcmoritz/Strada.jl, a Julia library around the Deep Learning framework Caffe http://caffe.berkeleyvision.org/ being developed at Berkeley.

Re: [julia-users] Re: Pyplot graphic error

2015-08-26 Thread Juan Carlos Cuevas Bautista
Hi Steven, Pyhton returns matplotlib.get_backend() u'Qt4Agg Julia Returns julia PyPlot.matplotlib[:get_backend]() Qt4Agg 2015-08-26 22:17 GMT-04:00 Steven G. Johnson stevenj@gmail.com: On Wednesday, August 26, 2015 at 3:50:09 PM UTC-4, Juan Carlos Cuevas Bautista wrote: Hi Steven,

[julia-users] IDE for Julia

2015-08-26 Thread Deb Midya
Hi, Thanks in advance. I am new to Julia and using Julia-0.3.7 on Windows 8. I am looking for an IDE for Julia (like RStudio in R). Once again, thank you very much for the time you have given.. Regards, Deb

Re: [julia-users] Extra '\n' char while creating a string spaning over two lines

2015-08-26 Thread Tero Frondelius
Maybe the trivial solution is the best solution here: julia string = some text here some text here julia string = string * some more text here some text here some more text here julia On Thursday, August 27, 2015 at 2:36:17 AM UTC+3, J Luis wrote: \e is the shorthand for typing the

[julia-users] Re: IDE for Julia

2015-08-26 Thread Tero Frondelius
From here: http://julialang.org/downloads/ http://julialang.org/downloads/ - The Juno http://www.junolab.org/ integrated development environment (IDE). http://www.junolab.org/ On Thursday, August 27, 2015 at 6:12:22 AM UTC+3, Deb Midya wrote: Hi, Thanks in advance. I am new to

Re: [julia-users] Re: Pyplot graphic error

2015-08-26 Thread Steven G. Johnson
On Wednesday, August 26, 2015 at 3:50:09 PM UTC-4, Juan Carlos Cuevas Bautista wrote: Hi Steven, No, it works perfectly in Python. Is it using a different backend in Python? What does matplotlib.get_backend() return in Python vs. PyPlot.matplotlib[:get_backend]()?