[julia-users] Libdl.find_library does not search in Libdl.DL_LOAD_PATH paths

2016-11-15 Thread Gregory Martinez
For some reason, Libdl.find_library is not searching in the Libdl.DL_LOAD_PATH paths The following commands: push!(Libdl.DL_LOAD_PATH, "/path_to_my_lib") Libdl.find_library(["libmy_lib.so"]) returns an empty string. Although, putting "/path_to_my_lib" into the LD_LIBRARY_PATH works fine. My

Re: [julia-users] shared library created by ifort can't be imported correctly

2016-11-15 Thread Angel de Vicente
Hi, 博陈 writes: > The julia code: > > !f90tojl.f90 > module m > contains > integer function five() > five = 5 > end function five > end module m > > The corresponding julia code: > #test.jl > println(ccall( (:__m_MOD_five, "f90tojl"), Int, () )) > > The test command and

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-15 Thread Ferran Mazzanti
Oh, now I see that just by copying plot_5 with a new name plot_6 and replacing plot( plot_1, plot_2, plot_3, plot_4, plot_5, plot_5, layout = lay ) with plot( plot_1, plot_2, plot_3, plot_4, plot_5, plot_6, layout = lay ), it works. But IT IS a bug, there is no reason why should not be able

Re: [julia-users] shared library created by ifort can't be imported correctly

2016-11-15 Thread 博陈
在 2016年11月15日星期二 UTC+8下午4:29:17,Ángel de Vicente写道: > > Hi, > > 博陈 writes: > > The julia code: > > > > !f90tojl.f90 > > module m > > contains > > integer function five() > > five = 5 > > end function five > > end module m > > > > The corresponding julia code:

[julia-users] Re: Why construction of Dict via generator is not type-stable?

