HNHacker News
TopNewBestAskShowJobs

cdogl

820 karma · joined May 16, 2017

Backend developer in logistics. Melbourne. Go, AWS, event sourcing, delivery.
submissionscomments
cdogl··on Cross-platform Rust rewrite of the GNU coreutils
I mostly agree with your comment, but the source code of of many GNU coreutils is quite gnarly. It's ancient code (from my reference point as a 35yo) developed at a time when coding style was different and a much smaller community maintained it.

I think it's important for free software that people coming into the community are enthusiastic to maintain it. It took the wind out of my sails a little when I realised the GNU code base, while it produces critical tools I use every day, is written in a way that I found extremely (unnecessarily) terse and "clever". Tracing how different combinations of flags are handled is not much fun. Documentation is helpful for the user, less so for the tinkerer who is trying to understand the stack.

If this project manages to hit parity with GNU coreutils, and my distro(s) provide support, I'll switch to it purely on that basis.

cdogl··on What We Need Instead of "Web Components"
Mostly agree with your comment, but:

> WASM can only access it through JS, foregoing its benefits

Is this a fundamental limitation of WASM? I assume browsers will one day expose a native DOM API.

cdogl··on Widespread FBI abuse of foreign spy law sets off "alarm bells," tech group says
> Citizens are all slaves of one corporation or another so speaking their minds is not within their power.

Speak for yourself! I work in the private sector and I can’t think of any way my speech is circumscribed by that - unless of course I tried to discuss politics in the workplace, which is simply frowned upon because it’s cringe.

cdogl··on Gooey: Turn almost any Python command line program into a full GUI application
> I'm talking about local interface decoupled with a local API from implementation.

To expose this "local API" usefully, you must either:

1. Share memory with other processes (new attack vector), or 2. Listen on some kind of network or native socket for messages and authn+authz the commands that come through it based on some security protocol (new attack vector).

The value proposition of an API is to allow control and data flow between an application and some external entity. It seems to me that it has security implications by definition.

cdogl··on Gooey: Turn almost any Python command line program into a full GUI application
> Honestly, I'd like to see legislation saying all application functionality needs to have APIs.

The security implications of this give me heart palpitations.

cdogl··on JSONB has landed
The same goes for maps in Go, which now explicitly randomizes map iteration with the range keyword to prevent developers from relying on a particular ordering. Neat trick.
cdogl··on My $500M Mars rover mistake
Your excellent story compelled me to share another:

We rarely interact directly with production databases as we have an event sourced architecture. When we do, we run a shell script which tunnels through a bastion host to give us direct access to the database in our production environment, and exposes the standard environment variables to configure a Postgres client.

Our test suites drop and recreate our tables, or truncate them, as part of the test run.

One day, a lead developer ran “make test” after he’d been doing some exploratory work in the prod database as part of a bug fix. The test code respected the environment variables and connected to prod instead of docker. Immediately, our tests dropped and recreated the production tables for that database a few dozen times.

cdogl··on Darling: Run macOS Software on Linux
FWIW: I suspect when GP said “x64 chips” the reference point was that Apple’s main range of devices in 2023 (Apple Silicon) do not run x64 chips.
cdogl··on Making games in Go for absolute beginners
Unfortunately, garbage-collected languages have historically not been great for real-time action games. Throughput and performance can be excellent, but without control over the garbage collector pauses can wreck the experience.

For any game that doesn't require smooth frames for the experience, the best language is the one you're most comfortable with (modulo some base level of game dev community)

Edit: on the other hand, Go is a superb candidate for a back-end game server. I'd say the same goes for the network client layer, but the language interop story is not ideal.

cdogl··on OpenAI's employees were given two explanations for why Sam Altman was fired
> Was Marx wrong?

pt. 1: Whether he was right or wrong was pertinent. You can find plenty of eminent contemporaries of Marx who claimed the opposite. My point was that this is an argument made about technological change throughout history which has become a cliché, and in my opinion it remains a cliche regardless of how eminent (in a narrow field) the person making that claim is. Part of GP was from authority, and I question whether it is even a relevant authority given the scope of the claims.

> Was Marx Wrong?

pt. 2: I was once a Marxist and still consider much Marxist thought and writing to be valuable, but yes: he was wrong about a great many things. He made specific predictions about the _inevitable_ development of global capital that have not played out. Over a century later, the concentration of wealth and power in the hands of the few has not changed, but the quality of life of the average person on the planet has increased immensely - in a world where capitalism is hegemonic.

He was also wrong about the inevitably revolutionary tendencies of the working class. As it turns out, the working class in many countries tend to be either centre right or centre left, like most people, with the proportion varying over time.

cdogl··on OpenAI's employees were given two explanations for why Sam Altman was fired
> Then in the past week, he's going and taking money from the Saudis on the order of billions of dollars to make AI accelerators, even though the single greatest threat from strong AI (according to Hinton) is rich and powerful people using the technology to enhance their power over society.

