Live data from Hacker News

Fennel: A Practical Lisp

mattroelle.com

61–70 of 91 posts

Re: Fennel: A Practical Lisp

#63
post #56

Lisps are great because of their radical simplicity which saves you a ton time learning syntax. You're going to need that time to invest in switching to Emacs.

Not anymore! If you use Neovim, you can use Conjure: https://conjure.fun/

That looks pretty cool. When I want to fiddle with things, might even use that to replace my setup around vim-slime + other minor plugins https://gist.github.com/mhitza/a00d7900571e9f13bac2bbf4a203d... (example setup for Guile, but I use the same thing for Chicken). Hopefully it's not Neovim exclusive!

Re: Fennel: A Practical Lisp

#64
post #32

Earlier quoted context omitted.

Might help encourage you to move away from Windows.

I have plenty of reasons to move away from Windows, and also plenty of reasons to stay. :) But I think it's overall a net-negative that there is no simple way to use LuaRocks on Windows. I don't believe in gatekeeping, especially when so many programmers still begin their journey on Windows.

It’s not gatekeeping. Maintaining for Windows is a huge cost to damn near everyone involved.

Re: Fennel: A Practical Lisp

#65

Anyone tried Fennel -> Lua -> nelua compiler -> c/native?

You don't need to as `fennel` the compiler comes with it's own way to compile native binaries! Here's an example[0] from one of the maintainers. It even let's you require other Lua modules and will embed along with the executable.

[0]: https://git.sr.ht/~technomancy/fennel-http-example

Re: Fennel: A Practical Lisp

#66

I'm concerned about the bus factor of LuaJIT. If the advanced cyborg known as Mike Pall decides to quit (as has happened once already) then what happens? Vanilla Lua performance isn't *bad* by any means, but hardly remarkable compared to LuaJIT. Fennel looks like a gorgeous lisp. I will probably play with it at some point.

You can continue to use the LuaJIT that has been released? The Lua language has been very stable and has little need to develop for developments sake. There are a few things that might be nice to have, but few of them are worth more platform churn.

One RCE bug in a codebase only one person actually knows really well… recipe for disaster.

It could happen. I’ve been coding more than three decades and I’ve read some real horror stories over the years.

If I were a luajit user, I’d be interested in trying to raise funding to get some more eyes on the source. It’s an engineering marvel, that’s incontestable, but it needs more coverage in case something happens. Even just to make room whenever Mike decides to retire.

I thought cloudflare and Kong would kick back to the community more, but that seems not to be the case.

Re: Fennel: A Practical Lisp

#67
post #53

What might be a good toy project to try with this? I've had a vague interest in lisp for a while, and fennel seems like a good entry point, I just need some direction on a small project that would be a good fit for the language.

The cookbook[0] has some good examples, I went with the state machine parser as a base for highlighting in mpv's console (mpv scripting has been the main focus of my fennel use, mostly rewriting existing code) [0] https://github.com/bakpakin/Fennel/wiki/Cookbook

Thanks, Life w/TIC-80 seems like a good candidate. Simple enough that I can wrap my head around the whole thing and tweak the rules, even though it's (to me) an alien syntax and structure.

Re: Fennel: A Practical Lisp

#68
post #52

What might be a good toy project to try with this? I've had a vague interest in lisp for a while, and fennel seems like a good entry point, I just need some direction on a small project that would be a good fit for the language.

IRC bot! You just need to pull in a lua sockets library to get going.

I have been meaning to automate my spamming of random channels, doing it manually is a PITA. I like to keep things more innane and less troll/toxic though, so I might need to do some work with GPT-3 on the actual content. At least once I find a good corpus of low-effort shit posts that aren't also toxic.

Re: Fennel: A Practical Lisp

#70

Earlier quoted context omitted.

Chicken Scheme is embedded in C programs with one line. https://wiki.call-cc.org/embedding I've even embedded it in Objective-C programs running in iOS (could make OpenGLES calls in the repl and everything). Full API spec: https://wiki.call-cc.org/man/5/Embedding FFI example: https://wiki.call-cc.org/An%20extended%20FFI%20example https://www.more-magic.net/posts/scheme-c-integration.html

Thanks for sharing this, I've bookmarked it to check out more later, but from the links you provided, it looks like Chicken Scheme is pretty friendly to use.

I used Chicken for several years in the past and looking at it again recently. Worked great under FreeBSD, Linux, has a large set of well-maintained extensions and has (mostly) excellent documentation. And IME Chicken developers were always willing to answer questions, easily reached on ICQ/mailing lists. That's probably still the case.
Post reply on HN