HNHacker News
TopNewBestAskShowJobs

smallstepforman

1,871 karma · joined October 12, 2016

submissionscomments
smallstepforman··on Hackers activate automatic defrosting in supermarket fridges across Europe
Who was shelling Donbass for 8 years? Believe in democracy, peoples right to form local government, speak local language, etc?
smallstepforman··on Celebrating 70 Years of Fortran
C allowed pointer aliasing, so you always have to refresh reads incase a pojnter modified the value. With any loop, that is just more reads to update dependancies every cycle. When not aliased, you cache value in register. Much later C introduced “restrict” keyword to match fortran performance code. c++ is still fighting this by insisting you work with different types, hence by default you dont get aliasing but that doesnt cover 100% of scenarios.

Maybe we get restrict in C++35

smallstepforman··on I know why the mathematicians weep
My take is that it is an exciting time to be a mathematician since the frontier for interesting math problems is about to explode, and without prior art or references, it's green field for both AI and human. Think of all the new discoveries we'll make.
smallstepforman··on 'Jonathan' is the oldest land animal on Earth
Well, they dont want more for you, but more for “them”.
smallstepforman··on Turn off Apple Intelligence on macOS 27 and get its disk space back
Ah yes, more enshitification. The other day Visual Studio 2026 brought in a mandatory update, lots of CoPilot stuff I didnt ask for, but they broke code search so finding who uses a structure is now harder to find. No way to revert to older version of VS2026.
smallstepforman··on Writing Efficient C++ Code (2013)
To do something like this, you really need to look at both cache locality and CPU core access patterns:

https://youtu.be/jsdwRf3JvZM?si=0tysoCsvaWl0R_PZ

40’000 NPC in game with collision avoidance, steering, on 8yo hardware.

smallstepforman··on Suspected sabotage causes major Netherlands rail disruption
In Academia, this is not how to cite references. Date, link, etc. The quality of the reference is also important, not “such and such blogger”, might as well go to local bar and ask the regular drunk for references.

Because in the real world (tm) a diplomat announcing this has consequences. Press can parrot any fantasy they want, gullible may just as well watch Marvel entertainment, same relation to reality.

smallstepforman··on Show HN: I made a flight simulator, except you're just a passenger
Now if we can watch fresh movies, that would be ideal …
smallstepforman··on Suspected sabotage causes major Netherlands rail disruption
[quote]Russia declared war on whole west (including this open forum) in 2014[/quote]

I dont remember seeing Lavrov delivering a declaration of war to this “whole west” diplomatic core. Got any real sources to back this absurd claim?

smallstepforman··on iOS 27, iPadOS 27, and macOS 27
Hi Pavel. I remember your work on Eddie and Tracker and Queries. Do you still follow the development of Haiku (even if infrequently)?
smallstepforman··on AirPods 5
You also need microphones to pick up ambient sound and play it back at 180 phase shift ..

There is a reason premium audio car packages cost over 2000$

smallstepforman··on Xiaomi: New CPU matches Apple cores single threaded, much faster multithreaded
Russian are more than happy to sell you NatGas, why do you think they’re weaponising? Watch too much propaganda?
smallstepforman··on Japan tried to build an operating system for the world, the US intervened
By what metric do you consider them a failed state?

You’re on HackerNews, this website attracts free thinkers, we’re not the group that our influenced easily by propaganda, open your mind, read some data, visit the country and then form an opinion. Dont parrot the propaganda of non-free media.

smallstepforman··on Japan tried to build an operating system for the world, the US intervened
*It's my current understanding that Ukrainians performed this sabotage.*

If that were vaguely true, Germany which owned 51% of NordStream would have sued UKR immediately and abolished diplomatic relationship. The fact they didn’t tells you everything you need to know about the absurdity of your claim.

