News for hackers. Stuff that matters.
Re:Ask HN: What would be your “perfect” programming language? by WithinReason on Monday September 12, 2022 @06:22AM (#32808076)
- good quality standard library

- good developer tooling, e.g. a language server

- This is not yet possible, but a good optimiser which can turn an abstract representation of the code into optimal code for a given hardware (CPU or GPU). Currently we are far from this, there is probably a 10x improvement that current compilers can't achieve. See for example a FizzBuzz implementation achieving ~10x throughput improvement after months of optimisation work:

https://codegolf.stackexchange.com/questions/215216/high-thr...

More complex code is likely much more improvable.

Re:Ask HN: What would be your “perfect” programming language? by hyperswine on Monday September 12, 2022 @09:58PM (#32819903)
An actual functional lang server that doesnt randomly die on you and tries its best to infer your intent would be nice.

I like that last point too, as copilot I think is going in the right direction with "step 1" of full optimisation. Maybe step 2 would be some AI based optimiser scheme to transform IR into optimal cpu/gpu ISA. Though maybe stability would be a problem