3 ms·
Another reason you won't find people using string templates to produce HTML in Lisp is that no one uses it for web development. This phenomenon where multiple l
by idlewords 3y ago
Another reason you won't find people using string templates to produce HTML in Lisp is that no one uses it for web development. This phenomenon where multiple language features conspire to prevent misuse is called defense in depth and is one of the great strengths of the language.
- AnonymousPlanet 3y agoHistorically, web development is among the most noteworthy uses of Lisp in business. Reddit and PG's work come to mind.
- idlewords 3y agoReddit ran away from lisp as fast as it could once the original goal of using the language (to secure funding from YCombinator) had been met.
- hajile 3y agoI don't think that's an accurate representation. They were merged with another company. Reddit guys knew both Lisp and Python. Other company coders only knew Python. Since then, they've had massive issues scaling Python in general and their ORM dependence in particular.
- jhgb 3y agoReddit apparently ran away from Lisp primarily because all the servers ran on FreeBSD while development ran on Macs and because at the time they were forced to use different Common Lisp implementations (OpenMCL on Mac and CMUCL on FreeBSD) so they couldn't even test what they were deploying, essentially. Today with SBCL that wouldn't have been an issue.
- pstuart 3y agoI've been on reddit since the beginning when it was effectively a lisp-weenie site (clued into its existence by pg (discovered via his blub essay)). It migrated to python very early in the game (via Aaron Swartz (rip)), and it's my understanding that it was that move that allowed them to scale it.
- scarmig 3y ago> This phenomenon where multiple language features conspire to prevent ~~misuse~~ use is called defense in depth and is one of the great strengths of the language. I kid, I kid. Lisp is great.
- zerocrates 3y agoReasonably sure this was already the parent's joke
- scarmig 3y agoAh, slow this morning.
- manicennui 3y agoExcept, you know, the site you are using right now, and a large number of sites that use Clojure/Clojurescript.
- idlewords 3y agoI could type a single open parenthesis and blow up this whole site.
- eduction 3y agothis trolling would be funnier if you didn't obviously spend so much time posting here
- actuallyalys 3y agoIronically, the dominant solution for dynamic HTML in Clojure apps, Hiccup, does not rely on macros as much as it relies on keyword and collection literals.
- eduction 3y agoNot only do they use it for web development, but they manage to regularly update and upgrade their Lisp based web apps (as opposed to ignoring customer emails because their pile of PHP/Perl is too hairy to debug).
- jhgb 3y ago> Another reason you won't find people using string templates to produce HTML in Lisp is that no one uses it for web development ...how does this change conditional probability? If of those people who use Lisp for web development, nobody uses strings, it's unrelated to how many people use Lisp for web development.