News for hackers. Stuff that matters.

styfle

Re:Dark Mode with Web Standards on Sunday July 05, 2026 @09:07AM (#48794015)
I hate to be this guy, but I opened then immediately closed this website because it wasn’t in dark mode.
Re:What Your Bluetooth Devices Reveal About You on Monday February 16, 2026 @11:47AM (#47037219)
Did you ever try to communicate with them?

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

Re:The Weird Concept of Branchless Programming on Sunday September 28, 2025 @02:19PM (#45406574)
This same blog posted yesterday and got flagged with “How I accidently created the fastest CSV parser ever made”

https://news.ycombinator.com/item?id=45400009

Re:Telo MT1 on Sunday August 03, 2025 @07:18AM (#44775787)
Slate is going to start closer to 28K now that the tax credit is gone (remember it’s not going into production until next year).

That said, $41K is still a big jump in comparison and it makes the Telo much closer to the price of a Model Y starting around $45K.

I liked being able to “close” the issue once I unpacked the box.
Correct. There’s no way you’re going to write every item inside the box on the box itself. And definitely not on every side of the box. Think cables and small items.

It only makes sense if you plan on unpacking over a year but if you unpack everything in a couple days then the system is not as useful.

> This can be helpful even years later when you don’t unpack all boxes.

Indeed, this is one of the biggest reasons I tracked this information to begin with.

I used GitHub issues as a form of project management to plan my wedding many years ago.

My wife was skeptical at first, but the ability to add labels, search, etc made it really easy to work together and accomplish the tasked we needed in time for the wedding.

The hardest part was creating a bookmark that links directly to the issue tracker.

Oh, I’ve also used GitHub issues to organize all the boxes in my most recent move. I would create an issue and the description would list all the contents of a box. Then I would write the issue number on the box. After moving, I could search GitHub to find that one thing I was looking for and know what box it was in.

The article explains that they were using the old Vercel price and that the new price is much cheaper.

> On Feb 18, 2025, just a few days after we published this blog post, Vercel changed their image optimization pricing. With the new pricing we'd not have faced a huge bill.

Re:.localhost Domains on Thursday April 10, 2025 @12:37PM (#43645624)
Why use that over *.localhost which has been available since 1999 (introduced in RFC 2606)
Both offer a free plan but Package Phobia is sponsored meaning its on the paid plan but getting it for free.

Kinda like a skateboarder might be sponsored and get a skateboard for free even though others pay for the same item.

Package Phobia started out on the free plan but it turns out its quite popular, serving over 5 million requests per month. A cache miss (which is frequent given the cardinality of packages + versions), it can take 30 seconds to install a package and measure its size.

There's also a public API which tools like Socket use to check the size of every npm package.

https://x.com/styfle/status/1826296197566644497

The word "publish" is from "npm publish" and I don't think there is a better term to switch to.

https://docs.npmjs.com/cli/v8/commands/npm-publish

I like your idea about showing the information below the fold so I fixed it, thanks!

https://github.com/styfle/packagephobia/pull/1069

See the readme on github for a full comparison
If you find a bug, please report the issue on GitHub and I’ll take a look, thanks!
They are orthogonal tools.

Checkout the readme for a comparison against other tools.

https://github.com/styfle/packagephobia

It does apply to JS if you use a bundler that has “tree-shaking” also known as “dead code elimination”.
True, Python has a larger std lib, but Node.js has increased a lot in the last two years.

Although it’s not so much Python that’s influencing Node.js but more like Deno and Bun that try to include everything but the kitchen sink.

What a surprise!

I’m the author of Package Phobia and it’s been largely unchanged since 2018.

If you’re looking for more details, checkout the readme on GitHub.

Let me know if you have questions, thanks!

https://github.com/styfle/packagephobia

Re:A 10x Faster TypeScript on Tuesday March 11, 2025 @01:20PM (#43334829)
Its not strange, its very common. Its called "bootstrapping".

> Bootstrapping is a fairly common practice when creating a programming language. Many compilers for many programming languages are bootstrapped, including compilers for ALGOL, BASIC, C, C#, Common Lisp, D, Eiffel, Elixir, Go, Haskell, Java, Modula-2, Nim, Oberon, OCaml, Pascal, PL/I, Python, Rust, Scala, Scheme, TypeScript, Vala, Zig and more.

https://en.wikipedia.org/wiki/Bootstrapping_(compilers)

Re:JavaScript Temporal Is Coming on Thursday January 30, 2025 @05:53PM (#42883040)
DurationFormat looks cool but it didn’t behave as I expected.

https://github.com/tc39/proposal-intl-duration-format/issues...

Re:Ghostty 1.0 on Friday December 27, 2024 @09:26AM (#42522266)
Congratulations!

I was hoping 1.0 would mean CMD+F search would work, but looks like that was pushed back to a later release unfortunately.

https://github.com/ghostty-org/ghostty/issues/189#issuecomme...

Incredible!

Although I couldn’t help but notice that the original says 3 “ha ha ha” but the spam conference said 4.

Yes the original subtitles have 4 but they only say 3 :)

It’s because Google doesn’t use Node.js or any JS outside the browser, so they assume low browser usage is low usage in general which isn’t true.

https://github.com/search?q=BigInt+language%3ATypeScript&typ...

https://github.com/search?q=BigInt+language%3AJavaScript&typ...

I used BigInt to implement xxhash recently.
Re:Busy Status Bar from Flipper Devices on Wednesday October 16, 2024 @08:05AM (#41858115)
This looks really nice!

I hacked together a script to accomplish a similar thing.

In my case, I only consider myself “busy” when my camera is on, meaning no one should enter my office.

https://github.com/styfle/bluetooth-lightbulb-alert

But does it work on macOS?

(The latest CS removed support for macOS)

Re:Show HN: How much is 13B euros? on Wednesday September 11, 2024 @08:48PM (#41516604)
13B euro is 14.31B usd, so that’s 8.62%

(still a good chunk)

Older »