HNHacker News
TopNewBestAskShowJobs

kvuj

224 karma · joined February 7, 2022

submissionscomments
kvuj··on Branchless Quicksort faster than std:sort and pdqsort with C and C++ API
>On modern CPUs, avoiding branch misprediction is a key technique to speed up programs. This branchless approach:

>

>for (int i = 0; i < 1000; i++) {

> small_numbers[smlen] = numbers[i];

> smlen += (numbers[i] < 500);

>}

Excuse my terrible ignorance but isn't there still a branch? If numbers[i] < 500 then 1 else 0? I would think something like addition plus a bit comparison would avoid said branch. Unless compilers already optimize the code, but then wouldn't they also optimize the naive piece of code?

kvuj··on It's hard to justify buying a Framework 12
From a quick search online, the max brightness of your laptop is 400 nits SDR and 500 HDR. My M5 MacBook Pro is 1000 and 1500 nits.

Screen brightness is not something I will compromise on after having a taste of greatness.

I personally wouldn't mind spending 30-40% more for a Linux laptop with similar qualities + repairability. But I will not settle for something much more expensive and worst in some aspects.

There are also arguments agains repairability in Framework's laptop. I did the calculations and for the Framework 16, it would be cheaper to buy a gaming Asus laptop and throw it out in a couple years to replace it versus buying a framework and upgrading it. Utter insanity.

kvuj··on Ferrari Luce
My god that V8 sounds terrible. From a company that made countless howling V12s, it's quite disappointing.

Emission regulations I'm guessing.

kvuj··on OpenBSD 7.9
A song released with it too! So much care for OpenBSD.
kvuj··on Where to buy a non-Apple, non-Google smartphone
If you're gonna leave the big two, why would you go for a closed source system where they can (and do) commit the same crime against user freedom?
kvuj··on Tesla Model Y Passes NHTSA's New 'Advanced Driver Assistance System' Tests
My god, from this video I learned two things:

- Tesla's vision only approach seems a lot more competent than the Lidar suites from smaller Chinese makers. Perhaps I misjudged how necessary Lidar was to achieve safe driving.

- Virtually all of the Chinese car infotainment were basically a 1:1 copy of Tesla's. I couldn't find any that genuinely tried something unique lol

kvuj··on SpaceX says it has agreement to acquire Cursor for $60B
20 years is not enough.

If you just look at the past 20 years, the US has had exceptional returns compared to the rest of the world.

The thing is, historically, high PE ratios like what we're seeing in the US do not correlate with short term returns that are as high. Expected future returns decrease as the PE ratios go up in a pretty linear fashion.

https://am.jpmorgan.com/us/en/asset-management/institutional...

kvuj··on SpaceX says it has agreement to acquire Cursor for $60B
You could just buy deep out of money SP500 puts expiring in 1+ year. That way you would be "insured" against the bubble popping.

The thing is, every dollar you spend on insurance is a dollar (and its interest) you lose. Furthermore, we don't know when it will pop. 1 year? 5 years?

The more reasonable solution is probably gradually reduce exposure to US markets by selling SP500 shares and turning to Europe and emerging markets ETFs. No need to cash out 401k.

kvuj··on Edit store price tags using Flipper Zero
People like you are why we are living in an increasingly lower trust society, with for example having items behind locked door in shops.

Reminds me a bit of the shopping cart theory.

kvuj··on At long last, InfoWars is ours
Right up with the crypto scam that followed it. Great.

In case you didn't know, the creators of Birds aren't real rug pulled and stole millions with their crypto coin.

kvuj··on Lean proved this program correct; then I found a bug
This feels like a thought exercise rather than an argument.

By your logic, it's impossible to prove that a car is driving at 60mph. There could be an error in the speedometer which makes it impossible to verify that said car is going at the speed. You can get asymptomatically close to being sure that you're driving at 60 mph but you can never be 100% sure.

This is useless and serves no purpose.

kvuj··on Filing the corners off my MacBooks
Maybe I'm autistic, but I loooove the sharp edges near the opening. They've become almost a nervous tick of playing with them with my fingers.

I've got no idea why, but the sharp feeling is amazing.

kvuj··on Apple signs meaningless deal to make some less-important parts in America
The comments on El Reg's article are... not the types of comment that will further the discussion of onshoring manufacturing.
kvuj··on USD Purchasing Power in Real Time Since 2000
For me it's the opposite. I am a bit surprised that inflation halved buying power since 2000.

In my mind those level of interest usually come from the stock market or house appreciation, but I guess those are much faster (I seem to recall doubling every 8 years in the stock market and housing being a bit slower).

kvuj··on Microsoft hasn't had a coherent GUI strategy since Petzold
> Web apps work everywhere. The web has grown increasingly powerful and capable. Why would I invest in a technology that can only run on a single OS? Doesn't make sense.

For me, I see these following advantages:

- Performance; Native & compiled is king.

- Ram usage; Kilobytes vs Mega(giga?)bytes.

- UI control which integrates with the rest of the OS (and updates when the underlying OS tweaks the UI)

From a business standpoint, I get your point that these points don't really matter. Users have shown to not care in the slightest at the bloat in programs.

However for code I write in my spare time, I would much rather write my native Linux program in compiled code than to ship a subpar experience to the few who will interact with it.

kvuj··on Samsung Magician disk utility takes 18 steps and two reboots to uninstall
> I feel like the complaints here are…not really Samsung's fault?

I don't know man, the last time I uninstalled an app on macOS, all I had to do was drag it to the trash. If you find this procedure sane, then I don't know what to tell you.

Samsung is responsible of how users interact with their app, including its install and removal.

kvuj··on Slovenia becomes first EU country to introduce fuel rationing
And yet we are a lot more globalized than in the 1970s. Ressources can be diverted at a much quicker rate with a lot more agility.
kvuj··on Vibe-Coded Ext4 for OpenBSD
How is that different than a human writing the code? Whether an AI or a human wrote it, I would expect the same bar of validity/maintainability.
kvuj··on A Year with the Framework 13
I think a good portion of their sales have been ideological in nature.

Back when it came out, Apple was starting to add firmware locks to more and more components like the battery and the rest of the industry were getting worse and worse ifixit repair scores. Nowadays, a lot of companies are starting to take repairability by the end user more seriously (look at the neo) which is hurting the value proposition of Framework's laptop.

kvuj··on Running Tesla Model 3's computer on my desk using parts from crashed cars
What a rancid comment. The first thing you can think of when seeing someone earnestly sharing their learning process, is to insult them of being vain.
kvuj··on Migrating to the EU
Wouldn't source that this is happening in 1 of the member states be enough to raise alarms? Why do all of them need to for you to consider this an issue?
kvuj··on Tesla: Failure of the FSD's degradation detection system [pdf]
> This report is insanely vague though. It's very preliminary, opened yesterday.

Yeah I think posting this here is premature without any details.

Maybe I'm misremembering things, but I feel like 4-5 years ago we didn't have these clickbait headlines that fed political discourse. It feels like reddit culture has permeated this place for a while.

Anytime one of Elon Musk's company has a misstep, the headlines violently shoots to the top of the front page.

kvuj··on The strait of Hormuz blockade will strangle US defense industry
Those are some serious qualifications and the linked article shows quite a few examples, but I would still like to be shown data instead of a appeal to authority.

Maybe I'm just used to high quality reporting on the subjects I read like Irrational analysis or Chips and cheese where a minimum of 10 graphs are needed for any deep dive.

kvuj··on The strait of Hormuz blockade will strangle US defense industry
> “We don’t know who their vendors are,” he said, adding that beyond a few steps in long chains of subcontractors, “nobody actually knows who’s providing these metals, these minerals, the parts. And it just becomes a maze.”

So how can you predict the impact on the US defense industry? How can you predict it will be strangled?

What the hell is this shitty article that doesn't use a single hard number? No graphs, no prediction based on previous wars, no investigative dig into the supply chains...

kvuj··on Honda is killing its EVs
That used to be the case, but modern Toyotas have a lot of problems with their engines. This doesn't inspire confidence in the brand's overall quality.

Add the fact that EVs are a lot simpler, and I don't really see the reasons to pay the Toyota premium. Perhaps less depreciation?

kvuj··on Canada's bill C-22 mandates mass metadata surveillance
From what I've seen, it's simply an aversion to mass scale surveillance, even in public setting. The worry being how easy it could slide into a tool used by the state for nefarious purposes (punish political dissidents, etc).
kvuj··on The MacBook Neo
For me the longer software support would play a role in my decisions. The M1 MBA will probably lose support in 4-5 years whereas the Neo has a longer road ahead.

Combine that with the enormously improved single core performance (which matters more in the real world than sustained load for an entry level notebook), fun colors and 499 price tag for students and I can see the interest.

The screen is good compared to the MBA (only loses P3 colors) but the bummer seems to be ports and the "normal" trackpad.

kvuj··on Possible US Government iPhone-Hacking Toolkit in foreign spy and criminal hands
I think the downvotes come from the friction of the language used and the lack of sources to back the claim. If you linked some stories, it would add some weight to the statement.
kvuj··on The United States and Israel have launched a major attack on Iran
> The Iranians are pragmatic. Look beyond their relationship with the US. There are other state actors that Iran wants to remain in good relations with.

Which is why they're sending missiles and drone strikes on the United Arab Emirates, Saudi Arabia, Oman, Bahrain, Kuwait and Qatar.

kvuj··on The United States and Israel have launched a major attack on Iran
While that's a funny thought, recently I stumbled across a sobering website [1].

This website lets you zoom in on the Ukraine-Russia battlefront and place Polymarket bets on land being taken by Russia. We may be closer to big private company betting on wars than we'd like to think.

[1] pizzint.watch

← PreviousPage 2 of 3Next →