Top
Best
New

Posted by matesz 19 hours ago

Hyprland 0.55 announced the switch to Lua for its config files(hypr.land)
135 points | 113 commentspage 2
JCattheATM 14 hours ago|
I wonder how this would make Hyprland compare to Pinnacle or Awesome? So far I haven't found anything better than Awesome for crafting a bespoke desktop experience.
retrochameleon 9 hours ago||
Uggghhh, I hate Lua. I hate the syntax, everything being tables, and.... dun dun dun 1-indexed arrays.

I wish we wouldn't keep going back to it. I understand the appeal for some use cases, but pleeeeeeease can we just move on to a new language that fulfills the same use cases but with more typical conventions?

eviks 4 hours ago|
What's your best alternative for this use case?
IshKebab 17 hours ago||
I wish there was something better than Lua and just as "obvious" a choice. Static types, real arrays, zero-based indexing, etc.

Closest thing I've seen so far is Roto: https://roto.docs.nlnetlabs.nl/en/stable/index.html

Basically everything about this looks great - Rust-style syntax, static type checking, sane type system, easily embedded. The only slightly odd things are that it has built in types for IP addresses, AS numbers, and `filtermap`. But I guess you can just ignore those if you don't need them.

eqvinox 15 hours ago|
The language is primarily used by Rotonda, the composable, programmable BGP routing engine.

Not odd to have those data types at all…

IshKebab 6 hours ago|||
Yeah it makes sense for their use case. I meant it was an odd thing to have if you were using it as a general purpose language like Lua.
LoganDark 14 hours ago|||
Better to let specific domains define their own data types than favor one in the language.
cbarnes99 19 hours ago||
This is kinda really old news at this point. 0.56 just came out.
leephillips 17 hours ago||
I think dwm has the best approach to configuration: change the program and recompile.

This works for dwm because it compiles in two seconds and has minimal dependencies. I don’t know about hyprland.

https://dwm.suckless.org/customisation/

drdexebtjl 16 hours ago|
Requiring a C compiler, source code and header files to change your keybindings is just a different kind of bloat, and nothing can change my mind.
leephillips 16 hours ago||
Then I won’t try! And I understand your opinion. But like everyone else I have many programs using many different configuration syntaxes, some using more than one file, some files in nonstandard locations, and some combining configuration from one or more files in my user directory with others somewhere in /etc or who knows where. I find the dwm approach refreshing.

Pontification added later: And it has a beneficial side-effect. I’m not much of a C programmer these days (if I ever was), but I found I was able to understand the dwm code well enough to make some small changes in behavior. So the dwm approach encouraged me to go beyond changing definitions in the headers. (This is aside from 3rd party patches. I was even able to contribute one of those.) This is really in the spirit of free software.

trollied 15 hours ago||
Auto play video when you scroll? Behave
JacobAsmuth 19 hours ago||
Huh? This is from May. You guys should read the more recent notes. https://hypr.land/news/update56/
stonogo 12 hours ago|
Nothing in those notes is interesting, but switching to Lua is. It doesn't matter that it happened a few weeks ago.
qiine 18 hours ago|
lua is love