Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dhruvrajvanshi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
dhruvrajvanshi
2y ago
> New SQL queries with trailing commas will NOT run fine on engines that don't support trailing commas; this is not a backwards-compatible change. But they never ran fine on engines that didn't support trailing commas in the fi
32.
▲
by
dhruvrajvanshi
2y ago
I mean, yes, technically, but is anyone's code actually breaking because of this? Who is writing SQL queries expecting them to fail because of this reason? By your definition, "backwards compatible" doesn't mean anything
33.
▲
by
dhruvrajvanshi
2y ago
> I promise you they will use AI to vet your application. So?
34.
▲
by
dhruvrajvanshi
2y ago
> Compare that to vim where it's truly an open source product. Where there wouldn't be any money in the first place? I don't see popular vim plugin authors getting paid. Maybe I'm not understanding your point.
35.
▲
by
dhruvrajvanshi
2y ago
It only opens the terminal by default. The key binding is to use the same shortcut to focus back to the editor.
36.
▲
by
dhruvrajvanshi
2y ago
And I'd say the average React or Java developer these days understands both pretty well. It's the default way to render a list of things in React. Java streams are also adopted quite well in my experience. I wouldn't say one
37.
▲
by
dhruvrajvanshi
2y ago
> I also think there is a kinesthetic element to each note--the way the instrument vibrates Interesting point. I had a similar thought about singing. In theory, a good enough singer would be able to use their vocal chords as a reference.
38.
▲
by
dhruvrajvanshi
2y ago
> A random human won't sing off the cuff with their tonal center magically quantized to one of the twelve keys in our modern western tuning (Equal Temperament). Why is that relevant? Whatever pitch they pick would fall into one of t
39.
▲
by
dhruvrajvanshi
2y ago
- It shows absolute pitch is not necessarily limited solely to semitone identification Why would it be? There's nothing fundamental about a semitone. It's an arbitrary division that varies across different musical systems.
40.
▲
by
dhruvrajvanshi
2y ago
Perfect pitch means that you can identify 440 Hz. Whether you call it A or slightly flat A is a matter of convention. It's like saying water melts at 0 degrees Celcius vs 33 Fahrenheit. As long as you're talking about the same tem
41.
▲
by
dhruvrajvanshi
2y ago
It also made Linux viable on desktop :P WSL is my favourite Linux distro...well favourite is too strong. It's the one I hate the least.
42.
▲
by
dhruvrajvanshi
2y ago
From the article > In a 2019 lawsuit, Amazon claimed it had lost a $10 billion cloud computing contract with the Pentagon to Microsoft because Trump had used “improper pressure ... to harm his perceived political enemy” Bezos. The implic
43.
▲
by
dhruvrajvanshi
2y ago
It would essentially involve changing the meaning of `: Type` and `as Type`. Basically, instead of ignoring type annotations at runtime, you'd have to throw when a cast fails. This would also have other implications on the language des
44.
▲
by
dhruvrajvanshi
2y ago
It's a tricky situation as a language learner. On the one hand, you've got to be polite, trying to converse with people in their native language, on the other, you don't want to waste their time just for your own language lea
45.
▲
by
dhruvrajvanshi
2y ago
If the other method has visibility of my foo property, then it can call it. Nothing is being "injected" anywhere. It's the moral equivalent of foo(req). It's statically dispatched
46.
▲
by
dhruvrajvanshi
2y ago
> Other statically-typed languages do have to deal with the problem of parsing external objects. Well that's just blatantly not true. Which languages are you thinking of? I'm sure I'm misunderstanding what you said. I can&
47.
▲
by
dhruvrajvanshi
2y ago
Well in most statically typed languages with a VM (Java/C#), there's some sort of runtime validation In Java Object something = new Map(); String badCast = (Object) something; // This line would throw a ClassCastEx
48.
▲
by
dhruvrajvanshi
2y ago
> I don't write Kotlin, but what that does (assuming I'm guessing at it correctly) requires far more awkward code in most other languages You're NOT assuming correctly. In Kotlin, this would be handled as an extension pr
49.
▲
by
dhruvrajvanshi
2y ago
Right. I'm aware. My point was that even though the type system is powerful, somehow, I'm able to represent everything I need to in Kotlin's type system just fine and it feels a lot more type safe because it will throw a type
50.
▲
by
dhruvrajvanshi
2y ago
Yes, I did mention that the UX of the type errors could be improved and probably should, but once you start getting into conditional types, and nested types (which may not be fully expanded when you see the error), it gets hairy.
51.
▲
by
dhruvrajvanshi
2y ago
I wonder about a Typescript with alternate design decisions. The type system is cool and you can do a lot of compile time metaprogramming. However, when there's a type error in computed types, it's a nightmare to visually parse
52.
▲
by
dhruvrajvanshi
2y ago
Trying to understand a big existing codebase might be more difficult than rewriting a small subset for your own use case, especially for something as trivial as a parser for a relatively simple language like protobuf.
53.
▲
by
dhruvrajvanshi
2y ago
Instead of a rewrite, why not try using AgGrid? It's a pure JS grid library that's really fast and it's got react bindings. It's even got a batch update API. I doubt that naively rewriting the app in Svelte is gonna give
54.
▲
by
dhruvrajvanshi
3y ago
Sorry for being daft, but doesn't this imply that TLB is now shared between all processes? Which means that the cost of flushing the TLB is amortized across context switches? Processes are gonna evict TLB entries from other processes a
55.
▲
by
dhruvrajvanshi
3y ago
> Could you remember any substantial UI improvements between Win 95 and Win 11 Yes I can. Most OSes these days have a OS level fuzzy searching functionality. This has been my preferred way of launching applications on Windows (Win key),
56.
▲
by
dhruvrajvanshi
3y ago
As pointed out by the author, people who care could already strip the debug info. C was created in a time when binary sizes used to be important for every program. These days, it only matters for a small subset of use cases. If anything, th
57.
▲
by
dhruvrajvanshi
3y ago
> "We're ABI stable" claims in C and C++ are "We daren't change anything or stuff breaks" which isn't so much an ABI as it is paralysis and Rust is confident it doesn't want to do that. For C++, ye
58.
▲
by
dhruvrajvanshi
3y ago
I'm also an Indian guy working in Germany paying "obnoxiously high taxes", and my experience has been quite different. > The only upgrade is in cleaner air to breathe and safety from crime - Easy access to parks - Good pub