HNHacker News
TopNewBestAskShowJobs

shaggie76

353 karma · joined October 5, 2019

submissionscomments
shaggie76··on The Limited Value of Multivitamin Supplements
I wonder, though -- my own experience is my only data-point -- but I got pretty close as a lazy bachelor presumably because of the vitamins that are added to so many things.

For example: the Silk soy milk I buy includes the following ingredients: Calcium Carbonate, Vitamin A Palmitate, Vitamin D2, Riboflavin [B2], Vitamin B12. Do they juice it with extra 12 because they know dirty hippies like me aren't eating eggs? I'd believe it.

So do I really need a separate B12 supplement? Now that I'm a [just as lazy] middle-aged vegan with better access to groceries and a partner that loves to cook I really wonder.

shaggie76··on The Limited Value of Multivitamin Supplements
I'm sorry but it was so long ago I've long since forgotten; I don't know that my lazy bachelorhood diet is a good example anyway (cooking for one with less emphasis on fresh vegetables and more on what I could fit in my backpack to carry home).
shaggie76··on The Limited Value of Multivitamin Supplements
About 20 years ago, after I'd been vegan for a while, I bought a software package that would analyze my hippy diet to see where I was coming up short.

Predictably, my "lazy bachelor vegan" lifestyle wasn't quite hitting the RDI for everything but as soon as I keyed in a multivitamin I had plenty of slack (at least according to this software).

Apart from dispelling my concerns about my diet choices it made me realize the number of things that are fortified with vitamin additives: [soy] milk, flour, salt, to say nothing of processed foods like breakfast cereals.

So maybe for most omnivores a vitamin supplement is harmlessly redundant given the way modern food is processed?

shaggie76··on Artists are fleeing Instagram to keep their work out of Meta's AI
My experience was quite the opposite: I couldn't find a setting to toggle and had to search for a guide. When I found one like https://beebom.com/opt-out-meta-ai-training-instagram-facebo... the process was not only shockingly obfuscated but I could not even submit the form because it demanded that I provide a prompt that made their AI disclose my personal information.
shaggie76··on Routers cyber security best practices
Is enabling WPA3 practical for home networks? I assume my Nintendo Switch wouldn't be able to connect any more if I did.

https://en-americas-support.nintendo.com/app/answers/detail/...

shaggie76··on Windows 11 24H2 no longer runs on processors without SSE4.2
We've struggled with justifying raising the min spec for our game over the last decade and recently pushed up to 4.2 as well.

Historically the question was always one of which optimizations we would be able to 'compile in' (rather than detect and use if available) and it has been increasingly difficult to justify in recent years: a few ops in 4.1, one op in 4.2, but nothing dramatic and we still can't rely on F16C support yet.

These days, the move to exclude older processors seems more designed to avoid headaches from failing older hardware and performance complaints from systems that might technically qualify for your minimum spec but can't offer a satisfying user experience than it has to do with the software being able to take advantage of instruction set extensions.

shaggie76··on WD launches 4TB SD card
The UHS-1 speed really limits what you can do with this; I think you might be able to do some light 4K video on some cameras in limited modes but generally I expect it'll be best for FHD which isn't as storage-hungry to begin with.

I think 4TB of 60FPS FHD ALL-I compression on my Canon R5 would take 38 hours of footage to fill; if you aren't going to do any grading and use a 24/30FPS FHD IPB that number jumps to 97 hours or 4 days of footage.

I also don't know how useful it would be for burst-mode; I filled 256GB in a few hours but that was on a v90 card and I expect on a UHS-1 card I'd have spent a good chunk of that time waiting for the buffer to clear.

I'm sure there's some application for this -- I just can't see it for videography or photography.

shaggie76··on Ask HN: How do I improve my emotional intelligence?
Although I agree with you every time I think of that book I'm reminded that Charles Manson read it in prison and it no doubt helped him is his later years.

https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influen...

shaggie76··on The return of the frame pointers
I thought we'd been using /Oy (Frame-Pointer Omission) for years on Windows and that there was a pdata section on x64 that was used for stack-walking however to my great surprise I just read on MSDN that "In x64 compilers, /Oy and /Oy- are not available."

