Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
331.
▲
by
OskarS
3y ago
From a security perspective, yes Rust is better, but it's still a security issue: if you can make a Rust program panic due to overflow, that's a DoS attack. I think this description is a very narrow way to look at memory safety (a
332.
▲
by
OskarS
3y ago
I wrote a longer response to a sibling comment, but I highly dispute this: > Rust's array type is an actual array, and so a lot of the problems you're worried about (which would be big pitfalls out of the box in C) only happen
333.
▲
by
OskarS
3y ago
I would say that this is an extremely narrow view of "memory safety", and totally ignores the broader concept of "lifetime safety". Yes, if the thing you want to prevent is crashes due to segfaults, indexes in Rust preve
334.
▲
by
OskarS
3y ago
I’ve always thought this is a pretty big blindspot in Rust. Having a raw pointer and having an index into an array are essentially equivalent, and doing this in Rust is a way to turn off the borrow checker for this particular object. The in
335.
▲
by
OskarS
3y ago
The common thread in both cases is (as you say) children: in both creoles and NSL, the early versions of the language are somewhat primitive (being developed by older children and adults), but when children are exposed to it from an early a
336.
▲
by
OskarS
3y ago
The classic example which I think you’re referring to is Nicaraguan Sign Language, which developed organically in Nicaraguan schools for deaf children where neither the children nor the teachers knew any other form of sign language. It’s a
337.
▲
by
OskarS
3y ago
Indeed, there were a lot of scaremongering about covid. It then turned into the worst global pandemic in a century which killed millions and millions of people, and hundreds of millions of people (if not billions) was afflicted with it, man
338.
▲
by
OskarS
3y ago
For sure. I didn't mean to imply otherwise. I was just saying I'm always curious about what the processes are in companies that lead to these disastrous results.
339.
▲
by
OskarS
3y ago
I always wonder about stories like this what the internal process that lead to this insane overreaction was. At some point, did someone really make the decision "lets send Pinkertons to this guy's house, risking an enormous public
340.
▲
by
OskarS
3y ago
Assuming low or no contention, it is easy to imagine a scenario where a mutex vastly outperforms it: if you need to push a 1000 things into the queue, it's still just two fences for the mutex but it's now a 1000 CASes. Moreover: t
341.
▲
by
OskarS
3y ago
If it's this common, it should be straight-forward to test as well, right? Allocate 1 gig of memory, do whatever mmap call you need to make sure it's not paged out, fill it with deterministically random stuff, then every hour chec
342.
▲
by
OskarS
3y ago
Pretty excellent summary, this is roughly the taxonomy I have in my head. I would maybe add SQL as an ur-language as well. It's not quite general purpose like most of these, but it should have a place in this list, I think. It has some
343.
▲
by
OskarS
4y ago
That's really interesting, I hadn't considered the case of the compiler caching the address of errno. Obviously it can't cache the value across a function call (with or without a yield point), but caching the address does m
344.
▲
by
OskarS
4y ago
Do you have any specific reason to say why it will cause miscompilation? Anything in particular that makes this UB? My understanding is that as long as your functions compile to the correct ABI, it shouldn't be a problem. All you'
345.
▲
by
OskarS
4y ago
> The alice ones are moved to another generation, making the space reusable for free. It's pretty hilarious to me that you first say "they have to move it to another generation" and then you say "it's free!"
346.
▲
by
OskarS
4y ago
> Almost everyone that actually uses reference counting uses more like 2-4 bits. Here is an incomplete list of languages which use 8 bytes for their reference count on 64-bit computers: 1. Rust, in Rc<T> and Arc<T> 2. C++, in
347.
▲
by
OskarS
4y ago
Yeah, but they don't have to make it worse ! If they do the right thing here and transfer the licenses somehow, it's way more likely that whatever their next thing is is going to go down smoother. If they don't do the right
348.
▲
by
OskarS
4y ago
> Its actually usually slower than both manual memory management and GC [citation needed] You and the blog post are arguing opposite things, and neither of you have shown any evidence. I get that you're arguing that reference counte
349.
▲
by
OskarS
4y ago
Played Cyberpunk on Stadia as well, mostly just to try the service out. Not a bad experience, honestly. Stadia had the technical stuff pretty nailed from day 1. It was just the business model that was out of whack.
350.
▲
by
OskarS
4y ago
My guess is that they're gonna. Google is starting to get a reputation for this, and this would be an ESPECIALLY egregious example. Nobody would ever buy a digital good from them again if they didn't do some version of this (lots
351.
▲
by
OskarS
4y ago
> Second, I dare you to run "ls /etc" and claim it's not a mess... In principle, sure. But in practice, using /etc to edit configuration data is not that hard, and every Linux user does it all the time. Different
352.
▲
by
OskarS
4y ago
What about texts where there are more or less “canonical” illustrations? Like, for an edition of Bleak House by Charles Dickens, it’s just not the same without the sketches by “Phiz” that were present in the original publication. Same with
353.
▲
by
OskarS
4y ago
> But IMHO AWK takes the crown here. :) Agreed! AWK is still the king of this stuff. For tasks like this, I kinda think AWK is nigh-unbeatable: so simple to write, so obvious what's going on (even if you've never seen any AWK p
354.
▲
by
OskarS
4y ago
By Chinook, actually. The computer science Jonathan Schaeffer became obsessed with solving checkers, because it was the only way to prove that Chinook could've beaten Tinsley in a fair game (as Tinsley passed away before Chinook could
355.
▲
by
OskarS
4y ago
I love this story so much. This The Atlantic article telling the full tale is a favorite of mine [1] It's hard to overstate how incredibly dominant Tinsley was. In his entire career, he never lost a match, and only ever lost 7 games (t
356.
▲
by
OskarS
4y ago
How would you suggest the kernel would accomplish that feat? If the user calls read() on a file descriptor, what can the kernel do except... you know... actually read from it and copy the data to user space?
357.
▲
by
OskarS
4y ago
> long before the plantations (even BCE) Iceland wasn't settled by humans until the Viking age, in the 9th century CE. Are you claiming it was deforested a millennia earlier than that? Edit: I'm an idiot, I misread your comment
358.
▲
by
OskarS
4y ago
Reading the question I was in disbelief: what a miserable way to experience literature (even non-fiction). Just read the book! Enjoy it! What possible goal could be fulfilled by this kind of incessant note-taking? Really brilliant people, t
359.
▲
by
OskarS
4y ago
I don't think the full context does him any favors. The way he talks of gamedevs that are not engaging in predatory behaviour ("beautiful and pure, brilliant people") is incredibly condescending. Like, "yes children, onc
360.
▲
Gamedevs not baking in monetization are “fucking idiots”, says Unity CEO
(pocketgamer.biz)
357 points
by
OskarS
4y ago
|
356 comments
More ›