Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #389824
| Path | csiph.com!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: transpiling to low level C |
| Date | Tue, 31 Dec 2024 04:57:58 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 51 |
| Message-ID | <86frm4au21.fsf@linuxsc.com> (permalink) |
| References | <vjlh19$8j4k$1@dont-email.me> <vjn9g5$n0vl$1@raubtier-asyl.eternal-september.org> <vjnhsq$oh1f$1@dont-email.me> <vjnq5s$pubt$1@dont-email.me> <vjpn29$17jub$1@dont-email.me> <86ikrdg6yq.fsf@linuxsc.com> <vk78it$77aa$1@dont-email.me> <vk8a0e$l8sq$1@paganini.bofh.team> <vk9q1p$oucu$1@dont-email.me> <vkb81n$14frj$1@dont-email.me> <20241223134008.000058cf@yahoo.com> <86frmedrof.fsf@linuxsc.com> <vkgk0u$2bh1n$1@dont-email.me> <865xn3d8lb.fsf@linuxsc.com> <vkplb6$g94b$1@dont-email.me> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Date | Tue, 31 Dec 2024 13:57:59 +0100 (CET) |
| Injection-Info | dont-email.me; posting-host="e21c1894af35152a2f46a9d8fe234703"; logging-data="2358940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/eNDKgnIl9acZZVVg+8Ss4U8y1BDwdjrU=" |
| User-Agent | Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) |
| Cancel-Lock | sha1:XtGLFTCXLYVoH9sMn66qhYBenYA= sha1:sx2yNBogm81p9ZdRFvlyUMHsKTo= |
| Xref | csiph.com comp.lang.c:389824 |
Show key headers only | View raw
BGB <cr88192@gmail.com> writes: > On 12/28/2024 11:24 AM, Tim Rentsch wrote: > >> BGB <cr88192@gmail.com> writes: >> >>> On 12/23/2024 3:18 PM, Tim Rentsch wrote: >>> >>>> Michael S <already5chosen@yahoo.com> writes: >>>> >>>>> On Mon, 23 Dec 2024 09:46:46 +0100 >>>>> David Brown <david.brown@hesbynett.no> wrote: >>>>> >>>>>> And Tim did not rule out using the standard library, >>>>> >>>>> Are you sure? >>>> >>>> I explicitly called out setjmp and longjmp as being excluded. >>>> Based on that, it's reasonable to infer the rest of the >>>> standard library is allowed. >>>> >>>> Furthermore I don't think it matters. Except for a very small >>>> set of functions -- eg, fopen, fgetc, fputc, malloc, free -- >>>> everything else in the standard library either isn't important >>>> for Turing Completeness or can be synthesized from the base >>>> set. The functionality of fprintf(), for example, can be >>>> implemented on top of fputc and non-library language features. >>> >>> If I were to choose a set of primitive functions, probably: >>> malloc/free and/or realloc >>> could define, say: >>> malloc(sz) => realloc(NULL, sz) >>> free(ptr) => realloc(ptr, 0) >>> Maybe _msize and _mtag/..., but this is non-standard. >>> With _msize, can implement realloc on top of malloc/free. >>> >>> For basic IO: >>> fopen, fclose, fseek, fread, fwrite >>> >>> printf could be implemented on top of vsnprintf and fputs >>> fputs can be implemented on top of fwrite (via strlen). >>> With a temporary buffer buffer being used for the printed string. >> >> Most of these aren't needed. I think everything can be >> done using only fopen, fclose, fgetc, fputc, and feof. > > If you only have fgetc and fputc, IO speeds are going to be > unacceptably slow for non-trivial file sizes. Once again, any performance concerns are not relevant to the matter under discussion.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-15 00:05 -0300
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-15 04:31 +0000
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-15 07:44 -0300
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-15 22:22 +0000
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-15 20:22 -0300
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-16 01:02 -0600
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-16 08:17 -0300
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-16 11:46 +0000
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-16 19:44 +0000
Re: transpiling to low level C Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-16 13:59 -0800
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-16 23:36 +0000
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-12-14 20:39 -0800
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-15 07:49 -0300
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-12-15 13:01 -0800
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-02-15 21:01 -0800
USENET and spam (Was: Re: transpiling to low level C) Salvador Mirzo <smirzo@example.com> - 2025-02-16 10:17 -0300
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-15 11:28 +0000
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-15 08:46 -0300
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-15 09:13 -0300
Re: transpiling to low level C Bonita Montero <Bonita.Montero@gmail.com> - 2024-12-15 20:08 +0100
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-15 21:32 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-15 17:53 -0600
Re: transpiling to low level C David Brown <david.brown@hesbynett.no> - 2024-12-16 10:36 +0100
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-16 08:21 -0300
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-17 01:03 -0600
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-17 14:55 -0300
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-17 14:59 -0300
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-17 15:16 -0300
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 18:37 +0000
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-17 16:07 -0300
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 19:42 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-18 12:51 -0600
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-18 16:43 -0300
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-18 18:27 -0600
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-19 00:35 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-18 23:46 -0600
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-19 11:27 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-19 14:36 -0600
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-20 05:10 -0600
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-23 02:08 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-23 05:15 -0600
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-17 13:07 -0600
Re: transpiling to low level C Thiago Adams <thiago.adams@gmail.com> - 2024-12-17 16:33 -0300
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-18 12:51 -0600
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-21 05:34 +0000
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-16 18:12 +0100
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-16 18:37 +0000
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-16 21:39 +0100
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-16 23:26 +0000
Re: transpiling to low level C Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-16 17:19 -0800
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-17 00:40 -0600
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 16:17 +0000
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-17 18:18 +0100
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-17 18:46 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 22:45 +0000
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-18 00:23 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-18 01:24 +0000
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-18 03:51 +0000
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-18 17:26 +0100
Re: transpiling to low level C Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-17 12:13 -0800
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-18 17:19 +0100
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-17 18:29 +0100
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-20 17:28 -0800
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-21 21:31 +0100
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-21 13:51 -0800
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 01:22 +0100
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-01-13 08:10 -0800
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-22 00:20 +0200
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 01:13 +0100
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-22 02:18 +0200
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 01:39 +0100
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-22 03:04 +0200
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 03:06 +0100
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-22 17:39 -0800
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-23 02:41 +0000
Re: transpiling to low level C David Brown <david.brown@hesbynett.no> - 2024-12-23 08:43 +0100
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-25 00:51 -0600
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-28 09:20 -0800
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-01-04 12:12 -0800
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-01-04 12:53 -0800
Re: transpiling to low level C Ben Bacarisse <ben@bsb.me.uk> - 2025-01-05 11:18 +0000
Re: transpiling to low level C James Kuyper <jameskuyper@alumni.caltech.edu> - 2025-01-05 12:04 -0500
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-01-07 21:38 -0800
Re: transpiling to low level C James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-12-21 22:17 -0500
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 19:51 +0100
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-06-06 11:50 -0700
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-23 13:02 -0800
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-12-23 13:25 -0800
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-12-23 15:50 -0800
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-22 06:01 +0000
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-22 11:22 +0200
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-22 11:35 +0000
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-22 10:38 -0800
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-22 19:44 +0000
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-01-04 11:18 -0800
Re: transpiling to low level C Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-22 20:41 +0100
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-23 00:20 +0200
Re: transpiling to low level C scott@slp53.sl.home (Scott Lurndal) - 2024-12-23 15:41 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-23 15:51 +0000
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-23 18:05 +0200
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-23 14:05 -0800
Re: transpiling to low level C antispam@fricas.org (Waldek Hebisch) - 2024-12-22 23:29 +0000
Re: transpiling to low level C David Brown <david.brown@hesbynett.no> - 2024-12-23 09:46 +0100
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-23 11:35 +0000
Re: transpiling to low level C David Brown <david.brown@hesbynett.no> - 2024-12-23 13:18 +0100
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-23 13:40 +0200
Re: transpiling to low level C David Brown <david.brown@hesbynett.no> - 2024-12-23 13:24 +0100
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-23 13:18 -0800
Re: transpiling to low level C Ben Bacarisse <ben@bsb.me.uk> - 2024-12-24 00:41 +0000
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-23 20:55 -0800
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-25 03:41 -0600
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-25 15:43 -0600
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-28 09:24 -0800
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-28 13:59 -0600
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-31 04:57 -0800
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2024-12-23 13:28 -0800
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-23 14:00 -0800
Re: transpiling to low level C Ben Bacarisse <ben@bsb.me.uk> - 2024-12-22 14:19 +0000
Re: transpiling to low level C Ben Bacarisse <ben@bsb.me.uk> - 2024-12-22 15:30 +0000
Re: transpiling to low level C Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-22 21:45 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-22 23:22 +0000
Re: transpiling to low level C Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-22 23:47 +0000
Re: transpiling to low level C Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-22 17:22 -0800
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-16 21:23 +0000
Re: transpiling to low level C Michael S <already5chosen@yahoo.com> - 2024-12-17 11:16 +0200
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 12:04 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-17 12:51 -0600
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-18 12:08 +0000
Re: transpiling to low level C BGB <cr88192@gmail.com> - 2024-12-18 12:50 -0600
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-18 23:37 +0000
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-17 19:40 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 19:45 +0000
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-17 22:25 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-17 22:55 +0000
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-18 05:55 +0000
Re: transpiling to low level C bart <bc@freeuk.com> - 2024-12-19 00:32 +0000
Re: transpiling to low level C Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-12-16 21:22 +0000
Re: transpiling to low level C Rosario19 <Ros@invalid.invalid> - 2024-12-26 13:16 +0100
Re: transpiling to low level C User One <noreply@invalid.com> - 2025-02-09 17:51 +0000
Re: transpiling to low level C "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2025-02-09 12:43 -0800
csiph-web