News for hackers. Stuff that matters.
Re:How to write slow Rust code by pjmlp on Monday August 02, 2021 @10:21AM (#28036871)
Lisp was used to write full OSes, naturally it is fast.

Python, JS and Lua are not in the same league of AOT and JIT compiler technology available to Lisp, even with all the money spent on stuff like V8, JS JIT cannot compensate for the fact that they lack the ability to provide the required semantics to AOT code with good enough performance to write a Xerox PARC graphical workstation (see Interlisp-D).

It is no wonder that Julia, a Lisp like language with Algol syntax, is the only modern dynamic language on the HPC club.

https://www.hpcwire.com/off-the-wire/julia-joins-petaflop-cl...

Re:How to write slow Rust code by Banana699 on Monday August 02, 2021 @12:39PM (#28039007)
I think Julia being an HPC lang despite dynamicity has nothing to do with being close to lisp in some regards.

I didn't use the language but the overwhelming community consensus I get is that performance is out of the window once you truly embrace dynamic (type-unstable in julia parlance) code. Julia performance depends heavily on the compiler being able to infer a single type for variables in the hot loop so that it can specialize the used functions to it then get out of the way. Julia is not a Fortran-speed python, it's a language that can be _either_ Fortran _or_ python, depending on how you write it.

Lisp influences on julia are more for semantic power than performance.

Re:How to write slow Rust code by pjmlp on Monday August 02, 2021 @02:31PM (#28040748)
Depends on how one sees it,

https://www.researchgate.net/publication/267008293_Fast_floa...

The point being what dynamic homoiconic languages are able to achieve when the community actually embraces the push for performance instead of hand waving and rewriting everything in C.

If the JavaScript community had the same attitude as Python one, surely we would still be doing HTML 4 without pesky SPAs.