Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ogoffart
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
241.
▲
by
ogoffart
9y ago
https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headline... > "Any headline that ends in a question mark can be answered by the word no."
242.
▲
by
ogoffart
9y ago
Similarily, I made a couple of year ago a UTF8 decoder using SIMD. It is almost branchless. (The branches are there only to detect errors) https://woboq.com/blog/utf-8-processing-using-simd.html
243.
▲
by
ogoffart
9y ago
New inspection tools showed micro fissures. The power plant was stopped as a precaution. Then further investigations showed that these have always been there and are not evolving. It was safe all along, that was a false alarm. The power pla
244.
▲
by
ogoffart
10y ago
Again someone who relies on undefined behavior. Casting pointer of wrong alignement is not a platform specific behavior, it's an undefined behavior. Relying on it is an error. The author did not know "What Every C Programmer Shou
245.
▲
by
ogoffart
10y ago
There is also https://woboq.com/blog/verdigris-qt-without-moc.html
246.
▲
by
ogoffart
11y ago
The color theme is based on KDevelop's theme, which happen to be my favorite IDE. I find color really helpfull while reading code since they each have a different to which you quickly get used. But there are other themes that one can c
247.
▲
Show HN: Online C/C++ Code Browser
(code.woboq.org)
72 points
by
ogoffart
11y ago
|
21 comments
248.
▲
by
ogoffart
12y ago
2. No. Because most allocations by the kernel are not a result of the program calling malloc. (They can be the result of a pagefault when the program tries to write on some memory)
249.
▲
by
ogoffart
12y ago
One word: convenience. You can do object oriented programming in C, so one does not "need" C++? moc allowed a nice syntax for signal and slot (invented at a time in which C++ compilers did not support templates). And now it allows
250.
▲
by
ogoffart
12y ago
The transparent queueing is implemented by the Qt library (with QObject/QEventLoop). Technically, queueing does not rely on moc. (moc is needed for implementing signals)
251.
▲
by
ogoffart
14y ago
Imagine you have a gene that will make half of your kids very strong, but unable to reproduce. Because of the tendency to protect the familly, your strong kids might help their sibilings to survive and reproduce, propagating their genes. An
252.
▲
by
ogoffart
14y ago
I made it simpler (and slightly more portable ;-) ) : typedef void* (*f)(); extern void* apply(void* func, void** args, size_t argc) { switch (argc) { case 0: return ((f)(func))(); case 1: return