[julia-users] Re: Check if type "contains" Any

2015-09-21 Thread Tomas Lycken
Is it only tuples that you want to consider as “composite”, would e.g. contains_any(Array{Any,2}) or contains_any(Union{Integer,Any}) also return true? Also, all use cases I can think of for this function indicate that you could just as well use isleaftype directly, so you might not need to f

[julia-users] Re: ERROR: curve_fit not defined

2015-09-21 Thread testertester
YAK ALERT: ABANDON SHI(T)P I'll try installing it on Windows tomorrow. Every attempt at installing 0.3.11 on ubuntu failed no matter how many dependencies I installed. Also, the link to download the .debs no workey. Not at all s

[julia-users] Adding Github authentication to JuliaBox

2015-09-21 Thread Eric Forgy
Hi, In this comment , Viral suggested that it should be easy to add Github authentication to JuliaBox. We had a look and this is what we found so far: - The main page is located here: JuliaBox/engine/www/index.tpl - T

Re: [julia-users] Guideline for Function Documentation

2015-09-21 Thread Christof Stocker
What would be really nice and useful for documenting functions would be support for something like the "description" environment in Latex. However, I don't think standard markdown even has something like that On 2015-09-20 22:15, Milan Bouchet-Valat wrote: Le dimanche 20 septembre 2015 à 21:46

Re: [julia-users] Check if type "contains" Any

2015-09-21 Thread Mauro
You can access the type parameters with T.parameters. Have a look at https://github.com/mbauman/Tuples.jl. Also note possible complications with vararg types. However, doing this for non-tuple types this is probably a sign of bad design as was recently discussed here: https://groups.google.com/f

Re: [julia-users] When does colon indexing get evaluated / converted?

2015-09-21 Thread Mauro
I seem to recall that this was discussed recently, probably by Matt, but cannot find it. I did however find this gist: https://gist.github.com/alsam/8283205, maybe of help. On Mon, 2015-09-21 at 06:38, 'Greg Plowman' via julia-users wrote: > To further clarify, I thought I could specialise get

[julia-users] Array of vectors of variable number and lengths

2015-09-21 Thread Alan Crawford
Hi, I'd like to be able to define an array of vectors where the number of vectors in the array is linked to the length of the vector. For example, I want to be define an array with say 10 scalars, 45 length 2 vectors, 120 length 3 vectors, and so on. Intuitively, I thought the following co

Re: [julia-users] When does colon indexing get evaluated / converted?

2015-09-21 Thread Tomas Lycken
I recently implemented a similar transformation for array-like objects , in which I decided to create functions bounds(A, dim) = (lbound(A, dim), ubound(A, dim)) which return the end points of the indexing axes; without those, it was really

Re: [julia-users] Re: ERROR: curve_fit not defined

2015-09-21 Thread Pontus Stenetorp
On 21 September 2015 at 08:30, testertester wrote: > > YAK ALERT: ABANDON SHI(T)P > I'll try installing it on Windows tomorrow. Every attempt at installing > 0.3.11 on ubuntu failed no matter how many dependencies I installed. Also, > the link to download the .debs no workey. Not at all surprised.

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Tomas Lycken
Are you sure that’s not just a typo between k and K (note the case difference)? This works for me: J=10 K=3 MyArray = [Array(Int64,k) for k in 1:K, n in 1:binomial(J,K)] // T On Monday, September 21, 2015 at 10:08:13 AM UTC+2, Alan Crawford wrote: Hi, > > I'd like to be able to define an ar

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Alan Crawford
The lower case k is intentional. I didn't want such a 'large' array as the one created when I use K because large parts of that array would be redundant. Ideally, I want this array to be as small as possible, especially since J and K might be quite a bit larger than in the example. On Monday, 2

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Tomas Lycken
Ah. Maybe [Array(Int64,n) for n in map(k -> binomial(J,k), 1:K)] is what you’re looking for? // T On Monday, September 21, 2015 at 10:18:31 AM UTC+2, Alan Crawford wrote: The lower case k is intentional. I didn't want such a 'large' array as the > one created when I use K because large part

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Alan Crawford
Thanks Tomas. If I do: Y = [Array(Int64,n) for n in map(k -> binomial(J,k), 1:K)] Then Y[1] gives the desired result (i.e. Y[1][k] is a length 1 vector). However, the issue for Y[2] and above. For example, if I do Y[2][k] where k∈[1,binomial(J,2)] then i get a length 1 vector, whereas I would

