Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hsn915
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
361.
▲
by
hsn915
4y ago
People will not like this, but the reason populations are shrinking is because women don't want to have many kids. Ask any modern woman, the majority view child rearing as a huge burden, and most would think three kids is way too much.
362.
▲
by
hsn915
4y ago
Highly suspect. I've been living in Japan for over 5 years. Never heard of this. I've even tried to casually mention while chatting with some of Japanese people I know about eating insects and they were all disgusted by it.
363.
▲
by
hsn915
4y ago
You are conflating two things: 1) The right to publish content that is not in line with mainstream politics 2) The right to spam replies against tweets of people you don't follow (directly or indirectly) for the purpsoe of marketing Th
364.
▲
by
hsn915
4y ago
> I guess I can't tell if you're talking hypothetically or giving a realistic alternative that designers can use today. I'm talking about a solution that the creators of Figma could have engineered.
365.
▲
by
hsn915
4y ago
You're thinking in terms of badly designed technologies you are familiar with. I'm talking just about a solution to the problem at hand: Instead of storing files on servers controlled by a 3rd party company (and calling it "t
366.
▲
by
hsn915
4y ago
If you're a company, this is solvable by making the files live in a server the company controls. If you're an individual this is obviously not a concern.
367.
▲
by
hsn915
4y ago
What is this, red herring, ad hominom, and straw man, all in one sentence? It's well established that most published research in Psychology and Sociology does not replicate. So there's that. If you don't want to accept that,
368.
▲
by
hsn915
4y ago
The exact opposite. Most published research is bogus. Not everything is physics or chemistry. Most things are actually not. I'd rather advice based on extensive experience and wisdom than "research shows that ...". Basically
369.
▲
by
hsn915
4y ago
I suppose for me it's the opposite: that's one of the attractive things about it. It doesn't just blindly accept the way things have always been done. > Cargo is best-in-class, but the build times for our monorepo convince
370.
▲
by
hsn915
4y ago
I found this out by just trial and error. Hold and walk until they sleep, then keep walking for 5-10 minutes, or just sit down for 10 minutes before laying them on the bed.
371.
▲
by
hsn915
4y ago
> They perform optimizing transformations which are guaranteed to preserve the behavior of valid programs. Some programs are considered invalid (those which execute invalid operations like out-of-bounds array accesses at runtime), and th
372.
▲
by
hsn915
4y ago
While that sounds abhorant to me, I can't think of a reason why you can't fit the odin compiler in there. Just have a step where the odin compiler is executed, and take its output and pipe it through the rest of the system.
373.
▲
by
hsn915
4y ago
> For the purpose of this example, let's say that the expensive computation is register-intensive but doesn't write any memory (so we don't need to get into alias analysis issues). Because it is register-intensive, our opt
374.
▲
by
hsn915
4y ago
The difference is that in the case of UB in C the compiler will say "aha! I will just assume this can never happen", where as with platform-dependent behavior, the compiler can never make such assumption, so has to be conservative
375.
▲
by
hsn915
4y ago
This requires macOS 12.5 but it doesn't seem like it's released? At least for my region? System preferences "Software updates" tab says I'm on the latest (12.4) and there are no updates for me to install. How am I s
376.
▲
by
hsn915
4y ago
No, the compiler is not "already" doing that. Odin uses the llvm as a backend (for now) and it turns off some of those UB-driven optimimzations (as mentioned in the OP). Some things are defined by the language, some things are def
377.
▲
by
hsn915
4y ago
This is neither here nor there. Suppose you have a "working theory" about how birds fly, but no theory about other things might hypothetically fly. Does that afford you to claim "Nothing other than birds can fly"?
378.
▲
by
hsn915
4y ago
I'm confused. What sort of advantage do you imagine a build system like Bazel would provide for you? Build systems for C are bandaids. You would not ideally want them. They are extra baggage that you just have to carry around because o
379.
▲
by
hsn915
4y ago
I think the twitter thread I linked answers your questions? "use after free" is an instance of a memory access pattern that is considered invalid from the program's point of view. What happens depends on the situation: Was th
380.
▲
by
hsn915
4y ago
The distinction between make and new is similar to Go. new allocates memory for the given type. make allocates memory referenced by the type. For example, a slice is defined as: slice :: struct { data: rawptr, length:
381.
▲
by
hsn915
4y ago
Odin emerged partly out of the "Handmade Network" which is a group of people interested in a style of programming that is very different from what is usually accepted by the rest of the industry as best practice. See: https:/
382.
▲
by
hsn915
4y ago
Odin's stance towards undefined behavior was probably the decisive element that made me prefer it over the other languages. https://twitter.com/TheGingerBill/status/1495004577531367425
383.
▲
by
hsn915
4y ago
This reminds of the Jordan Peterson thing where when he's asked "Do you believe in God" he replies with "Depends on what you mean by believe and God".
384.
▲
by
hsn915
4y ago
The fact that linux systems need adminstration is one of the reasons why they suck. Imagine after buying a macbook that you also need to hire a sysadmin to keep it running smoothly? The idea is laughable. > Learning how to effectively us
385.
▲
by
hsn915
4y ago
http://paulgraham.com/pypar.html Although the "Python Paradox" does not apply to Python anymore (it has become even more mainstream than Java), it does highlight an important point: If you choose your language bas
386.
▲
by
hsn915
4y ago
Here's a hypothesis I'd like to see Rust advocate attack: In any serious system written in Rust, significant portions of it will have to be written in "Unsafe Rust".
387.
▲
by
hsn915
4y ago
"Premature optimization" is when something non critical takes a miniscule unnoticeable amount of time and you go down a rabbit hole to try to make it take even less time. When something takes 3 minutes we're beyond talking ab
388.
▲
by
hsn915
4y ago
I don't know if this is supposed to be a serious comment. Everyone I know who uses an Android is frustrated with it all the time. I'm sure the people who make Android also think it's fine. You just tap the button and then an
389.
▲
by
hsn915
4y ago
Switched from Android to iPhone a few months ago. Hard to believe the difference. Android is really bad at many things, and I had a good brand (One Plus 6). Taking a picture on Android is an awful experience. The Camera app takes about 3 se
390.
▲
Systems Programming and Memory Safety
(hasen.substack.com)
7 points
by
hsn915
4y ago
|
1 comments
More ›