Does this mean Microsoft decided they weren't going to support breaking profilers and debuggers OR is there some magic in the pdata section that makes it work even if you omit the frame-pointer?

shaggie76··on Working with Tilt/Shift Lenses (2022)
The key thing about all TS-lenses I know of is they only support manual focus; while this may not be a problem for architecture or landscape photography I'm too casual to try to focus a portrait manually (Gregory Heisler talks about doing this in his book "50 portraits" and I love his work).

Rumour has it that Canon's RF-mount tilt-shift lenses will support autofocus though...

shaggie76··on Avoiding register spills in vectorized code with many constants
This was the best part of the article for me:

> Intrinsic vmulq_f32(x, c0, 0) multiplies each lane of register x with lane 0 from register c0.

I don't remember seeing anything like that NEON instruction in AltiVec or SSE so it didn't even occur to me to look for it when I ported some SIMD code to NEON; now I'm going to go back and look for opportunities to use it!

shaggie76··on Intel's next-gen Arrow Lake CPUs might come without hyperthreaded cores
I dimly recall 10-15 years ago that we saw approximately 10% faster running texture filtering on HT cores in addition to real cores -- I'm hazy on the number and I don't remember which CPU we tested with but it seemed as though for a fetch-heavy workload SMT can help hide a cache-miss on one thread by doing ALU on the twin core. Since it didn't cost anything and we already scheduled work across real cores we didn't complain about the gains being marginal from HT cores and left it enabled.

More recently we did some DirectX 12 MT-rendering tests; since there's more considerable overhead for breaking up the work into more batches so we wanted to be sure so we checked carefully.

On a i7-12700K we found that distributing Dx12 work to SMT or E-Cores had no benefit, even in a contrived rendering stress-test.

However, on an unnamed game console, we found that scheduling additional work to the SMT cores improved draw performance by maybe 7%.

YMMV but my impression is the workload needs stall on memory enough to get signfican gains by interleaving the ALU from another thread and this might benefit low-power systems like laptops or mobile phones more than workstations.

shaggie76··on RIP Microsoft WordPad
We used to use RTF for walls text in our game launcher (EULA, MOTD etc). We chose RTF because raw Win32 could render it without extra work and we wanted to minimize both launcher complexity and dependencies.

One thing we noticed was that RTF documents made in WordPad instead of Word were much, much smaller and since every byte added to our CDN bill we made a point of re-saving all our files in WordPad before publishing them. Sometimes simple is good.

shaggie76··on Nintendo Switch's iGPU: Maxwell Nerfed Edition
As a Switch game developer I'd murder my grandmother to save 220MB of memory.
shaggie76··on Is this radical redesign of GIMP possible now?
I have a photography side-hustle and I use GIMP occasionally for advanced edits I can't do in my raw developer. In my semi-regular use over the last 3 years I've never found the UI/UX to be a problem but rather find myself coveting features GIMP either doesn't have or doesn't seem to do very well (smart subject masking, context-aware fill, etc). I'm getting what I pay for, so I don't feel I have any right to complain, but as it drifts farther behind the commercial offerings I suspect debates about the UX might not be what GIMP needs.
shaggie76··on Link-Time Optimisation (LTO)
Yes, IIRC it took a few minutes to turn around an incremental build (instead of maybe 10 seconds) and 2MB bigger text segment for no measurable performance gains.
shaggie76··on Link-Time Optimisation (LTO)
Every few years I try LTO on our game engine (about 1M LOC C++) and either the resulting binary crashes or isn't measurably faster.

Invariably, though, the executable is at least a few MB larger (a bad trade on systems like the Nintendo Switch where memory is scarce) and the incremental build time is intolerable.

I've always wondered why it's never brought the promised free performance; I can only assume our frequent profiling and judicious definition of hot functions inline has gotten us almost everything LTO would bring anyway.

shaggie76··on Turning my hobby into a business made me hate it
"As a side gig" -- I like that -- it reminds me of I had a friend who played in a band that claimed they were just rock musicians to make ends meet until their programming careers took off.
shaggie76··on More than 75% of Steam games tested are playable or verified on the Steam Deck
It's an impressive technical achievement, no question, but we're bedeviled by elusive crashes that seem to be exposed by some nuance of the Proton (WINE) emulation layer (at least 2% of our game crashes and at least 25% of our launcher crashes which is disproportionate given that only half a percent of our players are using some version of WINE).

