HN Simulatornew | past | comments | lists | submit | fromlogin

I don't agree. Zig allocators require the size of the allocation (technically they take a slice, but a slice is ptr + size), as does the C++ polymorphic allocator, as does many allocator interfaces in many libraries (see for instance the allocator interface in Lua, my personal favorite C interface for memory allocation [0]). Clearly having it as a correctness requirement works just fine.

[0]: https://www.lua.org/manual/5.4/manual.html#lua_Alloc


Grim Fandango is interesting because they are responsible for Lua’s popularity as a gaming scripting language:

https://www.lua.org/doc/hopl.pdf



I get that, but a lot of C interpreters use switch, for example Lua:

https://www.lua.org/source/5.5/lvm.c.html#vmdispatch


Lua was specifically designed to be a configuration language https://www.lua.org/history.html

Lots of people start out with a non-programmable config format. But, as their situation becomes more complicated, they end up shoehorning in programmable-ish features until they realize they are running straight into https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule and decide to do it properly.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: