• 0 Posts
  • 273 Comments
Joined 3 年前
cake
Cake day: 2023年6月15日

help-circle











  • It isn’t really so strange that they aren’t used, if you think about it. Floating point is subject to fuzziness in the last several digits, and you can’t guarantee that a given value is going to round the same way when you’re dealing with multiple arches (or even multiple versions of what’s nominally the same arch, since optimizations change over time). Undefined behaviour is nasty. Floating point is useful for many things, but I’d keep it out of a cross-platform system kernel unless I liked hard-to-diagnose bugs.







  • It’s possible—I’ve used Perl scripts to pull data automatically out of email attachments stored in a maildir setup, and you should be able to pick commands out of a plain-text email body with a scripting language even more easily—but I will add my voice to the chorus that’s saying you should look into any other method you can find before settling on this. If it turns out you must proceed along these lines, think long and hard about security.


  • You should be able to set up the system to autologin on startup and then run commands from the auto-logged-in user’s .bash_profile, if you can reduce what you want to do to a script. You’d probably want to specially set up a user for this, to reduce security risks.

    (I just stood up a weird little Gentoo media PC that does approximately this—logs a user in on startup and then runs startx from .bash_profile to make it easier to use with no keyboard attached and no DM. You’d just want to put a different command in instead.)