How can I do web programming with Lisp or Scheme?

后端 未结 14 833
遇见更好的自我
遇见更好的自我 2021-01-29 18:35

I usually write web apps in PHP, Ruby or Perl. I am starting the study of Scheme and I want to try some web project with this language. But I can\'t find what is the best enviro

14条回答
  •  野的像风
    2021-01-29 18:55

    Clojure is a Lisp dialect which may interest you. At this point there's a pretty decent web development stack. I can recommend a few things:

    • The leiningen dependency manager which makes is really easy to install and manage libraries that you're using. Pretty nice set of plugins for it too. There's even a plugin for Clojurescript, which is a language based on Clojure that compiles to Javascript.
    • The ring HTTP server abstraction. Its used in most actual web frameworks. Its a pretty good idea to learn that first before jumping into an actual framework.
    • hiccup is a HTML dsl/templating language written in Clojure. Its very expressive! Reminds me a bit of Jade, in a sense.
    • composure would have to be the most popular web framework for Clojure. Its essentially a routing library like express.js.

提交回复
热议问题