Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alexvitkov
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
alexvitkov
1y ago
WSL is not Windows. Unless you can work entirely in WSL (and if I could I'd just use Linux) having to juggle fake filesystems, incompatible symlinks, two PATHs, three shells is a bit much.
32.
▲
by
alexvitkov
1y ago
I'll take a rust tmux if it runs on Windows. I'm currently kind of stuck on Windows and I didn't realize how much tmux means to me until Bill took it away :(
33.
▲
by
alexvitkov
1y ago
The react snippet is one uppercase letter away from being vanilla js, it's definitely less magic.
34.
▲
by
alexvitkov
1y ago
I've found the Cursor autocomplete to be nice, but I've learned to only accept a completion if it's byte for byte what I would've written. With the context of surrounding code it guesses that often enough to be worth the
35.
▲
by
alexvitkov
1y ago
A: ChatGPT exists B: Entry-level jobs are down Apply some propositional logic or something: A&B => A->B Therefore ChatGPT took the entry level jobs.
36.
▲
by
alexvitkov
1y ago
This is not even worth thinking about, just type " = {}" on every struct/class member and every variable declaration, and forget about all this nonsense.
37.
▲
by
alexvitkov
1y ago
Watching a guy type at 30 WPM in a chatbox reminds me of those old YouTube tutorials where some dude is typing into into a notepad window, and showing you how to make a shortcut to "shutdown -s -t 0" on your school computer and gi
38.
▲
by
alexvitkov
1y ago
This is a very bold statement, you should consider substantiating it at least a little, maybe give just one example on what those absurdities collee students have to endure are, that prove they're good corporate drones? From what I rem
39.
▲
by
alexvitkov
1y ago
Maybe people would forget about them less often if they were allowed to talk about them
40.
▲
by
alexvitkov
1y ago
The Windows API uses this scheme for one of its 50 string types [1]. I"m not very fond of this design as it's easy to pass a "normal" C string, which compiles because BSTR is just a typedef to it. You can allocate the ex
41.
▲
by
alexvitkov
1y ago
C++ for one - it has atomics with well defined memory barriers, and guarentees for what happens around them. The real answer is obviously Assembly - pick a random instruction from any random modern CPU and I'd wager there's a 95%
42.
▲
by
alexvitkov
1y ago
None, but that'a not what computers are. C assumes that in a few places, e.g. variadic functions, and those are the worst parts of the language.
43.
▲
by
alexvitkov
1y ago
Please just use a pointer. Use metaprogramming when it makes sense, not to obfuscate something that was figured out 60 years ago.
44.
▲
by
alexvitkov
2y ago
Too much typing, and Chromium-based browsers don't understand it yet and try to search for mything.internal instead, which is annoying - you have to type out the whole http://mything.internal . This can be addressed by hijac
45.
▲
by
alexvitkov
2y ago
Computers do what you tell them to, not what you want them to. This is naturally infuriating, as when a computer doesn't do what you want, it means you've failed to express your vague idea in concrete terms. LLMs in the most gener
46.
▲
by
alexvitkov
2y ago
You don't have to replicate all the insanity that goes on in a modern OS. Lock threads to a particular core on creation, every core does a Round-robin over all threads. You're 50% there. Have the core detect congestion, and move y
47.
▲
by
alexvitkov
2y ago
> This is very much a win-win situation, because the alternative is that every manufacturer has their own proprietary system. No, it's a lose-lose situation. If we have 100 different mobile OS's it's a matter of time until
48.
▲
by
alexvitkov
2y ago
This has nothing to do with ipv4/ipv6 and the "ridiculous hacks" we do to keep ipv4 going. Those work just fine. This is a cultural problem, not a technological one.
49.
▲
by
alexvitkov
2y ago
There's 3 boolean modifiers and they're used all the time, just learn the shortcuts.
50.
▲
by
alexvitkov
2y ago
If LLM chatbots are making you vastly more productive in a field, you are in the bottom 20% of that field. They're still useful tools for exploring new disciplines, but if you're say a programmer and you think ChatGPT or DeepSeek
51.
▲
by
alexvitkov
2y ago
Keyboard shortcuts are a feature for advanced users, not pictures.
52.
▲
by
alexvitkov
2y ago
> It's an extremely successful model organizationally and technically. There are technically impressive open source projects - e.g. Linux, and most of them have people paid to work on them full time. Those are the exception,
53.
▲
by
alexvitkov
2y ago
Your second paragraph is explaining perfectly why open source doesn't work and how its economics don't add up. I would also add that it indirectly kills the vast majority of programming jobs - nobody is ever going to get paid to c
54.
▲
by
alexvitkov
2y ago
Not wanting pipelines to fail because someone put an extra space after the line, or because someone's text editor didn't put a new line at EOF, or put a unicode BOM or whatever is a pretty good reason not to have this "safegu
55.
▲
by
alexvitkov
2y ago
Probably the best argument for tabs I've seen so far.
56.
▲
by
alexvitkov
2y ago
I don't buy the static linking part - we already generate a single function in the linked binary that calls all static constructors from all translation units, the same thing can be done for TLS constructors (what I called construct_th
57.
▲
by
alexvitkov
2y ago
Creating a thread is already very expensive, in a sane program your ten TLS constructors shouldn't come even close to the amount of bookkeeping that the kernel has to do to spin up a new thread. Also creating a thread, doing little wor
58.
▲
by
alexvitkov
2y ago
Why aren't thread-local constructors called when the thread is created rather than doing a test on every variable access? Perhaps they wanted to have the OS-native pthread_create/CreateThread "work out of the box" withou
59.
▲
by
alexvitkov
2y ago
because you don't want your server's ip to change.
60.
▲
by
alexvitkov
2y ago
If your goal is to replace one unreliable source of information (Google first page) with another, sure - we may be there. I'd argue the GPT 3.5 already outperformed Google for a significant number of queries. The only difference betwee
More ›