Wren: A classy little scripting language
#HackerNews #Wren #Scripting #Language #Classy #Programming #Language #Developer #Tools
#Tag
Wren: A classy little scripting language
#HackerNews #Wren #Scripting #Language #Classy #Programming #Language #Developer #Tools
Published a big list of scripts I've written over the years: "copy" and "pasta" for working with the clipboard, "getsong" to download music, "murder" for stopping processes, and dozens more: https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/
Published a big list of scripts I've written over the years: "copy" and "pasta" for working with the clipboard, "getsong" to download music, "murder" for stopping processes, and dozens more: https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/
For 10 years now, people from the Linux side tell me systemd is so much easier and "Unit-Files" are so much cleaner and better than init-scripts ...
Well, I still don't get it. A well implemented init-system like that of FreeBSD is:
- Clean
- Flexible
- Way more lightweight
- Works with just shell code
I have written a rc.d init-script for zigbee2mqtt today and honestly? It's not going to be shorter than that. Would chose that instead of systemd! ANY TIME! K.I.S.S.
10 years in and I still don't see a real advantage of monolithic-binary init-systems with static configuration files.
For 10 years now, people from the Linux side tell me systemd is so much easier and "Unit-Files" are so much cleaner and better than init-scripts ...
Well, I still don't get it. A well implemented init-system like that of FreeBSD is:
- Clean
- Flexible
- Way more lightweight
- Works with just shell code
I have written a rc.d init-script for zigbee2mqtt today and honestly? It's not going to be shorter than that. Would chose that instead of systemd! ANY TIME! K.I.S.S.
10 years in and I still don't see a real advantage of monolithic-binary init-systems with static configuration files.
TIL that software (especially #scripting runtimes like #Python, #Perl, and #NodeJS) running in #Alpine#Linux containers is often slower than in other distros like #Ubuntu. This is despite Alpine being faster on startup and often vastly more efficient with CPU, memory, and storage.
It mostly comes down to Alpine’s use of musl libc rather than #GNU’s glibc. musl is optimized for minimalism, not raw performance. Also, the Alpine packages are often not compiled with as many optimizations.
Weekend goal: a #Lua chunk (script) to help sighted users review #Braille. It's a great way to understand how visually impaired users interact with a computer using a screen reader and a Braille display. The script is simple and easy to configure. Currently, it offers a learning mode; in the future, a challenge mode will be added, along with a blog post explaining how to set it up.
Link: https://gitlab.com/-/snippets/4858299
On #FreeBSD it should be executable via flua:
% flua learnbraille.lua
after installing liblouis:
# pkg install liblouis
[edit] % /usr/libexec/flua learnbraille.lua
💡 Idea for a debugging script 💡
This might already exist for FreeBSD, and if so.. let me know!
- 1) keeps record of OS core/default settings: loader.conf, rc.conf, sysctl.conf, devfs.rules, login.conf etc
- 2) keeps record of file checksum on those OS core files (similar to the app, tripwire)
- 3) mode which shows divergence on current state vs known-default state in configs (1) and checksums (2)
-4) mode which tracks the files and their change-sets over time, similar to a zfs snapshot but at a single file-level
A space for Bonfire maintainers and contributors to communicate