This prediction predated any of the technology to create even a rudimentary LLM and could be said of more-or-less any transformative technological development in human history. Famously, Marxism makes this very argument about the impact of the industrial revolution and the rise of capital.

Geoffrey Hinton appears to be an eminent cognitive psychologist and computer scientist (edit: nor economist). I'm sure he has a level of expertise I can't begin to grasp in his field, but he's no sociologist or historian. Very few of us are in a position to make predictions about the future - least of all in an area where we don't even fully understand how the _current_ technology works.

cdogl··on datetime.utcnow() is now deprecated
The problem is open source. I generally agree with your analysis of the migration path, but who’s going to go through every open source library and do this grunt work? It comes at a huge cost however you swing it, and it’s not theoretical: I recall trying to switch to Python 3 over and over during those dark years only to find an essential library couldn’t support it.
cdogl··on Details emerge of surprise board coup that ousted CEO Sam Altman at OpenAI
If I'm confident in my competence and the candidate has a trustworthy and compelling narrative about how they undermined incompetent leadership to achieve a higher goal - yep, for sure.
cdogl··on Nepal bans TikTok and says it disrupts social harmony
Learning facts cherry-picked by the algorithm to promote engagement is not the same as being informed.
cdogl··on Zelle finally caves after years of refusing to refund scam victims
“Big tech” is very far from the only sector where transactions can’t all be verified in person. The financial sector is one obvious case.
cdogl··on Bangladesh saved lives by getting lead out of turmeric spice
Change always takes time. India is a large, diverse developing country with many different language groups and wide disparities in living standards. Many people still don’t have access to basic sanitation. Controversies like this are a universal experience in human development. The government’s role is to step in here; casting people as monstrous misses the broader context in my opinion.
cdogl··on Not knowing the /proc file system
This is particularly true in statically typed languages that require a type declaration. Here’s some go:

func copy(f *os.File) { … }

I think f is more than clear enough as a parameter name. The same can be said of variables where the type is easily inferred from the declaration or initialization.

cdogl··on On not noticing rather too many things
Superbly well put; I wish I’d learned this earlier in life.
cdogl··on Does Go Have Subtyping?
> The daily languages that we all use(99% of us) do not utilize complex type systems and thus cannot solve complex problems.

It seems reasonable to assume that the 99% comprises the bulk of production software, which is solving complex problems everywhere every day.

The remaining 1% can be valuable and interesting but come down to a small fraction of real delivered code.

cdogl··on ChatGPT’s system prompts
Very succinctly put - this captures my view but I couldn’t have put it in these words; thanks!
cdogl··on AMD Counter-Strikes itself, pulls driver after anti-lag feature causes CS2 bans
Two similar bugs over multiple decades is an utterly routine occurrence in software development.

Graphics cards and drivers are a marvel of engineering and maths. They work miracles, and are the product of thousands of specialists along the production chain. It’s hardly a damning indictment that they didn’t place compatibility with the anti cheat engines of competitive multiplayer games at the top of their priority list.

cdogl··on Log is the "Pro" in iPhone 15 Pro
I can’t help but nitpick that this isn’t really an anthropologists’ domain.
cdogl··on HTTPie Desktop: cross-platform API testing client for humans
FWIW, I’m fond of a testing technique where the entire “exchange” of a request/response for a HTTP handler test case is committed to the repo.

If the result doesn’t match what’s in the file, the test fails. You can run the tests with a special flag to update them in place.

It gives great regression coverage on that edge of the system and it can easily be done with a good language HTTP library.

cdogl··on We’re opening up access to Gov.uk forms
Should they instead invest time and public money into solving simple product problems (“how many times was this thing looked at?”) in a way that can be understood by the average desk worker? When that problem is well met by the private sector?
cdogl··on Narges Mohammadi wins 2023 Nobel Peace Prize
“When Kissinger won the Nobel peace prize, satire died” - Tom Lehrer, long ago
cdogl··on Productivity has grown faster in Western Europe than in America
It is not a new fad; programmers have complained about this management practice since at least the 1970s.
cdogl··on The $53.000 Intel Mac Pro won't be usable for developing VisionOS apps
> makes it less useful so more likely to end up junked

Only if more than a tiny sliver of the resale market for that product is for VisionOS development (a market segment that does not yet really exist).

cdogl··on Making a music library without a SPA
The one associated with this website.
cdogl··on A journey into the shaken baby syndrome/abusive head trauma controversy
Many academics have these skills; whether the higher education system is effective at teaching them and delivers an experience worth the significant cost to students (or here in Australia, also the publics).
cdogl··on Install Windows the Arch Linux Way
It’s stable and simple. I can run through it in 20 minutes including disk encryption and X.
← PreviousPage 2 of 7Next →