Live data from Hacker News

Ale – A Lisp Environment Written in Go

ale-lang.org

11–20 of 44 posts

Re: Ale – A Lisp Environment Written in Go

#11
post #5

Earlier quoted context omitted.

Make it a Lisp-2 then I’m keen. But I don’t mean to dismiss. Lisp persists because of its elegance. It’s a thing of beauty and who doesn’t want to work with a human friendly AST?

I'm new to LISPs. What's the difference between LISP-1 and LISP-2?

Lisp-1 has one namespace for both function and variables. Lisp-2 has separate namespaces

Re: Ale – A Lisp Environment Written in Go

#12
post #5

Earlier quoted context omitted.

Make it a Lisp-2 then I’m keen. But I don’t mean to dismiss. Lisp persists because of its elegance. It’s a thing of beauty and who doesn’t want to work with a human friendly AST?

I'm new to LISPs. What's the difference between LISP-1 and LISP-2?

In a lisp-1, you name your list variables lst. In a lisp-2, they are called list.

Re: Ale – A Lisp Environment Written in Go

#13

Earlier quoted context omitted.

I'm new to LISPs. What's the difference between LISP-1 and LISP-2?

In a lisp-1, you name your list variables lst. In a lisp-2, they are called list.

Not sure if that's a good example. My lists of foos are usually named "foos", not "list" or "lst".

Re: Ale – A Lisp Environment Written in Go

#15
post #5

Earlier quoted context omitted.

Make it a Lisp-2 then I’m keen. But I don’t mean to dismiss. Lisp persists because of its elegance. It’s a thing of beauty and who doesn’t want to work with a human friendly AST?

I'm new to LISPs. What's the difference between LISP-1 and LISP-2?

Essentially:

   (set foo ‘bar)
   (defun foo () ‘baz)
   
   foo ;; ‘bar
   (foo) ;; ‘baz
You can have both a variable and a function named the same way in the same scope.

Re: Ale – A Lisp Environment Written in Go

#18
post #17
post #4

I think this has a lot of potential if it's able to call Go functions, like Clojure can call Java functions. The language would have a healthy ecosystem of libraries to boot.

For that, there's already https://github.com/jcla1/gisp

Doesn’t seem to be maintained though (last commit 5 years ago).

Re: Ale – A Lisp Environment Written in Go

#19
post #5

Earlier quoted context omitted.

Make it a Lisp-2 then I’m keen. But I don’t mean to dismiss. Lisp persists because of its elegance. It’s a thing of beauty and who doesn’t want to work with a human friendly AST?

I'm new to LISPs. What's the difference between LISP-1 and LISP-2?

Common Lisp is a Lisp-2; Scheme is a Lisp-1. Lisp-2 is handier [to me] in many ways but it requires an inelegant syntax when you want to evaluate a function that returns a function and then call said returned function.

Assume you have a function foo that when called returns the function '+.

To then call that function with args 1 & 2 you'd say in a Lisp-1:

((foo) 1 2) ; 3

while in a Lisp-2 you'd have to say:

(funcall (foo) 1 2) ; 3

Post reply on HN