HNHacker News
TopNewBestAskShowJobs

jakogut

1,458 karma · joined March 19, 2018

joseph dot kogut at gmail
submissionscomments
jakogut··on Building a JavaScript Runtime using C
I wasn't trying to make any jabs, just an observation that getting outside of your comfort zone can be novel and interesting, even if it's mundane to people that commonly spend lots of time there.
jakogut··on Building a JavaScript Runtime using C
I suppose when your accustomed level of abstraction is interpreted languages like JavaScript, and "the web", "gluing some libraries together in C" is a somewhat novel and interesting endeavor.
jakogut··on A beginner's guide to deploying LLMs with AMD on Windows using PyTorch
It works on the GPU, and the NPU is supposed to work on Windows using a framework called lemonade (I haven't tried), but the NPU is not supported with the same software stack on Linux yet.
jakogut··on AMD signs AI chip-supply deal with OpenAI, gives it option to take a 10% stake
How's Microsoft's Direct3D moat working out for them now? It's turned out to have been much less of a moat than it once was. Triple-A titles that are developed for Windows using Direct3D 12 are getting support on Linux through Proton within days of release, or even at launch sometimes.
jakogut··on Systems Programming with Zig
Bun.sh uses zig for large portions of native code.
jakogut··on Linux Desktop on Apple Silicon in Practice (2022)
One of the problems is Asahi lacks significant support for the M3/M4, including any kind of graphics acceleration.

https://asahilinux.org/docs/platform/feature-support/m3/#soc...

jakogut··on Windows 7 marketshare jumps to nearly 10% as Windows 10 support is about to end
I mean, virtualizing with good hardware acceleration and integration can kind of be the best of both worlds, right? You're not replacing macOS, you're supplementing it with FOSS software that you _may_ find more tolerable, and if not, just use the same software and workflow that you have been.
jakogut··on Windows 7 marketshare jumps to nearly 10% as Windows 10 support is about to end
Give KDE Plasma a shot! You can even try it in QEMU with virgl for graphics acceleration without risking anything more than an hour or two of time setting it up.

https://github.com/knazarov/homebrew-qemu-virgl

jakogut··on Milwaukee M18 tool battery communication protocol
Accompanying video detailing the protocol and capabilities. https://www.youtube.com/watch?v=tHj0-Gzvbeo
jakogut··on macOS Tahoe
Or when they switched from applications requesting exclusive access to ALSA audio devices to using sound servers for mixing, or when Xorg autoconfiguration was introduced (obviating manual Xorg.conf creation), or when the modesetting DDX replaced vendor specific DDX packages, or when Wayland was introduced with full backward compatibility with Xorg via XWayland. I suppose that last one is more of a lack of change.
jakogut··on Sig Sauer citing national security to keep documents from public
I think the problem is that there's not a single identifiable problem. There's a series of related problems caused by manufacturing and engineering decisions that lead to parts not interoperating as designed.

For example, Sig offered a "voluntary upgrade" to fix the well documented drop safety flaw with the P320, and there's video proof of the same guns going off still in holsters.

Sig is going to be playing whackamole fixing these issues if they ever admit to it, so they won't.

jakogut··on Sig Sauer citing national security to keep documents from public
Carrying a chambered gun in a holster covering the trigger is not negligent. It's how millions of military, law enforcement, and civilians carry on a daily basis.
jakogut··on Sig Sauer citing national security to keep documents from public
I agree and disagree. A holstered pistol is intended to be treated, for all intents and purposes, as deactivated and "on safe" for practicality reasons, even when loaded. Plenty of people carry loaded guns pointed at their bodies daily in holsters, safely at that.
jakogut··on Sig Sauer citing national security to keep documents from public
Right, a Glock will do this too. IvanPrintsGuns on YouTube demonstrated this.

https://youtu.be/r1KoSBcn2bY

jakogut··on Sig Sauer citing national security to keep documents from public
The P320 absolutely has design and manufacturing flaws. The P250 fire control unit was shoehorned into a striker fired pistol when they should've gone back to the drawing board like they did with the P365, which doesn't have these issues.

There are also manufacturing issues with intermingling parts with different geometries intended for different calibers and building guns with the wrong parts, such as installing a 10mm Auto/.45 ACP takedown safety level in a 9mm gun, or installing a metal injection molded firing pin safety that's out of spec, worn, or contributes to tolerance stacking in such a way that the gun becomes unsafe.

jakogut··on Sig Sauer citing national security to keep documents from public
I glossed over parts of this mechanism above, but partially pre-cocked strikers require the trigger bar to pull the striker back more before the trigger bar drops down, releasing the striker. The amount the striker is pre-cocked is not enough to ignite a primer, and the act of pulling the striker back against spring pressure mimics the sear geometry of a hammer fired gun.

Fully cocked strikers are ready to ignite a primer if the striker drops. I don't know of another design like Sig's that has a fully cocked striker, which is not to say there isn't one, or that they're all unsafe.

The P320 in particular suffers from compromises shoehorning a fire control unit designed for one gun into another.

Combined with poor manufacturing techniques, tolerance stacking, part mixing, and poor QA, the striker block, which is the last safety intended to block the striker without an explicit trigger pull, can become ineffective.

To answer your question, there's no mechanical reason a handgun cannot be designed an manufactured to not fire without explicit mechanical input from the user. Indeed almost every commercially produced handgun on the market fits this requirement. A combination of failures on Sig's part has allowed this to happen.

jakogut··on Sig Sauer citing national security to keep documents from public
It's at least partially a design and engineering problem. Sig shoehorned the hammer-fired P250 fire control unit into the P320, which is striker fired. The P250, being hammer fired, uses a fully cocked hammer capable of setting off a primer when dropped, and the P320 (to my understanding) also uses a fully cocked striker, meaning less trigger input is required for firing.

Hammer fired guns are capable of doing this safely because they have a sear geometry that requires moving the hammer back against spring pressure with trigger input a very short distance before the hammer drops. Along with a functioning sear block in case the hammer slips off the sear without trigger input, this makes them very safe.

Basically every other striker fired gun on the market uses a semi-cocked striker with a trigger widget and sear block, which is a copy of Glock's design, and it's quite safe.

Sig deviated from this design without fully proving it out. Their guns don't have trigger widgets, which allows the trigger to move under momentum when dropped, causing repeatable firings. The fully cocked striker design leads to a shorter, crisper pull, but a sear slip leads to uncommanded firings, unlike a semi-cocked design, which doesn't have enough energy to fire a primer.

Combine this with poor control of manufacturing, intermingling of parts designed and intended for different calibers, as well as factories in the US and India with varying levels of quality control and poor spec for parts to begin with (metal injection molding for fire control parts), and safety critical systems like the sear block have been shown to not be 100% reliable. It's a system of cascading failures resulting in a firearm that's unsafe to carry loaded.

jakogut··on Sig Sauer citing national security to keep documents from public
Sig secured contracts for the Modular Handgun System (MHS) competition, with an objectively inferior design compared to every other entry, as well as the Next Generation Squad Weapon (NGSW) program with the Sig MCX Spear firing an objectively worse proprietary cartridge with higher pressure (lower parts lifespan), more recoil and weight, and less capacity. This design takes the firepower and weight of light arms design back to the sixties when battle rifles were still issued. We've forgotten what we already learned decades ago, standardized intermediate cartridges have a plethora of benefits in combat and logistics.

Sig also won contracts for suppressors, optics, and probably more I'm unaware of or can't remember. Unit cost of the M7 is several times higher than the M4, it's heavier, has more recoil, carries less ammo, and the cartridge it fires is still stopped by commonly available body armor that's manufactured today.

Corruption is obvious in my mind, it's shocking Congress seems either oblivious or so complacent.

jakogut··on Waymo granted permit to begin testing in New York City
That sounds reasonable to me. Everybody makes mistakes, but nobody should be consistently making grievous mistakes capable of causing serious injury or death to other motorists on a regular basis.

I'm less concerned with a little speeding than I am with blowing through lights and stop signs.

jakogut··on Waymo granted permit to begin testing in New York City
People are risking their lives and the lives of others, and a fine is supposed to be the thing that finally gets them to comply?
jakogut··on Why are anime catgirls blocking my access to the Linux kernel?
Thank goodness. It was feeling quite dystopian being caught in a bot dragnet that blocked me from resources that are relevant and vital to my work.
jakogut··on Why are anime catgirls blocking my access to the Linux kernel?
I've had Anubis repeatedly fail to authorize me to access numerous open source projects, including the mesa3d gitlab, with a message looking something like "you failed".

As a legitimate open source developer and contributor to buildroot, I've had no recourse besides trying other browsers, networks, and machines, and it's triggered on several combinations.

jakogut··on Secure Boot, TPM and Anti-Cheat Engines
Qemu is capable of running secure boot enabled operating systems with swtpm emulating a physical TPM. There's also vDRM, virgl, and Venus for accelerating graphics workloads in guests, along with a proof of concept Windows driver.

How exactly do anti-cheat vendors intend to prevent this kind of setup from being effective?

jakogut··on A GPU Calculator That Helps Calculate What GPU to Use
Llama.cpp supports Vulkan, which is supported by all GPU vendors that care about standards and interoperability.

The default should be open and portable APIs, not needlessly furthering a hegemony that is detrimental to us all.

jakogut··on Sony's Mark Cerny Has Worked on "Big Chunks of RDNA 5" with AMD
Llama.cpp also has a Vulkan backend that is portable and performant, you don't need to mess with ROCm at all.
jakogut··on 3D printable 6" f/5 compact travel telescope model
What about glass or carbon fiber filled PA6?
jakogut··on It's the end of observability as we know it (and I feel fine)
Yes, with ChatGPT, I added that paragraph as custom instructions under personalization.

I ask a wide variety of things, from what a given plant is deficient in based on a photo, to wireless throughout optimization (went from 600 Mbps to 944 Mbps in one hour of tuning). I use models for discovering new commands, tools, and workflows, interpreting command output, and learning new keywords for deeper and more rigorous research using more conventional methods. I rubber duck with it, explaining technical problems, my hypotheses, and iterating over experiments until arriving at a solution, creating a log in the process. The model is often wrong, but it's also often right, and used the way I do, it's quickly apparent when it's wrong.

I've used ChatGPT's memory feature to extract questions from previous chats that have already been answered to test the quality and usability of local models like Gemma3, as well as craft new prompts in adjacent topics. Prompts that are high leverage, compact, and designed to trip up models that are underpowered or over quantized. For example:

>> "Why would toggling a GPIO in a tight loop not produce a square wave on the pin?"

> Tests: hardware debounce, GPIO write latency, MMIO vs cache, bus timing.

>> "Why is initrd integrity important for disk encryption with TPM sealing?"

> Tests: early boot, attack surface, initramfs tampering vectors.

>> "Why would a Vulkan compute shader run slower on an iGPU than a CPU?"

> Tests: memory bandwidth vs cache locality, driver maturity, PCIe vs UMA.

>> "Why is async compute ineffective on some GPUs?"

> Tests: queue scheduling, preemption granularity, workload balance.

>> "Why might a PID loop overshoot more when sensor update rate decreases?"

> Tests: delayed ACK, bufferbloat, congestion control tuning.

>> "How can TCP experience high latency even with low packet loss?"

> Tests: delayed ACK, bufferbloat, congestion control tuning.

>> "How can increasing an internal combustion engine's compression ratio improve both torque and efficiency?"

> Tests: thermodynamics, combustion behavior, fuel octane interaction.

>> "How can increasing memory in a server slow it down?"

> Tests: NUMA balancing, page table size, cache dilution.

>> "Why would turning off SMT increase single-threaded performance on some CPUs?"

> Tests: resource contention, L1/L2 pressure, scheduling policy.

jakogut··on It's the end of observability as we know it (and I feel fine)
You can achieve a good amount of this with system prompts. I've actually had good success using LLMs to craft effective system prompts and custom instructions to get more rigorous and well researched answers by default.

One I use with ChatGPT currently is:

> Prioritize substance, clarity, and depth. Challenge all my proposals, designs, and conclusions as hypotheses to be tested. Sharpen follow-up questions for precision, surfacing hidden assumptions, trade offs, and failure modes early. Default to terse, logically structured, information-dense responses unless detailed exploration is required. Skip unnecessary praise unless grounded in evidence. Explicitly acknowledge uncertainty when applicable. Always propose at least one alternative framing. Accept critical debate as normal and preferred. Treat all factual claims as provisional unless cited or clearly justified. Cite when appropriate. Acknowledge when claims rely on inference or incomplete information. Favor accuracy over sounding certain.

jakogut··on AMD Radeon 8050S “Strix Halo” Linux Graphics Performance Review
I've done it. I have a GPD Pocket 4 with 64 GB of RAM and the less capable HX 370 Strix Point chip.

Using ollama, hardware acceleration doesn't really work through ROCm. The framework doesn't officially support gfx1151 (Strix Point RDNA 3.5+), though you can override it to fake gfx1150 (Strix Halo, also RDNA 3.5+ and UMA), and it works.

I think I got it to work for smaller models that fit entirely into the preallocated VRAM buffer, but my machine only allows for statically allocating up to 16 GB for the GPU, and where's the fun in that? This is a unified memory architecture chip, I want to be able to run 30+ GB models seamlessly.

It turns out, you can. Just build llama.cpp from source with the Vulkan backend enabled. You can use a 2 GB static VRAM allocation and any additional data spills into GTT which the driver handles mapping into the GPU's address space seamlessly.

You can see a benchmark I performed of a small model on GitHub [0], but I've done up to Gemma3 27b (~21 GB) and other large models with decent performance, and Strix Halo is supposed to have 2-3x the memory bandwidth and compute performance. Even 8b models perform well with the GPU in power saving mode, inside ~8W.

Come to think of it, those results might make a good blog post.

[0] https://github.com/ggml-org/llama.cpp/discussions/10879

Search for "HX 370"

jakogut··on Path Isn't Real on Linux
The Linux kernel also doesn't have any concept of shared libraries, which are resolved by ld.so, a program that's usually shipped as part of libc.

I like this approach of shunting off functionality that's important, necessary, and omnipresent across all OSes to userspace, rather than giving into the temptation to put everything and the kitchen sink into the kernel. It seems to make a more versatile and future proof OS, that's easy to work with in spite of uncertainty.

← PreviousPage 2 of 9Next →