Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
simonask
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
691.
▲
by
simonask
2y ago
Who is "they"? Seriously, who?
692.
▲
by
simonask
2y ago
I think the replies in that thread actually do a good job of describing how it is a bit overblown. As for Zig, I hope they make it. I think I kind of see why people are excited about it, but fundamentally the reason I'm not super hyped
693.
▲
by
simonask
2y ago
I don't know. In spite of Boats' great points, I think the programmer intuition definitely aligns more with it being a type property, in the sense that it enables the most interesting use case: self-referential values. All of that
694.
▲
by
simonask
2y ago
I'm curious, what drama in the Rust community are you referring to? I see some drama associated with Rust, but it's usually around people resisting its usage or adoption (the recent kerfuffle about Rust for Linux, for example), an
695.
▲
by
simonask
2y ago
I'm sorry, but that feels like an incredibly poorly informed decision. One thing is to decide to vendor everything - that's your prerogative - but it's very likely that pulling everything in also pulls in tons of stuff that y
696.
▲
by
simonask
2y ago
I think the language is doing great, not least _because_ it has slowed down a bit. To me it's an indication that is has found a decent plateau right now where people can get useful things done, and where the Rust language and compiler
697.
▲
by
simonask
2y ago
There are several sources of timing information, and I think in this context "nanosecond precision" just means that Tracy is able to accurately represent and handle input in nanoseconds. The resolution of the actual measurements d
698.
▲
by
simonask
2y ago
Here is another perspective: In the 2000s, many of us were children and teens. Now we’re not, and definitely don’t want our own kids to be exposed to the same Internet as we were back then… People romanticize that time way more than it dese
699.
▲
by
simonask
2y ago
Why would you go through the trouble, when nobody else is doing that, because the success of the system is highly dependent on network effects? These things have first-mover disadvantage, and last-mover advantage.
700.
▲
by
simonask
2y ago
Would definitely be interesting, but from a cursory look at the repository, it doesn't look like squeezing the last percentage points of performance has been a priority yet. Things that stand out: - The `awk` implementation uses the Pe
701.
▲
by
simonask
2y ago
I hope you're able to see how your use case is incredibly niche, and should not be a priority for a general security model for an operating system. Your problems are extremely insignificant in the big picture, where the priority of a s
702.
▲
by
simonask
2y ago
The problem is not - and has never been - accidentally stumbling on insecure features. The problem is social engineering, where inexperienced users are guided by malware operators to run insecure software, either over the phone or through c
703.
▲
by
simonask
2y ago
Also, let's not fool ourselves. I'm not sure even most technical people running macOS or Linux would know if they had malware running. I probably wouldn't. It's not like antivirus is commonplace on those platforms. The n
704.
▲
by
simonask
2y ago
Really? This is _huge_ to you? How many unsigned apps are you downloading and running? This is one of those features where the benefits seem to very obviously outweigh the drawbacks. 99.9% of users just aren't running unsigned software
705.
▲
by
simonask
2y ago
Isn't that a somewhat myopic view of what Linux should be, especially considering that its by far largest install base is billions of Android devices? Linux isn't always running on devices that have a direct human interface, but w
706.
▲
by
simonask
2y ago
Gmail is actually really good with this. Yeah, not every possible action has a keyboard shortcut, but all the important ones do (the ones you will realistically use in day to day email handling).
707.
▲
by
simonask
2y ago
This has to be a pretty backwards argument, to be honest. You may not have to learn "new shortcuts" (they're pretty standard), but you're perfectly willing to learn an entire text-based configuration scheme? VIM has its
708.
▲
by
simonask
2y ago
Yeah, and also a quest seems like something that might be different every time, where a process is a formalized cookie-cutter pipeline, or at least that is what people associate with it in the context of software development. When each thin
709.
▲
by
simonask
2y ago
`into()` just converts something from one type to another, like an integer to a floating point number. Would you have liked for such conversions to happen implicitly? Because let me tell you, that is one of the most painful features of C++,
710.
▲
by
simonask
2y ago
For the record, Rust does have a "not noalias" builtin magic type in the standard library: UnsafeCell. https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell....
711.
▲
by
simonask
2y ago
As a European, it's baffling to me that your friend group wouldn't simply switch to a messaging app with good group chat support. WhatsApp, Signal, Messenger (FB) - these are all great alternatives that are extremely popular, and
712.
▲
by
simonask
2y ago
Both the number of objects (dcache) and the number of classes (icache) are significant, as well as the size of both, but yeah. It's pretty rare to have extremely wide class hierarchies, though. You really have to go out of your way to
713.
▲
by
simonask
2y ago
Supporting Unicode in itself does not nudge anyone towards localizing their codebase. Please consider that as a (presumably young or young-ish) European, you have access to different educational resources, and are exposed to a cultural cont
714.
▲
by
simonask
2y ago
Show me the receipts. :-) In general it takes a significant amount of nondeterministic pointer chasing to fool modern branch predictors. Decades of research have been put into optimizing the hardware for languages like C++ and Java, both of
715.
▲
by
simonask
2y ago
Presumably there is some arcane trick that somebody will argue is only implementable in this way, but I would personally never let such code through review.
716.
▲
by
simonask
2y ago
Actually, the compiler can only implicitly devirtualize under very specific circumstances. For example, it cannot devirtualize if there was previously a non-inlined call through the same pointer. The reason is placement new. It is legal (gi
717.
▲
by
simonask
2y ago
An extra indirection (indirect call versus direct call) is practically nothing on modern hardware. Branch predictors are insanely good, and this isn't something you generally have to worry about. Inlining is by far the most impactful o
718.
▲
by
simonask
2y ago
Why would you want to increase misunderstandings by forcing people to communicate exclusively in a language that they are strictly less proficient in, when everybody on the team is much more proficient in a different language? This is blata
719.
▲
by
simonask
3y ago
Rust's data model diverged from C++, but it's not very far from C. It's easy enough to write C-compatible structs and functions in Rust, as long as you don't need `Drop`. Even tagged unions (data carrying enums) are supp
720.
▲
by
simonask
3y ago
Async/await in Rust is famously not based on continuations, at least not in any traditional sense, where a block of code is passed to a reactor system to be invoked whenever an operation completes. Instead it is based on "wakers&q
More ›