News for hackers. Stuff that matters.
Re:Racket2 Possibilities by dreamcompiler on Monday July 22, 2019 @09:27PM (#20503742)
The best way to kill a good Lisp is to remove the parentheses.

The people who complain about parens are still going to ignore your language even after you remove the parens, and then the Lispers will ignore you too. See Dylan.

This debate is exasperating. It's like hearing people say "I'm not interested in that Ferrari because it has a manual transmission." The only response to which is a silent, cold stare.

Re:Racket2 Possibilities by slaymaker1907 on Tuesday July 23, 2019 @05:42AM (#20505518)
I was at Racketcon when Matthew first brought this up publicly. While it is a good way to kill a LISP, it is important to keep in mind that Racket is really an amazing workbench for creating new languages which interact with each other and being a LISP is mostly for the sake of making this easier.

In addition to that goal, Racket was originally created as a teaching language and continues to be used as such. Some people in the community see the odd syntax of LISP as a barrier to entry and would like to see if it would be possible to use a more Algol-like syntax for ease of learning while also preserving the properties which make it easy to extend and define new languages in.

Currently, there is already a distinction between parsing into s-exp and module-begin (i.e. all the interesting parts of your language) and this tech is already used to support languages which are based on s-exp and those which do fancier parsing such as the Datalog language.

Personally, I would rather keep Racket with s-exp and focus on cleaning up the weird stuff that is a holdover from scheme such as not having a consistent interface for comparators like there is for equal?, adding in growable arrays as part of the standard library, and not insisting upon an enormous block of end parents all on the same line (this is largely a product of the API for extending DrRacket being somewhat obtuse for indentation).

Re:Racket2 Possibilities by neilv on Tuesday July 23, 2019 @11:33AM (#20507549)
Regarding Racket being a teaching language, I'd like to make what I think is an important distinction...

I don't consider Racket a teaching language. It was created (when it was called PLT Scheme) as a very practical and powerful implementation of Scheme, for at least 3 purposes:

* implement multiple teaching languages (for incrementally introducing language complexity as a beginner learns);

* implement an in-some-ways powerful IDE that would run on all desktop/laptop computers students might have access to;

* be a programming languages research platform.

I have an interest in education, but am not interested in using educational languages myself. I've always used Racket as a practical language, for industry production, university research, and personal techie learning/experimenting.

Re:Racket2 Possibilities by rrdharan on Monday July 22, 2019 @11:39PM (#20504233)
This is a weird analogy given that Ferrari no longer offers manual transmissions:

https://www.bloomberg.com/news/articles/2016-06-17/why-can-t...

Or perhaps it’s entirely apt.

Re:Racket2 Possibilities by dreamcompiler on Tuesday July 23, 2019 @12:55AM (#20504496)
I know. Likewise the German cars (at least in the US). And we are poorer for it.
Re:Racket2 Possibilities by pjmlp on Tuesday July 23, 2019 @03:57AM (#20505175)
Dylan was a victim of political wars with the competing C++ group at Apple.

The team even implemented Newton OS ahead of the C++ team just to prove a point, even knowing that they would be out anyway.

Search for entries from wrs and mikelevins. https://news.ycombinator.com/item?id=15106802

Re:Racket2 Possibilities by albanread on Tuesday July 23, 2019 @08:47AM (#20506276)
I also thought about Dylan when I heard of this racket direction; and took another look at it; Open Dylan has tremendous documentation (a very enjoyable read.) The compiler has been updated relatively recently to use LLVM; the command line programs run fine on Linux; I ran it on WSL2 and it seemed to work well there; it is a very nice and interesting language.

I suspect luck, timing and fashion have a lot to do with language adoption; perhaps more than technical merit.

Re:Racket2 Possibilities by pjmlp on Wednesday July 24, 2019 @10:38AM (#20515720)
Thanks for the heads up, I thought that the effort to re-birth Dylan had died.
Re:Racket2 Possibilities by jplayer01 on Tuesday July 23, 2019 @03:24AM (#20505069)
I don't understand the deal with parens. Or significant whitespace. Or other similar "issues". Surely people have bigger issues when writing applications than where you put your god damned brackets or if they're curved or braces or whatever else.
Re:Racket2 Possibilities by jhbadger on Tuesday July 23, 2019 @07:24AM (#20505873)
Particularly when the "solution" to parens always seems to be significant whitespace, which is disliked by many as much as parens are by others. Both are just conventions that people get used to. I didn't care for significant whitespace when I first learned Python, but eventually I stopped seeing the problem, just as I stopped seeing the issue with parens in Lisps.
Re:Racket2 Possibilities by breck on Tuesday July 23, 2019 @10:30AM (#20506998)
For me the obsession is with simplicity and theory, perhaps as much as the pragmatic effects.

Things become a little bit simpler (fewer pieces), with indentation syntax. I find that really beautiful.

As far as I can tell it can’t get any simpler than that.

https://github.com/breck7/jtree/blob/master/papers/paper3/co...

Re:Racket2 Possibilities by jplayer01 on Tuesday July 23, 2019 @10:50AM (#20507154)
Sorry, I meant I don't get why people complain about them so much.
Re:Racket2 Possibilities by mark_l_watson on Monday July 22, 2019 @11:12PM (#20504131)
It is a great shame that I can only give you one upvote, you have it exactly correct. Removing parents ruins Lisp languages.

That said, I consider Haskell to be a Lisp language. But, Haskell was designed from the ground up, from ML, to be as it is.

Re:Racket2 Possibilities by lispm on Tuesday July 23, 2019 @02:24AM (#20504837)
> That said, I consider Haskell to be a Lisp language.

Then Lisp (aka 'List processor') has lost its meaning.

Haskell is at its core a lazy evaluated, statically typed, purely functional programming language.

Lisp is none of that. The core of Lisp: an eager evaluated, dynamically typed, programming language supporting imperative, procedural and non-pure functional programming.

> But, Haskell was designed from the ground up, from ML, to be as it is.

Haskell was designed to have a common lazy language, instead of a dozen languages under development or in use (Miranda, Lazy ML, Clean, ...).

Re:Racket2 Possibilities by nudpiedo on Monday July 22, 2019 @11:58PM (#20504301)
Why is Haskell a lisp? It is the first time I hear someone classifying Haskell in the “List Processing” family of languages, and although it does process lists I thought its main paradigma symbol and code representation goes in a complete different direction, more into pure function oriented programming.
Re:Racket2 Possibilities by dreamcompiler on Tuesday July 23, 2019 @12:52AM (#20504476)
When people say something "is a Lisp" that usually has little to do with list processing. It's about whether it inherits more from lambda calculus than from Turing machines.
Re:Racket2 Possibilities by lispm on Tuesday July 23, 2019 @02:02AM (#20504760)
Lisp literally stands for 'List Processor'. To claim that it has little to do with it, is really really strange. One of the main reasons to create Lisp was being able to compute with 'symbolic expressions', represented as linked cons cells in the form of lists...

McCarthy about Lisp:

===

As a programming language, LISP is characterized by the following ideas:

computing with symbolic expressions rather than numbers, representation of symbolic expressions and other information by list structure in the memory of a computer, representation of information in external media mostly by multi-level lists and sometimes by S-expressions, a small set of selector and constructor operations expressed as functions, composition of functions as a tool for forming more complex functions, the use of conditional expressions for getting branching into function definitions, the recursive use of conditional expressions as a sufficient tool for building computable functions, the use of lambda-expressions for naming functions, the representation of LISP programs as LISP data, the conditional expression interpretation of Boolean connectives, the LISP function eval that serves both as a formal definition of the language and as an interpreter, and garbage collection as a means of handling the erasure problem. LISP statements are also used as a command language when LISP is used in a time-sharing environment.

===

http://jmc.stanford.edu/articles/lisp/lisp.pdf

'lambda calculus' wasn't even explicitly mentioned. But he mentions s-expressions, list structure, multi-level lists, ...

Re:Racket2 Possibilities by dreamcompiler on Tuesday July 23, 2019 @10:03AM (#20506790)
The Lisp community has moved on from McCarthy's taxonomy. In McCarthy's day, there were two high-level computer languages (Lisp and Fortran) and now there are thousands. Today we have different notions of what constitutes a "Lisp-like" language and what doesn't. By McCarthy's strict definition, Clojure is not a Lisp because it doesn't use real cons cells. But I think most people nowadays would agree that Clojure belongs in the Lisp family more than in the Algol family.

Haskell has (very!) first-class functions and is even more naturally compositional than most "classical" Lisps. It feels to me like a Lisp with static typing, laziness, and automatic currying cleverly incorporated.

Likewise Javascript. Javascript feels like a Lisp to me because it has lexical closures. It gets in my way because its syntax and many other design choices are terrible, but it still feels like it descends from lambda calculus.

I guess my point is that whether a language is a Lisp or not can't be reduced to a simple list of bullet points.

Re:Racket2 Possibilities by lispm on Tuesday July 23, 2019 @11:40AM (#20507595)
Neither Clojure, Haskell nor Javascript are Lisp. Haskell and JavaScript are not even directly derived from Lisp.

Your idea of Lisp lacks any concrete features and suddenly all languages would be Lisp: Prolog, Haskell, ML, SML, Javascript, Java, ... all of them have sone form of functions.

This then is arbitrary. Lisp is a family of languages which share concepts and code. There are a number of concepts (you call it bullet points) which make a language a member of the Lisp family in a wider sense and it may not be that all members share all concepts, but MOST and the important ones,

Haskell for example is very very different from Lisp: syntax, semantics and pragmatics. There is no way one would consider Haskell a member of Lisp languages. Lisps are not statically typed, they are not lazy, they don't use currying, they are not side effect free, etc. If a languages has all these features at its core, it's not Lisp. Claiming that it is Lisp is just creating confusion. Give a student a Lisp book (say Peter Norvig's PAIP) and a Haskell compiler: nothing runs, the concepts and architectures are different, the development style, basically everything.

Pure Functional Programming has been split from Lisp decades ago in the 70s and 80s and we have now thousands of language camps (not just two: Fortran and Lisp). The core of Lisp is still the same:

List processing, dynamically typed, a specific form of evaluation, garbage collection, s-expressions with symbols, code represented as s-expressions, built-in code transformations over s-expressions, procedures are called functions, higher-order functions, eager evaluation, optional interpretation of code in the form of s-expressions, interactive development with read-eval-print-loops, etc etc.

From there new languages families have been forked or maybe only influenced: purely functional PLs (Haskell), logic languages (Prolog), object-oriented languages (Smalltalk, Self) and many others.

Smalltalk is also not Lisp, even though it got stuff like images, GC, blocks, interactive interface, and others via Lisp influence...

Re:Racket2 Possibilities by iLemming on Tuesday July 23, 2019 @02:16AM (#20504812)
Haskell is "lispy" because it's based on lambda calculus
Re:Racket2 Possibilities by lidHanteyk on Tuesday July 23, 2019 @10:50AM (#20507153)
You are missing quite a bit of context on the history of Haskell. From https://www.microsoft.com/en-us/research/publication/a-histo... , it seems that Haskell's design did not arise out of Lisp, but out of several languages in the early 80s which were lazy/non-strict and purely functional.

Indeed, removing parents ruins the perception of Lisp languages as just another language family, and promotes Lisp into some sort of privileged position. Simultaneously, mistaking Haskell for a Lisp means mistakenly thinking that Haskell has special meaning for pairs over tuples or lists, that Lisps are statically typed or that Haskell is optionally typed, that Haskell has macros, that Haskell's juxtaposition-based application syntax is related to Lisp's parenthesis-based application syntax, and so on.

Consider example Lisp memes: "Data is code; code is data," or "all structures are lists." Compare with example ML memes: "If it compiles, it works," or "well-typed programs don't go wrong." Or even better, with Haskell memes: "Laziness leads to purity," "monads are programmable semicolons," "show me your types."

The only meme common to these communities is "lambda the ultimate", and you are ignoring decades of Lisp philosophy if you nominate this meme to carry the flag for all of Lisp. When I first read this comment tree, I wondered if everybody had forgotten about the Land of Lisp and the Republic of Haskell: http://www.lisperati.com/landoflisp/panel01.html

I consider Haskell to be an ML, and even then, it's worth remembering that lazy/non-strict MLs have different behavior from the rest of the family.

Re:Racket2 Possibilities by dorfsmay on Tuesday July 23, 2019 @12:05AM (#20504318)
Isn't homoiconicity one of the requirements for a lisp? If so, that makes Julia a lisp, but not Haskell.
Re:Racket2 Possibilities by dreamcompiler on Monday July 22, 2019 @11:29PM (#20504191)
Completely agree. Haskell is IMO the only paren-free Lisp that works. As you said, it was designed that way from scratch, not as an afterthought from s-expr syntax. I also think automatic currying and pervasive laziness contribute a great deal to making the parens unnecessary, and most Lisps don't work that way.
Re:Racket2 Possibilities by Oreb on Tuesday July 23, 2019 @12:56AM (#20504501)
> Haskell is IMO the only paren-free Lisp that works.

Out of curiosity: Do you think Julia is not a Lisp, or that Julia doesn’t work?

Re:Racket2 Possibilities by dreamcompiler on Tuesday July 23, 2019 @09:30AM (#20506550)
I know Julia was originally a Lisp and it incorporates a lot of Lisp ideas, but I've never used it so I have no opinion about how well it works.

Lots of Lispers consider Javascript a (primitive) Lisp because it has lexical closures, but I think its syntax is horrible and thus (IMO) it doesn't "work."

Re:Racket2 Possibilities by sansnomme on Monday July 22, 2019 @11:21PM (#20504158)
Apple was not a unicorn that could single handedly force changes among developers then. Julia has plenty of funding and is pretty much a syntactic clone of Dylan (cleaned up somewhat) and it's trending on HN every other day.
Re:Racket2 Possibilities by User23 on Tuesday July 23, 2019 @01:02AM (#20504522)
I hope there isn't an AI Winter 2.0 that strangles Julia as the first go around did Common Lisp.
Re:Racket2 Possibilities by ddragon on Tuesday July 23, 2019 @01:25AM (#20504611)
Julia isn't that much positioned as an AI language, it's more of a numerical analysis and scientific computing language at this point competing with matlab, which is something that doesn't go through hype cycles. The fact that it's so well positioned for AI research is the result of that focus (high performance, expressive, interactive and math focused) plus being heavily inspired in Common Lisp, which means the language can be easily extended for new purposes (and CLOS was a brilliant system that didn't get the attention it deserved in the mainstream).

Python is the AI language, and it's already more than large enough to survive many AI winters (plus "AI" is more powerful and useful every winter).

Re:Racket2 Possibilities by pjmlp on Tuesday July 23, 2019 @04:01AM (#20505189)
Python is the AI glue language.

And it remains to be seen for how long, given C++20, Julia, ML.NET, Swift for Tensorflow and other approaches using the same underlying native libs.

Re:Racket2 Possibilities by schpaencoder on Tuesday July 23, 2019 @04:24AM (#20505257)
I agree, and Data and code is the same in a lisp.
Re:Racket2 Possibilities by jjtheblunt on Tuesday July 23, 2019 @01:23AM (#20504604)
"See Dylan" : so well said!