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 <v3jshc$3q731$1@dont-email.me>
Deutsch   English   Français   Italiano  
<v3jshc$3q731$1@dont-email.me>

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

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: xxd -i vs DIY Was: C23 thoughts and opinions
Date: Mon, 3 Jun 2024 07:49:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <v3jshc$3q731$1@dont-email.me>
References: <v2l828$18v7f$1@dont-email.me>
	<00297443-2fee-48d4-81a0-9ff6ae6481e4@gmail.com>
	<v2lji1$1bbcp$1@dont-email.me> <87msoh5uh6.fsf@nosuchdomain.example.com>
	<f08d2c9f-5c2e-495d-b0bd-3f71bd301432@gmail.com>
	<v2nbp4$1o9h6$1@dont-email.me> <v2ng4n$1p3o2$1@dont-email.me>
	<87y18047jk.fsf@nosuchdomain.example.com>
	<87msoe1xxo.fsf@nosuchdomain.example.com> <v2sh19$2rle2$2@dont-email.me>
	<87ikz11osy.fsf@nosuchdomain.example.com> <v2v59g$3cr0f$1@dont-email.me>
	<20240528144118.00002012@yahoo.com> <v34odg$kh7a$1@dont-email.me>
	<20240528185624.00002494@yahoo.com> <v359f1$nknu$1@dont-email.me>
	<20240528232315.00006a58@yahoo.com> <v35qrg$qhnf$1@dont-email.me>
	<20240529123852.000026e4@yahoo.com> <v37386$148la$1@dont-email.me>
	<20240529152325.000042e1@yahoo.com> <v37db5$15p5b$1@dont-email.me>
	<20240529183218.000027c2@yahoo.com> <v37pc5$186go$1@dont-email.me>
	<v383bp$19tqg$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 03 Jun 2024 09:49:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9e096ebffcd2a0af55f8dc29da216a8b";
	logging-data="4004961"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ByHs/KOGh+tTtWiWAKO/+"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:OPGrBrfb8a664tozJvBMqeBS0J8=
Bytes: 2324

On Wed, 29 May 2024 21:31:54 +0100, bart wrote:

> Conclusion: beating xxd is apparently not hard if even a scripting
> language can do so. I wonder what slows it down?

It’s written in a very stdio-dependent vanilla C style.

Have a look at the source for yourself. It’s part of the “vim” package on 
Debian and no doubt other distros. The xxd binary itself is built from a 
single source file of just some 1200 lines, and the hex-to-binary 
conversion is done in a function called “huntype” of just 133 lines.