Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kaba0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
511.
▲
by
kaba0
3y ago
Could you materially affect a half-century old internal combustion engine? Sure. Can you do so after decades of miniaturization/optimization, to make it as efficient as they are today? Mobiles are similar, they are filled to the brim w
512.
▲
by
kaba0
3y ago
(Safe) Rust only gives you data race freedom, you can still deadlock and livelock. Don’t pretend that it’s a solved problem, because it is not even close to that.
513.
▲
by
kaba0
3y ago
The actor model is still prone to many forms of race conditions, among others, live and dead locks.
514.
▲
by
kaba0
3y ago
It can even run some C-wrapper python libs, as it can run LLVM code.
515.
▲
by
kaba0
3y ago
Java is a surprisingly small language
516.
▲
by
kaba0
3y ago
They found a better/simpler abstraction. Here is the mailing list (I link to the reddit thread, because there are some useful comments): https://www.reddit.com/r/java/comments/1ba0brh/update_on_str..
517.
▲
by
kaba0
3y ago
It doesn’t make it easy. You can still have dead/live locks.
518.
▲
by
kaba0
3y ago
MicroG means that there is a mechanism to spoof app signatures, which is a core security measure.
519.
▲
by
kaba0
3y ago
It’s not about backdoors. A good chunk of linux userspace is written in unsafe languages (IMO, for no good reason). A well-intentioned buggy program opening bad-intentioned data is enough to cause trouble, and for some reason, no one seem
520.
▲
by
kaba0
3y ago
> MicroG is "insecure" because it requires "signature spoofing But it is literally a less secure option, than what Graphene does provide, sandboxing the original google api itself. > pixel Yes, if you can literally ju
521.
▲
by
kaba0
3y ago
> lot of packages just break out into command line scripting because of its limitations That’s not a breakout, nix just provides the glue around shell commands, because that’s the most readable/accepted way to specify process invoca
522.
▲
by
kaba0
3y ago
Bash is anything but straightforward
523.
▲
by
kaba0
3y ago
It’s pretty much the same with Wayland, everything is just a “surface”.
524.
▲
by
kaba0
3y ago
If you pass your object to another function, you only get static dispatch. What you want instead in this case, is a simple instance method. Then yourApple.rotateFruit() would do what you want, and rutateFruit could be an interface method de
525.
▲
by
kaba0
3y ago
> I’ve never seen this abstraction vomit disease be quite this bad in software written in other languages. You can find a bit of it in C#, C++, go and Python. But not as bad as Java That’s just your personal experience with these languag
526.
▲
by
kaba0
3y ago
Java has generic functions since forever, something like `<T extends Fruit> T rotateFruit(T fruit)` would return your banana typed object just fine.
527.
▲
by
kaba0
3y ago
Sure, but I have also seen C code where random structs with function pointers are passed to god-knows-where, and I will take inheritance over that any time of the day.
528.
▲
by
kaba0
3y ago
> The runtime part is what I dislike. If I have a fruit which is an apple or a banana, I can't pass that to a method expecting an apple or banana. It can only be passed as a fruit. Heh? An apple is a fruit, you can pass it to any
529.
▲
by
kaba0
3y ago
With all due respect, that’s just a dumb conclusion. Optimizing for hello world is dumb - if the primary use case of a given framework is larger scale, than it is more than right with such a size.
530.
▲
by
kaba0
3y ago
That app doesn’t look novel in any way.
531.
▲
by
kaba0
3y ago
It also breaks easily. Npm is a very unstable platform.
532.
▲
by
kaba0
3y ago
Also, it had dirt-cheap hosting, as a single process could host multiple sites (though it did come with some security implications). Nowadays we tend to bring up a whole virtual OS. An interesting direction in this area might be GraalOS, wh
533.
▲
by
kaba0
3y ago
Go’s types are like talking about how cool internal combustion engines are, and you bring up a crank.
534.
▲
by
kaba0
3y ago
Why? Like, besides some basic cli tool, and some “system” network programming (what google meant in their marketing, as go is definitely not a system language), I fail to see any benefit of that thoroughly uninteresting language. It’s basic
535.
▲
by
kaba0
3y ago
Smaller batteries have less ways to go wrong.
536.
▲
by
kaba0
3y ago
I absolutely can’t imagine any mobile game where that latency would be significant in any shape or form. Also, is that latency significant in the first place? Don’t you base it on some bad hardware?
537.
▲
by
kaba0
3y ago
A bad pocket laptop at that. I mean, all the power to you if you use it as a daily driver, but I also own one and it’s just a toy, it is so slow.
538.
▲
by
kaba0
3y ago
I assume you have the 1st gen one — I can only recommend the 2nd gen pro, I didn’t even originally want it, just got a good deal if I buy both this and an ipad, but I use the airpod each and every day for multiple hours, and I only have to
539.
▲
by
kaba0
3y ago
It absolutely affects that. You either check whether any state has changed, doing nothing in the happy path at the price of slightly higher latency, or you just go with the unhappy path all the time.
540.
▲
by
kaba0
3y ago
Why? I mean, if there is a single, even slightly heavy db running for a desktop environment that would seem fine. Of course each service having its own is an overkill.
More ›