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.<p>Which one?<p>The problem domain is Lisp-y: convenient for functional programming, and made easier with macros, DSLs and/or metaprogramming.<p>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.<p>Obviously either will do the job, and Anarki is built on top of Racket.<p>Still, what are the pros and cons (pun intended) of each?
As someone who's used Anarki, and contributed to it (for better or worse,) between the two I'd have to recommend just using Racket.<p>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.<p>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.
I'm not sure what part of your project is web-based and what you mean by "web-based". Do you mean executing Lisp/Scheme code on the browser side or the server side? In any case you should consider Gambit Scheme that has a complete JavaScript backend. For example check out the <a href="https://try.gambitscheme.org" rel="nofollow">https://try.gambitscheme.org</a> site to see the online REPL in action.
I've tried both. While I enjoyed the setup with Anarki better (in particular using the repl to make live inspections and changes), Racket is vastly more supported by docs and the community. So if you are a CS pro and don't mind figuring out everything for yourself then Anarki is plausible, otherwise it's kinda crazy to go that way.
Just to be clear: yes, there are other Lisps.<p>Yes, Clojure is cool.<p>Yes, LFE is a thing that exists. Yes Elixir is Lisp-adjacent.<p>Yes, any of those would give me access to a larger ecosystem and the resources of a well used, well supported VM.<p>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.
FWIW the source of both racket-stories.com as well as mini versions are available.<p><pre><code> https://racket-stories.com/about
</code></pre>
If you are looking for a framework, then check out Koyo.