Re:Mezzano – An operating system written in Common Lisp
by astrange on Wednesday June 19, 2019 @04:20AM
(#20221660)
Naughty Dog games (up to Uncharted) used to be written in a Lisp without garbage collection. The same guy then wrote the ITA flight search system. I think he may be the only productive Lisp programmer in the world.
[ Parent
| on HN ]
Re:Mezzano – An operating system written in Common Lisp
by pjmlp on Wednesday June 19, 2019 @02:29PM
(#20225863)
There is a Portuguese company that does most of their products in Common Lisp, they have been in business for a couple of decades now.
https://franz.com/success/customer_apps/scheduling/siscog.lh...
Re:Mezzano – An operating system written in Common Lisp
by lispm on Wednesday June 19, 2019 @06:12AM
(#20222111)
> be written in a Lisp without garbage collection.
Gensym G2 is also written in a Lisp without GC. The Roomba software was written wit static memory allocation in a Lisp... it probably still is.
> I think he may be the only productive Lisp programmer in the world.
There are a bit more...
Re:Mezzano – An operating system written in Common Lisp
by stcredzero on Wednesday June 19, 2019 @12:21PM
(#20224671)
Back in the 2000's, someone wrote a game debugging tool in Squeak Smalltalk which ran concurrently with the game (written in C++) it was debugging. It "cheated" on its garbage collection by shutting GC off. At the end of each game loop tick, it was modified so it just disposed of all objects which weren't manually marked "to keep."
Re:Mezzano – An operating system written in Common Lisp
by astrange on Wednesday June 19, 2019 @11:28PM
(#20229596)
That sounds like the best way to do GC in a game. Another way is to use explicit memory pools, remember to allocate from the right pool, and throw it all out at once.
General GC is really overrated I think. Automatic retain counting is nicer because it's deterministic and you never have to scan memory. Compaction can be nice but you can live without it.