Hacker News
new
past
comments
ask
show
jobs
points
by
dboon
14 hours ago
|
comments
by
NetMageSCW
3 hours ago
|
next
[-]
So every program using sp has to re-invent malloc or multiple copies of their own bespoke allocator and this is supposed to be a good idea?
reply
by
dboon
1 hours ago
|
parent
|
[-]
The library provides a few basic allocators.
reply
by
feelamee
11 hours ago
|
prev
|
[-]
q> sp_log() writes directly to an IO writer. An IO writer can be buffered or unbuffered, but is unbuffered by default. This is a feature, not a bug. Have a look through the IO code!
Why is the unbuffered default? Is there any thoughts on this?
reply
by
voakbasda
7 hours ago
|
parent
|
[-]
A buffered file may not be fully written to disk if the program exits suddenly. That’s generally a highly undesirable trait for a log file.
reply
by
Retr0id
5 hours ago
|
parent
|
[-]
Line buffering solves this
reply