3 ms·
Not as much "moving away from Clojure" as "haven't needed to write any server-side code in a long time". I would still use Clojure for that, unless it was a soc
by technomancy 10y ago
Not as much "moving away from Clojure" as "haven't needed to write any server-side code in a long time". I would still use Clojure for that, unless it was a socket-level cluster thing where BEAM would work better.
Lua is a great fit for this for several reasons. Mainly it's because I want to make it a game where you can learn to program, and teaching beginners Clojure is incredibly difficult. Lua's relentless simplicity really shines here. Teaching tables is a snap, and trying to teach lists, vectors, hashes, and structs in Racket makes my kids' heads swim. Secondly because the of in-game programming, you need sandboxing, and Lua has excellent facilities for this. And Lua's speed and access to the LÖVE game framework make it the best choice for games that I've found.
Lua has its problems, but in the context of games 90% of them can be summed up with "you had a nil where you didn't expect it" which is something Clojure is quite bad at too. I would say in some senses it's been liberating to work on a codebase that doesn't need to interact with the madness of the web, and being able to count my dependencies on one hand (and read through their sources exhaustively) is wonderful.
What were you trying to do on itch.io that didn't work?
- DigitalJack 10y agoI think it was just a corporate firewall issue. That manifests in odd ways that don't always point clearly to the firewall.