Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dwattttt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
661.
▲
by
dwattttt
2y ago
https://en.m.wikipedia.org/wiki/Classification_of_discontinu... is responsive and quite accessible. It notes that there doesn't have to be an undefined point for a function to be discontinuous (and that terminolog
662.
▲
by
dwattttt
2y ago
Wouldn't the point of the class action to be to dilute the cost of representation? If the damages per article are high and there's plenty of class members, I imagine the limit would be how much OpenAI has to pay out.
663.
▲
by
dwattttt
2y ago
I imagine the problem they're trying to address is ensuring that everyone _does_ only use correctly cast pointers; as defined, it's legal to use that 14 char array, it's just that it's never what you're meant to do.
664.
▲
by
dwattttt
2y ago
The juxtaposition of this comment and username are sending me, let me tell you.
665.
▲
by
dwattttt
2y ago
You can introduce new APIs and new types to resolve the "is it flexible, or is it 14 chars"; that's more or less one of the explored approaches in the article. It won't make existing uses any clearer or safer though, req
666.
▲
by
dwattttt
2y ago
I very much care about whether a function can fail or not, and I encourage all the function colouring needed to convey that.
667.
▲
by
dwattttt
2y ago
I don't think the mechanics of being able to convey a niche are stable/developer-accessible, but NonZero is a type provided by the standard library: https://doc.rust-lang.org/std/num/struct.NonZero.html
668.
▲
by
dwattttt
2y ago
> I have not found the type of person who asks trick questions to be the type of person who finds it interesting to have the trick questions they've posed to be prodded. I find it depends entirely on whether the person is asking a t
669.
▲
by
dwattttt
2y ago
> "just make it work one way or another, who cares if it's a hardcoded string, we have to ship the fix ASAP" Sure, but now that there's a "correct" way to do this, you don't get to complain that the hac
670.
▲
by
dwattttt
2y ago
Clearly you need to randomly decide whether or not to randomise it.
671.
▲
by
dwattttt
2y ago
You would use interior mutability, putting things in Cells in the map.
672.
▲
by
dwattttt
2y ago
> modifying a collection from inside foreach loop This is exactly what the mutable map pointer was for, for the function to be able to modify the collection; C++ would result in potentially iterating garbage, C# it sounds like would thro
673.
▲
by
dwattttt
2y ago
> A theme I’m noticing more frequently as Rust gains popularity is people trying to use Rust even though it doesn’t fit their preferred way of coding. I could've expressed the sentiment in this blog post back when I started playing
674.
▲
by
dwattttt
2y ago
borrow checking relies on types to be able to check; types are what carry borrows after all.
675.
▲
by
dwattttt
2y ago
After all the other levels it's been taken to? Surely not!
676.
▲
by
dwattttt
2y ago
PGO describes the using extra data to guide optimisations, but it doesn't define what those optimisations are. Reading the link, there's several that sound like they match what BOLT is applying (Basic Block Optimization, Function
677.
▲
by
dwattttt
2y ago
Oh my mistake. I wonder what the benchmarks would look like without the wake loop
678.
▲
by
dwattttt
2y ago
The code linked does the following: - attempt to acquire an RWLock without blocking - if it does, wake the task waiting for the lock - if it doesn't, return "not ready yet" The RWLock is straight from the standard lib; there
679.
▲
by
dwattttt
2y ago
If you think about it, that's what Thumb mode on ARM is.
680.
▲
by
dwattttt
2y ago
I believe that doesn't indicate it's spinlocking; the `poll` API is specified to not block.
681.
▲
by
dwattttt
2y ago
I've always appreciated the forthrightness League of Legends deployed here (talking about introducing a kernel driver for anti-cheat: https://www.leagueoflegends.com/en-au/news/dev/dev-null-anti... ): >
682.
▲
by
dwattttt
2y ago
> FYI you can't poll an async result in a sync context in Rust, either. Sure you can. Async runtimes in Rust are written in Rust, that's exactly what they do.
683.
▲
by
dwattttt
2y ago
Your lawyer can tell you what, legally, it is allowed to mean. He cannot tell you what Matt means by it. The question stands.
684.
▲
by
dwattttt
2y ago
I think an equivalent way to phrase this that feels very different is: "On both Windows and Linux the default installed users are, practically, root equivalent". I guess on the basis that the user performing the installation shoul
685.
▲
by
dwattttt
2y ago
Because their policy is to not give admin to a user if you don't want them to have control of the computer?
686.
▲
by
dwattttt
2y ago
> They could offer an API for security relevant scanning for EVERYONE, including their own antivirus software I mean, they have _lots_ of APIs. You'll just never have as much control from usermode as you will from the kernel; what A
687.
▲
by
dwattttt
2y ago
I run my personal desktop as a non-admin user. Every now and then I need to provide creds to my admin account, but the majority of what I do does not require it.
688.
▲
by
dwattttt
2y ago
> it will be necessary to heap-allocate stack frames. I sure hope you don't use any stack frames while writing the stack frame allocator.
689.
▲
by
dwattttt
2y ago
That rather depends. Compile time certainly wouldn't scale linearly with the size of a function, you could well reach a scenario where adding in a line to a function results in a year being added to the compile time.
690.
▲
by
dwattttt
2y ago
> Loops where you join all the threads that are supposedly finished are usually troublesome. If somebody gets stuck, the joiner stalls. Clean exits from programs with lots of channels are troublesome. Channels with multiple senders don&#
More ›