HNHacker News
TopNewBestAskShowJobs

NorwegianDude

1,333 karma · joined June 24, 2020

submissionscomments
NorwegianDude··on Italy investigates Activision Blizzard for pushing in-game purchases
You do have some weird takes on why I'm doing things. The game is free. Not because I'm trying to exploit someone, but because it's much harder and more expensive to market a paid game. I don't have DLCs, cause all content is free for everyone, and forcing players to pay to play by putting content behind paywalls is not something I want to do, and also something the same Norwegian Consumer Council says should not be allowed in games.
NorwegianDude··on Italy investigates Activision Blizzard for pushing in-game purchases
A one time payment for an ongoing service is not sustainable. Infrastructure and content isn't free, the same way you don't pay a one time payment for netflix.
NorwegianDude··on Italy investigates Activision Blizzard for pushing in-game purchases
It's not solved if you're not allowed to bill for fees seperatly. The end result is the same, so it's a dumb rule. It just makes it less clear what you're actually paying for.
NorwegianDude··on Italy investigates Activision Blizzard for pushing in-game purchases
Didn't I just say that it wasn't part of some evil plan? Prices of things have no relattion to that the different bundle sizes are. In-game prices are constant to ensure that people get what they pay for. The price in real money for the in-game currency is adjusted for inflation every now and then.
NorwegianDude··on Many Small Queries Are Efficient in SQLite
40 million reads per second, on a single core? 40 million reads/s is 25 ns per read, that is faster than any RAM I know of.
NorwegianDude··on I Like GitLab
I've been using GitLab since the early days, but a week ago I switched to Forgejo. Power usage on the server dropped by 10%, despite both being idle most of the time.

As the author says, GitLab feels sluggish, and is bloated with 1001 thing I'd never use that just makes the UI a pain. Despite all the features I don't need, some that I would benefit from are disabled in the free version.

Forgejo is simpler. It allows me to hide features per project that I don't need. Bit there are some tradeoffs. Updates on GitLab was great. I've been letting it self update for years with no issues. This does not work on Forgejo. Forgejo is also a lot less polished, and some features just doesn't seem to work like they should.

NorwegianDude··on Many Small Queries Are Efficient in SQLite
I do t have time to test myself now, but it would be interesting to see a proper benchmark. We all know it's not suitable for high write concurrency, but SQLite should be a very good amount faster for reads because of the lack of overhead. But how much faster is it really?
NorwegianDude··on Instabridge has acquired Nova Launcher
SEK, not EUR.
NorwegianDude··on Italy investigates Activision Blizzard for pushing in-game purchases
As a game developer myself, I think young kids should not be able to make purchases on their own.

But some of the ideas on what needs to be done is just silly.

Here is some of the ideas the Norwegian Consumer Council suggested: - All things in games should be shown in real money value, not in game currency that you have to but for real money, and the price should reflect the most expensive way to get the currency. - All transactions in games should have the same rights as in real life(if you buy an item in game, you could use your right of withdrawal). - Users should be able to choose how much the want to buy of premium currency/spend.

While it might have good intentions, they have serious issues. I sell bundles of in game currency. I don't allow users to select just how much they want to buy. I don't do this as part of an evil plan, but because it makes sense. Bigger purchases give more, because the percentage lost to fees are lower. Tiny amount can not be bought, as it would not make sense considering the per transaction cost.

I don't price things in real currencies, cause after the purchase is made, it's not real money, and if it were, I'd be a financial institution and break the rules of all major card networks. It also would cause issues when it comes to inflation adjustment. If an user buys 100 "coins", they can buy something for 100 coins. If I adjust for inflation then I adjust the price of coins, not how many coins are needed to buy something in game. That would not work with real money.

Regulation is welcome, but don't do something dumb. Let most thing be as they are, but put strict rules in place on kids making purchases, that way a grown up who hopefully understands money can approve or deny the purchase.

