3,634 karma · joined Feb 21, 2007 (19y ago) · 1,362 submissions
Coding in Clojure, Fennel, and Lua.
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
That feeling is what can make programming particularly exhilirating and rewarding, and I'm hoping to capture it in the medium of a space game whereas your project seems to be more about exploring programming for the sake of programming and seeing where it takes you.
FWIW my future plans do include embedding other languages in the game. Right now it's just Lua (and Unix, to a degree), but I'm hoping to make it so that you can discover other civilizations built on wildly different technology--at least Scheme and Forth; possibly a DOS-like system thrown in there for giggles depending on how much work it turns out to be. At first you interact with these OSes as they are installed in space stations you encounter, but eventually you learn how to load them into your own ship (virtualization) so you can take advantage of certain in-game technologies built around them.
comment 11y ago · link · parent
The setting is interstellar rather than urban, and it's still in the early stages of development, but the idea of everything around you being made out of code is central in both. The idea is that your ship behaves less like an arcade game and more like a mashup between Emacs and orbital mechanics--the config file for your ship binds keystrokes to various systems on your ship, and you're never more than a keystroke away from a REPL. But the functions that control your ship are available as an API you can call from your own functions as well.
I'm hoping that at some point it can become polished enough that it could be the means by which beginners could learn to code. There's something about having a "real-world" purpose behind your coding that can really catch the imagination of kids especially.
A good example of this is how earlier today we were testing the game and flying around, and we noticed that an asteroid had fallen into a very close orbit around a particular star. Normally matching velocity with an asteroid in order to mine it is rather tricky when the velocity is steady, but when it's careening in low orbit around a star it's virtually impossible. But by writing a 6-line function that checked the distance between the ship and the asteroid and only activated the laser when it was in range, eventually the wild gyrating around and firing made contact, and the asteroid was destroyed.
I don't think I've seen my kids as excited about a single function worth of code as when that asteroid blew up.
comment 11y ago · link · parent
I don't think the parent meant to imply it's a bad idea; only that Diaspora kind of sucked all the oxygen out of the "social networks done right" room, and now if you want to float an alternative you have to contend with a lot more skepticism than you would have before.
comment 11y ago · link · parent
In terms of "general purpose", I think of Clojure as being a better choice for long-running server processes and OCaml as being a better fit for code you run on your own machine or programs that don't stay running forever, due to the varying memory/performance/concurrency characteristics of their respective runtimes.
I wrote in more detail about my experiences coming from Clojure to OCaml here: http://technomancy.us/170 I found it very easy to pick up with some FP background. Not having to think about nil in particular was a huge breath of air after Clojure. I also had good luck accepting contributions from others with a Clojure background who wanted to make some changes to my code and learned OCaml just for that.
comment 11y ago · link · parent
FWIW I had the same objection to a fancy stationary keyboard as you, so I ended up designing and building my own tiny travel keyboard: https://github.com/technomancy/atreus
comment 11y ago · link · parent
One advantage that may help is not needing a license; if you have siblings that have to share a Minecraft account they can play Minetest on as many machines as they have without bugging their parents to pay for a new account. Plus it can run on much older machines.
But yeah, it can be a tough sell just because people don't want to bother.
comment 11y ago · link · parent
I would love that since Racket is obviously a much better language than Lua for learning, but Love is still a bit more approachable for graphics than Racket's universe library.
comment 11y ago · link · parent
It's a bit less polished, but far, far better when it comes to hacking. I found it significantly easier to create a mod for Minetest than to use a mod in Minecraft. Once my kids grasped the idea that they could add whatever items and behavior they could dream up, they really took a shine to it. The Lua coding used is very approachable.
comment 11y ago · link · parent
In fact, it's a bit cringeworthy that this whole list is presented as a thing you're supposed to manually enter while using the about:config search.
comment 11y ago · link · parent
Edit: never mind; I read further and it does do some sandboxing based on the same whitelisting principles as directory-local variable settings. Very clever.