Re: [julia-users] Re: Can Julia function be serialized and sent by network?

2015-08-14 Thread Jake Bolewski
Andrei Zh I'm confused. Have you actually tried? julia> io = IOBuffer() IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1) julia> foo(x) = x + 1 foo (generic function with 1 method) julia> serialize(io, foo) julia> see

[julia-users] 0.4 final push!

2015-09-03 Thread Jake Bolewski
v0.4 is being held up by one blocking issue https://github.com/JuliaLang/julia/pull/12835. We need eyeballs helping us to spot problems with manual prior to branching 0.4 and making a release candidate. Fortunately helping out is easy: See Yichao's comment for help contributing

Re: [julia-users] Re: [ANN] Conda.jl: using conda package manager for Julia

2015-09-03 Thread Jake Bolewski
pyjulia was mostly created to show off interop and for demos. I don't think anyone uses it seriously. It might make more sense now with precompilation as it used to take 10+ seconds to load PyCall and initialize Julia. On Thursday, September 3, 2015 at 3:17:38 PM UTC-4, Tero Frondelius wrote:

Re: [julia-users] pathtracer in julia still 3x slower than python

2014-05-21 Thread Jake Bolewski
I think that your next big win is going to come from using Immutable Arrays for your matrix / vector ops. One of the first toy projects I did with Julia was port the "business card raytracer" to Julia ( https://github.com/jakebolewski/rays/tree/master/juliarays) and currently it is only 14% slo

Re: [julia-users] Re: ANN: Gumbo.jl (HTML parsing library)

2014-06-19 Thread Jake Bolewski
Now that you are offering, how about libgit ;-) Jake

[julia-users] SSH API in Julia

2014-06-20 Thread Jake Bolewski
Julia shells out for all ssh functionality. supporting libgit in base would bring in libssh so maybe this should be reconsidered in the future.

[julia-users] Re: Best way to plot data to a map?

2014-06-20 Thread Jake Bolewski
The most practical choice would be to do all the data processing in Julia and then spit out your data in a text file, which could be read by any number of languages or tools. I used R to do map plotting in the past this way. On Friday, June 20, 2014 9:43:26 AM UTC-4, Mikayla Thompson wrote: >

[julia-users] Call for Unicode julia source examples

2014-06-20 Thread Jake Bolewski
Keno fixed a bug in JuliaParser.jl dealing utf8 character sizes. That fix, along with line number support I have in another branch would make the port of the parser pretty much complete. I want to make sure that there are no other outstanding unicode issues. If you have julia source code usin

Re: [julia-users] Call for Unicode julia source examples

2014-06-20 Thread Jake Bolewski
src/univariate/normal.jl > > > On Fri, Jun 20, 2014 at 11:13 AM, Jake Bolewski > wrote: > >> Keno fixed a bug in JuliaParser.jl dealing utf8 character sizes. That >> fix, along with line number support I have in another branch would make the >> port of the parser pretty

[julia-users] Re: specialized functions for unknown types

2014-07-06 Thread Jake Bolewski
Simon Danisch, I didn't read too closely what you wrote but what you are proposing sounds a lot like staged functions. Keno is currently working on implementing staged functions with proper compiler support. You can look at that current pull request as well as seach the dev list for a more in

Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-10 Thread Jake Bolewski
Congrats David that tutorial went really well. Perhaps now that we are going to be collecting a large number of videos about Julia these can be linked from the home page so they are bit easier to find? -Jake On Thursday, July 10, 2014 11:13:34 AM UTC-4, John Myles White wrote: > > This is a r

[julia-users] Re: Call for Unicode julia source examples

2014-07-16 Thread Jake Bolewski
Hi Ben, That character is probably defined as a unicode 6 math symbol. UTF8proc is a library that julia uses to do Unicode normalization and it currently does not support unicode 6 characters. Luckily it seems like Steven Johnson is on a quest to make every possible unicode symbol available

[julia-users] Re: Call for Unicode julia source examples

2014-07-16 Thread Jake Bolewski
On Wednesday, July 16, 2014 4:45:00 PM UTC-4, Steven G. Johnson wrote: > > On Wednesday, July 16, 2014 3:56:49 PM UTC-4, Jake Bolewski wrote: >> >> Luckily it seems like Steven Johnson is on a quest to make every possible >> unicode symbol available in Julia so t

Re: [julia-users] Grammar for Julia (whitespace)

2014-07-19 Thread Jake Bolewski
Parsing julia most definitely context sensitive. Have you looked at the implementation of the parser? going to the source always resolves any ambiguity and is the definitive reference as to why things are parsed the way they are. If scheme is not your cup of tea you can always play around wit

Re: [julia-users] Grammar for Julia (whitespace)