NorwegianDude··on Cloudflare CEO on the Italy fines
How freaking expensive do you think infrastructure is? It's not that expensive, and certainly not anywhere close to the point where it would make a noticeable impact on GDP.
NorwegianDude··on CSRF protection without tokens or hidden form fields
It's not a wrong solution. It's been commonly used since forever, tens of years before the sec-fetch-site header existed, and it stops CSRF. Sec-fetch-site is not supported in old browsers, so relying on that is unsafe without any fallbacks.
NorwegianDude··on CSRF protection without tokens or hidden form fields
The simplest way to prevent CSRF is to use the Referer header, and that has been used since forever. If the header is missing, you no-op the post. Origin is similar, and can be used with referer as fallback, but it's not needed for most sites.
NorwegianDude··on “Super secure” messaging app leaks everyone's phone number
To be fair, Gmail asks for a phone number, but you dont have to add one.
NorwegianDude··on 100k TPS over a billion rows: the unreasonable effectiveness of SQLite
This is very misleading. The secure defaults for sqlite is changed, so commits are not actually written to the disk. Running sqlite like this will cause data loss on os crash or power loss.
NorwegianDude··on Do not put your site behind Cloudflare if you don't need to
It is an option. You can run without cloudflare, and if you ever need filtering then you just swap over with little downtime.
NorwegianDude··on We cut our Mongo DB costs by 90% by moving to Hetzner
To be fair, a single server is way more reliable than cloud clusters.

Just look at the most recent many hour long Azure downtime where Microsoft could not even get microsoft.com back. With that much downtime you could physically move drives between servers multiple times each year, and still have less downtime. Servers are very reliable, cloud software is not.

I'm not saying people should use a single server if they can avoid it, but using a single cloud provider is just as bad. "We moved to the cloud, with managed services and redundancy, nothing has gone wrong...today"

NorwegianDude··on A sharded DuckDB on 63 nodes runs 1T row aggregation challenge in 5 sec
Nobody cares if I can do it a million times faster, everyone can. It's cheating.

The whole reason you have to account for the time you spend setting it up is so that all work spent processing the data is timed. Otherwise we can just precomputed the answer and print it on demand, that is very fast and easy.

Just getting it into memory is a large bottleneck in the actual challenge.

If I first put it into a DB with statistics that tracks the needed min/max/mean then it's basically instant to retrieve, but also slower to set up because that work needs to be done somewhere. That's why the challenge is time from file to result.

NorwegianDude··on A sharded DuckDB on 63 nodes runs 1T row aggregation challenge in 5 sec
This is very silly. You're not doing the challenge if you do the work up front. The idea is that you start with a file and the goal is to get the result as fast as possible.

How long did it take to distribute and import the data to all workers, what is the total time from file to result?

I can do this a million times faster on one machine, it just depends on what work I do up front.

NorwegianDude··on Apple threatens to stop selling iPhones in the EU
Yeah yeah.

Nobody believes what Americans say, be that Trump, Elon or Apple. They're all full of shit, and they rarely do what they say. The average junkie is a more reliable source on what Apple will do than Apple itself.

NorwegianDude··on Gemma 3 270M: Compact model for hyper-efficient AI
The Gemma 3 models are great! One of the few models that can write Norwegian decently, and the instruction following is in my opinion good for most cases. I do however have some issues that might be related to censorship that I hope will be fixed if there is ever a Gemma 4. Maybe you have some insight into why this is happening?

I run a game when players can post messages, it's a game where players can kill each other, and people often send threats along the lines of "I will kill you". Telling Gemma that it should classify a message as game related or a real life threat, and that it is for a message in a game where players can kill each other and threats are a part of the game, and that it should mark it as game related if it is unclear if the message is a game related threat or a real life threat does not work well. For other similar tasks it seems to follow instructions well, but for serious topics it seems to be very biased, and often err on the side of caution, despite being told not to. Sometimes it even spits out some help lines to contact.

I guess this is because it was trained to be safe, and that affects it's ability to follow instructions for this? Or am I completely off here?

NorwegianDude··on A new PNG spec
No, cause thats just one of the features.

Images are often at different resolutions too, that way, depending on the pixel density of the device, and the physical size, the browser can select the photo that has high enough resolution, but not one that is needlessly large, while also selecting the preferred image format.

NorwegianDude··on Man 'refused entry into US' as border control catch him with bald JD Vance meme
I had planned a trip that included the US for this summer, but the fact that they can demand the password for my devices is the main reason im not going. Having to wipe devices before travel and having to download data again because people dont respect privacy and others suck.

