Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pornel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
87 ms
·
601.
▲
by
pornel
2y ago
The ? syntax agrees that errors should just be regular values returned from functions, and handling of errors should be locally explicit. It's not a different approach from `if err != nil return err`, it merely codifies the existing pr
602.
▲
by
pornel
2y ago
I count C++ projects in the "worst" bucket, where every project has its own build system, its own structure, own way to run tests, own way to configure features, own way to generate docs. So if a build system works great for your
603.
▲
by
pornel
2y ago
> Why do we need separate build systems for every language? Because being cross-language makes them inherit all of the complexity of the worst languages they support. The infinite flexibility required to accommodate everyone keeps costin
604.
▲
by
pornel
2y ago
Sleep (and nap!) tracking precision in Pebble is still waaaay ahead of Apple Watch. Apple Watch is packed with sensors that Pebble never had, but it can't reliably detect when I'm sleeping. It even woke me up once with a go-to-be
605.
▲
by
pornel
2y ago
It only doesn't apply to existing versions of existing packages. Newer releases would apply Zopfli, so over time likely the majority of actively used/maintained packages would be recompressed.
606.
▲
by
pornel
2y ago
Since the operator uses user's computer via screenshots and keyboard/mouse, it's not easy to block by IP, browser fingerprinting, or convoluted page markup. The initial implementation probably has some detectable traits in it
607.
▲
by
pornel
2y ago
The worst thing is that Apple assumes everyone will use Xcode's GUI, and a lot of functionality is de-facto only available through Xcode. It doesn't seem like a standalone SDK with an IDE layered on top, quite the opposite, the CL
608.
▲
by
pornel
2y ago
There should be locking getters/setters for the environ, and all users should switch to them. Yes, it will take a long time, and some users will complain it doesn't work on their PDP-11, but the problem will never be solved if the
609.
▲
by
pornel
2y ago
The legislation has been watered down by lobbying of the trillion-dollar tracking industry. The industry knows ~nobody wants to be tracked, so they don't want to let tracking preferences to be easy to express. They want cookie notices
610.
▲
by
pornel
2y ago
That sounds like AI is a band-aid for Apple's self-inflicted problem caused by designing notifications as a dumb list of boxes limited to a couple of lines. They could have merged the last few recent short messages into one bigger noti
611.
▲
by
pornel
2y ago
The attacker can't be forced to make a request. In this PoC the attacker disabled their own outgoing image requests. But that wouldn't help anyway, even if the image could be cached near the sender first, or the signal server prew
612.
▲
by
pornel
2y ago
I find it amusing that Chinese subsidies are painted as something terrible for the rest of the world and not China. You can a get high-tech cars for cheap, at China's expense! Chinese taxpayers are paying to upgrade your car! (yeah,
613.
▲
by
pornel
2y ago
"Unicode for pixels" would be something like Rec.2020 color (with some specific high depth and HDR solution defined) used in all APIs that take pixels. Currently sRGB is the closest to a universal default, but that's ASCII of
614.
▲
by
pornel
2y ago
ICC isn't too complex itself, but the bolted-on design of color profiles makes them annoying to handle, and easy to ignore. You can't just handle pixels, you need to handle pixels in a context of input and output profiles. That&#
615.
▲
by
pornel
2y ago
PNG and JPEG are simple enough that a single person can write a useful decoder for them from scratch in a weekend or two. The newer formats achieve better compression by adding more and more stuff. They're year-long projects to reimple
616.
▲
by
pornel
2y ago
They're right that they need to actually shift the power away from Bluesky and have users use other servers. The AT protocol may promise decentralisation and an insurance policy, but that is meaningless if Bluesky the company can stop
617.
▲
by
pornel
2y ago
When the meaning of a word gets distorted by use in bad faith, it's no longer useful for its original purpose. Switching to another word isn't ceding power to the bad people. It's taking away their power to redefine things. I
618.
▲
by
pornel
2y ago
Cargo is 10 years old, and it's been working great. It has already proven that it's on a different path than npm. * Rust has a strong type system, with good encapsulation and immutability by default, so the library interfaces are
619.
▲
by
pornel
2y ago
Yes, it works with GitHub, GitLab, Bitbucket, and everything else. It's built into the compiler toolchain. It works with every syntax that you can compile, because it uses the compiler itself to extract the documentation. Yes, it works
620.
▲
by
pornel
2y ago
It would be easily fixable if CommandlineToArgvA was obtaining the command line itself. Then instead of converting to ANSI and then parsing that, it could parse args in Unicode, and then convert argument by argument to ANSI. The output woul
621.
▲
by
pornel
2y ago
It's not the first pointless downgrade of the LG remote: they've already removed the pause button. Now pausing and unpausing is done with the general-purpose click-wheel, is up to each app to implement, and is dependent on the UI
622.
▲
by
pornel
2y ago
This one is funny, but I don't like this saying. It may be interpreted in a defeatist way that poka-yoke is pointless, because it can always be defeated, but in reality improvements that save almost all "idiots" are still w
623.
▲
by
pornel
2y ago
I've tried myself (in Firefox on macOS even), and Bing really scrolled down automatically to hide its logo from the top of the page.
624.
▲
by
pornel
2y ago
Ads work around lack of autoplay by loading massive image filmstrips containing video frames (often split across hundreds of image files), and animating that in JS or CSS. This has all the annoyance of autoplay, with even worse bandwidth an
625.
▲
by
pornel
2y ago
TinyGlade's (co)developer said he's very satisfied with Rust and the crate ecosystem. They've used Bevy's ECS: https://youtu.be/jusWW2pPnA0?t=3275 Using individual components instead of the whole big fra
626.
▲
by
pornel
2y ago
Piracy is just a convenient excuse. DRM is really about control. It's a technical trick that thanks to DMCA anti-reverse engineering clauses becomes a legal trick to dictate exactly who and how can play the content, much tighter than w
627.
▲
by
pornel
2y ago
That Linux drama was due to "nontechnical nonsense" of maintainers refusing to document their APIs requirements. In C you can have a function that returns a pointer, and get no information how long that pointer is valid for, what
628.
▲
by
pornel
2y ago
Rust ecosystem solves that by providing packages that are thin wrappers around underlying APIs. It's very similar to providing an .h file with extra type information, except it's an .rs file. Correctness of the Rust wrapper can&#x
629.
▲
by
pornel
2y ago
Quite the opposite — it blows up the diffs: You rename a method, now it's a few chars shorter/longer, and some 1-liner call sites can become completely rewritten to the vertical style or vice versa. You delete a single line, now t
630.
▲
by
pornel
2y ago
It's a touchy topic throughout the EU. "They're stealing our fish!" gets voters riled up, even in countries where the fishing industry is economically insignificant and/or unprofitable.
More ›