Re:Julia 1.6 Highlights
by StefanKarpinski on Thursday March 25, 2021 @05:47PM
(#26585850)
I love the Julia community
@btime reports the minimum execution time, since all increases are attributable to noise. Use @benchmark to get mean, median and maximum instead.
Thank you! Edited to fix.
Re:Julia 1.6 Highlights
by eigenspace on Thursday March 25, 2021 @04:36PM
(#26585061)
Beautiful
Re:Julia 1.6 Highlights
by BlackFingolfin on Thursday March 25, 2021 @08:19PM
(#26587410)
This is really cool!
But note that OP uses larger cells (`int` = 32 bit in the C version, `Int` = 64 bit in the Julia version) while GalaxyBrain seems to use 8 bit cells. Not that I expect this to make a major difference (but perhaps a minor one?)
The real issue is that the original brainfuck spec (as given by the Wikipedia entry) explicitly sets the sizes of each cell to a single byte —- which means many of the interpreters used for this benchmark are using incorrect cell sizes!
Re:Julia 1.6 Highlights
by fishmaster on Thursday March 25, 2021 @06:55PM
(#26586676)
That is very cool.
Here's code I ran, with results:
Note that, conservatively, GalaxyBrain is about 8 times faster than C++ on "bench.b" and 13 times faster than C on "mandel.b," with each being the fastest language for the respective benchmarks. In addition, it allocates almost no memory relative to the other programs, which measure memory usage in MiB.You could argue that I might see similar speedup for other languages on my machine, assuming I have a spectacularly fast setup, but this person ran their benchmarks on a tenth generation Intel CPU, whereas mine's an eighth generation Intel CPU:
This package is 70 lines of Julia code. You can check it out for yourself here: https://github.com/OTDE/GalaxyBrain.jlI talk about this package in-depth here: https://medium.com/@otde/six-months-with-julia-parse-time-tr...