[julia-users] Re: Can not require a precompiled package

2014-11-07 Thread xiongjieyi
Can you require a pre-compiled package in your Julia? If yes, could you 
please tell me your version? Thanks!

On Friday, November 7, 2014 3:10:15 PM UTC+1, xiong...@gmail.com wrote:

 After I precompiled a package in userimg.jl, require(Package_name) is 
 always blocked without any response. But using and import the package 
 works fine. That's weired.

 If I interrupt require-ing package by Ctrl-C, the breaking point always be:

 julia require(DataFrames)
 ^CERROR: interrupt
  in wait at ./task.jl:277
  in wait at ./task.jl:194
  in wait_full at ./multi.jl:602
  in wait_ref at ./multi.jl:755
  in wait_ref_3B_7574 at 
 /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so
  in call_on_owner at ./multi.jl:749
  in wait at ./multi.jl:756
  in _require at ./loading.jl:62
  in require at ./loading.jl:52
  in require_3B_7273 at 
 /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so

 FYI:
 julia versioninfo()
 Julia Version 0.4.0-dev+728
 Commit f7172d3* (2014-09-22 12:08 UTC)
 Platform Info:
   System: Linux (x86_64-redhat-linux)
   CPU: Intel(R) Xeon(R) CPU E7- 4830  @ 2.13GHz
   WORD_SIZE: 64
   BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
   LAPACK: libopenblas
   LIBM: libopenlibm
   LLVM: libLLVM-3.3



Re: [julia-users] Full blown GUI programming with Julia+JS

2014-11-07 Thread Job van der Zwan


 What's best is relative ;-) I personally haven't used IE in years, so I 
 wouldn't know.

Of course ;). For the record, neither have I (which would explain my 
outdated info, see below)

On Thursday, 6 November 2014 20:23:46 UTC+1, Jameson wrote:

 Completely OT and [citation needed]. However, fwiw, IE didn't add SVG 
 support until IE9


Sorry, sorry. I was just joking because I remember IE being the first to 
support hardware accelerated SVG and surprising everyone by beating the 
other browsers in this department [0]. My own tests at the time had similar 
results. But that was a lot of versions ago, if I run some more recent 
benchmarks[1][2], they're much closer. On Windows, that is -IIRC Firefox 
doesn't have hardware acceleration on Linux yet, for example.

Anyway, the only real issue seems to be that SVG still still doesn't scale 
very well[3] (in terms of elements, not resolution of course), so as long 
as you don't have too many GUI elements it shouldn't matter much.

[0] http://joeloughton.com/blog/web-applications/svg-vs-canvas-performance/ 
[1] http://jsperf.com/html-vs-svg-vs-canvas/26 (FF beats Chrome beats IE on 
my machine)
[2] https://www.mapbox.com/osmdev/2012/11/20/getting-serious-about-svg/ - 
(check the unrounded/rounded performance links, Chrome beats IE beats FF on 
my machine)
[3] http://frozeman.de/blog/2013/08/why-is-svg-so-slow/


Re: [julia-users] Re: Julia talk at EuroSciPy 2014

2014-11-07 Thread Daniel Carrera

Thanks for the link. Great talk indeed. I actually didn't know that you 
could type \alpha then the tab key and actually get the Greek 
character α. It also works in the REPL. It's great.


On Friday, 7 November 2014 06:48:22 UTC+1, Michele Zaffalon wrote:

 This is a great talk: can a link to the video be posted in 
 http://julialang.org/learning/?




Re: [julia-users] Re: Can not require a precompiled package

2014-11-07 Thread Tim Holy
Out of curiosity, why do you want to do this? Once you've got the module 
available, I would think you'd just refer to it by module name?

--Tim

On Friday, November 07, 2014 06:25:55 AM xiongji...@gmail.com wrote:
 Can you require a pre-compiled package in your Julia? If yes, could you
 please tell me your version? Thanks!
 
 On Friday, November 7, 2014 3:10:15 PM UTC+1, xiong...@gmail.com wrote:
  After I precompiled a package in userimg.jl, require(Package_name) is
  always blocked without any response. But using and import the package
  works fine. That's weired.
  
  If I interrupt require-ing package by Ctrl-C, the breaking point always
  be:
  
  julia require(DataFrames)
  ^CERROR: interrupt
  
   in wait at ./task.jl:277
   in wait at ./task.jl:194
   in wait_full at ./multi.jl:602
   in wait_ref at ./multi.jl:755
   in wait_ref_3B_7574 at
  
  /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so
  
   in call_on_owner at ./multi.jl:749
   in wait at ./multi.jl:756
   in _require at ./loading.jl:62
   in require at ./loading.jl:52
   in require_3B_7273 at
  
  /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so
  
  FYI:
  julia versioninfo()
  Julia Version 0.4.0-dev+728
  Commit f7172d3* (2014-09-22 12:08 UTC)
  
  Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Xeon(R) CPU E7- 4830  @ 2.13GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3