2014-07-19 Thread Jake Bolewski
There are some cases when you cannot just consume the tokenized source but have to drop down and do character look ahead to disambiguate at a certain point. I don't know know how common that is in other languages and it happens in a couple of cases when parsing julia (mostly with characters whi

Re: [julia-users] Re: Tips on reducing intermediate garbage?

2014-07-21 Thread Jake Bolewski
Julia-syntax.scm (code lowering to ssa form) and type inference in base (type propagation, data flow analysis, inlining) are other places where julia performs compiler optimizations.

Re: [julia-users] ++ as string concatenation operator

2014-07-21 Thread Jake Bolewski
It is not, look at julia-parser.scm for the list of operators you are able to define. On Monday, July 21, 2014 5:57:41 PM UTC-4, Steve Kelly wrote: > > I think the issue is that ++ is not an operator in julia. > > > On Mon, Jul 21, 2014 at 5:51 PM, Hans W Borchers > wrote: > >> I was interested

Re: [julia-users] OptionTypes.jl

2014-07-31 Thread Jake Bolewski
This is getting further afield but another point wrt performance is that the current design of data arrays is very amenable to accelerators such as gpus. This wouldn't improve performance for many operations but would be a huge performance gain in other instances if julia gains an alternative b

Re: [julia-users] Segfault when looking up a symbol in a dynamic library

2014-08-08 Thread Jake Bolewski
Yes, dlsym accepts any input and just segfaults if it is not a valid file handle. On Friday, August 8, 2014 1:58:08 PM UTC-4, Jameson wrote: > > Can you open an issue that dlsym should be sanitizing its inputs better? > > On Friday, August 8, 2014, Douglas Bates > > wrote: > >> Now that I have r

Re: [julia-users] Does Julia have something similar to Python's documentation string?

2014-08-28 Thread Jake Bolewski
I really like Steven Johnson's proposal. I've often imagined a similar system, although I never considered using writemime as a generalization mechanism. It seems like consensus is slowly building around embedding compiler specific metadata directly into the AST with a metadata node. It woul

[julia-users] Re: best way to run parallel julia in batch mode?

2014-08-29 Thread Jake Bolewski
Your example works fine for me: julia-av/base [jcb/arrayview●] » julia -p 10 exp.jl wsum => 1466149724160 Does it still fail with a smaller processor count. Does the interactive version work? julia-av/base [jcb/arrayview●] » julia _ _ _ _(_)_ | A fresh approach to te

[julia-users] Re: best way to run parallel julia in batch mode?

2014-08-29 Thread Jake Bolewski
Does the following work? julia> @everywhere begin include("ee.jl") end julia> wsum = @parallel (+) for ii in 1:16384 sq(ii) end It also helps to give us your versioninfo(). On Friday, August 29, 2014 9:11:52 PM UTC-4, Travis Porco wrote: > > Hi, interactive works

[julia-users] Re: best way to run parallel julia in batch mode?

2014-08-29 Thread Jake Bolewski
The above example should only work if all nodes have access to the same filesystem. Is this the case? On Friday, August 29, 2014 9:23:31 PM UTC-4, Jake Bolewski wrote: > > Does the following work? > > julia> @everywhere begin >include("ee.jl") >

[julia-users] Re: Calling Julia from Python

2014-09-01 Thread Jake Bolewski
Hi Hans, This should be fixed on master. I'm still working on unicode issues. Getting unicode to work between python2 / python3 is kind of a pain. Best, Jake On Monday, September 1, 2014 5:48:02 AM UTC-4, Hans W Borchers wrote: > > Think I will wait for one or two days. Maybe someone on Ubunt

[julia-users] Re: Calling Julia from Python

2014-09-01 Thread Jake Bolewski
To execute arbitrary julia code it is "eval" just like python, call returns a void pointer to the result. examples: import julia julia = julia.Julia() julia.eval("1 +1") julia.sqrt(2.0) julia.help("sqrt") # get the help for julia's sqrt function from julia import Pkg # or any user installed pac

[julia-users] Re: Calling Julia from Python

2014-09-01 Thread Jake Bolewski
p://blog.leahhanson.us/julia-calling-python-calling-julia.html > > which appear to be out-of-date. It would be helpful to have some > of your examples in the README file of the 'pyjulia' package. > > > On Monday, September 1, 2014 11:32:06 PM UTC+2, Jake Bolewski wrote:

[julia-users] Re: Compressing .jld files

