Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
badmintonbaseba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
badmintonbaseba
2y ago
git bisect --first-parent
92.
▲
by
badmintonbaseba
2y ago
git bisect supports --first-parent, no need to squash if you just merge.
93.
▲
by
badmintonbaseba
2y ago
Too much growth can be a problem too, according to this other article strings are at most 255 bytes long: https://retro64.altervista.org/blog/garbage-collection-commo... Which would limit the loop to 1 + 2 + 4 ... 128
94.
▲
by
badmintonbaseba
2y ago
Ah, yes fixing problems of one specific language at the protocol layer (and violating the spec). JSON isn't inherently limited to 2^52, JSON parsing in some languages and libraries are.
95.
▲
by
badmintonbaseba
2y ago
The error is coming from a WinRT header, not something they can easily control. It's similar to having something like `#define string(x) something` and then including <string>.
96.
▲
by
badmintonbaseba
2y ago
My mistake.
97.
▲
by
badmintonbaseba
2y ago
I just skimmed through the proposed wording in [N3322]. It looks like it silently fixes a defect too, NULL == NULL was also undefined up until C23. Hilarious. [N3322] https://www.open-std.org/jtc1/sc22/wg14/ww
98.
▲
by
badmintonbaseba
2y ago
Still technically UB according to the proposed wording. The proposed wording only deals with allowing null pointers explicitly.
99.
▲
by
badmintonbaseba
2y ago
Maybe a working quantum algorithm for weather prediction would outperform currently used classical simulations, but I wouldn't expect it to be bang on every time. Inputs are imperfect. So at best you could benchmark it, and gain some c
100.
▲
by
badmintonbaseba
2y ago
To be able to reversibly encode an N-trit ternary number into an M-bit binary number, the number of possible N-trit numbers must be less or equal to the number of possible M-bit binary numbers. Otherwise there would be two input ternary num
101.
▲
by
badmintonbaseba
2y ago
Your argument hinges on my work being more profitable than a care assistants. While that's maybe true, the difference showing in GDP is not the difference of profitability or "value" in our work. What if I'm a care assis
102.
▲
by
badmintonbaseba
2y ago
Works without, although the "conversations" are somehow quite depressing.
103.
▲
by
badmintonbaseba
2y ago
I'm not seeing python creating a self-pipe for `loop.add_signal_handler`. edit: Oh, it uses `signal.set_wakeup_fd`, interesting. https://docs.python.org/3/library/signal.html#signal.set_wak... edit2: it looks
104.
▲
by
badmintonbaseba
2y ago
I wonder how this fails then: import asyncio import os import signal import sys async def get_stdin_reader(): loop = asyncio.get_running_loop() reader = asyncio.StreamReader() protocol = asyncio.StreamRea
105.
▲
by
badmintonbaseba
2y ago
It's interesting that waiting on a signal and a pipe read at the same time is the hard part. Would be interesting to track down how this happens to be implemented if you do this from a higher level async framework, like python's a
106.
▲
by
badmintonbaseba
2y ago
Owning your music files doesn't necessarily imply that you have to by them physically on CDs. Of course the music you are interested in might not be available in your preferred format or on your preferred streaming platform.
107.
▲
by
badmintonbaseba
2y ago
shift + mouse scroll for horizontal scroll works too, at least on Firefox.
108.
▲
by
badmintonbaseba
2y ago
So this works by intercepting file-related syscalls. Does it intercept io_uring?
109.
▲
by
badmintonbaseba
2y ago
Nowadays you have unprivileged options with mount namespaces. And from an unprivileged user namespace you can probably invoke chroot just fine as "root". `chroot`, the function, has probably some baggage that makes it impossible t
110.
▲
by
badmintonbaseba
2y ago
Invalid UTF-16 with unpaired surrogates. Or rather WTF-8 is an alternate encoding of UCS-2. The subset of UCS-2 that is valid UTF-16 encodes to valid UTF-8 when encoded with WTF-8. The encoding is invertible, valid UTF-8 decodes to valid UT
111.
▲
by
badmintonbaseba
2y ago
You can use `unique_ptr` with a custom deleter for wrapping C libraries. using snd_pcm_T = std::unique_ptr< snd_pcm_t, decltype([](void* ptr){snd_pcm_close(ptr);}) >; auto pcm_handle = snd_pcm_T(snd_pcm_open(...));
112.
▲
by
badmintonbaseba
2y ago
Use-after-free (or reference/iterator invalidation in general) is the main issue. RAII doesn't help there at all. RAII helps with deterministically cleaning up resources, which is important, but barely related to safety.
113.
▲
by
badmintonbaseba
2y ago
Well, can't really blame them in 2012. Especially that C++11 did bring an ABI break. Looks like they keep it fresh, although C++17 is getting a bit dated. Migration from C++17 to 20 or even 23 is probably a breeze though compared to mi
114.
▲
by
badmintonbaseba
2y ago
Keyword is "sane". You can probably count all "sane greenfield C++ startups" on one hand.
115.
▲
by
badmintonbaseba
2y ago
The expressiveness of const generics (NTTPs) in C++ wouldn't go away if it adopted lifetime annotations and "safe" scopes. It's entirely orthogonal. Rust decided to have more restrictive generic programming, with the ben
116.
▲
by
badmintonbaseba
2y ago
I would prefer something like `{"name": contains("k")}`, where contains("k") returns an object with a custom __eq__ that compares equal to any string (or iterable) that contains "k". Then you can just
117.
▲
by
badmintonbaseba
2y ago
> If you let the user arrange their icons in the preferred shape, for each screen resolution they use, and save that, the problem is solved. Users normally place their icons using a given, single resolution, so that would only give you o
118.
▲
by
badmintonbaseba
2y ago
But can you arrange by p**s? https://www.youtube.com/watch?v=uRGljemfwUE
119.
▲
by
badmintonbaseba
2y ago
Is "send later" a simple function? It's probably avoided, because it's unintuitive. I assume you need to have your client running at the scheduled "send later" time (unless there is some obscure SMTP extension)
120.
▲
by
badmintonbaseba
2y ago
It's neat to explore how Gaussian splats represent different optical phenomena, like how the reflections seen in the eyes are represented as splats suspended within the object, with the surface of the eye being semi-transparent.
More ›