🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90734

Re: A C library for the NNTP protocol?

#90734
From: Russ Allbery
Date: Thu, 07 Sep 2023 01:51
39 lines
2834 bytes
not@telling.you.invalid (Computer Nerd Kev) writes:

> There are plenty of cross-platform programs that use networking, written
> in C. From the X window system to this lightweight encryption library
> (perhaps useful to the OP if they're interested in NNTPS?):
> https://github.com/classilla/cryanc

Which, as noted on that page, doesn't work on VMS.

I think you are significantly underestimating how much of a challenge
getting portable C to run on the list of platforms given in the original
message is.  That list is not just obscure UNIX platforms, which would be
relatively straightforward.  It includes platforms that the typical helper
software like Autoconf won't touch.

There is a Python port to VMS already, for example, which supports the
standard Python language.  (It's even fairly recent; Python 3.10, I
believe.)  That port is already dealing with a rather large amount of
stuff that you would otherwise have to handle manually.

I know any mention of Python for some reason lights some people's hair on
fire, but I mentioned it specifically because it's one of the most ported
languages, thanks in part to somewhat-reduced implementations that run on
all sorts of really obscure platforms.  You may well have to stick to a
very carefully chosen subset of Python for your program to work
everywhere, but it's still going to be less work than starting at the C
level and trying to figure out even how to successfully invoke a compiler
on some of those systems.

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.  :)

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <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
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>

Show Full Headers
Complete Article Headers
Message-ID: <87zg1yycle.fsf@hope.eyrie.org>
Subject: Re: A C library for the NNTP protocol?
Date: Wed, 06 Sep 2023 18:51:57 -0700
From: Russ Allbery <eagle@eyrie.org>
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>
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
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="17389"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:eOKgi8LkzySiTpAlgbIe78jSRSw=