Re: [julia-users] Re: Julia talk at EuroSciPy 2014

2014-11-07 Thread Steven G. Johnson


On Friday, November 7, 2014 10:08:16 AM UTC-5, Daniel Carrera wrote:


 Thanks for the link. Great talk indeed. I actually didn't know that you 
 could type \alpha then the tab key and actually get the Greek 
 character α. It also works in the REPL. It's great.


(It also works in Emacs and vim, as well as some other editors with Julia 
modes.  The most trivial feature to implement, and yet one of the most 
viscerally gratifying.  See the tab-completion discussion in the manual: 
http://docs.julialang.org/en/latest/manual/interacting-with-julia/#tab-completion)

Someone is welcome to post the video link on the Julia learning page; 
hopefully they will spell my name correctly.  :-b


Re: [julia-users] Re: Can not require a precompiled package

2014-11-07 Thread xiongjieyi
Actually it is not what I want, but require function is used in the code of 
other packages. I noted this problem when I failed to load Rif package 
after I precompiled Gadfly package. The Rif package can not be loaded since 
it requires DataFrames package, which is alreally precompiled along with 
Gadfly package. So, if require function just do nothing about any 
precompiled package, everything will be fine.

On Friday, November 7, 2014 4:33:22 PM UTC+1, Tim Holy wrote:

 Out of curiosity, why do you want to do this? Once you've got the module 
 available, I would think you'd just refer to it by module name? 

 --Tim 

 On Friday, November 07, 2014 06:25:55 AM xiong...@gmail.com javascript: 
 wrote: 
  Can you require a pre-compiled package in your Julia? If yes, could you 
  please tell me your version? Thanks! 
  
  On Friday, November 7, 2014 3:10:15 PM UTC+1, xiong...@gmail.com wrote: 
   After I precompiled a package in userimg.jl, require(Package_name) 
 is 
   always blocked without any response. But using and import the 
 package 
   works fine. That's weired. 
   
   If I interrupt require-ing package by Ctrl-C, the breaking point 
 always 
   be: 
   
   julia require(DataFrames) 
   ^CERROR: interrupt 
   
in wait at ./task.jl:277 
in wait at ./task.jl:194 
in wait_full at ./multi.jl:602 
in wait_ref at ./multi.jl:755 
in wait_ref_3B_7574 at 
   
   /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so 
   
in call_on_owner at ./multi.jl:749 
in wait at ./multi.jl:756 
in _require at ./loading.jl:62 
in require at ./loading.jl:52 
in require_3B_7273 at 
   
   /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so 
   
   FYI: 
   julia versioninfo() 
   Julia Version 0.4.0-dev+728 
   Commit f7172d3* (2014-09-22 12:08 UTC) 
   
   Platform Info: 
 System: Linux (x86_64-redhat-linux) 
 CPU: Intel(R) Xeon(R) CPU E7- 4830  @ 2.13GHz 
 WORD_SIZE: 64 
 BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM) 
 LAPACK: libopenblas 
 LIBM: libopenlibm 
 LLVM: libLLVM-3.3 



Re: [julia-users] Re: Can not require a precompiled package

2014-11-07 Thread Ivar Nesje
https://github.com/lgautier/Rif.jl/issues/40 Seems relevant.

kl. 16:54:10 UTC+1 fredag 7. november 2014 skrev xiong...@gmail.com 
følgende:

 Actually it is not what I want, but require function is used in the code 
 of other packages. I noted this problem when I failed to load Rif package 
 after I precompiled Gadfly package. The Rif package can not be loaded since 
 it requires DataFrames package, which is alreally precompiled along with 
 Gadfly package. So, if require function just do nothing about any 
 precompiled package, everything will be fine.

 On Friday, November 7, 2014 4:33:22 PM UTC+1, Tim Holy wrote:

 Out of curiosity, why do you want to do this? Once you've got the module 
 available, I would think you'd just refer to it by module name? 

 --Tim 

 On Friday, November 07, 2014 06:25:55 AM xiong...@gmail.com wrote: 
  Can you require a pre-compiled package in your Julia? If yes, could you 
  please tell me your version? Thanks! 
  
  On Friday, November 7, 2014 3:10:15 PM UTC+1, xiong...@gmail.com 
 wrote: 
   After I precompiled a package in userimg.jl, require(Package_name) 
 is 
   always blocked without any response. But using and import the 
 package 
   works fine. That's weired. 
   
   If I interrupt require-ing package by Ctrl-C, the breaking point 
 always 
   be: 
   
   julia require(DataFrames) 
   ^CERROR: interrupt 
   
