HackerTrans
TopNewTrendsCommentsPastAskShowJobs

mattroelle

no profile record

Submissions

How AI is useful for continuing education even as a 15+year programmer [video]

youtube.com
1 points·by mattroelle·2 anni fa·0 comments

Fennel: A Practical Lisp

mattroelle.com
261 points·by mattroelle·4 anni fa·85 comments

Fennel: A Practical Lisp

mattroelle.com
7 points·by mattroelle·4 anni fa·2 comments

comments

mattroelle
·4 anni fa·discuss
The primary maintainer of Fennel, Phil Hagelberg, has put together some brief instructions on how to get Fennel running inside of Powder Toy for you :) https://p.hagelb.org/hello-powdertoy.fnl.html
mattroelle
·4 anni fa·discuss
Yup, same author! Although to my knowledge Calvin has mostly stepped away from the Fennel project at this point. It is primarily maintained by the same dev that made Clojure's Leiningen, technomancy.
mattroelle
·4 anni fa·discuss
If you're interested in discussing further, there is a growing community that hangs out on #fennel on the Libera Chat IRC server. You can connect via matrix chat using https://matrix.to/#/!rnpLWzzTijEUDhhtjW:matrix.org I'll be hanging out there all day today and I'd love to talk about Fennel. There is also a Fennel User Group meeting this Saturday at 10am, open to all. More info at https://fennel-lang.org/events
mattroelle
·4 anni fa·discuss
Yeah, my experience is limited mostly to web dev, via OpenResty, and game dev, via love2d.

The Lua libraries in these areas are very well maintained.

That said 90% of the time libraries ship as a single lua file and it’s often better to copy and paste it into your project. I have a modified version of lume I like to use floating around :)

This spartan approach to libraries is a strength of Lua.
mattroelle
·4 anni fa·discuss
I’ll also add that Fennel fixes some of things about Lua most people dislike, like the global variables by default thing. IMO it’s worth checking out even if you didn’t like Lua at first
mattroelle
·4 anni fa·discuss
Not sure when you used Lua but there is a package manager called LuaRocks now which has some pretty nice packages in it for many purposes. I don't think it'd be too hard to get Lua running inside of a Python env either :)

https://luarocks.org/
mattroelle
·4 anni fa·discuss
Hi there! Once you have lua running somewhere you're 90% of the way there. You can do AOT compilation which will output lua code via.

fennel -c my-fennel-code.fnl

Or you can use the lua package api to automatically load .fnl files via require seamlessly:

local fennel = require("fennel") table.insert(package.loaders or package.searchers, fennel.searcher)

Enjoy!
mattroelle
·4 anni fa·discuss
Cross platform, portable lisp that compiles to Lua. It's very fast, usable everywhere, and has a large open source ecosystem thanks to the maturity of Lua.