smallstepforman··on Turns are Better than Radians (2022)
For graphics rendering Euler equation doesnt matter. Colours are 0.0-1.0 and have no relation to reality, but it works. Same with rotations (if we’re not using Quaternikns)
smallstepforman··on Turns are Better than Radians (2022)
Are there any c/c++ libs / headers that use this (without converting to radians in the background). I like this idea.
smallstepforman··on I used to be excited about new tech, but I rarely am anymore
Robotics, AI, hypersonic/Ramjets, affordable mobile data, streaming video, lots of innovation in the last 10 years.
smallstepforman··on Soup Raiders goes native: What you gain by building your own game engine
The thing about game engines is that 80%+ of engine developers time is spent on designing tools and a checkbox/slider for you to click. Another 15% is spent on conflits when combining featured. Less than 5% of the time is invested in actual engine features. In raw homegrown engines, you call a function to enable the feature you want. Your 5% time matches commercial engine 5% time. You dont gain much if you know what you are doing. If you dont know what you are doing, well …
smallstepforman··on How Hollywood stopped making movies in Hollywood
In the next decade, AI will be gutting every industry associated with hollywood other than nvidia and tmsc.
smallstepforman··on SwiftUI After 7 Years
Death by a thousand cuts. First the tech community screamed about memory leaks, so they bolted ARC (automatic resource counting) into Cocoa since unlike C++, Objective-C had no RAII. With swift to be compatible, they forced ARC to all objects. To make RAD (rapid application devolpment), they forced InterfaceBuilder onto the dev community, where artists do layout, but engineers do code. With variable sized screens, RAD tools add constraints to layout, since artists do gui, not engineers. To support Retina displays where GUI is x2, two sets of constraints were added. Spaghetti after twine after hack after crap.

All this goes away if you use a language with RAII, dont treat your devs as morons that cannot manage resources, and allow procedural GUI - let smart dev fix layout and pixels per inch. Artist can create mockup screens in photoshot or after effects, devs do actual procedural coding.

But no, we’ve gone the LEGO assembly way to avoid hiring smart devs.

Disclaimer - I do graphic engines with GUI toolkits for a living.

smallstepforman··on Building a Fast Lock-Free Queue in Modern C++ from Scratch
The unique_ptr destructor is called on scope exit, and there are times you want this earlier before other critical code.
smallstepforman··on Half-Life 2 running natively on HaikuOS
X512 is an amazing treasure in the Haiku community. Other than nVidia hardware accelerated drivers, he ported Haiku to RiscV, got sound through HDMI and DisplayPort working, he got AMD Vulkan drivers for Southern Islands chipsets also working, made break throughs in dozens of other porting projects, he’s an amazing Hacker par excellance virtually unknown outside the Haiku community.
smallstepforman··on The PImpl idiom and the C++26 std:indirect type
Oh god, what monstrocity have we created?!?

All this complexity follows unique_ptr and copy constructor madness.

Anything with pointers with ownership should never be copied - period. Reference pointers - OK if scope/lifetime is known.

Can we have c++11 lite?

smallstepforman··on Amiga 1000: Ten years ahead of its time
With mmu, every app has its own 32bit address space, and the mmu “maps” the app space to physical space. Legacy apps get shared address space, while newer apps get isolated space. To port apps, its only the messaging system that needs rework, and if the system does its magic with same API, transition is invisible. At the end of the day, only the message address space needs to be shared. Sendmessage() behind the scenes remaps mmu addresses. Not impossible, just requires the will to do it.
smallstepforman··on Amiga 1000: Ten years ahead of its time
BeOS/Haiku uses datatypes natively
smallstepforman··on Amiga 1000: Ten years ahead of its time
You also got a battery backed clock with the 512kb memory upgrade :)
smallstepforman··on Amiga 1000: Ten years ahead of its time
To support protected memory, you need an MMU, and the base 68000 did not ship with an MMU, however the 68020 and later did. The Amiga 3000 onwards should have defaulted to MMU and had a flicker fixer and chunky graphics and 16 bit sound to really succeed. Another multiverse timeline, perhaps.
smallstepforman··on Hacker wipes Romania's land registry database
NSA is west …
smallstepforman··on The EU is about to sell our most sensitive data to the US for visa-free travel
I wish it was 20-30 minutes. Try 2-3 hours.
smallstepforman··on Rob Pike – 'Concurrency Is Not Parallelism' [video] (2012)
Yet the average software engineer hasn’t heard or Carl Hewitt, Joe Armstrong, has never programmed in an Actor Programming model, and dont even know what it is.
Page 1 of 16Next →