TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ansible is a Lisp?

52 pointsby soopurmanabout 1 year ago

12 comments

Attummmabout 1 year ago
This is quite a stretch to call Ansible, which consists of YAML files with syntactic sugar and some light Python evaluation, &#x27;Lisp&#x27;.<p>I thought reading the article would make less inflammatory but it didn&#x27;t.
评论 #40267623 未加载
评论 #40267805 未加载
axblountabout 1 year ago
Not everything that can be represented with s-expressions is a lisp. For example:<p><pre><code> (html (body (h1 &quot;Hello, World!&quot;))) </code></pre> This does not mean that HTML is a lisp.
评论 #40267758 未加载
评论 #40267238 未加载
评论 #40267956 未加载
评论 #40267265 未加载
评论 #40267825 未加载
评论 #40267649 未加载
评论 #40267287 未加载
James_Kabout 1 year ago
&gt; YAML as executable code<p>Why must we do these things to ourselves?
评论 #40268988 未加载
评论 #40274424 未加载
behnamohabout 1 year ago
Either the author doesn&#x27;t know what Lisp means (the &quot;essence&quot; of Lisp), or just wants to stretch YAML to mean Lisp.
fiddlerwoaroofabout 1 year ago
Actually, ansible is a prolog. I played around with marelle[1] a bit for managing my Mac configuration and I realized that the core of the typical configuration management tool just is a prolog: it gathers facts from the systems you have, compares them with a desired state you’ve specified declaratively and executes a plan to get from the current state to the specified one. Prolog does the planning more or less “for free” because of its evaluation model.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;larsyencken&#x2F;marelle">https:&#x2F;&#x2F;github.com&#x2F;larsyencken&#x2F;marelle</a>
mattmeinabout 1 year ago
Related: <a href="https:&#x2F;&#x2F;yamlscript.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;yamlscript.org&#x2F;</a>
评论 #40272302 未加载
评论 #40267662 未加载
vindarelabout 1 year ago
Those are 2 lisp tools not unlike Ansible:<p>* [Consfigurator](<a href="https:&#x2F;&#x2F;spwhitton.name&#x2F;tech&#x2F;code&#x2F;consfigurator&#x2F;" rel="nofollow">https:&#x2F;&#x2F;spwhitton.name&#x2F;tech&#x2F;code&#x2F;consfigurator&#x2F;</a>) - Lisp declarative configuration management system. You can use it to configure hosts as root, deploy services as unprivileged users, build and deploy containers, and produce disc images. [GPL3][2].<p>* [cl-unix-cybernetics](<a href="https:&#x2F;&#x2F;github.com&#x2F;cl-unix-cybernetics&#x2F;cl-unix-cybernetics">https:&#x2F;&#x2F;github.com&#x2F;cl-unix-cybernetics&#x2F;cl-unix-cybernetics</a>) (previously Adams) - UNIX system administration in Common Lisp. Not unlike Ansible, Chef or Puppet. [ISC][22]. - You describe your systems (hosts) using resources having properties. The properties are then probed and synchronized using only &#x2F;bin&#x2F;sh on the remote host, and &#x2F;usr&#x2F;bin&#x2F;ssh on the control host.<p>(awesome-cl)
nathellabout 1 year ago
Bash is a Lisp, too.<p><a href="https:&#x2F;&#x2F;blog.danieljanus.pl&#x2F;2014&#x2F;05&#x2F;20&#x2F;you-already-use-lisp-syntax&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.danieljanus.pl&#x2F;2014&#x2F;05&#x2F;20&#x2F;you-already-use-lisp-...</a>
评论 #40268682 未加载
medo-bearabout 1 year ago
My set of lego pieces is a Lisp
lanstinabout 1 year ago
I thought this was going to be a python thing that exploited functions returning functions with their lexical scope. I find too many syntactical macros tends to encourage excessively dense code. Tho I usually use packer and terraform to configure my end VMs not ansible. A PR to either packer repo or territory repo and push the button to recreate the resources.
jeffrallenabout 1 year ago
See also <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Greenspun%27s_tenth_rule" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Greenspun%27s_tenth_rule</a><p>&quot;Any sufficiently complicated C or Fortran program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp.&quot;
评论 #40267960 未加载
评论 #40267488 未加载
评论 #40267900 未加载
评论 #40272061 未加载
评论 #40275185 未加载
sgtabout 1 year ago
Ansible is great, but using YAML still bugs me. Would just be a lot easier with HCL (Hashicorp) or something else.
评论 #40268193 未加载