TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Anarki or Racket?

5 pointsby hawkeyedanover 2 years ago
For a new web-baed project, one I&#x27;m doing for fun but hope to make a success, I&#x27;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&#x2F;or metaprogramming.<p>I haven&#x27;t used a proper Lisp since my programming paradigms course at Bryn Mawr many moons ago, so I don&#x27;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?

5 comments

krappover 2 years ago
As someone who&#x27;s used Anarki, and contributed to it (for better or worse,) between the two I&#x27;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&#x27;s still rough around the edges in places, documentation is spotty, and error handling is still a disaster.
评论 #33366418 未加载
feeleyover 2 years ago
I&#x27;m not sure what part of your project is web-based and what you mean by &quot;web-based&quot;. Do you mean executing Lisp&#x2F;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:&#x2F;&#x2F;try.gambitscheme.org" rel="nofollow">https:&#x2F;&#x2F;try.gambitscheme.org</a> site to see the online REPL in action.
评论 #33362370 未加载
idohover 2 years ago
I&#x27;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&#x27;t mind figuring out everything for yourself then Anarki is plausible, otherwise it&#x27;s kinda crazy to go that way.
hawkeyedanover 2 years ago
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&#x27;s been said), but I&#x27;m not a stupid idiot. I&#x27;ve ruled each of those out for good-ish reasons.
评论 #33369013 未加载
评论 #33384837 未加载
soegaardover 2 years ago
FWIW the source of both racket-stories.com as well as mini versions are available.<p><pre><code> https:&#x2F;&#x2F;racket-stories.com&#x2F;about </code></pre> If you are looking for a framework, then check out Koyo.