[julia-users] Re: MSys2 package source for BinDeps

2016-05-31 Thread Tony Kelman
No, it's a problem if the package you want to use happens to depend on libgcc or libstdc++ and was built with a different ABI or compiler version than what Julia was built with. It's not that hard to write spec files and submit them to opensuse. The build service even makes new binaries for

[julia-users] Re: MSys2 package source for BinDeps

2016-05-31 Thread Charles Barto
while I understand the possible ABI compatibility issues unless I'm mistaken that should only effect julia programs if the package you are directly depending on has a different ABI between msys2 and WinRPM (in which case you should pick one (probably WinRPM) or prod the upstream repo to update

[julia-users] filter() function edge case, possible bug.

2016-05-31 Thread Anonymous
Consider the code: filter(n -> true, collect(1:0)) this returns a 0-element array. However if I don't collect the iterator into an array: filter(n -> true, 1:0) I get the error Error: TypeError: typeassert: expected AbstractArray{Bool, N}, got Array{Int64, 1} in filter at array.jl:923 It

[julia-users] Parallel read and preprocess variable-length data files

2016-05-31 Thread Joshua Jones
I'm looking for pointers on the best practice for parallel reading and preprocessing several files of variable-length time series data. I have little familiarity with parallelization, so it feels like I'm missing something obvious. I've read the Julia documentation and tried several approaches

[julia-users] Re: What do @_inline_meta and @_propagate_inbounds_meta do?

2016-05-31 Thread Blake Johnson
Those macros are used in abstractarray.jl because at the point in the boostrapping process where that file is loaded, we do not yet have access to @inbounds and @propagate_inbounds. A meta node is a way to pass information about a method to the compiler. --Blake On Tuesday, May 31, 2016 at

[julia-users] Unable to launch remote workers

2016-05-31 Thread Patrick Belliveau
Hi all, I normally launch multiple julia workers across multiple nodes of my research group's cluster from the linux shell prompt using julia --machinefile where each line of the machine file contains the host name of a cluster node accessible via ssh This worked like

[julia-users] Re: Does anyone use BBEditTextWrangler-julia.plist?

2016-05-31 Thread Tony Kelman
Ah, okay. It has some issues as described in https://github.com/JuliaLang/julia/pull/16613#issuecomment-11629, and could use some work to clean it up, write a script to generate it automatically.

Re: [julia-users] package management

2016-05-31 Thread Davide Lasagna
Thanks! On Tuesday, May 31, 2016 at 11:24:50 PM UTC+1, Yichao Yu wrote: > > On Tue, May 31, 2016 at 6:16 PM, Davide Lasagna > wrote: > > Hi, > > > > How do package developers write code that is specific to different julia > > versions? > > > > For example, is

Re: [julia-users] package management

2016-05-31 Thread Yichao Yu
On Tue, May 31, 2016 at 6:16 PM, Davide Lasagna wrote: > Hi, > > How do package developers write code that is specific to different julia > versions? > > For example, is anything like this: > if VERSION < v"0.5-dev" > f(x) = code_that_runs_on_v0.4() > else > f(x)

[julia-users] package management

2016-05-31 Thread Davide Lasagna
Hi, How do package developers write code that is specific to different julia versions? For example, is anything like this: if VERSION < v"0.5-dev" f(x) = code_that_runs_on_v0.4() else f(x) = code_that_runs_on_v0.5() end recommended or is there a better way? My use case is a

Re: [julia-users] Re: Why these 2 functions generate very different llvm?

2016-05-31 Thread 'Tobias Knopp' via julia-users
100% agree. I did not wanted to imply that this is a bug but a "surprising slow pass" (at least for me). So absolutely thumbs up if there is an opportunity of optimizing this case! Cheers, Tobias Am Dienstag, 31. Mai 2016 16:14:27 UTC+2 schrieb Stefan Karpinski: > > This isn't exactly a bug

[julia-users] Re: What do @_inline_meta and @_propagate_inbounds_meta do?

