Recent submissions

Comment · 4 years ago
Want to watch two developers live code a small game with Clojure and ClojureScript? What does functional programming look like when wielded in anger? Will the tests be green or red or both?

Seven years ago I made a screencast where I coded a game in Clojure so very quickly. This time I'm joined by a friend to do something hopefully a bit more entertaining, useful and informative. The first two episodes are out. More to come every Friday. :)

Comment · 13 years ago
It didn't feel right naming it `optimus.core` :)
Comment · 14 years ago
That's defined in my slime.el (2010.04.04), which is why I require that first.
Comment · 14 years ago
I see that you're actually creating your own slime-js-minor-mode-map. I'm guessing that was necessary because you didn't require slime-js before requiring setup-slime-js.

Maybe it will resolve your issue of you put this at the top of the file?

     (require 'slime)
     (require 'slime-js)
The swank-js documentation says it depends on js2-mode too. Are you using that? At least I have no issues with entering arrays in the repl.
Comment · 14 years ago
That last link there is all there is of the "game" for now. :-)
Comment · 14 years ago
From what I can understand, it doesn't. Backwards compatability is usually good. However, there was a breaking change in 2011 sometime. The slime-js in marmalade relies on the SLIME in marmalade, which is from 2010.04.04 - and works with that. Same for clojure-swank. So by removing the newest SLIME, it worked for me.
Comment · 14 years ago
Yeah, that would be pretty cool. I'll be making something along those lines to aid me while I'm making that bouncy ball into an actual game. I wouldn't know how to start making it general purpose, but as a wrapper around canvas and requestAnimationFrame it is definitely doable.
Comment · 14 years ago
Ooh, very nice. I'll fix that straight away. Thanks!
Comment · 14 years ago
I wrote a little bit about installing swank-js a couple of posts up. You can also check out all my emacs-settings on github https://github.com/magnars/.emacs.d/blob/master/setup-slime-...

The only thing missing there is the packages installed through package.el, which would be slime-js in this case.

And here's the code for the bouncing ball: https://github.com/magnars/blockout

Comment · 14 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton