Recent submissions

Comment · 26 days ago
> Nothing prevents you doing this in C++.

You left out the part of my comment where I said “pretty trivially” lol. C++ is mostly a superset of C, which is why I’m not arguing that it’s impossible to do these things in C++. I like C++ too, and think some of the things in there are great. But the simplicity of C is nice. I would often get overwhelmed thinking about all the different constructors in C++ and what I needed to do to ensure that I didn’t accidentally tank performance by copying objects around everywhere (and potentially calling some invisible constructor that did extra work in the copy function). In C, I know when I memcpy it’s just gonna move some bytes around.

Overall, I really don’t care all that much one way or the other. But I can see how people could prefer C to C++. I could also see how people prefer C++. I really really miss function overloading and <string.h> when I use C

Comment · 27 days ago
> What is mess in C++?

Just a couple examples:

How do you make a shallow copy of an object in C++, how do you do the same thing in C? Knowing I can just memcpy _any_ struct in C and have a valid shallow copy is pretty huge.

How do you create a stable ABI in C++? How do you make one in C? In C, knowing that all my exported functions will mostly just work and be stable as long as I don’t change the interface is also huge and allows you to create cross language bindings pretty trivially.

Comment · 1 year ago
And the fact that you were getting downvoted for this rational take concerns me even more. Scary times ahead indeed.
Comment · 1 year ago
> It can be accessed from behind VPNs without any issues, so effectively it doesn't matter that it's not e2e encrypted.

How do these two things correlate? I thought the benefit of E2E encryption is the fact that no one can decrypt your messages except for the participants in the conversation. There’s no keys anywhere on a server that an admin could use to decrypt the conversation. How would being behind a VPN negate that? The VPN still has to go through Discord servers where a key is presumably stored if the information is encrypted at all.

Comment · 1 year ago
I’m all for using C for native development (and because I find it fun to work in occasionally), but I agree with your sentiment here. Not only do you have to manage memory manually, but you also have to do a lot more work for basic string manipulation which is the vast majority of web work. I would much rather work with a language with built in support for string manipulation and well known 3rd party libraries with good ergonomics for working with JSON, which a lot of your APIs will most likely be using.
Comment · 2 years ago
Who’s talking about exterminating people?
Comment · 2 years ago
16 x 7 = 112 days, I’m not sure I understand your comment? Even if it was business days only, 5 x 16 = 80 which is still above the minimum needed.
Comment · 2 years ago
As someone that got rear ended on my way home from work and had my car totaled a few months ago, I disagree haha
Comment · 2 years ago
Yep. The company that my 401K is managed through began sending me these stupid emails about “Tips to manage your wealth”, and it was marked as an email that could not be unsubscribed from because it was pertinent to my account. It took an angry note left on their feedback form with a threat to report them to get those emails to finally stop showing up. It’s disgusting. I literally can’t even tell which emails I need to pay attention to that are about my 401K because they mingle spam in there.
Comment · 2 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton