Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gf000
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
361.
▲
by
gf000
6mo ago
Especially when they forget to properly handle an error case among the litany of if err line noise, and you get erroneous code execution with no record of it!
362.
▲
by
gf000
6mo ago
Well, just write more readable error messages? How do you make this more readable: ExceptionName: Dev-given message at Class(line number) at Class(line number) caused by AnotherCauseException: Dev-given message at Class(line number) It'
363.
▲
by
gf000
6mo ago
grep "caused by" Here you are.
364.
▲
by
gf000
6mo ago
Apples to oranges. Quality java code bases also have proper error messages. The difference is that a) you get additional info on how you got to a given point which is an obviously huge win, b) even if it's not a quality code base, wh
365.
▲
by
gf000
6mo ago
You don't have to do anything, it just works. But eventually someone gonna write the goddamn whole of AWS or Alibaba in the language where you have machines with TBs of heaps (yeah, you read that right), where most other managed langua
366.
▲
by
gf000
6mo ago
This couldn't be further from the truth. There is no ecosystem I would choose over Java when it comes to observability and it's not even close. Good luck finding your segfault, oom, race condition or just simply lazy logging cultu
367.
▲
by
gf000
6mo ago
What? What you write makes zero sense, see my comment here: https://news.ycombinator.com/item?id=47750450 And come on, skipping 5 lines and only reading the two relevant entries is not "much work". It's a fea
368.
▲
by
gf000
6mo ago
Did you mistype Go? Java has proper error messages with a full stack trace that tells the whole story. Of course individual developers may lazy out on writing useful error messages, but that's hardly a Java issue. Meanwhile in Go you c
369.
▲
by
gf000
6mo ago
> Most OSS only supports as many distros as people are willing to test Linux distros don't differ too significantly from each other nowadays (systemd plus a different package manager most of the time), so I'm almost sure this i
370.
▲
by
gf000
6mo ago
> that a union must preserve the structural hierarchy of the united types, e.g. a union of unions must be different from a union of all types included in the component unions, and the same for a union of optional types, where an optional
371.
▲
by
gf000
6mo ago
I don't think these are discriminated. From the docs: > Union types — exhaustive matching over a closed set of types > Closed hierarchies — exhaustive matching over a sealed class hierarchy > Closed enums — exhaustive matching
372.
▲
by
gf000
6mo ago
I think your "sealed" is misleading here, as that is used for sum types in similar languages (java). As the language designer notes in the comments, these are named unions, as opposed to anonymous ones, but they are also working
373.
▲
by
gf000
6mo ago
But now you can only call methods that are available for both T and IEnumerable<T>, you have no way of knowing which it actually is. (You would know if it were sum types)
374.
▲
by
gf000
6mo ago
Careful not to mix unions with sum types, though. The key distinction is that the latter are disjunct sets, even if you "sum" together the same type twice, you can always tell which "way" you went. An example that may sh
375.
▲
by
gf000
6mo ago
It slides behind a glass panel on the back, so I don't think that's true.
376.
▲
by
gf000
7mo ago
Well, just prompt it to fix the issue! /s
377.
▲
by
gf000
7mo ago
Sure, but you could have had a uniform design language for the last 3 or so frameworks.
378.
▲
by
gf000
7mo ago
These are all great qualities of rust, but they would not have been enough to make a dent. Being memory safe without being managed is what makes rust a truly novel and interesting language for which it rightfully gets the hype.
379.
▲
by
gf000
7mo ago
There are an endless number of modern MLs that do the same thing. That's not a novelty - Rust was novel in making it part of a low-level language.
380.
▲
by
gf000
7mo ago
I think it's a very reasonable tradeoff, getting 99% of true positives at the fraction of cost (both runtime and engineering). Besides, they probably do a separate analysis on server side either way, so they can check a true positive t
381.
▲
by
gf000
7mo ago
There is a difference between a problem being complex and you try to find a solution to it (hard), vs a program being complex. The latter is trivial to execute , but that is entirely different from analysing it.
382.
▲
by
gf000
7mo ago
Well, GPL is good but I think this setup would still be a local optimum for gigacorps, were it MIT or so. They are using plenty of MIT libraries, e.g. Harfbuzz. It would just simply not make sense for them to let other companies' impro
383.
▲
by
gf000
7mo ago
Moving a complex system of muscles so that they can just stand upright is already very very complex, let alone intercepting a prey's movement mid-flight by just controlling all those muscles. People way overestimate the actually intell
384.
▲
by
gf000
7mo ago
Except there are like 600 million cats worldwide..
385.
▲
by
gf000
7mo ago
That's oversimplifying the topic to some catchy lyrics' lines level. Birds burn a ton of energy flying (at least the birds in question here, other birds can glide for long times), it's not something they would willingly do
386.
▲
by
gf000
7mo ago
Well, is slightly modified regurgitated code a copy or not? We have yet to have it answered in the age of AI, but e.g. I could not be selling Mickey Mouse merch with a simple color filter on for long.
387.
▲
by
gf000
7mo ago
Yeah, the funny thing that Linux being open-source is absolutely in line with capitalism. Just look at the list of maintainers - they are almost all paid employees of gigacorps. It is just an optimization that makes sense -- writing an OS t
388.
▲
by
gf000
7mo ago
Yeah, why stick to the inferior kernel used by macs with a worse package manager? Like something like nix is just superior in every sense.
389.
▲
by
gf000
7mo ago
Well, how many more dogs would you need to help you write your university thesis? It's a logical fallacy to assume that more tokens would somehow help - especially that even with cursory use you would see that LLMs, once they go off th
390.
▲
by
gf000
7mo ago
> throw way more reasoning tokens and a combination of many many agents to increase accuracy or creativity and such. But this is just not true, otherwise companies that can already afford such high prices would have already outpaced thei
More ›