in wait at ./task.jl:277 
in wait at ./task.jl:194 
in wait_full at ./multi.jl:602 
in wait_ref at ./multi.jl:755 
in wait_ref_3B_7574 at 
   
   /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so 
   
in call_on_owner at ./multi.jl:749 
in wait at ./multi.jl:756 
in _require at ./loading.jl:62 
in require at ./loading.jl:52 
in require_3B_7273 at 
   
   /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so 
   
   FYI: 
   julia versioninfo() 
   Julia Version 0.4.0-dev+728 
   Commit f7172d3* (2014-09-22 12:08 UTC) 
   
   Platform Info: 
 System: Linux (x86_64-redhat-linux) 
 CPU: Intel(R) Xeon(R) CPU E7- 4830  @ 2.13GHz 
 WORD_SIZE: 64 
 BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM) 
 LAPACK: libopenblas 
 LIBM: libopenlibm 
 LLVM: libLLVM-3.3 



Re: [julia-users] Re: Can not require a precompiled package

2014-11-07 Thread xiongjieyi
Ah yes, sorry but I am the same person who posted this issue ^ ^b

So far I have a dirty solution: add below code at the beginning of require 
function in load.jl and re-compile it:

if ismatch(r^\w+$,name)  isdefined(parse(name))
return nothing
end

Everything seems goes fine now... Hope it won't have any serious 
side-effect...
I think as a Julia user, it is more valuable to make package-loading faster 
than make it always updated. The package loading time is a bottle-neck of 
improving user-experience right now. I quite support the precompile 
function.

On Friday, November 7, 2014 5:34:27 PM UTC+1, Ivar Nesje wrote:

 https://github.com/lgautier/Rif.jl/issues/40 Seems relevant.

 kl. 16:54:10 UTC+1 fredag 7. november 2014 skrev xiong...@gmail.com 
 følgende:

 Actually it is not what I want, but require function is used in the code 
 of other packages. I noted this problem when I failed to load Rif package 
 after I precompiled Gadfly package. The Rif package can not be loaded since 
 it requires DataFrames package, which is alreally precompiled along with 
 Gadfly package. So, if require function just do nothing about any 
 precompiled package, everything will be fine.

 On Friday, November 7, 2014 4:33:22 PM UTC+1, Tim Holy wrote:

 Out of curiosity, why do you want to do this? Once you've got the module 
 available, I would think you'd just refer to it by module name? 

 --Tim 

 On Friday, November 07, 2014 06:25:55 AM xiong...@gmail.com wrote: 
  Can you require a pre-compiled package in your Julia? If yes, could 
 you 
  please tell me your version? Thanks! 
  
  On Friday, November 7, 2014 3:10:15 PM UTC+1, xiong...@gmail.com 
 wrote: 
   After I precompiled a package in userimg.jl, require(Package_name) 
 is 
   always blocked without any response. But using and import the 
 package 
   works fine. That's weired. 
   
   If I interrupt require-ing package by Ctrl-C, the breaking point 
 always 
   be: 
   
   julia require(DataFrames) 
   ^CERROR: interrupt 
   
in wait at ./task.jl:277 
in wait at ./task.jl:194 
in wait_full at ./multi.jl:602 
in wait_ref at ./multi.jl:755 
in wait_ref_3B_7574 at 
   
   /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so 
   
in call_on_owner at ./multi.jl:749 
in wait at ./multi.jl:756 
in _require at ./loading.jl:62 
in require at ./loading.jl:52 
in require_3B_7273 at 
   
   /home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so 
   
   FYI: 
   julia versioninfo() 
   Julia Version 0.4.0-dev+728 
   Commit f7172d3* (2014-09-22 12:08 UTC) 
   
   Platform Info: 
 System: Linux (x86_64-redhat-linux) 
 CPU: Intel(R) Xeon(R) CPU E7- 4830  @ 2.13GHz 
 WORD_SIZE: 64 
 BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM) 
 LAPACK: libopenblas 
 LIBM: libopenlibm 
 LLVM: libLLVM-3.3 



Re: [julia-users] Intel Xeon Phi support?

2014-11-07 Thread John Drummond
In the short term some options calculations, some other monte carlo 
calculations. They're all ridiculously parallel.
i.e for a whole lot of client data what does a population of simulated 
clients look like having had the same trades, one by one.
I'd have to do a whole lot of anonymisation to hand it out. At the moment I 
farm it out over some servers - I was wondering about ways to speed it up 
hence wondering about the xeon phi. 
The really difficult to get working looks depressing. Maybe I stick it on 
ebay and wait for Knight's Landing
I see Stac are working with someone to have a Julia benchmark - that would 
be more authoritative.
Thanks.
Kind Regards, John.


