Skip to contentSkip to conversation

Introduce i386 fibril scheduling

PATCH Al Boldi 1 participant 1 message Feb 6, 2007

lore
Share & tools
lore

Al Boldi

author
#0 lore raw
Quoted 10 lines · Linus Torvalds
Quoted 5 lines · Zach Brown

For syscalls, sure.

The kevent work incorporates Uli's desire to have more data per event. Have you read his OLS stuff? It's been a while since I did so I've lost the details of why he cares to have more.

You'd still do that as _arguments_ to the system call, not as the return value.

Quoted 7 lines

Also, quite frankly, I tend to find Uli over-designs things. The whole disease of "make things general" is a CS disease that some people take to extreme.

The good thing about generic code is not that it solves some generic problem. The good thing about generics is that they mean that you can _avoid_ solving other problems AND HAVE LESS CODE.

Yes, that would be generic code, in the pure sense.

Quoted 3 lines

But some people seem to
think that "generic" means that you have to have tons of code to handle all the possible cases, and that *completely* misses the point.

That would be generic code too, but by way of functional awareness. This is sometimes necessary, as no pure generic code has been found.

What's important is not the generic code, but rather the correct abstraction of the problem-domain, regardless of it's implementation, as that can be conveniently hidden behind the interface.

Quoted 3 lines

We want less code. The whole (and really, the _only_) point of the fibrils, at least as far as I'm concerned, is to *not* have special code for aio_read/write/whatever.

What we want is correct code, and usually that means less code in the long run.

So, instead of allowing the implementation to dictate the system design, it may be advisable to concentrate on the design first, to achieve an abstract interface that is realized by an implementation second.

Thanks!

--
Al