News for hackers. Stuff that matters.
Re:An intro to Zig's integer casting for C programmers by StreamBright on Tuesday May 11, 2021 @11:53AM (#27119642)
Thanks!
Re:An intro to Zig's integer casting for C programmers by johnisgood on Tuesday May 11, 2021 @12:00PM (#27119742)
No problem! You might find this website useful, too, as it is filled with resources: https://www.adaic.org/learn/materials/
Re:An intro to Zig's integer casting for C programmers by mousepilot on Tuesday May 11, 2021 @09:59PM (#27125826)
I loved reading about ada back in the day, how is it nowadays wrt network programming. I'm checking out gnat.sockets, does it have a snappy select() type thing like linux's epoll?

Sorry if a lazy question, last time I looked at ada was decades ago and I'm surprised to find enthusiasts for it on HN.

edit: an advantage for c is that you can get loads of examples just googling, sucks for less used languages I guess.

Re:An intro to Zig's integer casting for C programmers by johnisgood on Wednesday May 12, 2021 @12:14AM (#27126515)
It has been a while, but you may want to look at:

- https://en.wikibooks.org/wiki/Ada_Programming/Libraries/GNAT... (search for "C select()")

- https://www.codelabs.ch/anet/

- https://github.com/samueltardieu/adasockets

- https://github.com/rtyler/ada-playground/blob/master/epollec...

Some old reading: https://brokenco.de/2013/04/07/async-with-ada.html

You may want to check how GNAT.Sockets and Anet are implemented, too. I know that GNAT code is heavily documented.

Re:An intro to Zig's integer casting for C programmers by mousepilot on Wednesday May 12, 2021 @05:15AM (#27128301)
thanks man, your post is a great timesaver, that wikibooks link itself is packed with info!
Re:An intro to Zig's integer casting for C programmers by johnisgood on Thursday May 13, 2021 @02:12AM (#27138982)
Of course, you are welcome!