[julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread Tony Kelman
You can add the flag to the shortcut you use to start Julia. We certainly hope using a newer LLVM will result in backtraces, but see issue https://github.com/JuliaLang/julia/issues/9336 - there are a last few performance and memory consumption bugs to work out before we switch to either 3.7 or

[julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread feza
OPs i meant --precomplied=yes with LLVM 3.5+ will this discrepancy in startup time be resolved? #ifdef _OS_WINDOWS_// TODO remove this when using LLVM 3.5+ JL_OPTIONS_USE_PRECOMPILED_NO,#else JL_OPTIONS_USE_PRECOMPILED_YES,#endif On Friday, October 16, 2015 at 2:17:13 AM UTC-4, Tony Kelman wrote:

[julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread Tony Kelman
We do just that on Windows, for now: https://github.com/JuliaLang/julia/blob/706600408aba8b142c47c2bc887bde0d9bf774cf/src/init.c#L73-L78 On Thursday, October 15, 2015 at 11:03:11 PM UTC-7, feza wrote: > > Is there a way to have julia default to --precomplied=no ? > > On Friday, October 16, 2015

[julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread feza
Is there a way to have julia default to --precomplied=no ? On Friday, October 16, 2015 at 1:18:55 AM UTC-4, Tony Kelman wrote: > > Source builds on Windows may have started up a little faster than the > distributed binaries up to a few months ago, because we used to delete > sys.dll from the bin

[julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread Tony Kelman
Source builds on Windows may have started up a little faster than the distributed binaries up to a few months ago, because we used to delete sys.dll from the binaries. Having sys.dll present resulted in faster startup, but made backtraces worse. Starting a few months ago we now distribute sys.d

Re: [julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread Stefan Karpinski
Unfortunately, distributing Julia with cmder is not legal: https://github.com/JuliaLang/julia/issues/7267 On Fri, Oct 16, 2015 at 10:06 AM, feza wrote: > Is Julia way slower on Windows? That's an interesting anecdote. Anyone > else have something to add regarding this. I don't know why this wou

[julia-users] Re: colors on cmd on Windows 10

2015-10-15 Thread feza
Is Julia way slower on Windows? That's an interesting anecdote. Anyone else have something to add regarding this. I don't know why this would be true. I did notice that when I built julia from source on my machine, my built version of julia was consistently slower than the binaries available on t

[julia-users] colors on cmd on Windows 10

2015-10-15 Thread Lewis Levin
Running Julia in powershell or cmd, the background color of output lines is always black. If you set cmd or powershell to black this is fine. With any other default background color, you get Julia output written on black bands across the window. I installed cmder (very nice thing). It is a C

RE: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread David Anthoff
Great, thanks! From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Michael Louwrens Sent: Thursday, October 15, 2015 11:41 AM To: julia-users Subject: Re: [julia-users] Re: What features are interesting in a VS Code plug-in? It's up! Please mention if an

[julia-users] Re: Bets strategy for using Julia on a grid

2015-10-15 Thread André Lage
Hi Timothée, I had the same dilema and I'm betting on spawning workers on Docker containers through SSH, similar to your 2nd suggestion but with Docker support. AFAIK, the main drawback of not using batch schedulers is the lack of: fault tolerance mechanisms, queue management, and support for

Re: [julia-users] Re: Azure interface for Julia

2015-10-15 Thread Raphael Ribeiro
Thanks cdm! I will take a look. 2015-10-14 21:28 GMT-03:00 cdm : > > while i have not given this a try yet, it seems that Juju > (https://jujucharms.com/docs/stable/getting-started) > has been integrated fairly well into the Azure > ecosystem ... > > perhaps a Julia wrapper over the Juju API woul

Re: [julia-users] Re: Julia Docker images

2015-10-15 Thread André Lage
Hi, We customized our Docker image from Ubuntu. Jonathan, we are using Docker containers to host Julia workers through SSH, you could straightforwardly use our code/Dockerfile to `docker run -it julia` if you want. We are running some tests and we plan to share everything next week. We're excited

Re: [julia-users] CUDArt main example does not run smoothly

2015-10-15 Thread Tim Holy
Already fixed, see https://github.com/JuliaGPU/CUDArt.jl/issues/38 Great that you got this working! --Tim On Thursday, October 15, 2015 03:33:58 PM Joaquim Masset Lacombe Dias Garcia wrote: > I could run the README example finally! > > I modified the path (i will test a little more before a pu

[julia-users] Re: What is the right path to Python

2015-10-15 Thread Steven G. Johnson
I've updated the README to say this more explicitly.

[julia-users] Re: What is the right path to Python

2015-10-15 Thread lewis
Solved. the answer is provide path pointing directly to the python executable. >

[julia-users] Re: What is the right path to Python

2015-10-15 Thread Steven G. Johnson
> > EXACTLY what must the path in ENV["PYTHON"] point to? Please don't > recommend conda, ok? I have 2 installs to Python already with lots of > packages, including Matplotlib and Numpy. Don't want to manage yet another. > Should the path point to the python executable? It's dll? Or to the

Re: [julia-users] communicating with a TcpSocket

2015-10-15 Thread Jonathan Malmaud
Specifically, using Requests response=get("http://192.168.1.87:18080";) If the payload is a JSON and you want to parse it to a Julia dictionary, then further do payload = Requests.json(response) On Thursday, October 15, 2015 at 12:56:33 PM UTC-5, Keno Fischer wrote: > > You'll want to use an H

Re: [julia-users] CUDArt main example does not run smoothly

2015-10-15 Thread Joaquim Masset Lacombe Dias Garcia
I could run the README example finally! I modified the path (i will test a little more before a pull request). but I had to do one more modification: I had to use: CUDArt.launch(function1, 1, 1, (data,)) that instead of: launch(function1, 1, 1, (data,)) because there seemed to have a conflict wi

[julia-users] Re: What is the right path to Python

2015-10-15 Thread lewis
Never mind. This was a 64 bit to 32 bit conflict. Message didn't help, but a bunch of searches did. Comment on doc stands, but user error was the culprit. On Thursday, October 15, 2015 at 3:02:54 PM UTC-7, le...@neilson-levin.org wrote: > > For building PyCall and other integrations to Pytho

[julia-users] Re: What is the right path to Python

2015-10-15 Thread lewis
With path to the exe, this is what I get: LoadError: Couldn't find libpython; check your PYTHON environment variable while loading C:\Users\Lewis\.julia\v0.4\PyCall\deps\build.jl, in expression starting on line 17 So, the path needs to be to something else. Of course, the real solution is the

Re: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread Michael Louwrens
Only the .tmlanguage file is used at the moment. Once extension support improves and a package manager is introduced it would probably no longer fit in the textmate repo. For now however, it would have far better visibility there. I doubt many will use it though at this time. Atom is still a be

[julia-users] What is the right path to Python

2015-10-15 Thread lewis
For building PyCall and other integrations to Python, need to set: let user_data_dir ENV["PATH"] = JULIA_HOME*";"*joinpath(JULIA_HOME,"..","Git","bin")*";"*ENV["PATH"] #haskey(ENV,"JULIA_EDITOR") || (ENV["JULIA_EDITOR"] = "start") #start is not a program, so this doesn't work ENV["PY

Re: [julia-users] CUDArt main example does not run smoothly

2015-10-15 Thread Tim Holy
You can probably just add that to the paths that find_library checks (see CUDArt.jl). Since it's system-dependent, this is the kind of thing that's not really possible for me to fix myself. So if you can figure out what's needed on your system, a pull request would be most appreciated. If possi

Re: [julia-users] CUDArt main example does not run smoothly

2015-10-15 Thread Joaquim Masset Lacombe Dias Garcia
EDIT of last post, ignore my last 3 lines, the files are in the right place. Em quinta-feira, 15 de outubro de 2015 18:32:04 UTC-3, Joaquim Masset Lacombe Dias Garcia escreveu: > > Thats Great that you could update the README! > > I am now testing the pkg on mac (later I was on windows). > The pr

Re: [julia-users] CUDArt main example does not run smoothly

2015-10-15 Thread Joaquim Masset Lacombe Dias Garcia
Thats Great that you could update the README! I am now testing the pkg on mac (later I was on windows). The problem now is that its failing to add the lib (using CUDArt), I get the error: INFO: Precompiling module CUDArt... ERROR: LoadError: LoadError: CUDA runtime API library cannot be found i

Re: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread Tony Kelman
The tmbundle and several of the other editor support packages have been moving out to separate repos over time. Though if this shares almost its entire content with the tmbundle, could maybe be incorporated into that repo.

[julia-users] pyplot, invert_xaxis

2015-10-15 Thread Edward Chen
Dear Community, Does somebody know how to implement matplotlib's invert_xaxis for plt.pcolor using PyPlot? Thanks! Ed

Re: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread Waldir Pimenta
I may be wrong, but I believe it could fit in JuliaLang's contrib folder, rather than as a separate repository. On Thursday, October 15, 2015 at 7:40:32 PM UTC+1, Michael Louwrens wrote: > > It's up! Please mention if anything is wrong wit

[julia-users] Re: [ANN] JuliaIO and FileIO

2015-10-15 Thread Simon Danisch
@MA Laforge This looks a little bit like our first prototypes, with the addition of an hierarchical format system. I'm not sure if we really need a hierarchy. It seems hard to program against some abstract type in this area, since you get so many edge cases. It might be useful in some cases, but

Re: [julia-users] Re: Which public key is Julia 0.4.0 Pkg.Git trying to use on Windows?

2015-10-15 Thread tony
Not sure what's wrong. Might be the space. On Thu, Oct 15, 2015 at 7:33 AM -0700, "Tomas Lycken" wrote: Yup, that seems to work as expected. julia> ENV["HOMEDRIVE"] "C:" julia> ENV["HOMEPATH"] "\\Users\\Tomas Lycken" julia> homedir() "C:\\Users\\Tomas Lycken" A .juliarc in that director

Re: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread Michael Louwrens
It's up! Please mention if anything is wrong with the license file. Repo is at: https://github.com/Mike43110/julia.vscode On Thursday, 15 October 2015 18:48:06 UTC+2, David Anthoff wrote: > Great, much appreciated! I don’t have yo installed, I think and will just > wait for your repo to go up.

Re: [julia-users] communicating with a TcpSocket

2015-10-15 Thread Keno Fischer
You'll want to use an HTTP client, e.g. Requests.jl. On Thu, Oct 15, 2015 at 1:37 PM, Douglas Bates wrote: > I have a Tablo over-the-air video recorder (tablotv.com) which > communicates via a TCP socket. I almost know enough to be able to write > Julia code to communicate with it but not quite

[julia-users] communicating with a TcpSocket

2015-10-15 Thread Douglas Bates
I have a Tablo over-the-air video recorder (tablotv.com) which communicates via a TCP socket. I almost know enough to be able to write Julia code to communicate with it but not quite. For the sake of illustration let's assume that its IP address on my network is 192.168.1.87. It communicates

RE: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread David Anthoff
Great, much appreciated! I don’t have yo installed, I think and will just wait for your repo to go up. Thanks, David From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Burning Legion Sent: Thursday, October 15, 2015 4:15 AM To: julia-users Subject: Re:

[julia-users] Shared Array on remote machines?

2015-10-15 Thread Matthew Pearce
I was wondering if it was possible to spawn shared arrays on remote machines. *julia> S = SharedArray(Int, (3,4), init = S -> S[localindexes(S)] = myid(), pids=Int[1,2])* *3x4 SharedArray{Int64,2}: 1 1 2 2 1 1 2 2 1 1 2 2* *julia> remotecall_fetch(readall, 6, `hostname`)**"mrc-bsu-

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Roger Luo
Thanks! 在 2015年10月15日星期四 UTC+8下午10:13:08,Yichao Yu写道: > > On Thu, Oct 15, 2015 at 10:05 AM, Roger Luo > wrote: > > But what if I want to restrict the number of a array I use? > > if the type is like > > > > type particle > > pos > > end > > > > and I want to restrict the pos's type to

Re: [julia-users] Re: Which public key is Julia 0.4.0 Pkg.Git trying to use on Windows?

2015-10-15 Thread Tomas Lycken
Yup, that seems to work as expected. julia> ENV["HOMEDRIVE"] "C:" julia> ENV["HOMEPATH"] "\\Users\\Tomas Lycken" julia> homedir() "C:\\Users\\Tomas Lycken" A .juliarc in that directory still isn’t run, though. // T On Thursday, October 15, 2015 at 3:28:08 PM UTC+2, Tony Kelman wrote: Are H

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Yichao Yu
On Thu, Oct 15, 2015 at 10:05 AM, Roger Luo wrote: > But what if I want to restrict the number of a array I use? > if the type is like > > type particle > pos > end > > and I want to restrict the pos's type to be an Array but the dimension > should be 1,but do not restrict the Type of the Arra

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Roger Luo
But what if I want to restrict the number of a array I use? if the type is like type particle pos end and I want to restrict the pos's type to be an Array but the dimension should be 1,but do not restrict the Type of the Array or is there any other type can act like a vector but not the Arra

[julia-users] Why can I redefine some types and not others?

2015-10-15 Thread Andrew
I've got code with many user defined types. I am aware that you're not supposed to be able to redefine types and that there is a workaround where you wrap all your code in a module, but for ease of use I'm trying not to do that right now. I'm finding that sometimes I can reload my coat without

Re: [julia-users] Re: Which public key is Julia 0.4.0 Pkg.Git trying to use on Windows?

2015-10-15 Thread Tony Kelman
Are HOMEDRIVE and HOMEPATH set? The homedir() function should be falling back to the concatenation of those on windows.

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Yichao Yu
On Thu, Oct 15, 2015 at 8:53 AM, Roger Luo wrote: > I just start to write the program so I may not have any code to post. > I want to define a position of a particle like > > type particle{T} > pos::T > end > > but I hope the type of pos can be limited rather than the supertype any > > 2015-10

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Roger Luo
I just find a solution: use AbstractArray(I don't know if this appears only in v0.4,but this is what I need I think!) thanks folks! 2015-10-15 20:53 GMT+08:00 Roger Luo : > I just start to write the program so I may not have any code to post. > I want to define a position of a particle like > > t

Re: [julia-users] Call by name

2015-10-15 Thread Kevin Squire
It's a little different, but macro invocation is similar to pass by name semantics, in that variables are substituted directly into an expression at compile time. Cheers, Kevin On Wednesday, October 14, 2015, Stefan Karpinski wrote: > No, Julia only supports one evaluation strategy: strict e

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Roger Luo
I just start to write the program so I may not have any code to post. I want to define a position of a particle like type particle{T} pos::T end but I hope the type of pos can be limited rather than the supertype any 2015-10-15 20:51 GMT+08:00 Roger Luo : > It's like what if I want to defin

Re: [julia-users] Is there a way to define abstract type from a type in base.jl

2015-10-15 Thread Roger Luo
It's like what if I want to define a 3-dimension linear space R^3 as an abstract type and the Array{Float,3} is a subtype-like type of the abstract type 3-dimension linear space? I want a linear space as abstract type and some subtypes that can do the linear algebra. 2015-09-25 20:36 GMT+08:00 Yi

Re: [julia-users] Re: Which public key is Julia 0.4.0 Pkg.Git trying to use on Windows?

2015-10-15 Thread Tomas Lycken
OK, let me re-phrase. I assume it’s a bug that Julia doesn’t find my home directory? This applies not only to git configuration, as it turns out - if I, for example, put a .juliarc file in my home directory, it isn’t run on startup (I assume because Julia has no indication anywhere that it sh

Re: [julia-users] Re: Which public key is Julia 0.4.0 Pkg.Git trying to use on Windows?

2015-10-15 Thread tavert
Not necessarily, git-bash is a posix login shell. Windows doesn't usually set HOME, we use it if set in Julia but have a fallback for when it isn't. On Oct 14, 2015 11:28 PM, "Tomas Lycken" wrote: > Good catch! > > # in git bash > $ echo $HOME > /c/Users/Tomas Lycken > > # in Julia 0.4 > julia> E

Re: [julia-users] How to send dynamically generated code to worker processes?

2015-10-15 Thread Matthew Pearce
Thanks, works nicely. On Thursday, October 15, 2015 at 12:39:17 PM UTC+1, Stefan Karpinski wrote: > > Prefix the function definition with @everywhere and it should work. > > On Thu, Oct 15, 2015 at 5:06 PM, Matthew Pearce > wrote: > >> Hello >> >> I was wondering if there was a way to send dynami

Re: [julia-users] How to send dynamically generated code to worker processes?

2015-10-15 Thread Stefan Karpinski
Prefix the function definition with @everywhere and it should work. On Thu, Oct 15, 2015 at 5:06 PM, Matthew Pearce wrote: > Hello > > I was wondering if there was a way to send dynamically generated code over > the network? > > This is the kind of thing I am imagining to get bar() loaded on wor

[julia-users] How to send dynamically generated code to worker processes?

2015-10-15 Thread Matthew Pearce
Hello I was wondering if there was a way to send dynamically generated code over the network? This is the kind of thing I am imagining to get bar() loaded on worker processes: *workrs = addprocs(4)function foo(x) function bar(y) x*y end barendbar = foo(2)[@spawnat w ba

Re: [julia-users] Re: What features are interesting in a VS Code plug-in?

2015-10-15 Thread Burning Legion
At the moment it is dirt simple. Just create the extension and that's about all you can do for now. I am happy to do so however. Will have it up later . On Thursday, October 15, 2015 at 2:46:49 AM UTC+2, David Anthoff wrote: > > Would it make sense to have a git repo with a Julia extension for V

Re: [julia-users] Macro definition and call environments

2015-10-15 Thread Stefan Karpinski
On Thu, Oct 15, 2015 at 8:28 AM, wrote: > - Do these global variables also refer to function calls like time(), > println() within a macro?? Yes, time and println are just const global bindings to generic function objects. I am kind of confused how to think of the hygiene of a macro: > - Sh

Re: [julia-users] Strange performance problem with expression length inside @simd loop

2015-10-15 Thread Damien
> > > Thanks, parentheses do help. > > My project is running into a lot of these corner cases and I was wondering > if I could help by collecting them into some sort of vectorisation tests > that we could add to the test suite? > > I'm currently using this utility to check for vectorisation and

[julia-users] DataFrames only with header line and no other lines

2015-10-15 Thread Joaquim Masset Lacombe Dias Garcia
I have been using the DataFrames package which is excellent by the way! I don't know if its a problem but if i try to read a .csv file with only one line (which is supposed to be the header of the dataframe), it returns the error: LoadError: ArgumentError: Columns and column index must be the s