Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
traderj0e
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
traderj0e
5mo ago
"it’s just a feature that, even outside of Rust, some people just fundamentally dislike" is why I have a hard time gauging this. I know Python users whine about it endlessly just because it's a feature from JS, even though Py
62.
▲
by
traderj0e
5mo ago
The article should've been clear about use cases. I think the reason for the focus on backends is because that's where people keep randomly wanting to rewrite in Rust.
63.
▲
by
traderj0e
5mo ago
For the use cases the author is alluding to, you do need to use async. Non-cooperative threaded multitasking isn't a real choice for backends, and Rust doesn't have virtual threads. Before Java got virtual threads in Project Loom,
64.
▲
by
traderj0e
5mo ago
Is async in Rust really this bad? Last time I used Rust was before that existed. I know it's a pain in Python because they bolted it on way after, but in JS it's a breeze because everything standardized on promises early.
65.
▲
by
traderj0e
5mo ago
The post doesn't hate on Rust, it's more saying you probably shouldn't use it for high-level code like a web backend. Which is pretty reasonable.
66.
▲
by
traderj0e
5mo ago
Yeah, SERIALIZABLE will guarantee you get enough locks to avoid race conditions, it's just very slow. The only way to do better in theory is to have your client code aware of all other client code, even then idk how exactly you'd
67.
▲
by
traderj0e
5mo ago
Yeah I keep running into situations where everyone else is a backend engineer but only has cursory knowledge of databases. Maybe they think the DB is just some modular add-on you can swap out, or they understand it's the foundation of
68.
▲
by
traderj0e
5mo ago
You can in fact show the same flaws in PL/SQL or whatever else
69.
▲
by
traderj0e
5mo ago
You run into the same issues without using the weird imperative syntax in this article.
70.
▲
by
traderj0e
5mo ago
The original stated goal is that we want to disallow overdraft. If you want to allow it instead, then there are some followup questions like do you want to limit how much they could overdraft. But this is meant to be an example of race cond
71.
▲
by
traderj0e
5mo ago
That is actually worse, I've been there. It's good to keep logs like that, but you can't use that for locking, you need a separate balances table. Edit: Well another option is to add a "pending" col and do three sep
72.
▲
by
traderj0e
5mo ago
That introduces more questions, like are cache reads fully consistent
73.
▲
by
traderj0e
5mo ago
I've encountered this dozens of times. It's not intuitive, but this implicitly locks the row from concurrent reads, where as SELECTing first won't: UPDATE accounts SET balance = balance - 10 WHERE owner = 'al
74.
▲
by
traderj0e
5mo ago
"When a measure exists, it becomes a target" is the reason I can never write TODO again.
75.
▲
by
traderj0e
5mo ago
This is true. The creepy thing is when someone outside your reporting chain is suddenly pushing you to use some new tool, rather than asking you to ship a feature.
76.
▲
by
traderj0e
5mo ago
Are the AI tokens fungible though?
77.
▲
by
traderj0e
5mo ago
It's 90% real where I work, which is not Amazon but is a peer company. They haven't explicitly said that tokens are used to measure performance, but when managers are posting token usage leaderboards each week with no further expl
78.
▲
by
traderj0e
5mo ago
They used to measure loc, but this is even dumber than that. The charitable explanation is they just want to make sure nobody is completely avoiding AI use.
79.
▲
by
traderj0e
5mo ago
Any typical web backend or frontend kind of thing. So like, not systems code.
80.
▲
by
traderj0e
5mo ago
Business Insider would say "tokenmaxxing is pure promotional intelligence"
81.
▲
by
traderj0e
5mo ago
Even if I'm in the middle of using the AI seriously but then want to rename a variable, I can't do that myself because it'll confuse the AI, so I'll tell it to rename. That seems pretty wasteful.
82.
▲
by
traderj0e
5mo ago
I don't think you need to win this, you just need to not be near the bottom of the board. But just in case, I spam tokens like it's the Chuck E Cheese roulette game.
83.
▲
by
traderj0e
5mo ago
Each day I send the AI on a fruitless mission like "summarize the entire codebase" while I do my actual work, which involves actually using the AI for real work. Wish I could disable the token cache to make it spend more.
84.
▲
by
traderj0e
5mo ago
I've looked, it's better now, hence my comment that they saw the light. They got lambdas, records, and auto types. More importantly they got virtual threads, but that's unrelated.
85.
▲
by
traderj0e
5mo ago
When AOL was the largest email provider, there weren't as many people using email, at least not for important things
86.
▲
by
traderj0e
5mo ago
I'm glad they saw the light. Last time I used Java was in high school when it was version 7, when it was pure OOP. Didn't even have lambdas. After I learned other languages, I didn't want to use Java again, seemed like a lot
87.
▲
by
traderj0e
5mo ago
Has nobody made a better RSS reader since then? Or is the issue that GReader was so popular that shutting it down made everyone stop using RSS?
88.
▲
by
traderj0e
5mo ago
Government-operated Gmail would become such a massive cesspool of spam and hijacked accounts. It'd be spectacular.
89.
▲
by
traderj0e
5mo ago
This is why I always ignore these headlines until I see the change firsthand. In this case it wasn't even an article, only a brief forum comment, for a topic as complex as spam protection. Might not be an A/B test, could just be s
90.
▲
by
traderj0e
5mo ago
The reason people mention importance is because corps like Google don't just care about per-product profitability, they assess how one product affects the rest of their business.
More ›