Live data from Hacker News

Ansible is a Lisp?

astrid.tech

11–20 of 45 posts

Re: Ansible is a Lisp?

#12
post #4

This is quite a stretch to call Ansible, which consists of YAML files with syntactic sugar and some light Python evaluation, 'Lisp'. I thought reading the article would make less inflammatory but it didn't.

Yeah I agree, Ansible would be so much better if it was Lisp-first with a perfectly non-scary I'm-a-devops YAML syntax instead of OMG-parens-nobody-understands-Lisp Lisp syntax.

Re: Ansible is a Lisp?

#13
post #2

Not everything that can be represented with s-expressions is a lisp. For example: (html (body (h1 "Hello, World!"))) This does not mean that HTML is a lisp.

I agree, recently I shared here a great article by Hayley Patton on this exact topic: https://gist.github.com/no-defun-allowed/4f0a06e17b3ce74c6ae...

Re: Ansible is a Lisp?

#16
post #6
post #2

Not everything that can be represented with s-expressions is a lisp. For example: (html (body (h1 "Hello, World!"))) This does not mean that HTML is a lisp.

OK, but what about the homoiconicity and syntax macros?

"What is homoiconicity then? Typical definitions state that it is simply “code as data”, will point to a relationship between a program’s structure and syntax or note that the program source is expressed in a primitive data-type of the language. In the below, we will show that none of these definitions make much sense."

https://www.expressionsofchange.org/dont-say-homoiconic/

Re: Ansible is a Lisp?

#18
post #2

Not everything that can be represented with s-expressions is a lisp. For example: (html (body (h1 "Hello, World!"))) This does not mean that HTML is a lisp.

You'd think this would be more understood given that pretty much the whole point of lisp is to be pretty close to just representing an AST without relatively few frills. The idea that we can represent most languages with a tree-like structure isn't particularly novel.

Re: Ansible is a Lisp?

#19
post #4

This is quite a stretch to call Ansible, which consists of YAML files with syntactic sugar and some light Python evaluation, 'Lisp'. I thought reading the article would make less inflammatory but it didn't.

It’s a homoiconic language like Lisp, just with YAML instead of s-expressions.

Re: Ansible is a Lisp?

#20
post #2

Not everything that can be represented with s-expressions is a lisp. For example: (html (body (h1 "Hello, World!"))) This does not mean that HTML is a lisp.

But that can be perfectly valid Lisp. Lisp libraries producing HTML often look just like that.
Post reply on HN