Better HN
topnewbestaskshowjobs
Log inSign up

Kostarrr

66 karma · joined Mar 19, 2022 (4y ago) · 22 submissions

Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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...

comment 1y ago · link · parent

This is rust, not Java.

comment 1y ago · link · parent

Zug does not attempt to solve memory safety. It aims to be a better C

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Super cool, thank you!

comment 2y ago · link · parent

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".

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Well here's the take from the Author itself: https://alistair.cockburn.us/hexagonal-architecture/

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

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).

comment 2y ago · link · parent

Apple does this during sleep when connected to power, so maybe Microsoft thought it needs that as well?

comment 2y ago · link · parent

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."

comment 2y ago · link · parent

If one goroutine uses 2 KiB stack, then 10,000 goroutines use 20,000 KiB, right? Not 20,000 MiB.

comment 3y ago · link · parent

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.

comment 4y ago · link · parent

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

comment 4y ago · link · parent

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/...

comment 4y ago · link · parent

Actually, go generics can do sum types, it’s just not well known or advertised.

22.

Show HN: Go has proper sum types now(github.com ↗)

1 points · by Kostarrr · 4y ago · discuss