News for hackers. Stuff that matters.
Re:C/C++ vs. Rust Performance by vvanders on Sunday November 01, 2020 @01:49PM (#24961518)
Most C++ compilers I've worked wouldn't let you use it unless the compilation unit was compiled as C and then linked externally.

In the same way I could totally define alloca in a C symbol and then just extern it into Rust if I wanted to.

[edit]

Realized I was thinking of VLAs but I think the point still stands.

Re:C/C++ vs. Rust Performance by Someone on Sunday November 01, 2020 @02:11PM (#24961700)
Reading https://www.gnu.org/software/gnulib/manual/html_node/alloca...., I think gcc C++ supports alloca on most systems (“There are a few systems where this is not possible: HP-UX systems, and some other platforms when the C++ compiler is used. On these platforms the alloca module provides a malloc based emulation”)

VLAs are different, I think.