How can I do web programming with Lisp or Scheme?

后端 未结 14 830
遇见更好的自我
遇见更好的自我 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 19:09

    I've written a pretty extensive tutorial/ebook on the topic: http://lispwebtales.ppenev.com/

    Quick summary:

    • It uses Common Lisp
    • It uses the Restas framework
    • It has examples for pretty much most of basic web development, including DB access, authentication, HTML generation and templating.
    • Since the Restas documentation is pretty much out of date, my tutorial is the closest thing to up to date docs.
    • Shows a few of the more advanced features, like policies, which allow you to write pluggable interfaces, for instance you can write a data store layer, and write back-ends for different storage mechanisms with relative ease, the module system which allows you to write reusable components, like auth frameworks and things like that.
    • It covers things like installing lisp, setting up the ASDF build system and the quicklisp package manager etc.
    • It's free online, and as soon as I finish it it will be free on leanpub as well. The source is on https://github.com/pvlpenev/lispwebtales under a CC license, the source code is MIT. Not all of it is published yet, and I'm in the process of revising.

提交回复
热议问题