HNHacker News
TopNewBestAskShowJobs

niofis

8 karma · joined March 14, 2012

submissionscomments
niofis··on Programming language ray tracing benchmarks project
That's correct, as the nim's generated C code is not idiomatic.
niofis··on Programming language ray tracing benchmarks project
Yeah, I've meant to update it and add more language implementations, but haven't really got the time. Might as well do so soon as almost all compilers/interpreters have new versions which I suspect have many nice optimizations.
niofis··on Programming language ray tracing benchmarks project
Did some testing and found that it boils down to three things: RNG algorithm used in the standard library, forced use of double precision floating point numbers (the case for OCaml and javascript), and like you mentioned, memory management.

EDIT: forgot to mention the obvious things: compiler/interpreter maturity and inherent overhead.

niofis··on Programming language ray tracing benchmarks project
This seems like a nice improvement, could you send a PR for it?
niofis··on Programming language ray tracing benchmarks project
It got me thinking as well, so I ventured and did some experiments on this, and found that the main difference is the algorithm used for the RNG; C's std lib uses a slower one (which also is thread safe, and butchered OpenMP performance). You can take a look at a more apples to apples comparison in the latest update for crb.c which uses a xor128 rng; rust is still a little faster (especially when going multithreaded), but not quite the difference in the README file, still need to get some time to update it.
niofis··on Ask HN: Who wants to be hired? (January 2017)
Location: Sonora, Mexico

Remote: Yes

Willing to relocate: Yes

Technologies: node.js, angular, c/c++, apache cordova, ionic framework, javascript, linux, windows, raspberry pi, SQL Server, Azure

Résumé/CV: https://1drv.ms/b/s!AimyIhrRbuaLiZJ_y6ryrHXWQRIKaA

email: enrique at eccentricdevelopments.com