News for hackers. Stuff that matters.

zegl

Many other countries have figured this out since the early 2000s, the US could do it as well if they wanted to.
As a long time Hatchet user, I understand why you’ve created this library, but it also disappoints me a little bit. I wish more engineering time was spent on making the core platform more stable and performant.
Re:Show HN: Varse – Simple remote application config on Tuesday November 05, 2024 @11:18AM (#42052735)
Congrats on launching! What’s the difference between this and Feature Flags in PostHog?
Re:Ask HN: Is there room for a new email hosting service? on Tuesday July 23, 2024 @05:22AM (#41044196)
I recently migrated to Fastmail, and they are handling this very well.
Re:Render Is Down on Tuesday March 26, 2024 @12:55PM (#39830099)
Does "some databases" mean all? I have three databases on Render, all are currently down.
Re:Google I/O '24 Puzzles on Friday March 15, 2024 @08:49AM (#39714928)
The real puzzle is to figure out how to play it in Safari.
Re:Turtles, a Shelly/Zigbee home automation tool in Elixir on Friday January 05, 2024 @07:05AM (#38878263)
+1 for Zigbee2MQTT. I've been using it at the core of my home automation for a few years, and it's incredibly reliable.
Re:10k Bounty for Rewriting Prettier in Rust on Monday November 13, 2023 @04:11AM (#38248384)
The trick to make CI in large codebases fast, or how to make any system fast, is to only test what’s changed.

In CI you only need to lint the files that have changed, or run the tests that depend on code that has changed etc.

This way the time it takes to execute the tests scales with the amount of changes, and not with the total amount of code.

Re:Mptcp: An overlooked new feature in Go 1.21 on Wednesday October 25, 2023 @07:54AM (#38011808)
Posts with text like this really grinds my gears:

> chatGPT says that MPTCP has been included in the mainline kernel since Linux kernel version 3.6 and that users can configure and use MPTCP features, but the MPTCP community website says that MPTCP v1 is only supported since 5.6.

Why is it interesting what a GPT has to say about it, if you've fact-checked it and found contradictory information?

Re:TanStack Query(a.k.a. React Query) v5 announced on Thursday October 19, 2023 @06:48AM (#37941043)
Very nice, and well done team!

I've been using v5 in production since beta 20, and it has been working very reliable for us since then. The documentation for how to upgrade has been a great resource, and a great example of how to do breaking changes in a library as large as this one.

Re:Swedish union declares strike for Tesla employees on Tuesday October 17, 2023 @10:41AM (#37915874)
TM Sweden AB had a reported 289 employees in 2022, at 10 different facilities.
What are peoples thoughts on sponsoring open source projects as a way to build awareness for dev tools? I think I've seen PostHogs logo in sponsor sections in some READMEs.
Re:Openmoji on Wednesday September 13, 2023 @08:30AM (#37495846)
I really like this project, and it's fun to see that they are adding their own extra emojis as well.
Re:Kris Nova Passed Away on Sunday August 20, 2023 @11:43AM (#37200210)
This really saddens me, RIP.
Re:Docker Acquires Mutagen on Tuesday June 27, 2023 @06:13PM (#36499396)
Congrats Jacob! Mutagen always really impressed me, and is some of the most beautiful code I’ve ever read. Well done!
Re:Faster Go code by being mindful of memory on Tuesday December 20, 2022 @09:03AM (#34065992)
This intrigued me, and I believe that I've found a solution that's slightly faster for this AoC problem. It's achieved by keeping a running tally/counter for the last 14 characters (benchmark in comments).

https://gist.github.com/zegl/1ce3064c8049fa1b99c1dd202d78588...

Re:Ask HN: Host a website from a living room in 2022? on Tuesday December 20, 2022 @08:11AM (#34065368)
I don't know how experienced you are. Yes, you can host "a website" on a Raspberry Pi, even on something tiny like the Zero W. It all depends on your needs, a Pi 4 (if you can get a hold of one) is a great option!
Re:Jqjq: Jq Implementation of Jq on Friday November 25, 2022 @08:25AM (#33742147)
This is genius and horrifying at the same time, I love it!
Re:Extremely Linear Git History on Tuesday November 22, 2022 @09:47AM (#33706349)
I don't know how stupid this is on a scale from 1 to 10. I've created a wrapper [1] for git (called "shit", for "short git") that converts non-padded revisions to their padded counterpart.

Examples:

"shit show 14" gets converted to "git show 00000140"

"shit log 10..14" translates to "git log 00000100..00000140"

[1]: https://github.com/zegl/extremely-linear/blob/main/shit

Re:Extremely Linear Git History on Tuesday November 22, 2022 @08:54AM (#33705768)
You're giving me too much credit. The script [1] is only 50 lines of bash.

[1]: https://github.com/zegl/extremely-linear/blob/0011003da13132...

Re:Extremely Linear Git History on Tuesday November 22, 2022 @07:57AM (#33705250)
I left some details out of the post to make it shorter.

What I’m actually is doing is generating a 7-digit incremental number followed by a fixed 0. Some UIs show 7 characters and some show 8, this felt like a nice compromise. Plus it’s easier to distinguish between the prefix and the suffix when looking at the full SHA when they are always separated by a 0.

Re:Extremely Linear Git History on Tuesday November 22, 2022 @07:01AM (#33704810)
Update: git-linearize now uses lucky_commit as it's backend!
Re:Extremely Linear Git History on Tuesday November 22, 2022 @06:46AM (#33704705)
Thanks for sharing, this is really cool! Using whitespace is a really clever trick, and running on the GPU makes it even more impressive.

I've been using githashcrash [1], but it's only running on the CPU, which is why it's a bit slower. :-)

[1]: https://github.com/Mattias-/githashcrash

Re:Extremely Linear Git History on Tuesday November 22, 2022 @06:31AM (#33704612)
Using SVN doesn't cause your computer to heat up. ;-)
Re:Extremely Linear Git History on Tuesday November 22, 2022 @06:18AM (#33704534)
Do not try this at home.

Older »