Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <20250320140817.93@kylheku.com>
Deutsch   English   Français   Italiano  
<20250320140817.93@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Thu, 20 Mar 2025 21:10:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20250320140817.93@kylheku.com>
References: <vrd77d$3nvtf$2@dont-email.me> <868qp1ra5f.fsf@linuxsc.com>
 <vrdhok$47cb$2@dont-email.me> <20250319115550.0000676f@yahoo.com>
 <vreuj1$1asii$4@dont-email.me> <vreve4$19klp$2@dont-email.me>
 <20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com>
 <vrh1br$35029$2@dont-email.me> <LRUCP.2$541.0@fx47.iad>
 <vrh71t$3be42$1@dont-email.me> <vrh9vh$3ev9o$1@dont-email.me>
 <vrhct4$3frk8$2@dont-email.me> <20250320204642.0000423a@yahoo.com>
 <vrhphb$3s62l$1@dont-email.me> <20250320125254.744@kylheku.com>
 <20250320225709.00004380@yahoo.com>
Injection-Date: Thu, 20 Mar 2025 22:10:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="6038a5816530df40adef6c1131a03387";
	logging-data="79248"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19pXuj6LmwPateXSs5Gkk5jABhE9vPJszU="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:GhJgFQxt/QGSP9BSzqUtrInakdY=
Bytes: 2465

On 2025-03-20, Michael S <already5chosen@yahoo.com> wrote:
> On Thu, 20 Mar 2025 19:58:37 -0000 (UTC)
> Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
>> 
>> It's an embarrassing blemish on Rust that they made their principal
>> integer types like this; it makes all Rust code look idiotically
>> hardware dependent.  You can't code an abstract algorithm out of
>> Sedgewick, Knuth or Cormen in Rust without peppering the code with
>> distracting 32's and 64's.
>> 
>
> If size suffixes make you nervous, Rust has equivalents of size_t and
> ptrdiff_t. Named, respectively, usize and isize.
> But you probably know it.

I do, and I've seen code using size and usize for quantities that are
not sizes of any kind. While it's better than a hardware depenendcy
like i64, it's terrible naming.  Make an alias called "int"
for "size" and you're there.

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