4 ms·
I'm am guessing it would take substantially more LOC to do this in Haskell than in Java. The problem seems to lend itself much better to OO design patterns tha
by Cieplak 14y ago
I'm am guessing it would take substantially more LOC to do this in Haskell than in Java. The problem seems to lend itself much better to OO design patterns than to functional ones.
edit: unless perhaps you make use of haskell's FFI, then maybe haskell could beat it on LOC
- taf2 14y agoi don't think you can run a JVM in less than 1MB of ram?
- Cieplak 14y agoTrue. The problem states, though, that the code can be placed in ROM. I agree that this isn't realistic for a JVM.
- ben0x539 14y agoI really don't see how OO design patterns come into play here. I haven't seen anyone suggest OO-based solutions.