Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tbodt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
tbodt
9y ago
> In fact, in Linux we did try C++ once already, back in 1992. > It sucks. Trust me - writing kernel code in C++ is a BLOODY STUPID IDEA. https://lkml.org/lkml/2004/1/20/20
242.
▲
by
tbodt
9y ago
Ah, that's because cmp_once doesn't yield a constant even when the inputs are constant. The reason that matters is there are some arrays in the kernel declared like int things[max(size1, size2)]; and there's been recen
243.
▲
by
tbodt
9y ago
If foo and bar are functions, foo() > bar() ? foo() : bar() can have a different result than int __x = foo(); int __y = bar(); __x > __y ? __x : __y
244.
▲
by
tbodt
9y ago
The most insane macro in that is this monstrosity: #define __is_constant(x) \ (sizeof(int) == sizeof(*(1 ? ((void*)((long)(x) * 0l)) : (int*)1))) If x is a compile-time constant, (void* )((long)(x) * 0l) is equivalent to NULL,
245.
▲
Dependency hell is NP-complete
(research.swtch.com)
3 points
by
tbodt
9y ago
|
0 comments
246.
▲
by
tbodt
9y ago
I have my browser set to only accept first party cookies, does this help?
247.
▲
Show HN: Spectre POC: Arbitrary read from another process
(github.com)
1 points
by
tbodt
9y ago
|
0 comments
248.
▲
Show HN: Spectre POC: Reading from another process
(github.com)
2 points
by
tbodt
9y ago
|
0 comments
249.
▲
by
tbodt
9y ago
Fun fact: if you press and hold the spotlight icon in the menu bar, the spotlight window is reset to its default position.
250.
▲
by
tbodt
9y ago
If you tried to look at the document and found that the entire internet has been screwing with the formatting, change "Suggesting" to "Viewing" in the top right. Seems like someone forgot to check permissions on the docu
251.
▲
by
tbodt
9y ago
https://github.com/lc-soft/LCUI/issues/127
252.
▲
by
tbodt
9y ago
Interesting that most of their showcase apps are antivirus apps.
253.
▲
by
tbodt
9y ago
...he wasn't joking.
254.
▲
by
tbodt
9y ago
Just fired up OBS and it turns out it was defaulting to software encoding, and I switched it to hardware encoding and it's now quite a bit smoother. Do you have your streamer program posted on GitHub or something? I want it.
255.
▲
by
tbodt
9y ago
How much of a speed boost did compositing the mouse cursor yourself get you? If it's big, I'd be really interested in hacking OBS to do this, so I can stream and use my computer at the same time.
256.
▲
Xcode build settings reference
(pewpewthespells.com)
2 points
by
tbodt
9y ago
|
0 comments
257.
▲
Studddent: Curated list of the best online student discounts
(studddent.com)
3 points
by
tbodt
9y ago
|
0 comments
258.
▲
by
tbodt
9y ago
Yes. Spectre2 can be and is being patched with a microcode update that partially disables branch prediction.
259.
▲
Vim plugin to automatically add debugging print statements
(github.com)
1 points
by
tbodt
9y ago
|
0 comments
260.
▲
by
tbodt
9y ago
The convention with the Python C API is to return a non-NULL pointer to a python object on success, and return NULL and set the exception global variable on error. Yes, global variables are also alive and well. PyObject *fout = _PySys
261.
▲
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
(en.wikipedia.org)
4 points
by
tbodt
9y ago
|
1 comments
262.
▲
by
tbodt
9y ago
no
263.
▲
by
tbodt
9y ago
This is written by the same guy who wrote Electrino, which was supposed to be a lightweight Electron replacement but never really caught on. So I'm not surprised that this has a lot of code from Electrino in the core. This is a great w
264.
▲
Regex was taking 5 days to run. So I built a tool that did it in 15 minutes
(medium.freecodecamp.org)
1 points
by
tbodt
9y ago
|
0 comments
265.
▲
Order pizza from Vim
(github.com)
61 points
by
tbodt
9y ago
|
18 comments
266.
▲
by
tbodt
9y ago
This is the first time I've seen IPFS-hosted content on HN for a reason other than that it is IPFS-hosted.
267.
▲
by
tbodt
9y ago
I just want this in vim.
268.
▲
Suspicious Package: An Application for Inspecting MacOS Installer Packages
(mothersruin.com)
2 points
by
tbodt
9y ago
|
0 comments
269.
▲
Hterm vs. xterm.js
(tbodt.com)
3 points
by
tbodt
9y ago
|
0 comments
270.
▲
by
tbodt
9y ago
Which is what makes it better.
More ›