Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
afishhh
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
afishhh
6d ago
Set `/sys/kernel/mm/lru_gen/min_ttl_ms` at boot (see https://docs.kernel.org/admin-guide/mm/multigen_lru.html ). User-space OOM killers never really worked for me and imo are not a proper s
2.
▲
by
afishhh
6mo ago
> [..] only a mistake a human would make. Had I run my hand-written comment through a proofreading clanker [..] That's true, and I should've been less rude in my previous comment. Sorry. (Though note `nix eval` would've s
3.
▲
by
afishhh
6mo ago
> [ 8080, 9000 ] Fails to parse is what it does... Are we really living in times where people can't write a single (syntactically) well-formed line of code in a programming language they use? I understand this doesn't really ma
4.
▲
by
afishhh
7mo ago
If you are referring to class members in the JavaScript then those are private fields[1] [1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
5.
▲
by
afishhh
8mo ago
Brother. Your browser does not have the concept of breaking a line once it gets too long[1]. Your browser does not even shape text during layout and it renders text using a DrawString[2] function from a library that only applies kerning.
6.
▲
by
afishhh
8mo ago
https://github.com/chrisuehlinger/viberowser-go/blob/93f2638... Please stop using Acid3 as some holy grail that lets you say you built a browser. I have no idea how/if this passes Acid3 but this is not i
7.
▲
by
afishhh
8mo ago
> The Go version Where can I find the Go version?
8.
▲
by
afishhh
8mo ago
I'm going to fucking crash out if another person says they're making a browser and their inline layout does this shit[1] I swear to god. I held off on commenting on the last AI browser post because the author said "it's
9.
▲
Uploading SRV3 subtitles on YouTube got broken/disabled
(old.reddit.com)
3 points
by
afishhh
8mo ago
|
0 comments
10.
▲
by
afishhh
8mo ago
It seemingly did but after I saw it define a VerticalAlign twice in different files[1][2][3] I concluded that it's probably not coherent enough to waste time on checking the correctness. Would be interesting if someone who has managed
11.
▲
by
afishhh
8mo ago
> The other is this one: https://www.reddit.com/r/Anthropic/comments/1q4xfm0/over_chr... I took a 5-minute look at the layout crate here and... it doesn't look great: 1. Line height calculation i
12.
▲
by
afishhh
9mo ago
> Hundreds of other widely-used open source libraries don't. Correct me if I'm wrong but I don't think versioned symbols are a thing on Windows (i.e. they are non-portable). This is not a problem for glibc but it is very m
13.
▲
by
afishhh
9mo ago
I'm having a lot of trouble understanding what you're trying to convey. You say there's a difference from previous "speculation" but also that it's still speculation. Then you go on to write "ALREADY going
14.
▲
by
afishhh
10mo ago
It's not about collisions of the hash function itself. Every hashtable implementation will put the hash value through some sort of modulo because you generally don't want to waste memory storing the key 5726591 at index 5726591 in
15.
▲
by
afishhh
11mo ago
Exactly why I referred to drawing glyphs instead of characters :) There's even more depth one can go into here: subpixel positioning. To correctly draw glyphs that may be on subpixel positions, you need to rasterize and cache glyphs se
16.
▲
by
afishhh
11mo ago
> Drawing text isn't simple I agree, but even this article seems to oversimplify. > You can't really optimize texture copies much more. Did the author try packing the textures in an atlas? Texture atlases can improve perform
17.
▲
by
afishhh
11mo ago
There's a technique known as "NaN boxing" which exploits the fact double precision floats allow you to store almost 52 bits of extra data in what would otherwise be NaNs. If you assume the top 16 bits of a pointer are unused[
18.
▲
by
afishhh
11mo ago
Using non-printable characters to encode malicious code is creative, but I wouldn't say it "breaks our security model". I would be pretty suspicious if I saw a large string of non-printable text wrapped in a decode() function
19.
▲
by
afishhh
11mo ago
> Rust exceling at GUIs is a bit of a strech. I strongly agree with this. In particular the Rust GUI libraries I've looked at have text layout / rendering that is nowhere near what should be considered adequate today (imo). For
20.
▲
by
afishhh
1y ago
> I will mention that youtube has pretty good subtitle capabilities, even if they're rarely used. Yep, their srv3 format is very usable, although it is in many ways inferior to ASS (animations have to be done manually in discrete ti