[julia-users] Re: ANN: Mocha.jl v0.0.7 - Deep Learning framework for Julia

2015-02-26 Thread Chiyuan Zhang
Please also check Boltzmann.jl (https://github.com/dfdx/Boltzmann.jl) for DBN pre-training integration example with Mocha.jl! On Friday, February 27, 2015 at 1:32:02 AM UTC-5, Chiyuan Zhang wrote: Mocha.jl https://github.com/pluskid/Mocha.jl v0.0.6: Mocha is an efficient and flexible deep

[julia-users] ANN: Mocha.jl v0.0.7 - Deep Learning framework for Julia

2015-02-26 Thread Chiyuan Zhang
Mocha.jl https://github.com/pluskid/Mocha.jl v0.0.6: Mocha is an efficient and flexible deep learning framework for Julia. This time we include some small but very useful updates. v0.0.7 2015.02.27 - Infrastructure - Clearer Nesterov solver (@the-moliver) - Staged momentum

[julia-users] Ccall, have julia manage C initialized struct memory?

2015-02-26 Thread James Crist
This is more of a curiousity question than an actual use case. Is there any way to have Julia manage heap allocated memory that is initialized by a C function? By this, I mean suppose I had a function: void foo(void *x) { ...initize some structure in C here from the memory passed in by

[julia-users] Is string in Julia extendable?

2015-02-26 Thread Jerry Xiong
Considering below code: str=abc str*=def Is the new string def just be appended after the memory space of abc, or both strings were copied to a new momory space? Is str*=def equal to str=str*def and str=$(str)def in speed and memory level? Is below code in O(n) or in O(n^2) speed? s= for

Re: [julia-users] pmap not respecting srand set seed settings

2015-02-26 Thread Andreas Noack
@everywhere srand(seed) would give reproducibility, but it would probably not be a good idea since the exact same random variates will be generated on each process. Maybe something like for p in workers() @spawnat p srand(seed + p) end However, out RNG gives no guarantees about independence of

Re: [julia-users] Re: ANN: Symbolic computation with Julia

2015-02-26 Thread Ondřej Čertík
On Thu, Feb 26, 2015 at 3:44 AM, lapeyre.math1...@gmail.com wrote: (I am resending because, this my message to Ondřej did not go to the list) I can see my message right here: https://groups.google.com/d/msg/julia-users/jP1VlOe80HQ/e4KzNARuI9AJ Do you know much about the SymPy interface ? (or

Re: [julia-users] Opacity in Gadfly plots

2015-02-26 Thread Kevin Squire
Hi Jordan, I don't have an answer, but if you don't get a response here, I would suggest opening up an issue with Gadfly.jl. Cheers, Kevin On Wednesday, February 25, 2015, Jordan Meyer jlme...@umich.edu wrote: I was playing around with using Gadfly's Geom.ribbon to make plots showing

Re: [julia-users] Large memory allocation and GC time in fractal renderer

2015-02-26 Thread DumpsterDoofus
Filed here https://github.com/JuliaLang/julia/issues/10339.

[julia-users] pmap not respecting srand set seed settings

2015-02-26 Thread Steve Kay
There is a really nice example of using pmap for parallel bootstrapping purposes on http://juliaeconomics.com/2014/06/18/parallel-processing-in-julia-bootstrapping-the-mle/ . If you rerun the code however, it's clear that the pmap function does not respect the set seed command srand. I've

Re: [julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread Tim Holy
There's also a RopeString type. --Tim On Thursday, February 26, 2015 07:32:27 AM David P. Sanders wrote: El jueves, 26 de febrero de 2015, 9:15:38 (UTC-6), Josh Langsfeld escribió: It's equivalent to str = str * def. I believe that's the case for all +=, *=, etc operators and all types.

Re: [julia-users] Can I use Julia to read/modify/write LLVM IR?

2015-02-26 Thread Isaiah Norton
Not directly with base Julia, but there is a very neat package with the capability to call directly C++, using Clang to generate IR and then JIT'ing (all in-memory, no files involved). https://github.com/Keno/Cxx.jl Is LLVM IR code portable across different LLVM and Clang versions? No. On

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-26 Thread David P. Sanders
El miércoles, 25 de febrero de 2015, 20:32:59 (UTC-6), Tim Holy escribió: On Wednesday, February 25, 2015 06:21:24 PM David P. Sanders wrote: To continue the theme: What is [[3, 4], [5, 6]] supposed to do now? I thought this was supposed to give me an array of arrays, but it

[julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread Josh Langsfeld
It's equivalent to str = str * def. I believe that's the case for all +=, *=, etc operators and all types. On Thursday, February 26, 2015 at 9:23:19 AM UTC-5, Jerry Xiong wrote: Considering below code: str=abc str*=def Is the new string def just be appended after the memory space of abc,

Re: [julia-users] Re: Unable to set up AppVeyor.

2015-02-26 Thread Ismael VC
Thanks again! I'm finally satisfied with my current setup. Now I can stop playing around with GitHub and actually focus on the code! :D Cheers! On Thu, Feb 26, 2015 at 5:22 AM, Tony Kelman t...@kelman.net wrote: 32 bit Linux is sort of doable, by manually downloading and extracting the

[julia-users] pmap not respecting srand set seed settings

2015-02-26 Thread Ivar Nesje
No, that is not possible with pmap.

[julia-users] pmap not respecting srand set seed settings

2015-02-26 Thread Ivar Nesje
I think something like @everywhere srand(seed) would partially work, but you'd still suffer from non determinism in the scheduler that might run different portions of the array in different processes depending on the current load on your computer.

[julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread David P. Sanders
El jueves, 26 de febrero de 2015, 9:15:38 (UTC-6), Josh Langsfeld escribió: It's equivalent to str = str * def. I believe that's the case for all +=, *=, etc operators and all types. That's correct. So the original code is O(n^2). A good way to do this is using IOBuffer, as below.

[julia-users] Is julia string extendable?

2015-02-26 Thread Jerry Xiong
str=abc str*=def Is the new string def just be appended after the memory space of abc, or both strings were copied to a new momory space? Is str=str*def equal to str*=def in speed and memory level? Is below code O(n) or O(n^2)? s= for i=1:1 end

[julia-users] Can I use Julia to read/modify/write LLVM IR?

2015-02-26 Thread droiddermo
Hello! Julia is build around LLVM and uses it for JIT compilation. Can I use LLVM library bundled with Julia from within Julia code? I'd like to use Julia to read LLVM IR code generated by Clang, modify it and write it back. Is it possible to do with Julia? Can you give me some directions on

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-26 Thread Jutho
I opened an issue to further discuss some related questions regarding concatenation and construction of matrices: https://github.com/JuliaLang/julia/issues/10338

[julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread Jerry Xiong
Thanks a lot! I tested them on Julia 0.3.6: julia N=10; julia @time concat1(N); elapsed time: 37.870699284 seconds (23955546560 bytes allocated, 82.31% gc time) julia @time concat2(N); elapsed time: 0.016476456 seconds (9538836 bytes allocated) I also tried another way: julia function

[julia-users] ANN: NYC Julia meetup

2015-02-26 Thread Stefan Karpinski
We're rebooting the New York City Julia meetup. The first event will be next Tuesday, March 3rd – I'll be giving a talk entitled The Julian Way: Learning to Think in Julia: http://www.meetup.com/julia-nyc/events/220762254/. I suspect there's a lot of people using and interested in Julia in the NYC

[julia-users] difference between include and require

2015-02-26 Thread Pooya
I didn't find a clear description of the difference in the documentation. For example, if I define a function Bar in a separate file, what is the difference of using require(Bar) from include(Bar) in another script? Also, the documentation for modules says : Given the statement using Foo,

[julia-users] Re: pmap not respecting srand set seed settings

2015-02-26 Thread Steve Kay
Thanks for the comments. - nice to know it's not my usual programming inadequacies. I like the for p in workers() @spawnat p srand(seed + p) end idea. It would be even better if instead of resetting the seed it did a (imaginary) @spawnat p jumpahead(seed,(p*X)) where X was larger than the

Re: [julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread Jerry Xiong
Could you give a example code? On Thursday, February 26, 2015 at 5:53:51 PM UTC+1, Tim Holy wrote: There's also a RopeString type. --Tim On Thursday, February 26, 2015 07:32:27 AM David P. Sanders wrote: El jueves, 26 de febrero de 2015, 9:15:38 (UTC-6), Josh Langsfeld escribió:

Re: [julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread Stefan Karpinski
Don't worry about the RopeString business. The IOBuffer way is better and RopeString may go away in the relatively near future. On Thu, Feb 26, 2015 at 2:59 PM, Jerry Xiong xiongji...@gmail.com wrote: Could you give a example code? On Thursday, February 26, 2015 at 5:53:51 PM UTC+1, Tim Holy

Re: [julia-users] Re: Is string in Julia extendable?

2015-02-26 Thread David P. Sanders
El jueves, 26 de febrero de 2015, 10:53:51 (UTC-6), Tim Holy escribió: There's also a RopeString type. Nice! Though this seems to be under-documented (i.e., there is no documentation)? --Tim On Thursday, February 26, 2015 07:32:27 AM David P. Sanders wrote: El jueves, 26 de

Re: [julia-users] Mutate C struct represented as Julia immutable

2015-02-26 Thread J Luis
Yes you warned me that it may sometimes segv, but what else can I do to get the pointer to a variable (a scalar or a composite type)? I asked it once in https://groups.google.com/forum/?fromgroups=#!topic/julia-users/i8DO3pBAHPU and my safe was to box it in pointer([M]). What else

Re: [julia-users] Re: Constructing matrices

2015-02-26 Thread Luis Benet
Just a tiny little note on: [1; 2; 3] is precisely the same thing as [1, 2, 3] julia [1; 2; 3] == [1,2,3] true julia [1; 2; 3] === [1,2,3] false Luis

[julia-users] [code review] atomic units implementationf for AHN-algorithm.

2015-02-26 Thread Ismael VC
Hello everyone! I'd like to know your opinions about my atomic units implementation for the artificial hydrocarbon networks algorithm, right now I'm working on the molecular units - atomic_units.jl http://bit.ly/1wkwO4C I still don't have a clear picture of how to implement the other

[julia-users] Re: Julia users Berlin

2015-02-26 Thread Hans W Borchers
David, why don't you just set up a Julia Meetup group. This will make it much easier to organize meetings and to keep interested participants informed. I guess in Europe there are Julia Meetups in London and Zürich only, and it would be nice to have Berlin come in next. On Wednesday, February

Re: [julia-users] Re: Constructing matrices

2015-02-26 Thread Bill Hart
Yeah, but that's nothing to do with the syntax. After all: julia [1, 2, 3] === [1, 2, 3] false julia [1; 2; 3] === [1; 2; 3] false On 26 February 2015 at 19:55, Luis Benet luis.bene...@gmail.com wrote: Just a tiny little note on: [1; 2; 3] is precisely the same thing as [1, 2, 3] julia

Re: [julia-users] Mutate C struct represented as Julia immutable

2015-02-26 Thread Jameson Nash
You need to make new versions of both immutable objects, recursively constructing the updated struct, then unsafe_store it back to the original C location On Thu, Feb 26, 2015 at 2:32 PM J Luis jmfl...@gmail.com wrote: Yes you warned me that it may sometimes segv, but what else can I do to get

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-26 Thread Tim Holy
Not sure, but two possibilities come to mind: - I'm not sure it works with keyword functions. One way to check would be to modify base to create an`svds_` function (note the underscore) that takes all those parameters as regular arguments, and have `svds` call `svds_`. Then precompile

Re: [julia-users] Re: ANN: Symbolic computation with Julia

2015-02-26 Thread lapeyre . math122a
(I am resending because, this my message to Ondřej did not go to the list) Hi Ondřej, The various sympy projects are very interesting, your work porting Rubi especially. SJulia is using SymPy for a lot of features (Integrate, Solve, ...) . Here is some test code

Re: [julia-users] Re: ANN: Symbolic computation with Julia

2015-02-26 Thread lapeyre . math122a
BTW. Do you know much about the SymPy interface ? (or maybe the authors are reading this ?) Francesco has already supplied a lot of information, but I am new to sympy. Here, I ask for an integer to be converted with _to_mpmath https://github.com/jlapeyre/SJulia/blob/master/src/sympy.jl#L89

Re: [julia-users] Re: pmap not respecting srand set seed settings

2015-02-26 Thread Andreas Noack
Would that be to get the exact same variates as the serial execution would create? 2015-02-26 15:04 GMT-05:00 Steve Kay stevekay...@googlemail.com: Thanks for the comments. - nice to know it's not my usual programming inadequacies. I like the for p in workers() @spawnat p srand(seed + p)

Re: [julia-users] Mutate C struct represented as Julia immutable

2015-02-26 Thread Tracy Wadleigh
I was just recently trying to use the wrap-a-pointer-to-an-immutable-in-a-1-element-array trick while wrapping some library code where some important setter functions were unfortunately only defined as inline in the headers. I defined my own setters by assigning to the immutable in the array. The

Re: [julia-users] Re: ANN: Symbolic computation with Julia

2015-02-26 Thread j verzani
I think PyCall already has what you need for conversion: PyObject(big(pi)) will create a an mpf instance of a big float, like big(pi) convert(BigFloat, PyObject(big(pi))) will return a BigFloat from an mpf instance. On Thursday, February 26, 2015 at 6:57:37 AM UTC-5, lapeyre@gmail.com

[julia-users] ANN: IndexedArrays.jl

2015-02-26 Thread Jim Garrison
I made an `IndexedArrays` package with an `IndexedArray` data structure. This acts like a `Vector` of unique elements, but also maintains the reverse mapping in a dictionary that is updated in sync with the vector, allowing for quick lookup of the index of any element. A simple example is