Better HN
topnewbestaskshowjobs
Log inSign up

ArrayBoundCheck

-10 karma · joined May 25, 2022 (4y ago) · 165 submissions

Submissions

comment 4y ago · link · parent

> I'd consider even 10% to be a significant performance hit. People scream bloody murder when CPU-level mitigations cause even 1-2% regressions. The marginal cost of mitigations when memory safe code can run without them is infinite.

What people? and in my experience rust has always been much higher than 2% regression

comment 4y ago · link · parent

You missed the point. Just like the author did when he disqualified all the C++ tools

Writing unsafe code and removing tools "because production" gets you unsafe code as shown in that rust cve

comment 4y ago · link · parent

ASAN isn't just "for testing". A lot of people went straight to the chart (like me) and it reeks of bullshit. double free is the same as use after free, null pointer dereference is essentially the same as type confusion since a nullable pointer is confused with a non null pointer, invalid stack read/write is the same as array out of bounds (or invalid pointers), etc

I also never heard of a data race existing without a race condition existing. That's a pointless metric like many of the above I mentioned

comment 4y ago · link · parent

Considering how much I got downvoted no I don't want to comment more about this. But I'll let you ponder why while using rust has you could get a use after free sometimes https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4572...

comment 4y ago · link · parent

Haha yes. I love knowing I'm in bounds but unfortunately saying anything about C++ (that isn't a criticism) is out of bounds and my comment got downvoted enough that I don't feel like saying more

comment 4y ago · link · parent

I like zig but this is taking a page out of rust book and exaggerating C and C++

clang and gcc will both tell you at runtime if you go out of bounds, have an integer overflow, use after free etc. You need to turn on the sanitizer. You can't have them all on at the same time because code will be unnecessarily slow (ex: having thread sanitizer on in a single threaded app is pointless)

comment 4y ago · link · parent

I'm not particularly interested in serverless but my understanding is a developer doesn't need to know the server configuration and drops some code in. The service figures out how to route the domain to code and handle the storage, caching, etc

I rather know my configuration and use one big server with the static files on a CDN

comment 4y ago · link · parent

Isn't rust 10+yrs old now? With 1.0 being 7 years ago? Feels like it's a language people like to talk about but not actually use for anything serious

comment 4y ago · link · parent

Right or wrong, when it comes from fb I don't care. Meta has 0 credibility to me

comment 4y ago · link · parent

Two things. First, I seen text generated by GPT-3, it's not hard to tell it's been generated. Typically the the text is short and could fool someone because it may have been uttered by an actual person (such as a 5 word sentence) or not short and becomes more obvious by the word

Second what is "Optimized for humanity"? If people are hand picking the text then sure you might be able to by chance get a dozen good sentences to put next to a dozen bad sentences from humans. But at that point maybe noone would bother to read it. People barely read past the title anyway

comment 4y ago · link · parent

I didn't understand the tracing part. Is tracing 100% inside of polaris? If not does it start at the database? The first cache?

Does the invalidation need to be predictable before you can use tracing? What kind of parameters do you have so you don't have too much logging or too little?

comment 4y ago · link · parent

I'm not sure if your examples are sticking to 0 or 255 RGB. If it is you might get a win by using HSL to pick your colors. If you change the lightness dramatically every frame maybe colors won't bleed across a frame. Then perhaps you can encode 2+ bits in hue and another 2+ in saturation getting a win and another minor one using 1+ bit on brightness (ie first frame can be 0 or 25%, next frame is 75% or 100%. I'm not too familiar with encodings though and how much it'd interfere with the other transforms

comment 4y ago · link · parent

Do you have any idea how many more bits you'd be able to use if you applied any of the encoding transformations?
123456