News for hackers. Stuff that matters.
Re:Why Is C Faster Than Java (2009) by vvanders on Sunday December 26, 2021 @11:44PM (#29699352)
Only thing that comes to mind immediately is VLA/alloca but I'd have to check. Most of the gnarly pointer things are fair game and work just as well as their C counterparts.
Re:Why Is C Faster Than Java (2009) by pjmlp on Monday December 27, 2021 @04:49AM (#29701050)
VLA are thankfully no longer required for ISO C compliance, who had thought it was a good idea in first place?

Google even sponsored the work to clean the Linux kernel from them.

Re:Why Is C Faster Than Java (2009) by bbatha on Monday December 27, 2021 @02:09AM (#29700219)
Rust supports VLAs, Box<[T]> is pretty common in fact. It just doesn’t have a native way to alloc them on the stack.