News for hackers. Stuff that matters.
Re:MakerLisp Machine by mruts on Wednesday February 27, 2019 @09:49AM (#19263550)
A Lisp machine isn't just some hardware with Lisp on top. You can do that today with x86. A Lisp machine is supposed to have support for lisp primitives at a hardware level.
Re:MakerLisp Machine by rjsw on Wednesday February 27, 2019 @10:54AM (#19263966)
The MIT Lisp Machine didn't have lisp primitives in hardware. It had two extra hardware features, it could fetch two 16bit instructions at a time, and a fast multi-way branch instruction. Other than that it looked very much like a modern RISC architecture.

I would say that the main feature of a Lisp Machine is that you do everything from within Lisp.

Re:MakerLisp Machine by lispm on Wednesday February 27, 2019 @11:41AM (#19264344)
The architecture the developer saw on a Lisp Machine like a Symbolics was tagged, 36 or 40 bit, mostly stack oriented and had lots of primitive Lisp functionality, type checking /dispatching, some GC support, etc.
Re:MakerLisp Machine by rjsw on Wednesday February 27, 2019 @11:58AM (#19264595)
That was all done in software on the MIT/LMI/TI machines.

I don't know of any papers on the Symbolics hardware that are not behind the ACM paywall, how much did it really differ from the other Lisp Machines ?

Re:MakerLisp Machine by pinewurst on Wednesday February 27, 2019 @12:04PM (#19264676)
Re:MakerLisp Machine by lispm on Wednesday February 27, 2019 @01:55PM (#19265877)
Re:MakerLisp Machine by mruts on Wednesday February 27, 2019 @12:55PM (#19265298)
If that was the case, why are we talking about lisp machines vs a lisp OS?
Re:MakerLisp Machine by Y_Y on Wednesday February 27, 2019 @09:59AM (#19263601)
What about microcode? I thought the point of this whole computing thing was that we could abstract away the fine details and solve problems on the level they're posed at. Who gives a damn if there's a single atom representing a cons or not?

Lisp is good as a language for humans, and it used to be used in hardware because that was necessary to run lisp code fast. That hasn't been the case for ages.

Re:MakerLisp Machine by stcredzero on Wednesday February 27, 2019 @12:24PM (#19264922)
Who gives a damn if there's a single atom representing a cons or not?

Hipsters?

Re:MakerLisp Machine by qubex on Wednesday February 27, 2019 @10:25AM (#19263771)
The stated processor (Zilog/Z80) is not suitable for that and isn’t suitable for emulating such an architecture in real time or instantiating suitable virtual machines.
Re:MakerLisp Machine by andreer on Wednesday February 27, 2019 @10:27AM (#19263786)
I find this to be an interesting question. Given a modern, high-performance compiling lisp implementation on a modern CPU, say SBCL on x86_64.

What modification or addition to the CPU (or wider computer architecture) would be most effective in making typical lisp programs run faster?

Re:MakerLisp Machine by m463 on Thursday February 28, 2019 @12:37AM (#19269178)
So it needs an Address register and a Data register?

Or does it need hardware parenthesis support too? ;)

Re:MakerLisp Machine by qubex on Wednesday February 27, 2019 @10:23AM (#19263753)
Yup. As soon as I reached “Zilog/Z80” I thought “yeah, uhm, nope”.
Re:MakerLisp Machine by 4thaccount on Wednesday February 27, 2019 @12:47PM (#19265191)
It's fine as a toy, but yea I'd prefer a powerhouse chip to make it worthwhile.
Re:MakerLisp Machine by CoolGuySteve on Wednesday February 27, 2019 @12:30PM (#19264995)
What instruction extensions would you have to add to something like RISC-V to accelerate Lisp Machines?
Re:MakerLisp Machine by jecel on Wednesday February 27, 2019 @02:26PM (#19266152)
The previous design, RISC-IV (named SPUR), was a Lisp machine.

http://pages.cs.wisc.edu/~markhill/papers/computer86_spur.pd...

The basic instructions (Table 3) are close enough to RISC-V but it also had a few Lisp specific instructions (Table 4). Though the name J Extension for RISC-V might lead you to think it is only about Java or Javascript, the group working on it is also interested in making it as good as possible for Lisp.

Re:MakerLisp Machine by mark_l_watson on Wednesday February 27, 2019 @07:46AM (#19262876)
I watched his recent meetup presentation on YouTube last week - really a fun looking project. If I were into hardware, at all, I would probably buy one.

Not too unrelated: I have an unused HP Stream 11 and I have had good intentions of having Mezzano boot directly in it. So far, I just have run Mezzano (Common Lisp directly on hardware) with VirtualBox.

Re:MakerLisp Machine by all2 on Wednesday February 27, 2019 @09:59AM (#19263600)
I was curious about this, so I went looking.

Here's a HN thread from 2016: https://news.ycombinator.com/item?id=12358177

I want to give Mezzano a shot once I (finally) get through SICP.

Re:MakerLisp Machine by 4thaccount on Wednesday February 27, 2019 @07:39AM (#19262845)
It'd be really cool to have lisp machines again, but with some more powerful processors.
Re:MakerLisp Machine by scj on Wednesday February 27, 2019 @10:18AM (#19263721)
I've been thinking lately about an introductory programming environment (similar to computers of the 1980s) that uses lisp or scheme instead of basic[0]:

1. Boots directly into the REPL.

2. Built-in drawing commands, but no GUI.

3. Memory mapped screen / sprites (with multiple graphics modes). With peek and poke like functions.

4. Has an enclosure / keyboard similar to a C64. A simple all-in-one look may make the device more approachable.

5. Simple/constant CPU to provide a path to learning assembly. The reason I'd want to avoid an FPGA is that it'll eventually lead to fragmentation, which means that peer-based learning becomes more difficult.

6. Socketted COTS chips that are well documented and will likely be available for a long time.

7. Open source, with all code available on the machine. I'd like to encourage curiosity as much as possible (and not being able to read the source is an instant blocker).

8. HDMI output.

9. Included joystick with a potentially non-standard port (x2). This is to permit the sharing of games with minimal fuss. Alternatively, use the port from the first xbox.

10. A similar environment / emulator on regular computers, to help the student transition to regular programming.

11. A good manual that explains how the machine works, gives examples, and provides possible avenues of exploration for the curious.

[0] Like many on this forum, basic was my first programming language. But I recognize it is only a matter of time until a programmer needs to abandon it. Any argument to use it as a teaching language has two factors: how simple is it to learn, and how much can be carried with the student. I think lisp would be slightly more difficult to learn, but I think it offers more long term value.

Re:MakerLisp Machine by scj on Wednesday February 27, 2019 @01:11PM (#19265460)
I can simplify a few of these goals into a meta-goal: A consistent environment between all users so all can use common resources.

Programmers who are just starting out tend to have an incomplete picture of their environment. While we should encourage them to build up an understanding of it, we should recognize that doing so takes effort, and should ultimately be a positive learning experience.

Some of the best lessons come from trying to push hardware/software boundaries. But the lesson "version 1 didn't do that, only version 2+ does" isn't great. If we're talking about children or teenagers they may just conclude "mine's broken" and stop exploring. Worse still, blame themselves for problems they don't fully understand.

Re:MakerLisp Machine by chriswarbo on Wednesday February 27, 2019 @10:36AM (#19263842)
Thinking back, there was a noticable difference between the computers I "played" with and those I treated more carefully: whether they had persistent storage (HD) containing reasonably important data.

Without persistent storage, it was quite liberating to know that I couldn't really "break" things, since the default state would be restored by a reboot.

Maybe it's an advantage for a learning machine to have the system/OS be read-only (maybe with a physical switch to allow writes) and have data saved to removable media (e.g. microSD)? There's no way to mess up someone's data if it's kept outside the machine.

Re:MakerLisp Machine by stcredzero on Wednesday February 27, 2019 @12:26PM (#19264955)
Thinking back, there was a noticable difference between the computers I "played" with and those I treated more carefully

Smalltalk environments try to capture some of this spirit. If you do something really bad, you just re-start the image and replay the change log, leaving off the last entry.

Re:MakerLisp Machine by scj on Wednesday February 27, 2019 @11:01AM (#19264022)
I was thinking a ROM chip that copies contents to RAM. That way you can modify the built-in functionality while only being a reboot away from a perfect reset.

But I'd also want saving to be through an external card that can be modified by a regular computer.

Re:MakerLisp Machine by 4thaccount on Wednesday February 27, 2019 @11:36AM (#19264286)
That sounds awesome. Lisp would work well here. Also Red/Rebol, Smalltalk, Forth, or APL could be neat here.
Re:MakerLisp Machine by cr0sh on Wednesday February 27, 2019 @03:46PM (#19266777)
Does the https://gigatron.io/ come close?
Re:MakerLisp Machine by scj on Wednesday February 27, 2019 @04:10PM (#19266964)
I'd rather something with a bit more RAM (according to the FAQ, it maxes out at 64kb).

For the moment, I believe the ideal amount of RAM for an environment like this is one where the user doesn't hit the limit until they are attempting to do something ambitious (like a game). When that point hits, hopefully the RAM constraint is perceived as a challenge to be overcome, rather than a frustration.

For a lisp with an HDMI display, the amount of RAM would likely need to be in the megabyte range.

Re:MakerLisp Machine by timonoko on Wednesday February 27, 2019 @10:48AM (#19263938)
Methinks Lisp-machine is just a memory, which is CONS-structured and infinite and has garbage collector built-in. The processor sees only CAR- and CDR-ports and also a command port, where the memory hardware can be ordered to do LAST and ASSOC and other memory-intensive operation. The processor(s) are regular and do what processors do best, like adding and multiplying numbers. Every processor has its own access ports to the Lisp-machine, which is challenging but interesting.
Re:MakerLisp Machine by milsebg on Wednesday February 27, 2019 @07:04AM (#19262690)
I want one! I am dreaming for a while building exactly this on top of an FPGA. Maybe this piece will be my inspiration to actually start :)
Re:MakerLisp Machine by Annatar on Wednesday February 27, 2019 @06:51AM (#19262631)
WANT!!!

This gave me a crazy idea, cross-compiling one of the Lisps using CUDA to run accelerated directly on the GPU... Hmmm...

Re:MakerLisp Machine by tlavoie on Thursday February 28, 2019 @01:32PM (#19273735)
You can certainly call CUDA from Common Lisp. http://quickdocs.org/cl-cuda/
Re:MakerLisp Machine by Annatar on Wednesday March 06, 2019 @03:41PM (#19322530)
That's kind-of-sort-of what I had in mind... rather I'd like to run the entire Lisp language on the GPU(s) directly instead of a generic central processing unit.
Re:MakerLisp Machine by pjmlp on Wednesday February 27, 2019 @11:56AM (#19264583)
Re:MakerLisp Machine by Annatar on Wednesday March 06, 2019 @03:39PM (#19322517)
Out of the question, go away with that cursed JVM and never mention it to me again!

I don't and never will do bytecode on a virtual machine!

Re:MakerLisp Machine by dan-robertson on Wednesday February 27, 2019 @07:01AM (#19262679)
Something like CEPL?