[julia-users] Re: Julia ccall windows

2016-07-08 Thread Tony Kelman
What do you mean by "doesn't find those libraries" ? Note that you can't directly use ccall to call into C++ libraries unless they have an `extern "C"` interface. You could try using Cxx.jl if there's not easy way to create `extern "C"` entry points, but it's easier to start with plain C at

[julia-users] Re: Symbolic differentiation similar to TensorFlow / Theano

2016-07-08 Thread Chris Rackauckas
Have you checked out using the wrappers for TensorFlow, https://github.com/benmoran/TensorFlow.jl ? Or directly using PyCall? On Friday, July 8, 2016 at 5:02:55 PM UTC-7, Andrei Zh wrote: > > In Python, libraries like TensorFlow or Theano provide possibility to > perform automatic

[julia-users] IJCAI

2016-07-08 Thread Tom Breloff
Will any julians be in NYC for IJCAI or AGI-16 this week (and next)?

Re: [julia-users] Recompile package cloned from github?

2016-07-08 Thread Chris Rackauckas
Yeah, you need to restart Julia to recompile. If you're in Juno, just co Ctrl+j then Ctrl+k, and then run your script (you can also use Ctrl+j then Ctrl+c to clear the console). I find this easier than restarting the REPL. On Friday, July 8, 2016 at 4:23:44 PM UTC-7, Yichao Yu wrote: > > On

Re: [julia-users] Ambiguity error when dispatching on Union types

2016-07-08 Thread Darwin Darakananda
Is there a recommended way to getting around that? The example above had a union of only two types, but in the actual code I'm working on there are a couple more. Would I have to copying the code over and over with just small changes to the type signature? I guess you could use a macro to

Re: [julia-users] Pkg "threadsafe" or interprocess mutex package

2016-07-08 Thread Isaiah Norton
Libuv mostly abstracts away the differences, but named pipes are released automatically when the last handle closes, whereas named sockets are associated with an inode and must be checked/cleaned-up manually. On Thu, Jul 7, 2016 at 10:24 PM, David Anthoff wrote: > Yes,

Re: [julia-users] Ambiguity error when dispatching on Union types

