Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
any1
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
any1
7y ago
According to "man vdso", futex is not in vDSO on any architecture. What eliminates the syscall cost is that it's rarely called due to elision. A mutex may try to spin more than a "couple of times" before it calls fu
62.
▲
Slowing Down a Stock Exchange with 38 Miles of Cable
(youtube.com)
1 points
by
any1
8y ago
|
0 comments
63.
▲
by
any1
8y ago
The quotes by Ronald Sagatun read like self-deprecating satire. It seems that the BBC are either clueless or in on it. In any case this should not be taken too literally.
64.
▲
Monitoring processes by abusing mutexes
(andri.yngvason.is)
4 points
by
any1
8y ago
|
0 comments
65.
▲
by
any1
8y ago
Thanks for sharing this, I will look into it. We have luajit on our system so this might be just what I need.
66.
▲
by
any1
8y ago
I do not think that I would mind so much having to re-compile between kernel versions if it's just a matter of running "make" and copying the binaries to the target.
67.
▲
by
any1
8y ago
My biggest grievance with BCC has been, as noted in the article, that it requires LLVM to be linked in. Also, it requires a Python interpreter on the target machine. I've also wondered why eBPF can't be pre-compiled. Installing th
68.
▲
by
any1
8y ago
I usually just let the branch predictor figure it out on its own.
69.
▲
by
any1
8y ago
A similar thing happened in Iceland a few years ago. Article is in Icelandic: https://www.mbl.is/frettir/innlent/2017/05/05/snaebjorn_daem...
70.
▲
by
any1
8y ago
I'm cross-compiling, meaning I'm not compiling on ARM. ;) It might be helpful though for 64 bit ARM, but my target architecture is 32 bit and because I need webengine I suspect that it will not compile on a 32 bit platform. The pr
71.
▲
by
any1
8y ago
Well, I've actually spent 3 days trying to get Qt5 to cross-compile for a custom arm platform. It might be easier for something common like the raspberry pi, but still, you may have dodged a bullet there. ;) The worst thing about cross
72.
▲
by
any1
9y ago
Yes, which is why I would always use the second example for the print function. Edit: In fact it is possible to handle the cases explicitly while enforcing types by having the X-macros call functions in the switch/case and declaring pr
73.
▲
by
any1
9y ago
Yes, this would work. I can see that variant may prove useful for the case that you present, but it is much less elegant for the usecase which the author tries to present. Edit: Replaced second "useful" with "elegant"
74.
▲
by
any1
9y ago
Sum types can actually be implemented quite effectively using X-macros in both C and C++. In fact, I feel like they're simpler and more intuitive than this variant stuff. Edit: Let's use the same example. #define SETTINGS \
75.
▲
by
any1
9y ago
The printing was only a simple example. A less contrived example would be to evaluate an AST. E.g. you would want the '+' operator to do different things for strings and numbers. Also, your visit function does not do exactly the s
76.
▲
by
any1
10y ago
I used this for my router: http://pcengines.ch/apu2.htm No complaints yet, except pfSense is not that great with Wifi. It's probably best to do wifi separately if you want to run a BSD flavour on it. I haven't tri
77.
▲
by
any1
10y ago
It's usually managers who buy the hype. They're the ones who need to be told to be sceptical. Nice post, by the way.
78.
▲
by
any1
10y ago
During my time as a systems programmer, I've gone from C to C++ to C again. At first, I didn't understand it so I feared it. Then I understood some of it, so I liked it. Finally, I understood most of it, so the mirage dissolved in
79.
▲
by
any1
10y ago
Exactly.
80.
▲
by
any1
10y ago
A few reasons: * It's easier to find people with JS skills than C++ skills * It takes ages to build Qt and it's unreasonably hard to compile. Building the Linux kernel is far less painful. * It takes ages to build a single Qt proj
81.
▲
by
any1
10y ago
I work at a company that's in the food industry. Currently, we're running Linux with Qt 4 on PowerPC. We're moving to a newer CPU (i.MX6 quad core). Freescale announced that they would continue manufacturing and supporting it
82.
▲
by
any1
11y ago
I made a "JSON parser generator" a few months ago. There is no memory overhead because it just puts the json data straight into a C struct while it's parsing. https://github.com/marel-keytech/jsoncc
83.
▲
by
any1
11y ago
nim has some sort of automatic cycle detection. You might want to look into how they do it. It doesn't hurt to check it out.
84.
▲
by
any1
11y ago
Excellent! I was hoping that the answer would be that there is no GC.
85.
▲
by
any1
11y ago
Does it have GC? Or does it perhaps use reference counting? Can it detect cyclic references?
86.
▲
by
any1
11y ago
s/everything/ready-made sandwiches/; I live in Iceland. The trick is to either prepare your own sandwiches or eat something else.
87.
▲
by
any1
11y ago
This works quite well on my Nvidia Shield Android TV. Now I just need a way to easily shift between the browser and the terminal.