Path: ...!feed.opticnetworks.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S Newsgroups: comp.lang.c Subject: Re: Baby X is bor nagain Date: Tue, 18 Jun 2024 18:40:26 +0300 Organization: A noiseless patient Spider Lines: 19 Message-ID: <20240618184026.000046e1@yahoo.com> References: <20240613002933.000075c5@yahoo.com> <20240613174354.00005498@yahoo.com> <20240617002924.597@kylheku.com> <20240618115650.00006e3f@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Tue, 18 Jun 2024 17:40:09 +0200 (CEST) Injection-Info: dont-email.me; posting-host="2ea95bf76646807f6e09642cd46f1f88"; logging-data="1316568"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kPP3Q9//0UYk15GiWRhUNLOGWs+w+/dk=" Cancel-Lock: sha1:fFqXntQvz/gyM6i0a9/p+ezeWxo= X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32) Bytes: 2214 On Tue, 18 Jun 2024 14:36:40 +0200 David Brown wrote: > > Of course if you don't know Python, it will be slower to write it in > Python! > I don't know Python well, but it does not meant that I don't know it at all. Few minutes ago I took a look into docs and it seems that situation with writing binary data files with predefined layout is better than what I was suspecting. They have something called "Buffer Protocol". It allows to specify layout in declarative manner, similarly to C struct or may be even to Ada's records with representation clause. However attempt to read the doc page further down proved that my suspicion about steepness of the learning curve was not wrong :(