Better HN
topnewbestaskshowjobs
Log inSign up

andersa

3,321 karma · joined Mar 9, 2023 (3y ago) · 623 submissions

Submissions

comment 2y ago · link · parent

Feels like any game that requires a third party account for whatever technical reasons ought to have a "just do it" button that creates an account you can login to via Steam with no further interaction required, which must work in all regions the game is sold in.

For example, games using EOS for cross platform play can do this. Why couldn't PSN do the same?

comment 2y ago · link · parent

If you go on Google Maps today, it works correctly - scrolling up zooms in.

comment 2y ago · link · parent

Why does it zoom the wrong way around? Scrolling up means "zoom in" not "zoom out".

comment 2y ago · link · parent

Yeah, companies really seem to like pissing away their users money on AWS. And then people wonder why everything is an expensive subscription now and somehow Amazon keeps getting richer...

comment 2y ago · link · parent

> But then there is the question of cost on AWS side.

Use Cloudflare R2 for storage, public bucket for delivery, and a $10/month Hetzner server to run conversions. You don't have to take your users' money just to burn it on AWS...

If you are using AWS and are worried about cost, the first step is to not use AWS.

comment 2y ago · link · parent

Why are you persistently storing copies of user passports? This is a data breach waiting to happen. Surely these should only be kept until whatever verification you wanted to do is complete, and then deleted forever?

comment 2y ago · link · parent

Yeah, it's absurd. Current market pricing is more like $4.50 for hourly on-demand and around $2 for long term reservations.

comment 2y ago · link · parent

This will return a range error instead of serving the file.

comment 2y ago · link · parent

I started about 10 years ago with modding games. C++ is what everyone used (and mostly still uses) to write mods/cheats, dll injections, and so on. There were some shared online that I used as reference to learn how it was done. Looking up everything I didn't understand, reading hundreds of forum posts, blogs and stackoverflow. Modifying it to do silly things.

It's a really steep difficulty curve to start like this, but it'll immediately force you to understand all the low level fundamentals if you want to accomplish anything. You can't make a functioning mod if you don't understand the memory model of the game and engine you're messing with, or what your code is actually doing. So you build a really strong foundation by force, and everything after comes naturally.

Now I work at a AAA game studio and it's really fun to be able to easily make large changes to the engine as needed. Sometimes you have to write complicated generic code, and sometimes you get to write really fast and simple code. You always understand what happens behind the scenes, how the computer will represent your data and how it processes it. How different threads interact when accessing shared data. There's not really anything that can't be figured out.

Somehow I never cared for any courses or books. They all want you to make boring things, and that's the best way to get disinterested and give up. Wanting to get a particular thing to work can be incredible motivation to keep digging at it for weeks and learn large amounts of trivia along the way.

I think my suggestion would be don't try to learn C++. Find something you actually want to do (maybe you want to make a game?) and use C++ to do that. At least that's what worked for me.

Also, this meme is very much true. Try to stay clear of "modern c++" template over engineering. There's a reason why no game studio uses the STL. https://twitter.com/nice_byte/status/1466940940229046273

comment 2y ago · link · parent

It doesn't force it, but it is much more fun to use once you understand the fundamentals, since you can still write code where it makes a difference.

comment 2y ago · link · parent

> Potential remedies

- Stop using S3 and other AWS (perhaps it stands for Amazon Web Scams?) things already and switch to Cloudflare R2...

comment 2y ago · link · parent

I'm currently in Germany working remotely for a US company as you described. They pay around 200k pre tax. There are real growth options from there.

I've never seen a single competing offer from a German company, not even at the highest level. A local career here as a developer is a dead end.

comment 2y ago · link · parent

Lol, $1 billion. That's less than Meta spent on GPUs for fun for Zuck's pet project. Needs to be 100 times higher to be useful.

comment 2y ago · link · parent

The alternative is slowly fading into irrelevance.

comment 2y ago · link · parent

