HackerTrans
TopNewTrendsCommentsPastAskShowJobs

ekimekim

no profile record

comments

ekimekim
·2 tháng trước·discuss
That practice is known as Block booking (https://en.wikipedia.org/wiki/Block_booking) and was supposedly ruled illegal in 1948. The more things change, I guess...
ekimekim
·3 tháng trước·discuss
> Suddenly turning off services when the billing cap is reached is a big reliability risk for customers.

And yet this is exactly what happens if you exceed a quota limit, which aren't always well signposted and sometimes require days to get the limit raised. I've experienced multiple hours-long outages due to hitting GCP quotas we didn't know existed.
ekimekim
·5 tháng trước·discuss
To provide a concrete example, this bit me in a typescript codebase:

    type Option<T> = T | undefined

    function f<T>(value: T): Option<T> { ... }

    let thing: string | undefined = undefined;
    let result = f(thing);
Now imagine the definition of Option is in some library or other file and you don't realize how it works. You are thinking of the Option as its own structure and expect f to return Option<string | undefined>. But Option<string | undefined> = string | undefined | undefined = string | undefined = Option<string>.

The mistake here is in how Option is defined, but it's a footgun you need to be aware of.
ekimekim
·9 tháng trước·discuss
There was one in a previous AoC that I think stumped a lot of AI at the time because it involved something that was similar to poker with the same terminology but different rules. The AI couldn't help but fall into a "this is poker" trap and make a solution that follows the standard rules.
ekimekim
·9 tháng trước·discuss
As always, there is a relevant XKCD: https://xkcd.com/1968/
ekimekim
·3 năm trước·discuss
And none of this helps you if the server in question isn't actually a HTTP server, but something else (that only ever expected to be exposed on localhost). Depending on the exact syntax it expects, it's plausible that a HTTP request (even a CORS request) might be misinterpreted to do something nefarious.