HNHacker News
TopNewBestAskShowJobs

Kostarrr

66 karma · joined March 19, 2022

submissionscomments
Kostarrr··on YAML document from hell (2023)
So... what are the good alternatives to yaml?

For quite some time I thought toml, but the way you can spread e.g. lists all over the document can also cause some headaches.

Dhall is exactly my kind of type fest but you can hit a hard brick wall because the type system is not as strong as you think.

Kostarrr··on Developing with GitHub Copilot Agent Mode and MCP
If they didn't change it, Playwright uses the aria (accessibility) representation for their MCP agent. It strongly depends on the web page whether or not that yields good results.

We at Octomind use a mix of augmented screenshots and page representation to guide the agent. If Playwright MCP doesnt work on you page, give our MCP a try. We have a free tier.

Kostarrr··on The story of Max, a real programmer
Ok now I want to know. Does Max php code have security issues? Because especially in early straightforward PHP, those were all over the place. I vaguely remember PHP3 just injected query variables into your variables? But as $_GET is mentioned, this is probably at least not the case...
Kostarrr··on Yes-rs: A fast, memory-safe rewrite of the classic Unix yes command
This is rust, not Java.
Kostarrr··on Resistance to Rust abstractions for DMA mapping
Zug does not attempt to solve memory safety. It aims to be a better C
Kostarrr··on Show HN: Stagehand – an open source browser automation framework powered by AI
Sorry didnt see this earlier. If you're interested reach out to me (Kosta Welke) on linkedin. Or write me an email, you can find me on Octominds About page.
Kostarrr··on Show HN: Stagehand – an open source browser automation framework powered by AI
Hi! Kosta from Octomind here.

We built basically this: Let an LLM agent take a look at your web page and generate the playwright code to test it. Running the test is just running the deterministic playwright code.

Of course, the actual hard work is _maintaining_ end-to-end tests so our agent can do that for you as well.

Feel free to check us out, we have a no-hassle free tier.

Kostarrr··on A visual proof that a^2 – b^2 = (a + b)(a – b)
Super cool, thank you!
Kostarrr··on AWS and Azure Are at Least 4x–10x More Expensive Than Hetzner
Also note: traffic costs. On Hetzner, it's almost impossible to pay for traffic. Even their tiniest machine has 20 TB outgoing traffic (and unlimited incoming). If you used it up (you most probably wont), that's another 1,792 USD of costs saved by your tiny 4$/month VM compared to AWS. (At least if I was able to use the AWS cost calculator correctly).

They will have object storage soon, but dont hold your breath for one-click kubernetes etc. So the fancier you infrastructure, the more you your startup would need to invest in time and money to use Hetzner and thus make it "not worth it".

Kostarrr··on Project Servo (2010) [pdf]
If you look at rust now, I think it's a great example of keeping the _spirit_ but allowing to question just about any specific decision.

Funny that the "why not go" still stands, minus the "no generics" part.

Kostarrr··on Master Hexagonal Architecture in Rust
Well here's the take from the Author itself: https://alistair.cockburn.us/hexagonal-architecture/
Kostarrr··on Master Hexagonal Architecture in Rust
Cool article on how to abstract things in Rust. I must admit, I usually write the "bad rust application".

Total nitpick: For `CreateAuthorError::Duplicate`, I would return a 409 Conflict, not a 422 Unprocessable Entity. When I see a 422 I think utf-8 encoding error or maybe some bad json, not a duplicate key in a database.

Kostarrr··on Deploying Rust in existing firmware codebases
It was blank for me as well until I reloaded with dev tools open and cache disabled. Figured it was a caching issue but maybe something more weird?
Kostarrr··on Deploying Rust in existing firmware codebases
It's really cool that google is investing so heavily in rust. However, the blog post is more of a "starting point" than a "lessons learned" (which I hoped for).
Kostarrr··on State of S3 – Your Laptop is no Laptop anymore – a personal Rant
Apple does this during sleep when connected to power, so maybe Microsoft thought it needs that as well?
Kostarrr··on Why we no longer use LangChain for building our AI agents
Disclamer: I work for Octomind.

I think the reading is more "It's hard to find a good abstraction in a field that has not settled yet on what a good abstraction is. In that case, you might want to avoid frameworks as things shift around too much."

Kostarrr··on Rust's concurrency model vs. Go's concurrency model
If one goroutine uses 2 KiB stack, then 10,000 goroutines use 20,000 KiB, right? Not 20,000 MiB.
Kostarrr··on Why Perl?
Friends dont let friends write perl. Source: The legendary "Perl Jam" talk from the chaos communication congress.

* https://www.youtube.com/watch?v=noQcWra6sbU * https://www.youtube.com/watch?v=RPvORV2Amic

Also I find the "ubiquity" argument very side loped. What I could agree with is "small/self-contained install" (e.g. small single executable available for many platforms). But not sure how well perl fares there.

Kostarrr··on Crimes with Go Generics
My bad. I was not aware on incredibly limited go generics are. I tried to make it work despite all restrictions but gave up here https://go.dev/play/p/XVTuJ--ZLgS
Kostarrr··on Crimes with Go Generics
I don’t think the Option presented here is sufficient (it is indeed a “crime”) as you cannot express Some(nil).

But you could probably achieve that using go's not-well-known sum types, e.g. like this

https://github.com/FSMaxB/type-safe-builder-experiment/blob/...

Kostarrr··on Crimes with Go Generics
Actually, go generics can do sum types, it’s just not well known or advertised.