[julia-users] Re: Pkg.add("DecisionTree") getting error, failed pocess: Process(`git ' --worktree = C:\Users.....

2015-10-27 Thread Tomas Lycken
Is it possible for you to scroll right in the first error message, to show the entire message? Easiest is probably if you could copy the *text* of the message, and paste it here. // T On Monday, October 26, 2015 at 8:26:07 PM UTC+1, aar…@udel.edu wrote: Hi I am running my Julia code in Juno/

Re: [julia-users] A question of Style: Iterators into regular Arrays

2015-10-27 Thread Tomas Lycken
Better yet, since we already have both AbstractVector, AbstractMatrix, AbstractArray, AbstractString, AbstractFloat and a couple of others (try typing Abstract in the REPL…) it might be time to rename Integer to AbstractInteger. I have a hard time thinking the confusion between Int and Intege

[julia-users] Re: [ANN] MXNet.jl - Flexible and Efficient Deep Learning for Julia

2015-10-27 Thread Alireza Nejati
Nice! Any plans on merging this functionality with that of Mocha.jl?

[julia-users] Re: alternate LISP integration ...

2015-10-27 Thread Tomas Lycken
Have you tried julia --lisp from the command line? Works on my machine… // T On Monday, October 26, 2015 at 10:36:05 PM UTC+1, cdm wrote: > somewhat related ... > > is it still possible to get > the femtolisp REPL in the > post v0.4.0 world ... ? > > thanks, > > cdm > ​

[julia-users] Re: Moving from 0.3 to 0.4

2015-10-27 Thread Alireza Nejati
Most things in 0.3 will still work in 0.4 except with a handy depreciation error which will tell you exactly what to fix. Here are some tips: - Use Compat.jl. It makes life a LOT easier. It lets you write a single version of your code for 0.4 (or, more generally, the latest version of julia) wh

Re: [julia-users] A question of Style: Iterators into regular Arrays

2015-10-27 Thread DNF
I think that the point of the idea was to get rid of the Abstract prefix. It can be a bit confusing that some, but not all, abstract types have the Abstract prefix, and as seen in this thread it has led to some misunderstandings. On Tuesday, October 27, 2015 at 8:29:21 AM UTC+1, Tomas Lycken w

Re: [julia-users] How to get first number from Int64

2015-10-27 Thread David Epstein
A one-liner, with type conversion to get an integer back: *convert(Int64,floor(x/10^(floor(log10(x)* On Saturday, October 24, 2015 at 11:40:03 AM UTC-4, Michele Zaffalon wrote: > > There is also the builtin > http://docs.julialang.org/en/latest/stdlib/numbers/#Base.digits > > On Sat, Oct 24

[julia-users] Re: JuliaBox limitations on parallel computing

2015-10-27 Thread Iliyan Zarov
For anyone wishing to run large parallel programs I may be able to help - I'm working on a cloud computing platform for Julia that takes care of provisioning and managing all resources. More info at https://evoqus.com . It's currently in beta, get in touch if interested. Best, Iliyan On

[julia-users] Re: JuliaBox limitations on parallel computing

2015-10-27 Thread Christopher Fusting
Hi! I believe this is my fault. I've been running some items in parallel for class. I believe only one session ran away (1+ hours) while the others were < 10 minutes. Sorry for the trouble, I didn't realize there was a negative impact on others / the infrastructure. In the future I'll run proce

[julia-users] pmap and DataStructures.OrderedDict

2015-10-27 Thread Daniel O'Malley
I've recently encountered problems using pmap on a function that returns a DataStructures.OrderedDict. import DataStructures @everywhere function f(x) return DataStructures.OrderedDict(zip(["x"], [x])) end pmap(f, [1, 2]) If the above code is run in a "julia -p 2" environment, it produce a

[julia-users] Re: How to get first number from Int64

2015-10-27 Thread Alireza Nejati
Michele's solution is preferred here, but you can also do it like this: string(lista[3])[1]

[julia-users] Re: missing const qualifier

2015-10-27 Thread Carlo Lucibello
I found your proposal https://groups.google.com/forum/#!searchin/julia-users/vavasis/julia-users/Hq00EyeazJM/HgYgDcnbhs4J https://groups.google.com/forum/#!searchin/julia-users/vavasis$20const/julia-users/FK_29Dj4eDo/nX5QnhfKc40J but that is a different feature, having cont `in` argument, while I

[julia-users] Emacs mode for keyword pair matching or highlighting

2015-10-27 Thread Jan Kybic
Dear all, in Julia, blocks of code are delimited by pairs of keywords such as module/end, function/end, for/end, quote/end etc. Sometimes I get the pairings between the opening and closing keyword wrong, which leads to at least syntax errors, but sometimes other hard to catch errors. It would

[julia-users] Re: [ANN] DataStreams.jl, CSV.jl, SQLite.jl New Releases

2015-10-27 Thread bernhard
Hi Jacob Thank you. On my machine (Win7) SQLite is not working though. Either Julia crashes after "using SQLite" or I get the error below: Executing .juliarc.jl... done _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: ht

[julia-users] convert Array{Float,1} to Array{Float,2)?

2015-10-27 Thread michael . creel
I have a function that expects a Matrix argument, but for the case I'm working on, the natural way to construct the argument gives a vector. So, suppose I have a vector, e.g., a=rand(10). What is the best way to convert this to a 10X1 array? I can do it using a loop, but I thought there might b

[julia-users] ESS and autocompletion for Julia

2015-10-27 Thread Ivan Bocharov
Hello All, I am a newbie Emacs user and I really want to write my Julia code in Emacs. I've installed Emacs using brew and ESS from MELPA. I can get TAB-autocompletion in Julia shell, but the autocompletion doesn't work in my own scripts. Is it supposed to be this way or am I missing something

Re: [julia-users] Figure out how to get pointer to ge

2015-10-27 Thread Yichao Yu
On Mon, Oct 26, 2015 at 11:58 PM, Taylor Maxwell wrote: > I am moving some of my code to 0.4 and I am having trouble figuring out how > to get a pointer for beginning of a UInt matrix. In the past I did: > > julia> bpt = convert(Ptr{Uint8},b) #where b it my Uint8 matrix > > Ptr{Uint8} @0x7fd

Re: [julia-users] convert Array{Float,1} to Array{Float,2)?

2015-10-27 Thread Yichao Yu
On Tue, Oct 27, 2015 at 5:47 AM, wrote: > I have a function that expects a Matrix argument, but for the case I'm > working on, the natural way to construct the argument gives a vector. So, > suppose I have a vector, e.g., a=rand(10). What is the best way to convert > this to a 10X1 array? I can d

[julia-users] Re: GUI applications with Julia

2015-10-27 Thread Andreas Lobinger
Hello, Take a look at https://github.com/JuliaLang/Gtk.jl or https://github.com/JuliaLang/Tk.jl Some people seem to be working on making Qt bindings (which is tied to Cxx.jl) but nothing is fully available. I managed to use the GTK GUI builder (glade) with Gtk.jl,

Re: [julia-users] convert Array{Float,1} to Array{Float,2)?

2015-10-27 Thread michael . creel
Thanks. I knew there had to be an easy way. On Tuesday, October 27, 2015 at 12:59:43 PM UTC+1, Yichao Yu wrote: > > On Tue, Oct 27, 2015 at 5:47 AM, > > wrote: > > I have a function that expects a Matrix argument, but for the case I'm > > working on, the natural way to construct the argument g

[julia-users] Re: [ANN] MXNet.jl - Flexible and Efficient Deep Learning for Julia

2015-10-27 Thread Jonathan Malmaud
See https://github.com/pluskid/Mocha.jl/issues/22#issuecomment-150876824 for some discussion about that.

[julia-users] Re: For loop = or in?

2015-10-27 Thread FANG Colin
Thank you. In that case I will happily stick with `in`. On Monday, October 26, 2015 at 8:43:22 PM UTC, Alireza Nejati wrote: > > There is no difference, as far as I know. > > '=' seems to be used more for explicit ranges (i = 1:5) and 'in' seems to > be used more for variables (i in mylist). But

[julia-users] Re: low rank matrix-vector multiplication and order of operations

2015-10-27 Thread Andreas Noack
The order of operations is from left to right so the parentheses can be important here. We have discussed ways of executing more efficiently for matrix products, see https://github.com/JuliaLang/julia/issues/12065, but so far nothing has been implemented. In that issue, you can also see the rea

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Stefan Karpinski
My general approach is to only use = when the RHS is an explicit range, as in `for i = 1:n`. For everything else I use `for i in v`. I would be ok with dropping the = syntax at some point, but it seems pretty harmless to have it. On Tue, Oct 27, 2015 at 8:56 AM, FANG Colin wrote: > Thank you. In

Re: [julia-users] Figure out how to get pointer to ge

2015-10-27 Thread Taylor Maxwell
Thanks for your response. It looks like pointer(::Array) gives me the same pointer as if I defined the base.convert call from 0.3. I am not passing it to a ccall. Below is an example of what i am doing. The bedfreq function gets the genotype and missing counts (4 possibilities encoded in eve

Re: [julia-users] Figure out how to get pointer to ge

2015-10-27 Thread Yichao Yu
On Tue, Oct 27, 2015 at 10:08 AM, Taylor Maxwell wrote: > Thanks for your response. It looks like pointer(::Array) gives me the same > pointer as if I defined the base.convert call from 0.3. > > I am not passing it to a ccall. Below is an example of what i am doing. > The bedfreq function gets t

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread Jeff Bezanson
Looks very cool! Of course I'd be interested in compiling julia's frontend with something like this. We could badly use the extra speed. I assume it supports macros, in which case I hope somebody makes a library to undo the silly identifier renaming (e.g. defn -> define) so it can run more scheme-l

Re: [julia-users] Figure out how to get pointer to ge

2015-10-27 Thread Taylor Maxwell
Thanks, I will try and figure out if I can work this out from your suggestions. On Tuesday, October 27, 2015 at 8:29:07 AM UTC-6, Yichao Yu wrote: > > On Tue, Oct 27, 2015 at 10:08 AM, Taylor Maxwell > > wrote: > > Thanks for your response. It looks like pointer(::Array) gives me the > same

Re: [julia-users] Using Juno/LT to run Julia Code, Error, `getindex` has no method matching getindex(::DataFrame, ::ASCIIString

2015-10-27 Thread Stefan Karpinski
For quite some time, the way to access columns of DataFrames is to index with symbols like :ID rather than strings like "ID". On Sun, Oct 25, 2015 at 2:01 PM, wrote: > As you can see in the screen shot below this is the chunk of code I am > trying to run. Error seems to occur with the `getindex`

Re: [julia-users] Re: julia style to resize array with initialization?

2015-10-27 Thread Stefan Karpinski
I've encountered this too – it might make sense to zero out the grown memory. Of course there's the whole "to zero out uninitialized memory or not" discussion: https://github.com/JuliaLang/julia/issues/9147. I feel like this falls into that same category of questions. On Mon, Oct 26, 2015 at 3:59

Re: [julia-users] ESS and autocompletion for Julia

2015-10-27 Thread Ista Zahn
It works for me with the company backend. Haven't tried the autocomplete backend recently. I think ESS prefers the company backend, so just installing and loading the company package may be enough. Note that for completions to work you need to have an inferior julia process running, and the Julia

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Tom Breloff
It's harmless, sure, but I would prefer that everyone uses "in" exclusively so that there's one less thing to waste brainpower on. You don't say "for each x equals the range 1 to n", you say "for each x in the range 1 to n". I don't think "=" has a place here at all except to allow copy/pasting of

Re: [julia-users] Re: Re: are array slices views in 0.4?

2015-10-27 Thread Stefan Karpinski
Yes, I'm concerned about this as well. I'm sure we'll come up with something. Maybe allow using the old behavior during a transitional period with something like `using OldArrays` and then when you've gotten the chance to double check your code, you can delete that line and move to the new behavior

Re: [julia-users] deserialize error with closured array of functions

2015-10-27 Thread Isaiah Norton
Cross-ref StackOverflow: http://stackoverflow.com/questions/4656/error-on-serialize-lambda-function-with-closured-data On Sat, Oct 24, 2015 at 11:03 PM, Александр Кольцов wrote: > About my problem. Code: > ... > p = _belineInterpolateGrid(map(t -> sin( norm(t) ), grid), grid) > serialize(op

Re: [julia-users] Re: [ANN] DataStreams.jl, CSV.jl, SQLite.jl New Releases

2015-10-27 Thread Stefan Karpinski
Please do file an issue on the SQLite.jl repo: https://github.com/JuliaDB/SQLite.jl/issues. On Tue, Oct 27, 2015 at 5:47 AM, bernhard wrote: > Hi Jacob > > Thank you. > On my machine (Win7) SQLite is not working though. Either Julia crashes > after "using SQLite" or I get the error below: > > >

[julia-users] mixed arrays

2015-10-27 Thread Michela Di Lullo
Hello everyone, I have: *sottociclo* *5-element Array{Any,1}:* * (1,2,5) * * [(1,1,2),(2,1,5)]* * [(1,1,2),(5,2,5)]* * [(2,1,5),(5,2,5)]* * [(1,1,2),(2,1,5),(5,2,5)]* *julia> **length(sottociclo[1])* *3* *julia> **length(sottociclo[2])* *2* H

Re: [julia-users] mixed arrays

2015-10-27 Thread Tom Breloff
The first row should be a vector of tuples, just like the other elements. Please post the code which generates sottociclo and maybe we can help further. On Tuesday, October 27, 2015, Michela Di Lullo wrote: > Hello everyone, > > I have: > > *sottociclo* > > *5-element Array{Any,1}:* > > * (1,2,

Re: [julia-users] mixed arrays

2015-10-27 Thread Michela Di Lullo
#step1: cycle definition ciclo=[(0,0,0)] for j=1:(size(Cb,2)) if (Cb[i,j]!=0) push!(ciclo,(BrancheS[j].line, BrancheS[j].from, BrancheS[j].to)) end end ciclo=ciclo[2:end] #step3: cycle capacity y=0 for f=1:length(ciclo) y+=

[julia-users] [Gadfly] : Help regarding plotting

2015-10-27 Thread Vishnu Raj
Hello, I have a couple of doubts about using Gadfly for plotting 1. How to set a line style ( like "--"/"-.-" etc)? 2. How to put a legend in a figure, inside the figure? ( I came across a solution which first converts data to plot to DataFrames, but this puts legend outside the figure, effectiv

[julia-users] Re: low rank matrix-vector multiplication and order of operations

2015-10-27 Thread Michael Lindon
Thanks for the reply, this is what I was looking for =)

Re: [julia-users] [Gadfly] : Help regarding plotting

2015-10-27 Thread Tom Breloff
I'm not sure about putting a gadfly legend inside the figure. It's likely possible but I haven't seen how to do it. As for plotting generally, you should check out my package: https://github.com/tbreloff/Plots.jl. There are examples which show how to choose line styles, etc. On Tue, Oct 27, 201

Re: [julia-users] Re: [ANN] DataStreams.jl, CSV.jl, SQLite.jl New Releases

2015-10-27 Thread Jacob Quinn
Hey bernhard (sorry if that's not remotely close to your name, it's what shows up in my gmail), I think you were probably tracking CSV.jl master (i.e. at one point, you probably did Pkg.checkout("CSV")). I was playing around with some precompilation stuff last night, so you probably got caught in

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread Steven G. Johnson
On Tuesday, October 27, 2015 at 10:31:52 AM UTC-4, Jeff Bezanson wrote: > > This looks like a much more serious project than femtolisp, but I > would like to dispute the claim that it is "lightweight". From the > readme, it depends on python/pypy, libffi, libedit, libuv, and > libboost, and is

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Glen O
An alternative way to read it is "for x equals 1 through 5". It definitely makes sense for a range. And I don't think anyone has any difficulty intuitively understanding a for loop using =, even if "in" reads slightly better. Incidentally, it's not just Matlab that does it. Most variants of Bas

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread feza
+1 @Tom Breloff . I was confused about this when starting out. Comparing `for i in 1:3` vs `for i = 1:3`, even though I regularly use matlab if you think about it for `i = 1:10` doesn't really make a lot of sense. It would be nice if it was just one way as opposed to the confusion about whe

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread Jeff Bezanson
Then of course there's always https://github.com/JeffBezanson/femtolisp/blob/master/tiny/lisp.c, which compiles to a 22k executable (after stripping) on my machine. On Tue, Oct 27, 2015 at 11:54 AM, Steven G. Johnson wrote: > > > On Tuesday, October 27, 2015 at 10:31:52 AM UTC-4, Jeff Bezanson wr

[julia-users] [ANN] MXNet.jl v0.0.3 - Flexible and Efficient Deep Learning for Julia

2015-10-27 Thread Chiyuan Zhang
Checkout the examples and the documents . Relation to Mocha.jl: currently I will maintain both packages, but I will treat MXNet.jl as a successor to Mocha.jl when the project become m

[julia-users] Re: pmap and DataStructures.OrderedDict

2015-10-27 Thread Daniel Arndt
Hi Dan, It looks like you're running into the same issue I was, where the underlying HashDict cannot be serialized correctly to send to the other processes. I put up a pull request (https://github.com/JuliaLang/DataStructures.jl/pull/138) yesterday to hopefully fix this, feedback is apprecia

Re: [julia-users] Re: [ANN] DataStreams.jl, CSV.jl, SQLite.jl New Releases

2015-10-27 Thread bernhard
Ok. I can open an issue. Thank you for the hint. Jacob. I will get back to you soon. Am Dienstag, 27. Oktober 2015 16:02:29 UTC+1 schrieb Stefan Karpinski: > > Please do file an issue on the SQLite.jl repo: > https://github.com/JuliaDB/SQLite.jl/issues. > > On Tue, Oct 27, 2015 at 5:47 AM, bernha

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Tom Breloff
> > It definitely makes sense for a range. Sorry... gotta disagree... mathematical set notation is more appropriate, especially for scientific computing. This is coming from a former matlab user, btw, so it's not like I was confused by the syntax. The "for i = 1:5" syntax is actually more remi

[julia-users] Help my Row Major brain!

2015-10-27 Thread Gabriel Gellner
I am trying my to figure out the Julian way to create a table of values (matrix) from a function that returns multiple values. As this is really thinking about the problem as a function that generates the rows of the table it feels super awkward to do this in Julia currently. For example, lets

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Glen O
"When calculating a Fibonacci number, we have to apply F_n=F_(n-1)+F_(n-2) repeatedly. So to find F_6, we apply the equation for n equals 3 through 6". Writing it as "for n in 3 through 6" or "for n in the range 3 through 6" wouldn't make nearly as much sense. As I said, for general iterables,

[julia-users] Re: Help my Row Major brain!

2015-10-27 Thread Gabriel Gellner
Okay sorry tab seems to send ... I am trying my to figure out the Julian way to create a table of values (matrix) from a function that returns multiple values. As this is really thinking about the problem as a function that generates the rows of the table it feels super awkward to do this in Ju

[julia-users] Re: Help my Row Major brain!

2015-10-27 Thread Glen O
One relatively neat way to do this is mapreduce(exact,hcat,linspace(0,10,100)) On Wednesday, 28 October 2015 02:38:56 UTC+10, Gabriel Gellner wrote: > > Okay sorry tab seems to send ... > > I am trying my to figure out the Julian way to create a table of values > (matrix) from a function that re

[julia-users] Re: Help my Row Major brain!

2015-10-27 Thread Gabriel Gellner
Sadly that wants to make a matrix of two long rows ;) like the hcat(...). So needs the transpose as well ... maybe this is the way? Thanks for opening my eyes to mapreduce though! On Tuesday, 27 October 2015 09:43:59 UTC-7, Glen O wrote: > > One relatively neat way to do this is > > mapreduce(exa

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread Waldir Pimenta
On Tuesday, October 27, 2015 at 3:54:33 PM UTC, Steven G. Johnson wrote: > > There used to be a Scheme implementation called "SILK" for "Scheme in 50 > kilobytes" (L = 50 in Roman numerals), and I remember that the author had a > comment to the effect: "If a future version of this bloats to over

[julia-users] Code to calculate a vast matrix product together?

2015-10-27 Thread Arch Robison
The "greedy" blog said "We want to write A*B and launch a thousand computations on a thousand machines, calculating a vast matrix product together." Has someone written the code for this yet? What's the *shortest *way to write it (will

[julia-users] Re: pmap and DataStructures.OrderedDict

2015-10-27 Thread Daniel O'Malley
That worked for me. Many thanks! Dan On Tuesday, October 27, 2015 at 10:16:40 AM UTC-6, Daniel Arndt wrote: > > Hi Dan, > > It looks like you're running into the same issue I was, where the > underlying HashDict cannot be serialized correctly to send to the other > processes. > > I put up a pu

[julia-users] Re: JuliaBox limitations on parallel computing

2015-10-27 Thread André Lage
Hi Iliyan, I just read your message now. Evoqus is a great idea! We are also working on a transparent support for Julia computing in the cloud, based on DistributedArrays. We intend to include pricing features as you did. Do you intend to share your code (even partially)? Congratulations for

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread FANG Colin
Julia tries to attract people from Python & R, which use `in`. As for matlab, it is not a direct competitor. Anyway, I think we only need 1 of the 2. "There should be one-- and preferably only one --obvious way to do it." Maybe enhance the documentation for the time being. On 27 October 2015 at

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread J Luis
Please, leave the '=' alone. It's very well as is. terça-feira, 27 de Outubro de 2015 às 18:20:19 UTC, FANG Colin escreveu: > > Julia tries to attract people from Python & R, which use `in`. As for > matlab, it is not a direct competitor. > > Anyway, I think we only need 1 of the 2. "There should

RE: [julia-users] Re: For loop = or in?

2015-10-27 Thread David Anthoff
If something like this were to change, it would be good to do it sooner rather than later -> less code that depends on the syntax that would go would have been written. So maybe the right way forward for this is to open an issue suggesting to drop the = variant, discuss it, make a decision and t

Re: [julia-users] Re: julia style to resize array with initialization?

2015-10-27 Thread Cameron McBride
Yeah, looks like very similar arguments to 9147. Although not as easy to circumvent as using zeros() or the like. One potential "fix" could be a potential third argument to resize with the "default / fill" value, which doesn't seem like a viable solution to the constructors discussed in that threa

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Seth
There are, by my unscientific count*, 439 instances in base that use "for ... =", and 653 using "for ... in". (grep -Ri "for .* =" *.jl | wc -l) On Tuesday, October 27, 2015 at 11:36:01 AM UTC-7, David Anthoff wrote: > > If something like this were to change, it would be good to do it sooner >

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread DNF
On Tuesday, October 27, 2015 at 4:56:12 PM UTC+1, Glen O wrote: > > Incidentally, it would be nice if ∈ could be used as another option - it's > just another way of saying "in", but it would look nicer in certain > mathematical contexts, and it's not like the symbol would be used in > another wa

[julia-users] ANN: new version of LightGraphs; discontinuation of Julia 0.3 support

2015-10-27 Thread Seth
Hi all, Just a quick note to let you know that we've tagged a new minor version of LightGraphs - v0.4.0, available via https://github.com/JuliaGraphs/LightGraphs.jl. The reason this is significant is that it is the first version that (explicitly and intentionally) breaks compatibility with Jul

[julia-users] Re: JuliaBox limitations on parallel computing

2015-10-27 Thread Iliyan Zarov
Thanks André! I'll be very interested to hear more about what you are building on top of DistributedArrays. The API is open and the CLI will be open source in a few weeks. The server will likely be partially open sourced in the future. And any generally applicable changes to the Julia codebase

[julia-users] Re: Collection of YAsnippets for Julia

2015-10-27 Thread Jānis Erdmanis
It looks useful, but I have no experience of configuring Yasnipet. Could you post relevant part of .emacs and also give some instructions where should I put these files? Also how to call these snippets are unknown to me ;) On Thursday, September 3, 2015 at 4:54:55 PM UTC+3, andreas wrote: > >

[julia-users] Re: WinRPM Download failure

2015-10-27 Thread Achu
Tried Pkg.update(), exited, and Pkg.build("WinRPM") in a new instance. I got this INFO: Building WinRPM WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to download WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to download INFO: Downloadi

[julia-users] Re: A grateful scientist

2015-10-27 Thread Andre Bieler
I +1 on the thanks from scientist. I changed 90% of my data analysis scripts from Python to Julia and never looked back. For what its worth: I have an upcoming paper in Nature on Thursday that of course credits the Julia language! :) (Its the least I could do) It really made my research easier

[julia-users] Re: Help my Row Major brain!

2015-10-27 Thread Dan
putting the transpose inside, might look nicer to some: esol = vcat([exact(t)' for t in linspace(0, 10, 100)]...) On Tuesday, October 27, 2015 at 6:52:21 PM UTC+2, Gabriel Gellner wrote: > > Sadly that wants to make a matrix of two long rows ;) like the hcat(...). > So needs the transpose as

Re: [julia-users] Re: A grateful scientist

2015-10-27 Thread Stefan Karpinski
Mentioning Julia and any Julia packages used for published work is greatly appreciated! On Tue, Oct 27, 2015 at 4:49 PM, Andre Bieler wrote: > I +1 on the thanks from scientist. > > I changed 90% of my data analysis scripts from Python to Julia and never > looked back. > For what its worth: I ha

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Tk
As far as I can understand, Julia also seems trying to attract people from Matlab, because there are so many similarities in the syntax (.* and ./ etc) and the names of functions. Also I often see questions from Matlab users posted in StackOverflow. Their codes are rather Matlab-like, but it wo

Re: [julia-users] ESS and autocompletion for Julia

2015-10-27 Thread Ivan Bocharov
Thank you very much for your reply! I have Compat package installed, julia process running and tried both autocomplete and company. TAB-completion still doesn't work, though, invoking C-M-i produces some results. The thing is that i can complete only the contents from the Base (some types and f

[julia-users] Re: alternate LISP integration ...

2015-10-27 Thread cdm
right ... that is still working ... i was thinking that i could get there from the Julia prompt without shelling out ... thanks for the reminder. best, cdm On Tuesday, October 27, 2015 at 12:31:40 AM UTC-7, Tomas Lycken wrote: > > Have you tried julia --lisp from the command line? Works on

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread cdm
but it has its own virtual machine ... which could conceivably replace the LLVM ties ... ? ... unless that is inconceivable. i am glad that no one has rejected the idea out of hand; further proof that the Julia community is truly remarkable. On Tuesday, October 27, 2015 at 7:31:52 AM UTC-7,

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread Jeff Bezanson
I don't think this is intended to be able to replace LLVM. Julia could be implemented on top of PyPy/RPython, but PyPy itself has an LLVM backend (one of multiple backends I believe). LLVM is a full toolchain for handling code --- generation, optimization, linking, analysis, and debugging. We need

[julia-users] Re: missing const qualifier

2015-10-27 Thread vavasis
There are two possible ways to implement return values from functions that are 'const': either the compiler checks that const-ness is maintained (as in C++), or the value has a read-only flag in it that is checked at run-time by the setindex! routine. The latter solution would entail a slowdow

Re: [julia-users] Re: For loop = or in?

2015-10-27 Thread Hai Nguyen
On Tue, Oct 27, 2015 at 10:04 AM, Stefan Karpinski wrote: > My general approach is to only use = when the RHS is an explicit range, as > in `for i = 1:n`. For everything else I use `for i in v`. I would be ok > with dropping the = syntax at some point, but it seems pretty harmless to > have it. >

[julia-users] Re: WinRPM Download failure

2015-10-27 Thread Tony Kelman
Okay, sounds like you might be hitting https://github.com/JuliaLang/WinRPM.jl/issues/47 then. If you try deleting the https://cache.e.ip.saba.us/ prefix from the entries in sources.list (then restart), does that help? On Tuesday, October 27, 2015 at 1:41:55 PM UTC-7, Achu wrote: > > Tried Pkg.

Re: [julia-users] For loop = or in?

2015-10-27 Thread Stefan Karpinski
If someone wants to make a PR deprecating the syntax, it would certainly be considered. On Tuesday, October 27, 2015, Hai Nguyen wrote: > > > On Tue, Oct 27, 2015 at 10:04 AM, Stefan Karpinski > wrote: > >> My general approach is to only use = when the RHS is an explicit range, >> as in `for i

Re: [julia-users] Re: alternate LISP integration ...

2015-10-27 Thread cdm
22k ... is there a lighter lisp !?!? On Tuesday, October 27, 2015 at 9:10:05 AM UTC-7, Jeff Bezanson wrote: > > Then of course there's always > https://github.com/JeffBezanson/femtolisp/blob/master/tiny/lisp.c, > which compiles to a 22k executable (after stripping) on my machine. >

[julia-users] Re: alternate LISP integration ...

2015-10-27 Thread cdm
and ;julia --lisp is the shell out ... which also still works. thanks again ... On Tuesday, October 27, 2015 at 2:22:43 PM UTC-7, cdm wrote: > > right ... that is still working ... > > i was thinking that i could get > there from the Julia prompt > without shelling out ... > > > On Tuesday, O

[julia-users] Re: How to get first number from Int64

2015-10-27 Thread Dan
If you do a: precomp = map(log10,2:10) Then a oneliner for the first digit is: searchsortedfirst(precomp, log10(lista[3])%1.0) There are many paths in the garden. But this one is not as long (slow) as it looks. On Tuesday, October 27, 2015 at 10:35:18 AM UTC+2, Alireza Nejati wrote:

[julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread colintbowers
Hi all, I'm using Julia v0.4 with the Atom package, on Atom 1.0 with the packages ink, julia-client, and language-julia (and I'm really enjoying this as an IDE solution). I can toggle the Julia console in Atom, and enter code directly into it without any errors or warnings. However, as soon as

[julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread Jonathan Malmaud
You want to be on the master versions: Pkg.checkout("Atom") Pkg.checkout("CodeTools")

[julia-users] A grateful scientist

2015-10-27 Thread Jonathan Malmaud
As someone who volunteers my free time to developing Julia, it means a lot to hear that.

[julia-users] Re: Deprecation warnings using julia on Atom

2015-10-27 Thread colintbowers
I suppose I could clone the master branch. Is that a bad idea? On Wednesday, 28 October 2015 11:30:43 UTC+11, colint...@gmail.com wrote: > > Thanks for responding. > > Pkg.checkout("Atom") gives me the error: > > ERROR: Atom is not a git repo > in checkout at pkg/entry.jl:203 > in anonymous at p

[julia-users] Re: Deprecation warnings using julia on Atom

2015-10-27 Thread colintbowers
Thanks for responding. Pkg.checkout("Atom") gives me the error: ERROR: Atom is not a git repo in checkout at pkg/entry.jl:203 in anonymous at pkg/dir.jl:31 in cd at file.jl:22 in cd at pkg/dir.jl:31 in checkout at pkg.jl:37 (I originally did try using Pkg.checkout as per the instructions, b

Re: [julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread Spencer Russell
`Pkg.checkout(…)` operates an an already-installed package, so it must be run after `Pkg.add(…)`. -s > On Oct 27, 2015, at 8:31 PM, colintbow...@gmail.com wrote: > > I suppose I could clone the master branch. Is that a bad idea? > > On Wednesday, 28 October 2015 11:30:43 UTC+11, colint...@gmai

[julia-users] Re: [Gadfly] : Help regarding plotting

2015-10-27 Thread Alireza Nejati
The design philosophy of Gadfly seems to be that you should think about the data and let the software worry about how to present it. That said, it is possible to change things like fonts, line thicknesses and dash styles, and legend placement through themes: http://gadflyjl.org/themes.html Mor

[julia-users] Re: [Gadfly] : Help regarding plotting

2015-10-27 Thread Alireza Nejati
Also look at: https://github.com/dcjones/Gadfly.jl/blob/master/src/theme.jl (line_style)

[julia-users] Re: A grateful scientist

2015-10-27 Thread Yakir Gagnon
Wow, I'm glad there's been such a positive response! I meant every word and more. I too have a publication coming up soon (albeit not in Nature -- which is beyond awesome) and Julia is referenced there. As it will probably be in every publication I have from now on. Thanks again! On Wednesday,

[julia-users] no one knows this.....

2015-10-27 Thread lewis
Using pyplot with multiple figures, choose one to display as the topmost window. There are crazy gyrations in matplotlib that only work with certain backends. Generally, Julia makes the matplotlib API much nicer. Once the whole thing loads it is quick enough. But, this very basic thing seems

[julia-users] Inconsistent behaviour of round()

2015-10-27 Thread jock . lawrie
Hi there, I'm using Julia 0.4.0. round(4.5) gives 4.0, i.e. it rounds down. round(5.5) gives 6.0, i.e. it rounds up. Any ideas why this is the case? Cheers, Jock

Re: [julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread colintbowers
Ah... understood. Many thanks. I'm afraid I'm still not getting the desired result however. After running checkout on "Atom", "CodeTools" and "JuliaParser" I run Pkg.status() and can verify I'm on the master branch for all 3. So I fire up Atom again, try to evaluate in the editor, and get the f

Re: [julia-users] no one knows this.....

2015-10-27 Thread Tom Breloff
"crazy gyrations"? Can you expand on that and provide code? On Tue, Oct 27, 2015 at 8:58 PM, wrote: > Using pyplot with multiple figures, choose one to display as the topmost > window. There are crazy gyrations in matplotlib that only work with certain > backends. > > Generally, Julia makes the

Re: [julia-users] ESS and autocompletion for Julia

2015-10-27 Thread Ista Zahn
Does tab completion work in other languages supported by ESS? If it doesn't then there would appear to be something missing from your ESS settings (I don't bind completion to TAB myself, there is too much already happening on the TAB key). If it works for (e.g.) R but not Julia I would report a bug

Re: [julia-users] Deprecation warnings using julia on Atom

2015-10-27 Thread Spencer Russell
You’re running into another known issue: https://github.com/JuliaLang/julia/issues/12941 Try opening a normal REPL in the terminal and run “using Atom” to trigger the precompilation, then it shouldn’t need to happen when you run from Atom. -s

[julia-users] Re: Inconsistent behaviour of round()

2015-10-27 Thread elextr
"round to nearest, ties to even" is the default IEEE floating point rounding mode https://en.wikipedia.org/wiki/IEEE_floating_point#Rounding_rules Cheers Lex On Wednesday, October 28, 2015 at 11:02:58 AM UTC+10, jock@gmail.com wrote: > > Hi there, > > I'm using Julia 0.4.0. > > round(4.5)

  1   2   >