2014-09-02 Thread Jake Bolewski
HDF5 supports pluggable compression schemes, so this seems like it should be handled within the hdf5 library. The fastest seems to be blosc which is written by the PyTables author. Although this is not shipped by default with HDF5, if we include it in the BinDeps builds for hdf5 it would be a

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Jake Bolewski
I've used Blosc in the past with great success. Oftentimes it is faster than the uncompressed version if IO is the bottleneck. The compression ratios are not great but that is really not the point. On Tuesday, September 2, 2014 2:09:20 PM UTC-4, Stefan Karpinski wrote: > > That looks pretty sw

Re: [julia-users] Compressing .jld files

2014-09-02 Thread Jake Bolewski
hat's not as big a deal as it would have been. >> >> --Tim >> >> On Tuesday, September 02, 2014 12:11:55 PM Jake Bolewski wrote: >> > I've used Blosc in the past with great success. Oftentimes it is >> faster >> > than the uncompresse

[julia-users] Re: ANN: FastAnonymous

2014-09-04 Thread Jake Bolewski
See the discussion @ https://github.com/JuliaLang/julia/issues/1864 for the trade-offs of this approach. On Thursday, September 4, 2014 11:34:44 AM UTC-4, Job van der Zwan wrote: > > Cool. > > So as someone who doesn't use anonymous functions enough to understand the > fine details: is this a s

Re: [julia-users] Embed julia in C/C++

2014-09-05 Thread Jake Bolewski
It's jl_eval_string located in jl_api.c in src. so you would do jl_value_t * func2 = jl_eval_string("DSP.hanning") The best way to play around with Julia's c-api is within julia itself. julia> pkg_ptr = ccall(:jl_eval_string, Ptr{Void}, (Ptr{Cchar},), "Base.Pkg.clone") Ptr{Void} @0x7fd11c175

[julia-users] Re: Slow startup time on Mac OSX with Julia 0.3 .dmg package

2014-09-07 Thread Jake Bolewski
Unfortunately the only way to "solve" this problem currently is to compile Julia from source and include your most commonly used packages in the system image build. If you are adventurous there are posts on this mailing list about how to go about doing that. On Sunday, September 7, 2014 6:52

Re: [julia-users] How come &(x, y) isn't legal syntax?

2014-09-08 Thread Jake Bolewski
Anyt unary operator defined as a `syntatic_unary_operator` https://github.com/jakebolewski/JuliaParser.jl/blob/master/src/lexer.jl#L103 is special cased by the parser and works similarly. On Monday, September 8, 2014 4:31:48 PM UTC-4, Stefan Karpinski wrote: > > I believe it is because of the u

Re: [julia-users] println a IOStream

2014-09-09 Thread Jake Bolewski
print takes an IO parameter so julia> println(STDERR, "test") test julia> io = IOBuffer() IOBuffer(data=Uint8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1) julia> print(io, "test") julia> bytestring(io) "test" works. On Tuesday, Septemb

[julia-users] Re: About OpenCV-Julia binding

2014-09-09 Thread Jake Bolewski
Hi Boxiang, I'm excited that you are working on this. The one comment I would have is don't rewrite the custom header parser. It is maintained as part of the official build system in OpenCV and will be maintained. All the "official" OpenCV bindings depend on it. It is awkward to write pytho

[julia-users] Re: What wrong , help ;0

2014-09-11 Thread Jake Bolewski
what is efy? Your example is not reproducible. On Thursday, September 11, 2014 2:22:31 PM UTC-4, paul analyst wrote: > > julia> i > 2 > julia> pp=[]; > julia> target=25; > julia> for i in efy; >var_name = symbol("p" * string(i)); >pp=vcat(pp,@eval $var_name[1:target]); >

[julia-users] Re: convert symbol to Function ?

2014-09-12 Thread Jake Bolewski
julia> getfield(Base, :println)("Hello") Hello On Friday, September 12, 2014 10:18:11 AM UTC-4, Ben Arthur wrote: > > is there a way to convert a symbol to a function. right now i'm resorting > to: > > julia> names(Base)[1] > :isexecutable > > julia> methods(names(Base)[1]) > ERROR: `methods`

Re: [julia-users] Re: dispatch based on expression head

2014-09-13 Thread Jake Bolewski
> > We've actually discussed changing our expression representation to use >> types instead of the more lisp-like symbols for distinguishing expression >> types. That would allow dispatch on expression types and be more compact. >> It would, however, break almost all macros that do any kind of

Re: [julia-users] dispatch based on expression head

