Live data from Hacker News

Why Fennel?

fennel-lang.org

41–50 of 106 posts

Re: Why Fennel?

#42

I moved my Neovim config to fennel and haven't look back. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...

Can nvim read it natively or do you need to transpile it?

You don't need to transpile it if you use https://github.com/Olical/nfnl

Re: Why Fennel?

#43
post #36

There are quite many languages compiling to Lua (or LuaJIT). Fennel is just one of them. See e.g. https://github.com/hengestone/lua-languages .

What makes Fennel a bit different is that it is a Lisp inspired by Clojure. If for any reason neither of these ever interested you, then, yes, Fennel would not feel any different to you.

Re: Why Fennel?

#44
post #21
post #9

Earlier quoted context omitted.

My memory of this is hazy, in part because I wasn't a C programmer in those days, but ISTR C used to do this too. I think prototypes were added (and required) only by the time ANSI got involved. Maybe some other OF can confirm/contradict?

Fun fact: in C, if you have a signature like “int foo()”, it means any number of arguments can be passed (vs “int foo(void)” which means no args).

No longer true in C23, it means void now.

Re: Why Fennel?

#45

I didn't realize lua was a proper language until I learned that's what factorio uses for its mods.

It's a very common language to embed in video games as a modding and configuration tool.

Re: Why Fennel?

#46

I moved my Neovim config to fennel and haven't look back. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...

I’ve been thinking about doing this, but then reminding myself that this is not a wise use of my time lol. However, this looks pretty nice. I might have to do it. Thanks for sharing your setup, I’ll be stealing some ideas.

It was definitely not a good use of my time lol.

Re: Why Fennel?

#47

I moved my Neovim config to fennel and haven't look back. https://github.com/Grazfather/dotfiles/blob/master/nvim/fnl/...

Can nvim read it natively or do you need to transpile it?

I use a plugin called Aniseed which loads first and does the transpiling on the fly for me.

Re: Why Fennel?

#48

Earlier quoted context omitted.

Can nvim read it natively or do you need to transpile it?

You don't need to transpile it if you use https://github.com/Olical/nfnl

If you want a sample nvim setup using nfnl you can check this out: https://github.com/rafaeldelboni/cajus-nfnl

Re: Why Fennel?

#49
post #45

I didn't realize lua was a proper language until I learned that's what factorio uses for its mods.

It's a very common language to embed in video games as a modding and configuration tool.

And that's the sort of thing it's meant to do.

Tools have their strengths. Use them for that. Don't try to drive a nail with a screwdriver.

Re: Why Fennel?

#50
post #36

There are quite many languages compiling to Lua (or LuaJIT). Fennel is just one of them. See e.g. https://github.com/hengestone/lua-languages .

What makes Fennel a bit different is that it is a Lisp inspired by Clojure. If for any reason neither of these ever interested you, then, yes, Fennel would not feel any different to you.

The referenced list seems to include a language for every taste; Fennel is also there as one of ~10 Lisp variants.
Post reply on HN