192 points · by p_l · 5y ago · 60 comments
> It is fast - our spatial classifier takes only milliseconds to come to a conclusion about a page (there is additional time prior to this step due to the OpenCV processing - but not too much) and identify it and doesn’t require expensive hardware. Most of our instances run on ARM-64, which at least at AWS, is 30% or so cheaper than x86-64. The s-expression structures align to document structures nicely and allow a nice representation that doesn’t lose fidelity to the original layouts and hierarchies.
The article also mentioned they have 3 programmers and 100k lines of code, that sounds impressive.
One of the problems we had with promoting commercial use of Scheme and then Racket was that -- although some companies were using it to great success -- there weren't any job postings for it.
It was the norm for a single programmer to be doing the work that would normally be a team (sometimes multiple teams).
And the knowledge of that success wouldn't be well-known. (Because they liked to focus on the work, or because the larger team of business etc. people they were in was also small, or, in at least one case, the business person thought "we use Lisp" would kill business deals even though the code wasn't customer-visible.)
So there would be no success stories, no job postings mentioning it as something people should learn, etc.
Which, I suppose was good for open communities self-limiting themselves to people who were genuine enthusiasts not motivated by money, and with no need to posture as influencers or do SEO, but... not so great for bringing in large developer base, getting lots of startups using it, etc.
One thing that surprised me when I entered the professional world was just how much this is seen as a downside. At almost every level, companies will choose technologies and techniques that allow them to hire more headcount, even if that results in a worse end product.
Many startups value the appearance of having a large actively-hiring engineering team, and many BigCo middle managers want lots of direct reports. They don't usually care how much work gets done per employee, and sometimes they don't even care about the total amount of work that gets done across the organization. It's all about getting warm bodies into seats, either to impress investors or to gain status within the organization.
> Because we operate a lot in Latin America, I trained non-lisper engineers who speak Spanish on how to program Lisp
So they grew their lisp heads from raw human. That's not an overhead most companies would readily accept.
I felt this so very often. There are economical paradoxes and sociological issues at play. People want to be impressed and a big corp makes it look like hard while 3 lispers does not have the glow and even at lower prices you may fail to sell good work.
A lot of this world work this way, if everybody worked smart and efficiently there would be a lot less jobs.
Be careful with what you conclude from this observation. Is it that A) Lispers are generally 10x Programmers, or that B) Lisps are generally poor languages for team environments?
I think C) Lisp is well suited to certain applications, from what I can see, web development or niche areas where exploratory programming is required. The downside of Lisp is lack of good GUI (CAPI is the best they can offer, but this is not as good as other language implementations for various reasons) and not having the backing of Apple, Microsoft, Google or Facebook, and thus lacking in APIs.
But given its dynamic development (its a real joy), its very well suited to exploratory programming.
Web Development is an undiscovered gem for Lisp. It doesn’t face the issue of GUI / lack of APIs, since you can work directly in HTML / JS / CSS for the front end, and its a serious solution that covers servers, databases and all aspects of the stack very well. Its simply amazing (this is coming from a web developer), but I shouldn’t advertise this too much - its a secret weapon!
I can't be similarly productive in a language that doesn't have a simple syntax (easy to write) and doesn't allow you to do meaningful live programming.
By the time you've got a major headcount, organizational bottlenecks will render the individual velocity of programming tools irrelevant. Lisp will scale poorly because every language does. It's hard to justify unusual technical choices if there's no benefit. It makes perfect sense that a large organization would eventually drop Lisp.
Every startup is in the game of leverage and thus should keep the team as small as possible. Lisp helps you do that. Once you're over a certain size you WILL pay a huge organizational overhead and there's nothing you can do about it. The more logically monolithic your tech/system is the bigger the price. A lot of work just cannot be parallelized. Most of the things startups are working on tend to be that way.
It's really easy to make something that kind-of looks like CL by use of clever smoke and mirrors, and many "Lisp in X" projects do so. See e.g. parenscript's LOOP implementation.
Other notes:
- Implementing CLOS is a massive undertaking, but there are two reasonably good portable implementations of it (Closette and PCL).
- The numeric tower is sufficiently loosely specified that you can typically get away with using any existing bignum library.
- LOOP and FORMAT are annoying to implement just because they are big DSLs. I'm also not aware of any portable implementations of them (though SICL might have one).
- Most of the rest of the effort will be spent on implementing things that interact with the system. Streams/files/pathnames are all annoying
Also, if you're willing, it's possible to just lift a bunch of code from SBCL/CMUCL due to permissive license.
MIT LOOP https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/...
few other versions including symbolics update to MIT which is supposedly closer to ANSI: https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/...
Shouldn't it be possible to implement most of CLOS in CLOS itself and thus reuse already existing CLOS-code?
fwiw this is possible to with clojure using graalvm. Only mentioning this because of the clojure comparison in the earlier paragraph. While I do lament the JVM I haven't found a straightforward way to build statically compiled binaries with sbcl. I would love to be proven wrong though! :D
I had a look at one of my SBCL-made binaries on MacOS, it shows this:
▶ otool -L lisp-enc
lisp-enc:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
EDIT: GraalVM takes several minutes to generate binaries, and the binary may not behave the same as the JVM-based runtime, so I wouldn't recommend using that.[1] http://www.sbcl.org/manual/#Function-sb_002dext-save_002dlis...
There is a work in progress on SBCL to make it possible to create a really static binaries:
https://www.timmons.dev/posts/static-executables-with-sbcl-v...
I tried this fork and it worked for me!
Blaze/Bazel rules for Lisp support building fully static SBCL binaries (except possibly for grabbing dynamic stuff that is forced by glibc). ECL also supports static linking.
I own a license for LispWorks Pro, which does a very good job building applications, but SBCL is also good for delivering apps.
and truly static executables are coming: https://www.timmons.dev/posts/static-executables-with-sbcl-v...
Wow, really? How big is your company?
> Right now, in our core company we have three people, two here in Virginia and one in Mexico City.
Reminds me of quotes from Google SRE materials about scaling "SRE per managed server count".
After they acquired ITA, they have few openings in between, and are yet, apparently, one of the biggest consumers of quotas.