343 karma · joined May 20, 2024 (2y ago) · 160 submissions
comment 1w ago · link · parent
comment 3w ago · link · parent
comment 2mo ago · link · parent
comment 2mo ago · link · parent
^1: kakoune doesn't have multi character shortcuts. You create a "mode" which works basically like a namespace for keystrokes (https://igor-ramazanov.github.io/doc/pages/modes.html).
13.
Stockfish 19(stockfishchess.org ↗)
279 points · by atiedebee · 2mo ago · 169 comments
comment 2mo ago · link · parent
comment 2mo ago · link · parent
> Unlike prose, where you usually read it linearly, with code you bounce around based on what connected elements you are exploring.
The moment you are jumping around a lot while reading, being able to understand the structure quickly becomes a major help. For example, dictionaries will have the words in a bold font while italicizing things like the plural etc.
comment 2mo ago · link · parent
And not all applications are performance sensitive. Something like UNIX's bc command would benefit more from having easier compatibility and a faster startup than more optimized allocators and string functions.
In the end, it ~doesnt even matter~ is all trade-offs. The nice thing is that it is up to the developer to make the decision of which libc to use, so everyone gets what they want.
comment 3mo ago · link · parent
comment 3mo ago · link · parent
AVX2 is actually 13 years (!) old already (first appearing in Intel's Haswell architecture).
AVX512 is also nearly 10 years old right now, but not many CPUs actually support it (none of the devices I own support it)
23.
Freestyle Linked Lists Tricks(nullprogram.com ↗)
1 points · by atiedebee · 3mo ago · discuss
comment 3mo ago · link · parent
Excuse me? This entire paragraph reads like the author has made the assumptions about the time complexity of the algorithms and pretends to discover them by simply timing the functions:
> List append tells a different story: 200,000 appends complete in 0.0071 seconds total, about 4e-08 seconds per operation, which is O(1) amortized.
1. You can't say anything about the time complexity after running the algorithm on a single input. This same exact reasoning would lead us to believe that sorting is O(1) per element because sorting the 200.000 elements took 0.5 seconds, which is 0.5/200000 seconds per element.
2. Even if we assume that we correctly measure list-append to be O(1), you can't just put "amortized" behind it without explaining how you get to that conclusion! Pushing to the front of a linked list is O(1), but that isn't an amortized time complexity.
I couldn't continue reading the article after that paragraph.
comment 3mo ago · link · parent
> At that point I had neither a server nor a phone
I don't know why I like it, I just do. Perhaps it is the slightly humorous tone. Anyways, nice article!
comment 3mo ago · link · parent
Sorry for rambling so much, I hope I got my point across.