C fellas really do be out here naming their functions `htons` or `ntohl` smh
It's astounding how low the bar is for corporate web applications in the academic world. I go to the number 5 CS school in the country, but our advising app doesn't even have a footer that sticks to the bottom of the page. If I tried to give my clients this level of UI at my consulting firm, I'd be run out of town on a rail!!
This bug has made me miss Rust immensely. C is great, but you really shouldn't be able to smash the stack that easily in 2020.
I just remembered the really weird part! This bug isn't happening on my Ubuntu machine, only on the Red Hat school servers. Why wasn't the stack being smashed there? I'll have to do some detective work in the morning 🧐
I was gobsmacked when I saw that calling `recv` would suddenly cause a huge chunk of my locals to become 0.... but not all of them! My sleep deprived brain took a second to realize this meant that the stack was being clobbered, and eventually realized that I was reading 512 bytes into a 40 byte buffer 🤦♂️
I'm kinda proud of myself for being able to effectively debug with gdb.
It's confirmed: I'm writing this assembler in #Rust 😎
https://man7.org/linux/man-pages/man1/tee.1.html HOW DID I NOT KNOW THAT TEE WAS A THING
Ok but like these are actually some galaxy brain questions about the origins of mathematics https://twitter.com/aIeturner/status/1298372968838508546
Trying to explain what "API" and "server" can mean in different contexts to folks can be really hard, especially if they haven't gotten a ton of computing fundamentals and only know certain very specific definitions, e.g. API == the API presented by an HTTP server, server == some black box that we talk to on the Web.
Come on #Rust please I just want to store function pointers in a hashmap is that too much to ask 😭
That's what I like to see! #Titan
I'm Jahziel, a computer science undergrad at Georgia Tech. I make computers go beep-boop.
This is a server created by Jahziel Villasana (aka hapax). He's not sure what he's going to use it for yet...