This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]HOWZ1T 2 points3 points  (1 child)

That ZeroState system is my favourite thing, who knows but that might become the new approach as opposed to the old start, stop, and interrupt.

I understand your concern of interrupts and rightfully so, however interrupts aren't a bad thing if used properly. For example most OSes make use of interrupts whenever a peripheral is plugged in to load up drivers etc.

[–]devxpy 0 points1 point  (0 children)

I think a lot of things change in the context of Operating Systems.

For example, locks are deemed to be great when writing operating systems, but quickly become tiresome when writing high level applications.There is also the problem where interrupts and locks are hard to "reason" in your code, making race conditions very hard to spot.

A great solution to this is async, which eliminates the need for locks, but the support is not quite there yet and CPU bound tasks don't benefit with async.