Web Development in Emacs, Common Lisp and Clojurescript - Emacs SG
Channel:Engineers.SG · Length:1:18:41 · Published:2016-11-01 · Views:13706
Summary
Elias Martenson presents his Emacs-based workflow for building a web application (the Potato chat platform) with Common Lisp on the backend and ClojureScript on the frontend. He demonstrates SLIME, Paredit, CIDER and debugger-driven interactive development. The talk is 79 minutes and was given at Emacs SG.
Why HN recommends it
HN commenters point to it as a live demonstration of interactive Lisp development, including compiling single functions in a running program and debugger-driven workflows.
This video also has great examples of other crazy interactive development workflows and is worth watching in its entirety — HN, 2021
Functional programming · Web development · Testing, debugging & developer tools
Subtitles (excerpt)
talking anything Emacs related, we're talking about I mean there's going to be programming involved. Now, my session tends to be much more programming involved than even your typical Emacs talks. So, the question is programming experience, Lisp specific programming experience, everybody has basic understanding? Um so, I will not talk that much about Emacs Lisp. There is some Emacs Lisp at the end uh that I will demonstrate. Uh but primarily it would be Common Lisp and its integration into Emacs and how a normal application development workflow uh can look like. And in this specific case, uh I will be talking about an application that I've worked on for a little while. Um it's essentially it started out as a uh we needed an alternative to Slack because Slack was online, we couldn't use an online service. So, we had to use something uh uh that you can run on our own servers. And um turns out at the time there wasn't anything. So, we decided we figured it can't be that difficult to put put something together. So, we did. Uh and then in a few months we had something fairly decent. Uh it's been running in production for quite a long time at our office. And um so, I developed the server side and the service written in Common
On Hacker News
The workflow for slime/sly and swank/slynk described at the end of the article is standard if you are in the Emacs world. Sometimes I work in an Org file, sometimes in a lisp file directly. In both cases I will C-x C-e (eval-last-sexp) or run blocks, or the whole file (depending on Org vs lisp file). It is copy and paste on steroids (same for slime-eval-defun were you can be working deep inside s… — tgbugs, 2021-08
The Potato open source chat platform has a Common Lisp backend and a Clojurescript frontend. There is a fascinating talk by one of the authors on Youtube [0], and the code is on github [1]. A relatively new Web Application Environment called Radiance may also be worth looking at.[2] [0] [VIDEO] [1] [LINK] [2] [LINK] — grovehaw, 2018-03
The sound in this video is pretty bad, but several years ago I did a talk showing how this development style work on a real project, and I think it may answer some of these questions. [VIDEO] — lokedhs, 2022-10
A few years back I did a presentation on this very topic. Some people have said they appreciated it so I'm sharing a link here in the hope someone find it useful: [VIDEO] — lokedhs, 2022-04
I've used Common Lisp for this purpose. You get instant results without even having to reload. You can simply compile a single function while the code is running. I did a talk about this a few years back: [VIDEO] — lokedhs, 2020-01
Related videos
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47
- The Soul of Erlang and Elixir • Sasa Juric • GOTO 2019 · GOTO Conferences · 42:02
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- Bret Victor - Inventing on Principle · Rui Oliveira · 54:20
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Solving Problems the Clojure Way - Rafal Dittwald · Clojure/north · 1:02:26
- Lecture 1A: Overview and Introduction to Lisp · MIT OpenCourseWare · 1:12:55