Re:Jane Street and the OCaml Compiler (2018) [video]
by giu on Thursday March 26, 2020 @05:08AM
(#22691721)
Could you maybe elaborate more on how to achieve this with Java, i.e., run an entire week and never get GCed? I would imagine that using immutable types is one of the tricks used in such a scenario.
[ Parent
| on HN ]
Re:Jane Street and the OCaml Compiler (2018) [video]
by Pepe1vo on Thursday March 26, 2020 @05:31AM
(#22691861)
You would (among other techniques) use something like Stormpot to maintain Object pools to release and acquire instances from.
Object pools typically can't match the GC on latency and throughput, however they do provide a lot more predictable and stable performance.
Re:Jane Street and the OCaml Compiler (2018) [video]
by mlrtime on Thursday March 26, 2020 @07:54AM
(#22692587)
You basically write Java as C++, you don't use any builtins, write everything yourself from pure java.
Re:Jane Street and the OCaml Compiler (2018) [video]
by spugody on Thursday March 26, 2020 @09:12AM
(#22693198)
I know you said "almost" but you don't have to re-write huge amounts to achieve zero gc and very low latency. There are open source tools, eg. agrona, aeron, that get you a lot of the way there.
Re:Jane Street and the OCaml Compiler (2018) [video]
by dirtydroog on Thursday March 26, 2020 @09:05AM
(#22693132)
And I'd imagine sun.misc.Unsafe is used quite often too.