Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kaba0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
211.
▲
by
kaba0
2y ago
Besides all the nice answers given by others, a big one was not mentioned: performance! Graal can do pretty advanced JIT-compilation for any Graal language, plus you can mix-and-match languages (with a big chunk of their ecosystems) and it
212.
▲
by
kaba0
2y ago
Then I guess you know better than all the hundreds of lawyers actively working out the issues on both Apple and EU sides..
213.
▲
by
kaba0
2y ago
I am no lawyer, but I guess any such law has to take into account physical possibility. Like, e.g. youtube itself can’t possibly flag every copyrighted content streamed live/etc.
214.
▲
by
kaba0
2y ago
> The return signature (T, error) indicates that two values will be returned essentially as a tuple by the function Technically, yes, practically, it doesn’t tell you anything, as its most common usage is how it would be used as a sum ty
215.
▲
by
kaba0
2y ago
How is it not just errno? Especially that POSIX mandates errno to be thread-local, so not even that is a difference. Just because there is some syntactic sugar that converts it to a slightly more descriptive type than an int, doesn’t make i
216.
▲
by
kaba0
2y ago
How are sum types not better in literally every possible way? Like, it’s as objective as it gets. Sum types makes it mandatory to unwrap the result - ergo some form of error handling. It is not the case with go.
217.
▲
by
kaba0
2y ago
> Every approach to error handling has advantages and shortcomings If under ‘every approach’ you explicitly exclude go’s terrible errno syntax sugar, and include exceptions and sum types, then yeah. There is zero advantage to go’s error
218.
▲
by
kaba0
2y ago
> In order to write resilient software, programs must handle not only the "happy path" when things succeed, but the path where things might fail And exceptions let you handle error conditions without making the actual business
219.
▲
by
kaba0
2y ago
Go is doing the worst thing possible. It is neither expressive enough for proper sum types, nor does it have expressions (that are analogous to sum types with good defaults and syntactic sugar). It is literally C’s shitty `errno` with synta
220.
▲
by
kaba0
2y ago
With exceptions you don’t silently ignore error and go on as if nothing happened. Just simply not explicitly handling every single possible error is the correct choice in many scenarios - in which case it bubbles up to a general error handl
221.
▲
by
kaba0
2y ago
Plenty of people simply don’t see it though. That’s what apple is betting on.
222.
▲
by
kaba0
2y ago
Yeah, electronic devices has crazy high depreciation rates.
223.
▲
by
kaba0
2y ago
It’s pipelining. Everyone gets a better phone for the price of one.
224.
▲
by
kaba0
2y ago
Because they actually refurbish those devices. It only makes sense for devices that are out there in very large numbers - most of their other products are owned by vastly smaller target groups.
225.
▲
by
kaba0
2y ago
Did you even watch it? The battery life has definitely been an important point here (likely due to Apple intelligence using a lot of energy).
226.
▲
by
kaba0
2y ago
Most people will refuse to go to the doctor when they have serious symptoms themselves. I don’t think stupid/lazy human behavior can be blamed on apple.
227.
▲
by
kaba0
2y ago
And at the time they were comparable to a flashlight in terms of complexity, not running AAA games with raytracing and a camera pipeline of untold complexity. It’s almost like having anything this complex working requires insane engineering
228.
▲
by
kaba0
2y ago
There are cases, but credit where its due, I think they are generally very generous in bringing new features to older devices, compared to plenty other companies that basically forget about they ever released another device the moment a new
229.
▲
by
kaba0
2y ago
> Next time you’re on public transit, or in line at a restaurant, or somewhere else people frequently use phones, take note of how many have cracked screens Cool anecdotal evidence, it does actually seem to be correct based on my experie
230.
▲
by
kaba0
2y ago
Statistics indeed show that 3-4 years is the typical time people switch their phones at, but I don’t think your reasoning is sound. You can cheaply replace the battery at any number of repair shops. It’s simply that 3 small, incremental upg
231.
▲
by
kaba0
2y ago
I think one build tool that has the fundamental abstraction well thought out is mill (written in Scala). Every task is just an ordinary function written in plain Scala, outputting something. Other functions can use this output by simply cal
232.
▲
by
kaba0
2y ago
And that would have been a good test and an interesting data point . But that’s not a step you can just skip.
233.
▲
by
kaba0
2y ago
Something like this would have been a better post than the linked one, but even this is not necessarily objective on each count - and design has a fundamentally subjective, human element based on our collective experience with every kind of
234.
▲
by
kaba0
2y ago
It does have a hover effect though. Design is always about discoverability. If you have seen something similar, you will try to apply that solution. If you haven’t, you try different stuff and see what happens.
235.
▲
by
kaba0
2y ago
What data does he have? OP wrote a basic opinion-piece on what they dislike. It’s just as valuable as the parent commenter’s opinion, so we can only say that one user found some feature hard to find. There is no ultimate design, and strivin
236.
▲
by
kaba0
2y ago
You need good criticism for that.
237.
▲
by
kaba0
2y ago
You do realize that you can use any kind of file manager from GNOME, right? It’s just a program, just as Dolphin, which you can easily install instead. Changing DE for that is just dumb, imo.
238.
▲
by
kaba0
2y ago
But the same way the CPU works very hard to hide that away from you (reordering, caches, etc), green threads could do the same with barely any performance hit.
239.
▲
by
kaba0
2y ago
Well, the runtime (instead of the OS) knows better and can e.g. allocate part of the call stack on the heap itself, like how Java’s virtual threads do.
240.
▲
by
kaba0
2y ago
Are you sure that the developer is the best at determining these context switches? I mean, for a low-level language like rust, sure. But for higher level programming, e.g. some CRUD backend, should the developer really care about all that
More ›