Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There was supposed to be one talk about an attempt to re-vitalize a Guile-powered Emacs. I am not sure if it's in there somewhere or not (but I haven't looked yet).

I imagine Emacs gaining native compilation capability took some pressure off that. But the appeal of scripting Emacs in languages other than Elisp still has some appeal, I think. Scheme or Lua would very nice for that purpose.

EDIT: There it is - https://emacsconf.org/2024/talks/guile/



> or Lua would very nice for that purpose.

There have been a couple of front-page threads on Lua recently and their comments really show how polarizing of a language that one is


I feel very strongly against Lua. I use it for WoW add on development all the time - I make so many mistakes with the 1-based index when porting algorithms. It is very very painful.


Fortran has arbitrary-based indexing forever (as does Ada). The default is 1 but it can be specified as anything. I don't see why this capability is so rare.


I think it's one of those features where the original intended audience of the programming language are supposed to be non-programmers (or presumably, 1-based indexing is intuitive?) but for seasoned programmers who have been used to 0-based indexing, the change is quite stark.

It's the same concept with AutoHotKey and the original intention of Lua (super small user-defined script for the masses).

Whereas Fortran and Ada probably had some forethought that went into enabling that functionality. I will have to check but I remember my algorithm class started with 1-based indexing and the reason was it was intuitive to explain. But when experienced with C/C-inspired languages, the old adage becomes relevant: "There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors."


> the original intention of Lua (super small user-defined script for the masses).

Lua was originally intended to be a language/data format for a Brazilian oil company geology software.

https://www.lua.org/history.html


why not Fennel?


Wow I didn't know this existed. This is pretty cool. Will definitely play around with it.


What? Really? OMG, Fennel is so nice. I'd use it for anything that needs Lua these days - neovim, hammerspoon, awesomewm, mpv, wezterm, etc. It's very mature and it even has an lsp-server implementation and a dedicated conference. It's incredible how you can reduce some big, nasty, unavoidable boilerplate in Lua just into a few lines of Fennel.


It has that in common with Lisp!


I think just having a proper runtime for elisp would be great...

I am a guile person, but even if the Emacs folks would only allow elisp on guile it would still be a win.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: