3,634 karma · joined Feb 21, 2007 (19y ago) · 1,362 submissions
Coding in Clojure, Fennel, and Lua.
comment 10y ago · link · parent
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?
comment 10y ago · link · parent
It features programming as one of its core mechanics on top of the piloting features. I made a trailer for it here: https://p.hagelb.org/bussard-1.3.webm
My goal for the next beta is to make it so you can purchase an upgrade for your ship's computer in-game that would allow you to connect to it from an external program like Emacs over the nREPL protocol: https://gitlab.com/technomancy/jeejah You start the game without an autopilot routine, but eventually you find/write one, and at that point you can play from Emacs or Vim or the CLI or whatever. Right now the external connection only provides you with a REPL, but the protocol is extensible, and I plan to add features that would allow you to run more of a HUD-style REPL in your client of choice.
comment 10y ago · link · parent
MicroPython is right out; it would almost fit Lua, but as it is it looks like your only option for independent development would be Forth.
comment 10y ago · link · parent
As someone from /r/Thailand put it, "I'm hoping incompetence and indifference would save the day once again, as it has many times in the past." They can't withdraw it now without losing face, but they can let it just wither and become forgotten over a few years.
comment 10y ago · link · parent
This would be awful for general-purpose programming, but on a device with only 2.5kb of RAM to begin with you can usually pre-allocate anything that needs to survive that reset. I use this in my keyboard firmware's outer loop: http://atreus.technomancy.us/firmware2
comment 10y ago · link · parent
Granted I need reference documentation for the engine (love2d in my case), and I occasionally consult the Lua stdlib documentation (which I get from apt-get), but that's about it.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
If you publish secrets, you're causing crates.io to perform copyright violations. It's not just about helping you hide the mistake, but about helping to stop further violations.
You shouldn't need to resort to a formal DMCA request to stop copyright violations.
comment 10y ago · link · parent
comment 10y ago · link · parent
I hope this pattern catches on for services other than git.
comment 10y ago · link · parent
Even though client TLS certs are technically supported by a handful of services, there's nothing for HTTPS that matches the security and convenience of ssh-agent. It has a long way to go to catch up to where SSH was ten or fifteen years ago.
comment 10y ago · link · parent
Not even close.
While TLS technically supports client-side certs, all extant implementations of it are unbearably clunky to use, completely ignored by all vendors. Meanwhile the tooling around SSH keys (like ssh-agent) is seamlessly integrated with your OS and works so well that it's easy to forget it even exists.
Browser vendors completely dropped the ball on this; they dropped it so hard it continues to hurt even after all these years.
comment 10y ago · link · parent
The thing is, from an "open source" perspective, what they're doing is great and totally legit. From a free software perspective, it has a lot of potential to be suspicious and troubling. If all you care about is "the best technology; yay" rather than user freedoms, your concerns are moot.
comment 10y ago · link · parent
Technically there's nothing about Lisp that makes it uniquely suited for this; it's just that people developing tooling for most other languages have a tragic lack of imagination. Smalltalk, Forth, Factor, and to a degree Lua all support the same styles idiomatically, while Racket is a lisp, but it discourages this style.
comment 10y ago · link · parent