HNHacker News
TopNewBestAskShowJobs

grandinj

1,739 karma · joined August 21, 2009

Noel Grandin, Cape Town, South Africa
submissionscomments
grandinj··on AMD Demonstrates Stacked 3D V-Cache Technology: 192 MB at 2 TB/SEC
The wear on most electronics is more dependent on thermal __cycling__ than it is on temperature, assuming it is run without it's operating temperature regime.
grandinj··on Pg8000 – Pure-Python PostgreSQL driver
Agreed. It also unlocks another level of optimisation - the human one - I'm much better at reasoning my way through code improvements when I don't have to manage dealing with switching language/runtime models in the middle of the code :-)
grandinj··on Nix is the ultimate DevOps toolkit
Nix sounds like SELinux.

A great idea in theory, but in practice just too hard.

There is a great deal of genius in coming up with these ideas.

There is just as much genius in finding the 80-90% solution that incorporates most of the original, but in a workable way.

Looking forward to seeing where stuff like Nix ends up.

grandinj··on Fake_contacts: Android app to create fake phone contacts, to do data-poisoning
That is a mistake that sounds suspiciously self serving, given how many powerful people live and work there
grandinj··on Bill Gates: Nuclear power will ‘absolutely’ be politically acceptable again
There is no long-term solution to getting murdered in your sleep either, but we manage to live with that.

In fact, at the risk levels that we are accustomed to dealing with on a day-to-day basis, there are plenty of adequate solutions to disposal and storage of nuclear waste.

grandinj··on Many small queries are efficient in SQLite
try h2database.com if you don't mind Java, has pretty full SQL support (except for weak support for CTEs)

Disclaimer: H2 dev

grandinj··on Why I Built Litestream
Embedded databases where the db is a single file are the bomb.

We build several products in Java using H2 as our database. What a pleasure. Full SQL support, zero configuration/installation/etc.

Just copy data-files/dbs around using normal file tools.

Just start up one process and your app is ready.

grandinj··on Wayland is not ready as a 1:1 compatible Xorg replacement just yet
Not sure about screen-recording, but for screen-sharing purposes, it breaks frequently (as in, every couple of months).

Which is not surprising, because pipewire, too, decided to start from from scratch instead of working inside gstreamer.

grandinj··on A Look at iMessage in iOS 14
What I mean is, it would be really nice if someone would build such a toolkit - I know the code exists inside things like Chrome and Firefox, but I'm not aware of any standalone libraries that make it easy to

(a) create a sandboxed child process with some code inside it (b) talk to that sandboxed child process (e.g. Firefox and Chrome both have IPC libraries) (c) handle the resulting crashes nicely, restarting child process when necessary

grandinj··on A Look at iMessage in iOS 14
Finally, we are seeing more applications pushing chunks of themselves into sandboxed sub-processes.

Now if only there was a nice open-source, cross-platform way to do this..... hint..... hint......

:-)

grandinj··on Errors vs. exceptions in Go and C++ in 2020
> too many programs with a single exception handler right

For a number of useful applications, this is exactly the right, correct, and most useful approach.

I currently maintain several successful (within our commercial niche) 100kLOC+ programs that largely use such an architecture.

It puts the error-handling code in one place, and enables common logging, recovery, filtering and display.

It means that the vast majority of the code can happily just assume that the world is full of unicorns and light.

And given that it is written in Java, the program just largely keeps on running, even in the presence of bugs and weird edge cases, and suchlike, a feature our users really like.

Human are pretty good at going "OK, so that part of the program is having a bad day, I'll report the bug and keep on using the rest of the program".

grandinj··on Capitol Attack Was Months in the Making on Facebook
> tactical gear for hostage-taking

You're talking about people who wear tactical gear to go to the corner store. Who carry guns and flex-cuffs because they are desperate to be some kind of "big man".

Probably a handful of them intended to actually "do" something.

But mostly they just milled about looking like penguins escaping the zoo.

grandinj··on The Problem with Gradle
And when gradle fails (which is frequent) your debugging abilities are extremely limited.

For example, someone “donated” a gradle build script to an open source project I help maintain. It lasted less than 6 months before it began breaking, not because we changed stuff, but because gradle updates had changed how some things worked and a plug-in stopped working. Now “obviously” the answer is that we should have pegged the version of gradle required to use the script, but (a) I don’t even know if that’s possible (b) the donator definitely didn’t think to do that (c) who changes such things in such a production level tool during a stable release cycle?

