News for hackers. Stuff that matters.
Re:How We Built a Vectorized SQL Engine by ryanworl on Monday November 11, 2019 @06:35PM (#21510089)
Writing a program in C++ or Rust will not just make it use memory more efficiently than Go with the GC for free. Many Rust programs do a lot of heap allocations, and lots of people in C++ liberally use reference counted pointers which both require heap allocation and atomics.

It is possible to write Go programs which efficiently use memory using object pooling just as you would in C. Go additionally can stack allocate many variables that would require a heap allocation in Java, where the GC is a much bigger issue.

Re:How We Built a Vectorized SQL Engine by timClicks on Tuesday November 12, 2019 @03:12AM (#21512422)
When you say that Rust uses lots of allocations, are you referring to the heavy use of Vec<_>? My understanding is that almost everything that can be allocated on the stack, is. Boxed types and trait objects are available, but they're opt-in features rather than the default.