Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hot_gril
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
901.
▲
by
hot_gril
2y ago
Starting with a basic web backend, you probably have a database that you can't simply run replicas of.
902.
▲
by
hot_gril
2y ago
Clouds have historically been designed for high-availability workloads, which are very hard to handle yourself. It doesn't always make sense for experimentation or AI training, though they might be trying to optimize more for that now.
903.
▲
by
hot_gril
2y ago
Also might be easier to build than a C project.
904.
▲
by
hot_gril
2y ago
It's still less of an issue than Bay Area, and the other parts are more fun.
905.
▲
by
hot_gril
2y ago
That's what I understood too, but it seems more like enough to rent, not buy.
906.
▲
by
hot_gril
2y ago
Maybe there was some blanket advice in the past to enable it? Idk, this got me alarmed for nothing.
907.
▲
by
hot_gril
2y ago
If anything it's more standard practice to have agent forwarding disabled, since that's the default.
908.
▲
by
hot_gril
2y ago
Trusting one host is safer than trusting two hosts.
909.
▲
by
hot_gril
2y ago
I'd start with an actual use case or existing project. Here's a fun one: https://github.com/assaultcube/AC
910.
▲
by
hot_gril
2y ago
Same, I was ready to come in and complain, but then I was just confused. Been using C++ daily for 5 years but have never heard of C++ modules.
911.
▲
by
hot_gril
2y ago
Rust, since you're mentioning speed. It was refreshing to use, partially because the standard library is so much nicer.
912.
▲
by
hot_gril
2y ago
It's called putting all your code in the .h
913.
▲
by
hot_gril
2y ago
I probably got the wrong query. There was some other one where the unique index removes a race condition, lemme find it...
914.
▲
by
hot_gril
3y ago
The article is overly broad, and if the point is that not every single system ever uses UTF-8... well of course.
915.
▲
by
hot_gril
3y ago
Java and Javascript both use UTF-16 for internal string representation, even though JSON specifies UTF-8. Windows APIs too. I'm still not sure why, but it means that one char uses at least 2 bytes even if it's in the ASCII range.
916.
▲
by
hot_gril
3y ago
What's bad about it? Last time I used Rust was before that feature existed.
917.
▲
by
hot_gril
3y ago
Just don't allow receiving SMS from frikin email addresses and that solves most of the problem. Why is that even a thing?
918.
▲
by
hot_gril
3y ago
I like the Javascript way of objects just having fully mutable keys/values like dictionaries, with no inheritance or static typing.
919.
▲
by
hot_gril
3y ago
The exact guarantees you get from Postgres's default isolation level are pretty detailed. The manual* doesn't mention locking on constraints or unique indexes, but I can make guesses based on how I'd expect it to work. I don&
920.
▲
by
hot_gril
3y ago
The default, read committed
921.
▲
by
hot_gril
3y ago
Yeah, that's what I meant.
922.
▲
by
hot_gril
3y ago
In many cases you can still be ok just using IF NOT EXISTS everywhere, or occasionally IF EXISTS when trying to delete a no-longer-used col or index. Whether you start with a blank DB or any intermediate state, you'd end up with the sa
923.
▲
by
hot_gril
3y ago
The most surprising thing about Postgres indexes as a beginner was how UNIQUE indexes can affect the outcomes of concurrent queries because of the additional locking they add. Something like INSERT INTO foo (bar) (SELECT max(bar) + 1 FR
924.
▲
by
hot_gril
3y ago
I don't know the terminology. I just know that Rust does whatever the alternative is to the Java way with inheritance. You don't get stuck with the classic classification problem.
925.
▲
by
hot_gril
3y ago
Rust has traits on structs instead of using inheritance. Aka composition.
926.
▲
by
hot_gril
3y ago
Had to look up ECS to be honest, and it's pretty much what I already do in general dev. I don't care to classify things, I care what I can do with something. Which is Rust's model.
927.
▲
by
hot_gril
3y ago
Yeah, OOP makes sense for games. The language will matter a bit for which one takes off, but anything will work given enough support. Like, Python doesn't inherently make a lot of sense for data processing or AI, but it's good eno
928.
▲
by
hot_gril
3y ago
Exactly, it's all about the ecosystem and very little about the language features
929.
▲
by
hot_gril
3y ago
Why is async such a dealbreaker for this guy? Especially for web dev.
930.
▲
by
hot_gril
3y ago
I don't think it holds them back. Rust is just not an amazing special tool for game dev it seems, doesn't matter how the community behaves. It's still a solid choice for systems.
More ›