HNHacker News
TopNewBestAskShowJobs

tinrab

52 karma · joined June 16, 2017

Changing the world, one line of code at a time.

https://rabzelj.com

submissionscomments
tinrab··on Go is a good fit for agents
I'd say TypeScript is currently the best choice for agents. For one, MCP tooling is really solid, the language itself is easy, fast to develop in, and not esoteric.
tinrab··on My negative views on Rust (2023)
Can you give me an example of what the borrow checker prevents you from doing without calling Rust developers delusional? The hardships are way overstated, in my opinion. One issue I can think of newcomers might have is immutable and mutable references. You can't borrow as mutable something already borrowed. Let's say you have a reference to a Vec element, then you add an item to Vec. The realloc could invalidate that reference, which Rust prevents. Using Cell/RefCell also helps if you don't want to deeply nest &mut. Rust is definitely hard, but after a while it's fine and you kind of get how even if using another language you still have to think about memory.
tinrab··on My negative views on Rust (2023)
I hear this constantly but never see any examples of what they actually mean, or it's coming from misunderstandings of what the language is. I've seen people say how well the async code could be if Rust got a garbage collector. For the borrow checker specifically, I think it's important to understand smart pointers, Cell/RefCells, other primitives, and the fact that you don't have to solve everything with references.
tinrab··on I sped up serde_json strings by 20%
From crates.io, `serde` is a 76.4 KiB dependency. And from what I've seen looking through the code, it's pretty minimal.
tinrab··on An Open Letter to Sam Altman
Holding him to account is what taxes do, which are allocated by the government. Should taxes be increased? Should there be a wealth tax? I don't care, but it feels wrong when people expect CEOs or investors to somehow fix the world's problems.
tinrab··on An Open Letter to Sam Altman
I'm seeing this kind of sentiment a lot on hnews, which is weird because it's owned by YC. This is not how investors or businesses work. Government's job is not Sam's job, his job is OpenAI.
tinrab··on Adding type safety to object IDs in TypeScript
I like using "resource names" defined by Google's AIP (https://google.aip.dev/122). For example, the name "users/1/projects/42" is a nested project resource of a user "users/1". TypeScript type could be "users/${number}".
tinrab··on AI Girlfriend Went Down After CEO Jailed for Setting His Apartment on Fire
That's an amazing headline.
tinrab··on YouTube may face criminal complaints in EU for using ad-block detection scripts
I keep getting a crypto trading bot ad with AI generated Elon Musk. Ad blockers are necessary.
tinrab··on Why cloud bandwidth is so obscenely expensive and what you can do about that
Is there a way to protect against the "Denial of wallets" attack?
tinrab··on Social media does not cause depression in children
Why do people always complain about unrealistic standards? I can't see how that would be bad. The problem is repeated dopamine hits.