HNHacker News
TopNewBestAskShowJobs

develatio

1,242 karma · joined May 23, 2021

submissionscomments
develatio··on Ask HN: What is your Kubernetes nightmare?
There is also https://k8s.af , which covers some horror stories!
develatio··on The Design of SQLite4
For a moment I thought we might be getting new field types in sqlite. Then I red that this is actually quite old and discontinued :(
develatio··on 4coder editor is now fully open source
For anyone else (like me) who doesn't know what this is, it seems like the website is http://4coder.net
develatio··on Wp-SQLite: WordPress running on an SQLite database
Cloudflare's announcement from a few days ago (D1, SQLite databases for workers) and now this... It's almost like if the universe wanted to guide us into deploying WP into Cloudflare's workers :)
develatio··on Arbitrary file write vulnerability in GNU gzip's zgrep utility
A very odd coincidence that just a few hours ago there was another news about a 0day in another de/compressor: https://news.ycombinator.com/item?id=31070256
develatio··on Sorry, Wrong Number: Debugging a Crash Under Wine
But what happened with the app your friend was trying to run?? Were you able to patch it and make it work? (and if "yes", how?)
develatio··on Ask HN: Why is there no Linux distro that “just works” like macOS?
It really depends on what exactly you're looking for in the "it just works" experience, but since you mention "screen recording" and "external devices" I'll assume that you're specifically asking about the modern gamer-streamer (w/ mic, hardware-based sound control, multiple inputs, ViV, etc...) setup and not a basic-browser-and-mail setup.

Linux, as in "in the desktop environment", has a HUGE (a can't highlight and stress enough the word HUGE) technical debt. It runs on a graphical server that was designed way before GPUs were even a thing (let alone multi-GPU, variable refresh rate monitors, HDPi, HDR, etc...). And because of all the design limitations, X just can't compete with either Windows nor MacOS (in that specific environment setup that you're asking for). It just can't. Period.

Mir and Wayland were born precisely to fix this entire mess. Mir never really took off (because of community backlash?), while Wayland is... well... it has been "in progress" for +10 years and it's still not "there". It will get there, eventually, at which point it might be able to offer the "it just works" experience. Or it might not. We'll have to wait and see.

The audio system was already fixed. A few times... We jumped from Jack, OSS and Alsa to PulseAudio and now to PipeWire and things look promising, but PipeWire is also in the progress, so we're not entirely there yet either.

Bottom line is: There can't be a distro that "just works", because we're missing the pieces to assemble such a distro.

develatio··on Tell HN: Gnome on Wayland Is Amazing
Just one argument that is hitting me every day: X11 is still missing HDR after all the years it's been around.
develatio··on Mitmproxy 8
I thought mitmproxy was designed to make it easier to debug stuff in a local environment. Why would you want to deploy it to production? How would you use it?
develatio··on An Introduction to Deno: Is It Better Than Node.js?
It feels broken, because it's a bad idea, per the design itself.

Basically, you're ("you" as in figuratively speaking) smashing the functionality of a package manager into the interpreter. I'm not convinced at all that making a single tool do more and more stuff is a good idea, but let's keep on.

Then, you're writing URLs (for the libraries you're importing) all over the code (which is just bad). Deno's solution (from the link in my prev reply) is to just put all the URLs in a single file (so, basically a "packages.json", but now inside your code, ¿because that's somehow a good idea?).

Then there's the entire thing about replacing NPMJS, which has full-time engineers working on security, maintenance, etc... with a bunch of different servers, maybe maintained, maybe not, by random people.

Then there's the entire "but how can I be sure that the code didn't change?" thing, to which Deno suggests to use a "--lock command flag". This sounds like "npm.lock / yarn.lock".

And finally, there's the availability concern ("what happens if any of these servers goes down?"), which Deno just dismisses by saying that this can happen to any server. And while that is technically true, pulling all your dependencies from a single place, instead of N different places, reduces the points of failure to 1 (instead of N).

So, this entire "import directly from URLs" sounds just like a package manager with different steps, without providing anything new, without fixing any specific problems with package managers, and introducing new problems (which are in fact old problem, because as I said, we've been there already when PHP thought remote includes were a good idea).

develatio··on An Introduction to Deno: Is It Better Than Node.js?
If we're talking about https://deno.land/manual/linking_to_external_code , then I stand to what I said.
develatio··on An Introduction to Deno: Is It Better Than Node.js?
Importing from HTTP is a bad idea on so many different levels and for so many different reasons (security, immutability, sec compliance, project integrity… the list just goes on and on). We’ve been there (PHP remote includes) and it’s as bad as it can get.

Please don’t say HTTP imports are a good idea. Please.

develatio··on Remix – A framework focused on web fundamentals and modern UX
While I do agree a typo in the very first sentence is not the perfect way to start, there’s still the fact that English is not everybody’s native language and this sort of typos can be very hard to spot for non-english natives.

Not an excuse for having typos in the product’s website, but a very common explanation for it.

develatio··on High Performance Django
This seems to be from 2014, the code is completely outdated.
develatio··on JSON5 Data Interchange Format
IIRC there is a JSON6 format which adds features and improvements on top of JSON5.
develatio··on [dead]
Did the author just compare the "speed" of two languages using a for loop?
develatio··on What Is Server-Driven UI?
If I read the docs correctly, you're literally supposed to send a description of what the UI should look like (which is the same as HTML + CSS: declarative code). How is this any different from just sending HTML + CSS?
develatio··on What Is Server-Driven UI?
This is just plain HTML presented as some JSON-like format. How many times are web developers going to reinvent the wheel instead of using what's already there?
develatio··on Dealing with Out-of-Memory Conditions in Rust
I'm not sure if this can apply to the most commonly used software. A browser can't know in advance how much memory it would need. Same thing applies for audio, image or video editing software. Probably office suites too.

This might be feasible with some limited-in-features apps, like an audio/video player, an IM client, etc...

develatio··on Gitlab 14
Long long ago I was full with excitement and expectation about every Gitlab monthly release just to go over the changelog and read about "the new cool stuff that I'll get to play with when I upgrade". Those days are gone now, sadly. Gitlab's changelog (the "New release" blog posts, that is) are unreadable. There are just too many features pushed in every release, on top of too many deprecations. Last time I tried to go point-by-point in their monthly release' changelog it took me ~2.5 hours just to carefully understand what was added / removed / deprecated.

Upgrading has turned from a joy to a completely fearful experience. And don't get me wrong, the omnibus installer is rock-solid and hasn't failed me once. The fear comes from me wondering if I have missed any of the dozens of things that got deprecated / changed and causing a major downtime in my Gitlab installation.

I wish Gitlab could slow down a little bit, but I totally understand this is not possible.

develatio··on Turn your old, cracked Android phone into a backup server
While, from a technical POV, this sounds fun, I'd really recommend against using an old and cracked phone (which, to add insult to injury, is probably running very outdated and vulnerable software) for backup purposes.

Please, run your backup servers on machines designed to do so, capable of receiving regular software updates, etc...

develatio··on Freenode has blocked all IRCCloud users
Have I ever seen something so big getting destroyed so fast…
develatio··on MS Paint IDE
I bet the author had a lot of fun, but still, I must ask: "why, oh why!!?? Just why!!?"
develatio··on Using Kubernetes to rethink your system architecture and ease technical debt
Kubernetes is a great piece of software and it definitely has it's advantages and use-cases. That said, this post strikes me on several fronts.

The writer starts by saying that servers were treated as pets, which inherently means difficulty (as the author clears out). I assume that, at some point, their services got reworked to a shape where they could be deployed in servers treated as cattle. This is a work the author had to pay no matter if the final goal was Kubernetes, Autoscale Groups or any other solution.

Then the author explains how they got to the conclusion that they need to containerise their service(s) in order to be able to use K8s, which would then, in turn, allow them to scale properly (adding on top the Go rewrite that is mentioned at some point in the post). The author also explains that Autoscale Groups were discarded because of their complexity.

It's not clear to me that K8s was the actual thing that helped them scale, but rather the work they put into reworking their services. In my experience, once your service(s) are ready to be deployed in servers that can be managed as cattle, the benefits show up independently of the deployment solution that is used to deploy the service(s) (K8s, Autoscale Groups, etc...).

Just to add on my point, wouldn't the result (in terms of performance / resources usage) be the same if instead of "containers" the author had chosen "AMIs" and instead of "Kubernetes" the author had opted for "Autoscale Groups"?

If that were the case (which I believe it might have), the other thing to consider would be the difficulty of managing a K8s cluster vs the difficulty of managing an Autoscale Group. I've seen quite some horror stories about K8s[1] and I'd rather choose ASG over K8s.

[1]: https://k8s.af

develatio··on Web worker meets worker threads – threads.js
After having done an initial read on threads.js' docs, I'd say Comlink is missing the entire "observables" functionality. Also, threads.js' API seems less confusing (this is subjective, of course).

Either way, props to OP for the great work!

← PreviousPage 4 of 4