Viewing profile — thrwyexecbrain
thrwyexecbrain
HN member- Joined
- Mon, Feb 22, 2021, 6:18 PM UTC
- HN karma
- 89
- Public activity
- 23 items
- HN profile
- View on Hacker News ↗
About thrwyexecbrain
No profile information was provided.
Recent public activity
-
comment
Comment #48730324
"Dot" in zig is a placeholder for types that can be unambigously inferred from the surrounding expression. So ".unknown" is a standin for "SomeEnum.unknown" or "SomeStruct.unknown"…
-
comment
Comment #47064896
The Zig maintainers clearly think that keeping up with the undocumented native API is less headache than using the documented but notoriously inelegant win32 API. This might very w…
-
comment
Comment #46159503
Overcommit only matters if you use the system allocator. To me, the whole point of Zig's explicit allocator dependency injection design is to make it easy to not use the system all…
-
comment
Comment #46068729
Do the arguments have to be strong? I do not think they need to provide any justification. If the core developers decided that they would be more happy (or less miserable) with a d…
-
comment
Comment #44552303
I miss the mention of boost::asio in this thread. At first glance this new Io interface feels not that dissimilar to it: Both are generic interfaces over an event loop/executor sup…
-
comment
Comment #44548924
Having a limited number of known callees is already better than a virtual function (unrestricted function pointer). A compiler in theory could devirtualize every two-possible-calle…
-
comment
Comment #44467480
I think you just initialize Reader and Writer with a zero-length buffer.
-
comment
Comment #44464908
Just to start some discussion about the actual API and not the breaking change aspect of it: I find the `Reader.stream(writer, limit)` and `Reader.streamRemaining(writer)` function…
-
comment
Comment #43917239
Nothing fancy, I found that one can do almost anything with std::vector, a good enough hash map and a simple hand-rolled intrusive list.
-
comment
Comment #43909187
The C++ code I write these days is actually pretty similar to Rust: everything is explicit, lots of strong types, very simple and clear lifetimes (arenas, pools), non-owning handle…
- comment
-
comment
Comment #41081247
For me, someone from outside the Anglosphere, the British Empire is a distant and unfamiliar concept. I am always bothered by characters in historical fiction speaking with a Briti…
-
comment
Comment #40896044
One downside of this approach is that the tested code itself has to be modified to accomodate the testing code. I think the same could be achieved by launching two threads and sing…
- story
-
comment
Comment #39555605
I would absolutely not recommend auto-formatting a legacy codebase. In my experience large C++ projects tend to have not only code generation scripts (python/perl/whatever) but als…
-
comment
Comment #38761283
The Internet Speculative Fiction Database is a great resource for publication details of fiction stories. Here is the entry for The Star: https://www.isfdb.org/cgi-bin/title.cgi?40…
-
comment
Comment #38761252
I was about to comment that the correct plural form of nova is novae, but it looks like dictionaries say that both novae and novas are correct. The irregular case does seem to pred…
-
comment
Comment #38694151
Despite absolutely loving chess as a child, I never studied it professionally, and I did not even play a single game after primary school. A couple of years ago I stumbled upon a c…
-
comment
Comment #37340050
In Calibre (the ebook management software) there are two fields: "author name" and "author sort name", both free-form text. The latter serves as the sort key when the books are ord…
-
comment
Comment #30594087
The sizeof(variant) example is wrong. An extra byte is needed to store the discriminator value, which in practice results in 8 extra bytes for these particular types because of ali…
-
comment
Comment #28263995
In Bash (not every shell supports this) functions can be exported, which enables this nice pattern with xargs: myfunc() { printf " %s" "I got these arguments:" "$@" $'\n' } export …
-
comment
Comment #27332475
This wikipedia article is not very accurate. In Hungary "informatika" is usually used only for primary/secondary school subjects covering every-day IT tasks like document editing, …
-
comment
Comment #26228739
Your comment reminded me of a clever and well-written short story called "Understand" by Ted Chiang. > We could fuzz it and see if we can crash a brain. Sadly, this we already know…