Better HN
topnewbestaskshowjobs
Log inSign up

maccard

14,586 karma · joined Oct 20, 2012 (14y ago) · 6,295 submissions

Software Engineer, with a decade of experience in the games industry working on multiplayer games.
Submissions

comment 14h ago · link · parent

I personally think that standardising std print a mistake (for example).I’ve never worked anywhere or used any project that would use it, and fmt has already left it behind functionality wise. I think the method it was standardised in is a cop out - it being a library type means that I could implement my own without the “baggage” of what print has.

If c++ added something like fstring’s or C#’s $ string then I would be able to use that functionality in my multi million line code base, and as a language feature the compiler can do more with it than it can do with a random function call.

comment 15h ago · link · parent

Ninja is only half the story. those files are really written to be generated so you need something else.

comment 6d ago · link · parent

> if you buy hardware that specifically supports Linux

If I go on to the main retailers online and buy any PC hardware there’s an incredibly high likelihood it works with windows, and if I buy a peripheral it will work on a Mac. The reason that I don’t use Linux at home is because not using it entirely eliminates that problem from life

comment 1w ago · link · parent

I use windows in work (games), and all my personal devices are Mac/iOS. I don’t want to spend _any_ of my spare time tinkering with why my WiFi drivers aren’t working, or if a specific GPU is compatible. That still rules out Linux (or at least it did in 2024 when I last properly looked). The sleeping, hibernating and power management side of windows is shocking - my work laptop will come out of my bag dead probably twice a week a the only way to make that not happen is to go through a full shut down and boot. This is with a think pad, and my previous dell xps at my last job had the same problem, as does my wife’s work laptop. The trackpad hardware is shocking, as are the drivers.

My MacBook Pro “just works”, and has a terminal and a clear favourite package manager (homebrew) that means it doesn’t get in the way. It’s alive when I want to use it, I just open/close the lid. It shares clipboard and browser state between my phone and Mac even on different browsers (safari/firefox). I’ve bought one every 6 years (my last one being an M1 Mac which is still snappier than the 64 core 256GB workstation that I have at my desk in work). It’s also no more expensive than a matching spec XPS, or Samsung phone

comment 1w ago · link · parent

Very much region dependent. I grew up in Ireland and currently live in the UK in a city. Power outages are extremely rare in both.

comment 1w ago · link · parent

50 years ago my parents were getting power outages on the somewhat regular. I have had two in the last decade.

comment 1w ago · link · parent

I did competitive programming, and was terrible at it. (I liked it though). A few years after I graduated I noticed that I had a “tendency” to map problems that we had down to known algorithms that are just not intuitive. Prefix sum comes up all the time, like probably once a week in my work, and the code is quicker and just as easy to write as the naive version.

comment 1w ago · link · parent

> The number of times I had to copy things out of the way, work in a local copy and then copy the file back

Could you not shelve?

The only _real_ footgun that I hit on the semi regular is that if a changelist is only deleted files, getting the head revision number is slightly difficult. This also applies to an undo of an add. But this is only a problem for people scripting p4.

> If your architecture is siloed by contributor and you are using perforce’s limits instead of code reviews / pull requests to constrain your workflow

I’m not really sure what you mean here, sorry. P4 has had a “fine” review tool (swarm) for years and years - it’s on par with if not slightly better than the GH PR view. IDEs (well jetbrains at least) have excellent integrations that let you review in editor.

> But practically if you are engineered the way it sounds like you are, the reality is you probably would spend almost no time resolving merge conflicts.

By design git will have more merge(s). You force the resolution of the branches to merge time, and branches are mandatory. Deciding how you resolve that (merge vs rebase vs squash) is something that I don’t ever particularly want to have to explain to someone who just wants to update a small PR, but it’s effectively required to understand, and you require everyone who works on your project to understand the differences. My gut also says if I asked around the last team I worked with that used git, I’d get about 50% correct answers.

comment 1w ago · link · parent

There’s definitely some historical reasons for it, for sure. There’s 30 years of tooling built that lots of places still use.

A few years back, my project was about 2.5TB and had people checking in every 30 seconds or so, 24/5. It needs to be usable by artists so it needs to be dead simple. It also allows for workspace mappings so user A can have all the art, B can have the source and C can have both. With streams this is manageable from the server side too.

