seven programming languages on one floppy (Developers)
> But most people aren't engineers writing their own OSes and compilers, so
> compatibility is important. I'm not saying throw everything away. BUT I'm
> sure it could be much smaller (and use less RAM) without being terminally
> slow. In other words, there's no reason to totally ditch C just to use more
> efficient code generation.
>
> In some ways, the answer is scripting languages (e.g. AWK) that (usually)
> don't generate (byte)code. One interpreter with ten scripts is probably
> smaller than ten compiled binaries. But that's not always feasible because
> of third-party libraries.
I agree with what you say about bloat, but I'm a bit confused about this proposal.
AWK is a different language. If you prefer that language fine, but you have now compared interpretation to compilation.
There are C interpreters. And the Forth thing you quoted said it compiled just in time too I think.
So - what's wrong with either a C interpreter or something that compiles your C program before running it?
Also what's wrong with putting the C library in either the OS or in a DLL like msvcrt.dll? That will produce a small executable too.
If you don't like even a few k for a hello world because of the executable overhead, then even that can be changed with a simpler executable format.
Here is a hello world that runs under PDOS-generic:
C:\devel\pdos\generic>hexdump pcomm.exe
000000 07016400 50000000 00000000 10000000 ..d.P...........
000010 00000000 00000000 20000000 00000000 ........ .......
000020 5589E583 EC148B45 088B5014 C7023000 U......E..P...0.
000030 0000A350 0000006A 00FF10C9 C3909090 ...P...j........
000040 68656C6C 6F2C2077 6F726C64 0A0089F6 hello, world....
000050 5589E583 EC0883E4 F083EC0C 68200000 U...........h ..
000060 00A15000 0000FF50 1031C0C9 C3909090 ..P....P.1......
000070 0E000000 04000004 13000000 08000004 ................
000080 3D000000 04000004 42000000 08000004 =.......B.......
144 bytes.
BFN. Paul.
Complete thread:
- seven programming languages on one floppy - Rugxulo, 19.03.2023, 03:16 (Developers)
- seven programming languages on one floppy - kerravon, 21.03.2023, 05:39
- seven programming languages on one floppy - Rugxulo, 25.03.2023, 04:12
- seven programming languages on one floppy - kerravon, 25.03.2023, 05:34
- seven programming languages on one floppy - Rugxulo, 27.03.2023, 09:25
- seven programming languages on one floppy - kerravon, 28.03.2023, 04:00
- seven programming languages on one floppy - Rugxulo, 28.03.2023, 12:29
- seven programming languages on one floppy - DosWorld, 03.04.2023, 12:03
- seven programming languages on one floppy - Rugxulo, 02.04.2023, 08:08
- seven programming languages on one floppy - kerravon, 03.04.2023, 03:04
- seven programming languages on one floppy - Rugxulo, 03.04.2023, 10:33
- seven programming languages on one floppy - kerravon, 03.04.2023, 10:55
- seven programming languages on one floppy - Rugxulo, 14.04.2023, 02:30
- seven programming languages on one floppy - DosWorld, 15.04.2023, 23:42
- seven programming languages on one floppy - kerravon, 26.05.2023, 02:17
- seven programming languages on one floppy - kerravon, 26.05.2023, 11:07
- seven programming languages on one floppy - DosWorld, 26.05.2023, 23:23
- seven programming languages on one floppy - kerravon, 31.05.2023, 17:36
- seven programming languages on one floppy - DosWorld, 02.06.2023, 23:07
- seven programming languages on one floppy - Rugxulo, 15.06.2023, 04:16
- seven programming languages on one floppy - DosWorld, 02.06.2023, 23:07
- seven programming languages on one floppy - kerravon, 31.05.2023, 17:36
- seven programming languages on one floppy - DosWorld, 16.04.2023, 00:32
- seven programming languages on one floppy - kerravon, 16.04.2023, 01:32
- seven programming languages on one floppy - Rugxulo, 14.01.2024, 10:00
- seven programming languages on one floppy - kerravon, 16.04.2023, 01:32
- seven programming languages on one floppy - Rugxulo, 14.04.2023, 02:30
- seven programming languages on one floppy - kerravon, 03.04.2023, 10:55
- seven programming languages on one floppy - marcov, 04.04.2023, 10:49
- seven programming languages on one floppy - Rugxulo, 03.04.2023, 10:33
- seven programming languages on one floppy - kerravon, 03.04.2023, 03:04
- seven programming languages on one floppy - Rugxulo, 10.04.2023, 06:57
- seven programming languages on one floppy - Rugxulo, 28.03.2023, 12:29
- seven programming languages on one floppy - kerravon, 28.03.2023, 04:00
- seven programming languages on one floppy - jhall, 27.03.2023, 17:56
- seven programming languages on one floppy - kerravon, 28.03.2023, 04:04
- seven programming languages on one floppy - Rugxulo, 27.03.2023, 09:25
- seven programming languages on one floppy - kerravon, 25.03.2023, 05:34
- seven programming languages on one floppy - Rugxulo, 25.03.2023, 04:12
- seven programming languages on one floppy - kerravon, 21.03.2023, 05:39