Re: [julia-users] Julia vs Clojure for Distributed Scientific Simulations

2016-01-27 Thread Ismael VC
I dont know if you can call Julia from Java, but you can call Java from Julia, see: * https://github.com/aviks/JavaCall.jl * https://github.com/aviks/JavaCall.jl Ismael Venegas Castelló *Data Analyst* Cel. 044 55 6434 0229 ivene...@richit.com.mx Cerro San Francisco 357, C.P. 04200 Campestre

Re: [julia-users] Why SimpleVector / svec?

2016-01-06 Thread Ismael VC
Thanks for your answer Tim, what do you think about wrapping the builtins in julia functions, does it makes sense? Rename builtins with a trailing underscore, and map them to julia generic functions applicable(args...) = _applicable(args...) apply_type(args...) = _apply_type(args...)

Re: [julia-users] Why SimpleVector / svec?

2016-01-06 Thread Ismael VC
gt; >> If we allow many of these to be user-defined, they will break a lot of >> things. See #1974 <https://github.com/JuliaLang/julia/issues/1974> for >> example. >> >> On Wed, Jan 6, 2016 at 10:53 AM, Ismael VC <ismael.vc1...@gmail.com> >> wrote:

Re: [julia-users] Overriding the = operator

2016-01-06 Thread Ismael VC
Please ignore this part: julia> macro ≔(v, b) e = Expr(:global, v) :(global $e; $(esc(v)) = $(esc(b))) As you can see even the end keyword is missing, so it would have made an incomplete input error. It was a mistake on my part I pasted an incomplete part of a prior

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2016-01-04 Thread Ismael VC
Just my thoughts: - You can’t have Set{R, S} only Set{T}, Set{DataType}([R, S]) for example. - The moment you want to dispatch on those subtypes you would need to do something like Union{Ts...}, where Ts is an array or set of such subtypes. - Union{R, S} == Union{S, R} is true.

Re: [julia-users] Does any one have Raspberry Pi 2 Julia binaries?

2015-12-29 Thread Ismael VC
h. > > https://drive.google.com/open?id=0B0rXlkvSbIfhbWxOVllKUXc1RDA > > I will link these binaries on the Julia downloads page as alpha, with > appropriate warnings and links to issues etc. > > -viral > > > -viral > > > > > On 30-Dec-2015, at 12:41 AM, Ismael VC

Re: [julia-users] Re: passing function as arguments and avoiding unecessary allocations

2015-12-28 Thread Ismael VC
How about this? julia> sinc{T<:AbstractFloat}(x::T) = x != 0 ? sin(π*x)/(π*x) : one(T) sinc (generic function with 1 method) julia> methods(sinc) # 1 method for generic function "sinc": sinc{T<:AbstractFloat}(x::T<:AbstractFloat) at none:1 julia> @vectorize_1arg AbstractFloat sinc sinc (generic

Re: [julia-users] Re: How to avoid extra allocations when passing a function as parameter

2015-12-28 Thread Ismael VC
Yes, from version 0.4 onwards you can use T <: AbstractFloat, for version 0.3 and before, I think it would be T <: FloatingPoint. ​ Ismael Venegas Castelló *Data Analyst* Cel. 044 55 6434 0229 ivene...@richit.com.mx Cerro San Francisco 357, C.P. 04200 Campestre Churubusco, Coyoacán Ciudad

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-28 Thread Ismael VC
ch as I would like to just assert that the result of calling >>>>> subtypes on Type produces the array [DataType, TypeConstructor, Union >>>>> ] it's just not supposed to be an array, even if today we can >>>>> guarantee that the array will

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-28 Thread Ismael VC
I thougt one advantage of using sets would be the ability to use set operations, but they work on arrays to, by the way the documentation of ie, union falls short, because it’s actually more general than what it says (*not only sets*): help?> union search: union union! Union @unix_only function

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-27 Thread Ismael VC
Kevin I tested in my Win laptop with 0.3.11, 0.4.2, 0.4, 0.5+ also the same versions in julia box, and the output is deterministically sorted, It seems this has been the way it works for some time now, then I looked at the code and it’s indeed sorted (should have done that first! :P ): -

[julia-users] Re: Parallel @sync @async

2015-12-02 Thread Ismael VC
You can use `vcat` to reduce it to an array: julia> r = @parallel vcat for i=1:10 a[rand(1:end)] end; julia> typeof(r), size(r) (Array{Float64,1},(10,)) Is this what you are after? El domingo, 22 de noviembre de 2015, 17:17:46 (UTC-6), digxx escribió: > > As you could

[julia-users] How to upload file and also specify data options with Requests.jl?

2015-12-02 Thread Ismael VC
Hello everyone! I've been trying/learning how to wrap HPE Haven OnDemand API with Julia: HavenOnDemand.jl. but I havent figured out how to send multipart data, plus other parameters, it seems to me that one can only do one or the other: "Main