Someone who blackmails 33,000 people should receive 33,000 consecutive sentences for blackmail. Why even consider to let someone who uses technology to amplify how much damage they can do to society to such an extent, back out?

comment 2y ago · link · parent

As long as you can answer a (long) series of "do you prefer A or B" questions, you can totally rank 82 people.

comment 2y ago · link · parent

It's not just "kind of insane", it's completely bananas. Like what the actual fuck?

We really need some kind of regulation to ban predatory cloud pricing.

comment 2y ago · link · parent

Does the trapped light take up space, or can we use this to accumulate large amounts of energy like some kind of crystal-based battery?

comment 2y ago · link · parent

> I think this really because C++ builds are fundamentally unstructured. Rather than invoking a compiler on the entire build directory and letting it handle each file, it is invoked once for every file in a way that might be non-trivial.

True, this would also need to be fixed. Compilation would need to become a single process that can effectively manage concurrency and share data.

comment 2y ago · link · parent

Modules are a massively over engineered "solution" to the problem that require significant refactoring to actually make use of them. Have you tried to properly use modules (i.e. create ones in your software, not just import std)? It's super clunky and still hardly usable.

I doubt we'll see Unreal Engine get any benefit from that in a long time for example. It could be so much better, working fully automatically with almost all existing code so long as you use IWYU, which is already standard for large projects where this is needed the most.

comment 2y ago · link · parent

It's frustrating to see the C++ committee spend year after year on pointless new over engineered libraries instead of finally fixing the compile times. On a high level view, with only one change to the language, we could entirely eliminate this problem!

Consider the following theoretically simple change:

A definition in a file may not affect headers included after it. If you want global configuration, define them at the project level, or in a header included by all files that need it.

i.e. we need to break this construct:

    #define MY_CONFIG=1
    #include "header_using_MY_CONFIG.h"
Thats really all we need to do to completely eliminate the nonsense that is constant re-parsing of headers and turn the build process into a task graph where each file is processed exactly one time, and each template is instantiated exactly one time, the intermediate outputs of which can be fully cached.

Most real-world large projects already practice IWYU meaning they are already fully compatible with this.

There are some videos by Jonathan Blow on how this is exactly how the Jai compiler is so fast. Why must we still suffer with these outdated design decisions from 50 years ago in C++? Why can't the tech evolve?

/end rant

comment 2y ago · link · parent

Why do all of your comments look like ChatGPT wrote them?

comment 2y ago · link · parent

This is standard Google behavior. Logging into Google on any new device always asks me to confirm it on one of the other devices that are logged in (i.e. phones, tablets). Suppose it's some kind of 2FA.

comment 2y ago · link · parent

It's a catch 22 - you can't deploy Rust so no one uses Rust for anything, no one uses Rust for anything so there is no reason for Sony to work on Rust deployment.

I think it would be a really good fit for certain parts of the engine - serialization code especially. We have massively complicated C++ code parsing network packets and all sorts of similar sketchy things, always scares me when I see it.

comment 2y ago · link · parent

> I'd expected some AAA title to be written in Rust by now. That hasn't happened, and it's probably not going to happen, for the reasons the author gives.

The main reason is that you can't ship that Rust code on PS5 in a sensible manner. People have tried, got useless toys to compile, but in the end even Embark gave up. I remember seeing something from them that they had moved Rust to server-only.

comment 2y ago · link · parent

It's not really anything new. Very common in environments where you can't ship symbols such as games crashing on player's computers.

For example, the Unreal Engine crash reporter has been capable of sending such a simple format for many years. You can restore a reasonably accurate function/line number from it for each stack frame.

Though minidump is usually preferred as having the stack variables can give additional hints to what happened.

comment 2y ago · link · parent

It starts with a G.

comment 2y ago · link · parent

Easy, it's now a General Processing Unit. Or perhaps a Great Processing Unit?

comment 2y ago · link · parent

It never was. During their brief fight with Elon Musk they revealed old emails clearly stating that releasing things openly was only a ruse to attract talent at first and they never intended to do that with good AI models.
1
789
21