Reading draft ISO C and C++ standards

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
nexos
Member
Member
Posts: 1071
Joined: Tue Feb 18, 2020 3:29 pm
Freenode IRC: nexos

Reading draft ISO C and C++ standards

Post by nexos »

Hello,
I have wanted to really understand C. I know it, but I want to really understand its ins and outs. I was wondering if it was legal to read the draft standard, as it is available at open-std.org. I hope it is legal, as I'll be in luck if it is!
Thanks,
nexos
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
nullplan
Member
Member
Posts: 1643
Joined: Wed Aug 30, 2017 8:24 am

Re: Reading draft ISO C and C++ standards

Post by nullplan »

It is. The drafts are published by the ISO working groups. They are not the official standards, and of course it is possible the official standards would be different, but the entire process of changing something is so tedious that usually the standards contain exactly the same text as the draft. I am unsure who would ever need to actually shell out those 198 CHF for the official standard, but if you somehow need to desperately lose money... you know, the option's open. I believe not all working groups are as open about their work as the C and C++ groups.
Carpe diem!
nexos
Member
Member
Posts: 1071
Joined: Tue Feb 18, 2020 3:29 pm
Freenode IRC: nexos

Re: Reading draft ISO C and C++ standards

Post by nexos »

Ok great! Thanks!
"How did you do this?"
"It's very simple — you read the protocol and write the code." - Bill Joy
Projects: NexNix | libnex | nnpkg
vvaltchev
Member
Member
Posts: 274
Joined: Fri May 11, 2018 6:51 am

Re: Reading draft ISO C and C++ standards

Post by vvaltchev »

I agree with nullplan. Unless it's almost a matter of "live and death", the latest draft before the official standard is pretty much reliable (without guarantees, of course). But, if you're a company and you want/need to formally comply with the standard XYZ, it's totally worth buying the official document instead. Putting the official standard behind a pay-wall is one of the many ways to fund the ISO committee, while sharing the drafts for free is a way to allow the document to reach as many people as possible.
Tilck, a Tiny Linux-Compatible Kernel: https://github.com/vvaltchev/tilck
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: Reading draft ISO C and C++ standards

Post by kzinti »

I've bought the C and C++ standard in the past... At the time I wrote a C compiler and was thinking of writing a C++ one (but that quickly turned out to be a lot of work and not much fun).

I remember paying around $40 CAD, so I don't think this was expensive at all. That said, the drafts are indeed free and enough for most people. Enjoy them and be thankful to these drafts are publicly available!
Korona
Member
Member
Posts: 999
Joined: Thu May 17, 2007 1:27 pm
Contact:

Re: Reading draft ISO C and C++ standards

Post by Korona »

The technical wording should not differ between the last draft and the standard; obviously the format is slightly different and lacks ISO logos.
managarm: Microkernel-based OS capable of running a Wayland desktop (Discord: https://discord.gg/7WB6Ur3). My OS-dev projects: [mlibc: Portable C library for managarm, qword, Linux, Sigma, ...] [LAI: AML interpreter] [xbstrap: Build system for OS distributions].
Post Reply