[julia-users] Re: How to upload file and also specify data options with Requests.jl?

2015-12-02 Thread Ismael VC
and.com/1/api/async/ocrdocument/v1",data=data,files=files) print r.json() Julia ...how to??? El miércoles, 2 de diciembre de 2015, 19:20:51 (UTC-6), Ismael VC escribió: > > Hello everyone! > > I've been trying/learning how to wrap HPE Haven OnDemand API > <https://dev.havenonde

Re: [julia-users] Re: a=[1:1:10] WARNING ? What to creat vectors in 4.0 ?

2015-11-06 Thread Ismael VC
What DNF means is that must of the time you don't need to convert a range into an array, since the range is tolerable. The only times I need to do that is if I need to slice or index the elements of the range. So what are you doing with this range? El 06/11/2015 07:54, "Paul Analyst"

[julia-users] Julia Hands-on: Introductory Tutorial for Distributed Computing

2015-11-06 Thread Ismael VC
This is great news, I'll see you there on hangouts, thanks!

[julia-users] Re: a=[1:1:10] WARNING ? What to creat vectors in 4.0 ?

2015-11-05 Thread Ismael VC
Paul, you can also use this syntax with a semi colon: _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version

[julia-users] Re: "using Gadfly" (using a package) only if needed

2015-11-05 Thread Ismael VC
This also works: julia> function foo(x, y; make_plot::Bool=false) # ... if make_plot @eval using Gadfly plot(x = x, y = y, Geom.line) end # ... end foo (generic function with 1 method) julia> x = -π:0.1:π; foo(x,

[julia-users] Re: why does @eval (a=b) set a global variable?

2015-11-03 Thread Ismael VC
Deniz, I think you could use a macro: [root@hd0 ~]# julia-0.5.0 _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_|

[julia-users] Re: Is there a tutorial on how to set up my own Julia cluster?

