Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You can do more with a kind word and a gun than with just a kind word. -- Al Capone


devel / comp.unix.programmer / libwy v0.68.3 is reased.

SubjectAuthor
* libwy v0.68.3 is reased.wij
+* libwy v0.68.3 is reased.Muttley
|+* libwy v0.68.3 is reased.Kenny McCormack
||`- libwy v0.68.3 is reased.Muttley
|`* libwy v0.68.3 is reased.wij
| +* libwy v0.68.3 is reased.Muttley
| |`* libwy v0.68.3 is reased.Kaz Kylheku
| | `* libwy v0.68.3 is reased.wij
| |  +- libwy v0.68.3 is reased.Kaz Kylheku
| |  `- libwy v0.68.3 is reased.Keith Thompson
| `- libwy v0.68.3 is reased.Kaz Kylheku
`- libwy v0.68.3 is reased.Kaz Kylheku

1
libwy v0.68.3 is reased.

<93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10812&group=comp.unix.programmer#10812

  copy link   Newsgroups: comp.unix.programmer
X-Received: by 2002:a05:6214:162f:b0:63c:f5e9:c852 with SMTP id e15-20020a056214162f00b0063cf5e9c852mr37094qvw.12.1691441293799;
Mon, 07 Aug 2023 13:48:13 -0700 (PDT)
X-Received: by 2002:a05:6808:1a21:b0:3a7:392a:7405 with SMTP id
bk33-20020a0568081a2100b003a7392a7405mr18981837oib.2.1691441293554; Mon, 07
Aug 2023 13:48:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.programmer
Date: Mon, 7 Aug 2023 13:48:13 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=124.218.76.41; posting-account=0Ek0TQoAAAAS0oceh95IuNV59QuIWNeN
NNTP-Posting-Host: 124.218.76.41
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
Subject: libwy v0.68.3 is reased.
From: wynii...@gmail.com (wij)
Injection-Date: Mon, 07 Aug 2023 20:48:13 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3394
 by: wij - Mon, 7 Aug 2023 20:48 UTC

libwy https://sourceforge.net/projects/cscall/files/latest/download
is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), provides
basic 'system objects' for C++ aprogramers to program in Object-Oriented way.

This is lastly added example a_sysinfo.cpp (collect and dump system information)

#include <Wy.stdio.h>
#include <Wy.unistd.h>
#include <Wy.time.h>
#include <sys/utsname.h>

using namespace Wy;

String getfile(const char* fname)
{ Errno r;
String str;

cout << "---------------- Dump file: " << fname << " -----------------" WY_ENDL;
if((r=Wy::access(fname,F_OK))!=Ok) { // showcase, this check is not necessary
return "File (" + String(fname) + ") reading error: " + wrd(r) + WY_ENDL;
}

RegFile regf(fname,O_RDONLY); // may be virtual files (file size=0),
RdBuf strm(regf); // get_whole_regfile(..) won't work
for(;strm.is_eof()==false;) {
if((r=strm.append_read(str))!=Ok) {
WY_THROW(r);
} if(str.size()>1000000) {
WY_THROW( Errno(EFBIG) ); // file size > 1-mega bytes
} }
return str;
};

void dump_sysinfo() {
Errno r;
String str;

cout << "hostname: " << Wy::gethostname() << WY_ENDL;
{ struct utsname buf;
if(::uname(&buf)!=0) {
WY_THROW( Errno(errno) );
} cout << WY_ENDL;
cout << "---------------- Dump struct utsname -----------------" WY_ENDL;
cout << "sysname : " << buf.sysname << WY_ENDL;
cout << "nodename: " << buf.nodename << WY_ENDL;
cout << "release : " << buf.release << WY_ENDL;
cout << "version : " << buf.version << WY_ENDL;
cout << "machine : " << buf.machine << WY_ENDL;
}

cout << WY_ENDL;
cout << "ttyname(cerr): " << ttyname(cerr) << WY_ENDL;
cout << "ttyname(cin): " << ttyname(cin) << WY_ENDL;
cout << "ttyname(cout): " << ttyname(cout) << WY_ENDL;
cout << "ctermid(): " << ctermid() << WY_ENDL;
cout << WY_ENDL;
cout << "timezone: " << local_tzname() << WY_ENDL;
cout << WY_ENDL;
cout << "current working directory: " << getcwd() << WY_ENDL;

cout << WY_ENDL;
cout << getfile("/etc/os-release");
cout << WY_ENDL;
cout << getfile("/proc/cpuinfo");
cout << WY_ENDL;
cout << getfile("/proc/version");
cout << WY_ENDL;
cout << getfile("/proc/meminfo");
cout << WY_ENDL;
};

int main(int argc, const char* argv[])
try {
dump_sysinfo();
return 0;
} catch(const Errno& e) {
cerr << wrd(e) << WY_ENDL;
return e.c_errno();
} catch(...) {
cerr << "main() caught(...)" WY_ENDL;
throw;
};

Re: libwy v0.68.3 is reased.

<uasq7q$39np6$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10813&group=comp.unix.programmer#10813

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 07:18:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <uasq7q$39np6$1@dont-email.me>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
Injection-Date: Tue, 8 Aug 2023 07:18:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d2a4720c53ec5aeb7dd43aaaab87aa11";
logging-data="3464998"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EESxX6mlaLulUcjYZqJnV"
Cancel-Lock: sha1:6kTBPCaa+kV4JVphIwDGDAZjOtc=
 by: Mutt...@dastardlyhq.com - Tue, 8 Aug 2023 07:18 UTC

On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)
wij <wyniijj5@gmail.com> wrote:
>libwy https://sourceforge.net/projects/cscall/files/latest/download
>is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), provides
>basic 'system objects' for C++ aprogramers to program in Object-Oriented way.

You might want to look into the concept known as indentation. It makes code
a lot more readable.

Also any half decent C++ dev can wrap posix calls in classes and many do in
their day jobs so you're hardly breaking knew ground here despite what you
seem to think.

Re: libwy v0.68.3 is reased.

<uat31i$39pbs$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10814&group=comp.unix.programmer#10814

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 09:48:34 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <uat31i$39pbs$1@news.xmission.com>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com> <uasq7q$39np6$1@dont-email.me>
Injection-Date: Tue, 8 Aug 2023 09:48:34 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="3466620"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Tue, 8 Aug 2023 09:48 UTC

In article <uasq7q$39np6$1@dont-email.me>, <Muttley@dastardlyhq.com> wrote:
>On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)
>wij <wyniijj5@gmail.com> wrote:
>>libwy https://sourceforge.net/projects/cscall/files/latest/download
>>is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines),
>>provides basic 'system objects' for C++ aprogramers to program in
>>Object-Oriented way.
>
>You might want to look into the concept known as indentation. It makes code
>a lot more readable.
>
>Also any half decent C++ dev can wrap posix calls in classes and many do in
>their day jobs so you're hardly breaking knew ground here despite what you
>seem to think.

i.e., in the fine Usenet tradition:

If you don't have anything nice to say, come sit by me and post it to Usenet.

(Dorothy Parker, updated)

--
Indeed, most .NET developers couldn't pass CS101 at a third-rate
community college.
- F. Russell -

Re: libwy v0.68.3 is reased.

<aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10815&group=comp.unix.programmer#10815

  copy link   Newsgroups: comp.unix.programmer
X-Received: by 2002:a37:5ac3:0:b0:767:e6cd:6e2a with SMTP id o186-20020a375ac3000000b00767e6cd6e2amr28748qkb.2.1691498614327;
Tue, 08 Aug 2023 05:43:34 -0700 (PDT)
X-Received: by 2002:a05:6808:2202:b0:3a1:c163:6022 with SMTP id
bd2-20020a056808220200b003a1c1636022mr20280858oib.4.1691498613906; Tue, 08
Aug 2023 05:43:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.programmer
Date: Tue, 8 Aug 2023 05:43:33 -0700 (PDT)
In-Reply-To: <uasq7q$39np6$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=124.218.76.41; posting-account=0Ek0TQoAAAAS0oceh95IuNV59QuIWNeN
NNTP-Posting-Host: 124.218.76.41
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com> <uasq7q$39np6$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
Subject: Re: libwy v0.68.3 is reased.
From: wynii...@gmail.com (wij)
Injection-Date: Tue, 08 Aug 2023 12:43:34 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2064
 by: wij - Tue, 8 Aug 2023 12:43 UTC

On Tuesday, August 8, 2023 at 3:18:24 PM UTC+8, Mut...@dastardlyhq.com wrote:
> On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)
> wij <wyni...@gmail.com> wrote:
> >libwy https://sourceforge.net/projects/cscall/files/latest/download
> >is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), provides
> >basic 'system objects' for C++ aprogramers to program in Object-Oriented way.
> You might want to look into the concept known as indentation. It makes code
> a lot more readable.
Show us an example!

If you mean the kind of indentation of Python, LOL.

> Also any half decent C++ dev can wrap posix calls in classes and many do in
> their day jobs so you're hardly breaking knew ground here despite what you
> seem to think.

Name some, so I can understand better what you said. (there were some, but
none survived, IIRC).

Re: libwy v0.68.3 is reased.

<uatoad$3f7de$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10816&group=comp.unix.programmer#10816

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 15:51:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <uatoad$3f7de$1@dont-email.me>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com> <uasq7q$39np6$1@dont-email.me> <aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
Injection-Date: Tue, 8 Aug 2023 15:51:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d2a4720c53ec5aeb7dd43aaaab87aa11";
logging-data="3644846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eutsAiItCSBG8s7vDEmeV"
Cancel-Lock: sha1:EzyJJt7zkQWNJUdFsxTfblfz3+I=
 by: Mutt...@dastardlyhq.com - Tue, 8 Aug 2023 15:51 UTC

On Tue, 8 Aug 2023 05:43:33 -0700 (PDT)
wij <wyniijj5@gmail.com> wrote:
>On Tuesday, August 8, 2023 at 3:18:24=E2=80=AFPM UTC+8, Mut...@dastardlyhq.=
>com wrote:
>> On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)=20
>> wij <wyni...@gmail.com> wrote:=20
>> >libwy https://sourceforge.net/projects/cscall/files/latest/download=20
>> >is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), pr=
>ovides=20
>> >basic 'system objects' for C++ aprogramers to program in Object-Oriented=
> way.
>> You might want to look into the concept known as indentation. It makes co=
>de=20
>> a lot more readable.
>=20
> Show us an example!

If you don't understand indentation there's little point showing you. A 3
year old could grasp the concept.

>If you mean the kind of indentation of Python, LOL.

You do realise in C++ that whitespace doesn't have syntatic significance**
unlike Python?

>> Also any half decent C++ dev can wrap posix calls in classes and many do =
>in=20
>> their day jobs so you're hardly breaking knew ground here despite what yo=
>u=20
>> seem to think.
>
>Name some, so I can understand better what you said. (there were some, but
>none survived, IIRC).

Wtf are you talking? People often wrap posix calls in classes, how would I know
what they call them? If you want a public example Google the ACE networking
library.

** yes ok, older compilers required > > instead of >> for templates.

Re: libwy v0.68.3 is reased.

<uatofq$3f83r$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10817&group=comp.unix.programmer#10817

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Mutt...@dastardlyhq.com
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 15:54:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <uatofq$3f83r$1@dont-email.me>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com> <uasq7q$39np6$1@dont-email.me> <uat31i$39pbs$1@news.xmission.com>
Injection-Date: Tue, 8 Aug 2023 15:54:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d2a4720c53ec5aeb7dd43aaaab87aa11";
logging-data="3645563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//X7PWN7hahcf6wXGQXJLh"
Cancel-Lock: sha1:gcJEnbED1D14O5y6vUyBXaFzUsI=
 by: Mutt...@dastardlyhq.com - Tue, 8 Aug 2023 15:54 UTC

On Tue, 8 Aug 2023 09:48:34 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) wrote:
>In article <uasq7q$39np6$1@dont-email.me>, <Muttley@dastardlyhq.com> wrote:
>>On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)
>>wij <wyniijj5@gmail.com> wrote:
>>>libwy https://sourceforge.net/projects/cscall/files/latest/download
>>>is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines),
>>>provides basic 'system objects' for C++ aprogramers to program in
>>>Object-Oriented way.
>>
>>You might want to look into the concept known as indentation. It makes code
>>a lot more readable.
>>
>>Also any half decent C++ dev can wrap posix calls in classes and many do in
>>their day jobs so you're hardly breaking knew ground here despite what you
>>seem to think.
>
>i.e., in the fine Usenet tradition:
>
> If you don't have anything nice to say, come sit by me and post it to
>Usenet.

So no criticism allowed? Only say nicey wicey things to each other, perhaps
while hugging bunny wunnies and singing kumbaya?

Re: libwy v0.68.3 is reased.

<20230808090720.269@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10818&group=comp.unix.programmer#10818

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 16:13:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <20230808090720.269@kylheku.com>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
<uasq7q$39np6$1@dont-email.me>
<aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Aug 2023 16:13:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e64aa5a28c0801679f7444cde71de51";
logging-data="3647841"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uF0TPlV+xqdBVUdUdIRbEp5gYC1JcCM4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:0OGEMIGRPVtsf6IfxiIB+jxXJnM=
 by: Kaz Kylheku - Tue, 8 Aug 2023 16:13 UTC

On 2023-08-08, wij <wyniijj5@gmail.com> wrote:
> On Tuesday, August 8, 2023 at 3:18:24 PM UTC+8, Mut...@dastardlyhq.com wrote:
>> On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)
>> wij <wyni...@gmail.com> wrote:
>> >libwy https://sourceforge.net/projects/cscall/files/latest/download
>> >is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), provides
>> >basic 'system objects' for C++ aprogramers to program in Object-Oriented way.
>> You might want to look into the concept known as indentation. It makes code
>> a lot more readable.
>
> Show us an example!

https://sourceforge.net/projects/cscall/files/libwy/

Scroll to bottom:

+--------+
| Goal |
+--------+
This library is intended a widely reusable C++ library.

^^^^ this is indentation

Reusableness means:

[...]

3. Strict(precise) definition and necessity. (systemize problems in
the way)

^^^ this is more indentation, a variety of "hanging indentation".

Re: libwy v0.68.3 is reased.

<20230808091353.180@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10819&group=comp.unix.programmer#10819

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 16:33:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20230808091353.180@kylheku.com>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
Injection-Date: Tue, 8 Aug 2023 16:33:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e64aa5a28c0801679f7444cde71de51";
logging-data="3657633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ZghZGt/SYyP+Ar6K2zFM5HsOIH6mTWWA="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Ubr7rthY+jK+VqO3okWFq86x8KE=
 by: Kaz Kylheku - Tue, 8 Aug 2023 16:33 UTC

On 2023-08-07, wij <wyniijj5@gmail.com> wrote:
> if((r=Wy::access(fname,F_OK))!=Ok) { // showcase, this check is not necessary

Note that the access function behaves in a special way in setuid
programs, and is intended for that.

It answers the question, "would the original, non-privileged user
(the real user ID) be able to perform this access?"

There is no reason to ever use the access function, in a program not
intended for setuid operation.

Normally, you just try an operation and check for failure (such as
permissions).

The problem that it helps solve is that a setuid root process can just
blast through permission checks; e.g. overwrite your write-protected
file. Or show user A a file of user B they are not supposed to see.

Even the F_OK existence check is intended for this. It's not for
checking whether the file actually exists or not, but whether the
real user ID is allowed to know the existence of the file.

To a setuid root program, the file "/root/.dead.letter" exists.
But, I think, according to access("/root/.dead.letter", F_OK),
it doesn't. The real user ID has no read access to the /root
directory and so has no way of knowing whether such a file exists;
F_OK should follow that.

To answer the question "do I have this kind of access to this file,
using my effective privileges", you need to write your own function.
access will work if the real and effective user IDs happen to be
the same.

Also note that using the access function encourages TOCtoTOU bugs,
and POSIX itself says that:

"Use of these functions [access, faccessat] is discouraged since by the
time the returned information is acted upon, it is out-of-date."

Re: libwy v0.68.3 is reased.

<20230808100848.608@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10820&group=comp.unix.programmer#10820

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 8 Aug 2023 17:18:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <20230808100848.608@kylheku.com>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
<uasq7q$39np6$1@dont-email.me>
<aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
<uatoad$3f7de$1@dont-email.me>
Injection-Date: Tue, 8 Aug 2023 17:18:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e64aa5a28c0801679f7444cde71de51";
logging-data="3665706"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19b0k0cqecXATz3SCVePSegdNZ+TwK8yIk="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:64TBF74kjBTNDaQqg0axXBxGcDg=
 by: Kaz Kylheku - Tue, 8 Aug 2023 17:18 UTC

On 2023-08-08, Muttley@dastardlyhq.com <Muttley@dastardlyhq.com> wrote:
> On Tue, 8 Aug 2023 05:43:33 -0700 (PDT)
> wij <wyniijj5@gmail.com> wrote:
>>On Tuesday, August 8, 2023 at 3:18:24=E2=80=AFPM UTC+8, Mut...@dastardlyhq.=
>>com wrote:
>>> On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)=20
>>> wij <wyni...@gmail.com> wrote:=20
>>> >libwy https://sourceforge.net/projects/cscall/files/latest/download=20
>>> >is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), pr=
>>ovides=20
>>> >basic 'system objects' for C++ aprogramers to program in Object-Oriented=
>> way.
>>> You might want to look into the concept known as indentation. It makes co=
>>de=20
>>> a lot more readable.
>>=20
>> Show us an example!
>
> If you don't understand indentation there's little point showing you. A 3
> year old could grasp the concept.

The code in libwy is indented. He has documentation in the form of
numerous man pages, and there are test cases.

It doesn't compile for me; the ./configure script runs, but then
when running make, there are C++ errors.

The LGPL license of this library is a problem because some modules
consist of C++ inline functions. If anyone uses these inline functions,
their own license must be GPL-compatible and their program as a whole
has to be released under the GPL or LGPL.

In my experience with this sort of thing is that it's easier to roll
what you need than figuring out something like this.

It saves you a bit of typing that it's already written, but
you're going to have to own the code all the same: debug it yourself,
maintain it yourself.

There has to be a compelling reason, like the thing is the best of its
kind, widely used. Nobody is going to switch to a random, obscure C++
library you've never heard of, let alone one with licensing issues.

E.g. if I want an epoll wrapper or semaphore wrapper in C++, I can just
spend one hour making it myself, and not deal with this third party
stuff that I would have to maintain as if it were my own anyway--but
have to deal with its naming conventions, formatting, and other
stylistic and design decisions that are not mine.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: libwy v0.68.3 is reased.

<c977dcbd-e60f-4c1b-ac99-06794bca0affn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10821&group=comp.unix.programmer#10821

  copy link   Newsgroups: comp.unix.programmer
X-Received: by 2002:ae9:df85:0:b0:768:3e5f:a3c3 with SMTP id t127-20020ae9df85000000b007683e5fa3c3mr23910qkf.14.1691543707350;
Tue, 08 Aug 2023 18:15:07 -0700 (PDT)
X-Received: by 2002:a05:6870:d882:b0:1bb:756f:97a4 with SMTP id
dv2-20020a056870d88200b001bb756f97a4mr395814oab.9.1691543706955; Tue, 08 Aug
2023 18:15:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.programmer
Date: Tue, 8 Aug 2023 18:15:06 -0700 (PDT)
In-Reply-To: <20230808100848.608@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=124.218.76.41; posting-account=0Ek0TQoAAAAS0oceh95IuNV59QuIWNeN
NNTP-Posting-Host: 124.218.76.41
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
<uasq7q$39np6$1@dont-email.me> <aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
<uatoad$3f7de$1@dont-email.me> <20230808100848.608@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c977dcbd-e60f-4c1b-ac99-06794bca0affn@googlegroups.com>
Subject: Re: libwy v0.68.3 is reased.
From: wynii...@gmail.com (wij)
Injection-Date: Wed, 09 Aug 2023 01:15:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5424
 by: wij - Wed, 9 Aug 2023 01:15 UTC

On Wednesday, August 9, 2023 at 1:18:50 AM UTC+8, Kaz Kylheku wrote:
> On 2023-08-08, Mut...@dastardlyhq.com <Mut...@dastardlyhq.com> wrote:
> > On Tue, 8 Aug 2023 05:43:33 -0700 (PDT)
> > wij <wyni...@gmail.com> wrote:
> >>On Tuesday, August 8, 2023 at 3:18:24=E2=80=AFPM UTC+8, Mut...@dastardlyhq.=
> >>com wrote:
> >>> On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)=20
> >>> wij <wyni...@gmail.com> wrote:=20
> >>> >libwy https://sourceforge.net/projects/cscall/files/latest/download=20
> >>> >is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), pr=
> >>ovides=20
> >>> >basic 'system objects' for C++ aprogramers to program in Object-Oriented=
> >> way.
> >>> You might want to look into the concept known as indentation. It makes co=
> >>de=20
> >>> a lot more readable.
> >>=20
> >> Show us an example!
> >
> > If you don't understand indentation there's little point showing you. A 3
> > year old could grasp the concept.
> The code in libwy is indented. He has documentation in the form of
> numerous man pages, and there are test cases.
>
> It doesn't compile for me; the ./configure script runs, but then
> when running make, there are C++ errors.
What kind of compiling errors?
The current libwy just tested on my machine. I am tire to test more in current stage of development.

> The LGPL license of this library is a problem because some modules
> consist of C++ inline functions. If anyone uses these inline functions,
> their own license must be GPL-compatible and their program as a whole
> has to be released under the GPL or LGPL.

I don't think inline functions are an issue, very weak in the court.
Anyway, I was intended copyright libwy Public Domain, but not sure it will do.

> In my experience with this sort of thing is that it's easier to roll
> what you need than figuring out something like this.

If you mean std::string,vector,list,unique_ptr,.... I can't agree more, they are trivial to me.

> It saves you a bit of typing that it's already written, but
> you're going to have to own the code all the same: debug it yourself,
> maintain it yourself.
>
> There has to be a compelling reason, like the thing is the best of its
> kind, widely used. Nobody is going to switch to a random, obscure C++
> library you've never heard of, let alone one with licensing issues.
>
> E.g. if I want an epoll wrapper or semaphore wrapper in C++, I can just
> spend one hour making it myself, and not deal with this third party
> stuff that I would have to maintain as if it were my own anyway--but
> have to deal with its naming conventions, formatting, and other
> stylistic and design decisions that are not mine.

Can C++ programmers spend several months or several years for such libraries?
I would say not likely. I've considered the same for the 20 years about the
'too easy' sort of things of the seemingly trivial 'wrapper' design. But the
true thing is far from so.
For a rough and simple summary, the API being looking like a thin wrapper is
DELIBERATE, so little burden is added for users (as you can know it and use it
just by a look). There are 'concept' in Unix-like OS and the POSIX API that is
invisible (many things need experience to understand) and no good to hide as
would be done in normal 'advanced' libraries, see ClassGuidelines.txt in /doc
directory for more details (REAME.TXT is the 20 years old original document,
I tried as possible not to modify it so I can evaluate the whole thing of the
project).

Yes, in some cases, serious applications will always want to implement their own class
or function. This is explicitly allowed and should be simple as doc'd in libwy library guidelines.

> --
> TXR Programming Language: http://nongnu.org/txr
> Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
> Mastodon: @Kazi...@mstdn.ca

Re: libwy v0.68.3 is reased.

<20230808182535.472@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10822&group=comp.unix.programmer#10822

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Wed, 9 Aug 2023 01:33:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <20230808182535.472@kylheku.com>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
<uasq7q$39np6$1@dont-email.me>
<aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
<uatoad$3f7de$1@dont-email.me> <20230808100848.608@kylheku.com>
<c977dcbd-e60f-4c1b-ac99-06794bca0affn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Aug 2023 01:33:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d6295b22c3d59b763dd1a159df959743";
logging-data="3819032"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KMEoQaFUVITQRvrqNecKS//X/5BaOGHc="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:3K3w6/ucW8kjeN+ruTxUi+mKU08=
 by: Kaz Kylheku - Wed, 9 Aug 2023 01:33 UTC

On 2023-08-09, wij <wyniijj5@gmail.com> wrote:
> On Wednesday, August 9, 2023 at 1:18:50 AM UTC+8, Kaz Kylheku wrote:
>> On 2023-08-08, Mut...@dastardlyhq.com <Mut...@dastardlyhq.com> wrote:
>> > On Tue, 8 Aug 2023 05:43:33 -0700 (PDT)
>> > wij <wyni...@gmail.com> wrote:
>> >>On Tuesday, August 8, 2023 at 3:18:24=E2=80=AFPM UTC+8, Mut...@dastardlyhq.=
>> >>com wrote:
>> >>> On Mon, 7 Aug 2023 13:48:13 -0700 (PDT)=20
>> >>> wij <wyni...@gmail.com> wrote:=20
>> >>> >libwy https://sourceforge.net/projects/cscall/files/latest/download=20
>> >>> >is based on GNU-Clib/syscall (mostly POSIX calls, on Linux machines), pr=
>> >>ovides=20
>> >>> >basic 'system objects' for C++ aprogramers to program in Object-Oriented=
>> >> way.
>> >>> You might want to look into the concept known as indentation. It makes co=
>> >>de=20
>> >>> a lot more readable.
>> >>=20
>> >> Show us an example!
>> >
>> > If you don't understand indentation there's little point showing you. A 3
>> > year old could grasp the concept.
>> The code in libwy is indented. He has documentation in the form of
>> numerous man pages, and there are test cases.
>>
>> It doesn't compile for me; the ./configure script runs, but then
>> when running make, there are C++ errors.
>
> What kind of compiling errors?

C++ compiling errors on g++ 7.5.0 on a Ubuntu 18 box. Like
ambigous overload resolution and such.

Maybe you are relying on newer g++. That's probably a bad idea; if
you are not doing anything "earth shattering", stick to old C++.

Or, possibly, you only compiled your code 64 bit? Changes in the
integer types from one platform to another could cause plausibly those
kinds of errors.

I tried compiling for 32 bit x86, which is losing popularity; but there
are lots of embedded 32 bit systems, like ARM. Most of the audience for
your kind of library is doing embedded programming for 32 bit targets.

> I don't think inline functions are an issue, very weak in the court.

So you're preparing to go to court over someone the LGPL violation of
someone using your inline functions? But promise to to defend them
only weakly? :)

> Anyway, I was intended copyright libwy Public Domain, but not sure it will do.

Slapping a LGPL on something is a bad way of showing the intent to
go to Public Domain, ha!

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: libwy v0.68.3 is reased.

<871qgdotrw.fsf@nosuchdomain.example.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10823&group=comp.unix.programmer#10823

  copy link   Newsgroups: comp.unix.programmer
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.unix.programmer
Subject: Re: libwy v0.68.3 is reased.
Date: Tue, 08 Aug 2023 19:04:51 -0700
Organization: None to speak of
Lines: 16
Message-ID: <871qgdotrw.fsf@nosuchdomain.example.com>
References: <93a16247-a928-406b-964c-31cec5c499fdn@googlegroups.com>
<uasq7q$39np6$1@dont-email.me>
<aa686122-7be7-423c-8f46-74df63230d0en@googlegroups.com>
<uatoad$3f7de$1@dont-email.me> <20230808100848.608@kylheku.com>
<c977dcbd-e60f-4c1b-ac99-06794bca0affn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="913a52d54f1fb8cef77698b79d9b2607";
logging-data="3933056"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6lM4dmAt9TOwwpVQluWh1"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:vSdNU1ASbhsJvZ18MAFQBl5d/88=
sha1:rywC0bNvz6Mezq6oxikboVMelEw=
 by: Keith Thompson - Wed, 9 Aug 2023 02:04 UTC

wij <wyniijj5@gmail.com> writes:
[...]
> I don't think inline functions are an issue, very weak in the court.
> Anyway, I was intended copyright libwy Public Domain, but not sure it will do.
[...]

If you're considering releasing it to the public domain, you should do
some research first. In particular, public domain means specifically
that there is no copyright. Some jurisdictions might not recognize it.

SQLite3 is public domain. Take a look at how they do it.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor