HNHacker News
TopNewBestAskShowJobs

torlok

1,195 karma · joined December 10, 2023

submissionscomments
torlok··on You Know GDPR Is Good Based on Who Hates It
Europeans were blowing each other up 80 years ago. Now we have complete freedom of movement and trade. You're missing the forest for the trees. The EU is the greatest achievement of our parents' generation.
torlok··on It's getting harder to focus every day
I don't think this is a solution. I do this often naturally, I walk around and "plan", and it feels like I'm just avoiding sitting down and doing the actual task.

The author talks about it; when facing a difficult problem, they go get a glass of water, and get distracted. That's what this is. Anything but doing the actual task. If you're going to take a break, take an honest break and rest, but then go back to work. That's the real solution, and boy is it hard to do these days.

torlok··on Learn OpenGL, extensive tutorial resource for learning Modern OpenGL
OpenGL is still the simplest way to start learning hardware accelerated rendering, and it runs on all modern platforms.
torlok··on Learn OpenGL, extensive tutorial resource for learning Modern OpenGL
Yes, OpenGL 4.1 is available, just deprecated. It's emulated through Metal, and so will work on M chips.
torlok··on Learn WebGPU for C++
I maybe be a complete moron not familiar with Github, but I wanted to have a look at the code and it took me solid 5 minutes of going through the website searching for a link to the repository, and the only one I eventually found was when I scrolled to the bottom and clicked the Github icon. Removing the path from https://eliemichel.github.io/LearnWebGPU/index.html leads to 404, no idea why that doesn't just lead to https://github.com/eliemichel. Don't know if it's just me, but I get unreasonably frustrated by things like this.
torlok··on Why malloc always does more than I asked for?
As I said, a slab allocator is included as part of general purpose malloc implementations. Rust is not going to be smarter here. I would bet it uses malloc underneath anyway.

Using a fat pointer to address individual bits is a waste of memory. You'd need an offset and length, and you'd have to deal with byte boundaries when accessing data. The only way I see this working is if you had a language that natively supported sub byte types and could deal with alignment of such types natively. Your best bet would be bit fields, which Rust doesn't support natively.

Dynamically allocating tiny amounts of data is a niche issue. You don't want a genetic solution to this anyway, because the efficiency will come from the constraints specific to your problem.

torlok··on Why malloc always does more than I asked for?
You mean 4 bytes? You can't even address 4 bits. Small allocations can be handled by a slab allocator. Most likely implemented via a free list. A general purpose malloc should have that feature. TBH, I would consider allocating such tiny amounts of memory as a programmer error.
torlok··on Grok 4.5
DOGE gutted SSA, IRS, directly affecting seniors and other vulnerable people getting checks, gutted CFPB taking away fraud protection, not to mention gutting of USAID which caused countless deaths, though I'm sure you don't care. Musk used his wealth and social platform to greatly help elect a man, whose personal gestapo is now chasing down non-white US citizens and disappearing them.

But sure, he didn't personally punch anybody, and doesn't wear an SS uniform in public.

torlok··on Apple's weird anti-nausea dots cured my car sickness
Are AI comments allowed on HN?
torlok··on TinyWind: A pixel pirate sailing game with real wind physics (380k+ kms sailed)
There's a vague correlation between wind direction and sailing speed, but there's nothing real here. The mechanics of sailing upwind, downwind, or the cost of tacking are interesting mechanics that aren't explored here whatsoever. The dead angle on a ship with a square rig should be massive. This ship goes upwind like it has a motor.
torlok··on The iPad was on Tailscale: a WebRTC debugging story
Reading titles like these makes me feel like I'm having a stroke.
torlok··on Making peace with your unlived dreams (2023)
I had the same mindset about wanting to be good at a lot of things, working on myself, not "wasting time", but now in my mid thirties I figured that if I really wanted to do something, I'd be actually doing it, and a lot of these goals boil down to "it would be cool if I was good at X", and aren't actually things I care about.
torlok··on S&P 500 rejects SpaceX, also blocking entry for OpenAI and Anthropic
To who? There's no immediate benefit of holding a stock that doesn't pay out beyond voting rights, or a fraction of company assets. As parent said, you're just hoping to sell it to somebody down the line for more. It's speculation. The market is liquid, and a lot of people believe these stocks have value, but it's still speculation.
torlok··on S&P 500 rejects SpaceX, also blocking entry for OpenAI and Anthropic
Every time I try to explain this to people I feel like I'm talking to a brick wall. Even more frustrating to hear, otherwise reasonable, market analysts say that "dividends don't matter because the stock value goes down on payout". What doesn't matter is how successful a company is if they don't share their profits. You're literally buying a Pokémon card just with a lot of liquidity until the illusion of value bursts, hoping that somebody will buy you out because P/E improves or whatever.
torlok··on SpaceX, Other Mega IPOs Denied Fast Index Entry by S&P
It didn't already happen. As you pointed out, people who funded the purchase of Twitter hold SpaceX shares, and this IPO is how they get their money back.
torlok··on Can the stockmarket swallow Anthropic, SpaceX and OpenAI?
People who helped Elon buy Twitter want their money back. After all the share-swap acquisitions X shares are now SpaceX shares.
torlok··on Goodbye Visa and Mastercard: 130M Europeans switching to sovereign payment
Europe is dealing with the US, just not via empty threats on social media. Things take time when you have a functioning democratic system with checks and balances.
torlok··on Agentic Trading with Safe Guardrails
It's there any evidence that trading off of headlines works long-term?
torlok··on Sam Altman's Business Dealings Under GOP Scrutiny Ahead of OpenAI's IPO
Sounds a lot like what Musk does, except maybe that Musk uses his companies to outright bail himself out.
torlok··on UAE to leave OPEC
I think you underestimate how little economic pressure matters when people are up against an invader who attacked amidst negotiations for bogus reasons, threatened total annihilation, and killed thousands, including a school full of children.
torlok··on Do you want the US to "win" AI?
Beside posturing, modern China was only involved in skirmishes at the Indian border. What's delusional is blindly comparing China to Russia or the USA.
torlok··on F-35 is built for the wrong war
Russia is keeping their expensive equipment in the back since years now because they're afraid to lose it. They would be fire bombing cities if they could. Russia already used white phosphorous in this war. The only reason they're not killing more civilians with missiles and drones is because they can't build more of them.
torlok··on Europe has "maybe 6 weeks of jet fuel left"
Thanks Joe Rogan.
torlok··on Europe has "maybe 6 weeks of jet fuel left"
Thousands dead, millions displaced, Hegseth just quoted "Pulp Fiction" at a sermon, but perhaps this might make enough Europeans fed up with the US.
torlok··on Vance Says U.S.-Iran Peace Talks Break Down over Nuclear Issue
Hardly a surprise. This crack team of negotiators couldn't make Russia budge an inch after a year of negotiations, and only managed to put pressure on the victim country.
torlok··on Iran Unable to Find Mines in Strait of Hormuz, U.S. Says
Hilarious. Trump didn't agree to let Iran have control of the strait in a desperate attempt, they just can't find the mines, because if they could, the strait would have been open by now.

This is funnier than when Vance tried to dismiss Iran's Lebanon ceasefire condition by suggesting that Iranians can't understand English.

Nice to see USA get a taste of Trump's dealmaking skills after trying to tell Ukraine to concede more than they already lost for nothing in return.

torlok··on Iran demands Bitcoin fees for ships passing Hormuz during ceasefire
It's safe to assume nothing has actually changed until there's a signed deal. With Trump it's all just talk.
torlok··on Iran demands Bitcoin fees for ships passing Hormuz during ceasefire
Bitcoin is in a side trend. It's slightly up because it follows the equity market. Nothing indicates an increased demand yet.
torlok··on US and Iran agree to provisional ceasefire
The talks are theater. Trump is running around like a headless chicken, so it may look like a lot of "diplomacy" is happening, but if you look at the Iranian side, they remain in control over the strait, and their demands haven't changed. The fact that Iran agreed to talk is because Trump caved-in enough.
torlok··on US and Iran agree to provisional ceasefire
There's no ceasefire until Israel stops attacking. Iran retains control over the strait, and their demands haven't changed. Nothing's new other than Iran is ready to sit at the negotiating table because Trump caved-in enough.
← PreviousPage 2 of 13Next →