Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hot_gril
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
931.
▲
by
hot_gril
3y ago
Many of us have probably heard that all the dumb programmers use Javascript, but even if that's true, that's a reason for me to use it. Even though I'm capable of using galaxy-brained language ecosystems, I don't need th
932.
▲
by
hot_gril
3y ago
It's also pointless to care about types in fine-scoped code. Like if your language forces me to assert that i is an integer like this, something is wrong... for (int i = 0; i < n; i++) And when I'm writing backends, usu
933.
▲
by
hot_gril
3y ago
Rust gets in the way a lot, as it's supposed to for safety. Maybe it'd be a lot faster to iterate on if some AI could auto fix your code to make the compiler happy.
934.
▲
by
hot_gril
3y ago
It's not easy to find an employer that'll agree with your preferences. I chose to find fun and value in the way I collaborate and reach end goals, not the tools. If the tooling in my dept sucks, I just treat it like a challenge an
935.
▲
by
hot_gril
3y ago
Yes, but async/await doesn't mean you need an event loop.
936.
▲
by
hot_gril
3y ago
What I mean is, to do the equivalent of async/await in Golang, you need to use channels. As I understand it, you can wait on a goroutine to finish by waiting on its channel to return something. Async/await would simply be syntacti
937.
▲
by
hot_gril
3y ago
Yeah, Rust-C interop was really nice the time I used it.
938.
▲
by
hot_gril
3y ago
Amdahl's law, it won't be 100x when my server is waiting on RPCs and other I/O most of the time anyway
939.
▲
by
hot_gril
3y ago
That's ok, I'll just use the other languages that have it
940.
▲
by
hot_gril
3y ago
It's so empty anywhere I go that it's an easy comparison. I can drive 15 minutes and see 0 bikes, 200 cars. I used to bike too. If there were anywhere near as many bikes as cars, I'd have sat next to them at traffic lights. C
941.
▲
by
hot_gril
3y ago
It's not reassuring to say that these lanes only work when they cover the entire city. If they start with a smaller bike-friendly part of town and it actually works, people will want to move there or expand it.
942.
▲
by
hot_gril
3y ago
Has AIPAC in particular said this too? Because I've seen JFNA's letter to Congress encouraging a ban but nothing from AIPAC so far.
943.
▲
by
hot_gril
3y ago
There are NodeJS packages wrapping C code too. Probably less common than in Python, but that's not really a reason Python packages are so annoying.
944.
▲
by
hot_gril
3y ago
It was indeed only me working on it. I forget what was the issue exactly, something about constantly forgetting what the "mut", "&", "*", etc symbols did in different contexts. I conceptually understood it
945.
▲
by
hot_gril
3y ago
I don't want to have to make a channel every time for something so simple. Also, was Googling how you execute two things at once then wait on both in Golang, and https://www.reddit.com/r/golang/comments/1
946.
▲
by
hot_gril
3y ago
This is trying to solve a problem a lot of people never really had. I've never been working on an Express backend and thought gee, wish I had threading.
947.
▲
by
hot_gril
3y ago
Just ask ChatGPT questions like "how the hell do I do (something in the language you know) in (the language you don't know)." And you'll never get an answer like "actually the language doesn't have this feature
948.
▲
by
hot_gril
3y ago
It's designed to be more CPU-efficient than NodeJS or Python, but if all your heavy lifting is really in Postgres and other services you're calling, it doesn't matter and it's a bit pedantic. I think Golang was designed
949.
▲
by
hot_gril
3y ago
More familiar and convenient syntax
950.
▲
by
hot_gril
3y ago
I'm not a downvoter, but in my experience Rust was a learning curve even after a month, causing me to switch a project (software-defined network research prototype) mostly back to C.
951.
▲
by
hot_gril
3y ago
The separation for me is more about layers. If you're writing anything touching an OS, your choices are basically C, C++, Rust. If you're writing a web backend application, Rust isn't a good choice, and even Golang is questio
952.
▲
by
hot_gril
3y ago
Golang recently folded on the whole "no generics" decision, which throws a lot of dust into the air. Personally I'm waiting for them to add exceptions and async/await.
953.
▲
by
hot_gril
3y ago
Mention how NodeJS has simple package management while Python doesn't, you'll find the Python apologists explaining why somehow it was an impossible task for Python to do packages right for legacy reasons, even though they got to
954.
▲
by
hot_gril
3y ago
If you really want "worse is better," it's Javascript. Idk what the use case is here exactly, but if the thing worked in Python, JS was probably a fit.
955.
▲
by
hot_gril
3y ago
Huh, maybe they took them out. And yeah that's the classic, those blocked lanes were a constant danger when I used to bike to work.
956.
▲
by
hot_gril
3y ago
Amsterdam wasn't built around cars, that's the key. Especially an oversized American road converted to big tree-dotted lanes wouldn't be particularly useful for people if everything is still so far apart, like Dearborn, MI. A
957.
▲
by
hot_gril
3y ago
The suggestion isn't carrot-only. Instead of making the whole city more annoying for cars, it's making part of it completely unusable by cars and leaving the rest alone, subject to change as the no-car area grows. It's like a
958.
▲
by
hot_gril
3y ago
Yeah, the White House doesn't pretend it's not about influencing public opinion. So it's a natural question, what opinion are they worried about. Maybe there's no particular one, but idk.
959.
▲
by
hot_gril
3y ago
I'm thinking of downtown San Jose, CA, where they do seem to have a full network of bike lanes often totally separated by cones, but maybe I'm wrong.
960.
▲
by
hot_gril
3y ago
IMO the most realistic way to achieve this in the US is to build up some central no-car area that has ample parking around it. This may be composed of parks, malls, and closed streets that never made much sense to drive on anyway. As it bec
More ›