News for hackers. Stuff that matters.
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by musicale on Saturday November 12, 2022 @04:29PM (#33577298)
> I have never really understood people‘s aversion to parentheses

Said every Lisp fan ever.

Programmers however seem to have voted with their feet for C-style syntax in (C/C++/Java/JavaScript/etc.) and its variants (Python).

It's a shame that Dylan didn't continue as it seems to have taken a decent crack at adding algebraic syntax to Common Lisp - arguably realizing McCarthy's original vision of infix M-expressions as a more programmer-friendly syntax. I wonder how hard it would be to add a Dylan-style syntax layer to modern CL?

Be that as it may, one can readily write Lisp/Scheme-style programs in JavaScript. See Crockford's "The Little JavaScripter."[1] The major omission/deficiency being macros for JavaScript syntax.

[1] https://www.crockford.com/little.html

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by housel on Saturday November 12, 2022 @04:42PM (#33577403)
(Open) Dylan is surviving just fine, and we expect to do a new release later this month.
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by dannymi on Saturday November 12, 2022 @05:39PM (#33577885)
As a Guix developer (there's a lot of Scheme and Common Lisp in Guix :) ), every few years I check on Open Dylan but so far each time there was something missing that made me unable to package it for Guix (building it entirely from source).

For example, I've checked it a few minutes ago and Open Dylan's ./configure says to download a bootstrap compiler from https://opendylan.org/download/index.html first -- but there's no such bootstrap compiler there.

Do you have some hints on how to package it?

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by headhasthoughts on Saturday November 12, 2022 @08:34PM (#33579048)
The way you actually have to do it is trawling through git repos to find an old version of Gwydion, bashing at it for a while, and maybe getting it to compile on modern platforms. Look for 2.4, then rewind, then --disable-d2c, and a few more steps.

I wouldn't call Dylan thriving, unless you're a Windows user that really doesn't care about bootstrapping your language.

It's alive though, in the same sense that Miles, the dog that Segall froze and then brought back to life in 1987, was alive. Brain damaged, but alive.

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by cgay on Sunday November 13, 2022 @03:50PM (#33587200)
Gwydion Dylan has been out of the picture for years. Open Dylan is the only maintained implementation. Perhaps you went down a wrong path....
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by headhasthoughts on Monday November 14, 2022 @03:54PM (#33600866)
You can't bootstrap OpenDylan from source without a Dylan compiler. You can bootstrap Gwydion without one with substantial elbow work, which you can then pivot into bootstrapping OpenDylan.

I know what I was doing, and if you look elsewhere in the thread, I was right about what the GUIX maintainer wanted. Not to get egg on your face.

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by housel on Sunday November 13, 2022 @03:05AM (#33581031)
There's no special "bootstrap compiler"; you can download a binary release for your platform from the page you linked, and then use that to bootstrap a newer version from a source checkout. If it would help, we could provide a minimalistic build that was only useful for bootstrapping, but at present our builds are "batteries included" (with LLVM/Clang and the BDW garbage collector already provided in the tarball).
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by dannymi on Sunday November 13, 2022 @06:00PM (#33588276)
Ideally, what Guix would want is similar to what https://github.com/thepowersgang/mrustc/ does for Rust (a compiler, not written in Rust, for Rust).

So for Dylan, we'd like to have a compiler for Open Dylan, not written in Dylan. (it can also require multiple steps to get up to Open Dylan--that would be fine)

It's not in the interest of our users to use binary blob compilers for bootstrapping.

We would also unbundle LLVM, clang and the bdw gc and use the ones from Guix.

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by wott on Saturday November 12, 2022 @05:05PM (#33577606)
I haven't given a look at this language in a few years; is it still so that there are no enums, and that operators must be surrounded by spaces?
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by cgay on Sunday November 13, 2022 @03:44PM (#33587150)
Yes. Making a macro for defining enums isn't that hard (there's one here: https://github.com/cgay/uncommon-dylan/blob/master/enum.dyla...).

I, for one, welcome my whitespace-surrounded operator overlords, but if you really don't want that you're welcome to use function-call syntax for them.

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by bmitc on Saturday November 12, 2022 @05:58PM (#33578032)
My favorite languages are MLs, particularly F#, which usually have some of the cleanest syntaxes available. It’s not just Lisp-family enthusiasts. I think it’s more for anyone that thinks rather that follows or assumes or whatever.

I actually learned about Lisp/Scheme after I had learned about several other languages.

What do people not like about parentheses? It’s normally along the lines of “well, I just don’t like them”, which can be read as “it’s not what I’m used to”. Yet, these same programmers will freely throw parentheses around expressions in an ad-how manner to communicate with the compiler in their given language. In some ways, one can back Lisp/Scheme out of popular languages by stating that instead of letting parentheses be used to frequently but not always clarify precedence and grouping and function application, they are going to be required to enforce these. Such a thing is not such a radical or unreasonable stance.

McCarthy’s original M-expressions are somewhat irrelevant. He wasn’t trying to make a programming language for software development. He was investigating it as a tool for his research.

My primary complaint about popular languages like Python, C++, C#, etc. are their irregularities. There a lot of syntax, semantics, and little quirks in the languages that make it very hard to just know the language and move on solving problems. My favorite thing about Schemes are their regularity. The social popularity of languages can’t be explained by their technical merits. It’s more due to social and historical phenomena than a technical reason.

For what it’s worth, I also like Smalltalks.

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by nerdponx on Saturday November 12, 2022 @09:01PM (#33579197)
The problem is precisely that too much regularity makes the code harder to scan visually. The irregularity of various delimiters and separators helps to distinguish certain language elements from others.

There is power and elegance in syntactic uniformity, but Lisp in particular is hard to read until you train your eye to see through the nest of parentheses, and it's hard to write without something like Paredit assisting you.

Meanwhile I don't think anyone finds Haskell/ML syntax hard to read. The problem is more that, with idiomatic Haskell in particular, too much abstraction, currying, and un-descriptive variable names can obfuscate what a piece of code actually does.

Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by Oreb on Sunday November 13, 2022 @03:26AM (#33581156)
I never used Dylan, but isn’t Julia kind of similar, as a Lisp with multiple dispatch and a main-stream syntax?
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by pjmlp on Sunday November 13, 2022 @12:09PM (#33584977)
In high level yes, however Dylan was designed as systems programming language, so it also enjoys AOT compilation and low level stuff that Julia currently isn't able to.
Re:A Brief Interview with Common Lisp Creator Dr. Scott Fahlman by lispm on Sunday November 13, 2022 @04:23AM (#33581434)
> more programmer-friendly syntax

Lisp doesn't have programmer-unfriendly syntax. It's just tailored to a different use case: built-in ever-present meta-programming. The language was designed to compute with symbolic expressions as data and it was early discovered that Lisp programs itself could be treated as symbolic expressions. Code as Lisp data. People found it easier to do it all in s-expressions, compared to the mixed syntax of the early design: m-expressions for programs and s-expressions for data. This was shown over and over.

In that space it has some local optimum of programmer friendliness. It's just that most programmers don't have that use case. Some get the ideas of list processing as a practical programming interface.

Alternatives were spawned, though: LOGO as a beginner's Lisp, ML as a functional programming language, Dylan as an Scheme+CLOS targeting the same audience as Swift nowadays, ...