You can do “partial updates” so say folder A is at CL 123, and folder b is at 125. This lets you do nice things like have toolchains in one place, or view latest art in old code changes or vice versa.

It also has very solid permissions, support for sharing paths between projects (like submodules except they work). The centralised workflow suits most places that use it too.

Plus, realistically if you’re paying a salary of even $50k, $600/year for the most important tool is worth it.

comment 1w ago · link · parent

Vtune is free for personal use. Superluminal is €60 for personal use. Pix and render doc are also both free for commercial use’

More people should use them!

comment 1w ago · link · parent

I’ve no comment on lore, I haven’t used it.

> Git’s issue is not that DVCS is bad. It’s just that P4 workflows work better for binaries

I think that git is a good DVCS, but that a DVCS is way overkill for most forms of software development. The complexity that is paid for that is paid by every single person who uses the tool. I don’t think it’s binaries, I think it’s the centralised workflow is just better for many/most teams. I can count on one hand the number of times I have worked with multiple remotes, or pulled from a teammate’s branch without going via a forge.

> Git LFS is tacked on, Git's locking support is crap, the culture of git is not to build helper plugins like P4 so no one does it

Could not agree more here.

> Distributing P4 to multiple offices is a pain in the ass and it really does need a lot of hardware to keep things going

Understatement of the decade! It’s an absolutely enormous, completely unfulfilling task. IIRC, we ran 3 edge servers and an extra pull through proxy at my last job for 100 people, and we spent about $6k/mo on the hardware alone on AWS.

comment 1w ago · link · parent

Right but reconcile is a “break glass and use in case of emergencies” tool. It’s definitely not ideal that every tool has to speak p4, but in practice that just means my editor needs a plugin.

If you use git LFS, you turn git into a centralised vcs but still pay the pride for it being a dVCS. If you use a side channel, you’ve gone way off the deep end IMO.

P4 has many problems (not least the $1700/seat/year cost) but if you can stomach that plus having someone maintain it (which is a real job, and someone has to do it), I think it’s way more suitable for pretty much every company out there, particularly in games. It’s not purely the best, technically the best, designed for modern use, but it has the best failure modes. I could (and have) sit down with someone for 15 minutes with perforce and shown them what to do and probably have them go for 2 years without another question on it, even if they’re not a programmer. It’s excel if git is a relational database.

comment 1w ago · link · parent

It’s a backend, game and web portal that runs in a container with a database and a cache. Everything else is “incidental” complexity that just comes with running an app.

comment 1w ago · link · parent

I’ve not used Claude to resolve an issue with git (I use perforce) but my experience with asking Claude to resolve p4 issues is that it goes down a huge rabbit hole and doesn’t solve the problem. I think it’s an artefact of a proprietary tool though

comment 1w ago · link · parent

I disagree. Perforce requires you to be connected to the depot (ignoring reconcile offline work because that’s a break glass feature), and allows you to check in when you are not synced to latest. It forces you to deal with file level conflicts at time of update, not at the time of submission, and the intermediate state of “I have local changes that the remote/server doesn’t know about” is considered exceptional rather than the norm.

I can count on one hand the number of times I’ve had to reconcile offline work in the last 18 months, which is the equivalent of every merge commit in git.

comment 1w ago · link · parent

A few years ago I was working in a company and I posted something like this:

I am an app developer. Our front end is a C++ application (a game), our backend is a dotnet application. We also have an admin portal. A single feature, including deployment touches C#, C++, JavaScript, opentofu, AWS, windows, Linux (maybe macOS), docker, MySQL, redis, caddy, git, bash, plus all of the libraries and individual tools they call through too. Every single one of those has its own quirks and sharp edges. If I spent my working hours (40h) knowing each of those tools to a professional level, I wouldn’t have enough time to work on the app.

comment 1w ago · link · parent

The parent and this thread are talking about game dev.

> if you know the test cases for your code

IME, most gameplay code is not tested, it’s done by feeling. Quick iteration cycles on feeling, is super important, and most of these sorts of projects have 30+ second boot times (way longer in the days of hard drives instead of SSDs)

comment 1w ago · link · parent

