3 ms·
I would expect that to be par for the course for most languages. The more dynamic the more problematic, but it stands to reason that the less you can check for
by masklinn 8y ago
I would expect that to be par for the course for most languages. The more dynamic the more problematic, but it stands to reason that the less you can check for and enforce statically the more will eventually blow up at runtime.
Resource usage is similar though not exactly aligned e.g. Haskell has significant ability to statically enforce invariants and handle error conditions, but the complex runtime and default laziness can make resource usage difficult to predict.
I'd guess OCaml would also have done well in the comparison as it too combines an extensive type to system which is difficult to bypass with an eager execution model.
- platz 8y agoDefault laziness in Haskell is not as big a problem as is made out to be. For someone like NPM though, Haskell's current GC would probably be too much of a bottleneck. Haskell's GC is tuned for lots of small garbage and does not like a large persistent working-set. But this has nothing to do with laziness.
- Jare 8y ago> Default laziness in Haskell is not as big a problem as is made out to be It will take a fair amount of time to be proficient in Haskell to the point where it is not a (potential) big problem.
- platz 8y agoHonestly just using strict data structures (one StrictData pragma will do) and strict accumulators in recursive functions will get you there, it's not that hard.