Recent submissions

Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
> The runtime allocates and frees heap memory while performing local calculations.

1) If it allocates, why does `top` not show it?

2) Why does it allocate SO MUCH when it uses only a fraction? Looks like a very bad strategy to allocate 2800 times more memory than actually used?

Comment · 6 years ago
Comment · 6 years ago
To be fair, the Rust program isn't yet optimized fully. We tweaked few things here and there, and the speed improved from 26s to 19s. I believe it can still be improved further. I'm sure it can get better (especially if the issues in Rayon crate are addressed). However, at the same time, I think even Haskell version can be improved further. I'll update the blog post, or might create new blog post, once I have some interesting data to share.
Comment · 6 years ago
I didn't know that. I'll try that. Thanks for mentioning it.
Comment · 6 years ago
It was indeed my first Haskell program. So I'd take your comment as compliment. I have been a long time C++ programmer (https://stackoverflow.com/users/415784/nawaz), so I know what kind of tools one should look for in another language when it comes to making the code performant. So that helped me.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton