Better HN
topnewbestaskshowjobs
Log inSign up

crowdyriver

31 karma · joined Apr 11, 2022 (4y ago) · 40 submissions

Submissions

comment 1mo ago · link · parent

Thanks!

comment 1mo ago · link · parent

enjoy!

3.

I made the fastest EC2 price comparator(ec2-prices.designobo.com ↗)

2 points · by crowdyriver · 1mo ago · 3 comments

4.

Show HN: Designobo – AI prototyping tool in 40kb of js(designobo.com ↗)

1 points · by crowdyriver · 1mo ago · discuss

comment 2mo ago · link · parent

Can't wait for the distillations! I'd love improvement on writing on cheap models

comment 3mo ago · link · parent

saw some discussion on zig incremental compilation, so I got curious and did this silly bench.

quite impressive

7.

Odin compiles 1M lines in 1s(github.com ↗)

5 points · by crowdyriver · 3mo ago · 1 comment

comment 4mo ago · link · parent

python is terrible for embedding, starlark is the way to go. Very easy to embed.

comment 4mo ago · link · parent

It occurred to me a few weeks ago why programming languages don't just try add metaprogramming capabilities with comments, without modifying the original compiler. So I went ahead and experimented how would it look like in golang.

So far so good! It's basically go templates that take in any package level go symbol and write code into a meta.go file.

You can do the same with the go/ast package, but metago makes it very easy to add your own custom transformations. No build tags, just write .metago templates, annotate structs, and run metago.

So far I've managed to make stringer, enums, mocks and even an efficient json serde template with metago. As an experiment, there's also a typesafe active record like orm in the repo. So you can do a lot with it!

10.

Metago: Write templates that write go(metago.dev ↗)

2 points · by crowdyriver · 4mo ago · 1 comment

comment 4mo ago · link · parent

I think people are overfocusing on the wrong thing.

Bun is slop. Let's not pretend it is not. It went from 600k lines of zig to almost a million of rust, for a wrapper around a js engine. It might be useful slop, but it is still slop.

It's understandable to have mixed feelings about bun as the creator of the language.

You spend 10 years of your time making a language, and one of the most prominent projects that uses it does it in a nasty and sloppy way. You try to help, but your advice gets ignored.

You make a whole language about improving software quality, only to be associated with a project that doesn't care about it.

For once I do appreciate that somebody is willing to have the guts to say what they think. The bun rust rewrite article said no words about the tradeoffs of moving to Rust (compilation times?), and I agree with the false dichotomy presented. How do we know that most bun bugs were not created because of slop / AI usage / stubbornness?

comment 7mo ago · link · parent

tbh I'd rather have this behaviour, defer should've been lexically scoped from the beginning.

13.

Why programmatic tool calling is awesome(guillemus.com ↗)

1 points · by crowdyriver · 11mo ago · discuss

comment 11mo ago · link · parent

You already have this problem whenever you are using a library in any programming language. Unless you are extremely strict, vendor it and read line by line what the library does, you are just trusting that the code that you are using works.

And nothing is stopping the AI from making the unreadable mess more readable in later iterations. It can make it pass the spec first and make it cleaner later. Just like we do!

15.

Ask HN: Wouldn't it be much easier if you compress all env vars into one?

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

comment 1y ago · link · parent

While I like the modern feel of shadcn/ui and derivatives, I still think that daisyui is much easier to use.

You really just paste these 2 lines in your html and that's it:

  <link href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
  <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4" />
it's a bit more than 100kb of js, but for prototyping it is very nice.

I wish more UI libraries where in the same style. You can always optimize the bundle later.

comment 1y ago · link · parent

Did you check the co2 levels on your office? that could be one reason.

comment 1y ago · link · parent

Unrelated, but PGroonga reads funny in Argentinian. Better than gimp though

comment 1y ago · link · parent

Genuine question, more for soloentrepreneurs, but what if instead of adding ads from other companies, the perplexity company did other paid products?

Then they could put a few non disruptive ads for those into their main free product, and they would make much more sense.

I want to apply this strategy into my (yet non existent) future products.

comment 1y ago · link · parent

http streaming is even more underrated.

comment 1y ago · link · parent

not for non latin american speakers.

comment 2y ago · link · parent

oh god

comment 2y ago · link · parent

nice and everything, but it still has plenty of performance issues and crashes with the tsserver. Using solid start because of that, tooling is not there yet.

comment 2y ago · link · parent

It's even worse, you still need node to run this thing, so you don't avoid the node dependency.

comment 2y ago · link · parent

You can always use exhaustruct https://github.com/GaijinEntertainment/go-exhaustruct

to enforce all fields initialized.

If you care, the linter is there, so this is more of a skill issue.

comment 2y ago · link · parent

There's lots of comments here about how stupid is to parse html using llms.

Have you ever had to scrape multiple sites with variadic html?

comment 2y ago · link · parent

I am surprised no one is doing an llm code linter.

comment 2y ago · link · parent

If we are living in a simulation, where does the simulation live in?

comment 2y ago · link · parent

every feature that makes a language more complicated will eventually hit you. It might make the typescript compiler slower, harder to refactor, your lsp might also get slower, etc...
12