On Thursday, November 6, 2014 6:14:51 PM UTC, Viral Shah wrote:

 We had ordered a couple, but they are really difficult to get working. 
 There is a fair bit of compiler work that is required to get it to work - 
 so it is safe to assume that this is not coming anytime soon. However, the 
 Knight's Landing should work out of the box with Julia whenever it comes 
 and we will most likely have robust multi-threading support by then to 
 leverage it.

 Out of curiosity, what would you like to run on the Xeon Phi? It may be a 
 good multi-threading benchmark for us in general.

 -viral

 On Thursday, November 6, 2014 9:35:57 PM UTC+5:30, John Drummond wrote:

 Did you have any success?
 There's an offer of the cards for 200usd at the moment

 https://software.intel.com/en-us/articles/special-promotion-intel-xeon-phi-coprocessor-31s1p
 so I was going to pick one up
 Kind Regards, John.
 On Monday, May 12, 2014 4:45:32 PM UTC+1, Stefan Karpinski wrote:

 Not that I'm aware of, but we're going to take a crack at this over the 
 summer, so there should be some progress here in the relatively near future.


 On Mon, May 12, 2014 at 9:46 AM, Nikolaos tsakos.w...@gmail.com wrote:

 Hi,

 Has anyone tried to configure and run julia on an intel xeon phi 
 coprocessor?
 Any hints would be very helpful , how to run parallel on intel's phi 
 cores.

  Thank you.




Re: [julia-users] Full blown GUI programming with Julia+JS

2014-11-07 Thread Shashi Gowda
In light of what Patchwork can do, and staying future proof, I am more
concerned about Web Components support, which IE seems to be still
considering http://jonrimmer.github.io/are-we-componentized-yet/

More on web components here:
http://css-tricks.com/modular-future-web-components/

On Fri, Nov 7, 2014 at 8:19 PM, Job van der Zwan j.l.vanderz...@gmail.com
wrote:

 What's best is relative ;-) I personally haven't used IE in years, so I
 wouldn't know.

 Of course ;). For the record, neither have I (which would explain my
 outdated info, see below)

 On Thursday, 6 November 2014 20:23:46 UTC+1, Jameson wrote:

 Completely OT and [citation needed]. However, fwiw, IE didn't add SVG
 support until IE9


 Sorry, sorry. I was just joking because I remember IE being the first to
 support hardware accelerated SVG and surprising everyone by beating the
 other browsers in this department [0]. My own tests at the time had similar
 results. But that was a lot of versions ago, if I run some more recent
 benchmarks[1][2], they're much closer. On Windows, that is -IIRC Firefox
 doesn't have hardware acceleration on Linux yet, for example.

 Anyway, the only real issue seems to be that SVG still still doesn't scale
 very well[3] (in terms of elements, not resolution of course), so as long
 as you don't have too many GUI elements it shouldn't matter much.

 [0]
 http://joeloughton.com/blog/web-applications/svg-vs-canvas-performance/
 [1] http://jsperf.com/html-vs-svg-vs-canvas/26 (FF beats Chrome beats IE
 on my machine)
 [2] https://www.mapbox.com/osmdev/2012/11/20/getting-serious-about-svg/ -
 (check the unrounded/rounded performance links, Chrome beats IE beats FF on
 my machine)
 [3] http://frozeman.de/blog/2013/08/why-is-svg-so-slow/



[julia-users] defining function for lt for use in sort - simple question

2014-11-07 Thread John Drummond
Hi,
I suspect I'm doing something stupid but no idea what I'm missing.

I create a module .
I create a type in it, DayPriceText
I import Base.isless
I define isless for the type

now in the repl I get

methods(isless)
=
# 25 methods for generic function isless:
..
isless(x::DayPriceText,y::DayPriceText) at c:\works\juliaplay\LogParse.jl:16

but

julia typeof(a1p)
Array{DayPriceText,1}

julia sort(a1p, lt=CILogParse.isless)
ERROR: `isless` has no method matching isless(::DayPriceText, 
::DayPriceText)
 in sort! at sort.jl:246

julia sort(a1p)
ERROR: `isless` has no method matching isless(::DayPriceText, 
::DayPriceText)
 in sort! at sort.jl:246

I'm sure there's some obvious answer, but I've not idea what.
Thanks for any help
kind regards, John.



Re: [julia-users] Re: Can not require a precompiled package

2014-11-07 Thread Tim Holy
In general I would think packages should be using `import` or `using` rather 
than `require`. That would fix your problem, I think.

--Tim