2016-05-31 Thread Davide Lasagna
Thanks Kristoffer. AFAIU these are not supposed to be used in user code. However, the follow up question is what is a meta node? On Monday, May 30, 2016 at 5:21:02 PM UTC+1, Kristoffer Carlsson wrote: > > I believe they insert the corresponding Meta node into the AST before the > actual macros

Re: [julia-users] Re: Calculus.hessian result oddities

2016-05-31 Thread Patrick Kofod Mogensen
File an issue :) On Tuesday, May 31, 2016 at 6:59:24 PM UTC+2, Boylan, Ross wrote: > > I believe Calculus.hessian does finite differences. I had not expected it > to computer both h[i, j] and h[j, i], since they should be the same. That > is, AFAIK they are the same mathematically;

[julia-users] Re: Access attribute (field) using symbol (or string)

2016-05-31 Thread Femto Trader
I got it getfield(v, :x) Sorry Le mardi 31 mai 2016 20:54:02 UTC+2, Femto Trader a écrit : > > Hello, > > I have a type like > > type V > x::Float64 > y::Float64 > z::Float64 > end > > v = V(1.0,2.0,3.0) > > I read on http://docs.julialang.org/en/release-0.4/devdocs/reflection/ >

[julia-users] Re: can't get pyjulia to work

