HNHacker News
TopNewBestAskShowJobs

grandinj

1,739 karma · joined August 21, 2009

Noel Grandin, Cape Town, South Africa
submissionscomments
grandinj··on America produces enough oil to meet its needs, so why do we import crude?
Natural gas power plants are relatively modular, and we can chain together units to make a bigger power plant. There is no such equivalent modular unit for petroleum processing. Each plant is highly customised to deal with a specific mix of different kinds of input oil, and to deliver a specific mix of output petroleom products. They can be reconfigured within a narrow range, but they're not highly flexible.
grandinj··on America produces enough oil to meet its needs, so why do we import crude?
It is an enormously complex factory with a high probability of going boom if you do something wrong, so not really, no.
grandinj··on The decline and fall of Java on the desktop
The company I work for is happily delivering Java Swing desktop apps every day.

Works great, easy to debug, tons of open-source components to plug in when we need, sufficiently performant, thoroughly battle tested.

And these are medium update rate apps, not games, but not static forms either.

grandinj··on Thunderbird’s New Home (2020)
I use thunderbird every day, and it just works. Admittedly, I just do basic stuff with it.
grandinj··on Current hardware trends make C++ exceptions harder to justify
I gave talks at the Libreoffice conference in 2019 https://www.youtube.com/watch?v=QnBIeeBZf70 and in 2021 https://www.youtube.com/watch?v=VbL6mXXnFdo&list=PL0pdzjvYW9...
grandinj··on Current hardware trends make C++ exceptions harder to justify
Counterpoint: I do a lot of perf work on LibreOffice, which makes extensive use of exceptions, and I have never ever even seen the exception throwing show up on a profile, let alone become a problem.

I think this paper started with a conclusion, and worked backwards to justify it.

grandinj··on LibreOffice running natively in the browser via WebAssembly
LibreOffice is almost entirely C++, except that there are some extensions written in Java (and some written in python)

I say almost, because we still have some QA code used for unit tests that is Java.

grandinj··on The DoD is prioritizing open source software
Speaking from experience, convincing management is a long-haul process.

It is needs to be repeatedly brought (but gently).

Forward links to success stories, provide counter arguments to FUD (but again, gently!)

I say gently because it's easy to create enemies by making people look bad, and that's a no-no, you have to gradually wear down the old consensus and build a new one.

grandinj··on Agatha Christie could afford a maid and a nanny but not a car
That's a fairly common attitude in poorer countries - there is an expectation that if you are wealthy, you have (at the very least) an obligation to provide employment.
grandinj··on Ask HN: Do you also feel you retain nothing after reading a technical book?
It depends on how you process data. I got used to reading a lot and being comfortable with not retaining a lot. I just keep reading more stuff and eventually it sticks.
grandinj··on Provably space-efficient parallel functional programming
So they are using the same strategy as Erlang (partitioned heaps), with a nice twist of adding hierarchy.

That is great, but runs into the next problem with concurrent programming - shared data - where, for performance, you absolutely have to share memory between heaps and pass ownership between heaps.

Erlang has specific escape hatches for that, I wonder how that would in a functional language.

grandinj··on Lawsuit filed alleging Google is paying Apple to stay out of the search business
Because so far, no-one (within the US legal system) has come up with a formulation for "monopoly" and "market" that does not have (a) unpleasant side effects for businesses that would normally not be considered monopolists (b) a system that is easily gamed by businesses that are trying to monopolise a market.

Not saying it can't be done, just that it seems to be fairly hard.

grandinj··on Redo: A recursive, general-purpose build system
Except when stuff goes wrong. Then gradle is a right PITA because debuggability is essentially zero. And periodically a new version of gradle will break something non-obvious deep in your dependency tree.
grandinj··on Macron says France will build new nuclear energy reactors
You don't need __lots__ of uranium. The cost of uranium for running a nuclear reactor is a rounding error in their overall costs.
grandinj··on Wearable Microphone Jamming
Pretty much most circuits are non-linear, for real-world circuits "linear" just means "linear within normal operating range"
grandinj··on Wearable Microphone Jamming
lots of circuits will fold higher frequencies down into lower frequencies (but at lower energy).

