4 ms·
Is Java GC (“the best”) really that much better than something with immutable heap ie Haskell?
by aetherspawn 5y ago
Is Java GC (“the best”) really that much better than something with immutable heap ie Haskell?
- dandotway 5y agoI love functional languages but is anyone actually using Haskell to develop for Nintendo Switch and PlayStation? Can you use Haskell on the Nintendo Switch to access a robust audio mixer stack? F# can be used with C#/MonoGame which seems to run well everywhere so that's one route to functional programming gamedev. Another route appears to be to use SDL2 with a functional language that supports ANSI C bytecode runtime fallback. E.g. OCaml has a bytecode compiler and an ocamlrun runtime that can be compiled with an ANSI C compiler. But I don't know what the GC latency guarantees are for the bytecode runtime. OCaml's native low latency GC benefits from Jane Street's contributions because Jane Street uses OCaml for high frequency trading. But bytecode OCaml running on Nintendo Switch isn't the same thing as native Linux OCaml.
- aetherspawn 5y agoI don't think that anyone is using Haskell to develop any serious games yet. The toy demos are quite elegant, although the community is probably lacking a good scene editor ie Godot or Unity. Edit: godot-haskell exists, but it's still a little edgy.
- mopierotti 5y agoFor what it's worth I've had a good experience doing gamedev in Scala using LibGDX. (Though not on consoles, and not pure FP)