Modern GUI scripting is done e.g. by QML + JavaScript.
msplsh, is that not esoteric?
Well, as solution there is now tk/lua: https://www.lua.org/ddj.html
Modern GUI scripting is done e.g. by QML + JavaScript.
Today, nobody knows Forth anymore, and it’s not really the typical beginners’ language.
Among my first programming experiences, if not the first, was programming a HP25 calculator.
Someone who cannot learn forth, should not touch the bootloader.
Learning is not a problem, maintenance is.
ed
, the standard editor ed
in scripts, but it is in some way unthinkable to use it as normal text editor. Other people would not work without a GUI, andFor writing text I use TeX, a program from the 1970
That’s not true, fortunately. Since FICL is out of the way, Forth knowledge is no longer involved in scripting the bootloader. And this is a good thing.Someone who cannot learn forth, should not touch the bootloader.
Technologies are tools, like sledgehammer. Need it? use it. Need something else? use another tool. Everything is OK? keep it at home.People say silly things like Swift is better than C because C is 50 years old.
Google Docs is OK for compiling some classes of documents, for example reddit posts.I think TeX is a big awkward mess (especially horrible to use on deadlines ) and yet I almost find it appalling that nothing better has come along for 40 sodding years! Is the whole computing industry asleep? Or do they really feel that "Google Docs" is a potential competitor? Bunch of clowns haha.
People shouldn’t be deterred from touching software just because some piece of technology is involved that is obsolete and difficult to handle.
Lua is used in all sorts of places
I did say it was a contrived example. I chose to match username because UID 0 would've also matched the toor user who has no shell in any of my Freebsd systems.Yes, awk(1) is somehow a mix of the spirits of the declarative & imperative programming paradigma.
Your script is errorneous: you have to look for UID 0, not only the name root. Usually we have only the toor user (sh(1) or bash(1) instead of csh(1)), but anyone is free to add any other name with UID 0.
To go even further, no pattern is needed,And it should be emphasized that all of those 7 items are optional. For example, if you don’ need that pattern stuff, you can write an awk script that consists only of one BEGIN clause (with all of the code inside), and nothing else.
{print $0}
is a valid though trivial awk(1) program.My favourite XMPP server is written in Lua:Not used, but put in all sort of places.
I think Lua's been very popular in the game development industry for about a decade, maybe because of it historically had an extremely open license
Yes, Lua is a little larger than FICL, but not by an order of magnitude.I know Forth was very portable and small which is why I thought it was quite well suited for a bootloader.
Lua is not quite as portable (still pretty good though) and not quite as small.
> ll /boot/loader_???
-r-xr-xr-x 1 root wheel 245·760 Jun 14 17:08 /boot/loader_4th
-r-xr-xr-x 2 root wheel 290·816 Jun 14 17:08 /boot/loader_lua
Whether it “needs” it is debatable. You can do without, but that makes certain things harder, less flexible and more error-prone.Is the bootloader really such a complex and large project that it needs such a full fledged scripting language?
We need beastie!Whether it “needs” it is debatable. You can do without, but that makes certain things harder, less flexible and more error-prone.
This is deprecated and unsupported:Well, as solution there is now tk/lua: https://www.lua.org/ddj.html
We need beastie!
echo 'beastie_disable="YES"' >> /boot/loader.conf
I find most young people who want to learn programming and computer usage are always looking for an easier way to get around having to do that. Those are the people who want to not learn C, math, science and are always on reddit or Stack Overflow looking for a framework or library that will do the work for them rather than understanding how things work.They need tougher discipline and to learn fundamentals.
always on reddit or Stack Overflow looking for a framework or library that will do the work for them
Aren't these the very ones who end up coding everything client-side in javascript.? They just copy/paste and hope it works...I find most young people who want to learn programming and computer usage are always looking for an easier way to get around having to do that. Those are the people who want to not learn C, math, science and are always on reddit or Stack Overflow looking for a framework or library that will do the work for them rather than understanding how things work.