News for hackers. Stuff that matters.
Re:C++20 has been approved by chrisseaton on Sunday September 06, 2020 @08:50AM (#24390990)
> make up for the latency hit from not being able to directly stack allocate things

Java does better than direct stack allocation - it does automatic scalar replacement instead.

Re:C++20 has been approved by logicchains on Sunday September 06, 2020 @09:57AM (#24391316)
Can automatic scalar replacement turn my ArrayList<Pair<Long, Double>> into the equivalent of std::array<std::pair<int64_t, double>, N> (or Span<Tuple<long, double>>)?
Re:C++20 has been approved by chrisseaton on Sunday September 06, 2020 @10:06AM (#24391382)
It doesn't turn it into the equivalent of another data structure, and it doesn't allocate it on the stack, that's why it's better. It turns each value in the collection into a dataflow edge which then goes into a register, or the stack, or anywhere.
Re:C++20 has been approved by inamiyar on Tuesday September 08, 2020 @10:09AM (#24408498)
This seems really interesting, do you have any sources I can look into for more information along these lines?
Re:C++20 has been approved by gpderetta on Wednesday September 09, 2020 @08:08AM (#24420108)
so does any decent compiler. But to do that in java you first have to prove it is safe, which is hard.