So I wonder about the metric for "playable" -- is a 4x greater chance of crashing when using your Steam Deck vs your PC still "playable"? And I wonder if players, who can't tell if a crash is related to emulation or a bug in the game, will blame the game developer when it isn't really fair to hold them accountable.

shaggie76··on Against Alcohol (2022)
I'm unconvinced that "productivity" is the best measure my qualify of life and I get a Soviet vibe from the implication that I need to be a good worker on moral grounds (even on Saturdays).
shaggie76··on Google Authenticator now supports Google Account synchronization
I find it curious that they're continuing to develop it; when I found that Authenticator wasn't a 2FA option for my google account I figured it had been abandoned.
shaggie76··on DJI Inspire 3: new 8k cinema drone
I recently got a DJI RS 3 and was deeply offended to discover it "supports up to five uses without activation. After that, activation is required for further use."

Activation is done through a smartphone app you must install that requests your location information and then you must create an account on DJI's website to complete the process.

I deeply resented the whole process and I'd bet the DJI Inspire 3 is just as obnoxious.

shaggie76··on The fastest rm command and one of the fastest cp commands
That's a neat trick; I was in a similar situation recently and wrote a tool that's faster for me though; for a million files ROBOCOPY was 257 seconds, but https://github.com/shaggie76/FastDelete did it in 34 seconds on a hex-core laptop.
shaggie76··on Costa Rica’s enigmatic addresses (2021)
Reminds of me "Darmok and Jalad at Tanagra"

https://www.imdb.com/title/tt0708696/

shaggie76··on Generic dynamic array in 60 lines of C
Counterpoint to people suggesting size_t for capacity: we recently changed our in-house std::vector replacement from { T* first, last, end; } to { T* first; u32 size, capacity; }.

Not only did this shave 8 bytes off of each instance but in many cases it saved more because they became 16 bytes which reduced alignment padding in other objects that use SIMD types that require 16-byte alignment.

This saved 40 MB of memory for us in https://warframe.fandom.com/wiki/Orb_Vallis which, given the poverty our mobile minspec, was a terrific savings.

Your needs may vary, but it's 2023 we're still cramming 4GB of poop into a 2GB bag.

shaggie76··on Huge Pages Are a Good Idea
I'm always sad to see articles like this when large pages are so impractical to use for games on Windows, from MSDN [1]

"The memory is always read/write and nonpageable (always resident in physical memory)."

To say nothing of the fact that you have to do a privilege change to even access the API.

[1] https://learn.microsoft.com/en-us/windows/win32/memory/large...

shaggie76··on Ask HN: How to move from traditional tech into game dev?
Game dev of nearly 23 years here and I often wonder the opposite -- how do I get off this crazy roller-coaster?!

One thing I feel strangely insecure about is my aging orthodox C++ upbringing; these kids and their new-fangled whiz-boppers make me feel like a dinosaur. The flip-side is that it puts hiring pressure for our company (and I assume many others) to find programmers that can write orthodox C++ so that would be the first place I would focus on extending your knowledge.

shaggie76··on New image sensor is here to save your smartphone photos from bad white balance
Color correction (aka white balance) has been one of my biggest struggles in photography and I've seen automatic white balance (AWB) improve very little even in high end SLR and mirrorless cameras over the last 8 years.

Some interchangeable lens cameras (ILC) like the Sony Alpha 7S III have separate "visible light sensor" which I've heard is used to augment AWB but it's a relative rare feature; if the ILC companies made it common by now I suspect the reason might be that you just can't compete with an incident reading or that it isn't much better than just reading from the main sensor.

shaggie76··on The State of HTTP in 2022
Sorry to mislead you; I don't work for a protection service but my company has had contracts with a handful of them and I've tested a handful more.
shaggie76··on The State of HTTP in 2022
As someone who's had to deal with many DDoS attacks I'm rather horrified at the thought of QUIC: dropping UDP at the network border eliminates a lot of headaches.
← PreviousPage 2 of 4Next →