tech.lgbt is one of the many independent Mastodon servers you can use to participate in the fediverse.
We welcome all marginalized identities. This Mastodon instance is generally for folks who are LGBTQIA+ and Allies with an interest in tech work, academics, or technology in general.

Server stats:

2.8K
active users

First Plan 9 C program compiled and ran! This is going to be a fun weekend and a fun year in general! :akko_excited: Once I rtfm for `2c` and used the x86_64 (`6c` and `6l`) for compiling and linking it all worked.

Really interesting that we return strings instead of integers for errors and final return status (null string is success). Intuitive!

Public

@bugwhisperer Nice! I’d like to learn a bit of C, and as I’m trying to use #9front, it seems a great platform to learn. Could you suggest me a couple of free text to learn the basics of C?

Quiet public

@chakuari Hi Antonio! I used this article that covers Plan 9 C to try and understand the differences from the more modern C versions that I had learned first: doc.cat-v.org/plan_9/programmi

For a free book on modern C I highly recommend Jens Gustedt's "Modern C": gustedt.wordpress.com/2024/10/

doc.cat-v.orgC Programming in Plan 9 from Bell Labs
Quiet public

@bugwhisperer Thx! I’ll try.

Quiet public

@bugwhisperer I hope this would be simple to read as I don’t code…😅

Quiet public

@chakuari Ah, okay! Getting the basics of programming with C would be a good first step. I'd use something like: learn-c.org/. Once you've got the basics, you can move to the other resources to go deeper. Good luck! :ms_robot_grin:

www.learn-c.orgLearn C - Free Interactive C Tutoriallearn-c.org is a free interactive C tutorial for people who want to learn C, fast.
Quiet public

@bugwhisperer Great! I’ll try. Thx a lot!

Public
This is a decent guide to c (https://beej.us/guide/bgc/html/index-wide.html) However, keep in mind that 9front c is a bit different. The man pages will be your friend. Also, 9front comes with all the source code which is a great reference. Finally, this site has some specific info on c programming in 9front: https://wiki.9front.org/programming
Public

@76dd1b44db00b4f97c6db6eb0a3d586ab2052559e450c8015f53d258bd5e96fb @bugwhisperer Thx for the tip! I’ll try also Beej’s guide to get the toes wet, let’s see if I can learn a little bit of C.