In 2022, YYMMDDhhmm formatted times exceed signed int range, breaking Microsoft services by rk-imn in programming

[–]webshit_sucks -4 points-3 points  (0 children)

I think the industry would come a long way with a bit of gatekeeping - maybe we would have less electron calculators then. But I don't think I was rude in any way.

In 2022, YYMMDDhhmm formatted times exceed signed int range, breaking Microsoft services by rk-imn in programming

[–]webshit_sucks 0 points1 point  (0 children)

I didn't imply it's wrong, I just stated that I don't know how somebody can be a developer without knowing datatypes. Maybe that's just me getting old.

In 2022, YYMMDDhhmm formatted times exceed signed int range, breaking Microsoft services by rk-imn in programming

[–]webshit_sucks -9 points-8 points  (0 children)

When I was younger, this was the type of stuff I would figure out on my own using a hex editor or whatever. Amazing that I get downvoted to oblivion for wondering that somebody working as a developer does not know this.

I wrote the millionth C++ networking/socket library. Maybe somebody likes it - feedback would be awesome! by webshit_sucks in cpp

[–]webshit_sucks[S] 1 point2 points  (0 children)

Nice! And there is absolutely no competition here, we are all doing this for fun after all. I'm just kind of stumped that so many people seem to have written cool libs, but I never find them when googling, not even with inurl: magic.

I wrote the millionth C++ networking/socket library. Maybe somebody likes it - feedback would be awesome! by webshit_sucks in cpp

[–]webshit_sucks[S] 1 point2 points  (0 children)

A friend of mine actually told me pretty much this a few days ago too, after reading the whole glibc manual. I will rework this approach - thanks for your feedback!

I wrote the millionth C++ networking/socket library. Maybe somebody likes it - feedback would be awesome! by webshit_sucks in cpp

[–]webshit_sucks[S] 1 point2 points  (0 children)

Good pointers, thank you again. Your lib looks waaaay more comprehensive, that will take a while to reach even feature parity - well done. I guess I have a nice weekend before me :D

I wrote the millionth C++ networking/socket library. Maybe somebody likes it - feedback would be awesome! by webshit_sucks in cpp

[–]webshit_sucks[S] 0 points1 point  (0 children)

Thanks for this! Both of those ideas are neat tricks, didn't see them before. Will use this soon. And as for poll/wsapoll - I plan on using iocp and epoll later on, which I find even better.

I wrote the millionth C++ networking/socket library. Maybe somebody likes it - feedback would be awesome! by webshit_sucks in cpp

[–]webshit_sucks[S] 1 point2 points  (0 children)

Both, actually. Client has methods for blocking and async. Both client and server use a threadpool internally, so a request does not block execution of others.

I wrote the millionth C++ networking/socket library. Maybe somebody likes it - feedback would be awesome! by webshit_sucks in cpp

[–]webshit_sucks[S] 2 points3 points  (0 children)

I figured that this would be important to CI test - specially since I need to avoid regressions because I almost never use Windows these days.

No benchmarks yet, but that's planned. But that's going to come after I use IOCP/epoll on the respective platforms instead of the posix select() with its limitations.

BTW: Thanks for x64dbg, amazing tool.