News for hackers. Stuff that matters.
Re:Mezzano – An operating system written in Common Lisp by zaarn on Tuesday June 18, 2019 @07:25AM (#20211782)
LISP has been a system programming language. Still is.

People just don't think about it much but forget that for a time, LISP was the shit in computer science, we invented half of the modern desktop on LISP machines!

Re:Mezzano – An operating system written in Common Lisp by pmiller2 on Tuesday June 18, 2019 @02:27PM (#20216632)
I was under the impression that Smalltalk contributed more to what we think of as “the modern desktop” than LISP. If anyone has the real story, I’d love to hear it.
Re:Mezzano – An operating system written in Common Lisp by aidenn0 on Tuesday June 18, 2019 @03:19PM (#20217233)
I don't have the real story, but there was a lot of cross-pollination between smalltalk and lisp. It can be challenging to determine which things originated where sometimes.

IMO a lot of it is just that all of the ingredients for a modern desktop were there for anyone with 10s of thousands of dollars of hardware, so there was both cross-pollination as well as parallel evolution of ideas.

The invention of the sewing machine is kind of like this; there was a point at which we were very close to being able to make a sewing machine, and several people solved a subset of the problems; the union of that subset gave us a sewing machine, so singling out a single inventor is somewhat non-sensical.

Most lisp machines were specifically targeted at developers while smalltalk at Xerox was more targeted at office productivity. Interestingly enough Xerox hired the BBN team that made lisp machines, and the Xerox star was made to run lisp as well.

Re:Mezzano – An operating system written in Common Lisp by lispm on Tuesday June 18, 2019 @05:45PM (#20218776)
> Most lisp machines were specifically targeted at developers

A bunch of Lisp Machines were directed at production, not developers. From Symbolics there were special models for that and also smaller "delivery system" versions of the operating system.

For example American Express had a bunch of Lisp Machines as checking complex credit card transaction, Lucent had Lisp Machine nodes in a network switch, NASA had Lisp Machines monitoring video camera streams of rockets from Space Shuttle launches, Symbolics sold many graphics systems to TV studios, etc.

> while smalltalk at Xerox was more targeted at office productivity.

Is that true? Xerox had an office system running on the same hardware, but written in Mesa - unrelated to Smalltalk. Xerox had the CIA as a main customer for the Smalltalk machines, using an application called 'Analyst'...

https://ethw.org/Oral-History:Adele_Goldberg

'But our big commercial involvement was with the CIA.'

> Interestingly enough Xerox hired the BBN team that made lisp machines, and the Xerox star was made to run lisp as well.

BBN made a Lisp in the 60s, from where some developers went to Xerox in 1972/73. Before Lisp Machines existed. BBN Lisp was renamed Interlisp and was supported by both companies. Xerox developed Interlisp-D for Lisp Machines and BBN put Interlisp on an internal research computer.

Re:Mezzano – An operating system written in Common Lisp by flavio81 on Tuesday June 18, 2019 @04:15PM (#20217906)
>I don't have the real story, but there was a lot of cross-pollination between smalltalk and lisp.

Smalltalk was influenced by Lisp, and in turn, Smalltalk influenced the subsequent Lisp systems; that's where OOP support appeared in Lisp, first with LOOPS and MIT Flavors, ultimately with CLOS on ANSI Common Lisp.

Common Lisp also is "image-based development", just like Smalltalk. This is a direct ST influence.

Re:Mezzano – An operating system written in Common Lisp by lispm on Tuesday June 18, 2019 @05:02PM (#20218372)
> Common Lisp also is "image-based development", just like Smalltalk. This is a direct ST influence.

Lisp from the early 60s used already images. It went from there to Smalltalk.

Re:Mezzano – An operating system written in Common Lisp by flavio81 on Wednesday June 19, 2019 @11:50AM (#20224406)
Oops...

I believe you, but, do you have some reference? I would assume this came after Lisp 1.5, right?

Re:Mezzano – An operating system written in Common Lisp by lispm on Wednesday June 19, 2019 @02:53PM (#20226138)
Lisp 1 in 1960.

http://bitsavers.org/pdf/mit/rle_lisp/LISP_I_Programmers_Man...

Page 66f: SET card writes a memory image to a tape and TST card reads a memory image from tape.

Re:Mezzano – An operating system written in Common Lisp by behnamoh on Tuesday June 18, 2019 @03:46PM (#20217586)
And still I haven't seen any language more Object-Oriented than SmallTalk. Sure, Python, C++, Java, etc. support OO to some level. But in SmallTalk everything literally is an object, which means you can achieve the same functionality of Lisp macros in SmallTalk as well. In Lisp you have data = code, in SmallTalk you have data = program (which is running). In fact, everything is always running in SmallTalk. I'm more than eager to learn more and more about SmallTalk. It's one of those languages with valuable philosophy behind its design (just like Lisp and Haskell).
Re:Mezzano – An operating system written in Common Lisp by kazinator on Tuesday June 18, 2019 @06:29PM (#20219101)
Everything is a class object in Common Lisp.

  [1]> (class-of (cons 1 2))
  #<BUILT-IN-CLASS CONS>
  [2]> (class-of #\x)
  #<BUILT-IN-CLASS CHARACTER>
  [3]> (class-of nil)
  #<BUILT-IN-CLASS NULL>
  [4]> (class-of (function mapcar))
  #<BUILT-IN-CLASS FUNCTION>
Re:Mezzano – An operating system written in Common Lisp by astrange on Wednesday June 19, 2019 @04:34AM (#20221714)
It's more useful to think of SmallTalk as message-based than object-based. Messages are underrated, but objects are just function calls except the first parameter is on the left.

> in SmallTalk you have data = program (which is running)

Isn't it just an eagerly-evaluated language with closures? Can it walk its own AST?

Re:Mezzano – An operating system written in Common Lisp by scroot on Tuesday June 18, 2019 @04:06PM (#20217814)
If you haven't yet, I'd recommend reading the "Blue Book" (Smalltalk-80: The Language and its Implementation) by Goldberg. It has a very holistic approach and, as such, is one of the most accessible and pleasant books describing a computing/programing environment one can find.
Re:Mezzano – An operating system written in Common Lisp by thequux on Tuesday June 18, 2019 @08:31PM (#20219850)
I also recommend reading http://www.mirandabanda.org/bluebook/bluebook_imp_toc.html once you're done with the blue book; the VM is a two weekend project in any compiled high-level language (I used Rust) and it's not hard to make it performant enough for real use. I think my timeline was ~2 days for the initial implementation, 2 days for fixing up small bugs (mostly in primitives), and then 2-3 hours of minor tweaks to get the VM performant enough to be comfortable.

BTW, somebody typed the VM source in from the blue book and posted it online. You may find the resources on that page useful: http://www.wolczko.com/st80/

Re:Mezzano – An operating system written in Common Lisp by scroot on Tuesday June 18, 2019 @09:58PM (#20220215)
This is dope -- didn't know about it, thanks
Re:Mezzano – An operating system written in Common Lisp by lioeters on Tuesday June 18, 2019 @09:24PM (#20220108)
I wanted to add to this great recommendation.

The blue book and other excellent out-of-print books on SmallTalk can be found here:

http://stephane.ducasse.free.fr/FreeBooks/

Re:Mezzano – An operating system written in Common Lisp by behnamoh on Tuesday June 18, 2019 @05:10PM (#20218450)
Thanks, I'll take a look at it!
Re:Mezzano – An operating system written in Common Lisp by yellowapple on Tuesday June 18, 2019 @04:54PM (#20218298)
> But in SmallTalk everything literally is an object, which means you can achieve the same functionality of Lisp macros in SmallTalk as well.

Ruby follows in SmallTalk's footsteps and implements something similar, at least to an extent.

Re:Mezzano – An operating system written in Common Lisp by nudq on Wednesday June 19, 2019 @07:58AM (#20222487)
I was under the impression that the pioneering Xerox systems were written in Mesa, which was not even object oriented. I'd love to hear the real story as well.
Re:Mezzano – An operating system written in Common Lisp by pjmlp on Wednesday June 19, 2019 @02:33PM (#20225905)
Xerox workstations used microded CPUs, there were Interlisp-D, Smalltalk and Mesa (later Mesa/Cedar) variants of it.

Each variation loaded the respective microcode into the CPU and booted into the respective environment.

You can read all about those environments here https://archive.org/details/bitsavers_xerox

Re:Mezzano – An operating system written in Common Lisp by farisjarrah on Tuesday June 18, 2019 @01:29PM (#20215708)
Didn't NASA write a bunch of software for the space shuttles in LISP?
Re:Mezzano – An operating system written in Common Lisp by mruts on Tuesday June 18, 2019 @02:35PM (#20216729)
Yeah, it got placed by C by the suits though.

When you think about it, Lisp is perfect for their use cases. Pushing patches live without rebooting and easy modification of a running system image while running.

Re:Mezzano – An operating system written in Common Lisp by lispm on Wednesday June 19, 2019 @07:35AM (#20222399)
' their use cases.'

What use cases?

There were a lot of Lisp systems for Space Shuttles which were not needing such a feature.

Examples:

'Automating Planning and Scheduling of Shuttle Payload Operation'

http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.96....

'The objective of EMPRESS (expert mission planning and replanning scheduling system) is to support the planning and scheduling required to prepare science and application payloads for flight aboard the US Space Shuttle. EMPRESS was designed and implemented in Zetalisp on a 3600 series Symbolics LISP machine. Initially, EMPRESS was built as a concept demonstration system.'

https://ieeexplore.ieee.org/document/17369

'NASA used Symbolics' high-definition technology to analyze HDTV video images of the Discovery launch in real-time. This high-definition system enabled NASA engineers to get an instant replay of critical launch systems.'

ftp://ftp.ai.sri.com/pub/mailing-lists/slug/900531/msg00199.html

'An Intelligent Training System for Flight Controllers Space Shuttle'

http://www.aaai.org/Papers/IAAI/1989/IAAI89-021.pdf

and so on...

Re:Mezzano – An operating system written in Common Lisp by behnamoh on Tuesday June 18, 2019 @03:50PM (#20217625)
Yep, as mentioned in the links in this post:

https://news.ycombinator.com/item?id=19952974

Re:Mezzano – An operating system written in Common Lisp by lispm on Wednesday June 19, 2019 @07:38AM (#20222411)
The remote agent was not Lisp software for Space Shuttles.

Remote Agent was a part of the Deep Space 1 space mission...

Re:Mezzano – An operating system written in Common Lisp by pkaye on Tuesday June 18, 2019 @03:00PM (#20216991)
So Douglas Engelbart did all his work in LISP?
Re:Mezzano – An operating system written in Common Lisp by zaarn on Tuesday June 18, 2019 @03:45PM (#20217573)
Since he did AI work in the 50's, probably a lot of his work was written in LISP or IPL, which had many of the concepts that LISP later used. Most of his high-profile inventions (Computer mice, Hypertext, Interactive Computers) were first commercialized on LISP machines in the 80s. LISP Machines also pioneered some other concepts such as windowing ystems, graphic rendering, modern networking, garbage collection, etc.

There is a fun little demo on youtube here; https://www.youtube.com/watch?v=o4-YnLpLgtk . That shows off a LISP machine roughly as it was written in the 80s/90s.

Re:Mezzano – An operating system written in Common Lisp by gwern on Tuesday June 18, 2019 @04:58PM (#20218330)
Not sure why you'd guess that since Lisp machines weren't a thing in the 1950s. His NLS https://en.wikipedia.org/wiki/NLS_(computer_system) was actually written in something rather different, TREE-META https://en.wikipedia.org/wiki/TREE-META I'm not entirely sure what you would call their programming languages, but they definitely weren't Lisps.