Better HN
topnewbestaskshowjobs
Log inSign up

beeb

92 karma · joined Jan 31, 2023 (3y ago) · 44 submissions

Submissions

comment 4mo ago · link · parent

So does an amber script after it's been compiled, that's the whole point. You can tweak it and inspect it if you want. Realistically though you'll probably regenerate it and copy the new compiled version over. But you can do both.

comment 5mo ago · link · parent

I'm working on a search-and-replace TUI with case-awareness and a good preview.

https://github.com/beeb/swpui

comment 5mo ago · link · parent

All I can think seeing those examples is how macOS went from beautiful to utterly jank in the last 10 years.

4.

Show HN: Swpui, a TUI for case-aware search and replace(github.com ↗)

3 points · by beeb · 6mo ago · 1 comment

comment 7mo ago · link · parent

Oh the irony

comment 10mo ago · link · parent

A collection of tips and tricks for the fish shell I wish I had known about a long time ago.

7.

Fish Shell Tips and Tricks(beeb.li ↗)

1 points · by beeb · 10mo ago · 1 comment

comment 1y ago · link · parent

I would argue it doesn't help that all errors are usually named `err` and sprinkled every third line of code in Go. It's an easy mistake to make to assign to an existing variable instead of create a new variable, especially if you frequently switch between languages (which might not have the `:=` operator).

comment 1y ago · link · parent

decencies?

comment 1y ago · link · parent

I used poetry professionally for a couple of years and hit so many bugs, it was definitely not a smooth experience. Granted that was probably 3-4 years ago.

comment 1y ago · link · parent

A tale of optimization for an algorithm that turns byte offsets into line and column numbers, and UTF-16 offsets. The final implementation leverages SIMD and fixes several inefficiencies in the original solution.

12.

Optimizing Text Offset Calculations(beeb.li ↗)

2 points · by beeb · 1y ago · 1 comment

comment 1y ago · link · parent

dop-spotter is next

comment 1y ago · link · parent

People aren't on these hosted platforms only for the git experience, they are for the social aspects and discoverability too.

comment 1y ago · link · parent

The Italians I know swear that mozzarella should be consumed within a day of being made. And I must say that freshly made mozzarella tastes best! But also maybe because what I can get fresh was made with love and good quality milk, as opposed to the supermarket stuff.

comment 1y ago · link · parent

Not really, I also live in Switzerland and would have access to equivalent plans where I live :P

comment 1y ago · link · parent

That's crazy, 200M asymmetric for 60 EUR is robbery.

comment 1y ago · link · parent

Wow the US really has it bad when it comes to home internet. In many European countries, you can get symmetric Gbit internet for 30-40 EUR (probably less in some places), and I haven't seen a data cap in forever.

comment 1y ago · link · parent

The fact that the bug slipped through the cracks highlights the importance of sane defaults.

comment 1y ago · link · parent

Rust would warn you of an unused variable: "warning: value assigned to `psize` is never read"

comment 1y ago · link · parent

Opt-in sync with (self-hosted) server, no machine learning. Otherwise probably similar

comment 1y ago · link · parent

Ability to change the search mode (prefix, full text, fuzzy), and filter by path/host, time range, exit code, current session only, and more

comment 1y ago · link · parent

It makes it easy to find performant and quality software by searching for "[insert tool description] rust", I personally don't mind! Seeing how 95% of the tools I use on the daily are written in Rust, I love finding new ones and am rarely disappointed.

24.

Show HN: Lintspec, a Solidity NatSpec Linter(github.com ↗)

1 points · by beeb · 1y ago · discuss

comment 1y ago · link · parent

At least for Plausible, they state this (https://plausible.io/blog/google-analytics-cookies):

> Instead of tagging users with cookies, we count the number of unique IP addresses that accessed your website. Counting IP addresses is an old-school method that was used before the modern age of JavaScript snippets and tracking cookies.

Since IP addresses are considered personal data under GDPR, we anonymize them using a one-way cryptographic hash function. This generates a random string of letters and numbers that is used to calculate unique visitor numbers for the day. Old salts are deleted to avoid the possibility of linking visitor information from one day to the next. We never store IP addresses in our database or logs.

comment 1y ago · link · parent

This has been my experience as well, there was little to no impact on execution time at least.

comment 1y ago · link · parent

Those are great tips! I'll have a look at the axum shim, which certainly would help if using axum in the first place. Minimal functions like we have at my work rarely need a fully featured framework however.

comment 1y ago · link · parent

Good question! I ran some benchmarks before because I was also curious and besides some slightly larger standard deviation for cold starts execution time, there was so significant difference in performance when using docker.

29.

Rust for AWS Lambda, the Docker Way(beeb.li ↗)

33 points · by beeb · 2y ago · 7 comments

comment 2y ago · link · parent

Here's a copy http://archive.today/qqWbx
12