Re: [julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Mauro
I think this is a limitation of list comprehensions: julia> [(i,j) for i=1:3, j=1:i] ERROR: i not defined in anonymous at no file but doing the loop works: julia> for i=1:3, j=1:i @show i,j end (i,j) => (1,1) (i,j) => (2,1) (i,j) => (2,2) (i,j) => (3,1) (i,j) => (3,2) (i,j) => (3,

[julia-users] @sprintf with a format string

2015-09-21 Thread Ferran Mazzanti
Dear all, I could use some help here, because I can't believe I'm not able to easily print formatted numbers under Julia in a easy way. What I try to do is to write a function that, given a vector, prints all its components with a user-defined format. I was trying something of the form functio

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Michael Hatherly
MyArray = [[zeros(Int, k) for n = 1:binomial(J, k)] for k = 1:K] seems to do what you want I think. Using 2 nested 1-d comprehensions instead of a single 2-d comprehension. — Mike ​ On Monday, 21 September 2015 10:37:06 UTC+2, Alan Crawford wrote: > > > Thanks Tomas. If I do: > > Y = [Array(In

[julia-users] Re: @sprintf with a format string

2015-09-21 Thread Michael Hatherly
https://github.com/JuliaLang/Formatting.jl might help. — Mike ​ On Monday, 21 September 2015 10:46:31 UTC+2, Ferran Mazzanti wrote: > > Dear all, > > I could use some help here, because I can't believe I'm not able to easily > print formatted numbers under Julia in a easy way. What I try to do

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Alan Crawford
Thanks Mike - precisely what i was after. While this is a perfectly acceptable solution I wondered whether, following Mauro's suggestion, it was worth opening an issue in any case because it seems like it be nice to be able to link indexes in array comprehensions in a similar way to for-loops

[julia-users] Re: Interview with the Julia language creators in The Programmer magazine (Chinese)

2015-09-21 Thread Sisyphuss
GitHub was blocked between Jan 20, 2013 to Jan 23, 2013 in China. Now it is accessible in China. However, Gist may be still blocked. All in all, it is much more available than Google. Btw, I'm Chinese, but I'm in France currently. On Monday, September 21, 2015 at 3:18:54 AM UTC+2, Eric Forgy

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Tomas Lycken
Now that we see the solution you were after, I note a few things: - What we *really* ended up with, is an Array{Array{Array{Int, 1}, 1}, 1}, which is something fundamentally different than an Array{Array{Int, 1}, 2}. - If we were to try to reshape this into a matrix-like shape, th

[julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Michael Hatherly
The indices need to all be independent since otherwise you’d end up producing an array with some rows/columns being of different length, which isn’t supported by Julia’s Array{T, N}. That’s fine for a loop since for i = 1:3, j = 1:i isn’t trying to fill up an array directly though. — Mike ​

Re: [julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Alan Crawford
Thanks all! I can now see what I was attempting makes no sense with the array comprehension and why I needed a nested solution. On 21 Sep 2015 10:20, "Michael Hatherly" wrote: > The indices need to all be independent since otherwise you’d end up > producing an array with some rows/columns being o

Re: [julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Mauro
> The indices need to all be independent since otherwise you’d end up > producing an array with some rows/columns being of different length, which > isn’t supported by Julia’s Array{T, N}. That’s fine for a loop since for i > = 1:3, j = 1:i isn’t trying to fill up an array directly though. That

Re: [julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Mauro
> Thanks all! I can now see what I was attempting makes no sense with the > array comprehension and why I needed a nested solution. If you end up using it like so: vcat([[zeros(Int, k) for n = 1:binomial(J, k)] for k = 1:K]...) then have a look at https://github.com/mbauman/RaggedArrays.jl >

Re: [julia-users] Re: Array of vectors of variable number and lengths

2015-09-21 Thread Alan Crawford
Thanks - will take look. On Monday, 21 September 2015 10:40:45 UTC+1, Mauro wrote: > > > Thanks all! I can now see what I was attempting makes no sense with the > > array comprehension and why I needed a nested solution. > > If you end up using it like so: > > vcat([[zeros(Int, k) for n = 1:

Re: [julia-users] Re: IDE for Julia

2015-09-21 Thread Steven Sagaert
+1 & to add to Uwe's post: AFAIK JuliaStudio is based on Qt (& QtCreator I believe). I thought that JuliaStudio was a nice start (also based on QtCreator). I wish a group would fork it and develop it further in the direction of RStudio. On Friday, September 18, 2015 at 10:08:23 AM UTC+2, Chris

Re: [julia-users] Re: IDE for Julia

2015-09-21 Thread Christof Stocker
I did consider looking into that but as soon as I saw the license I ran for my life. Its a similar issue with Julietta. Although what is an issue to me doesn't have to be an issue to others On 2015-09-21 13:48, Steven Sagaert wrote: +1 & to add to Uwe's post: AFAIK JuliaStudio is based on Qt (

Re: [julia-users] Is UInt for storing binary strings or unsigned integers?

2015-09-21 Thread Milan Bouchet-Valat
Le dimanche 20 septembre 2015 à 17:07 -0400, Jesse Johnson a écrit : > In a thread about printing UInt variables, Milan Bouchet-Valat said: > > The point is, in Julia using unsigned ints to store values that > > should > > always be positive is *not* recommended. > If that is true, then shouldn't

[julia-users] Re: Check if type "contains" Any

2015-09-21 Thread Tommy Hofmann
@Tomas: I also want contains_any(Array{Any, 2}) == contains_any(Union{Integer, Any}) == true. I tried isleaftype before but isleaftype(Integer) == isleaftype(Any) == false, i.e. I cannot distinguish between abstract types and Any. @Mauro: Thanks for the T.parameters hint. This looks like the ri

[julia-users] Boolean operations on arrays?

2015-09-21 Thread Daniel Carrera
Hello, I have two boolean arrays and I am trying to obtain the boolean array resulting from a component-wise `AND`: julia> [true, true, false] .&& [false, true, true] ERROR: syntax: invalid identifier name "&&" julia> [true, true, false] .& [false, true, true] ERROR: type Array has no field &

Re: [julia-users] Re: Check if type "contains" Any

2015-09-21 Thread Yichao Yu
On Mon, Sep 21, 2015 at 8:09 AM, Tommy Hofmann wrote: > @Tomas: I also want contains_any(Array{Any, 2}) == > contains_any(Union{Integer, Any}) == true. I tried isleaftype before but > isleaftype(Integer) == isleaftype(Any) == false, i.e. I cannot distinguish > between abstract types and Any. > > @

[julia-users] type of single values AND array?

2015-09-21 Thread Jon Norberg
quick question: How do I define a type most effective so that I can give it both single values, vectors and Arrays as variables? I now have: type x value::Array{Float64} end I can do x(rand(3)) as well as x(rand(3,3)) but not x(0.1) the answer is probably in the forums but I couldn't const

Re: [julia-users] Boolean operations on arrays?

2015-09-21 Thread Yichao Yu
On Mon, Sep 21, 2015 at 8:35 AM, Daniel Carrera wrote: > Hello, > > I have two boolean arrays and I am trying to obtain the boolean array > resulting from a component-wise `AND`: > > julia> [true, true, false] .&& [false, true, true] > ERROR: syntax: invalid identifier name "&&" > > julia> [true,

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Yichao Yu
On Mon, Sep 21, 2015 at 8:37 AM, Jon Norberg wrote: > quick question: How do I define a type most effective so that I can give it > both single values, vectors and Arrays as variables? > > I now have: > > type x > value::Array{Float64} > end > > I can do x(rand(3)) as well as x(rand(3,3)) but

[julia-users] Re: Boolean operations on arrays?

2015-09-21 Thread Daniel Carrera
It looks like I can get the right effect using component-wise multiplication: julia> ![true, true, false] .* [false, true, true] 3-element Array{Bool,1}: false false true Is this the correct solution or is this an ugly hack? Cheers, Daniel. On 21 September 2015 at 14:35, Daniel Carrera

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Jon Norberg
leaftype? On Monday, September 21, 2015 at 2:41:02 PM UTC+2, Yichao Yu wrote: > > On Mon, Sep 21, 2015 at 8:37 AM, Jon Norberg > wrote: > > quick question: How do I define a type most effective so that I can give > it both single values, vectors and Arrays as variables? > > > > I now have: >

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-09-21 Thread edward zhang
hi, dear, have you already fixed this problem? 在 2015年8月14日星期五 UTC+8下午11:06:30,Andrei Zh写道: > > > Hi Jake, > > your example works because you don't leave Julia session. `foo` is defined > in this session, so the the pair of module name and function name is enough > to get function object. If

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Jon Norberg
not sure what leaf type is? I actually need more fields in the type so I do need it as some field type x value::Array{Float64} otherfield... end

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Yichao Yu
On Mon, Sep 21, 2015 at 8:53 AM, Jon Norberg wrote: > leaftype? http://julia.readthedocs.org/en/latest/stdlib/base/?highlight=leaftype#Base.isleaftype http://julia.readthedocs.org/en/latest/manual/performance-tips/#code-warntype > > On Monday, September 21, 2015 at 2:41:02 PM UTC+2, Yichao Yu w

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Yichao Yu
On Mon, Sep 21, 2015 at 8:55 AM, Jon Norberg wrote: > not sure what leaf type is? > > I actually need more fields in the type so I do need it as some field > > type x > value::Array{Float64} >otherfield... > end What I meant is that if you don't need `.value` to be type stable, just `::Un

Re: [julia-users] Re: IDE for Julia

2015-09-21 Thread Uwe Fechner
Did anyone ask Forio if they would change the license (as they are obviously not longer interested in the project)? Uwe Am Montag, 21. September 2015 13:52:57 UTC+2 schrieb Christof Stocker: > > I did consider looking into that but as soon as I saw the license I ran > for my life. Its a similar

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Jon Norberg
type x value::Union{Array{Float64},Float64} end gives me error: type: instantiate_type: expected TypeConstructor, got function

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Yichao Yu
On Mon, Sep 21, 2015 at 9:06 AM, Jon Norberg wrote: > type x > value::Union{Array{Float64},Float64} > end Replace Union{} with Union() on 0.3 (or use Compat) > > gives me error: > > type: instantiate_type: expected TypeConstructor, got function >

Re: [julia-users] type of single values AND array?

2015-09-21 Thread Jon Norberg
Many thanks! works

[julia-users] Re: When does colon indexing get evaluated / converted?

2015-09-21 Thread Matt Bauman
Here's a quick rundown on the status quo: * Colon lowering changed in 0.4, as did the AbstractArray's interface. It's *much* easier to make your own arrays in 0.4. I suggest updating to the latest RC. * There is still a very strong assumption in base Julia that the valid indices in an Abstra

[julia-users] Re: Boolean operations on arrays?

2015-09-21 Thread Matt Bauman
The bitwise operations (&, |) broadcast over arrays and work just fine for this. Watch out for their precedence, though: you need to wrap them in parentheses if you want to combine them with the result of comparisons `(A == 1) | (A == 2)`. On Monday, September 21, 2015 at 8:41:29 AM UTC-4, Dan

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-09-21 Thread Andrei
Hi, not yet. I made some initial research regarding serialization of ASTs and reconstructing functions from them, but it seems quite a tricky procedure and I have very little time for this project now. I plan to come back to this issue around the beginning of the next month. On Mon, Sep 21, 2015

Re: [julia-users] Re: When does colon indexing get evaluated / converted?

2015-09-21 Thread Tim Holy
In julia 0.5 I plan to add eachindex(A, d) which can return the appropriate range for your object along axis d. --Tim On Monday, September 21, 2015 06:20:02 AM Matt Bauman wrote: > Here's a quick rundown on the status quo: > > * Colon lowering changed in 0.4, as did the AbstractArray's interfac

[julia-users] Re: Help using Requests.jl

2015-09-21 Thread Chris
An update: I realize now that I need to use the ajaxauth/login address for logging in, and I can't get this to work: post("https://www.space-track.org/ajaxauth/login ",data="identity=username&password=password") Response(401 Unauthorized, 11 Headers, 69

Re: [julia-users] Re: Check if type "contains" Any

2015-09-21 Thread Tomas Lycken
I use this to check wether the functions in my module have a bad return type causing type inference problems. That’s precisely what I suspected - for that, it is definitely isleaftype you want, rather than rolling your own. (The performance problems that Any-typed instances have, are intrins

Re: [julia-users] Re: printing UInt displays hex instead of decimal

2015-09-21 Thread Stefan Karpinski
Not really, since the argument seems to be that unsigned integer types should be used widely for indexes and offsets into arrays, rather than just for bit patterns. The argument against using unsigned integers for anything arithmetic, including indexes and sizes is the following. If all your code

Re: [julia-users] Is UInt for storing binary strings or unsigned integers?

2015-09-21 Thread Stefan Karpinski
Suppose you have a situation where any UInt value is valid. Since only valid values can be represented, this implies that you cannot validate inputs at all – it's impossible to represent any invalid values. So you're definitely not doing anything useful to catch or report errors. Suppose that non-

[julia-users] Re: Boolean operations on arrays?

2015-09-21 Thread Seth
Note that the broadcasting works for sparse matrices only on recent builds. On Monday, September 21, 2015 at 6:28:46 AM UTC-7, Matt Bauman wrote: > > The bitwise operations (&, |) broadcast over arrays and work just fine for > this. Watch out for their precedence, though: you need to wrap them i

[julia-users] PyCall crash after running Pkg.update()

2015-09-21 Thread jamesmnason
Hi All: I run Pkg.update() in Julia v0.3.11 (under Xubuntu 14.04/x64). When the update got to PyCall, the return was INFO: PyCall is using python (Python 2.7.10) at /home/jim_nason/anaconda/bin/python, libpython = /home/jim_nason/anaconda/lib/libpython2.7.so Yes, I recently updated conda

[julia-users] Re: PyCall crash after running Pkg.update()

2015-09-21 Thread Steven G. Johnson
I haven't seen that before. The latest PyCall works fine (its tests are passing) on the Travis Ubuntu machines and on my Debian box, both with Python 2.7 and Python 3.x. On Monday, September 21, 2015 at 12:10:23 PM UTC-4, james...@gmail.com wrote: > > Hi All: > > I run Pkg.update() in Julia v0

Re: [julia-users] Re: IDE for Julia

2015-09-21 Thread Daniel Carrera
How do you know they are not interested? On 21 September 2015 at 15:05, Uwe Fechner wrote: > Did anyone ask Forio if they would change the license (as they are > obviously not longer > interested in the project)? > > Uwe > > Am Montag, 21. September 2015 13:52:57 UTC+2 schrieb Christof Stocker:

[julia-users] Re: Help using Requests.jl

2015-09-21 Thread Jonathan Malmaud
Can you file this as an issue on the requests.jl github page? I'll be able to help you then.

Re: [julia-users] Boolean operations on arrays?

2015-09-21 Thread Daniel Carrera
On Monday, 21 September 2015 14:39:13 UTC+2, Yichao Yu wrote: > > > julia> [true, true, false] & [false, true, true] > 3-element Array{Bool,1}: > false > true > false > Thanks! What is the difference between & and && ?

Re: [julia-users] Boolean operations on arrays?

2015-09-21 Thread Sisyphuss
& works for array && works for scale On Monday, September 21, 2015 at 6:50:48 PM UTC+2, Daniel Carrera wrote: > > > On Monday, 21 September 2015 14:39:13 UTC+2, Yichao Yu wrote: >> >> >> julia> [true, true, false] & [false, true, true] >> 3-element Array{Bool,1}: >> false >> true >> false >

Re: [julia-users] Boolean operations on arrays?

2015-09-21 Thread Matt Bauman
More concretely, && and || are control flow operators. They short circuit. Therefore, they require Boolean arguments and aren't real functions. They're syntax. & and | are bitwise operations and real, extendable functions. They can operate on booleans *and* integers, performing bitwise arit

Re: [julia-users] Boolean operations on arrays?

2015-09-21 Thread Daniel Carrera
Oh Thanks! On 21 September 2015 at 19:21, Matt Bauman wrote: > More concretely, && and || are control flow operators. They short > circuit. Therefore, they require Boolean arguments and aren't real > functions. They're syntax. > > & and | are bitwise operations and real, extendable functi

Re: [julia-users] linspace and HDF5

2015-09-21 Thread Jan Strube
A small python snippet that does roughly what I want is below. I'm using asymmetric data to remind myself whether to transpose the matrix or not. Thanks for your help. from matplotlib import pyplot as plt from matplotlib.colors import LogNorm import numpy as np import sys xaxis = np.linspace(

Re: [julia-users] Re: IDE for Julia

2015-09-21 Thread Uwe Fechner
On their homepage they say: "As a desktop replacement for Julia Studio, Forio recommends Juno " Uwe Am Montag, 21. September 2015 18:49:13 UTC+2 schrieb Daniel Carrera: > > How do you know they are not interested? > > On 21 September 2015 at 15:05, Uwe Fechner > wrote: >

[julia-users] Re: What's your favourite editor?

2015-09-21 Thread Terry Seaward
Thanks for all the replies. Having previously tried Sublime, Atom and LightTable I've spent the year learning Vim and have now switched to Emacs (evil-mode). I'd be grateful to hear from other emacs users regarding your workflows for Julia development, e.g. if you want to write a Julia package

Re: [julia-users] linspace and HDF5

2015-09-21 Thread Tom Breloff
This seemed to match: > using PyPlot, PyCall > @pyimport matplotlib.colors as COL > @pyimport numpy as np > xaxis = linspace(1, 20, 101) > yaxis = linspace(2, 5, 101) > data = Float64[x+y for x in xaxis, y in yaxis]; > X, Y = np.meshgrid(xaxis, yaxis) > plt = pcolormesh(X, Y, data', norm = COL.Lo

Re: [julia-users] Re: What's your favourite editor?

2015-09-21 Thread Mauro
> Thanks for all the replies. Having previously tried Sublime, Atom and > LightTable I've spent the year learning Vim and have now switched to Emacs > (evil-mode). > > I'd be grateful to hear from other emacs users regarding your workflows for > Julia development, e.g. if you want to write a Ju

Re: [julia-users] linspace and HDF5

2015-09-21 Thread Jan Strube
@pyimport, nifty. Thanks! On Monday, September 21, 2015 at 11:03:35 AM UTC-7, Tom Breloff wrote: > > This seemed to match: > > >> using PyPlot, PyCall >> @pyimport matplotlib.colors as COL >> @pyimport numpy as np >> xaxis = linspace(1, 20, 101) >> yaxis = linspace(2, 5, 101) >> data = Float64[x

[julia-users] Julia users in Minnesota?

2015-09-21 Thread Sean Garborg
I'm moving back to Minneapolis (where my family is from). Any Julia users up there?

[julia-users] Q-less QR?

2015-09-21 Thread Dominique Orban
Is it possible to compute the Q-less QR factorization of a sparse matrix in Julia? In Matlab, you can write R = qr(A), but I don't see it in the Julia documentation. Sorry if I missed it. Thanks.

[julia-users] [ANN] Nettle.jl API breakage

2015-09-21 Thread Elliot Saba
Nettle.jl has just broken its API significantly, in order to be much more precompile-friendly. The big takeaway is that methods such as `md5_hash(data)` should be mapped to `digest("md5", data)`, there are no more auto-generated types for hashes, and inte

Re: [julia-users] Re: IDE for Julia

2015-09-21 Thread Milan Bouchet-Valat
Le lundi 21 septembre 2015 à 06:05 -0700, Uwe Fechner a écrit : > Did anyone ask Forio if they would change the license (as they are > obviously not longer interested in the project)? What's the problem with the license of Julia Studio? AFAICT that's a vanilla GPL3. Since Forio isn't interested in

[julia-users] Re: What's your favourite editor?

2015-09-21 Thread Christoph Ortner
I'd be grateful to hear from other emacs users regarding your workflows for Julia development, e.g. if you want to write a Julia package what emacs packages, setup and workflow help you to be the most productive? I find a combination of emacs for modules; iJulia for experimenting, testing, debu

[julia-users] Re: Default Ipython profile in Ijulia

2015-09-21 Thread Jason Castiglione
On Saturday, September 19, 2015 at 6:22:29 PM UTC-10, David P. Sanders wrote: > > Hi, > > Which version if the (ipython / jupyter) notebook do you have? It sounds > like it's at least 3. (The one that lets you choose between different > kernels.) > > In that case, you should no longer put t

[julia-users] Re: What's your favourite editor?

2015-09-21 Thread Jason Castiglione
Same here, I really like ironing out stuff using IJulia and ipython notebook. Once everything works , it turns into a module. Once in a module I like notepad++ or emacs. On Monday, September 21, 2015 at 10:54:34 AM UTC-10, Christoph Ortner wrote: > I'd be grateful to hear from other emacs users

[julia-users] Why does type inference not work for cat? (0.4-rc1)

2015-09-21 Thread Sheehan Olver
The code below can't infer the return type of cat. Should I file an issue or is this expected? v=rand(5) @code_warntype cat(1,0.0,v,0.0) ... end::ANY

Re: [julia-users] Re: What's your favourite editor?

2015-09-21 Thread El suisse
Vim ☺ ​ 2015-09-21 17:54 GMT-03:00 Christoph Ortner : > I'd be grateful to hear from other emacs users regarding your workflows > for Julia development, e.g. if you want to write a Julia package what emacs > packages, setup and workflow help you to be the most productive? > > I find a combination

[julia-users] Re: Default Ipython profile in Ijulia

2015-09-21 Thread Steven G. Johnson
You can still have as many profiles as you want. (Google "ipython profile"). It is just that, with IPython 3 or later (or Jupyter 4+), you no are no longer forced to have a separate profile just to use Julia. Consequently, IJulia no longer sets up a profile by default.

Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-09-21 Thread edward zhang
hmm, I'm already very interested in the project like Julia-on-(Spark/c++?), and the ser/des issue is a big obstacle. 在 2015年9月21日星期一 UTC+8下午9:30:05,Andrei Zh写道: > > Hi, > > not yet. I made some initial research regarding serialization of ASTs and > reconstructing functions from them, but it see

[julia-users] Pkg.publish() woes

2015-09-21 Thread Amit Murthy
julia> Pkg.publish() INFO: Validating METADATA INFO: Pushing LibCURL permanent tags: v0.1.6 INFO: Submitting METADATA changes INFO: Forking JuliaLang/METADATA.jl to amitmurthy INFO: Recompiling stale cache file /home/amitm/.julia/lib/v0.4/JSON.ji for module JSON. Enter host password for user 'ami

[julia-users] Re: Pkg.publish() woes

2015-09-21 Thread Seth
I got it to work and wrote my process up here: https://github.com/JuliaLang/julia/issues/10766 On Monday, September 21, 2015 at 9:05:38 PM UTC-7, Amit Murthy wrote: > > julia> Pkg.publish() > > INFO: Validating METADATA > INFO: Pushing LibCURL permanent tags: v0.1.6 > INFO: Submitting METADATA ch

Re: [julia-users] Re: Pkg.publish() woes

2015-09-21 Thread Amit Murthy
Thanks! On Tue, Sep 22, 2015 at 9:56 AM, Seth wrote: > I got it to work and wrote my process up here: > https://github.com/JuliaLang/julia/issues/10766 > > > On Monday, September 21, 2015 at 9:05:38 PM UTC-7, Amit Murthy wrote: >> >> julia> Pkg.publish() >> >> INFO: Validating METADATA >> INFO:

[julia-users] Re: When does colon indexing get evaluated / converted?

2015-09-21 Thread 'Greg Plowman' via julia-users
Hi All, Thanks all for your replies. OK I can see this will be much easier in v0.4. I will revisit when v0.4 released. I'm still curious about colon and end > Colon lowering changed in 0.4, Matt, could you expand on this? How/when is this done in v0.3 vs v0.4? Does this mean v0.3 code attemp