• 0 Posts
  • 22 Comments
Joined 2 years ago
cake
Cake day: April 13th, 2024

help-circle





  • Kazumara@discuss.tchncs.detolinuxmemes@lemmy.worldmeme
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 month ago

    I reckon it works a bit like Unix.

    But seriously unless you’re a systems engineer with 15 years of experience you probably don’t know how any popular OS works (note, I’m not either, I don’t know shit). They are huge beasts with astonishing complexity.

    I spent a semester writing a microkernel OS with three other students. We got the init sequence working, memory management working, a shell accessible over UART, FAT32 on an SD card, a little bit of network, and a minimal HTTP server for the demo. And this was considered a big accomplishment worthy of top grades.

    And that’s only the scratching the surface of what makes an OS, just think of all the other things you need. Journaling filesystems, user and rights management, hundreds of drivers for devices and buses* full networking support, with dual stack, DNS, tunneling, wifi, then things like hibernation, sleep, power management in general, container and virtualization support, NUMA support, DMA support, graphical output, clocks and time sync, cryptography primitives and TPM support, etc etc

    *I did USB only for mass storage once, that also took me a semester, and I bet PCIe is much harder.




  • that’s just how they are made.

    Can confirm, even the little training compiler we made at Uni for a subset of Java (Javali) had a backend and frontend.

    I can’t imagine trying to spit out machine code while parsing the input without an intermediary AST stage. It was complicated enough with the proper split.



  • Leap years are each fourth year, except each hundredth year, except each thousandth fourhundredth year.

    1896 leap year
    1900 not leap year
    1904 leap year

    1996 leap year
    2000 leap year
    2004 leap year

    2096 leap year
    2100 not leap year
    2104 leap year

    Then you just arrange the 10 year window in different positions to overlap 1 to 3 leap years to reveal the three outcomes of the bug.

    - / - - - / - - - /
    - - / - - - / - - -
    - - 0 - - - / - - -

    - is a normal year, / is a leap year, 0 is an exceptional non-leap year.







  • This week I heard from a network group lead of a university hospital, that they have a similar issue. Some medical devices that come with control computers can’t be upgraded, because they were only certified for medical use with the specific software they came with.

    They just isolate those devices as much as possible on the network, not much else to do, when there is no official support and recertification for upgrading. And of course nobody wants to spend half a million on a new imaging device when the old one is still fine except for the OS of the control computer.

    Sounds like a shitty place to be, I pity those guys.

    That said, if you were talking about normal client computers then it’s inexcusable.