Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread J Luis
I want to add my voice to the dislikers. Those are the type of surprises that are not welcome mainly for matlab users. quarta-feira, 30 de Setembro de 2015 às 16:53:57 UTC+1, Christoph Ortner escreveu: > > I also strongly dislike the `linspace` change; I like the idea though of > having

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Alex Ames
Another downvote on linspace returning a range object. It seems odd for linspace and logspace to return different types, and linrange provides the low-memory option where needed. Numpy's `linspace` also returns an array object. I ran into errors when trying to plot a function over a linspace

[julia-users] Re: `broadcast` should have returned the BitArray type?

2015-09-30 Thread Sisyphuss
Thanks! On Wednesday, September 30, 2015 at 8:30:17 PM UTC+2, Carlo Baldassi wrote: > > There is the "bitbroadcast" function specifically for this purpose. > > On Tuesday, September 29, 2015 at 10:17:03 AM UTC-4, Sisyphuss wrote: >> >> [1;3] .> 2 >> >> 2-element BitArray{1}: >> false >> true

[julia-users] Re: Deploying Julia libraries

2015-09-30 Thread Steven G. Johnson
Just install the packages into some directory, and add that directory to the LOAD_PATH. You can also precompile them and put the .ji files in some directory that you add to the LOAD_CACHE_PATH path. That way your users will get a fixed set of packages at a known version, won't need

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Milan Bouchet-Valat
Le mercredi 30 septembre 2015 à 10:31 -0700, Alex Ames a écrit : > Another downvote on linspace returning a range object. It seems odd > for linspace and logspace to return different types, and linrange > provides the low-memory option where needed. Numpy's `linspace` also > returns an array

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Steven G. Johnson
On Wednesday, September 30, 2015 at 1:31:55 PM UTC-4, Alex Ames wrote:\ > > I ran into errors when trying to plot a function over a linspace of x > values, since plotting libs currently expect vectors as arguments, not > range objects. Easily fixed if you know Julia well, but Matlab/Python >

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Steven G. Johnson
On Wednesday, September 30, 2015 at 2:51:46 PM UTC-4, Christoph Ortner wrote: > > I, on the other hand, don't understand the obsession with abstraction. > > Also, by your argument the following should all be special types rather > than box-standard arrays. > > julia> typeof(ones(10)) >

Re: [julia-users] julia unikernel - rumprun

2015-09-30 Thread Martin Somers
Stefan can you think of any dependencies why it wouldnt work :) >> if I get a free day might try and look into seeing how far I get with it --- could be useful for a project Im working on On Wednesday, 30 September 2015 16:44:52 UTC+1, Stefan Karpinski wrote: > > I don't know of any work

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Mauro
> I, on the other hand, don't understand the obsession with abstraction. I guess reasons to use a high-level language differ, which is good. As long as we don't get too obsessive ;-) > Also, by your argument the following should all be special types rather > than box-standard arrays. > > julia>

Re: [julia-users] Re: Help reading structured binary data files

2015-09-30 Thread David McInnis
Ah, thank you.. that's much nicer. @Tom and Patrick I like the idea but don't understand how to specify say a string. ?? field1::Uint16 # makes sense but how to do multiple numbers? field2::asciistringofXbytes -or- Xbytes and I'll convert it later whee, a fire alarm. On

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Mauro
I don't understand this obsession with wanting to store a bunch of numbers in memory which trivially compress. Even more so as most numerical computations are memory bound, so storing more stuff is bad. All the interface functions work with a range (or if not a bug report should be filed), apart

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Hai Nguyen
I myself do not care much about Julia or python speed since I can write fast code in Cython (C/C++ speed with Python syntax sugar). There are several features in Julia I like much (and I think they can be good selling points). * CFFI: great that we can call C function easily. * Parallel: I very

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Christoph Ortner
I, on the other hand, don't understand the obsession with abstraction. Also, by your argument the following should all be special types rather than box-standard arrays. julia> typeof(ones(10)) Array{Float64,1} julia> typeof(zeros(10)) Array{Float64,1} julia> typeof(eye(10)) Array{Float64,2}

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Christoph Ortner
I wasn't even aware that linspace in Python also gives an array. What about R? I think some consistency with existing terminology is useful, at the very least for early adopter.

