HN user

tejinderss

526 karma
Posts4
Comments129
View on HN

I wonder how is the experience writing Rust or Zig with LLMs. I suspect zig might not have enough training data and rust might struggle with compile times and extra context required for borrow checker.

iPhone Air 11 months ago

I dont know whats apple obsessions with thinness, instead they should focus on usability and battery life.

Working effectively with LLMs for writing code is an extremely deep topic.

There is a space for learning materials here. I would love to see books/trainings/courses on how to use AI effectively. I am more and more interested in this instead of learning new programming language of the week.

RabbitMQ 4.0 2 years ago

At my current place, using Redis with celery is becoming bottleneck for number of concurrent connections it can hold. We are using 1000 workers and start seeing issues (ceiling is 10k connections in Redis); apparently Celery creates huge number of connections. We are considering moving to RabbitMQ for same reason.

That being said, I wish there was a single consistent resource[1] that summarizes truly modern software design philosophy in the sense that it leaves the object orientation inspired ideas behind that did not turn out to be useful and focusses on typed functional programming. Maybe with examples in Typescript and Rust.

Not Rust or TS, but i found Java to Kotlin a decent book which provides refactoring of java OOP to more functional patterns. One of the authors Nat Pryce was big into OOP design and was also a co-author of famous book Growing Object Oriented Software by Tests.

The keyword here is “mutable” config object and not config data object in general. I use immutable config dataclass liberally in one of my python projects and i pass it around in all modules. Many functions rely on multiple values and instead of passing all of them as function parameters (which requires their own function typings), the dataclass has all variables with typing definitions in one place, its pretty handy design pattern.

The downside as an expert is realizing you have to get a PhD to get a sense for how much RAM your cats will gobble up.

Go one step further with affine types and use Rust. You get haskell type system with predictable performance.

I am not sure if node is still a viable web backend runtime. When it released originally, it contended with the likes of django, and RoR, but now we have much saner options like Rust, Go, Elixir on backend, I am not sure if the original appeal is there any longer.

Edit: By “saner” option i meant more scalable, performant and maintainable using stricter types.

Thanks for sharing an article supporting my comments

No it does not. It’s saying that the corporate taxes are volatile and “should” not be relied upon, hence the cautionary tone of the article.

Edit: From the same article

Peter Vale, a tax partner at Grant Thornton, warned that the figures were “surprisingly poor” and indicated that “the risk of weaker corporation tax receipts in the key month of November increases. Poor November figures could erode much of the planned budget surplus.”

Ireland no longer relies on them

If Ireland has closed all the loopholes then why do the phantom exports (US subsidiary buying IPs) account for 38% of total exports of this year?

Now that Ireland has agreed to a global minimum corporate tax (CT) rate.

Provided that they dont find another loophole.

Edit: Someone asked for baseline, the phantom exports were 6 billion in 2012, they are 134 billion this year.

https://www.businesspost.ie/news/irish-phantom-exports-surge...

Yes it does happen, search for r&d tax rebates, all Tech and Pharma companies apply for it, even though the work is not necessarily research one. I have worked in 3 MNCs and they all asked us to present our work as research instead of production

Why Go for web and not Typescript with nodejs/deno. The ecosystem is also huge and widely used. The type system is miles ahead of Go and is closer to rust. The async await is single threaded too.

The author is no stranger to rust (he’s creator of rust-analyser). The reason why he’s pitching typescript here is due to its high level nature and doesnt have to deal with memory management, low level integer types etc.