If you can generate enough energy, you can push enough energy into other circuits that they saturate (reach the end of their working range) and will output noise.

grandinj··on YJIT: Building a New JIT Compiler for CRuby
To a certain extent yes, but the largest obstacle is simply that, until rather recently, the core python team was hostile to including complex stuff like a JIT into the main python interpreter codebase.
grandinj··on France cancels defence meeting with UK over submarine row, sources say
Much more likely that the standard optimism that runs through people when they are starting new projects lead them to dramatically underestimate the difficulty of the project - which ended up being "design a new sub from scratch" instead of the intention, which was "lightly modify an existing design"
grandinj··on Cinepaint: The long forgotten GIMP fork that once powered the cinema industry
And by rejecting patches that don't match up with "your way" you risk of alienating talent and resources that could have improved your project.
grandinj··on Cinepaint: The long forgotten GIMP fork that once powered the cinema industry
Unfortunately the primary maintainers of GIMP basically have an attitude of "we want to do it our way, and at our pace", and are not willing to accept any patches outside of that pattern.

Which is both a blessing and a curse - on the one hand, consistency, on the other hand, not welcoming to people who want to try something different.

grandinj··on C++ Exceptions: Under the Hood (2013)
I guess people's experiences are different :-)

I find exceptions to be a perfectly fine error handling mechanism.

I certainly prefer it to cluttering my code with explicit checks for return codes and such like.

grandinj··on C++ Exceptions: Under the Hood (2013)
On the other hand

() they solve a handful of use-cases really really well.

() if you are writing relatively decent C++, most code is pretty much exception safe already

() lots of abstractions are dangerous when mis-used

() they are sufficiently low cost that they almost never show up in the fairly extensive perf profiling I do on a large real-world application (LibreOffice). And LibreOffice throws exceptions __a lot__

(*) Except for toolchain writers, nobody cares how they are implemented

grandinj··on Nuclear power’s reliability is dropping as extreme weather increases
A more likely explanation is simply that the average age of a nuclear plant has been increasing because the build rate is so low.
grandinj··on Postgres sequences can skip 32 unexpectedly
Oracle does this too, so do some other databases.

It's quite a natural optimisation.

grandinj··on Networking I/O with Virtual Threads – Under the hood
i run up to about 500 threads on my Java app with ease, with about 1/3 of them pumping significant data (think stereo streaming audio type data).

I started writing some fancy asynch code, but on checking with a profiler, the thread overhead was pretty negligable, so I left it alone.

grandinj··on Ask HN: How to deal with ADHD without meds?
Regular exercise seems to be key with my friends. Which means building up a set of exercise type things you like doing and finding groups of people who also like those things.
grandinj··on Can a soundbar rival a surround-sound system in a blind listening test? (2020)
I built a sealed box around a Sony 15 inch car speaker. Does a really nice job and didn’t need any theory because sealed boxes are inherently more tolerant.it’s a cube about 2 and something foot on a side. Knocked it together with nails and a jigsaw. Yeah I’m a really hack wood worker :)
grandinj··on I Tricked Myself into Liking Running
Then you should absolutely not be running. Just walk for 10 mins.
grandinj··on Ignoring bulk change commits with Git blame (2019)
It's more flexible, in that I can ignore all sorts of other commits that have no bearing on the bug I'm chasing.

Effectively, I am doing a manual implementation of displaying a "timeline" of commits that apply that code.

But whatever works for you :-)

grandinj··on Ignoring bulk change commits with Git blame (2019)
What I do, is I run loop like

(1) git blame <file> (2) git blame <uninterestinghash>^ <file>

which tells blame to go back to before the hash and do the blame.

I run that loop repeatedly, picking the most recent hash each time (by date/time), until I get back to the change that interests me.

← PreviousPage 4 of 16Next →