[julia-users] Re: `broadcast` should have returned the BitArray type?

2015-09-30 Thread Carlo Baldassi
There is the "bitbroadcast" function specifically for this purpose. On Tuesday, September 29, 2015 at 10:17:03 AM UTC-4, Sisyphuss wrote: > > [1;3] .> 2 > > 2-element BitArray{1}: > false > true > > > = > > broadcast(>,[1;3],2) > > 2-element Array{Int64,1}: > 0 > 1 > > > = > > Is the

Re: [julia-users] Options fail with Julia 0.4?

2015-09-30 Thread Mauro
Unless someone else knows a fix, could you to put together a small test case and file an issue with Options.jl? On Wed, 2015-09-30 at 18:33, Jan Kybic wrote: > Hello, >after switching to from Julia 0.3 to Julia 0.4 (release > candidate 3), the Options package

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Art Kuo
Since range and array are more or less interchangeable computationally (but not memory-wise), I suspect the main issue is how a range object should be reported in the REPL. Julia REPL already tries to be smart about reporting an array, either listing out all the elements or showing the

[julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Tomas Lycken
You don’t think Julia does that? […] But not-so-well written Julia code should be at least as fast as Python. Don’t you think so? Yes, I do think so (but there are still lots of examples of new users who manage to write Julia code that’s slower by orders of magnitude compared to

Re: [julia-users] restricting the type of bitstype type parameters

2015-09-30 Thread Tom Lee
With the latest master I still get "ERROR: syntax: malformed type parameter list". Possibly I was not clear (I was actually going to clarify, but I accidentally hit 'post' prematurely...). Note that the second type parameter is `n::Integer` rather than `n<:Integer`, in other words, I want

[julia-users] Re: REPL: show( io::IO, x::Array{my_object,1} ) = ... overwrite

2015-09-30 Thread 'Greg Plowman' via julia-users
I think I have a similar question. I have defined a type (it happens to be a subtype of AbstractArray). Also I have defined Base.show(io::IO, A::MyArray), so that show(A) works as I want. But the REPL doesn't seem to use show. i.e. typing A at the REPL produces default output. How can I get the

[julia-users] Help with a macro

2015-09-30 Thread Kristoffer Carlsson
Hello everyone, I am trying to write a macro that transforms an expression like: @foo v[1,2] + v[1,3]*v[2,4] -> v[I[1,2]] + v[I[1,3]]*v[I[2,4]] Basically, for each getindex I want to insert a lookup of the index in some other variable. The reason for this is that I am working with matrices

[julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Andreas Lobinger
Hello colleagues, On Tuesday, September 29, 2015 at 11:30:19 AM UTC+2, Sisyphuss wrote: > > While waiting Julia 0.4 stabilizing, let's do some brainstorming. > btw: it's not "waiting for Julia 0.4 stabilizing", the correct thing is: While we test release candidates of Julia 0.4 to help it

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Tamas Papp
On Wed, Sep 30 2015, Tomas Lycken wrote: > You can get Python-like performance without getting computer-sciency. > > Again, the problem is not reaching Python-like performance, but rather *not > beating Python by enough*. Raw speed is a red herring. For many applications

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Michele Zaffalon
Just curious: linspace returns a Range object, but logspace returns a vector because there is no much use case for a LogRange object? @feza: I have also seen the deprecation warning going away after a couple of calls, but I am not sure why. If you restart Julia, the deprecations reappear. On

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

2015-09-30 Thread David van Leeuwen
Hello Tim and Simon, I'd be very interested in this, for MFCCs.jl and perhaps GaussianMixtures.jl. They currently use HDF5 and JLD, respectively, and I don't think I've put in any magic. - is it wise to put in magic, even with container formats such as HDF5? - do you prefer questions

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread feza
FYI this discussion is in relation to Julia 0.4. Initially I had some deprecation warnings but they have mostly gone away. I have no real objection, perhaps it's just a little weird that the repl returns julia> x linspace(0.0,10.0,50) as opposed to printing it out like a full array. Perhaps

[julia-users] Re: Why is multiplying an array ok, but dividing is not?

2015-09-30 Thread Matt Bauman
Use ./ and .^ Whereas multiplying a matrix by a scalar is well-defined in linear algebra, dividing by a matrix has a very specific meaning which requires the a square matrix. Same with exponentiation. The dot-prefixed operators explicitly work elementwise. On Wednesday, September 30, 2015

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Luke Stagner
My main objection is that changing the behaviour of linspace is superfluous considering linrange already existed. If the goal was to encourage users to use a range instead of an array that should of been done through documentation through something like a best practices section (e.g. Use

[julia-users] cannot open files in julia on Fedora 22

2015-09-30 Thread Stephan Buchert
Since today julia refuses to open files for me: [scb@stride swarm]$ julia -f _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "help()" for help. | | | | | | |/ _`

[julia-users] Why is multiplying an array ok, but dividing is not?

2015-09-30 Thread David McInnis
Using julia 0.3. I'm just beginning to learn julia.. So.. 10 * [1:3] is fine 10 / [1:3] is an error 10 ^ [1:3]also erroneous Why? This seems strange to me. I did figure out I could use something like:broadcast(/, 10, [1:]) so the functionality is there, but why would /

[julia-users] getting covariance quickly

2015-09-30 Thread Jude
Hi, I have a column vector in which the first T elements belong to the first simulation, the next T elements belong to the second simulation and so on so it is of length T*simulations. I want to find the covariance between the data at t and t+2, for example, if it was a =

Re: [julia-users] Re: Documentation of operators

2015-09-30 Thread Steven G. Johnson
On Wednesday, September 23, 2015 at 8:07:06 PM UTC-4, Erik Schnetter wrote: > > Yes, operators are difficult to search for. There should be a table of > them... > > The only exhaustive table that I know of (for things that are parsed as

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Christoph Ortner
On Wednesday, 30 September 2015 20:58:31 UTC+1, Luke Stagner wrote: > > My main objection is that changing the behaviour of linspace is > superfluous considering linrange already existed. If the goal was to > encourage users to use a range instead of an array that should of been done >

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Steven G. Johnson
On Wednesday, September 30, 2015 at 4:01:17 PM UTC-4, Christoph Ortner wrote: > > I simply dislike is that linspace does not behave as expected, and I > expect that this is the main reason for other as well. To give an extreme > analogy, we don't go around and start defining A * B = A + B

[julia-users] Re: Julia Meetup Ghent University, Sept 29

2015-09-30 Thread Ben Lauwens
Hi Ken Thanks for the organisation of this very successful event! My colleagues really appreciated the tutorial and I had no idea that Julia was already used in business. I will do my best to organise a second Julia Meetup in Belgium at the end of January, starting of February. Kind regards

Re: [julia-users] Why is multiplying an array ok, but dividing is not?

2015-09-30 Thread Milan Bouchet-Valat
Le mercredi 30 septembre 2015 à 14:02 -0700, David McInnis a écrit : > Using julia 0.3. > > I'm just beginning to learn julia.. > > So.. > 10 * [1:3] is fine > 10 / [1:3] is an error > 10 ^ [1:3]also erroneous > > Why? This seems strange to me. > > I did figure out I could

[julia-users] Re: Vector of Matrices - a good or bad idea?

2015-09-30 Thread Patrick Kofod Mogensen
Perfect, thank you for the explanation. (I didn't see your response until now). It doesn't seem as if the [A; B] syntax creates a vector of matrices though, it creates an Array{T, 2} here. julia> A=[1. 2; 3 5] 2x2 Array{Float64,2}: 1.0 2.0 3.0 5.0 julia> B=[0. 0; 0 0] 2x2

[julia-users] issue with "plot"

2015-09-30 Thread Michela Di Lullo
Hello everyone, When I try to use the *plot* command from Graphs.jl I got this error: *plot(g)* *ERROR: could not spawn `neato -Tx11`: no such file or directory (ENOENT)* * in _jl_spawn at process.jl:217* * in spawn at process.jl:348* * in open at

[julia-users] Re: Juno+Julia installation

2015-09-30 Thread Lionel
Dear all, I think this post answers to the question : https://developer.appcelerator.com/question/157476/ xcodeios-license-requires-admin-privileges-error-in-ios-7-compile Sincerely, Lionel

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Christoph Ortner
On Wednesday, 30 September 2015 20:27:02 UTC+1, Matt Bauman wrote: > > There can be reasons where a special read-only `Ones` array type is > beneficial: http://stackoverflow.com/a/30968709/176071. It's just five > lines of code, and Julia/LLVM is able to optimize it such that >

Re: [julia-users] restricting the type of bitstype type parameters

2015-09-30 Thread Tim Holy
Sorry, I saw the <: but not the ::Integer. Indeed, that doesn't work. --Tim On Tuesday, September 29, 2015 11:30:06 PM Tom Lee wrote: > With the latest master I still get "ERROR: syntax: malformed type parameter > list". > > Possibly I was not clear (I was actually going to clarify, but I >

Re: [julia-users] Help with a macro

2015-09-30 Thread Kristoffer Carlsson
Because it would imo raise the barrier to use a lot. A new type is sort of viral in the sense that if you use it, it is likely that you should use the type everywhere you are using Voigt Tensors. I want this to be directly usable even if you have written all your FEM code with Vector{Float64}

Re: [julia-users] Help with a macro

2015-09-30 Thread Mauro
> Hello everyone, > > I am trying to write a macro that transforms an expression like: > > @foo v[1,2] + v[1,3]*v[2,4] -> v[I[1,2]] + v[I[1,3]]*v[I[2,4]] > > Basically, for each getindex I want to insert a lookup of the index in some > other variable. > The reason for this is that I am working

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Michele Zaffalon
On Wed, Sep 30, 2015 at 9:50 AM, Milan Bouchet-Valat wrote: > Le mercredi 30 septembre 2015 à 08:55 +0200, Michele Zaffalon a écrit : > > Just curious: linspace returns a Range object, but logspace returns a > > vector because there is no much use case for a LogRange object? >

Re: [julia-users] metaprogramming, building full Expr

2015-09-30 Thread Mauro
The easiest and usually best way is to use quotes and interpolate into them: fname = :f1 :($fname(x::Int) = x+31) But that does not always work. Then you have to resort to manipulating expressions which is a bit complicated. xdump is your friend. Also note that you can construct them like so:

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Michele Zaffalon
I just realize that the thread is about 0.3.11 and I am showing output for 0.4.0-rc2. Sorry for the noise. On Wed, Sep 30, 2015 at 11:17 AM, Michele Zaffalon < michele.zaffa...@gmail.com> wrote: > > On Wed, Sep 30, 2015 at 9:50 AM, Milan Bouchet-Valat > wrote: > >> Le

[julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Andrei Zh
Coming back to the original question about success of Python, I'd stress these points: * it's *simple*. for both - programmers and non-programmers * it's a *system language* for most Unix-like operations systems * it has very strong *scientific stack* (read as: has a lot of mature

Re: [julia-users] Help with a macro

2015-09-30 Thread Mauro
On Wed, 2015-09-30 at 13:04, Kristoffer Carlsson wrote: > Because it would imo raise the barrier to use a lot. A new type is sort of > viral in the sense that if you use it, it is likely that you should use the > type everywhere you are using Voigt Tensors. > > I want this

[julia-users] metaprogramming, building full Expr

2015-09-30 Thread Andreas Lobinger
Hello colleagues, one of the USPs of julia is (should be) metaprogramming i.e. creating programs by running other programs. I'm playing around with Expr to create functions, but this look more complicated than the actual job... # three versions function f1(x::Int64) x+31 end function

Re: [julia-users] Help with a macro

2015-09-30 Thread Mauro
I see. Why are you not making a new type to allow getindex overloading? That would be more work but maybe cleaner? On Wed, 2015-09-30 at 11:10, Kristoffer Carlsson wrote: > I am not sure that I want Ragged Arrays, In my code I have symmetric 3x3 > matrices stored as

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

2015-09-30 Thread Tim Holy
Probably best as an issue over at FileIO. --Tim On Wednesday, September 30, 2015 01:24:25 AM David van Leeuwen wrote: > Hello Tim and Simon, > > I'd be very interested in this, for MFCCs.jl and perhaps > GaussianMixtures.jl. They currently use HDF5 and JLD, respectively, and I > don't think

[julia-users] Troubles with library build

2015-09-30 Thread jonathan . bieler
I'm trying to build up-to-date binaries for GtkSourceView using MSYS2/MinGW-w64 but I don't manage to get them working with Julia. When I try to ccall a function it gives me a: ERROR: LoadError: could not load library "libgtksourceview-3.0-1.dll" The specified procedure could not be found. In

Re: [julia-users] Help with a macro

2015-09-30 Thread Kristoffer Carlsson
I am not sure that I want Ragged Arrays, In my code I have symmetric 3x3 matrices stored as vectors of length 6 and unsymmetric 3x3 matrices stored as vectors of length 9. As I know you do some FEM Mauro I can describe my problem more specifically. I am writing a package do more easily deal

[julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Matthew Pearce
One big pull for python is the ecosystem. Almost any task has a python package available. However, there are gaps. For all the strength of scipy + numpy, there are serious gaps. For instance in methods for sparse matrices, and CUDA bindings. It's those gaps that brought me here. Also, pip is

[julia-users] Re: Troubles with library build

2015-09-30 Thread Tony Kelman
Check them in dependency walker to see if there are any differences in dependency dll's. They also could have easily been built with completely different toolchains. On Wednesday, September 30, 2015 at 3:20:32 AM UTC-7, jonatha...@alumni.epfl.ch wrote: > > I'm trying to build up-to-date

Re: [julia-users] Pkg dependence on git://

2015-09-30 Thread Isaiah Norton
You can change this globally. Search for "insteadOf" in the readme. Trying both for every clone might be kind of slow. On Sep 30, 2015 9:06 AM, "Matthew Pearce" wrote: > > Hi > > I'm just getting into Julia. It seems that, out of the box, Pkg is dependent on being able to

[julia-users] Re: Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-30 Thread Matthew Pearce
If it's any consolation your line "git config --global url."https://".insteadOf git://" has helped me out of a bind! On Friday, September 25, 2015 at 8:29:14 PM UTC+1, Evan Fields wrote: > > I've been encountering problems with packages. Here's what happened: > >- I installed Julia 0.3.11

[julia-users] Pkg dependence on git://

2015-09-30 Thread Matthew Pearce
Hi I'm just getting into Julia. It seems that, out of the box, Pkg is dependent on being able to call 'git clone git://blah' type addresses. For some reason my network doesn't support that. INFO: Cloning cache of ArrayViews from git://github.com/JuliaLang/ArrayViews.jl.git fatal: unable to

[julia-users] Re: Troubles with library build

2015-09-30 Thread jonathan . bieler
Seems my version as a problem yes that the working version doesn't, it's looking for DLLMain in libgdk_pixbuf: http://i.imgur.com/YKFat0W.png Is this something that can be easily be fixed ? otherwise I'll just use the precompiled version.

[julia-users] Re: fminbox question

2015-09-30 Thread Ken B
*Strange, it works fine for me (see example below). Which version of julia and optim.jl are you on? Do you type `using Optim` or are you just importing the `optimize` function of the package?* *julia> **function func(x::Vector) #rosenbrock* *return (1.0 - x[1])^2 + 100.0 * (x[2]

[julia-users] issue with "plot"

2015-09-30 Thread Tony Kelman
I believe neato is a command from graphviz. On mac that would be easiest to install via homebrew, brew install graphviz

[julia-users] Re: fminbox question

2015-09-30 Thread Tony Kelman
Julia 0.2.0 is nearly two years old, and very few packages are still actively tested against it. Please upgrade to a more recent version, either 0.3.11 or the release candidate for 0.4.0.

Re: [julia-users] julia unikernel - rumprun

2015-09-30 Thread Stefan Karpinski
Places where Julia assumes that it has an OS? Nah, can't think of any of those. But seriously, if any work has been done to get libuv working with rump kernels, that would be the place to start. On Wed, Sep 30, 2015 at 2:41 PM, Martin Somers wrote: > Stefan can you

[julia-users] Re: Julia Meetup Ghent University, Sept 29

2015-09-30 Thread Scott Jones
I've already heard back very good reports from my Belgian colleagues about last night's meeting, I was very envious of them being able to go to the meeting! On Friday, September 11, 2015 at 5:36:22 AM UTC-4, Ken B wrote: > > Hi all, > > I'm organising a first Julia meetup in Belgium. > > We'll

[julia-users] Re: fminbox question

2015-09-30 Thread Weichi Ding
Thanks, Ken. Julia : Version 0.2.0-rc2+54 Optim: v0.1.3 yes, I type "using Optim" Best, Weichi On Wednesday, September 30, 2015 at 2:39:20 PM UTC-7, Ken B wrote: > > *Strange, it works fine for me (see example below). Which version of julia > and optim.jl are you on? Do you type `using

[julia-users] Re: Vector of Matrices - a good or bad idea?

2015-09-30 Thread Steven G. Johnson
As I said, [A; B] concatenates vertically into a single matrix. For an array of arrays, do typeof(A)[A, B]. In a future Julia version you will be able to do just [A, B].

Re: [julia-users] Package badge URLs for nightly build

2015-09-30 Thread Júlio Hoffimann
I'll proceed and update the URLs. Thanks, -Júlio

Re: [julia-users] Re: Deploying Julia libraries

2015-09-30 Thread Sebastian Good
Setting JULIA_PKGPATH lets me put everything in a more amenable spot, but transporting everything over to another identical machine results in inconsistent behavior with precompiled binaries. They are always “stale”. Is there a good resource to consult to understand binary staleness? Thanks On

[julia-users] Parallel Computing and I/O

2015-09-30 Thread Raniere Silva
Hi, let say that I have one file called sample.txt at two machines and I want to write a Julia script that 1. Read X lines of sample.txt from both machines and process the 2 * X lines at one of the machines. 2. Read more X lines of sample.txt from both machines and process the new 2 *

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Christoph Ortner
On Wednesday, 30 September 2015 21:42:33 UTC+1, Steven G. Johnson wrote: > > > > On Wednesday, September 30, 2015 at 4:01:17 PM UTC-4, Christoph Ortner > wrote: >> >> I simply dislike is that linspace does not behave as expected, and I >> expect that this is the main reason for other as well.

[julia-users] Re: Vector of Matrices - a good or bad idea?

2015-09-30 Thread Patrick Kofod Mogensen
Gotcha, thought you said that [A, B] worked now. On Wednesday, September 30, 2015 at 8:12:31 PM UTC-4, Steven G. Johnson wrote: > > As I said, [A; B] concatenates vertically into a single matrix. For an > array of arrays, do typeof(A)[A, B]. In a future Julia version you will be > able to do

Re: [julia-users] restricting the type of bitstype type parameters

2015-09-30 Thread Tom Lee
Hi Jameson, do you have any link to information on why "doing dispatch on Val is probably a bad idea"? Or is it just putting a static parameter inside Val that you object to? Certainly my example case has better alternatives (it was just for illustration), but I have found wrapping Bools in a

Re: [julia-users] Nicer syntax collect(linspace(0,1,n))?

2015-09-30 Thread Sheehan Olver
The timings seem to be a sign that special functions over ranges are not yet optimized, see variants below using comprehensions that do much better. Note also that collect uses 2x the memory with only a 30% speedup (or 10% slow down, if you also count the time to collect). julia> function

Re: [julia-users] Package badge URLs for nightly build

2015-09-30 Thread Júlio Hoffimann
Anyone has this info? -Júlio 2015-09-29 10:56 GMT-07:00 Júlio Hoffimann : > Hi, > > Could you please confirm the badge URLs for nightly builds are obsolete > and that I have to use a specific Julia version now? >

[julia-users] Why Julia uses GitHub to maintain package index?

2015-09-30 Thread Andrei Zh
First of all, thanks to all developers of current packaging system in Julia - it has very convenient REPL-based interface, graceful treatment of binary dependencies and it never was that easy to make and submit changes to existing packages. So please don't consider this post as critique, but

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Christian Peel
One could also ask what the reason for the success of Matlab and R; I don't know R, but I can speak a bit about Matlab. 1) Matlab has great high-level vectorized notation. If you're a student or engineer, it's dramatically easier to solve a linear system in Matlab (x=inv(A)*b) than it is in

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Tamas Papp
On Wed, Sep 30 2015, Christian Peel wrote: > 1) Matlab has great high-level vectorized notation. If you're a student or > engineer, it's dramatically easier to solve a linear system in Matlab > (x=inv(A)*b) than it is in many other languages. Julia has at least this You

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Michele Zaffalon
On Wed, Sep 30, 2015 at 4:32 PM, Tamas Papp wrote: > On Wed, Sep 30 2015, Christian Peel wrote: > > > 1) Matlab has great high-level vectorized notation. If you're a student > or > > engineer, it's dramatically easier to solve a linear system in Matlab >

[julia-users] Deploying Julia libraries

2015-09-30 Thread Sebastian Good
With the release of v0.4 imminent, I thought I'd see what the latest thinking was on deploying Julia libraries (or even executables) to foreign machines. I see several steps required to run a Julia program: 1. Install Julia. This is easy enough to do in a system image. 2. Add/clone packages.

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Art Kuo
> (x=inv(A)*b) than it is in many other languages. Julia has at least this > > You shouldn't ever do this (in either Julia or Matlab, or any language), > it is ill-conditioned for general matrices. I think the Matlab function > is linsolve. > > Perhaps more precise to say "A\b is always

[julia-users] Re: Help reading structured binary data files

2015-09-30 Thread David McInnis
Sorry for the slow response, was called away. As a starting place I'll try to stick with the builtin routines first. With Stefan's idea I've got something that works though I don't see a way to make it more.. ummm... elegant. Here's where I'm at: myfile = "dnp.sam" dnp = { "File" => myfile

[julia-users] Options fail with Julia 0.4?

2015-09-30 Thread Jan Kybic
Hello, after switching to from Julia 0.3 to Julia 0.4 (release candidate 3), the Options package stopped working for me. I have several modules, in each I call require("Options") using OptionsMod A function from one module is called either from the same module or from another

[julia-users] IPython keeps giving Kernel error

2015-09-30 Thread Shubham Bhushan
My Julia kernel was working perfectly with Jupyter and Juno However it has suddenly stopped connecting with the ipython notebook. Any ideas as to why this might have happened along with possible solutions? Thanks.

Re: [julia-users] julia unikernel - rumprun

2015-09-30 Thread Stefan Karpinski
I don't know of any work towards this, but it's a very interesting possibility. On Wed, Sep 30, 2015 at 12:35 AM, Martin Somers wrote: > Hi > Just wondering if anyone might have any insight if this might be possible > to do with Julia - ie run Julia as a unikernel under

Re: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread Tamas Papp
On Wed, Sep 30 2015, Michele Zaffalon wrote: > On Wed, Sep 30, 2015 at 4:32 PM, Tamas Papp wrote: > >> On Wed, Sep 30 2015, Christian Peel wrote: >> >> > 1) Matlab has great high-level vectorized notation. If you're a student

[julia-users] Re: IPython keeps giving Kernel error

2015-09-30 Thread Steven G. Johnson
What happens when you open up the Julia command line ("REPL" ... i.e. double-click on the Julia program in Mac or Windows) and type Pkg.update() Pkg.build("IJulia") If there is an error message in the second step, that should be a clue. If not, relaunch `jupyter notebook` and try again. On

Re: [julia-users] Re: Help reading structured binary data files

2015-09-30 Thread Jameson Nash
For the bitstypes, you can do `[read(fh, UInt16)]` to be a bit more concise. On Wed, Sep 30, 2015 at 12:31 PM David McInnis wrote: > Sorry for the slow response, was called away. > > As a starting place I'll try to stick with the builtin routines first. > With Stefan's idea

RE: [julia-users] Re: What's the reason of the Success of Python?

2015-09-30 Thread David Anthoff
When you have matrices with special structures and symmetries, Julia can encode that information in the type of the matrix, and in those cases the backslash operator should actually be more efficient than in Matlab because there is no need to “guess” what the best algorithm might be. My

Re: [julia-users] restricting the type of bitstype type parameters

2015-09-30 Thread Jameson Nash
There are potential advantages for the system to be allowed to construct these types so that it can reason about them, even if it can't create instances of these types. See for example https://github.com/JuliaLang/julia/commit/85f45974a581ab9af955bac600b90d9ab00f093b#commitcomment-13041922 Doing