2015-10-28 Thread Ismael VC
: Invalid argument It seems to me it tries to use the 2 as the host address :( Could anyone please give me an example off a machine file which specifies the worker count? Thanks in advance, cheers! El viernes, 25 de septiembre de 2015, 16:42:59 (UTC-5), Ismael VC escribió: > > Hello ev

[julia-users] Re: Is there a tutorial on how to set up my own Julia cluster?

2015-10-28 Thread Ismael VC
rs at multi.jl:1027 in addprocs_internal at multi.jl:1234 in addprocs at multi.jl:1244 in process_options at ./client.jl:240 in _start at ./client.jl:354 [root@hd0 ~]# El viernes, 25 de septiembre de 2015, 16:42:59 (UTC-5), Ismael VC escribió: > > Hello everyone! > > I am trying to set u

[julia-users] Re: Is there a tutorial on how to set up my own Julia cluster?

2015-10-28 Thread Ismael VC
Thank you Seth, the count arg is not supported in 0.3.x, I'll update shortly to 0.4.x El miércoles, 28 de octubre de 2015, 13:42:55 (UTC-6), Seth escribió: > > > On Wednesday, October 28, 2015 at 10:20:00 AM UTC-7, Ismael VC wrote: >> >> How can I start 2 workers on each nod

[julia-users] Re: Is there a tutorial on how to set up my own Julia cluster?

2015-10-28 Thread Ismael VC
Thank you very much Greg that worked! :D El miércoles, 28 de octubre de 2015, 13:31:53 (UTC-6), Greg Plowman escribió: > > On v0.3 try multiple entries (lines) in machine file, one for each worker.

Re: [julia-users] Re: Julia T-shirt and Sticker

2015-10-20 Thread Ismael VC
How about one with: #JuliaLang ...an elegant programming

[julia-users] Re: ANN: A potential new Discourse-based Julia forum

2015-10-05 Thread Ismael VC
I've been testing it and I think it's an improvement over google forums. +1 for moving to something better! El sábado, 19 de septiembre de 2015, 19:16:36 (UTC-5), Jonathan Malmaud escribió: > > Hi all, > There's been some chatter about maybe switching to a new, more modern > forum platform for

[julia-users] Re: How to import all symbols from a module with @everywhere?

2015-09-26 Thread Ismael VC
This is the result: * http://nbviewer.ipython.org/gist/Ismael-VC/3fa7fb19fff61b0c6eeb 530.838512 seconds (18.68 k allocations: 2.102 MB) What's the advantage of addprocs(CPU_CORES - 1) ?

[julia-users] Re: How to import all symbols from a module with @everywhere?

2015-09-26 Thread Ismael VC
This is the result: * http://nbviewer.ipython.org/gist/Ismael-VC/3fa7fb19fff61b0c6eeb 530.838512 seconds (18.68 k allocations: 2.102 MB) What's the advantage of addprocs(CPU_CORES - 1) ?

[julia-users] Re: How to import all symbols from a module with @everywhere?

2015-09-26 Thread Ismael VC
Thank you very much Nils, that solved my issue!

[julia-users] Is there a tutorial on how to set up my own Julia cluster?

2015-09-25 Thread Ismael VC
Hello everyone! I am trying to set up a Julia cluster with 20 nodes, this is the very first time I've tried something like this. I have looked around for examples, but documentation is not very helpful for me: *Julia can be started in parallel mode with either the -p or the --machinefile

[julia-users] How to import all symbols from a module with @everywhere?

2015-09-25 Thread Ismael VC
Hello everyone! I have been trying to do some parallel tests with a simple example using Images and Colors, you can see here: - http://nbviewer.ipython.org/gist/Ismael-VC/e18bcae78a49f68a0838 ERROR (unhandled task failure): On worker 15: UndefVarError: Gray not defined The same on every

[julia-users] Re: Why does empty index returns first element?

2015-09-19 Thread Ismael VC
ulia-users/o9kC6tVKpTk El sábado, 19 de septiembre de 2015, 12:42:57 (UTC-5), Ismael VC escribió: > > I would have expected an error. > > Julia: > > julia> VERSION > v"0.4.0-rc1" > > julia> x = [1:5;]; > > julia> x[], x[1] > (1,1) > >

[julia-users] Why does empty index returns first element?

2015-09-19 Thread Ismael VC
I would have expected an error. Julia: julia> VERSION v"0.4.0-rc1" julia> x = [1:5;]; julia> x[], x[1] (1,1) Python: >>> x = range(1, 6) >>> x[] File "", line 1 x[] ^ SyntaxError: invalid syntax

[julia-users] Re: Why does enumerate fail in parallel?

2015-08-19 Thread Ismael VC
Enumerate is an iterator, you need to collect the items first: julia @parallel for i in collect(enumerate(list)) println(i) end julia From worker 2: (1,a) From worker 2: (2,b) From worker 3: (3,c) El miércoles, 19 de agosto de 2015, 12:17:35 (UTC-5), Nils Gudat

[julia-users] Re: Why does enumerate fail in parallel?

2015-08-19 Thread Ismael VC
Well that works but it's indeed odd, can you open a new issue for this? El miércoles, 19 de agosto de 2015, 13:48:28 (UTC-5), Ismael VC escribió: Enumerate is an iterator, you need to collect the items first: julia @parallel for i in collect(enumerate(list)) println(i) end

Re: [julia-users] Embarrassingly parallel workload

2015-08-19 Thread Ismael VC
There is an MPI wrapper for Julia, I don't know if it'll suit your needs thoug: https://github.com/JuliaParallel/MPI.jl El miércoles, 19 de agosto de 2015, 13:03:59 (UTC-5), Júlio Hoffimann escribió: Hi Kristoffer, sorry for the delay and thanks for the code. What I want to do is very

[julia-users] Re: does JLD handle Int128 (saw at one time it did not)

2015-08-19 Thread Ismael VC
Have you tried using it with HDF5.jl? https://github.com/timholy/HDF5.jl El miércoles, 19 de agosto de 2015, 12:50:35 (UTC-5), Jeffrey Sarnoff escribió: Or, what is a good approach to saving and reloading Int128s .. -x .. +x?

Re: [julia-users] Re: JuliaCon 2015 videos

2015-08-18 Thread Ismael VC
Shashi how are you doing your presentations? They are awesome! Where can I find the code for that one? El martes, 18 de agosto de 2015, 11:55:01 (UTC-5), Shashi Gowda escribió: If you have Escher installed and ready to go (See instructions on escher-jl.org) you can safely skip the first 20

[julia-users] [Escher] no method broadcast(::Function, ::Array{Float64,2}, ::Array{Float64,1})

2015-08-05 Thread Ismael VC
/ismael-vc/.julia/v0.3/Escher/src/cli/serve.jl:171 in anonymous at /home/ismael-vc/.julia/v0.3/Mux/src/Mux.jl:15 in anonymous at /home/ismael-vc/.julia/v0.3/Mux/src/Mux.jl:8 in splitquery at /home/ismael-vc/.julia/v0.3/Mux/src/basics.jl:28 in anonymous at /home/ismael-vc/.julia/v0.3/Mux/src/Mux.jl

Re: [julia-users] Juliacon 2015 videos?

2015-08-03 Thread Ismael VC
did as well. So many of the videos will be released under CC-BY-4.0 On Monday, August 3, 2015 at 8:32:12 AM UTC-4, Ismael VC wrote: Kristoffer, everyone, I found 3 recent videos NOT from JuliaCon: Shashi Gowda - Escher: democratizing beautiful visualizations * https://youtu.be

Re: [julia-users] Juliacon 2015 videos?

2015-08-03 Thread Ismael VC
: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014. I tried to get in contact

Re: [julia-users] Juliacon 2015 videos?

2015-08-03 Thread Ismael VC
), Kristoffer Carlsson escribió: Any update on videos? On Tuesday, July 21, 2015 at 12:56:58 AM UTC+2, Luke Stagner wrote: ? On Saturday, July 11, 2015 at 9:11:15 AM UTC-7, Ismael VC wrote: I was also specially interested in translating David Sanders *Introduction to Julia* at SciPy 2014

