News for hackers. Stuff that matters.
Re:Memory Safe Languages in Android 13 by j16sdiz on Friday December 02, 2022 @01:23AM (#33827471)
Rust is over engineered in some area, immature in other.

See how many reference types are there, how async is handled and the underspecified unsafe semantic.

For higher level tasks, I prefer a language with GC like go or java. Rust can work with references counting, but it don’t mix well with the larger ecosystem. For lower level task, the underspecified unsafe model make it worse than C aliasing problem

Re:Memory Safe Languages in Android 13 by unrealhoang on Friday December 02, 2022 @01:35AM (#33827557)
> See how many reference types are there,

2, & and &mut. What else?

Re:Memory Safe Languages in Android 13 by kaba0 on Friday December 02, 2022 @02:12AM (#33827780)
I guess parent meant ARC, RC, and the like.
Re:Memory Safe Languages in Android 13 by ilyt on Friday December 02, 2022 @06:58AM (#33829378)
I vastly prefer "just write you code serially and never worry about async then spawn 10000 goroutines" approach over async/await/Future nexus of bad ideas (just do message passing like Erlang or don't do it at all...), but I wouldn't use Go in place where I'd use Rust and vice versa, they kinda feel different (if overlapping in places) niche
Re:Memory Safe Languages in Android 13 by lanstin on Friday December 02, 2022 @11:34AM (#33832733)
It is very freeing. And one concise readable go routine doing the channel reads and the socket ops becomes your connection pool, but is as easy to understand as a Network programming 101 assignment.