In order to do that you need to know what a detached head is, what head is (and when it’s something different) and that you resolve that.

It’s just not possible to end up in that state with something like P4. My current company has >1000 people, most of whom are non-technical (artists, designers) pushing every day, and even when I worked at places with 30 people, the amount of time I spent training people on “click get latest revison, and double click to submit” was absolutely dwarfed by “I followed the git setup instructions but I can’t push my changes”

comment 1w ago · link · parent

Neither of those work if you work with one other person.

comment 1w ago · link · parent

We still use perforce which is a mess but the reality is that you spend 2 minutes a day interacting with the tool, it doesn’t matter if it’s shit. Even now as a lead, most of my time is in swarm (reviewing), and I don’t care about all the jank that comes with P4.

I actually think git and the DVCS madness is a good example of complexity for the sake of complexity. Ending up in a detached head state through a seemingly normal series of commands, and then being able to continue working and have a very difficult resolution (compared to how you go there in the first place) that requires you to know how git works is a perfect example.

On the flip side, again in P4, you get latest and that’s it.

comment 1w ago · link · parent

I tried to figure out “how much annual leave does one of my staff members have left” today, in workday. The flow was roughly open bookmark, realise bookmark is just some sort of ephemeral link, get redirected back to workday, open okta, 2fa into okta (which I’ve done 3 times today), open workday, 2fa into workday (which is the same 2fa method as okta - yubikey), navigate through 4 different pages, only to be told that this person has X hours remaining for the period until 31/11/2026. It doesn’t show the balance rhey have left after what they’ve booked.

I ended up emailing HR to get an answer, and I’m reasonably certain my employer pays workday 500k+ per year for me to not be able to use the damn thing.

comment 1w ago · link · parent

That time has long passed IMO. This time last year GitHub started having these outages (before the explosion in agentic use, and shortly after the announcement they were moving everything to azure), and by February/March it was clearly untenable IMO.

comment 2w ago · link · parent

Could you share any assets and prompts?

comment 2w ago · link · parent

Art costs are probably the most predictable part of game development (they’re also a large part of it). If you go to an outsource studio and tell them what you want you’ll get a variety of quotes depending on the level of quality you want.

The articles point us mostly right but this isn’t new to the AI age.

> None of them could tell me the cost of a decision that got reversed six months later.

Absolutely everyone in a game studio knows that the cost of a bad decision scales with the number of people working in the project, and all the good leads know the decisions that are easy to revisit. There’s only two terminal decisions in a game project (IME - I’d love to know if there’s another). Not finding the fun, and scaling too early.

> Headcount grew from roughly 100 people in 2015 to around 400 by 2019

Skull and bones shipped in 2024. Pandemic notwithstanding, this checks the “scaled too early” box

comment 2w ago · link · parent

My prosumer ubiquiti gear will give me the MAC address and AP that the device is connected to, along with signal strength. WiFiman and a 5 minute walk will give me the mapping of where had that signal strength from that AP and at that point I could find the device with a physical search. There is no way that this device can’t be found in a few hours by anyone who is even vaguely paying attention.

comment 2w ago · link · parent

They did. They provided work phones and laptops to anyone who wanted/needed them, and had travel laptops for people who needed them occasionally. But if you have one call at 7pm in a year, being able to go home and cook, eat, and take the call without any real hassle is a nice thing.

comment 2w ago · link · parent

Which is 4x the price of github, _plus_ the cost of the runners on top of it.

It's a great service though

comment 2w ago · link · parent

Anecdotally, I've also seen the same thing, and _done_ the same thing (on the zoom accounts). A previous companies policy allowed for zoom logins on non-corp devices so that you could take a late call from home. The only thing I _ever_ use zoom for is work or interviews, so it's not like I'm going to log out after?

comment 2w ago · link · parent

Go hang out on a subreddit for electricians, or plumbers, and in any thread where they talk about the professional side of it, you'll see a consensus that all the work is awful, done with no regard for professionalism, and that if there was just more support for doing it properly they would. Just like here.

There are plenty of software projects that are managed to an incredibly high standard professionally - OpenBSD, PostgreSQL, Curl all come to my mind pretty much immediately. Linux is probably the closest thing to "skyscraper" development and has been going for 35 years at this point.

12345
210