Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
unscaled
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
211.
▲
by
unscaled
2y ago
To be exact, all of these languages are statically typed and were created or at least started taking their final shape[1] after 2009, when Tony Hoare (who has the best claim for being the one who invented the null reference) coined the term
212.
▲
by
unscaled
2y ago
I do remember seeing this happen firsthand, but I don't remember where. Yes, this is not likely to happen with a good IDE with warnings enabled, and developers not ignoring said warnings. It is even less likely with a strict lint step
213.
▲
by
unscaled
2y ago
Unfortunately for Java, Optional in Java is a bit of mess now, until you'll be able to specify nullability. Since T in Optional<T> has unspecified nullability, calling Optional.of() is still unsafe and can result in an NPE, if th
214.
▲
by
unscaled
2y ago
Kotlin does have types with unspecified nullability, although you cannot define it directly. Kotlin calls them "platform types"[1], and they're annotated with an exclamation mark (e.g. "String!" for a possibly-nulla
215.
▲
by
unscaled
2y ago
What about a language which has both lightweight threads, but in which every I/O operation (including printing and getting a random number) is colored? https://www.haskell.org/tutorial/io.html
216.
▲
by
unscaled
2y ago
There is a parallel universe in which Brendan Eich was given more than 10 days to hack on JavaScript, and in which he presented the language with full-blown stackful coroutines instead of hacky callbacks for concurrency. There might be even
217.
▲
by
unscaled
2y ago
This is not just about performance. Unlike Go or Ruby, JavaScript is a single-threaded language. Synchronization constructs such as mutexes and semaphores are uncommon and not part of any standard library. When you are calling a synchronous
218.
▲
by
unscaled
2y ago
> OAuth uses access tokens, which are typically, but not limited to, JSON Web Tokens This claim is misguided, but I hear it quite often. JWT is a very popular (and downright terrible[1]) format, but I there is no evidence that most of
219.
▲
by
unscaled
2y ago
Protocol Buffers have schemas too (though versioning and ensuring compatibility is quite messy and requires understanding internals). And it has less overhead than MesssagePack. I'm not sure what Avro is doing, but as a rule schema e
220.
▲
by
unscaled
2y ago
I would put it more charitably as "Java Virtual Threads are new and have not seen massive use and optimization yet". This is crucial, because Java wouldn't necessarily require the same optimizations Go needed. Making Virtual
221.
▲
by
unscaled
2y ago
This is not enough. First, as another reply above has mentioned, other data in the logs (such as IP address, list of friends, browser fingerprint) can be used to de-anonymize the pseudonymous ID. Second, GDPR makes it quite clear (for the r
222.
▲
by
unscaled
2y ago
Nitpick: IDs that can be correlated back to a real user is pseudonymous - not anonymous - according to GDPR[1]. You should still pseudonymize your PII wherever you can, but protection measures are required. You should have a short term log
223.
▲
by
unscaled
2y ago
The non-ideal state of generics in Java mostly stems from having to maintain compatibility with early versions of Java that did not have generics. If James Gosling had "rushed" and copied generics Verbatim from CLU or Ada, Java wo
224.
▲
by
unscaled
2y ago
I think this grievance mostly comes from the core language team being reluctant to introduce generics early on[1]. The core team was never entirely hostile to generics (although some vocal parts of the Go community were), but they were quit
225.
▲
by
unscaled
2y ago
This is the textbook definition of the Blub Paradox[1]. If you've mostly used Go (or moved to Go from JavaScript before it had iterators, or from Java where iterators are a royal PITA to write), it won't make sense. That's ok
226.
▲
by
unscaled
2y ago
Go always had hidden magic: - Lowercase symbols are private to the package they are declared at. - A function called "init" will get executed implicitly on startup. - You can have multiple functions called "init" in the
227.
▲
by
unscaled
2y ago
These sounds sounds more like a Southern Chinese language, not Mandarin. Mandarin has highly simplified set of finals (essentially /n/, /ng/ and /r/) which cannot even combine freely with most vowels. But South
228.
▲
by
unscaled
2y ago
Your general gist is correct: languages with CV (consonant-vowel) phonotactics[1] with a simple vowel systems tend to develop similar features, possibly through convergent evolution: - agglutinative syntax (i.e. combining long sequences of
229.
▲
by
unscaled
2y ago
There are also many native Japanese onomatopoeiae using an initial p sound. Interestingly enough, if we're at Pokémon, Pikachu's name is influenced by the onomatopoeia /pikapika/ which means to shine, sparkle or flash. B
230.
▲
by
unscaled
2y ago
I'm not sure I get what's the problem with OpenTelemetry as it is then? I'm not familiar with the JavaScript implementation, but it seems to be modular. You can just import @opentelemetry/api and @opentelemetry/sdk-
231.
▲
by
unscaled
2y ago
Most major roads in Japanese cities have names. Smaller roads do not. But except for certain cities (Kyoto, Sapporo perhaps) they're just not used for addresses.
232.
▲
by
unscaled
2y ago
GCM is an improvement over CBC since it has authentication, but it does have a few weaknesses that CBC does not suffer from: 1. CBC does not have the same class of vulnerability to Nonce/IV reuse. Reusing an IV would leak some informat
233.
▲
by
unscaled
2y ago
I think most of the confusing experience comes from the way that Japanese limited express paper tickets used to work. If you rode a limited express (like Shinkansen or Narita Express), you'd have to buy two tickets: the basic fare tick
234.
▲
by
unscaled
2y ago
There are about 195 countries in the world (depending on how you count), I find it hard to believe that Japan is dead last on the list. I'll be the first to complain about the bad state of software in this country, but it still sits ve
235.
▲
by
unscaled
2y ago
I'm not sure if by other culture you mean Japan, but relatively Japanese definitely use sofa nowadays. Certainly, in the past they did not, but if you go back to the 19th centuries you could probably say the same about western countrie
236.
▲
by
unscaled
2y ago
I wouldn't call the wire transfers exactly instant (perhaps it depends on the bank?), but they should be at least same-day in most cases if you're doing an online wire transfer. The main problem is that most services that accept a
237.
▲
by
unscaled
2y ago
It's very easy to ascribe all these problems to a "general" Japanese incompetence with technology, but I don't think that this simplified explanation stands up to scrutiny. Japan was a world leader in many fields during
238.
▲
by
unscaled
2y ago
The main issue for us was not the size of the cache, but distributing a guaranteed single-use cache (CP in CAP theorem) across multiple regions and handling traffic from all microservices that can read the token (we have hundreds and plan t
239.
▲
by
unscaled
2y ago
DPoP described in RFC9449 - you can see from the RFC number it's quite new. I don't think there's wide support for it, but at least Okta supports it[1] and I think Auth0 are also working on adding DPoP. Is it good? I'm n
240.
▲
by
unscaled
2y ago
"Made available at a URL" is one possible distribution mechanism, yes. But this only works for asymmetric keys. If you publish symmetric keys (e.g. for HS256) at a shared URL... Well, now everyone can get these keys and forge toke
More ›