2016-11-15 Thread Pablo Zubieta
FWIW this is should work fine on master and the solution is likely to be backported to the next 0.5.x version (https://github.com/JuliaLang/julia/pull/19245). On Sunday, November 13, 2016 at 10:16:20 AM UTC-6, bogumil@gmail.com wrote: > > Consider the following two functions: > > function

Re: [julia-users] Re: Julia calling MKL functions from fortran shared library

2016-11-15 Thread Angel de Vicente
Hi, I wanted to try this out. My test Fortran module is the following, which I compile with: ifort -mkl -o test_mod.so test_mod.f90 -shared -fpic , | module testmodule | | implicit none | | double precision, external :: ddot | double precision, dimension(3) :: d,e | | integer :: i

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Kevin Liu
Full code https://github.com/hpoit/MLN.jl/blob/master/Factor.jl https://github.com/hpoit/MLN.jl/blob/master/FactorOperations.jl On Tue, Nov 15, 2016 at 3:05 PM, Kevin Liu wrote: > This is weird. Please observe include() in the two attachments I've made. > > On Tue, Nov 15,

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Kevin Liu
For some reason, now everything just worked. On Tuesday, November 15, 2016 at 3:09:07 PM UTC-2, Kevin Liu wrote: > > Full code > > https://github.com/hpoit/MLN.jl/blob/master/Factor.jl > https://github.com/hpoit/MLN.jl/blob/master/FactorOperations.jl > > On Tue, Nov 15, 2016 at 3:05 PM, Kevin

[julia-users] unsafe_wrap from a pointer from a Julia array

2016-11-15 Thread Sheehan Olver
In some high performance code I want to convert an 2 x n `Matrix{Float64}` to a n long `Matrix{Vec{2,Float64}}`with no memory allocation (both types will store memory in the same order). The following works: *v=rand(2,100)* *w=unsafe_wrap(Vector{Vec{2,Float64}},* *

[julia-users] Sharing experience on packages

2016-11-15 Thread Jérôme Collet
Hi all, I am new to Julia, I used to use R. And using R packages, the main difficulty for me is the choice of a package for a given task. Most of the time, there are many packages solving the same problem, so we have to choose. - A first possibility could be the TaskViews, but it is

Re: [julia-users] Base.Threads user feedback: it's great. please keep it. anyone tried hybrid (addprocs + Threads)?

2016-11-15 Thread Stefan Karpinski
There's no risk of threading being removed. It's only experimental, as per Yichao, in the sense that it's currently not ready for production use. On Tue, Nov 15, 2016 at 9:07 AM, Yichao Yu wrote: > On Tue, Nov 15, 2016 at 8:42 AM, Florian Oswald >

Re: [julia-users] Sharing experience on packages

2016-11-15 Thread Stefan Karpinski
Pkg3, the next generation package manager I'm working on will likely include optional telemetry collection. You'll be asked to opt in or out when you first use it. On Tue, Nov 15, 2016 at 5:02 AM, Jérôme Collet wrote: > Hi all, > > > I am new to Julia, I used to use R.

[julia-users] Re: unsafe_wrap from a pointer from a Julia array

2016-11-15 Thread Gunnar Farnebäck
Is this what you're looking for? julia> using SIMD julia> v = rand(2, 5) 2×5 Array{Float64,2}: 0.391832 0.785861 0.352291 0.874891 0.874593 0.697768 0.51637 0.711525 0.400077 0.266559 julia> w = reinterpret(Vec{2, Float64}, vec(v)) 5-element Array{SIMD.Vec{2,Float64},1}:

Re: [julia-users] Benchmarking a function with parameters

2016-11-15 Thread Uwe Fechner
This was not the problem. The problem was, that I was using "Run" from within Juno. In that case, the result of @benchmark is not printed. Using: println(@benchmark ) solved the problem. Uwe On Monday, November 14, 2016 at 3:12:31 PM UTC+1, Yichao Yu wrote: > > On Mon, Nov 14, 2016 at

Re: [julia-users] R's update(Update and Re-fit a Model) in Julia?

2016-11-15 Thread Milan Bouchet-Valat
Le lundi 14 novembre 2016 à 14:18 -0800, Hongwei Liu a écrit : > Hi guys, > > I am new to Julia and I have trouble in finding a similar function in > Julia that has the ability of "update" in R. > > For example, set formula = y ~ x1 + x2 > > In R, I can use update(formula, D  ~ . ) to change

RE: [julia-users] Re: Hide and disable REPL

2016-11-15 Thread David Anthoff
That deletes everything, but really I just want to hide the current prompt. So say this is how the console looks: julia> println(5) 5 julia>function foo(x) println(x) So in this case the users is in the middle of entering something new into the REPL (i.e. the definition of

RE: [julia-users] Re: Hide and disable REPL

2016-11-15 Thread David Anthoff
I think most of them just have the code pasted into the REPL. That would work for us as well, but then we can’t do things like eval code in the context of a specific module. From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of cdm Sent: Monday, November 14,

[julia-users] Re: Sharing experience on packages

2016-11-15 Thread Chris Rackauckas
For now, stars are the best bad measurement we have. On Tuesday, November 15, 2016 at 8:05:16 AM UTC-8, Jérôme Collet wrote: > > Hi all, > > > I am new to Julia, I used to use R. And using R packages, the main > difficulty for me is the choice of a package for a given task. Most of the > time,

[julia-users] Re: Julia calling MKL functions from fortran shared library

2016-11-15 Thread Steven G. Johnson
On Tuesday, November 15, 2016 at 4:23:11 AM UTC-5, 博陈 wrote: > > I got > Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. > Possibly you need to add the directory containing these files (/opt/intel/composer_xe_2015.0.090/mkl/lib or similar?) to your LD_LIBRARY_PATH

[julia-users] Julia calling MKL functions from fortran shared library

2016-11-15 Thread 博陈
These days, I tried a walkaround to implement FFT in julia with the help of the MKL fft properties. I wrote a fortran module with several subroutines, in some of which the MKL FFT function was called. The fortran file was compiled to a shared library. ifort modules.f90 -parallel -mkl

Re: [julia-users] Re: Julia calling MKL functions from fortran shared library

2016-11-15 Thread 博陈
在 2016年11月16日星期三 UTC+8上午12:49:13,Ángel de Vicente写道: > > Hi, > > I wanted to try this out. My test Fortran module is the following, which > I compile with: ifort -mkl -o test_mod.so test_mod.f90 -shared -fpic > , > | module testmodule > | > | implicit none > | > | double

Re: [julia-users] Plots.jl: layout of several plots, with more than one curve per plot

2016-11-15 Thread Tom Breloff
Serious "give a mouse a cookie syndrome". You can do what you want by calling 'plot_6 = deepcopy(plot_5)' first. On Tuesday, November 15, 2016, Ferran Mazzanti wrote: > Oh, now I see that just by copying plot_5 with a new name plot_6 and > replacing > > plot( plot_1,

Re: [julia-users] Re: Hide and disable REPL

2016-11-15 Thread Steven G. Johnson
On Friday, November 4, 2016 at 1:28:16 PM UTC-4, David Anthoff wrote: > > > The complete setup is slightly more complicated, but you can imagine just > the following: start a normal julia REPL. Then include a file that will > start a server listening on some socket. This server is all async,

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Yichao Yu
On Mon, Nov 14, 2016 at 10:35 PM, Kevin Liu wrote: > Does indentation affect `include("FactorOperations.jl")`? If I pull it back No. > to where `module` starts, it says `incomplete module at ... requires end`. > Then pushing it under `type` defines `module`. Unclear what you

Re: [julia-users] Re: Reloading module doesn't redefine constant

2016-11-15 Thread Yichao Yu
On Mon, Nov 14, 2016 at 10:47 PM, Kevin Liu wrote: > Also, now `function FactorPermute(A::Factor, v::Vector{Int})` won't define, > throws > > TypeError: Tuple: in parameter, expected Type{T}, got Module > Apparently `Factor` is still a module. I have no idea what's the full

Re: [julia-users] Base.Threads user feedback: it's great. please keep it. anyone tried hybrid (addprocs + Threads)?

2016-11-15 Thread Florian Oswald
ok, thanks for that. do you think this is going to change already in v0.6 or will that have to wait until a future release? On 14 November 2016 at 23:59, Yichao Yu wrote: > On Mon, Nov 14, 2016 at 5:08 PM, Florian Oswald > wrote: > > I'm not sure

Re: [julia-users] Base.Threads user feedback: it's great. please keep it. anyone tried hybrid (addprocs + Threads)?

2016-11-15 Thread Yichao Yu
On Tue, Nov 15, 2016 at 8:42 AM, Florian Oswald wrote: > ok, thanks for that. do you think this is going to change already in v0.6 or > will that have to wait until a future release? There will be improvements but it's very likely still going to be experimental in 0.6.

Re: [julia-users] Re: Hide and disable REPL

2016-11-15 Thread cdm
it seems like some of the client.jl code https://github.com/JuliaLang/julia/blob/master/base/client.jl should provide the foundation ... maybe something around active_repl_backend or some active_repl switching. also from code comments: atreplinit(f) Register a one-argument function to

[julia-users] [Announcement] Moving to Discourse

2016-11-15 Thread Valentin Churavy
I would like to accelerate the move of `julia-users` to https://discourse.julialang.org. In the original announcement (https://groups.google.com/d/msg/julia-users/Ov1J6MOVly0/cD7vNKOUAgAJ) I mentioned a evaluation period of 4 weeks, but since then members of the community have been approaching