HNHacker News
TopNewBestAskShowJobs

steelbrain

1,144 karma · joined June 24, 2015

Software Engineer, Open Source Enthusiast

https://github.com/steelbrain

submissionscomments
steelbrain··on Swift 6
> Swift is starting to look a lot like a friendlier Rust to me.

That’s what i thought and rewrote my cli util in swift. Ran great on macOS, tried to build for windows and found out there’s no well maintained, actively developed http server for windows for swift.

Dont let these wooing crowds fool you

steelbrain··on Our Git Hash Bug
Maybe you have worked with a different XML than I but I have only terrible memories of working with XML. Starting from the parser inconsistencies (that even led to security vulnerabilities in Apple, see https://blog.siguza.net/psychicpaper/).

On a higher level, the fact that so much different kind of information could exist at each level was nothing but headaches. In YAML, or in JSON, it's pretty straight forward. You have an object, it has children, children have types/values etc.

In XML, you have to keep in mind what the tag of the element, what its attributes are, and then what the child elements are, and then whatever the heck CDATA is.

I think my fellow posters are looking at the past through nostalgic rose tinted glasses. XML was terrible and I am glad it's not used as widely anymore.

steelbrain··on Our Git Hash Bug
JSONC. https://onury.io/jsonc/

It can be hard to find an implementation of this if you're working in a not-so-popular language (looking at you Swift) but JSONC has had the best developer experience of anything I've tried so far.

It's basically JSON with single and multi line comments and trailing commas.

steelbrain··on 16GB of RAM Could Be the New Minimum in Apple's Upcoming M4 Macs
FWIW, It's all about tradeoffs. I've got a bunch of mini-pcs running Ryzen APUs lying around, some of them have SO-DIMM DDR5 and others have LPDDR5.

The former is user-changable and the latter isn't. The latter allows much higher frequencies that measurably increases the fps in games.

steelbrain··on Scanned page by page: 67 years worth of old Radio Shack catalogs
What a trip down the memory lane. Thank you whomever did this.
steelbrain··on Is Telegram really an encrypted messaging app?
Source?
steelbrain··on JavaScript weakmaps should be iterable
Yeah, no. Bad idea.

I could very easily see an evolution speed run here where people do for…of on the weakmap, make closures that use those values and the closure references cause nothing in the WeakMap to do its job, which is get garbage collected.

Then we’ll see a submission on HN that says no, weakmaps should be weak…maps. Followed by intense wars on X/Twitter and then the next version of whatever linter is popular at the time adding linting rules that forbid people from iterating on weak maps.

steelbrain··on New Win11 insider build blocks install on older hardware, prevents TPM bypass
I gave edge another shot last year, because it's just chrome right? Sure. That's what it started out as. Until MS middle-managers trying to get promotions added enough shit to onboarding that it repelled me back to Chrome
steelbrain··on Okay, I Like WezTerm
Going to echo some of the thoughts of sibling posters. I'd been an iTerm2 user since I first started using macOS nearly ten years ago.

I had really started to feel it slow down lately. It hit the breaking point when I was cmd-tab-ing and found myself waiting for more than a second just for the terminal to appear.

Looked around, evaluated a couple alternatives and none of them quite fit my taste. One terminal required an account/login to operate, which is a big no IMO, another was written in {Java,Type}Script so simple commands like `yes` would break it due to the async nature of streams in node.js.

I really like WezTerm so far. It's quite fast, very much configurable and comes with the theme I was configuring with iTerm2 out of the box (OneDark (base16)).

My only trouble with it was in the beginning when I had to add the configs for cmd-left and cmd-right in lua config, I really hoped they'd be in there with the defaults.

steelbrain··on Show HN: Attaching to a virtual GPU over TCP
Since it’s sharing the underlying file system and just running ffmpeg remotely, it should support any variation of outputs
steelbrain··on Cancer Incidence by Country
The numbers in Poland seem pretty out of place. Does anyone know why?
steelbrain··on Show HN: Attaching to a virtual GPU over TCP
Ah this is quite interesting! I had a usecase where I needed a GPU-over-IP but only for transcoding videos. I had a not-so-powerful AMD GPU in my homelab server that somehow kept crashing the kernel any time I tried to encode videos with it and also an NVIDIA RTX 3080 in a gaming machine.

So I wrote https://github.com/steelbrain/ffmpeg-over-ip and had the server running in the windows machine and the client in the media server (could be plex, emby, jellyfin etc) and it worked flawlessly.

steelbrain··on Do not factory reset your Pixel until at least 15 minutes after a system update
Talking uninformed but considering how there’s an A/B update pattern, maybe 15 minutes is the arbitrary threshold after which an update is considered stable enough?
steelbrain··on Volkswagen to invest up to $5B in Rivian
It's literally a h264 stream (in case of carplay) and PCM audio. How did they manage to fuck that up?
steelbrain··on The tiny chip that powers Montreal subway tickets
FWIW, even in places like Estonia, which has a free public transport (bus only?) system, the tickets are still sold/used/checked. Reportedly to get usage numbers and to cost-optimize the routes.

Each resident/citizen can buy a public transport card, then tie it to their Gov ID and then tap it everywhere. You could argue that this could be replaced by some vision tech but I guess this is simpler and has dual use (visitors can purchase the card and pay instead of using for free).

steelbrain··on Surface UEFI: Now using Rust
It reads as if written by ChatGPT. Numerous, shallow paragraphs and no real continuity.
steelbrain··on Optical PCIe 7.0 connection hits 128 GT/s
> eg what requires 4.0 x4 could use 6.0 x1

FWIW, this is only true for newer hardware. ie if you plugged in a pcie gen3x16 device into a pcie gen4x8 slot, although the bandwidth provided is in the same ballpark, the device will only run at pcie gen3x8.

So we'll need until the devices upgrade themselves to gen4 in this scenario to make use of higher bandwidth.

steelbrain··on McDonald's is ending its drive-thru AI test
> or a live version is sufficiently different from any recorded example it has heard before

Probably this.

steelbrain··on Backdoor in D-Link routers enables telnet access
Isn't D-Link Chinese? Why would they compromise their firmware for a US agency?
steelbrain··on French court orders Google, Cloudflare, Cisco to poison DNS to stop piracy
The title on the website is “Google, Cloudflare & Cisco Will Poison DNS to Stop Piracy Block Circumvention”.

Curious why Cloudflare has been singled out in the submission title?

steelbrain··on Tesla's FSD – A Useless Technology Demo
> Meaning that it's really not reliable enough to take your hands off the wheel.

Soooo just like ChatGPT then? As the parent comment said.

steelbrain··on Tesla Releases Results of 2024 Annual Meeting of Stockholders
Wait, what’s the board got to do with this? Wasn’t it shareholder vote this time?
steelbrain··on A ChatGPT mistake cost us $10k
Yes, Cloudflare through the `loader` prop in `Image` component.

See CF docs for what the url should be https://developers.cloudflare.com/images/transform-images/tr... Next.js docs should tell you how to write the loader

steelbrain··on A ChatGPT mistake cost us $10k
I disagree with your threshold for what makes something a lock-in but I admire your ideology of less friction in portability
steelbrain··on A ChatGPT mistake cost us $10k
FWIW, we host on Cloudflare and use their API to resize images on the fly and we're fine. Not so much a "lock-in" if other vendors can fill-in, is it?
steelbrain··on 3dfx Voodoo 4 video card in MXM format
Posting a correction since I can no longer edit the original. It's actually 64Gbps (bits not bytes)
steelbrain··on 3dfx Voodoo 4 video card in MXM format
Unrelated to MXM but I've struggled with the same problem you described (swappable GPUs on laptops). The current solution I've settled with is to get a laptop with a pcie gen4x4 nvme slot, install an oculink adapter on it and connect my full size RTX 3090 to it.

No performance diff far as I can see (oculink on pcie gen4x4 should have ~64GBps bw) and still super portable. and I can finally upgrade the CPU/display and GPU independently

steelbrain··on Open Sourcing DOS 4
Wait, I missed the bus on this one. What's wrong with "sanity check"?
steelbrain··on Why is Windows 11 so annoying?
This is not true. You do not have to do this to install non-app store apps. Right click and open, if you don't get an option to open the first time, right click and open the second time and the option shows up.

Please do not disable Gatekeeper because you want to open apps from a keyboard shortcut instead of right click and open.

steelbrain··on Show HN: DualShock calibration in the browser using WebHID
Chrome is doing amazing work with these WebAPIs. Here's a quick list of things enabled by Chrome being open-minded and allowing WebHID and WebUSB APIs to exist:

- Turn your Stadia controllers into bluetooth controllers: https://stadia.google.com/controller/index_en_GB.html

- Android Flash Tool: https://flash.android.com/welcome

- fastboot.js - FastBoot API but entirely though the web: https://kdrag0n.github.io/fastboot.js/demo/

- WebADB - Android debugging interface through the web: https://app.webadb.com/

and here's my favorite (because I used it in my RX-8)

- Node-Carplay - Carplay interface through a USB dongle in your browser with no external dependencies!!1! (https://github.com/rhysmorgan134/node-CarPlay)

← PreviousPage 4 of 7Next →