[julia-users] Re: Readtimearray function in Julia TimeSeries package

2015-08-03 Thread Ismael VC
You should file a bug report here: https://github.com/JuliaStats/TimeSeries.jl/issues This readtimearray(fname::String; meta=Nothing, format::String=””) methods doesn’t exist, the documentation must be out of date: julia methods(readtimearray) # 1 method for generic function readtimearray:

[julia-users] Escher.jl How to embed arbitrary javascript code?

2015-07-31 Thread Ismael VC
I have been trying to include a gist in an Escher web app: function main(window) vbox( plaintext(Gist test), Elem(:script, src = ~/.julia/v0.3/Patchwork/runtime/build.js), Elem(:script, display = inline, src = https://gist.github.com/Ismael-VC

Re: [julia-users] Printf() of a variable number of arguments

2015-07-23 Thread Ismael VC
) @Write a This is purely for learning purposes. This was simple enough example, which I could try to develop myself. On Thursday, July 23, 2015 at 1:21:04 AM UTC+3, Ismael VC wrote: You forgot to interpolate the expression with `$`: julia macro write(arr) quote

Re: [julia-users] Printf() of a variable number of arguments

2015-07-23 Thread Ismael VC
, but didn't understand it. Now with the example it's very clear. On Thursday, July 23, 2015 at 3:56:39 PM UTC+3, Ismael VC wrote: help? @sprintf INFO: Loading help data... Base.@sprintf(%Fmt, args...) Return @printf formatted output as string. julia s = @sprintf this is a %s test

Re: [julia-users] Printf() of a variable number of arguments

2015-07-22 Thread Ismael VC
You forgot to interpolate the expression with `$`: julia macro write(arr) quote for i in $arr @printf(%12.6f\n,i) end end end julia a = 1e5*rand(10) 10-element Array{Float64,1}: 46310.6 25130.5 30710.8 82089.6

[julia-users] Re: SOLVED: ERROR: `start` has no method matching start(::Nothing)

2015-07-21 Thread Ismael VC
Not related, but how do you edit the thread name in order to mark it as SOLVED? I haven't found a way to do this, thanks! El lunes, 20 de julio de 2015, 14:09:00 (UTC-5), Kaj Wiik escribió: I started to get a strange error while debugging my code, here's a simplified example: julia

[julia-users] Re: Why is the type of a variable different from inside and outside a let block?

2015-07-21 Thread Ismael VC
Thank you both! I get it now: julia let x::Float64 = 5 x end::Float64 5.0 El lunes, 20 de julio de 2015, 23:03:03 (UTC-5), Ismael VC escribió: This was surprising: julia versioninfo() Julia Version 0.4.0-dev+5491 Commit cb77503 (2015-06-21 09:45 UTC

[julia-users] Why is the type of a variable different from inside and outside a let block?

2015-07-20 Thread Ismael VC
This was surprising: julia versioninfo() Julia Version 0.4.0-dev+5491 Commit cb77503 (2015-06-21 09:45 UTC) Platform Info: System: Linux (x86_64-unknown-linux-gnu) CPU: Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY

[julia-users] Re: Indication of the future development in the online Julia documentation

2015-07-17 Thread Ismael VC
You could add a section in the manual which explains the depreciation process, I think it's really worth it. El viernes, 17 de julio de 2015, 9:57:59 (UTC-5), Sisyphuss escribió: We are currently at v0.3. However, the upcoming v0.4 and v0.5 will bring some breaking changes to Julia, which

[julia-users] Proposal to internationalize the Julia web page.

2015-07-15 Thread Ismael VC
You can see the pull request here: https://github.com/JuliaLang/julialang.github.com/pull/252 Working demo here: http://julialanges.github.io Please let me know what do you think.

Re: [julia-users] Re: Juliacon 2015 videos?

2015-07-11 Thread Ismael VC
right? @sorami are you guys at also interested in this? Id like to know which other stuff would you or anybody else expect to be part of juila-i10n. Is there anyone else interested in translating julia resources to other languages? On Sat, Jul 11, 2015 at 9:29 AM, Ismael VC ismael.vc1...@gmail.com

Re: [julia-users] Re: Juliacon 2015 videos?

2015-07-11 Thread Ismael VC
Everyone, please feel free to come and join us at the Gitter channel **julia-i18n** for discussions regarding the internationalization of Julia: * https://gitter.im/JuliaLangEs/julia-i18n On Sat, Jul 11, 2015 at 9:46 AM, Ismael VC ismael.vc1...@gmail.com wrote: Also while I wait for this news

Re: [julia-users] Re: Juliacon 2015 videos?

2015-07-11 Thread Ismael VC
@Viral thank you for the update! What I want is to be able to subtitle the videos, that's all. On Fri, Jul 10, 2015 at 9:52 PM, Viral Shah vi...@mayin.org wrote: We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote

Re: [julia-users] Juliacon 2015 videos?

2015-07-11 Thread Ismael VC
the spanish and other subtitles. -viral On 11-Jul-2015, at 8:16 pm, Ismael VC ismael.vc1...@gmail.com wrote: Also while I wait for this news I'd like to know which license is used currently for the videos that are already at the Julia Youtube channel. If it's ok I would also like to provide

[julia-users] Re: Juliacon 2015 videos?

2015-07-10 Thread Ismael VC
Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: Will there be videos of the 2015 Juliacon? Where... :-) Thanks.

[julia-users] Re: Differential equations system with SymPy function dsolve?

2015-07-08 Thread Ismael VC
/Ismael-VC/2f39cd8cf30d19a78349 but it returns a wrong answer.

[julia-users] Re: Help in understanding Julia's ways

2015-07-06 Thread Ismael VC
Couldn't we just get a warning and let people shoot themselves in their foot if that's what they want? Something like: Warning: Using private method/type in module Foo at foo.jl:n. I hate boilerplate redundancy, also I didn't knew about the fields of types are private, I do understand that

[julia-users] Re: questions about coroutines

2015-07-06 Thread Ismael VC
I thougth that using type annotations to assert the type would help, but it doesn't: ``` counter() = for i = 1:100 x = produce(i) end function test₂() a = zeros(Int, 100) task = Task(counter) for i = 1:100 a[i] = consume(task)::Int end end ``` El martes, 30 de junio de

Re: [julia-users] Re: Juliacon 2015 videos?

2015-07-03 Thread Ismael VC
Indeed I would like to translate the videos to Spanish. How are the videos licensed? El jueves, 2 de julio de 2015, 9:00:28 (UTC-5), Scott Jones escribió: There are also Spanish speaking volunteers (David Sander's great Julia community in Mexico) waiting to get the videos (and permission)

[julia-users] Re: Sieve of Atkin performance.

2015-06-28 Thread Ismael VC
Stefan It's done, I've updated it with a MIT licence header: https://gist.github.com/Ismael-VC/179790a53c549609b3ce El domingo, 28 de junio de 2015, 10:16:16 (UTC-5), Ismael VC escribió: Hello everyone! I’ve implemented this Sieve of Atkin: - https://gist.github.com/Ismael-VC

[julia-users] Re: Sieve of Atkin performance.

2015-06-28 Thread Ismael VC
I used the wikipedia spanish version and algorithm, I didn't notice that it's a different one in the english version: * https://es.wikipedia.org/wiki/Criba_de_Atkin#Pseudoc.C3.B3digo I'll check that one too. El domingo, 28 de junio de 2015, 10:16:16 (UTC-5), Ismael VC escribió: Hello

[julia-users] Sieve of Atkin performance.

2015-06-28 Thread Ismael VC
Hello everyone! I’ve implemented this Sieve of Atkin: - https://gist.github.com/Ismael-VC/179790a53c549609b3ce function atkin(limit::Int = 0) @inbounds begin primes = [2, 3] if limit 0 error(limit can't be negative (found $(limit))) elseif limit

[julia-users] Re: Sieve of Atkin performance.

2015-06-28 Thread Ismael VC
Yes certainly Stefan, I'll update the gist with a MIT licence note. El domingo, 28 de junio de 2015, 10:16:16 (UTC-5), Ismael VC escribió: Hello everyone! I’ve implemented this Sieve of Atkin: - https://gist.github.com/Ismael-VC/179790a53c549609b3ce function atkin(limit::Int = 0

[julia-users] Re: Sieve of Atkin performance.

2015-06-28 Thread Ismael VC
, 28 de junio de 2015, 10:16:16 (UTC-5), Ismael VC escribió: Hello everyone! I’ve implemented this Sieve of Atkin: - https://gist.github.com/Ismael-VC/179790a53c549609b3ce function atkin(limit::Int = 0) @inbounds begin primes = [2, 3] if limit 0 error

[julia-users] Re: Sieve of Atkin performance.

2015-06-28 Thread Ismael VC
. El domingo, 28 de junio de 2015, 10:16:16 (UTC-5), Ismael VC escribió: Hello everyone! I’ve implemented this Sieve of Atkin: - https://gist.github.com/Ismael-VC/179790a53c549609b3ce function atkin(limit::Int = 0) @inbounds begin primes = [2, 3] if limit 0

[julia-users] Invitation to JuliaLangEs events

2015-06-25 Thread Ismael VC
To all Julians! Our community *JuliaLangEs https://github.com/JuliaLangEs* has been invited recently to two important technology events in Mexico. The first one and the also the closest one is *Campus Party Mexico 2015*, which will be celebrated from 22 to 26 of July at Guadalajara and we have

[julia-users] Re: 4º Julia Meetup, México D.F.

2015-05-07 Thread Ismael VC
://youtu.be/eF8Uheik7nU Hangout: - https://plus.google.com/…/events/cs8jc32jvgkqbliu972la9ug66c Contact: - https://gitter.im/Ismael-VC/julialang-es Facebook: - https://www.facebook.com/groups/julialang.es Google Groups: - https://groups.google.com/forum/#!forum/julia-users-es El

[julia-users] Building Julia 0.3.7 in OSX 10.6.8 (Snow Leopard).

2015-05-03 Thread Ismael VC
Hello everyone! I just got an old MacBook with OSX *10.6.8* Snow Leopard at work and I want to use the latest Julia release. I noticed that the latest supported release for this OS was 2.1, which is what I’m using for now. The build fails with the following error: $ make -j1# previously

[julia-users] Build error: could not open \flisp.boot\.

2015-04-30 Thread Ismael VC
Hello everyone! I’m trying to build Julia at PythonAnywhere https://www.pythonanywhere.com, and the build fails because of: CC src/flisp/flisp.o CC src/flisp/builtins.o CC src/flisp/string.o CC src/flisp/equalhash.o CC src/flisp/table.o CC src/flisp/iostream.o CC

Re: [julia-users] Build error: could not open \flisp.boot\.

2015-04-30 Thread Ismael VC
If anyone is interested in checking out the console session, just send me a message to ismael.vc1...@gmail.com, thanks! El jueves, 30 de abril de 2015, 11:59:13 (UTC-5), Ismael VC escribió: Thank yo very much Isaiah, I've just did `make clean make` again and I still get the same error

Re: [julia-users] Build error: could not open \flisp.boot\.

2015-04-30 Thread Ismael VC
, Apr 30, 2015 at 6:22 AM, Ismael VC ismael...@gmail.com javascript: wrote: Hello everyone! I’m trying to build Julia at PythonAnywhere https://www.pythonanywhere.com, and the build fails because of: CC src/flisp/flisp.o CC src/flisp/builtins.o CC src/flisp/string.o CC

Re: [julia-users] Build error: could not open \flisp.boot\.

2015-04-30 Thread Ismael VC
/flisp/flisp.c#L2424-L2426 On Thu, Apr 30, 2015 at 1:08 PM, Ismael VC ismael.vc1...@gmail.com wrote: If anyone is interested in checking out the console session, just send me a message to ismael.vc1...@gmail.com, thanks! El jueves, 30 de abril de 2015, 11:59:13 (UTC-5), Ismael VC escribió

[julia-users] 4º Julia Meetup, México D.F.

2015-04-19 Thread Ismael VC
If you live in Mexico City, the metropolitan area or just plan to visit us this weekend, you are welcome next Saturday May 9 starting at 11:00 am, at the *laboratory Libre IV, 2º floot, Physics Department, Faculty of Science, Univercity City, UNAM*! Details: http://www.meetup.com/julialang-mx

[julia-users] Unable to show `Interact` widget in IJulia.

2015-03-26 Thread Ismael VC
Hello guys! One of my friends is having trouble with `Interact.jl`. He can't see any widget. * MacOS * Chromium * Everything up to date. Seems there is a connection issue, what could be causing it? https://files.gitter.im/Ismael-VC/julialang-es/dyGs/Screen-Shot-2015-03-26-at-1.48.01-PM.png

[julia-users] Re: Unable to show `Interact` widget in IJulia.

2015-03-26 Thread Ismael VC
https://files.gitter.im/Ismael-VC/julialang-es/mN7n/Screen-Shot-2015-03-26-at-4.26.25-PM.png Well test with julia-v0.3.7 El jueves, 26 de marzo de 2015, 14:36:21 (UTC-6), Big Stone escribió: Same here on windows ipython3.0 / julia0.3.5, Maybe interact.jl is not in synch with recent

[julia-users] Re: Unable to show `Interact` widget in IJulia.

2015-03-26 Thread Ismael VC
I don't know any javascript and I don't use MacOS. He uses 64 bit MacOS, I suspect it is a firewall issue, but if it where the notebook wouldn't even work, am I correct? El jueves, 26 de marzo de 2015, 14:04:23 (UTC-6), Ismael VC escribió: Hello guys! One of my friends is having trouble

[julia-users] Re: Unable to show `Interact` widget in IJulia.

2015-03-26 Thread Ismael VC
Avik sorry I didn't see your answer and thanks we'll try using Pkg.checkout. El jueves, 26 de marzo de 2015, 18:46:45 (UTC-6), Avik Sengupta escribió: I think you need to run Pkg.checkout(Interact) at the Julia prompt to get this working with ipython 3.0. See

[julia-users] Re: What's the difference between @assert and @test?

2015-03-26 Thread Ismael VC
assertions, so there is a conceptual difference in that assertions is used inside a program to test for invalid inputs to functions, but tests are usually runned externally to see that functions work correctly for different outputs. Regards Ivar onsdag 25. mars 2015 18.26.30 UTC+1 skrev Ismael VC

[julia-users] What's the difference between @assert and @test?

2015-03-25 Thread Ismael VC
Hello guys! I just had someone ask me this question and I didn't know what to answer him, example: julia using Base.Test julia @test 1 == 1 julia @test 1 == 3 ERROR: test failed: 1 == 3 in error at error.jl:21 (repeats 2 times) julia @assert 1 == 1 julia @assert 1 == 3 ERROR: assertion

Re: [julia-users] Different ways to create a vector of strings in Julia

2015-03-12 Thread Ismael VC
@Tammas Array{T}(0) works in 0.4-dev, but I think that's why there is also a Vector{T} typealias for Array{T,1}, so it could be Vector{T}(0) which is slightly better IMHO. julia Vector{Int}(0) 0-element Array{Int64,1} julia Array{Int,1}(0) 0-element Array{Int64,1} julia Array{Int}(0)

Re: [julia-users] Automatic doc tools for Julia

2015-03-12 Thread Ismael VC
tshort, could you provide us an example please? El jueves, 12 de marzo de 2015, 4:59:14 (UTC-6), tshort escribió: The Lexicon package works well for me along with Mkdocs. On Mar 12, 2015 6:03 AM, Ján Adamčák jada...@gmail.com javascript: wrote: Hi guys, Can I ask you for something like

Re: [julia-users] Automatic doc tools for Julia

2015-03-12 Thread Ismael VC
that use Mkdocs: https://www.google.com/search?q=mkdocs.yml+jl+site:github.comie=utf-8oe=utf-8 On Thu, Mar 12, 2015 at 10:28 AM, Ismael VC ismael.vc1...@gmail.com wrote: tshort, could you provide us an example please? El jueves, 12 de marzo de 2015, 4:59:14 (UTC-6), tshort escribió

Re: [julia-users] Re: Julia T-shirt and Sticker

2015-03-10 Thread Ismael VC
Any sufficiently advanced programing language is indistinguishable from Julia That's so much better Paulo! [?] On Tue, Mar 10, 2015 at 6:44 AM, Michele Zaffalon michele.zaffa...@gmail.com wrote: No segfaults means zero distance? On Tue, Mar 10, 2015 at 1:22 PM, Mike Innes

[julia-users] Re: Julia T-shirt and Sticker

2015-03-09 Thread Ismael VC
I would like a cap and stickers with the legend: Any sufficiently advanced julian technology is indistinguishable from magic. :D El lunes, 9 de junio de 2014, 10:52:22 (UTC-5), ther...@gmail.com escribió: Hi all, Just FYI: I've made a Julia T-shirt and sticker on Zazzle (photo attached).

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

2015-03-05 Thread Ismael VC
Mauro thank you very much for your insight. I don't know if it fills my bill, but I'll find out. On Thu, Feb 26, 2015 at 2:23 PM, Mauro mauro...@runbox.com wrote: I still don't have a clear picture of how to implement the other more complex components: compounds and mixtures. I'm experienced

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

2015-02-27 Thread Ismael VC
{Rational{Int64}}(value = 1//2 + 0//1*im, valence = 1, degree = 0, free = 1) Carbon{BigInt}(value = 1 + 0im, valence = 4, degree = 0, free = 4) I want it to promote to `Array{AtomicUnit{BigFloat},1}` for the AtomicUnitSet{AtomicUnit{BigFloat}}: https://github.com/Ismael-VC/AHN.jl/blob/master

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

2015-02-26 Thread Ismael VC
:44:44 PM UTC-8, Ismael VC wrote: It works! One final doubt, how can I enable testing in Travis for both Linux 32 and 64 bits for both stable and development branches, the way I have it now for AppVeyour with Windows: - https://ci.appveyor.com/project/Ismael-VC/ahn-jl Thank you very much

[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: Unable to set up AppVeyor.

2015-02-25 Thread Ismael VC
with $env:APPVEYOR_ACCOUNT_NAME. On Monday, February 23, 2015 at 9:28:38 PM UTC-8, Ismael VC wrote: This is the log: [00:00:00] Build started [00:00:10] git clone -q --branch=master git:// github.com/Ismael-VC/AHN.jl.git C:\projects\ahn-jl [00:00:17] git checkout -qf 49367576242db296b6cd360e086b0ca4acc0d492 [00:00

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

2015-02-25 Thread Ismael VC
Ok now that I changed the appveyor file, it no longer finds the development versions: https://ci.appveyor.com/project/Ismael-VC/ahn-jl/build/1.0.32/job/hssfqsl3pjhlm9de a[00:00:00] Build started [00:00:08] git clone -q --branch=master git://github.com/Ismael-VC/AHN.jl.git C:\projects\ahn-jl

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

2015-02-25 Thread Ismael VC
Neither `win64`, `devel/win64`, `unstable/win64` or `nightly/win64` work. El lunes, 23 de febrero de 2015, 23:28:38 (UTC-6), Ismael VC escribió: This is the log: [00:00:00] Build started [00:00:10] git clone -q --branch=master git:// github.com/Ismael-VC/AHN.jl.git C:\projects\ahn-jl [00

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

2015-02-25 Thread Ismael VC
It works! One final doubt, how can I enable testing in Travis for both Linux 32 and 64 bits for both stable and development branches, the way I have it now for AppVeyour with Windows: - https://ci.appveyor.com/project/Ismael-VC/ahn-jl Thank you very much Tony! Cheers El miércoles, 25

[julia-users] Re: ERROR: `checked_mul` has no method matching checked_mul(::Int64, ::Base.GMP.BigInt)

2015-02-24 Thread Ismael VC
Done: https://github.com/JuliaLang/julia/issues/10311 El martes, 24 de febrero de 2015, 10:58:15 (UTC-6), Ismael VC escribió: Hello every one! This only fails in v0.4.0-dev+ this is the log: - https://travis-ci.org/Ismael-VC/AHN.jl/jobs/51998218 Here it is in v0.3.6

[julia-users] ERROR: `checked_mul` has no method matching checked_mul(::Int64, ::Base.GMP.BigInt)

2015-02-24 Thread Ismael VC
Hello every one! This only fails in v0.4.0-dev+ this is the log: - https://travis-ci.org/Ismael-VC/AHN.jl/jobs/51998218 Here it is in v0.3.6: - https://travis-ci.org/Ismael-VC/AHN.jl/jobs/51998217 And here is my test file`: - https://github.com/Ismael-VC/AHN.jl/blob

[julia-users] Re: ERROR: `checked_mul` has no method matching checked_mul(::Int64, ::Base.GMP.BigInt)

2015-02-24 Thread Ismael VC
I will Stefan, thanks! El martes, 24 de febrero de 2015, 10:58:15 (UTC-6), Ismael VC escribió: Hello every one! This only fails in v0.4.0-dev+ this is the log: - https://travis-ci.org/Ismael-VC/AHN.jl/jobs/51998218 Here it is in v0.3.6: - https://travis-ci.org/Ismael-VC

[julia-users] Re: ERROR: `checked_mul` has no method matching checked_mul(::Int64, ::Base.GMP.BigInt)

2015-02-24 Thread Ismael VC
(::LastMain.LastMain.LastMain.Base.GMP.BigInt, ::LastMain.LastMain. LastMain.Base.GMP.BigInt) in + at rational.jl:166 in + at complex.jl:118 El martes, 24 de febrero de 2015, 10:58:15 (UTC-6), Ismael VC escribió: Hello every one! This only fails in v0.4.0-dev+ this is the log: - https://travis

[julia-users] Unable to set up AppVeyor.

2015-02-23 Thread Ismael VC
This is the log: [00:00:00] Build started [00:00:10] git clone -q --branch=master git://github.com/Ismael-VC/AHN.jl.git C:\projects\ahn-jl [00:00:17] git checkout -qf 49367576242db296b6cd360e086b0ca4acc0d492 [00:00:17] Running Install scripts [00:00:17] if ($env:APPVEYOR_PULL_REQUEST_NUMBER

[julia-users] [ERROR: syntax: invalid assignment location] When trying to overload the `Base.==` method.

2015-02-19 Thread Ismael VC
Is this a parsing bug? I wanted to use `Base.==` to make it more explicit, as I've seen it's good style. This happens in both v0.3.5 and v0.4-dev julia type Foo end julia import Base.== julia Base.==(x::Foo, y::Foo) = true ERROR: syntax: invalid assignment location julia Base.(==)(x::Foo,

[julia-users] Re: [ERROR: syntax: invalid assignment location] When trying to overload the `Base.==` method.

2015-02-19 Thread Ismael VC
Thank you Sean. El jueves, 19 de febrero de 2015, 9:36:58 (UTC-6), Ismael VC escribió: Is this a parsing bug? I wanted to use `Base.==` to make it more explicit, as I've seen it's good style. This happens in both v0.3.5 and v0.4-dev julia type Foo end julia import Base.== julia Base

  1   2   3   >