IRC channel logs
2021-10-07.log
back to list of logs
<oriansj>stikonas: thank you. I guess I was too tired to notice that. <stikonas>anyway, I've got the next interesting thing <stikonas>fossy, oriansj: do you want conditionals in kaem? <oriansj>well with it we could enable the use of kaem scripts for mescc-tools and M2-Planet tests. <stikonas>it's not 100% nice with output in --verbose mode but not too bad <stikonas>if I have else block, it echos just else but nothing after else <oriansj>the old_VERBOSE might not be the right way. <stikonas>well, even with this PR conditionals are not fully useful as one needs test command... <oriansj>break it into 2 loops, one for the if and one for the else (if it exists) <stikonas>probably can't do much more with kaem without requiring extra syscalls <stikonas>globs need opendir, $() needs dup2. for loops might not need extra syscalls but tricky to implement with current design (kaem reads line by line) <oriansj>stikonas: absolutely true. kaem was never designed for half the things it does. They kind of grew organically. <oriansj>So the question becomes should we continue to extend kaem or should we pick up a better shell? <stikonas>but I don't know if we want something between bash and kaem <stikonas>but we should definitely keep a shell (kaem) that requires minimal number of syscalls <stikonas>I don't remember what was the issue with it that prevented it from being included into live-bootstrap <oriansj>it wasn't buildable previously as if I remember correctly. <oriansj>but that is the problem with shell interpreters. <oriansj>They are very heavy in syscalls required and can easily turn into unmaintainable messes <stikonas>well, I started working on if/else cause that might be useful for multiple arch support... <oriansj>get_machine -if x86 -exec "./kaem -f foo" <stikonas>if we just define ARCH="whatever" in initial kaem.arch <stikonas>although, initial kaem.arch is kaem-minimal <stikonas>well, actually we can define after we build full kaem <oriansj>but kaem might benefit from being able to do: ./kaem -f foo.$(get_machine) <stikonas>hence I'm thinking of just defining it as env variable <oriansj>well extending kaem to have access to the uname data would be trivial <fossy>stikonas[m]: conditionals would be nice it was ob my todo list a while ago <oriansj>pabs3: well the last 3 proposals were rejected. So I think I need to make a much better proposal to get accepted. <stikonas>fossy: if you have some spare time maybe review my kaem PR?