OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 3:32 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Reading draft ISO C and C++ standards
PostPosted: Wed Feb 24, 2021 2:18 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
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


Top
 Profile  
 
 Post subject: Re: Reading draft ISO C and C++ standards
PostPosted: Wed Feb 24, 2021 2:47 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1590
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!


Top
 Profile  
 
 Post subject: Re: Reading draft ISO C and C++ standards
PostPosted: Wed Feb 24, 2021 3:48 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 1071
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


Top
 Profile  
 
 Post subject: Re: Reading draft ISO C and C++ standards
PostPosted: Wed Feb 24, 2021 4:42 pm 
Offline
Member
Member

Joined: Fri May 11, 2018 6:51 am
Posts: 274
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


Top
 Profile  
 
 Post subject: Re: Reading draft ISO C and C++ standards
PostPosted: Wed Feb 24, 2021 5:19 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
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!

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: Reading draft ISO C and C++ standards
PostPosted: Tue Mar 02, 2021 7:13 am 
Offline
Member
Member

Joined: Thu May 17, 2007 1:27 pm
Posts: 999
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].


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group