Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joaohaas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
joaohaas
7mo ago
It follows the same reasoning as when someone purposefully copies code from a codebase into another where the license doesn't allow. Yes it might be the only viable solution, and most likely no one will ever know you copied it, but if
32.
▲
by
joaohaas
10mo ago
I think most people wouldn't call proof-reading 'assistance'. As in, if I ask a colleague to review my PR, I wouldn't say he assisted me. I've been throwing my PR diffs at Claude over the last few weeks. It spits a
33.
▲
by
joaohaas
10mo ago
Overall it feels like unless your game is a linear single-player game, it will fall under multiple of the site's labelled 'dark patterns'. Here are some really bad ones: Infinite Treadmill - Impossible to win or complete the
34.
▲
by
joaohaas
11mo ago
>post decides to use the most crusty GenAI image possible Man, what a cancer. Straight up using the bare TSMC logo here would work just fine.
35.
▲
by
joaohaas
11mo ago
That's exactly what the quoted answer is saying though?
36.
▲
by
joaohaas
11mo ago
Even if the data is important, you can enable WAL and make sure the worker/consumer gets items by RPOPLPUSHing to a working queue. This way you can easily requeue the data if the worker ever goes offline mid-process.
37.
▲
by
joaohaas
11mo ago
Had the same thoughts, weird it didn't include Kafka numbers. Never used Kafka myself, but we extensively use Redis queues with some scripts to ensure persistency, and we hit throughputs much higher than those in equivalent prod machin
38.
▲
by
joaohaas
11mo ago
So, if I got this right, this is just about re-implementing an existing load balancing algorithm faster...? If so, this is really dumb. As you guys checked out, yes most load balancing algorithms are slow/dumb: >First, we evaluate D
39.
▲
by
joaohaas
1y ago
>and is much better than the mess of Webpack/Rollup/Brunch/Grunt... You do know that Vite uses a lot of these behind the scenes right? Vite in general has much better defaults so that you don't have to configure them
40.
▲
by
joaohaas
1y ago
I think other people mentioned it already, but ideally I'd like to choose a list of languages to leave them as is, and translate the rest. For example, I can speak Portuguese, Spanish, Japanese and English. Ideally I would want news in
41.
▲
by
joaohaas
1y ago
>Vanced and such is more of a First World/Western issue What? I'm from Brazil and Vanced is as big, if not bigger here. In fact, most of my 'first world' friends just pay for YouTube Premium (or whatever it is called)
42.
▲
by
joaohaas
1y ago
Yes, it sucks But GPT-4 would have the same problems, since it uses the same image model
43.
▲
by
joaohaas
1y ago
try { // Parallel execution of independent operations const [config, userData] = await Promise.all([ readFile('config.json', 'utf8'), fetch('/api/user').then(r =>
44.
▲
by
joaohaas
1y ago
YAML sucking is no excuse to keep using XML. JSON, JSON5 and TOML are all great alternatives for projects.
45.
▲
by
joaohaas
1y ago
Your example does not classify as 'undefined behavior'. Something is 'undefined behavior' if it is specified in the language spec, and in such case yes, the language is capable of doing anything including violating memor
46.
▲
by
joaohaas
1y ago
As I mentioned, it's the same method Rust uses, and there are multiple reasons on the papers linked on why that is not desired.
47.
▲
by
joaohaas
1y ago
This doesn't mean the rest of the 87% enjoy it. Honestly, I'd rather the next survey included a question "are you satisfied with the current error handling approach"
48.
▲
by
joaohaas
1y ago
If you don't care about field access just always write fields with uppercase. Any APIs you're using only expose uppercased variables as well, so it'll stay consistent. The public/private stuff is mostly useful for publis
49.
▲
by
joaohaas
1y ago
It was not forgotten. Maybe/Either and 'do-notation' are literally what Rust does with Option/Result and '?', and that is mentioned a lot. That said as mentioned in a lot of places, changing errors to be sum ty
50.
▲
by
joaohaas
1y ago
Zig 'error types' are a sum type, while Go ones are just values. And even then this is just the same as the '?' operator Rust uses, which is mentioned in the post.
51.
▲
by
joaohaas
1y ago
I think you meant video decompression? Compression should theoretically be a lot more efficient, since the algorithm is a lot simpler and you can probably do a lot of SIMD to calculate the filters themselves.
52.
▲
by
joaohaas
1y ago
As mentioned, OP is not expecting people to use the compression algo on production stuff. You can think of it as an experiment to see how well bloom filters would apply to video compression. Are the results impressive? Probably not, but it&
53.
▲
by
joaohaas
1y ago
Redis is not designed for scaling. The 'default' version is a single-core app without any focus on availability. Yes there's Redis Cluster, but that's a separate thing, and most Redis installations don't use it.
54.
▲
by
joaohaas
1y ago
Try forcefully closing VSCode and your browser, and see how long it takes to open them again. The same is true for most complex webpages/'webapps' (Slack, Discord, etc). A lot of other native Mac stuff is also less than ideal
55.
▲
by
joaohaas
1y ago
HN: Yeah! We should be go back to writing optimized code that fully uses the hardware capabilities! Also HN: Check this new AI tool that consumes 1000x more energy to do the exact same thing we could already do, but worse and with no reprod
56.
▲
by
joaohaas
1y ago
I unironically can't remember a single case where AI managed to find a vulnerability in an open source project. And most contributions with 'AI help' tend to not follow the code practices of the code base itself, while also i
57.
▲
by
joaohaas
1y ago
I really don't see how what you are describing has anything to do with the graceful shutdown strategies/tips mentioned in the post. - Some applications want to instantly terminate upon receiving kill sigs, others want to handle th
58.
▲
by
joaohaas
1y ago
You're probably looking for Cloudflare's tableflip: https://github.com/cloudflare/tableflip
59.
▲
by
joaohaas
1y ago
Cool... but nothing will ever beat Anki + Immersion. Here's one guide most Japanese learners follow: https://learnjapanese.moe/
60.
▲
by
joaohaas
2y ago
>~novella sized stories laughs in umineko and higurashi
More ›