HackerTrans
TopNewTrendsCommentsPastAskShowJobs

apta

no profile record

comments

apta
·hace 6 años·discuss
It's typical SJW narrative. People are tired of it, it's like the boy who cried wolf story. Hopefully at some point people will just learn to ignore these "woke" SJWs as they have their tantrums.
apta
·hace 7 años·discuss
It's much more than just null pointer dereferencing. Time and time again, it's been proven that Rust protects even very experienced C++ programmers from bugs they didn't realize they're even making.
apta
·hace 7 años·discuss
Thanks for the links. That being said, new developments in GCs on the JVM (like Shenandoah and ZGC) are yielding very impressive results. Things like < 1ms pause times for heaps in the TB range. No other free GC for any other language approaches this as far as I'm aware, including golang's which people claim is fast, but completely gets destroyed for even heaps in the GB range (I did some benchmarks).
apta
·hace 7 años·discuss
It's API is not `unsafe` though. Otherwise, every safe API depends on some `unsafe` call down the call graph.
apta
·hace 7 años·discuss
> still need to pay attention with GCd languages no to leak references that cannot be GCd. Java has this sort of problems.

Unless you're doing weird things with class loaders, this is a non-issue.

> Erlang on the other hand has a VM that makes GC much faster than in other languages

What makes Erlang's VM make GC faster than other languages?
apta
·hace 7 años·discuss
I think the poster to whom you're responding means things like Cell and/or RefCell, which allow mutation behind the scenes while still being safe.
apta
·hace 7 años·discuss
While RAII is a very good technique, it is not the solution to all issues here. I read that some concurrent datastructure implementations would not be possible without a GC. Furthermore, when a project reaches a certain level of complexity, it ends up implementing GC anyway (see Unreal engine).
apta
·hace 7 años·discuss
> Go has a garbage collector, and it's the fastest garbage collector that currently exists, by a wide margin, I believe.

Fastest by what measure? I benchmarked some key value store implementation written in golang and ran into large (> 1 sec) latency spikes because the golang gc couldn't keep up with the large (10GB+) heap space. Java would have allowed me to select a GC algorithm that's best for my use case and I wouldn't have run into that issue.

golang's gc is tuned for latency at the expense of throughput, that's basically it. It's not some magic bullet that solved the gc issue, contrary to what the golang marketing team wants people to believe.
apta
·hace 7 años·discuss
Managed languages remove an entire class of exploits present in C and C++ programs. That alone is a very good start.