Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
haberman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
541.
▲
by
haberman
6y ago
Is there any more toxic label you can attach to a person in contemporary America than "racist?" Is there any accusation -- outside of actual crimes -- more likely to cause a person to lose opportunities, social connections, or sta
542.
▲
by
haberman
6y ago
Is it just an American thing? I remember seeing this commentary by a British poet: https://www.huffpost.com/entry/hollie-mcnish-breastfeeding-i...
543.
▲
by
haberman
6y ago
That seems a bit of an overstatement. Calls to sometimes-unavailable functions are but one of the many uses of comptime. It seems entirely possible that lazily-analyzed blocks or functions could be demarcated syntactically (eg. "lazy
544.
▲
by
haberman
6y ago
> I am not aware of even research languages taking the idea of general-purpose partial evaluation not through syntax macros to the same lengths as Zig One that comes to mind is Terra: http://terralang.org/ In retrospect
545.
▲
by
haberman
6y ago
I'm not sure how my statement was a misunderstanding if you are confirming that function analysis is in fact lazy.
546.
▲
by
haberman
6y ago
I agree it's an idea that seems so natural in retrospect that I'm also curious why it hasn't traditionally been more popular. One possible reason that comes to mind is that an imperatively-constructed type is harder to stati
547.
▲
by
haberman
6y ago
Neat concept. Exploring the difference between what successfully compiles vs. what won't seems like a great way of getting more familiar with the language. I've written a little over 1,000 lines of Zig at this point and I really
548.
▲
by
haberman
6y ago
Hmm, it appears that the top byte on arm64 is only ignored if TBI (Top Byte Ignore) is enabled. I don't think pointer signing requires TBI though. Pointer signing uses the PAC instruction to sign a pointer, and the AUT instruction to v
549.
▲
by
haberman
6y ago
Is there any trait that is strongly linked to a single gene? Whenever I hear a news article that there is no X gene, I am completely unsurprised. The idea that a single gene would uniquely determine a particular trait, as if it were a va
550.
▲
by
haberman
6y ago
> 20-something haircut's ostensible work I read your comment as "I am so emotionally invested in this caricature that I cannot tolerate hearing it humanized. The caricature must stand, or I lose something." I know very li
551.
▲
by
haberman
6y ago
Call me crazy but I thought the idea is that banks would use deposits to fund loans and kick some of the profit back to the account holder in the form of reasonable interest rates. That seems capital efficient to me, but it's apparentl
552.
▲
by
haberman
6y ago
The statement you quoted is a good statement, I agree. And maybe the ACLU is re-finding its way. But the ACLU has changed, and it's not just me saying this, it's the former head of the ACLU: https://www.spiked-online.co
553.
▲
by
haberman
6y ago
How is it a "rhetorical gotcha" to ask what it would look like to consistently apply a proposed principle or law? Equal protection under the law is also a constitutional principle (I knew that one already, thanks), but it seems in
554.
▲
by
haberman
6y ago
Wow, what makes you prefer SolveSpace to FreeCAD or programmatic cad like CadQuery? What do you use it for?
555.
▲
by
haberman
6y ago
There has been plenty of liberal, non-figurative burning down just in the last year. For example: https://www.theguardian.com/us-news/live/2020/may/31/george-... https://www.washingtonpo
556.
▲
by
haberman
6y ago
> Essentially, Zig being the "Go" of C/C++/Rust/D. I'm not sure that's a fair comparison, as Zig features compile-time evaluation ("comptime") that supports first-class types. Generics falls o
557.
▲
by
haberman
6y ago
I don't think it will be a new syntax, just an attribute on existing syntax, eg. [[clang:musttail]] f(a, b); or: [[clang:musttail]] return f(a, b); > Also, may I suggest that it runs destructors prior to the jump r
558.
▲
by
haberman
6y ago
> It impacts neither syntax nor semantics of a language It impacts the correctness of algorithms. For some algorithms it's the difference between using O(1) stack space and O(n) or more, where the latter would blow the stack and ef
559.
▲
by
haberman
6y ago
> either TCO is a defining feature of the language, or a best-effort optimization that nobody should rely on. I think a third option is that tail calls are only guaranteed if you add a special attribute (eg. [[musttail]]) and that attrib
560.
▲
by
haberman
6y ago
> It's worth something because the conditions of the system aligned its interest with that outcome, not because of some direct preference of the populace. You make it sound as though "the system" is a sentient agent that a
561.
▲
by
haberman
6y ago
> Our current economic system defines economic productivity to be the thing that generates the highest economic returns according to the rules of the system. If by "the rules of the system", you mean the idea that things are wo
562.
▲
by
haberman
6y ago
For a long time I've wanted to create an Android/iOS app called "Sample Me" or something similar, for collecting exactly this kind of data about yourself. You design a survey with whatever data you want to collect, then
563.
▲
by
haberman
6y ago
Yes, protobufs are a very interesting and fulfilling technology to work on, but also frustrating because there is so much API exposure that changing any existing API is like trying to run through molasses. A clean break a la proto1->pro
564.
▲
by
haberman
6y ago
> This is how the best technologies are usually made, not by academically trying to perfect everything, but by banging out something that works and running with it to solve real problems. I think this is a really important point. I don&
565.
▲
by
haberman
6y ago
I used my tool Bloaty, which parses the ELF and DWARF information in the binary: https://github.com/google/bloaty
566.
▲
by
haberman
6y ago
> Everything is just inline, except when messages can be recursive (which should be rare for most protocols). Many messages are have lots of optional sub-message fields, and set only a few of them in any given message. These messages wo
567.
▲
by
haberman
6y ago
> I'm was quite surprised you didnt offer your own stringview implementation (or something similar) the last time I looked at protobuf. We sort of do actually: https://github.com/protocolbuffers/protobuf/bl
568.
▲
by
haberman
6y ago
Hey that reminds me, I've always wondered: how did it come to be that delimited encoding "won" for sub-messages and group encoding was deprecated? A lot of these problems would go away if things had gone the other way. Group
569.
▲
by
haberman
6y ago
> make apologies from authority (after all, Google can't do anything wrong, right?) That's not my position at all. In my other comment ( https://news.ycombinator.com/item?id=25586447 ) I explain how I've sp
570.
▲
by
haberman
6y ago
> Don't people use pb so they do not have to deal with JSON? I think that's one reason, but there are others too, like getting generated type-safe accessors and an explicit schema. I've sometimes used protobuf for this re
More ›