Article View: news.software.nntp
Article #90737Re: A C library for the NNTP protocol?
From: Johann 'Myrkraverk' Oskarsson
Date: Thu, 07 Sep 2023 11:11
Date: Thu, 07 Sep 2023 11:11
36 lines
2835 bytes
2835 bytes
On 9/7/2023 9:51 AM, Russ Allbery wrote: [snip] > Far be it from me to discourage anyone else's hobbies, but if your hobby > is writing a portable NNTP library for that range of platforms in C, your > hobby is actually porting C to obscure platforms. The NNTP stuff is going > to be a very tiny part of the project. :) I believe you're vastly overestimating the effort of writing portable C network code. C network libraries exist for this purpose, the two I can name at the top of my head are NSPR and SDL_net. The former is still used by Firefox, and at one time worked on RISC OS too. I off hand don't recall if it worked on VMS before. There are also ways to write the NNTP code in a way that can be plugged into any networking framework. Such techniques are discussed in the /Patterns in C/ book by Tornhill, though of course that'll end up as "callback hell" as some people put it. Anyway, at a certain competency level, the portability of the code just stops being a concern. Either because it's written flexibly enough, with techniques as described by Tornhill [1] or even /that OOP book/ from 199x, IIRC, which I currently forgot the name of; or because the NNTP is written for a particular cross platform library, NSPR, SDL_net, or something else, that then isn't hard to port to new [or old] platforms. A lot of experience, and a little bit of thinking ahead goes a long way. [1] I didn't learn all these techniques from that book, but it's a useful reference for discussions like this. -- Johann | email: invalid -> com | www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | twitter: @myrkraverk
Technical Details
Message-ID:
<IdiKM.146956$sOsa.81806@fx04.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<cuHJM.1091805$6Li6.85230@fx12.ams4> <BGMJM.1820980$Y1R7.419554@fx04.ams4> <374KM.14$5D9b.1@fx02.ams4> <874jk7yuwd.fsf@hope.eyrie.org> <64f905f6@news.ausics.net> <87zg1yycle.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <IdiKM.146956$sOsa.81806@fx04.ams4> Subject: Re: A C library for the NNTP protocol? Date: Thu, 7 Sep 2023 19:11:28 +0800 From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> References: <cuHJM.1091805$6Li6.85230@fx12.ams4> <BGMJM.1820980$Y1R7.419554@fx04.ams4> <374KM.14$5D9b.1@fx02.ams4> <874jk7yuwd.fsf@hope.eyrie.org> <64f905f6@news.ausics.net> <87zg1yycle.fsf@hope.eyrie.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Mime-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-US Newsgroups: news.software.nntp In-Reply-To: <87zg1yycle.fsf@hope.eyrie.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 37 X-Complaints-To: abuse@easynews.com Organization: Easynews - www.easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.