2016-05-31 Thread Páll Haraldsson
On Friday, May 27, 2016 at 12:07:40 PM UTC, Nirav Shah wrote: > > I tried this for first time today and I see same exact error :( > I can run PyCall and it's version is 1.6.1+. So I assume problem is in > pyjulia > >From memory, in some of the issues mentioned: You muse use/pin version 1.3.0

Re: [julia-users] Access attribute (field) using symbol (or string)

2016-05-31 Thread Yichao Yu
On May 31, 2016 2:54 PM, "Femto Trader" wrote: > > Hello, > > I have a type like > > type V > x::Float64 > y::Float64 > z::Float64 > end > > v = V(1.0,2.0,3.0) > > I read on http://docs.julialang.org/en/release-0.4/devdocs/reflection/ > that > fieldnames(v) >

[julia-users] Access attribute (field) using symbol (or string)

2016-05-31 Thread Femto Trader
Hello, I have a type like type V x::Float64 y::Float64 z::Float64 end v = V(1.0,2.0,3.0) I read on http://docs.julialang.org/en/release-0.4/devdocs/reflection/ that fieldnames(v) returns attributes of v as symbol I would like to access to field x using either :x symbol (or "x"

Re: [julia-users] Signal / slot (or publish-subscribe) libraries in Julia

2016-05-31 Thread Femto Trader
Here is my very basic implementation #= A very basic signal / slot library Usage: function myslot01(args...; kwargs...) println("myslot01 with $args and $kwargs") end function myslot02(args...; kwargs...) println("myslot02 with $args and $kwargs") end function myslot03(a,b; x=-1,

[julia-users] Re: What is the difference between bitwise and logical operators?

2016-05-31 Thread Ford Ox
On Tuesday, May 31, 2016 at 8:24:43 PM UTC+2, Kristoffer Carlsson wrote: > > https://youtu.be/dK3zRXhrFZY?t=600 Thanks!

[julia-users] Re: Does anyone use BBEditTextWrangler-julia.plist?

2016-05-31 Thread Femto Trader
I use it !!! Le mardi 31 mai 2016 16:49:20 UTC+2, Tony Kelman a écrit : > > Agreed, but that can wait until someone wants to resurrect it and use it. > If such a person comes upon this thread some time in the future, the > removal PR was https://github.com/JuliaLang/julia/pull/16637, and you

[julia-users] Re: What is the difference between bitwise and logical operators?

2016-05-31 Thread Kristoffer Carlsson
https://youtu.be/dK3zRXhrFZY?t=600

Re: [julia-users] Bitstype

2016-05-31 Thread Ford Ox
I wanted to discard that question, since I wasn't aware, that today computers are usually byte addressable.

Re: [julia-users] Bitstype

2016-05-31 Thread Stefan Karpinski
Yes and yes. On Tue, May 31, 2016 at 12:38 PM, Ford Ox wrote: > Why can bitstype be only multiples of eight? > Will this ever change? > If yes, will it be possible to create bitstype of any length (1, 3, 13...)? >

RE: [julia-users] Re: Calculus.hessian result oddities

2016-05-31 Thread Boylan, Ross
I believe Calculus.hessian does finite differences. I had not expected it to computer both h[i, j] and h[j, i], since they should be the same. That is, AFAIK they are the same mathematically; numerically some differences dependent on the order of operations seem inevitable. The double

[julia-users] Re: What is the difference between bitwise and logical operators?

2016-05-31 Thread Ford Ox
As a side note. Are add_int(), box() and unbox() implemented in c? I was trying to find their declaration but was not successful.

[julia-users] Re: Using Julia for real time astronomy

2016-05-31 Thread Páll Haraldsson
On Monday, May 30, 2016 at 8:19:34 PM UTC, Tobias Knopp wrote: > > If you are prepared to make your code to not perform any heap allocations, > I don't see a reason why there should be any issue. When I once worked on a > very first multi-threading version of Julia I wrote exactly such functions

[julia-users] Bitstype

2016-05-31 Thread Ford Ox
Why can bitstype be only multiples of eight? Will this ever change? If yes, will it be possible to create bitstype of any length (1, 3, 13...)?

[julia-users] Re: Using Julia for real time astronomy

2016-05-31 Thread Páll Haraldsson
On Monday, May 30, 2016 at 12:10:39 PM UTC, Uwe Fechner wrote: > > I think, that would be difficult. > > As soon as you use any packages for image conversion or estimation you > have to assume that they use dynamic memory allocation. > > The garbage collector of Julia is fast, but not suitable

[julia-users] Re: Does anyone use BBEditTextWrangler-julia.plist?

2016-05-31 Thread Tony Kelman
Agreed, but that can wait until someone wants to resurrect it and use it. If such a person comes upon this thread some time in the future, the removal PR was https://github.com/JuliaLang/julia/pull/16637, and you can restore the state of the file from immediately before it was deleted at

Re: [julia-users] Re: Why these 2 functions generate very different llvm?

2016-05-31 Thread Stefan Karpinski
This isn't exactly a bug since the answer is correct, it's an optimization that we don't yet do. (If all of those are bugs then every language implementation has an infinite number of bugs.) But yes, fixing this is on track. There's been a lot of recent work on Julia's IR which should make this

[julia-users] Re: Getting sequence of time and subset it

2016-05-31 Thread akrun
Many thanks for the solution and it works well with the example posted. But, if I have missing values in one of the columns, it throws an error. sdt2 = DataFrame(ID = 1:2, StartTime = DateTime(["4/13/2016 07:00", "4/13/2016 07:15"], "m/d/y H:M"), EndTime =

[julia-users] Re: Quadratic equation solver ?

2016-05-31 Thread Kristoffer Carlsson
You would probably get more focused help in https://groups.google.com/forum/#!forum/julia-opt On Tuesday, May 31, 2016 at 12:59:49 PM UTC+2, tann...@gmail.com wrote: > > which one is a good solver(open source) for quadratic equation using jump > ? Thank you >

Re: [julia-users] Re: Quadratic equation solver ?

2016-05-31 Thread Michele Zaffalon
JuMP is a modeling language for linear and quadratic optimization problems, see http://www.juliaopt.org/ On Tue, May 31, 2016 at 1:26 PM, Mosè Giordano wrote: > which one is a good solver(open source) for quadratic equation using jump >> ? Thank you >> > > What is

[julia-users] Re: Quadratic equation solver ?

2016-05-31 Thread Mosè Giordano
> > which one is a good solver(open source) for quadratic equation using jump > ? Thank you > What is jump? PolynomialRoots.jl is a package to find all roots (real and complex, they will have always Complex type) of polynomials of any degree,

Re: [julia-users] Re: Double free or corruption (out)

2016-05-31 Thread 'Bill Hart' via julia-users
We are also suddenly getting crashes with 2.4.5. when running our (Nemo) test suite. It says that some memory allocation is failing due to invalid next size. I suspect there is a bug that wasn't there until the last few days, since we were passing just fine on Travis. Though at this stage, I

[julia-users] Re: What should Julia do on "Ubuntu compatibility mode in Windows 10"?

2016-05-31 Thread lovebufan
Just run Ubuntu version of Julia on Ubuntu mode on windows 10. Everything seems good. On Sunday, April 3, 2016 at 3:27:04 AM UTC+8, Páll Haraldsson wrote: > > I guess just run as a regular Linux ELF binary.. > > Since the news, and Windows Julia works, we can just ignore and run Julia > in

[julia-users] Quadratic equation solver ?

2016-05-31 Thread tannirind
which one is a good solver(open source) for quadratic equation using jump ? Thank you

Re: [julia-users] Re: Double free or corruption (out)

2016-05-31 Thread Nils Gudat
Resurrecting this very old thread - after having been able to solve the model with no seg faults over the last couple of months, they have now returned and occur much faster (usually within 2 hours of running the code). I have refactored the code a little so that it hopefully will be possible

Re: [julia-users] keyword arguments and anonymous function - ERROR: syntax: "begin args... kwargs... end" is not a valid function argument name

2016-05-31 Thread Mauro
> How can I update to this version ? You can download it (http://julialang.org/downloads/ nightly builds) or build it yourself. Best to have both 0.4 and 0.5 installed. But note that 0.5 is in development, i.e. not stable! > Is it sure enough to do it ? ? > If 0.5 is not released, when it

Re: [julia-users] keyword arguments and anonymous function - ERROR: syntax: "begin args... kwargs... end" is not a valid function argument name

2016-05-31 Thread Femto Trader
How can I update to this version ? Is it sure enough to do it ? If 0.5 is not released, when it will be ? https://github.com/JuliaLang/julia/issues?utf8=%E2%9C%93=is%3Aissue+is%3Aopen+roadmap or https://github.com/JuliaLang/julia/issues?utf8=%E2%9C%93=is%3Aissue+is%3Aopen+0.5 doesn't help Le

[julia-users] Re: Calculus.hessian result oddities

2016-05-31 Thread Kristoffer Carlsson
Doesn't Calculu's Hessian just do finite difference? There will naturally be floating point errors. isposdef returns false if the matrix is not hermitian, under the hood, potrf from Lapack is used which work with hermitian matrices. On Tuesday, May 31, 2016 at 7:04:04 AM UTC+2, Boylan, Ross

Re: [julia-users] keyword arguments and anonymous function - ERROR: syntax: "begin args... kwargs... end" is not a valid function argument name

2016-05-31 Thread Mauro
This works on 0.5, where anonymous functions are almost like normal functions now. On Tue, 2016-05-31 at 09:26, Femto Trader wrote: > Hello, > > I'm trying to define an anonymous function > > > julia> (args...) -> begin >println("hello anonymous func with

[julia-users] keyword arguments and anonymous function - ERROR: syntax: "begin args... kwargs... end" is not a valid function argument name

2016-05-31 Thread Femto Trader
Hello, I'm trying to define an anonymous function julia> (args...) -> begin println("hello anonymous func with args") end (anonymous function) works correctly A "classic" with keywords arguments can be define using julia> function f(args...; kwargs...)

Re: [julia-users] Re: ANN: FileIO.jl, for loading and saving formatted files

2016-05-31 Thread David van Leeuwen
Hello, Picking up an old thread... I am looking for a way to trigger a specific constructor when loading an object from a JLD file. FileIO detects the files are JLD, and that is great, but it would be cool if it could trigger my constructor `MyModule.MyType(objectfromjld)` when -