Ask HN: Anarki or Racket?
For a new web-baed project, one I'm doing for fun but hope to make a success, I've pretty much decided to write it in Racket or Anarki.
Which one?
The problem domain is Lisp-y: convenient for functional programming, and made easier with macros, DSLs and/or metaprogramming.
I haven't used a proper Lisp since my programming paradigms course at Bryn Mawr many moons ago, so I don't have any strong preferences yet.
Obviously either will do the job, and Anarki is built on top of Racket.
Still, what are the pros and cons (pun intended) of each?
16 comments
[ 3.2 ms ] story [ 39.3 ms ] threadYes, Clojure is cool.
Yes, LFE is a thing that exists. Yes Elixir is Lisp-adjacent.
Yes, any of those would give me access to a larger ecosystem and the resources of a well used, well supported VM.
I may be an idiot (it's been said), but I'm not a stupid idiot. I've ruled each of those out for good-ish reasons.
And what would those reasons be?
Clojure is a tougher call. For this project it might be good.
However, I want to include some CLI scripts … and the JVM adds deployment complexity for those.
ClojureScript is tempting, but I don’t see a great story about the server piece for rapid web app development there.
In the long run, CL is a great option. My theory is that it’s a place I could go if/when I’m up and running in another Lisp.
And you're right, I should have considered Gambit. Dang, now I have a ternary decision to make.
https://www-labs.iro.umontreal.ca/~feeley/papers/BelangerFee...
https://www.iro.umontreal.ca/~feeley/papers/HamelFeeleyELS20...
All of the web stuff in Anarki just calls Racket libraries sooner or later, and Racket has better facilities for HTML and other language generation.
Anarki (IMHO) is really only good if you want a HN clone without changing much, or if you want to experiment, because it's still rough around the edges in places, documentation is spotty, and error handling is still a disaster.