On Friday, November 07, 2014 09:32:33 AM xiongji...@gmail.com wrote:
 Ah yes, sorry but I am the same person who posted this issue ^ ^b
 
 So far I have a dirty solution: add below code at the beginning of require
 function in load.jl and re-compile it:
 
 if ismatch(r^\w+$,name)  isdefined(parse(name))
 return nothing
 end
 
 Everything seems goes fine now... Hope it won't have any serious
 side-effect...
 I think as a Julia user, it is more valuable to make package-loading faster
 than make it always updated. The package loading time is a bottle-neck of
 improving user-experience right now. I quite support the precompile
 function.
 
 On Friday, November 7, 2014 5:34:27 PM UTC+1, Ivar Nesje wrote:
  https://github.com/lgautier/Rif.jl/issues/40 Seems relevant.
  
  kl. 16:54:10 UTC+1 fredag 7. november 2014 skrev xiong...@gmail.com
  
  følgende:
  Actually it is not what I want, but require function is used in the code
  of other packages. I noted this problem when I failed to load Rif package
  after I precompiled Gadfly package. The Rif package can not be loaded
  since
  it requires DataFrames package, which is alreally precompiled along
  with
  Gadfly package. So, if require function just do nothing about any
  precompiled package, everything will be fine.
  
  On Friday, November 7, 2014 4:33:22 PM UTC+1, Tim Holy wrote:
  Out of curiosity, why do you want to do this? Once you've got the module
  available, I would think you'd just refer to it by module name?
  
  --Tim
  
  On Friday, November 07, 2014 06:25:55 AM xiong...@gmail.com wrote:
   Can you require a pre-compiled package in your Julia? If yes, could
  
  you
  
   please tell me your version? Thanks!
   
   On Friday, November 7, 2014 3:10:15 PM UTC+1, xiong...@gmail.com
  
  wrote:
After I precompiled a package in userimg.jl, require(Package_name)
  
  is
  
always blocked without any response. But using and import the
  
  package
  
works fine. That's weired.

If I interrupt require-ing package by Ctrl-C, the breaking point
  
  always
  
be:

julia require(DataFrames)
^CERROR: interrupt

 in wait at ./task.jl:277
 in wait at ./task.jl:194
 in wait_full at ./multi.jl:602
 in wait_ref at ./multi.jl:755
 in wait_ref_3B_7574 at

/home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so

 in call_on_owner at ./multi.jl:749
 in wait at ./multi.jl:756
 in _require at ./loading.jl:62
 in require at ./loading.jl:52
 in require_3B_7273 at

/home/MyDir/programs/julia/usr/bin/../lib/julia/sys.so

FYI:
julia versioninfo()
Julia Version 0.4.0-dev+728
Commit f7172d3* (2014-09-22 12:08 UTC)

Platform Info:
  System: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Xeon(R) CPU E7- 4830  @ 2.13GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3



[julia-users] Re: defining function for lt for use in sort - simple question

2014-11-07 Thread Ivar Nesje
In this case it would be really great if you had a minimal reproducible 
example. It looks to me as you are doing everything right, so I would start 
looking for typos and scoping issues. It's hard to find them without 
looking at the code.

Ideally the example should be small and possible to paste into a REPL 
session, but if you can publish your code and don't want to extract only 
the relevant part, that might be fine too.

Julia version and operating system is also nice to include, so that we have 
it available in case we have problems reproducing your results.

Regards Ivar

kl. 20:14:48 UTC+1 fredag 7. november 2014 skrev John Drummond følgende:

 Hi,
 I suspect I'm doing something stupid but no idea what I'm missing.

 I create a module .
 I create a type in it, DayPriceText
 I import Base.isless
 I define isless for the type

 now in the repl I get

 methods(isless)
 =
 # 25 methods for generic function isless:
 ..
 isless(x::DayPriceText,y::DayPriceText) at 
 c:\works\juliaplay\LogParse.jl:16

 but

 julia typeof(a1p)
 Array{DayPriceText,1}

 julia sort(a1p, lt=CILogParse.isless)
 ERROR: `isless` has no method matching isless(::DayPriceText, 
 ::DayPriceText)
  in sort! at sort.jl:246

 julia sort(a1p)
 ERROR: `isless` has no method matching isless(::DayPriceText, 
 ::DayPriceText)
  in sort! at sort.jl:246

 I'm sure there's some obvious answer, but I've not idea what.
 Thanks for any help
 kind regards, John.



[julia-users] Re: Gadfly: Type command before close browser in REPL

2014-11-07 Thread xiongjieyi
I got a solution: Just open a firefox in the background in advance before 
Gadfly drawing. The REPL will return to command-ready state soon after the 
figure is shown.

On Tuesday, November 4, 2014 10:54:22 AM UTC+1, xiong...@gmail.com wrote:

 I like use Gadfly in REPL rather IJulia (because I can not Ctrl-C to break 
 running script in IJulia). The browser (firefox) with figure pop-up through 
 X11 on my screen. However, I cannot continue my command in REPL until I 
 close the browser. Is there any way to return command-ready state 
 immediately after the browser pop-up?



Re: [julia-users] Re: [ANN] Dierckx.jl: 1-d and 2-d splines as in scipy.interpolate

2014-11-07 Thread ewing . bobe
I'm new to Julia as of this week :-)  I'm working through some old homework 
problems as a way to learn the language.

I've gotten stuck on splines.  I don't want the even-spacing limitation of 
Grid.jl (though the problem I'm working on *does* have even spacing!), and 
I can't figure out how to use BSplines.jl.  ApproXD.jl and Dierckx.jl don't 
show up in the package list in Julia Studio, nor does the Splines.jl 
package mentioned in this thread, so I don't know how to install them.

I like what I can see of BSplines.jl, but there is essentially zero 
documentation.  From the newbie perspective, giving documentation (a few 
examples) would seem the easiest solution.  Can someone help me on this?

In my particular case, I end up with 2 vectors:
lRe=[0.0,1.0,2.0,3.0,4.0,5.0]   # log10 of Reynolds numbers 

Cd=[0.04,0.28,0.73,0.74,0.64,0.61]  # corresponding coeff of discharge


Other parts of the code work out successively changing Reynolds number; 
then I need to interpolate to get a coefficient of discharge.  Shouldn't be 
difficult, but a few hours with BSplines.jl didn't get me there :-(

Any suggestions?
many thanks,
Toby


On Wednesday, October 29, 2014 9:50:29 AM UTC-5, Peter Simon wrote:

 Also, check out ApproXD.jl https://github.com/floswald/ApproXD.jl which 
 is designed for efficient high dimensional interpolation.

 --Peter

 On Wednesday, October 29, 2014 5:32:07 AM UTC-7, Tim Holy wrote:

 Grid should be able to do this. Best is to try it and see how it works 
 out. 

 --Tim 

 On Wednesday, October 29, 2014 04:03:19 AM Nils Gudat wrote: 
  Since we seem to have a lot of experts on interpolation in Julia in 
 this 
  thread, can I just ask a general question: I'm trying to interpolate 
 values 
  of a function for which I only know the values at some gridpoints in 
 six 
  dimensions. What would be the best way to do this given that I need the 
  interpolation to be fast, as I have to interpolate millions of times? 
  
  I realize that this is a fairly general question, but I'd appreciate 
 any 
  pointers as to what the interpolation capabilities of Julia are! 
  
  Thanks, 
  Nils 



[julia-users] running multiple commands

2014-11-07 Thread Davide Lasagna
Hi,

just wondering why I cannot chain these kind of multiple commands in julia.

Example: the command run(`mkdir $tmp  touch $file`) creates the 
directories $tmp,  touch and $file, while I only want the second part 
after  to run if first command is successful. Similarly if I use the ; 
to create a sequence of commands, e.g. run(`mkdir $tmp; touch $file`).

I could run multiple commands separately, and do the checks in julia, but 
there might be an easier way to achieve that.

Davide






[julia-users] atan2 ?

2014-11-07 Thread Davide Lasagna
Hi 

The documentation for atan2 says: 

atan2(*y*, *x*)

Compute the inverse tangent of y/x, using the signs of both x and y to 
determine the quadrant of the return value.

Ok, so far so good: atan2(0, 1) = 0 and atan2(1, 0) = pi/2. It works, 

However, listing the methods of atan2 shows

methods(atan2)
# 9 methods for generic function atan2:
atan2(x::Float64,y::Float64) at math.jl:173
atan2(x::Float32,y::Float32) at math.jl:174
atan2(a::Float16,b::Float16) at float16.jl:144


Is this just an error in the naming of the input arguments?

Davide


[julia-users] Re: atan2 ?

2014-11-07 Thread Ivar Nesje
If you are referring to the a and b in the Float16 method, that is an 
inconsistency, not a error.

We highly value contributions and we usually try to help users discovering 
such small issues to submit a pull request for the change, rather than just 
fixing it ourself (even though it is faster for us the first time). We need 
lots of eyes on the system to discover small and big issues, and being a 
contributor makes lots of people motivated.

For changes like this (changing variable names), you don't even need to 
learn git, but can just edit /base/float16.jl 
https://github.com/JuliaLang/julia/blob/master/base/float16.jl#L144 in 
the github web UI, and it will automatically create a fork and a Pull 
Request,

Regards Ivar

kl. 21:08:01 UTC+1 fredag 7. november 2014 skrev Davide Lasagna følgende:

 Hi 

 The documentation for atan2 says: 

 atan2(*y*, *x*)

 Compute the inverse tangent of y/x, using the signs of both x and y to 
 determine the quadrant of the return value.

 Ok, so far so good: atan2(0, 1) = 0 and atan2(1, 0) = pi/2. It works, 

 However, listing the methods of atan2 shows

 methods(atan2)
 # 9 methods for generic function atan2:
 atan2(x::Float64,y::Float64) at math.jl:173
 atan2(x::Float32,y::Float32) at math.jl:174
 atan2(a::Float16,b::Float16) at float16.jl:144


 Is this just an error in the naming of the input arguments?

 Davide



[julia-users] Re: atan2 ?

2014-11-07 Thread Patrick O'Leary
On Friday, November 7, 2014 2:53:28 PM UTC-6, Ivar Nesje wrote:

 If you are referring to the a and b in the Float16 method, that is an 
 inconsistency, not a error.


And you can do the same thing to swap x and y in the definitions in 
math.jl. 


[julia-users] Re: atan2 ?

2014-11-07 Thread Ivar Nesje


kl. 22:01:23 UTC+1 fredag 7. november 2014 skrev Patrick O'Leary følgende:

 On Friday, November 7, 2014 2:53:28 PM UTC-6, Ivar Nesje wrote:

 If you are referring to the a and b in the Float16 method, that is an 
 inconsistency, not a error.


 And you can do the same thing to swap x and y in the definitions in 
 math.jl. 


How could I not see that. That's definitely a more important issue, but it 
seems like the documentation is correct about the argument order. Swapping 
them in the libm wrapper would fix that.


Re: [julia-users] Re: [ANN] Dierckx.jl: 1-d and 2-d splines as in scipy.interpolate

2014-11-07 Thread Johan Sigfrids
I believe both ApproXD.jl and Dierckx.jl need Julia 0.3, while Julia Studio 
is still stuck on 0.2. That is why you can't install them. Until Julia 
Studio gets updated to 0.3 you might be better off using something like 
IJulia or Juno.

On Friday, November 7, 2014 7:48:41 PM UTC+2, ewing...@gmail.com wrote:

 I'm new to Julia as of this week :-)  I'm working through some old 
 homework problems as a way to learn the language.

 I've gotten stuck on splines.  I don't want the even-spacing limitation of 
 Grid.jl (though the problem I'm working on *does* have even spacing!), and 
 I can't figure out how to use BSplines.jl.  ApproXD.jl and Dierckx.jl don't 
 show up in the package list in Julia Studio, nor does the Splines.jl 
 package mentioned in this thread, so I don't know how to install them.

 I like what I can see of BSplines.jl, but there is essentially zero 
 documentation.  From the newbie perspective, giving documentation (a few 
 examples) would seem the easiest solution.  Can someone help me on this?

 In my particular case, I end up with 2 vectors:
 lRe=[0.0,1.0,2.0,3.0,4.0,5.0]   # log10 of Reynolds numbers 

 Cd=[0.04,0.28,0.73,0.74,0.64,0.61]  # corresponding coeff of discharge


 Other parts of the code work out successively changing Reynolds number; 
 then I need to interpolate to get a coefficient of discharge.  Shouldn't be 
 difficult, but a few hours with BSplines.jl didn't get me there :-(

 Any suggestions?
 many thanks,
 Toby


 On Wednesday, October 29, 2014 9:50:29 AM UTC-5, Peter Simon wrote:

 Also, check out ApproXD.jl https://github.com/floswald/ApproXD.jl which 
 is designed for efficient high dimensional interpolation.

 --Peter

 On Wednesday, October 29, 2014 5:32:07 AM UTC-7, Tim Holy wrote:

 Grid should be able to do this. Best is to try it and see how it works 
 out. 

 --Tim 

 On Wednesday, October 29, 2014 04:03:19 AM Nils Gudat wrote: 
  Since we seem to have a lot of experts on interpolation in Julia in 
 this 
  thread, can I just ask a general question: I'm trying to interpolate 
 values 
  of a function for which I only know the values at some gridpoints in 
 six 
  dimensions. What would be the best way to do this given that I need 
 the 
  interpolation to be fast, as I have to interpolate millions of times? 
  
  I realize that this is a fairly general question, but I'd appreciate 
 any 
  pointers as to what the interpolation capabilities of Julia are! 
  
  Thanks, 
  Nils 



[julia-users] Re: atan2 ?

2014-11-07 Thread Peter Simon
Matlab and Fortran both use the convention atan2(x,y) to mean the polar 
angle of the Cartesian point (x,y).  Excel uses the convention atan2(y,x). 
 I think it would be better for Julia to be consistent with Matlab and 
Fortran, rather than Excel.

My 2cents,
--Peter

On Friday, November 7, 2014 1:11:35 PM UTC-8, Ivar Nesje wrote:



 kl. 22:01:23 UTC+1 fredag 7. november 2014 skrev Patrick O'Leary følgende:

 On Friday, November 7, 2014 2:53:28 PM UTC-6, Ivar Nesje wrote:

 If you are referring to the a and b in the Float16 method, that is an 
 inconsistency, not a error.


 And you can do the same thing to swap x and y in the definitions in 
 math.jl. 


 How could I not see that. That's definitely a more important issue, but it 
 seems like the documentation is correct about the argument order. Swapping 
 them in the libm wrapper would fix that.



[julia-users] Re: atan2 ?

2014-11-07 Thread Peter Simon
You're absolutely right!  Shouldn't rely on memory for this.  As usual, 
Julia gets it right, as I should have known.

--Peter

On Friday, November 7, 2014 3:12:01 PM UTC-8, Alex wrote:

 Hi Peter, 

 Seems you mixed this up, Excel is the one using atan2(x,y) while the 
 others use atan2(y,x) [1]. 

 Best, 

 Alex. 

 [1] http://en.m.wikipedia.org/wiki/Atan2 


 On Friday, 7 November 2014 22:50:30 UTC+1, Peter Simon  wrote: 
  Matlab and Fortran both use the convention atan2(x,y) to mean the polar 
 angle of the Cartesian point (x,y).  Excel uses the convention atan2(y,x). 
  I think it would be better for Julia to be consistent with Matlab and 
 Fortran, rather than Excel. 
  
  
  My 2cents, 
  --Peter 
  
  On Friday, November 7, 2014 1:11:35 PM UTC-8, Ivar Nesje wrote: 
  
  
  kl. 22:01:23 UTC+1 fredag 7. november 2014 skrev Patrick O'Leary 
 følgende: 
  On Friday, November 7, 2014 2:53:28 PM UTC-6, Ivar Nesje wrote: 
  If you are referring to the a and b in the Float16 method, that is an 
 inconsistency, not a error. 
  
  And you can do the same thing to swap x and y in the definitions in 
 math.jl. 
  
  
  
  How could I not see that. That's definitely a more important issue, but 
 it seems like the documentation is correct about the argument order. 
 Swapping them in the libm wrapper would fix that. 



[julia-users] Re: atan2 ?

2014-11-07 Thread Alex
Hi Peter,

Seems you mixed this up, Excel is the one using atan2(x,y) while the others use 
atan2(y,x) [1].

Best,

Alex.

[1] http://en.m.wikipedia.org/wiki/Atan2


On Friday, 7 November 2014 22:50:30 UTC+1, Peter Simon  wrote:
 Matlab and Fortran both use the convention atan2(x,y) to mean the polar angle 
 of the Cartesian point (x,y).  Excel uses the convention atan2(y,x).  I think 
 it would be better for Julia to be consistent with Matlab and Fortran, rather 
 than Excel.
 
 
 My 2cents,
 --Peter
 
 On Friday, November 7, 2014 1:11:35 PM UTC-8, Ivar Nesje wrote:
 
 
 kl. 22:01:23 UTC+1 fredag 7. november 2014 skrev Patrick O'Leary følgende:
 On Friday, November 7, 2014 2:53:28 PM UTC-6, Ivar Nesje wrote:
 If you are referring to the a and b in the Float16 method, that is an 
 inconsistency, not a error.
 
 And you can do the same thing to swap x and y in the definitions in math.jl. 
 
 
 
 How could I not see that. That's definitely a more important issue, but it 
 seems like the documentation is correct about the argument order. Swapping 
 them in the libm wrapper would fix that.


[julia-users] Re: Installation commands for Julia/IPython Notbook/Matplotlib on OS X

2014-11-07 Thread Steven G. Johnson


On Thursday, November 6, 2014 1:32:36 PM UTC-5, Ethan Anderes wrote:

 As an addendum to what Steven said, I have found that after installing 
 Anaconda I need to run the following command to get PyPlot to work from the 
 REPL:


I just changed the default backend in PyPlot (if a supported one is not 
specified in matplotlib.rcParams['backend']) to Tk, now that PyCall 
supports Tk (tkinter) event loops.  Hopefully this should ease installation 
on MacOS because you won't need to worry about getting a working Qt.


Re: [julia-users] Intel Xeon Phi support?

2014-11-07 Thread Jeff Waller


On Thursday, November 6, 2014 1:14:51 PM UTC-5, Viral Shah wrote:

 We had ordered a couple, but they are really difficult to get working. 
 There is a fair bit of compiler work that is required to get it to work - 
 so it is safe to assume that this is not coming anytime soon. However, the 
 Knight's Landing should work out of the box with Julia whenever it comes 
 and we will most likely have robust multi-threading support by then to 
 leverage it.


Aww!
 


 Out of curiosity, what would you like to run on the Xeon Phi? It may be a 
 good multi-threading benchmark for us in general.


Something that requires 1TFlop, or maybe 1000 things that take 1 GFlop?

Hmm, how about realtime photogrammetry?
 


 -viral

 On Thursday, November 6, 2014 9:35:57 PM UTC+5:30, John Drummond wrote:

 Did you have any success?
 There's an offer of the cards for 200usd at the moment


That's like 1/10th the price?