News for hackers. Stuff that matters.

cplli

Re:Go Optimization Guide on Tuesday April 01, 2025 @02:56AM (#43543649)
What the top commenter probably failed to mention, and jensneuse tried to explain is that sync.Pool makes an assumption that the size cost of pooled items are similar. If you are pooling buffers (eg: []byte) or any other type with backing memory which during use can/will grow beyond their initial capacity, can lead to a scenario where backing arrays which have grown to MB capacities are returned by the pool to be used for a few KB, and the KB buffers are returned to high memory jobs which in turn grow the backing arrays to MB and return to the pool.

If that's the case, it's usually better to have non-global pools, pool ranges, drop things after a certain capacity, etc.:

https://github.com/golang/go/issues/23199 https://github.com/golang/go/blob/7e394a2/src/net/http/h2_bu...

Re:A BSD person tries Alpine Linux on Friday April 26, 2024 @01:38PM (#40172090)
Yes, when using Alpine in a container context you're getting the "MINI ROOT FILESYSTEM" [1] experience; the parity differences are in the kernel (they're easily ""fixable"" and the team is open to enabling things that people actually use, I've opened such issues on their GitLab and they're very active and friendly)

[1]: https://alpinelinux.org/downloads/

Re:A BSD person tries Alpine Linux on Friday April 26, 2024 @10:18AM (#40169772)
Alpine is a solid distro for servers from my experience.

The only bad experiences I've had with it, come from the lack of parity between the x86_64 and aarch64 virt images. So our x86_64 setup doesn't work without building our own image with kernel params and addons. Even ZFS I don't think is built into the virt-aarch64 image.

All in all, I would recommend more devs/sysadmins to try alpine outside the container world, and run it in test VMs, host servers, etc.

Re:Unix Time reaches 1.7 billion today on Wednesday November 15, 2023 @02:48AM (#38274290)
Don’t forget to update your regex appropriately (/s hopefully)
Re:AIST Steel Wheel on Tuesday September 19, 2023 @12:53PM (#37572731)
First thing that comes to mind is an overhaul mod for OpenTTD which has a "Steeltown" economy that resembles the AIST Steel Wheel.

https://grf.farm/firs/4.15.1/html/economies.html#steeltown

Re:WASI Support in Go on Thursday September 14, 2023 @12:56AM (#37505134)
Threads are Phase 3

https://github.com/WebAssembly/proposals

You can also check out:

https://webassembly.org/roadmap/

And for Go, the proposal project on Github has many interesting conversations from the devs.

And as a reminder to anyone interested in using Go WASM, it’s experimental and does not come with the same compatibility promise as Go itself:

https://github.com/golang/go/wiki/WebAssembly

Personally tried it, it can handle logs nicely. And from their page, many more things

https://clickhouse.com/use-cases

Now we need a tool called NeighbourhoodWatch to monitor the cluster monitors.
Currently migrating from it (not writing any new files to it), but keeping it for read/shared files. The migration plan is to eventually move everything to a DS923 (Synology), with most files being mirrored on client machines and weekly offsite backups (encrypted). Would like something off-continent eventually but haven't given it any thought.
I cannot possibly trust Nextcloud again. I was very skeptical to begin with, because it's a rather large and complex project built on PHP over many years (call this a personal/subjective view). But what really made my decision was when they broke the ability to delete (and/or modify) encrypted files. [0]

[0]: https://github.com/nextcloud/server/issues/34744

Re:Google to Drop Eight New GTLDs on Tuesday March 28, 2023 @04:06AM (#35337316)
Someone will definitely get 42.zip or 42kb.zip just to host a “zip bomb as a service”.

On a more serious note, new gTLDs are so spammy, and “.zip” as others have mentioned will surely lead to some surprises somewhere.

Re:March 20 ChatGPT outage: Here’s what happened on Friday March 24, 2023 @01:40PM (#35292728)
For caching the query results you get from your database. Also it's easier to spin up Redis and replicate it closer to your user than doing that with your main database. From my experience anyway.
An article on a site that has a cookie banner the size of my mobile screen :)

Ask HN: Has anyone self/on-prem hosted a container registry

It's always been one of those items deep down on the "to consider" list, and my rationale was that there really aren't any straight-forward solutions for this and with Gitlab and Github offering their own registries it was never a problem.But yesterday I found out that Docker's Registry core (Distribution) [0] is OpenSource (and used by other registries too!), but I haven't seen many mentions...

( Read More... | 1 comment | 2 points | on HN )
I also only have Caddy running locally to proxy different dev environments and serve certain files, and it is an exceptional tool, but I would never deploy it in production:

1) Nginx configs are (from my experience) easier to template (in our Nomad & Consul cluster architecture) 2) From what I could gather, Nginx is more stable and performant 3) I don’t trust Caddy’s codebase security. It simply has too many dependencies, and Go makes it very easy to get into dependency hell

Honestly if 3) wouldn’t be an issue, and stability from 2) would be proven, I would probably give Caddy a try in production.

Ok, I'll have to look more in-depth into the Microsoft link, they link to many more pages including a whitepaper.

Regarding all the blockchain centric DID methods, would someone wanting to validate a DID (eg: did:thecoin:whatever_would_go_here), need to hold a copy of the blockchain? (in a scenario where one doesn't want to be dependent on a third party for blockchain interactions).

> lined up the tech in their products

Link? Or an explanation as to what this means?

> before it becomes available in a shop nearby

Meaning what exactly?

If you're saying Microsoft will implement DIDs, my question is, "Which of the 50+ methods?"

I was initially pretty hyped when I read the abstract for DIDs, bookmarked the spec and read it later. The "spec" is a bunch of buzzwords and vague generic "concepts". The DIDs themselves mean basically nothing, it's the "methods" that actually must have their own specification and actually "do something".

Another feeling you can quickly get from DIDs is that they're blockchain centric.

The entire concept is "jack of all trades, master of none". I actually hope to be wrong, and see some more fully fledged implementations/examples of real world use-cases, because I love the idea of federated/decentralized identity.

Re:GDPR for Developers by Example on Wednesday August 03, 2022 @05:09AM (#32329373)
IANAL, but shouldn't a data deletion request also apply to the data inside backups, even when no recovery is planned?

Edit: I am also skeptical about the logs part, I don't think logs can be a magical excuse to log everything that comes in, and should still only log "legitimate" use-cases.

Re:Dear startups: I hate subscription services (2021) on Saturday July 30, 2022 @06:45AM (#32285738)
I wouldn't throw Jetbrains in the same boat. I quite like their pricing model. You get to keep the last version, so you're basically paying for updates in the end (which are worth it IMO). On top of that, you get a discount after the first year.
Considering some of the people on there, the HN title could be "famous & infamous", or as the project puts it on the page, "Notable". Still, very awesome project!
Re:IPv6 Only Cloud Server on Friday July 29, 2022 @12:36AM (#32273191)
Thank you so much for this news! I have completely missed it. I've been scaling with terraform for so long, I didn't login to the dashboard to see the news pop-up. This is great, not only can you drop IPv4, you can also drop both IPs and have a private network only VPS. I've got my weekend work cut-out :) In case someone is wondering, the price reduction for dropping IPv4 (no price change in dropping IPv6) is 0.60 EUR (including 19% VAT)
Re:Has the world become less colourful? on Thursday July 28, 2022 @04:32AM (#32261740)
Car colours is something that sometimes worries me, brighter colours are sold as 'extra', while greys are default/cheaper. This leads to some cars basically camouflaging with the road, especially at times like dawn or dusk. There are other colours that make it harder to spot a car depending on location/time-of-day, but from my experience greys and grey-navy-ish are the worst.
Link to core specification: https://www.w3.org/TR/did-core/

And a link to the recent discussion on HN:

Mozilla and Google Objections Overruled on “Decentralized Identifiers” by W3C https://news.ycombinator.com/item?id=31939871

Re:What's Coming in Go 1.18 on Tuesday February 08, 2022 @02:16PM (#30263094)
I guess the workspaces[1] get overshadowed by Fuzzing and Generics. But I find em pretty useful.

[1]: https://go.googlesource.com/proposal/+/master/design/45713-w...

Re:Building API Docs on Tuesday February 08, 2022 @05:33AM (#30256856)
Actually used them for a short while. I didn't like the additional step in my pipeline to build the docs, also they don't/didn't offer an interactive option. Other than that it looked pretty nice.
Re:Building API Docs on Tuesday February 08, 2022 @01:22AM (#30255476)
I write the OpenAPI spec by hand as I haven’t found any tool to match my needs (nor is the API changing too often). And for the frontend to display the docs I couldn’t be any happier with https://stoplight.io/ (using their WebComponent for simplicity). I think I discovered this on the “APIs you won’t hate” podcast.
Another thing to consider (at least something that I sometimes do myself) is that some people may open a story to read for later (or even at the time) but never come back to upvote the post or engage in conversation.

Older »