2014-09-13 Thread Jake Bolewski
with different concrete > > > subtypes for each current value of head. Each value of head indicates > a > > > specific structure in args, and this can just be reflected in the > > > definition of the subtypes. (Then you can dispatch on Expr type, use > >

Re: [julia-users] slow julia version of c code

2014-09-14 Thread Jake Bolewski
Have you looked at the output of code_typed? Maybe you could paste it in a gist, its really hard to give any more advice without being able to run the code directly. On Sunday, September 14, 2014 6:36:21 PM UTC-4, Zac wrote: > > Sadly I've already used these! >

[julia-users] Re: Julia allocates huge amounts of memory in for loops which should overwrite scalars

2015-01-15 Thread Jake Bolewski
http://julia.readthedocs.org/en/latest/manual/performance-tips/ On Thursday, January 15, 2015 at 2:56:55 PM UTC-5, Michael Wojnowicz wrote: > > > Hi everyone, > > This very simple loop > > > m=0.0 > > > @time for i=1:100 > > r= rand()-.05 > > m=max(m,abs(r)) > > end > > > allocate

[julia-users] Re: Julia allocates huge amounts of memory in for loops which should overwrite scalars

2015-01-15 Thread Jake Bolewski
m is a global (at least from what you posted). So I would guess the first section. If you could, please explain what is not clear about the performance tips section so we can improve it. On Thursday, January 15, 2015 at 3:08:02 PM UTC-5, Michael Wojnowicz wrote: > > Thank you. Which section a

[julia-users] Re: Julia allocates huge amounts of memory in for loops which should overwrite scalars

2015-01-15 Thread Jake Bolewski
julia> function test() m=0.0 @time for i=1:100 r= rand()-.05 m=max(m,abs(r)) end; m end test (generic function with 1 method) julia> test() elapsed time: 0.004459659 seconds (0 bytes allocated) 0.947082184952 julia> begin m=0.0

Re: searchsorted (was: Re: [julia-users] movingpastasquishedcaseconvention?)

2015-02-06 Thread Jake Bolewski
This method is used a lot in the in the sparse matrix code, have to looked at the perf hit of removing this method wrt the sparse benchmarks? On Friday, February 6, 2015 at 10:38:49 AM UTC-5, Stefan Karpinski wrote: > > Actually, upon measuring this, first(searchsorted(v)) is only 20% slower > t

Re: [julia-users] Parallel HDF5 support?

2015-02-10 Thread Jake Bolewski
Yes this is true, as MPI support for HDF5 will require MPI IO. MPI is too big a dependency for HDF5.jl. This functionality would best be put into a separate package which would require MPI.jl and HDF5.jl. On Tuesday, February 10, 2015 at 4:15:40 PM UTC-5, Katie H wrote: > > As far as I know, pa

Re: [julia-users] Pkg.generate reads git user.name with commas

2015-03-06 Thread Jake Bolewski
Should be fixed now, thanks On Friday, March 6, 2015 at 8:52:39 PM UTC-5, Kevin Squire wrote: > > Hi Robert, > > You're using Julia v0.4, right? This is actually a bug introduced > recently, by https://github.com/JuliaLang/julia/commit/42b3d905 (which > itself was trying to fix a deprecation wa

[julia-users] Re: Factorization of big integers is taking too long

2015-03-13 Thread Jake Bolewski
This is falling back to factor() for generic integers, so the GMP method does not looked to be wrapped. The generic version will be terribly slow for bigints. Would be easy to add if you would like to submit a Pull Request. julia> N = big(3)^100 + 2 5153775207320113310364611297656212727021075

[julia-users] Re: help debugging a gc problem

2015-03-16 Thread Jake Bolewski
I suspect you are running into https://github.com/JuliaLang/julia/issues/8912. Best, Jake On Monday, March 16, 2015 at 2:53:25 PM UTC-4, Deniz Yuret wrote: > > I am stuck trying to debug a memory leak issue. What is the best way to > find out what gc is doing? > > My program generates and pro

Re: [julia-users] Re: help debugging a gc problem

2015-03-16 Thread Jake Bolewski
hem every iteration > etc.? > > best, > deniz > > > On Mon, Mar 16, 2015 at 9:39 PM, Jake Bolewski > wrote: > >> I suspect you are running into >> https://github.com/JuliaLang/julia/issues/8912. >> >> Best, >> Jake >> >> >>

[julia-users] Re: Performance of Distributed Arrays

2015-04-30 Thread Jake Bolewski
DistributedArray performance is pretty bad. The reason for removing them from base was to spur their development. All I can say at this time is that we are actively working on making their performance better. For every parallel program you have implicit serial overhead (this is especially tru

[julia-users] Re: Performance of Distributed Arrays

2015-04-30 Thread Jake Bolewski
,N);@time SimulationParallel(dA,N,T) elapsed time: 0.617520182 seconds (573 kB allocated) 8-element Array{Any,1}: nothing nothing nothing nothing nothing nothing nothing nothing On Thursday, April 30, 2015 at 10:50:23 AM UTC-4, Jake Bolewski wrote: > > DistributedArray performanc

Re: [julia-users] Re: Performance of Distributed Arrays

2015-04-30 Thread Jake Bolewski
could contribute back in some way. All the basic operations should be covered. -Jake On Thursday, April 30, 2015 at 12:29:15 PM UTC-4, Ángel de Vicente wrote: > > Hi Jake, > > Jake Bolewski > writes: > > DistributedArray performance is pretty bad. The reason for removing >

[julia-users] Re: [ANN] NamedTuples.jl: Named Tuples for Julia

2015-05-08 Thread Jake Bolewski
Awesome! Python's named tuple library is great. On Friday, May 8, 2015 at 2:07:48 PM UTC-4, Michael Francis wrote: > > NamedTuples.jl provides an implementation of type safe named tuples for > Julia (cf named tuples in python). NamedTuples may be used anywhere that a > tuple is currently bein

[julia-users] ANN: LibGit2 bindings

2014-01-11 Thread Jake Bolewski
Hi everyone, I've been working on LibGit2 bindings for julia over the past month or so, steadily porting over the the test suite from Ruby's ruggedlibrary. Allmost all of the tests have been rewritten and are now passing. Most of the testing has been done on

[julia-users] Re: ANN: LibGit2 bindings

2014-01-11 Thread Jake Bolewski
Link https://github.com/jakebolewski/LibGit2.jl On Sunday, January 12, 2014 12:55:27 AM UTC-5, Jake Bolewski wrote: > > Hi everyone, > > I've been working on LibGit2 bindings for julia over the past month or so, > steadily porting over the the test suite from Ruby's &g

Re: [julia-users] ANN: LibGit2 bindings

2014-01-13 Thread Jake Bolewski
that note, does anyone have a 3.0 prerelease Window's build I can use for testing? Best, Jake On Sunday, January 12, 2014 6:29:27 PM UTC-5, John Myles White wrote: > > This seems really awesome. Amazing work, Jake! > > — John > > On Jan 11, 2014, at 9:56 PM, Jake

[julia-users] Re: How to call into Julia from Python?

2014-01-13 Thread Jake Bolewski
There is a start of a Python -> Julia interface contained in IJulia. I was playing around with making importing julia functions more idiomatic here https://github.com/jakebolewski/pyjulia. Its a bit of a hack at the moment but it enables you to do things like: julia: module Test function

[julia-users] Re: How to call into Julia from Python?

2014-01-13 Thread Jake Bolewski
I should note that if you need to pass python objects to julia, you can use PyCall as well on the Julia side to manipulate them. Best, Jake On Monday, January 13, 2014 12:37:46 PM UTC-5, Jake Bolewski wrote: > > There is a start of a Python -> Julia interface contained in IJulia.

Re: [julia-users] ANN: LibGit2 bindings

2014-01-13 Thread Jake Bolewski
e the branch, celebrate. > > Sound reasonable? > > On Monday, January 13, 2014, Isaiah Norton wrote: > >> Yes, just shared a download link with you. >> >> >> On Mon, Jan 13, 2014 at 11:04 AM, Jake Bolewski >> wrote: >> >>> Thanks John. >

[julia-users] Re: [ANN] JavaCall

2014-01-13 Thread Jake Bolewski
> > (It might be possible to massage the difference using the Java reflection > to examine the method list and try to find one that fits a given set of > arguments, but that seems like it would be tricky to implement.) > This was implemented in the python package pyjnius

[julia-users] Re: [ANN] JavaCall

2014-01-13 Thread Jake Bolewski
On Monday, January 13, 2014 5:40:32 PM UTC-5, Avik Sengupta wrote: > > >(It might be possible to massage the difference using the Java > reflection to examine the method list and try to find one that fits a given > set of arguments, but that seems like it would be tricky to implement.) > Yes, th

Re: [julia-users] [ANN] juliawebstack.org

2014-01-14 Thread Jake Bolewski
Very nice! Would it be possible to add a link to each of the packages github pages? On Tuesday, January 14, 2014 1:18:36 PM UTC-5, Stefan Karpinski wrote: > > This looks really great! I'm very excited that this is so well documented. > I'm sure we'll get some more people kicking the tires and f

[julia-users] Parsing Julia Forms

2014-01-21 Thread Jake Bolewski
I was playing around with getting LightTable to talk to Julia and one issue I ran into was that it was difficult for me to reliably get the source line for the end of a Julia form (correctly getting the starting point was relatively easy). Has anyone run into this and come up with a solution?

[julia-users] Re: Parsing Julia Forms

2014-01-22 Thread Jake Bolewski
e on this :( > > kl. 21:04:20 UTC+1 tirsdag 21. januar 2014 skrev Jake Bolewski følgende: >> >> I was playing around with getting LightTable to talk to Julia and one >> issue I ran into was that it was difficult for me to reliably get the >> source line for the end

[julia-users] Re: not loading python module

2014-01-24 Thread Jake Bolewski
Are you able to import any of the following from python? from matplotlib.backends import backend_wxagg from matplotlib.backends import backend_gtkagg from matplotlib.backends import backend_qtagg -Jake On Friday, January 24, 2014 12:35:12 PM UTC-5, Rajn wrote: > > Hi Thanks Steve, > > This is h

Re: [julia-users] Re: not loading python module

2014-01-24 Thread Jake Bolewski
Honestly after fighting with Python on Windows for many years, your best course of action is probably to uninstall everything and try again from scratch. I would back Steven's suggestion to install Anaconda if you are able. It sounds like more work but in the end it is the only way to preserv

[julia-users] Re: Writing macros that manipulate functions

2014-01-30 Thread Jake Bolewski
Hi Andy, Your meta package looks great! I absolutely think that you should split it out in a separate package. I've been playing around with generating OpenCL code from julia's AST (both the lowered typed and untyped forms) and I could reuse a lot of your work (I've only started parsing the u

Re: [julia-users] @printf() format string question

2014-02-02 Thread Jake Bolewski
I don't think you can do this as a macro, you want to use a function instead wrapping multiple @printf's as you stated. the behavior you are asking for is to partially evaluate the string function at compile time (hack) macro myprintf(args...) if length(args) == 0 error("@myprintf:

[julia-users] Re: Julia version manager?

2014-02-02 Thread Jake Bolewski
No but there is work in this direction. Pkg just started using versioned directories to support multiple julia releases. On Sunday, February 2, 2014 10:32:26 PM UTC-5, Jeff Pickhardt wrote: > > Is there an equivalent to rvm (Ruby Version Manager) for having multiple > versions of Julia installe

Re: [julia-users] Re: Julia version manager?

2014-02-03 Thread Jake Bolewski
I didn't know that, thanks for clarifying! Best, Jake On Monday, February 3, 2014 12:35:47 PM UTC-5, Kevin Squire wrote: > > > > > On Sun, Feb 2, 2014 at 7:45 PM, Jake Bolewski > > > wrote: > >> No but there is work in this direction. Pkg just star

[julia-users] Re: Sending text back and forth between Julia and R

2014-02-04 Thread Jake Bolewski
IJulia? On Tuesday, February 4, 2014 3:02:08 PM UTC-5, Douglas Bates wrote: > > It occurs to me that I may be reinventing the wheel here. Are there > already implementations of some sort of Julia server in the sense of a > process that can be running in the background listening on a socket and,

[julia-users] Re: Sending text back and forth between Julia and R

2014-02-04 Thread Jake Bolewski
ay, February 4, 2014 2:08:55 PM UTC-6, Jake Bolewski wrote: >> >> IJulia? >> > > I realize that I am reinventing a certain amount of IJulia. However, my > python is weak and i didn't have the courage to start reading through the > IJulia code. >

[julia-users] Re: Compiling Julia source at runtime

2014-02-06 Thread Jake Bolewski
parse("""x=1; y=2""") On Thursday, February 6, 2014 7:47:14 PM UTC-5, Ethan Anderes wrote: > > +1 for the question of a multi-line parse. My motivation was a bit > different in that I was trying to program a %paste equivalent from ipython > to julia. Of course the following doesn't work without

[julia-users] Re: Compiling Julia source at runtime

2014-02-06 Thread Jake Bolewski
Hey Ethan, what you are looking for is include_string: julia> include_string(""" a = 1 b = 2 a + b """) 3 julia> a 1 julia> b 2 On Thursday, February 6, 2014 7:47:14 PM UTC-5, Ethan Anderes wrote: > > +1 for the question of a multi-line parse. My motivation was a bit

[julia-users] Re: Compiling Julia source at runtime

2014-02-06 Thread Jake Bolewski
b = 2 >a + b >end > quote # none, line 2: > a = 1 # line 3: > b = 2 # line 4: > +(a,b) > end > > julia> typeof(ex) > Expr > > julia> eval(ex) > 3 > > On Friday, February 7, 2014 2:45:34 AM UTC+1, Fil Mack

[julia-users] Re: Canopy PyPlot issue

2014-02-06 Thread Jake Bolewski
whoops, I didn't see you were on OSX. On Thursday, February 6, 2014 10:29:36 PM UTC-5, Jake Bolewski wrote: > > First, does regular (python) matplotlib work with the qt backend? Second, > are you completely sure that you have uinstalled Canopy and all its > dependencies (

[julia-users] Re: Canopy PyPlot issue

2014-02-06 Thread Jake Bolewski
First, does regular (python) matplotlib work with the qt backend? Second, are you completely sure that you have uinstalled Canopy and all its dependencies (including qt) and reverted all Python related path changes? The two will not play well together. When installing python on windows it is

[julia-users] Re: Compiling Julia source at runtime

2014-02-09 Thread Jake Bolewski
That way is the certainly the best. Just note that it is easy to manipulate the ast to get what you wanted. julia> ex = """ a = 1 b = 2 a + b """ "a = 1\nb = 2\na + b\n" julia> ast = Base.parse_input_line(ex) :($(Expr(:toplevel, :(a = 1), :(b = 2), :

Re: [julia-users] Re: Parallel sparse matrix vector multiplication

2014-02-10 Thread Jake Bolewski
Are those hyper-threaded "cores"? If so, check Intel MKL's documentation on hyper-threading. -Best Jake On Monday, February 10, 2014 6:38:50 PM UTC-5, Madeleine Udell wrote: > > It looks like only 6 threads are being used when I use mkl from julia. > If I do blas_set_num_threads(n), then usin

Re: [julia-users] Re: Parallel sparse matrix vector multiplication

2014-02-11 Thread Jake Bolewski
there > doesn't seem to be a function by this name in the libmkl_rt library. > > julia> > ccall((:omp_set_num_threads,Base.libblas_name),Ptr{Void},(Uint8,),32) > ERROR: ccall: could not find function omp_set_num_threads in library > libmkl_rt > in anonymous at no file

[julia-users] Re: deparse()

2014-02-11 Thread Jake Bolewski
this is an open issue Jake On Tuesday, February 11, 2014 9:39:15 PM UTC-5, Fil Mackay wrote: > > The dump() function is great for converting an Expr into some kind of > viewable form for debugging. Is there any function in the Julia ecosystem > t

Re: [julia-users] Inline type conversion

2014-02-11 Thread Jake Bolewski
If you are not dispatching on the type, why not allow the parameter to be duck typed? sometimes union typealiases can be helpful typealias StringOrSymbol Union(String, Symbol) test(x::StringOrSymbol) = symbol(x) On Tuesday, February 11, 2014 10:44:56 PM UTC-5, Fil Mackay wrote: > > Thanks for

[julia-users] Re: (:) Quoting v Symbol ambiguous?

2014-02-11 Thread Jake Bolewski
you need to take advantage of quote, see: https://groups.google.com/forum/#!topic/julia-dev/YxTEkUJcwL8 Jake On Tuesday, February 11, 2014 11:57:16 PM UTC-5, Fil Mackay wrote: > > Is there not an ambiguity of operator : between expressions and symbols? I > am trying to create an expression that

[julia-users] Re: (:) Quoting v Symbol ambiguous?

2014-02-11 Thread Jake Bolewski
Hey Fil, More directly answering your question: julia> eval(:(f($:(:abc or eqivalently julia> eval(:(f($(Expr(:quote, :abc) works. Best, Jake On Wednesday, February 12, 2014 12:30:13 AM UTC-5, Jake Bolewski wrote: > > you need to take advantage of quote,

Re: [julia-users] Field default values

2014-02-12 Thread Jake Bolewski
OK, makes sense. A bit strange that it took out the default constructor though.. Hm, that does seem like a bug. You should file an issue. On Wednesday, February 12, 2014 9:00:13 PM UTC-5, Fil Mackay wrote: > > On Thu, Feb 13, 2014 at 12:53 PM, Kevin Squire > > > wrote: > >> Unfortunately, Ju

[julia-users] Re: Invalid inline constructors

2014-02-12 Thread Jake Bolewski
No. Column2 is not a constructor as it doesn't have the same name as the type and only constructors are exported. Column2 could be used as a helper function only visible within the body of the type: julia> type Test4 a :: Int Test5(x) = x * 2 Test4(x) = new(Test5(x) * Test

Re: [julia-users] how to use filter! for dict

2014-02-12 Thread Jake Bolewski
you can iterate over a dict julia> methods(map) ... lots of methods map(f::Union(Function,DataType),iters...) at abstractarray.jl:1264 which will return a tuple of (key, value) julia> map( kv -> kv, {1=>"foo", 2=>"bar"}) 2-element Array{Any,1}: (2,"bar") (1,"foo") since you can map over arbit

[julia-users] Re: Google Summer of Code: Your Project Suggestions

2014-02-16 Thread Jake Bolewski
The libraries are not as mature but OpenCL now has an open source BLAS / FFT library from Amd and a recently updated OpenCL version of Magma so the gap is closing. All major OpenCL compilers are built on LLVM and can take advantage of this though SPIR compilation. I think a great project would

Re: [julia-users] Re: Anonymous functions lose type information

2014-02-16 Thread Jake Bolewski
You are pointing out differences in the parsed AST. As Jameson said the two forms are equivent and will get lowered by the compiler to the same code. I suggest browsing though Julia's type inference / compiler code to get a better overview of how things work under the hood. Best, Jake On Sun

Re: [julia-users] Re: Google Summer of Code: Your Project Suggestions

2014-02-17 Thread Jake Bolewski
I'm sure is such a formatting tool existed and it worked well, the community would get behind it. That said, a standard formatting guide enforcable through community pressure would be a good first step. I feel creating something like this is great use case for benevolent dictatorial powers.

[julia-users] Re: running for loops in parallel

2014-03-05 Thread Jake Bolewski
Is j = 100 a typo (did you mean 1:100)? On Wednesday, March 5, 2014 2:41:51 PM UTC-5, Jason Solack wrote: > > i'm trying to check out how Julia handles parallel for loops and i'm > getting some errors > > i'm not sure if it's because i'm working with a single array and i can't > appen

[julia-users] Re: running for loops in parallel

2014-03-05 Thread Jake Bolewski
, yes i did! > > On Wednesday, March 5, 2014 2:49:11 PM UTC-5, Jake Bolewski wrote: >> >> Is j = 100 a typo (did you mean 1:100)? >> >> >> On Wednesday, March 5, 2014 2:41:51 PM UTC-5, Jason Solack wrote: >>> >>> i'm trying to check out how

[julia-users] Re: GSOC- 2014 Computer Visions using OpenCV

2014-03-11 Thread Jake Bolewski
Siddha Ganju, If you would like to work on the OpenCV project I would stick to wrapping OpenCV. I don't think that this is a particularly good project for a beginner as it will invariably involve julia c interop, a c / c++ shim, knowledge of OpenCV data type internals, and julia code generati

[julia-users] Re: Windows CI for packages (and Julia itself, hopefully) with AppVeyor

2014-03-11 Thread Jake Bolewski
This is really great. As someone who has gone most of his life without using Windows, how easy is this to set up if you are not a knowledgeable window's developer? I'm thinking about sometimes hard to build library dependencies, like libgit2 or an opencl vendor implementation. I would try th

[julia-users] Re: PyCall Segmentation fault: 11

2014-03-11 Thread Jake Bolewski
This looks like it was fixed a couple hours ago, see https://github.com/JuliaLang/julia/issues/6097#issuecomment-37348594 Jake On Tuesday, March 11, 2014 5:16:19 PM UTC-4, Ethan Anderes wrote: > > Hi, > > Just complied julia and am getting a segmentation fault when trying to use > PyCall. Sho

[julia-users] Re: Citing Julia

2014-03-19 Thread Jake Bolewski
Did you use OpenCL.jl for this project? It would be cool if you offered more details about what your working on. I'm always interested in what other people are up to. Best, Jake On Wednesday, March 19, 2014 10:58:50 AM UTC-4, Valentin Churavy wrote: > > Thanks I totally didn't see that :). >

[julia-users] Re: ipython error

2014-03-20 Thread Jake Bolewski
To get a backtrace of the potential problem, in the julia repl start up a kernel by "import IJulia". If the kernel is crashing for some reason this should provide more clues as to what is going on. On Thursday, March 20, 2014 4:21:35 PM UTC-4, Eka Palamadai wrote: > > I did a git pull today, t

Re: [julia-users] Yet another licensing question: Building a Julia version of an R package

2014-03-23 Thread Jake Bolewski
Another strategy is to contact the authors directly and ask them if they would consider relicensing their work. Many people do not really consider the implications of choosing one license over another and just go with a default. On Sunday, March 23, 2014 8:59:58 PM UTC-4, John Myles White wr

[julia-users] Re: AMD clBLAS bindings to julia - CLBLAS

2014-03-23 Thread Jake Bolewski
This is a great start for GPU linear algebra! The future api is looking pretty nice, It might be something that could be folded into OpenCL.jl Best, Jake On Sunday, March 23, 2014 7:42:20 PM UTC-4, erkin kanlioglu wrote: > > Hi, > > I have put together AMD clBLAS bindings to Julia by utilising

Re: [julia-users] SharedArray oddities

2014-03-27 Thread Jake Bolewski
Mikael, any type of parallelism has implicit overhead. You are not doing nearly enough work to amortize this overhead. On Thursday, March 27, 2014 2:31:14 PM UTC-4, Mikael Simberg wrote: > > All right, thanks! That gets rid of the error. > > If you don't mind though, I'd have some more ques

  1   2   >