2016-07-08 Thread Yichao Yu
On Fri, Jul 8, 2016 at 10:32 PM, Darwin Darakananda wrote: > Hi everyone, > > I have some code where multiple types share the same implementation of a > method, for example: > > abstract MyType > > > type A <: MyType end > type B <: MyType end > > > f(target::MyType,

[julia-users] Ambiguity error when dispatching on Union types

2016-07-08 Thread Darwin Darakananda
Hi everyone, I have some code where multiple types share the same implementation of a method, for example: abstract MyType type A <: MyType end type B <: MyType end f(target::MyType, source::MyType) = "fallback" f(target::Int,source::A) = "from A" f(target::MyType, source::A) = "from

[julia-users] Symbolic differentiation similar to TensorFlow / Theano

2016-07-08 Thread Andrei Zh
In Python, libraries like TensorFlow or Theano provide possibility to perform automatic differentiation over their computational graphs. E.g. in TensorFlow (example from SO ): data =

[julia-users] Re: Julia version of Matplotlib griddata?

2016-07-08 Thread Kaj Wiik
Yes, I tried that but for some reason, couldn't get natgrid recognized by matplotlib... One way would try to call natgrid library (libncarg) directly... Thanks, Kaj On Saturday, July 9, 2016 at 2:00:29 AM UTC+3, Steven G. Johnson wrote: > > (You can always call the Matplotlib function from

Re: [julia-users] Recompile package cloned from github?

2016-07-08 Thread Yichao Yu
On Thu, Jul 7, 2016 at 10:56 AM, Shyam Upadhyay wrote: > I found a package on github that I installed as follows into Julia, > > Pkg.clone("https://github.com/sbos/AdaGram.jl.git;) > Pkg.build("AdaGram") > > > Now I wanted to modify the package and see those changes. So, I

[julia-users] Julia ccall windows

2016-07-08 Thread Karli Kund
I'm new with Julia one(many) problem(s). I'm using c++ libraries (.dll/.lib) to connect my c++ program to company's program (it connects to home 127.0.0.1 through 5111 port by calling function "connect(port,in, out) and it works). Now I have Julia code that has to the same thing. My

[julia-users] Enter permanently on a REPL mode

2016-07-08 Thread Iagoba Apellaniz
I would prefer to enter permanently on a REPL mode like `shell`. See RCall.jl packages behavior. Once you are on R you have to hit `backspace` to get back to `julia>` which of course should be the default RELP mode. *julia*>[;] *shell*> ls DesktopDocuments Downloads JuliaProjects

[julia-users] Recompile package cloned from github?

2016-07-08 Thread Shyam Upadhyay
I found a package on github that I installed as follows into Julia, Pkg.clone("https://github.com/sbos/AdaGram.jl.git;) Pkg.build("AdaGram") Now I wanted to modify the package and see those changes. So, I cloned the repo and made my changes in the code. I

[julia-users] Re: Julia version of Matplotlib griddata?

2016-07-08 Thread Steven G. Johnson
(You can always call the Matplotlib function from Julia via PyCall.)

[julia-users] Julia version of Matplotlib griddata?

2016-07-08 Thread Kaj Wiik
Is there a Julia version of irregularly spaced data gridding that does zi = griddata(x,y,z,xi,yi), i.e. all arguments are 1d vectors? It seems that Julia interp and contour packages require x, y, z[x,y].

[julia-users] string interpolation for memory object name

2016-07-08 Thread Min-Woong Sohn
I am trying to run logistic regressions on a bunch of dependent variables like so: using GLM outcomes = [:mort30d, :readmit, :reoper, :sar] for i in 1:length(outcomes) logit_$(outcomes[i])_unadjusted = glm($(outcomes[i]) ~ race, puf, Binomial(),LogitLink())

Re: [julia-users] Release memory GC

2016-07-08 Thread Joaquim Masset Lacombe Dias Garcia
So the recommendation for clearing memory is calling GC after some function so that no references exist anymore? Em quinta-feira, 7 de julho de 2016 17:17:03 UTC-3, Yichao Yu escreveu: > > On Thu, Jul 7, 2016 at 4:10 PM, Thuener Silva > wrote: > > I have a code that uses a

[julia-users] Re: caching the pivot ordering for a sparse cholesky factorization?

2016-07-08 Thread Patrick Belliveau
Hi, I'm not sure whether it's possible to access the reordering using the builtin julia interface to the suitesparse library. If you have access to the Pardiso solver (or MKL, which includes a version of Pardiso) you can do so using the Pardiso.jl package. At some point there was an

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Tim Holy
On Friday, July 8, 2016 6:43:36 PM CDT Daniel Carrera wrote: > For that matter, will there be upper case functions for every > concrete type? ... I'm just curious. I wouldn't actually use that feature. Yes, it's just the constructor. In most cases you don't have to define them manually, they are

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Daniel Carrera
On 8 July 2016 at 17:20, Tim Holy wrote: > The string unification is already in julia-0.5. > I don't think I know what "string unification" means, but I guess part of it is that Base.String will become ok to use again? > There are functions called String(), Int(), and

Re: [julia-users] Re: testing intrument Automation

2016-07-08 Thread Yared Melese
Thanks for your quick response I have different commands that I want to control instruments via GPIB commands, It will be okay if I can import NI visa and build different logic in automating instruments. Here is a simple Python command I send to setup spectrum analyzer. I am a beginner and

Re: [julia-users] how to tell if a jld file contains a dataset?

2016-07-08 Thread Davide Lasagna
Thanks! On Friday, July 8, 2016 at 4:21:22 PM UTC+1, Tim Holy wrote: > > `has` or `exists` > > --Tim > > On Friday, July 8, 2016 8:01:40 AM CDT Davide Lasagna wrote: > > I have read the available documentation but I cannot seem to get it. > > > > How do I test whether an existing .jld file,

Re: [julia-users] how to tell if a jld file contains a dataset?

2016-07-08 Thread Tim Holy
`has` or `exists` --Tim On Friday, July 8, 2016 8:01:40 AM CDT Davide Lasagna wrote: > I have read the available documentation but I cannot seem to get it. > > How do I test whether an existing .jld file, opened as > > jldopen(filename, "r") do handle > # test whether handle contains the

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Tim Holy
The string unification is already in julia-0.5. There are functions called String(), Int(), and Float64(). In some cases there are lowercase variants, and these often "do more" (e.g., `float` will parse a string and return an AbstractFloat). The uppercase versions are the minimalist

[julia-users] Re: ANN: New Julia Packages website

2016-07-08 Thread Adrian Salceanu
I've now added a chat for Genie.jl :) vineri, 8 iulie 2016, 17:03:35 UTC+2, Adrian Salceanu a scris: > > Thanks Eric! > > Yeah, the Rust package is pretty cool, I've stumbled onto it myself > earlier :-O > > Genie.jl, thanks! It's still early but I'm super hyped by the way it comes > out! >

[julia-users] Re: ANN: New Julia Packages website

2016-07-08 Thread Adrian Salceanu
Thanks Eric! Yeah, the Rust package is pretty cool, I've stumbled onto it myself earlier :-O Genie.jl, thanks! It's still early but I'm super hyped by the way it comes out! Yeah, I'm on Gitter, on JuliaLang and JuliaLangEs. A vineri, 8 iulie 2016, 16:49:03 UTC+2, Eric Forgy a scris: > >

[julia-users] how to tell if a jld file contains a dataset?

2016-07-08 Thread Davide Lasagna
I have read the available documentation but I cannot seem to get it. How do I test whether an existing .jld file, opened as jldopen(filename, "r") do handle # test whether handle contains the dataset "foo" end contains a dataset, given its name as a string, e.g. "foo"? Thanks! Davide

[julia-users] Re: ANN: New Julia Packages website

2016-07-08 Thread Eric Forgy
Btw, Genie.jl also looks super cool +1. Are you on Gitter or? On Friday, July 8, 2016 at 10:37:59 PM UTC+8, Eric Forgy wrote: > > This looks pretty awesome. Thanks! > > I found a bunch of awesome looking new packages too with this, e.g. > Rust.jl :heart_eyes: >

[julia-users] Re: ANN: New Julia Packages website

2016-07-08 Thread Eric Forgy
This looks pretty awesome. Thanks! I found a bunch of awesome looking new packages too with this, e.g. Rust.jl :heart_eyes:

[julia-users] Re: When Julia v1.0 will be released?

2016-07-08 Thread Sisyphuss
You should really double (if not triple) the time when estimating. This is a rule of thumb. The technologies keep moving, and it is hard to tell whether Julia1.0 milestone will include new features. Even when Julia1.0 comes out, there are still issues on ecosystem and the documentation.

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Daniel Carrera
On Friday, 8 July 2016 16:01:25 UTC+2, Scott Jones wrote: > > We are looking forward to being able to use v0.5, with fast anonymous > functions, cleaner array syntax, Gallium debugger and C++, and many many > other improvements > Cleaner array syntax? Tell me more? > (although the string

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Scott Jones
It used to be that [[1,2],[3,4]] would try to concatenate the two vectors into [1,2,3,4], which was inconsistent with Vector{Int}[[1,2],[3,4]] (which returns a vector of vectors). That syntax was deprecated in v0.4.x, and in v0.5 now means the same thing (and the same as in any other language

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Daniel Carrera
This is just me, but I prefer to wait a bit longer than to get mistakes frozen into the language. One bit that I care about is the names of some types and functions. For example, right now we have - Base.String - Base.ASCIIString - Base.UTF8String - Base.AbstractString So, I want to use

Re: [julia-users] When Julia v1.0 will be released?

2016-07-08 Thread Scott Jones
Actually, the blog post from StaffJoy ( https://blog.staffjoy.com/retro-on-the-julia-programming-language-7655121ea341#.35atllel3) never said that it turned out to be a mistake, in the conclusion they said: > The Julia language helped to create Staffjoy and turn it into a business, > and for

[julia-users] ANN: New Julia Packages website

2016-07-08 Thread Adrian Salceanu
I've setup an early version of a Julia packages website, for your package discovery pleasure: http://genieframework.com/packages Fair warning, this is a test case website for Genie.jl, the full stack web framework I'm working on - and 90% of my focus was on building the actual framework and

[julia-users] Why two (qualified) macro invocation forms?

2016-07-08 Thread Hans-Peter
Acc. to the manual [1] either `Mod.@mac` or `@Mod.mac` can be used. What is the reason for the second form? Is it necessary to make me (other people?) think which form should be used preferably? Maybe there is a reason (didn't find something in issues/maillist) but with my current knowledge I'd

[julia-users] caching the pivot ordering for a sparse cholesky factorization?

2016-07-08 Thread Gabriel Goh
Hey, I have a sequence of sparse matrix factorizations I need to do, each one a different matrix but with the same sparsity structure. Is there a way I can save the AMD (or any other) ordering that sparsesuite returns, it does not need to be recomputed each time? Thanks a lot for the help!

[julia-users] Re: How do I plot into an ITerm2 window?

2016-07-08 Thread Josef Heinen
GR.jl works fine with Julia 0.5-dev: On Friday, July 8, 2016 at 5:10:31 AM UTC+2, Randy Lai wrote: > > In case anyone needs it