The fact that you have to get approved before traveling(that is fine), and then can be denied entry when you arrive for no logical reason is absurd. Visiting the US is simply not worth the risk and hassle.

Its crazy when you expect your privacy to be more respected in China.

NorwegianDude··on AWS forms EU-based cloud unit as customers fret
No technical dependencies on non-EU infrastructure seems very unlikely. Does the EU edition not rely on the same software that American AWS owns? Isn't it owned by AWS?
NorwegianDude··on Europe launches program to lure scientists away from the US
I dont like the wealth tax, but your numbers are not accurate. There is a discount and deductions on the wealth tax, but after the last election the discount has been reduced drastically.

It's not normally a very large issue, but I really don't like it. Most companies on the exchange makes money, and those who are not on the exchange are taxed on their assets. So in most cases it works out, but not always.

Usually owners use dividends to withdraw money to pay the tax, but that means even more tax as you have to pay tax on the dividends too.

The right side wants to remove the tax on investments, and maybe compensate by increasing the corporate tax. That way the tax on the annual result will be a bit higher, but there will be no wealth tax. This also levels the playing ground when it comes to Norwegian and foreign investors as the tax won't be based on where the owner is from.

NorwegianDude··on Why can't HTML alone do includes?
Well, that very much depends on your definition of slow, doesn't it?

An additional request is another round trip. That can be very slow. Average TTFB on the internet in the US is ~0.7 seconds.

It's much faster to send it as part of the same request as you then don't have to wait for the browser to discover it, request it, wait for the response and then add it.

A build process does not have to be complicated, at all. If you can write HTML then using something that can simply read the HTML includes you wish existed and swap it with the specified filename is trivial.

Ofc, the idea has many other issues, like how to handle dependencies of the included HTML, how to handle conflicts, what oath to use and many more.

NorwegianDude··on Why can't HTML alone do includes?
It does not have to be a programming language on the server, no, unless you want to. The server can have a static site, that you build as you deploy it.

Fetching another resource is expensive. It's another round trip, and depending on many factors it could be another second to load the page. And if the HTML includes other nested HTML then it can be much slower.

This is the exact thing we try to avoid when building websites that perform well. You want as few chained requests as possible, and you want the browser to be aware of them as soon as possible, with the correct priority. That way the browser can get the important stuff needed to display content fast.

Including HTML client side for templating is just wasteful, slow and dumb from a technical standpoint.

Every client would have to do another request for each include. It would literally be many thousands of times slower(or worse) than doing it locally where the templates can be in memory as you render the pre-render the pages. You also save a ton of CPU cycles and bandwidth, by not serving more files with additional overhead like headers.

NorwegianDude··on Why can't HTML alone do includes?
Then you just pre-build the page before publishing it. It's way cheaper as you do the work once, instead of every client being much slower because they have to do additional requests.
NorwegianDude··on Gemma 3 QAT Models: Bringing AI to Consumer GPUs
24 GB of VRAM is a large amount of VRAM on a consumer GPU, that I totally agree with you on. But it's definitely not an extremely high end GPU these days. It is suitable, yes, but not high end. The high end alternative for a consumer GPU would be the RTX 5090, but that is only available for €3000 now, while used 3090s are around €650.
NorwegianDude··on Gemma 3 QAT Models: Bringing AI to Consumer GPUs
3090s are no longer produced, that's why new ones are so expensive. At least here, used 3090s are around €650, and a RTX 5070 is around €625.

It's definitely not extremely high end any more, the price is(at least here) the same as the new mid range consumer cards.

I guess the price can vary by location, but €1800 for a 3090 is crazy, that's more than the new price in 2020.

NorwegianDude··on Gemma 3 QAT Models: Bringing AI to Consumer GPUs
A 3090 is not a extremely high end GPU. Is a consumer GPU launched in 2020, and even in price and compute it's around a mid-range consumer GPU these days.

The high end consumer card from Nvidia is the RTX 5090, and the professional version of the card is the RTX PRO 6000.

← PreviousPage 3 of 14Next →