by FrozenVoid · 9y ago · 0 comments
Simple short benchmarks don't show a complete picture of the language, since they're easy to optimize
>written in Macintosh Common Lisp needed 20 MB RAM
At the time when computers had 32/64 MB of RAM.
>. You can use many Lisp implementations just like scripting languages. >If a compiler is used (say: SBCL, ECL, LispWorks, GCL, CCL, Allegro CL, mocl, ...) , then Lisp does not require runtime interpretation. >Only if you include an interpreter.
So which one is it?
>Treeshakers remove unused code and data. Parts of the runtime are still there.
Huh, What kind of unused code and data is there in a 25MB hello world? https://web.archive.org/web/20090324024745/http://mbishop.es...
>If all fails, you can always compile Common Lisp to C code
Compiling to C doesn't improve safety of Lisp. As a C programmer, "Compiling to verbose cryptic C" doesn't sell me as a feature, more like a potential security threat.
I didn't say anything about short benchmarks.
> At the time when computers had 32/64 MB of RAM.
Exactly. Phones now run with 4GB RAM. A Raspberry now comes with 0.5GB and more.
> Huh, What kind of unused code and data is there in a 25MB hello world?
debugger, inspector, compiler, interpreter, command line interface, debug info of those, ...
> Compiling to C doesn't improve safety of Lisp. As a C programmer, "Compiling to verbose cryptic C" doesn't sell me as a feature, more like a potential security threat.
You get rid of any runtime interpretation and compilation. All that remains is a static C program.
> "Compiling to verbose cryptic C"
Then compile to readable C.
Bigloo Scheme CHICKEN Scheme Gambit Scheme https://github.com/justinethier/cyclone RScheme SCM Stalin
If you want to produce a standalone Lisp executable, you have to embed the compiler with it, hence the big size.
However, if you just run the programs with your own compiler, you only need the actual code — that is a 44 bytes "Hello world!", shebang included.
On my machine, the SBCL package is 70 MiB, while for example the Python one is 125 MiB.
...although I code much more in Haskell nowadays, I might get hooked on macros again.
By that logic GCC is also an interpreter. https://github.com/abijith-kp/gcc-interpreter
Rather than wasting your time propagating fallacies and outright lies, wouldn't it be better to get informed?
I won't hold my breath.
Also, it can be exciting to find where or why one may be misled about something, and then to try and explain it well.
> At the time when computers had 32/64 MB of RAM.
That's non sequitur. Lets quote the entire context:
> the Dylan IDE written in Macintosh Common Lisp needed 20 MB RAM
How much RAM other IDEs used at the time?