News for hackers. Stuff that matters.
Re:Ntimed – NTPD replacement by rtpg on Sunday December 21, 2014 @10:30PM (#8781834)
Can you explain why abstraction is bad? Abstraction does _not_ mean your program will be slower. In fact, the opposite can happen, because the compiler has more context to work with, and can get rid of stuff.

Haskell + stream fusion gives better results than well tuned C in some very typical situations http://research.microsoft.com/en-us/um/people/simonpj/papers...

Even just comparing C++/C, C++'s templating mechanisms mean that generic containers can be optimised on a per-type basis.

Abstraction and overhead are not as tightly coupled as they used to be, and not introducing Heartbleed-style bugs is worth a lot in my opinion

Re:Ntimed – NTPD replacement by phkamp on Monday December 22, 2014 @04:03AM (#8782508)
Abstractions are certainly not "bad", there are many abstractions in Ntimed, it's also pretty object-oriented if you care to take a look.

This is more a matter of "the right language for the job" and for timing-critical systems programming running as root, that language is C.

And there are plenty of common abstractions I would love see added to the C language: basic linked lists, byte-endianess and packing for struct members, validity intervals for integers and FP variables (like Ada!)

Unfortunately my taste seems to be the direct opposite of ISO-C which have instead wasted time giving us another thread-API.

Re:Ntimed – NTPD replacement by saosebastiao on Monday December 22, 2014 @01:09AM (#8782211)
The problem with abstraction is that in order to deterministically control performance, you have to break down all the walls of the abstraction anyway. If I'm not 100% confident that my compiler will optimize a vector op with SIMD, and I absolutely require SIMD performance, then I end up having to know the entire layer cake to be able to verify that it is doing exactly that.

In most cases it isn't a bad thing at all. But a use case like a timekeeping daemon, where a single unexpected garbage collection pause could cause a world of problems, it most definitely is more pain than gain.

Re:Ntimed – NTPD replacement by nwmcsween on Monday December 22, 2014 @01:06AM (#8782206)
Abstraction in my definition is hiding of complexity and it does just that.