3 ms·
I am in complete agreement that lisp makes it possible to write slower programs. I just challenge that it is an inherently slower language. I view it as reduc
by taeric 10y ago
I am in complete agreement that lisp makes it possible to write slower programs. I just challenge that it is an inherently slower language.
I view it as reducing the coefficient of writing a program. This means more will be made. So more slower ones will get made.
However, nothing prevents you from writing a fast program in that language. Other than the slower successes.
- qwertyuiop924 10y agoWith a compiler smart enough to aggressively cull any uneeded dynamism, it might be possible. But it would still be hard.
- kazinator 10y agoA pragmatic view, perhaps, is that as a tool, a given Lisp environment doesn't constraint how fast a solution we can devise to a problem in some manner. That really fast solution might not simply be a Lisp program fed to the Lisp compiler. Suppose you're required to solve a problem with very high performance, and it has to be expressed in some high level language. No high level language achieves it using any straightforward code without dropping to assembly language. Not C, nothing. In that situation, I'd arm myself with Lisp, because the problem basically requires inventing some specialized fast language and mapping it to the machine at hand.
- qwertyuiop924 10y agoSo a custom Assembler using CL as a macro language? That works.
- junke 10y agoSB-ASSEMB, for example. https://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly-code-breadboard/ https://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembl...