HNHacker News
TopNewBestAskShowJobs

notpeter

273 karma · joined August 19, 2014

twitter.com/notpeter or github.com/notpeter

[ my public key: https://keybase.io/notpeter; my proof: https://keybase.io/notpeter/sigs/2LlFlnqR6PtUrY8glBnjFgwjFeA0CYIOpn1o-7f3fN4 ]

submissionscomments
notpeter··on JEP 541: Deprecate the macOS/x64 Port for Removal
June 2026 Steam Survey says 23% Intel

Homebrew 30d says 27% Intel

My gut says 20-25% is a reasonable ballpark.

Apple generally provides 6-8 years of OS support for hardware. My 6.5 year old 2019 Macbook Pro works fine with macOS 26; macOS 27 will drop support in September 2026; macOS 28 will drop Rosetta Intel support. macOS 26 get updates thru September 2028 at which point all Intel mac hardware will be >8 years old.

[1]: https://store.steampowered.com/hwsurvey/processormfg/

[2]: https://formulae.brew.sh/analytics/homebrew-os-arch-ci/30d/

notpeter··on Zed Editor Theme-Builder
It does this, but only for a couple dozen file extensions -- .svelte is one of them.

https://github.com/zed-industries/zed/blob/c8f09caee42ea4e27...

notpeter··on When a video codec wins an Emmy
There's actually two Engineering Emmy Awards. There's also the 'Primetime Engineering Emmy Awards' given by the ATAS (Academy of Television Arts and Sciences) while 'Technology and Engineering Emmy Awards' are given by NATAS (National Academy of Television Arts and Sciences), not confusing at all.

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

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

notpeter··on Scaleway turns Mac Minis into high‑density, Raspberry Pi–managed servers
This is what MacStadium does. Here's a drawer design for the previous gen intel macs:

https://cdn.prod.website-files.com/687e650a56916806eaaf8f62/...

You can find a bunch more detail in their related patent filings:

https://patents.google.com/patent/US20240397658A1/en?q=(%22m...

notpeter··on Nokia’s legendary font makes for a great user interface font
Very few units sold. Distribution was poor, most were GSM only and only a couple supported 850mhz. I had the E70-2 and later E61i but I never meant anyone else with one.
notpeter··on Zed: High-performance AI Code Editor
1. You can specify your terminal font via terminal.font_family in zed settings.json

2. Not sure.

3. For most languages, the default is to use prettier for formatting. You can disable `format_on_save` globally, per-language and per project depending on your needs. If you ever need to save without triggering format ("workspace: save without formatting").

Prettier is /opinionated/ -- and its default is `singleQuote` = false which can be quite jarring if unexpected. Prettier will look for and respect various configuration files (.prettierrc, .editorconfig, via package.json, etc) so projects can set their own defaults (e.g. `singleQuote = true`). Zed can also be configured to further override prettier config zed settings, but I usually find that's more trouble than it's worth.

If you have another formatter you prefer (a language server or an external cli that will format files piped to stdin) you can easily have zed use those instead. Note, you can always manually reformat with `editor: format` and leave `format_on_save` off by default if that's more your code style.

- https://zed.dev/docs/configuring-zed#terminal-font-family

- https://zed.dev/docs/configuring-zed#format-on-save

- https://prettier.io/docs/configuration

- https://zed.dev/docs/languages/yaml#prettier-formatting

- https://zed.dev/docs/configuring-zed#formatter

notpeter··on Hackberry-Pi_Zero – A handheld Linux terminal using Raspberry Pi Zero 2W
Very similar to the Beepberry. Exciting to see someone else building into that form factor. Also love to fun to see the Nokia BL-5C battery (originally introduced in the Nokia 3650 in 2003) still alive and kicking 20years later.

https://blog.beeper.com/2023/05/16/beeper-x-sqmfi-beepberry/

notpeter··on Why SQLite Uses Bytecode
This was the question I was going to ask! I've recently been diving into Lua 5.x internals and have been extremely impressed with Lua's register-based bytecode implementation. Lua has a stable byte code interface between patch releases (5.4.0 -> 5.4.1, etc) but not between major/minor revisions (5.3 -> 5.4). SQLite on the other hand does not consider this a public interface at all!

> "Remember: The VDBE opcodes are not part of the interface definition for SQLite. The number of opcodes and their names and meanings change from one release of SQLite to the next." https://www.sqlite.org/opcode.html#the_opcodes

For anyone interested in understanding how a register-based VM operates I highly recommend:

A No-Frills Introduction to Lua 5.1 VM Instructions by Kein-Hong Man. https://www.mcours.net/cours/pdf/hasclic3/hasssclic818.pdf

notpeter··on Latam Airlines SYD to AKL flight: 50 people treated after mid-air incident
I also like their Automated License Plate Reader (ALPR) record retention period (3 minutes):

> Records of number plates read by each LPR shall not be recorded or transmitted anywhere and shall be purged from the system within 3 minutes of their capture in such a manner that they are destroyed and are not recoverable, unless an alarm resulted in an arrest, a citation, or protective custody, or identified a vehicle that was the subject of a missing person or wanted broadcast [...]

https://law.justia.com/codes/new-hampshire/2022/title-xxi/ti...

notpeter··on Decoded: GNU Coreutils (2018)
> to see how far it gets before killing itself (on a VM or easily re-flashed machine of course).

I did this, but with dd -- it completed. Was very anti-climatic. I was hoping it would crash or at least disconnect me, but the kernel, sshd and bash were still in memory and happily returned me to a prompt where I couldn't really do anything.

notpeter··on Barbara: Live coding languages for quilters
Sadly their Heroku dyno has fallen over. It's open source and works locally though.

Old Demo: https://www.youtube.com/watch?v=GLaMCr8g0n4

Github: https://github.com/kitzeller/barbara

notpeter··on nic.funet.fi: Serving freely distributable files with FTP since 1990
Yeah "stone" 100GB M-DISC bluray discs are ~$10/ea. 100GB for 100yrs* ($0.10/GB). https://amzn.to/3KpYAfl

*maybe

notpeter··on Flea market find is medieval hand cannon
Archive link:

https://web.archive.org/web/20230630025508/http://www.thehis...

notpeter··on Show HN: Text a photo to send as a postcard
My assumption is that they are not handling mail pieces and just outsourcing everything via the PostGrid API. Public pricing for a domestic 4x6 full color postcard $0.74. [1] There's no international pricing listed, but given that a domestic postcard stamp is $0.48, printing is ~$0.26 so add international forever stamp ($1.45) so $1.71/card. Stripe is 2.9% + $0.30 ($0.39 on $2.99). They are using Twilio so that's $0.01 for an inbound/MMS and just under $0.01 for the outbound SMS with a stripe link.

Profit per card would be $1.84/card domestic and $0.98/card international. Excellent margins for a $2.99 product with no need to handle inventory.

Seems like a great side project creating glue between three REST APIs (PostGrid, Stripe, Twilio) and I'd expect it'd generate sufficient free cash flow to cover its server costs and buy a few beers.

[1]: https://www.postgrid.com/pricing-print-mail/#perunit

notpeter··on Severance payments at Wikimedia Foundation
In my experience reading hundreds of IRS 990 forms these number are not out of bounds for non-profits at their scale. Healthcare and university may skew the absolute numbers, but are similar.

Specifically a great executive will personally move the fundraising needle in organizations (+1-5% or more) and mediocre executive can cause losses/missed opportunities in the opposite direction of a similar magnitude. The conventional thinking is the relative fundraising impact of a great vs a good executive may 10x their total compensation, so it's probably worth trying to retain the best.

Anecdotally, I know of a not-for-profit COO who offended an NBA player killing the relationship. His successor COO repaired the relationship, ultimately resulting in multiple millions of new donations and a co-marketing agreement with the team. When the COO was hired there were rumblings because he'd negotiated +$50k over his predecessor.

With no equity and the poor optics of commission compensation or cash-bonuses, big severance packages are one of the few ways an organization can reward employees following years of great service.

notpeter··on The Ukrainian police arrested a man for selling data of over 300M people
Likely Rubles. "The issuing and circulation in Ukraine of currencies other than the hryvnia are expressly prohibited by Ukrainian law."

https://bank.gov.ua/en/news/all/zaprovadjennya-obigu-rosiysk...

notpeter··on The collapse of SVB exposes the largest crack in the economy
I think you got it. cartolarization ~= cartolari(zzazione) + (securiti)zation.

https://it.wikipedia.org/wiki/Cartolarizzazione

notpeter··on How we deploy faster with warm Docker containers
Uber did it too. Kraken is docker registry that gossips containers via bittorrent.

https://github.com/uber/kraken

notpeter··on Always use [closed, open) intervals
Yeah, but it's hard to argue with the fact that pairs/ipairs in loops are 25% to 2.5x slower than using `for i = 1,#tbl do v = tbl[i] end`. Performance isn't everything, but it's not nothing either.

https://springrts.com/wiki/Lua_Performance#TEST_9:_for-loops

notpeter··on .io Domains Considered Harmful
Owned by...you guessed it! The Internet Computer Bureau Ltd!
notpeter··on FSArchiver – Filesystem Archiver for Linux
Parchive development has moved GitHub.

PAR2 (libpar2/par2cmdline) continues to see active (if sporadic) maintenance. The most recent tagged release was 2020-02-09 but there've been a handful of PR's merged since. [2]

PAR3 has a reference implementation and alpha spec (libpar3/par3cmdline) which is based around Blake3. [3]

OG PAR (libpar/parcmdline) is legit unmaintained; the last release was 21 years ago. [1]

[2]: https://github.com/Parchive/par2cmdline

[3]: https://github.com/Parchive/par3cmdline

[1]: https://github.com/Parchive/parcmdline/

notpeter··on The Green Book Redux
Needs (2018)
notpeter··on Brian Kernighan on the Origins of Unix
Video of the talk is available on YouTube https://www.youtube.com/watch?v=ECCr_KFl41E
notpeter··on Better.com CEO fires 900 employees on Zoom call
Getting fired is bad enough, but if it's being done by someone bad at firing people it's the worst. Moneyball had some solid advice:

"Be straight with them, no fluff, just facts. 'Pete I gotta let you go. Jack's office will handle the details.'" That's it.

[1]: https://www.youtube.com/watch?v=fTjhHrcyiQI

notpeter··on Berkeley Systems “After Dark” screensavers recreated in CSS
Yes. Starry Night was the best.

https://www.youtube.com/watch?v=SRQYFTPV2W4

notpeter··on Ask HN: What is the oldest image online in which the link is not broken?
Another almost as old (archive.org copy from Nov 1996) but much more fun:

http://k12s.phast.umass.edu/images/Images.html

This is local copy of Anthony's WWW Images 1.8 released April 1996 by Anthony Thyssen. It was meant as a common set of common navigation icons for the web.

k12s.phast.umass.edu has been running continuously since late 1995. K12S was a spin off k12.oit.umass.edu (a free menu-based multi-user public access system for K-12 teachers and students). The S stood for SLiRP -- an open source SLIP/PPP emulator -- so they could offer emulated SLIP connections via the UMass modem-banks at no cost (local commercial SLIP accounts were $5.95/hr IIRC).

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

notpeter··on Ask HN: What is the oldest image online in which the link is not broken?
Oldest I could come up with is a book cover image for a 1993 Japanese book about MS-DOS Kermit.

http://www.columbia.edu/kermit/msben_i.gif

Currently served with a Last-modified of 1994-12-07T02:42Z -- Archive.org's oldest capture (Dec 1996) includes the link.

https://web.archive.org/web/19961222213301/http://www.columb...

notpeter··on Show HN: PSX Party – Online Multiplayer Playstation 1 Emulator Using WebRTC
Seinfeld started airing in 1989 a decade before American HDTV so they probably didn't foresee the aspect ratio of televisions switching from 4:3 to 16:9. 35mm film likely gave them more high-end options than the cameras and lenses meant for broadcast. It would also give them more wiggle room if they needed to re-frame a shot in post.

Personally I find most of the 16:9 crops of old shows in syndication quite jarring, especially because in any shot where the formerly extra width doesn't work the editor is forced to vertically crop the original. Here are some screenshots comparing 4:3 and 16:9 Seinfeld and ...eek

https://lambdan.se/blog/2018/11/13/seinfeld-original-vs-wide...

notpeter··on Inkscape 1.0 Release Candidate
> Native support for macOS with a signed and notarized .dmg file

Yay! It even includes a pretty DMG background: https://imgur.com/a/4H6kg9V

notpeter··on E Ink smart screen puts a newspaper on your wall
Remarkable is direct-only I believe, but they do have a 30day return policy.

As for the software/sharing, they have desktop (Win, Mac, Linux), Android and iOS apps and their own cloud hosted service for syncing documents, inks, ebooks, etc amongst your devices and the tablet. The apps are a little clunky (due to cross platform widgets) but you can quickly export a PDF of a drawing or drag in an ebook (PDF/ePUB) and it'll auto sync to your device.

P.S. The device itself is quite hacker friendly, it supports SSH over USB out of the box and they've shared their cross-compliation toolchain.

Page 1 of 3Next →