Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xorvoid
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
151.
▲
by
xorvoid
4y ago
Oh C++… The level of excitement over pointless triviality you generate never ceases to amaze me. Some nerds somewhere are getting all giddy about this silliness when it would just be objectively better to not have this silly quirk in the fi
152.
▲
by
xorvoid
4y ago
The short-sightedness is Remarkable. Unless the entire world and every classroom hold to such a standard, than this simply widens an already uncomfortably wide Multi-Modal Distribution. We live in a global economy and compete in one. Artifi
153.
▲
by
xorvoid
4y ago
This essay by ETH Zurich couldn’t have been written by ChatGPT. Think about that. There’s a soul to it: an argument, a position, a certain edge, a purpose. I never get that sense when reading the works of ChatGPT. Plausible Fiction is fabul
154.
▲
by
xorvoid
4y ago
Human language doesn’t stay the same over 100 years. Is it reasonable to expect that from a computer language? To be fair, they are different. But, I think close enough to make the analogy stand. Different idioms, ways of expression arise c
155.
▲
by
xorvoid
4y ago
Well, he’s wrong, objectively so. And its easy to prove. But I can’t blame him for feeling attacked and wanting to defend the work he’s poured his entire life into. (For the record: I’m a lifelong C/C++ programmer who has written large
156.
▲
by
xorvoid
4y ago
This 100% I’m darn sick of reading articles that don’t consider tradeoffs. Engineering can be defined as “a search for the optimal set of tradeoffs”. But, it seems like every article I ever read about new tech only discussed pros, not cons.
157.
▲
by
xorvoid
4y ago
I don’t understand. If you’re doing length checks before “strcpy()”, then you can easily call “memcpy()” instead. And.. memcpy() is faster because it can go word at a time. So, why would anyone ever need “strcpy()”?
158.
▲
by
xorvoid
4y ago
The article misses a really big item. I’ve programmed in C for 20+ years and then recently switched to rust. When fellow C programmers ask me how Rust is going, I say “it’s modern” and “it’s consistent”. What I mean by that unlike C, Rust d
159.
▲
by
xorvoid
4y ago
Disappointed seeing a negative comment at the top. This is a COOL project: BADASS even. You’re not technically wrong, but the world advances much more via optimism than pessimism. To the creator: Rock On Dude. So so so cool.
160.
▲
by
xorvoid
4y ago
I was “gifted” as a child. As a result I never studied for school and didn’t take it seriously. Then I failed out of my first year of college and had a breakdown about how I was gonna be a complete failure in life. That changed everything.
161.
▲
by
xorvoid
4y ago
Same thought. Seriously, what a great way to trigger some senior kernel dev to come down and straight veto rust with some rant about how it’s “worse C++” Rust is very slowly winning (but it’s a really hard space and this is impressive). But
162.
▲
by
xorvoid
5y ago
Meh. It’s harmless. You get a helpful compiler error the first time and you very quickly learn. I’ve been a C programmer for >20 years and this slight difference wouldn’t bother me. Explaining it is simple: ‘.’ uses a reference and produ
163.
▲
by
xorvoid
5y ago
Interesting write-up. Unsafe pointers are definitely due for an overhaul. Suggestion on syntax: just use ‘->’ It has the familiarity from C already. Most rust unsafe programmers are long time C/C++ folks. You can define them to only
164.
▲
by
xorvoid
5y ago
So… “senior engineer” to me means becoming a leader that knows how to forge a path through the forest of unknown unknowns. It means that the person is capable of navigating an org structure. It means that the person knows how to balance the
165.
▲
by
xorvoid
5y ago
Yes. It is bad. And it’s warped programmer brains for decades now. If you want to have some fun and design a better interface, go grab a direct kernel-bypass layer 2 NIC interface and learn how much better things could have been. Unfortunat
166.
▲
by
xorvoid
5y ago
Ah okay this makes sense. I wish I personally had the spare time to contribute this.
167.
▲
by
xorvoid
5y ago
Ha. As a kid, I tried using this argument with my parents when they told me to clean my room. They came back an hour later and it was messier and I said “It has to get messier before it gets cleaner”. It legitimately was not an excuse. But
168.
▲
by
xorvoid
5y ago
As an example, in C the following is quite common: Data dat; dat.a = 1; dat.b = “foobar”; do_thing(&dat); I seems like the compiler should be able to treat “dat” as an “maybe uninit” type until after “dat.b” gets assigned.
169.
▲
by
xorvoid
5y ago
I’ve never understood why they don’t just support partially initialized structs. They’re already doing control flow analysis for initializing variables. It seems like a natural extension to do this for aggregate types (product and sum). Fro
170.
▲
by
xorvoid
5y ago
1. Reach “conversational” level in Spanish 2. Complete a 50 miler ultra-marathon 3. Buy a vacation home on a lake 4. Start leading and organizing group events that I wish existed but no one else has stepped up on
171.
▲
by
xorvoid
5y ago
Re running: Couch to 5k is awesome. Again, go slower and avoid burnout. Wait until you “crave” running and you’ll actually learn to love it rather than hate it.
172.
▲
by
xorvoid
5y ago
Habit and Consistency. You’ll be amazed at what that can do. The common troupe: Someone decides they want to get fit, so they go out and join a gym and start pushing themselves extra hard. One month later they’ve burned-out, got discouraged
173.
▲
by
xorvoid
5y ago
Not so much idioms as much as APIs imho
174.
▲
by
xorvoid
5y ago
This article demonstrates the key idea that I learned about teaching: the best teachers form-fit their teaching to the students specifically. It’s your first job as a teacher to (1) listen and understand where your students mindset is, and
175.
▲
by
xorvoid
5y ago
Is this really an optimization that we want/need a compiler to do? I kind of get it for really high-level languages like Haskell, but for low-level languages like C/C++ it feels like a silly toy example. The abstract machine is so
176.
▲
by
xorvoid
5y ago
Idk.. the alternative seems like a Python 3 nightmare. People start depending on things and then you’re faced with two choices: (1) break lots of people, (2) hold on to every bit of ugly broken legacy stuff in the name of backwards compat.
177.
▲
by
xorvoid
5y ago
Doesn’t seem too hard actually, given enough example input. The parity is just a linear combination of the input so you can set up a linear system and solve for those things encoding matrix rows pretty easily. From there you may need to mak