News for hackers. Stuff that matters.
Re:Common Lisp Implementations in 2023 by u89012 on Thursday February 23, 2023 @07:04AM (#34909393)
I just spent months working on a large piece of software and could say without a doubt, Lisp is awesome! But I also want to say that most implementations are hashing out a spec written decades ago and not trying to improve what's obviously lacking -- a full modern standard library! Trying to piece together functionality from here and there (and Quicklisp which is an unversioned mess) will only take you so far and in the end you will realize the amount of time wasted chasing this great language! AFAIK Lisp needs more backing from the heavyweights to make any reasonable progress which I'm sure won't happen.
Re:Common Lisp Implementations in 2023 by galdor on Thursday February 23, 2023 @07:33AM (#34909610)
But no one is stopping you from building a "full modern standard library". I am doing just that with https://github.com/galdor/tungsten. Of course it would be nice to have a large company do all the work as it is the case for Go, but it is not going to happen. As always, you either do the work yourself or pay someone to do it.

The specification is limited, no doubt about that, but I am convinced that any modernization effort would end up in a huge mess with everyone trying to inject their own preferences from the languages they already know with no regard for the spirit of the original specification.

Re:Common Lisp Implementations in 2023 by can3p on Thursday February 23, 2023 @07:14AM (#34909450)
I think every programmer that tries common lisp eventually comes to the same conclusion, however none of the new versions of "standard" libraries got any traction to my knowledge. Usually it's used only by the author who created it which makes their code unique in some sense, like a recent post from Ron Garret [0].

The spec is really valued by cl community and I guess I'll tell an unpopular opinion now, but I think there could be a place for an ecosystem built around one of the compilers like sbcl with all the old cruft removed and a really good all purpose standard library (similar in capabilities to the one of go for example). What that will achieve is that it will allow new developers to write the code without reading on why the things were designed is a certain way 40 years ago because of now forgotten os or hardware limitation.

Similar to what was done with neovim project

[0]: http://blog.rongarret.info/2023/01/lisping-at-jpl-revisited....

Re:Common Lisp Implementations in 2023 by lispegistus on Thursday February 23, 2023 @09:00AM (#34910660)
What part of Common Lisp would you consider old cruft and what value would removing it bring to the language that would offset the value we have from having one of the most stable language definitions still in use? I can think of a few dusty parts of the language that are rarely used today but it's perfectly safe to ignore.

Lisp has a good all purpose library ecosystem, it's just informal rather than baked into the language, and I haven't had any significant issues with quicklisp since it came out however many years ago. Writing portable common lisp is not at all difficult and there is no problem like with say Scheme of one library needing a specific compiler. And libraries tend to have a long shelf-life too. How much of Python's standard library is old cruft with better alternative packages available now for example? Didn't they have to prune a bunch of stuff in the python2->3 transition? There is considerable risk in including standard libraries in a standard, and the risk is that those libraries will end up being outdated eventually. You want to add more potential for more old cruft to be in Lisp and then pruned again? Why? Just use quicklisp or one of it's alternatives that are cropping up.

Lisp is not Go, it's an agreement between many different parties about what lisp is, it's not a codebase under the defacto control of one organization, or even an informal group or "community". This is extremely valuable and recent events around Go show why, I am extremely glad that I never payed much attention to Go because honestly I cannot trust it's governance model, but a specification that hasn't been and won't be updated in decades I can trust completely, and if one implementation betrays that trust, I can always move to one of the many alternatives listed in the OP.

sidenote:

> I think every programmer that tries common lisp eventually comes to the same conclusion

if this refers to "Lisp needs more backing from the heavyweights", then OH GODS PLEASE NOOO! I want to write code that will run in a year without modification and won't have some corporation put spyware in my compiler while trying to convince me it's for my own good and have my IDE slurp my code to train some LLM to make it easier to pile even more pointless unmaintainable code upon the world. The "heavyweights" have shown themselves very poor stewards of the discipline of computing indeed.

Re:Common Lisp Implementations in 2023 by SiVal on Thursday February 23, 2023 @04:10PM (#34916510)
recent events around Go show why, I am extremely glad that I never payed much attention to Go...

What are you referring to? This is a literal question, not advocacy. I haven't been paying enough attention to know what you mean.

Re:Common Lisp Implementations in 2023 by blep_ on Thursday February 23, 2023 @06:27PM (#34918304)
Someone proposed adding telemetry to the compiler. People reacted to this as they usually do to telemetry. Google reacted to this as they usually do to criticism.
Re:Common Lisp Implementations in 2023 by vram22 on Friday February 24, 2023 @04:04PM (#34930117)
>Google reacted to this as they usually do to criticism.

Which is how? Not been folllowing them lately, for obvious reasons, so interested to know how they react these days.

Constructive non-egoistic non-spin engagement with the critics / stony silence with compressed lips / furious rebuttal / muttered denial and then look verbally down at the plebs while giving each other group-affirming backslaps in their posh pubs? With guilty looks in the mirror after the party and then downing some Valium to salve their conscience and get some sleep?

Re:Common Lisp Implementations in 2023 by lenkite on Saturday February 25, 2023 @07:40AM (#34936213)
Re:Common Lisp Implementations in 2023 by mark_l_watson on Thursday February 23, 2023 @07:12AM (#34909440)
Good comments. Quicklisp has certainly helped.

A few years ago, after Common Lisp being my favorite language since around 1982, I thought that I might switch for my personal projects to Racket Scheme since it does have good library support. What holds me back is that I have found plentiful work opportunities over the last several decades with Common Lisp, but except for getting paid by Springer-Verlag to write a Scheme book, I have never been paid to use Scheme.

Also, to be really honest, so much of my work in the last ten years has involved deep learning, that I have somewhat reluctantly learned to love Python for writing short programs.

Re:Common Lisp Implementations in 2023 by vindarel on Thursday February 23, 2023 @08:58AM (#34910635)
I quite agree, so I'm making a meta-library to have useful libraries available out of the box: https://github.com/ciel-lang/CIEL/ It's CL, batteries included. You can use it as a library, as a core CL image (loads up faster), and as a binary to have a REPL, and to run scripts:

    ciel --script myscript.lisp
where you have access to HTTP clients, JSON parsers, CSV readers, DB drivers… and much more, out of the box.

It is not done, I am dogfooding it.

Re:Common Lisp Implementations in 2023 by cellularmitosis on Thursday February 23, 2023 @09:51AM (#34911288)
I’ve noticed many lisps and schemes are not set up to simply accept a single file name as the sole command line argument, which is something common to nearly every other platform. Seems like an easy target for reducing friction for newcomers.
Re:Common Lisp Implementations in 2023 by vindarel on Thursday February 23, 2023 @10:14AM (#34911591)
Thanks for the feedback. I'll look into it, it's early enough to change.

(edit) forgot to mention we can simply call ./myscript with the right shebang line. Gets as succinct as one can.

Re:Common Lisp Implementations in 2023 by ducktective on Thursday February 23, 2023 @10:29AM (#34911800)
Excellent. It's kinda like Janet, right (in terms of being a battery-included LISP)?
Re:Common Lisp Implementations in 2023 by vindarel on Thursday February 23, 2023 @10:31AM (#34911836)
Yes, and kinda like Babashka for Clojure, in terms of fast starting scripting environment with one binary and useful built-in utilities.
Re:Common Lisp Implementations in 2023 by ducktective on Thursday February 23, 2023 @10:50AM (#34912070)
You are very active in CL community, vindarel. Thanks!
Re:Common Lisp Implementations in 2023 by oblio on Thursday February 23, 2023 @09:24AM (#34910921)
> and Quicklisp which is an unversioned mess

Quicklisp is the Common Lisp package manager from what I remember. It doesn't version its packages?

Re:Common Lisp Implementations in 2023 by tmtvl on Thursday February 23, 2023 @09:39AM (#34911123)
Not really, but there are ways around it: http://blog.quicklisp.org/2011/08/going-back-in-dist-time.ht...
Re:Common Lisp Implementations in 2023 by oblio on Thursday February 23, 2023 @11:04AM (#34912278)
I'm confused, is this about Quicklisp itself or about the packages it manages?

I.e. quicklisp 1.1 versus quicklisp 1.0 or libfoo 1.1 vs libfoo 1.0?

Re:Common Lisp Implementations in 2023 by tmtvl on Thursday February 23, 2023 @01:09PM (#34914186)
It's about the packages, a Quicklisp dist has a list of packages of specific versions (like libfoo 1.1, libbar 1.0, and libbaz 1.2) and you can switch to an older dist (which can have libfoo 1.0, no libbar, and libbaz 1.2).
Re:Common Lisp Implementations in 2023 by oblio on Thursday February 23, 2023 @04:37PM (#34916862)
Oh, so it's actually a carefully curated limited list? Because otherwise the combinatorial explosion would make this unmanageable super fast.