HNHacker News
TopNewBestAskShowJobs

TinkersW

680 karma · joined May 19, 2020

submissionscomments
TinkersW··on User ban controversy reveals Bluesky’s decentralized aspiration isn’t reality
From the article I got the impression Singal was some far right loon, but after looking it up.. nope, he is a liberal that said something mildly out of sync with trans activists opinions...
TinkersW··on How the US got left behind in the electric car race
I don't that that is true, it is more that electric cars still have pretty serious downsides, especially in rural areas or if you do long distance driving.
TinkersW··on 86 GB/s bitpacking with ARM SIMD (single thread)
8 bit is not absent in x86 SIMD, it is a slightly less covered than 32 & 16 bit, but you can fully implement all the common 8 bit ops and most are 1 instruction(with AVX2). There are even various horizontal ops on 8 bit values(avg, dot etc).

Also AVX512 is way more common than SVE2, all Zen4 & Zen5 support it.

TinkersW··on Newton: physics simulation engine built upon NVIDIA Warp
What type of solver is mujoco?
TinkersW··on Zig builds are getting faster
The slowdown can be enormous if you use SIMD, I believe MSVC emits a write to memory after every single SIMD op in debug, thus the code is incredibly slow(more than 10x). If you have any SIMD kernels you will suffer, and likely switch to release, with manual markings used to disable optimizations per function/file.
TinkersW··on A safe, non-owning C++ pointer class
They never mention std::weak_ptr which makes me think they aren't aware of it.. yes this looks pretty useless and unsafe(isn't everything multi-threaded these days..)
TinkersW··on iPhone 17 chip becomes the fastest single-core CPU in the world on PassMark
Mobile games are 99% shovelware
TinkersW··on Why is Windows still tinkering with critical sections? – The Old New Thing
Critical sections are very old, and bloated version of a mutex, but there isn't a good reason to use them today.

Today you can use SRWLock or WaitOnAddress on Windows(or std::shared_mutex for portable impl, but not std::mutex because reasons).

TinkersW··on Go has added Valgrind support
You should see the C++ threads
TinkersW··on Federal judge lifts administration halt of offshore wind farm in New England
He passed a major bill that drove up the debt massively recently, he clearly has zero interest in reducing the debt, just convincing rubes that he does.
TinkersW··on M4.6 Earthquake – 2 km ESE of Berkeley, CA
No it isn't, I grew up in NorCal with earthquakes, a 4.6 is a complete nothing burger, you shrug and continue about your day.
TinkersW··on Faster Argmin on Floats
Yes this is fairly easy to write in AVX, and you can track the index also, honestly the code is cleaner and nicer to read than this mildly obfuscated rust.
TinkersW··on The health benefits of sunlight may outweigh the risk of skin cancer
You can choose to bake, and your skin will harden up and deal with it, but it will also cause long term leathery skin, which many find unattractive, and increased skin cancer risk.

Tho I agree with economist article, sun exposure is very good for you, just not high UV exposure.

TinkersW··on The health benefits of sunlight may outweigh the risk of skin cancer
Often living in a different climate zone, US is well south of Europe.
TinkersW··on In Defense of C++
std::array [] is checked if you have the appropriate build settings toggled, which of course you should during development.

The same applies to many of the other baseless complaints I'm seeing here, learn to use your tools fools.

TinkersW··on Analyzing the memory ordering models of the Apple M1
Maybe x86 should add a flag to toggle the weaker memory model on
TinkersW··on The unreasonable effectiveness of modern sort algorithms
Is there a C++ port of ipnsort?
TinkersW··on Safe C++ proposal is not being continued
Hardware level safety will arrive first(see Apple support for Memory Integrity Enforcement ), not as fool proof as SafeC++/Rust but no need to change code...
TinkersW··on SkiftOS: A hobby OS built from scratch using C/C++ for ARM, x86, and RISC-V
That looks like alot of work, am surprised they built a custom build system, tho given the state of C++ build systems I can't really blame them.

Also why do OS devs seem to have a thing for making browsers? Shouldn't browsers be mostly agnostic to the OS?

The UI looks nice :)

TinkersW··on California lawmakers pass SB 79, housing bill that brings dense housing
Nine stories anywhere in the state near a bus stop seems abit much, most small towns don't have anything over 2 or 3 stories(nor do they have a housing shortage).

CA lawmakers seem to pass laws focused on cities, and ignore the fact that maybe this isn't such a good idea in smaller towns & rural areas.

TinkersW··on Ten Years of D3D12
MSAA doesn't do anything for shader aliasing, it only handles triangle aliasing, and modern renderers have plenty of shader aliasing so there isn't much reason to use MSAA.

The high triangle count of modern renders might in some cases cause the MSAA to become closer to SSAA in terms of cost and memory usage, all for a rather small AA count relative to a temporal method.

Temporal AA can handle everything, and is relatively cheap, so it has replaced all the other approaches. I haven't used Unreal TAA, does Unreal not support the various vendor AI driven TAA's?

TinkersW··on Float Exposed
On the CPU side, yes 64 bits is a good idea, but when transferring to the GPU you simply make the camera location 0,0,0, and transform everything relative to it, thus you can easily use 32 bit float and have no z-fighting or any other precision related issues(a logarithmic depth buffer also helps).

Regarding 64 bit double vs 64 bit fixed width, I don't think there is a really good reason to bother with fixed width, it adds more instructions, and will require a custom debug visualizer to inspect the values.

Bit shifts, at least in SSE/AVX2 etc, are only able to run on a single port, so they actually aren't such a great idea(not sure about scalar, I don't bother to optimize scalar code in this way).

TinkersW··on Charlie Kirk killed at event in Utah
Yes the two extremes feed off each other, and make everything worse for the rest of us.

Personally I think there needs be laws regarding social media, perhaps limiting the number of followers/viewers for anyone engaged in social or political commentary, and/or making promotion of political content illegal if it is false or misleading. Something akin to the fairness doctrine that used to exist for television prior to 1987.

TinkersW··on Charlie Kirk killed at event in Utah
I do see many comments at the bottom that appear to have been deleted, but I can't see what they said, so it isn't possible to know if it was deserved.
TinkersW··on Charlie Kirk killed at event in Utah
I don't think most people are on either extreme, but the media does make it seem that way, along with reddit/twitter/bluesky etc.
TinkersW··on I am giving up on Intel and have bought an AMD Ryzen 9950X3D
I wonder why the idle power is so high(55 watts), I have measured a beelink mini PC with an 8 core Zen4 when idle, and it was 10 watts.
TinkersW··on Shipping textures as PNGs is suboptimal
A single channel SDF can be encoded to BC4 with fairly good quality, and it can actually represent a wider range of values than a u8 texture... but with the downside of only having 8 values per 4x4 block.

So if the texture is small I'd use u8, for a very large texture BC4 isn't a bad idea.

TinkersW··on Shipping textures as PNGs is suboptimal
I don't think any current games use megatextures-- it takes too much memory, and you can compose tiling textures at runtime for good results, that additionally supports dynamic modifications.
TinkersW··on What is it like to be a bat?
There isn't even a definitive definition of conscious, but you are somehow positive that bats don't possess it..
TinkersW··on What brain surgery taught me about the fragile gift of consciousness
When I was put under anesthesia they told me it would be like no time had passed when I woke up, but this wasn't true for me. It felt like time had passed the same way as sleeping.
← PreviousPage 2 of 13Next →