Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Joker_vD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
211.
▲
by
Joker_vD
4mo ago
Windows doesn't even have its own libc.
212.
▲
by
Joker_vD
4mo ago
Or even just Amazon S3.
213.
▲
by
Joker_vD
4mo ago
> You may attempt to address this by pushing the problem up one layer. You now check for nil and return an error to flag the nil dependency as an invalid state. > It’s better, but it’s still not correct. Why not? Because we still allo
214.
▲
by
Joker_vD
4mo ago
> The current level of competence at world-running is very low. Yes? If by "running competently" you mean the prosperity of the general population and peace, sure, it's not that competent. But why'd you think that
215.
▲
by
Joker_vD
4mo ago
Heh. I've seen the code in the codebase at my previous work that supported not only 1/8 and 1/16 price scales, but all the way up to 1/256... but I don't think I've ever seen a ticker with such price scale outs
216.
▲
by
Joker_vD
4mo ago
Yep. Basically, if you take a signed int/long/etc. and a set bit shifts left into the sign bit — UB. > a lot of things... would make much more sense as implementation defined. Or even just defined. Apparently, the fact that shi
217.
▲
by
Joker_vD
4mo ago
Of course not. Why would they? The software nowadays is mostly written for people who already own computers with RAM already installed. Yeah, they probably won't upgrade for the next couple of years, so what? Besides, have you heard ab
218.
▲
by
Joker_vD
4mo ago
Ah, INT_MIN. If I had a nickel every time I saw an implementation of inttostr/strtoint that don't properly handle it, I'd probably have about $5. So I too thought about possibility of it serving as a NaN of signed integers...
219.
▲
by
Joker_vD
4mo ago
Eh, still kinda murky. How about value Point a = new Point(10, 10); value Point b copy= a; a.x uniq= 100; System.out.println(b.x); Now it's much more obvious that cloning/copying takes place, and mutating a fi
220.
▲
by
Joker_vD
4mo ago
Slightly less well-known than XDG directories among the developers of Linux-targeted software, it would seem. Seriously, what an oxymoronic name. "/index.html" is a well known URL, literally: most of web-developers are awar
221.
▲
by
Joker_vD
4mo ago
> even more importantly, by not doing optimizations in the compiler, compilation times can be much faster, easily 100-1000x than state of the art optimizing compiler, while generating equivalent or even better runtime performance As Kent
222.
▲
by
Joker_vD
4mo ago
There is a wonderful paper "Register Allocation: What Does the NP-Completeness Proof of Chaitin et al. Really Prove?" (2006) by Bouchez, Darte, and Rastello [0]. I'll just quote the abstract in full because there is really no
223.
▲
by
Joker_vD
4mo ago
> a mostly benign and in any case law-abiding hegemon. Lol wat? > has now taken a drastic hit with America’s abandonment of the rules it largely created. "When gentlemen can't win the competition, they change the rules"
224.
▲
by
Joker_vD
4mo ago
Yeah, I keep saying, put them on treads. That's how you'll be able to deliver even to the most unwilling customers.
225.
▲
by
Joker_vD
4mo ago
Unlike POST, however, the method is explicitly safe and idempotent, allowing functions like caching and automatic retries to operate.
226.
▲
by
Joker_vD
4mo ago
> the spec says that's illegal. For a very long time, the spec did not say it's illegal. In fact, RFC 2616 (that has been defining the HTTP/1.1 for 15 years) says that A message-body
227.
▲
by
Joker_vD
4mo ago
By the way, behold the original (from UNIX Version 7) stdio package [0]: fread(ptr, size, count, iop) unsigned size, count; register char *ptr; register FILE *iop; { register c; unsigned ndone, s;
228.
▲
by
Joker_vD
4mo ago
> I still don’t get how idempotency can typically be ensured without state. Well, how is "GET /index.html HTTP/1.1" made idempotent in practice without (additional) state?
229.
▲
by
Joker_vD
4mo ago
Shouldn't you be using cppreference.com instead of cplusplus.com? Because the former [0] actually has this language: Reads up to "count" objects into the array "buffer" from the given input stream "stream
230.
▲
by
Joker_vD
4mo ago
Why? That's pushing more work to do both on yourself and the cache.
231.
▲
by
Joker_vD
4mo ago
> It also implies an unbounded and user-controlled cache key, The query part of GET's URI is also barely bounded in practice and user-controlled, and is indeed used as part of the cache key (because it's a part of URI), so I am
232.
▲
by
Joker_vD
4mo ago
Unlike POST, however, the method is explicitly safe and idempotent, allowing functions like caching and automatic retries to operate. Essentially, it's for things that are inherently safe/idempotent already (e.g. sea
233.
▲
by
Joker_vD
4mo ago
At my last work we used to use "the client obtains the authorization token from the auth service, and supplies it to other services" too, but at some point we found that a) permissions in the JWT grew a tad too large to reliably p
234.
▲
by
Joker_vD
4mo ago
Frankly, "sizeof(T*)" should generate a warning if T is anything other than void, or a function type. Yes, I know that C technically allows rather heterogenous representations for pointers to different types, but in practice there
235.
▲
by
Joker_vD
4mo ago
> there are 17 space characters in Unicode and another eight whitespace characters, like newline. And of course, those 25 characters don't include ZERO WIDTH {SPACE,NON-JOINER,JOINER,NON-BREAKING SPACE} and WORD JOINER, which gives
236.
▲
by
Joker_vD
4mo ago
Well, considering that Puritans actually managed to push through the prohibition on Christmas (and Easter) celebrations, it's no wonder they got so wildly unpopular that they had to emigrate.
237.
▲
by
Joker_vD
4mo ago
> Yea, and what do you remember about that? That it was a rather big PR disaster, and it cost Intel lots of money to recall the chips. Such things don't really happen with software; software is expected to have bugs, some of them ma
238.
▲
by
Joker_vD
4mo ago
Well, ideally you proof should've failed because your axioms should be aware that arithmetic operators in the programming language of your choice are operating modulo some large power of two, and thus don't produce correct results
239.
▲
by
Joker_vD
4mo ago
My point is, when you go from hardware to software, there is a noticeable change in attitude and corresponding drop in reliability. Inside hardware, there is a lot of effort to detect and correct glitches and provide reliably correct behavi
240.
▲
by
Joker_vD
4mo ago
> you already have buggy compilers and buggy OSes and buggy libraries. Which run, I must add, on effectively infallible hardware. Most of the software straight up assumes that the CPUs and the RAM will function perfectly and don't b
More ›