Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samatman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
901.
▲
by
samatman
2y ago
This is also the dry earwax gene, which makes a certain intuitive sort of sense. It dramatically reduces the amount of lipids in sebum, which is what odor-producing bacteria in the armpits feed on. It's also a recent mutation which ha
902.
▲
by
samatman
2y ago
> As a baseline, I support developers using whatever license they would like, and targeting whatever operating systems, indeed, writing whatever code they would like in the process. > That doesn't make this specific policy a g
903.
▲
by
samatman
2y ago
You're right, it isn't arbitrary. I removed that word from the post and edited it to express my opinion more clearly.
904.
▲
by
samatman
2y ago
Apple releases a great deal of open source software, which, so far as I'm aware, all runs on Linux as well. At least Swift, clang, and LLVM, all run on Windows as well. So does their Objective C compiler, so of Apple's programm
905.
▲
by
samatman
2y ago
Rust includes a great deal of undefined behavior, unlocked with the trustme keyword. Ahem, sorry, unsafe. If only... So if we're going to be pedantic, it's safe Rust which has defined semantics for basically everything. A consid
906.
▲
by
samatman
2y ago
I was interested in Hare until I found this immensely self-defeating FAQ item: https://harelang.org/documentation/faq.html#will-hare-suppor... As a baseline, I support developers using whatever license they would like,
907.
▲
by
samatman
2y ago
Perhaps there's some difference between bookshelves and weeks, such that the weekend both serves as bookends to the week proper, and is yet contiguous?
908.
▲
by
samatman
2y ago
More like that, yes. Rust has two general-purpose mechanisms, generics and enums, which are combined to handle Optional and Result types. Zig special-cases optional types with `?type` (that is literally the type which can be a type or null)
909.
▲
by
samatman
2y ago
Seems to hold for vehicular accidents as well. https://injuryfacts.nsc.org/motor-vehicle/road-users/dispari...
910.
▲
by
samatman
2y ago
Did you miss the stat directly underneath that? > Heating and other energy-intensive water uses in homes and businesses make up almost 90% of water-related energy use, while treatment, pumping, and conveyance of water and wastewater acc
911.
▲
by
samatman
2y ago
Zig does not have exceptions, what it has is error sets. It uses the words try and catch, which does cause confusion, but the semantics and implementation are completely different. If a function has an error type (indicated by a ! in the re
912.
▲
by
samatman
2y ago
It's 100% a key feature of Zig. Culturally, if it allocates, then it takes an allocator as an argument. C simply doesn't work that way. You could write C that way, but people don't. I've written reasonable amounts of
913.
▲
by
samatman
2y ago
I think it's critical that we do annotate it as a special multiply. If wraparound is ok for that particular multiplication, tell the compiler that . As a sibling comment says, this is seldom the case, but it does happen, in particula
914.
▲
by
samatman
2y ago
Worth noting that Zig has ReleaseSafe, which safety-checks undefined behavior while applying any optimizations it can given that restriction. The more interesting part is that the mode can be individually modified on a per-block basis with
915.
▲
by
samatman
2y ago
Some differences: the standard doesn't guarantee that C++ bitfields will be densely packed (this is mostly a technicality), you can't have non-const bitfields, and you can't take a pointer to a bitfield. Zig's pointer-t
916.
▲
by
samatman
2y ago
Zig, a language which is explicitly aimed at the same domain as C, has an improved semantics for all of these things. If a pointer can be null, it must be an optional pointer, and you must in fact check before you dereference it. This is w
917.
▲
by
samatman
2y ago
Something I've been greatly enjoying in using Zig is builtin support for packed bitfields in the form of packed structs. The data structure from the article would be: const RGB = packed struct(u16) { b: u5,
918.
▲
by
samatman
2y ago
You're giving me absolutely terrible comp.lang.lisp flashbacks here.
919.
▲
by
samatman
2y ago
Some tools are closer to being identities than others. Being a 'vim user' is more like being a Dvorak user, it lives in muscle memory. 'vim user' is overloaded here, it colloquially means "user of the vim text editi
920.
▲
by
samatman
2y ago
It's your project to run as you please, of course. My guess is that the attacks you draw will skip any basis in technical merit and land directly on the tone, proceeding on an emotional basis. We have an n=1 here with plenty of that b
921.
▲
by
samatman
2y ago
In case you would like to be less (or more) confused, this is an application of Tree Notation, by the same author https://treenotation.org/ I suffer from the same flaw as the author, a tendency towards grandiosity and fervo
922.
▲
by
samatman
2y ago
If a cache doesn't have cache invalidation, it isn't a cache, it's a database.
923.
▲
by
samatman
2y ago
> However this does not mean C++ is an insane language. It means it has quirks. Any sufficiently quirky technology is indistinguishable from insanity. https://yosefk.com/c++fqa/index.html
924.
▲
by
samatman
2y ago
I have sgpt installed and configured and use it practically every day. Great tool, almost magic when it works right (four out of five, maybe?). Less time reading tldr, man pages, browsing for random breadcrumbs, more time doing things. I re
925.
▲
by
samatman
2y ago
Decidability is whether one can statically determine if an algorithm halts for a given input. NFAs halt for all inputs, by construction.
926.
▲
by
samatman
2y ago
It wasn't a comment about motivations, but rather, benefit. Sailors fairly clearly benefit from not being on a ship which catches fire. If you'd like to add the financial balance of owners and builders to the benefit side, feel fr
927.
▲
by
samatman
2y ago
I find it rather distasteful that the author chose to drag in an unsupported theory about Phong's tragic illness and death. The school cited was several miles from the closest of the three locations mentioned (Tan Son Nhut), and the m
928.
▲
by
samatman
2y ago
This might be true in fact, if asbestos use is limited to applications where it's the obvious best choice. But it's uncomfortable to run a simple utilitarian calculus when, as in this case, the groups it benefits (sailors) and tho
929.
▲
by
samatman
2y ago
Not silent, but not either of the L sounds in English, /l/ as in lever and and /ɫ/ as in trouble. It's the ll in Welsh, /ɬ/ in IPA. If you pronounce it /t/ you'll be closer than /tɫ
930.
▲
by
samatman
2y ago
Reading along with great enjoyment, until I got to the part where the author is photoshopping and editing a component diagram of the D19 to get more manufactured. I think to myself, "how strange! even if the manufacturer isn't wil
More ›