r/ProgrammingLanguages • u/arthurno1 • Aug 06 '26
Blog post Why Lisp is Different
http://lispm.de/why-lisp-is-different
31
Upvotes
r/ProgrammingLanguages • u/arthurno1 • Aug 06 '26
View all comments
Show parent comment
1
u/arthurno1 Aug 09 '26
Of course, if we custom build things, we can tailor the application to problem. There is no doubt about. That plays in several layers, from custom build DSLs, to custom build data structurues, algorithms etc. If we can exploit the knowledge about to the problem domain, we can usually write a more efficient program than if we used generalized "off-the-shelf" blocks so to say. However, writing a GC specific for each application would be a bit too much work perhaps, and would somewhat even defeat the purpose of a GC. It is not much different than in C/C++ with manual memory management. Programs, like games that want extra performance usually don't use Doug Lea's malloc but go for a custom malloc or something completely different. C++ gives us placement new to help with this, Java comes with several GCs out of the box. Unfortunately, today, too little resources seem to be invested in Lisps, so we usually have to do with the built-in GC. But it is not some fundamental limitation to Lisp(s) or automated memory management via GC, rather resource problem.
By the way, I think the generational GCs do the similar as Haskell's but I am really not familiar with this topic, so don't take me for the word.