Now the gradle people certainly seem decent, in my interactions with them, but I think there is unfortunately a strong case of Stockholm Syndrome going on there.

grandinj··on A speaker placement tip that speaker manuals get wrong (2017)
You're probably in a room null when in your "normal position to interact with the PC". Try moving them closer to the back wall. Or there are room treatments like adding some kind of absorption panel to the problematic wall(s).
grandinj··on Geometric effects of certain system design choices
I guess the obvious answer to this is: congratulations! You must have a successful product, or you wouldn’t be seeing so many requests. Now that you have a successful product, you have the budget to generate a solution.

Personally, in this situation, I would find some multithreaded RPC proxy thingy where a single instance would sit between the worker processes and the rest of the services.

grandinj··on State machines are wonderful tools
FSM are fun to write but horrible to modify especially if you’re not the one who wrote it.
grandinj··on CIA vs. Wikileaks [video]
Unless that model was expected to also function as some kind of push-to-talk device on a local radio network.
grandinj··on WireGuard: Great protocol, but skip the Mac app
That sounds like a good idea that should be added to the WireGuard installer? Perhaps log a feature request?
grandinj··on Being kind to others is good for your health
Causation may be backwards here - people with good mental health are more likely to be kind to others because there is no mental baggage standing in the way.
grandinj··on That Dothraki Horde, Part III: Horse Fiddles
It’s not really criticism so much as using a widely known fantasy setting as a starting point for exploring history
grandinj··on GTK 4.0 Released
wxwidgets is reasonable
grandinj··on SQLite briefing for Linux kernel hackers (2019)
CIFS is do-able, but you would need the database to have a special mode for it, and for some extra API to be exposed by the kernel (byte-level locking)

NFS is just about impossible (except in narrowly restricted situations)

grandinj··on Graphics for JVM
Oracle has mostly disbanded the team that was working on it, leaving only one or two staff to manage community contributions.

There are however, a couple of small companies, and some individuals using it, and providing contributions.

grandinj··on Graphics for JVM
Yeah, your mileage may vary.

I was writing UIs in Swing 10 years ago, and we managed fine even back then, but our target customer is technical people so maybe our definition of "looks good" is somewhat easier.

grandinj··on Graphics for JVM
Sigh. I had such high hopes for it, and then Oracle abandoned it.

But we are trying it, and opinions (internal to my company) are varied. Some people like it, but I don't. Because (a) it has missing functionality here and there (b) it still has a long road to go to become battle-hardened (c) I don't see any of the current supporters having deep enough pockets to fix (a) and (b)

So we're taking a mostly wait-and-see attitude.

But we have an existing deep and wide investment in Swing in our products, so our risk profile is probably somewhat different to yours.

grandinj··on Graphics for JVM
We build all our desktop products using Swing, and it works pretty well. Looks pretty native (if you want it to), is thoroughly battle-tested, reasonably performant, and has a bazillion open-source extras floating around (of varying quality).

If you need 3d, we drop into OpenGL and use that (e.g. when integrating WorldWind).

Sometimes I feel bad about how easy it is to write desktop UIs in Java - the API is stable, nobody keeps changing it under me, I don't have to wonder what Microsoft is pushing this year, it is (mostly) easy to debug, has open source forms designers (Netbeans), etc, etc.

grandinj··on Java Concurrency – Understanding the Basics of Threads
Except for that pesky swallowing of exceptions, I agree
grandinj··on If Not SPAs, What?
Just noting that the abstraction stuff is mostly a consequence of the CORBA-derived, over-engineered "Enterprise Java" space, and provided you stay out of that tar-pit, and choose your libraries/dependencies wisely, Java is really nice to work with.

Even if you need to implement some kind of "Enterprise Java" app, you can do so with much better libraries and tools than back then, that do not suffer from the excessive abstraction problem.

grandinj··on On Abandoning the X Server
I so glad to see there are still people practicing sound engineering in this world.

The driving force behind Wayland appears to be commercial interests that have no interest in the desktop use-case per-se.

The linux-only outcome is purely an unintended side-effect.

grandinj··on The X.Org Server Is Abandonware?
We used to have a well-functioning display server that was robust and battle-tested.

The wayland people replaced that with a half-baked solution because they insisted on boiling the ocean - replacing the entire thing in one go, instead of working piecemeal (which the X protocol was explicitly designed to allow).

Which is a great pity, because now the day of the Linux Desktop is even further off.

← PreviousPage 5 of 16Next →