That's a good showing for Julia for the larger matrices? However, for smaller matrices it's a large constant time. Is it including startup/compilation time? Did they not "run it twice"?
On Monday, August 29, 2016 at 8:57:32 AM UTC-7, Páll Haraldsson wrote:
"But there are very many differences between Ruby and Julia which I have no idea how to fix as of now. For example:
dec
, bin
and hex
format but in Ruby the decimal system is much powerful.(#to_s(num)
and #to_i(num)
are supported)[1,2,3].slice!(4)
will return null but in julia there is no nil therefore this raises causes error.typemax()
and typemin()
returns Inf but in Ruby Float::MAX
, Float::MIN
have specific value"A. I like you Julia doesn't have "null" (not strictly true, at least for C API..) to not have Hoare's self-admitted billion dollar mistake. Not sure thought, how best to help that project..
B. About Classes and
https://en.wikipedia.org/wiki/Composition_over_inheritance
that is I guess best, but maybe not to helpful for that project.. Should that be enough, to compile to that, or any other ideas?
C. I'm sure Julia has as good decimal support as possible already, with two different packages. I'm not sure what's in Ruby (so can't comment on that code), I guess the maker of the project is not aware, only of what is in Base.
[may not work to transpile Ruby on Rails to Julia - yet, there is an old package RoR that allows it to work with Julia though.]
Interesting benchmarks here ("virtual_module" is transpiled, but "Julia 0.4.6 not, only to compare, and [can be] a little slower than Python..):
The creator of virtual_module and ruby2julia transpiler here, just dropped in to see what's going on now. Thank you for your interest.
> Is it including startup/compilation time? Did they not "run it twice"?
Yes, it includes startup/compilation time.(I'm not sure if I understand "runt it twice" meaning properly though)