3 ms·
You can implement the regular sieve of erathostenes using mutable unboxed vectors if you like. If you did not spend enough time in Haskell to realize that you a
by bjoli 7y ago
You can implement the regular sieve of erathostenes using mutable unboxed vectors if you like. If you did not spend enough time in Haskell to realize that you are in no position to judge it.
On the other hand, I would have used CL as well...
- whateveracct 7y ago> If you did not spend enough time in Haskell to realize that you are in no position to judge it. Sadly this will never stop anyone from doing it anyway. I had a VPE (didn't know Haskell) who tried to read some of the team's Haskell and couldn't grok it despite his many years of software experience. His response? Spout that "people are saying the Haskell codebase is hard to understand" without any indication that he was in fact "people."
- Areading314 7y ago"mutable unboxed vectors"? You mean like a C array? How primitive and horrifying!
- whateveracct 7y agoOne fun thing people don't know about Haskell is it lets you get as low-level as C (modulo still having an RTS.) Manually memory management, pointer arithmetic.. it's all there in the standard library!
- bjoli 7y ago... and fast!