fanf: (Default)
[personal profile] fanf
Following a discussion about source code revision control systems, something fairly similar to the following conversation occurred...

iwj describes his CVS hack which allows you to move repositories around, and which will chase chains of moves.

fanf is reminded of a script that he wrote to trace routes through a network using `route get` to find the next hop then ssh to connect to the next hop then a Quine to transmit itself to the next hop where it then repeats the process. (You need a network based on BSD routers and you need root on all the machines. It is useful for networks with asymmetrical routing.)

mdw, who also likes Quines, says that he wrote a program that can turn any C program into a Quine.

iwj says that gcc should obviously have a --quine option to output its own source code for easier GPL conformance.

mdw says that Linux should similarly have /proc/source/.

sgt points out that /proc/include would actually be useful for compiling things, prompting brief amazement that Quines can have so many practical purposes.

iwj (slightly missing the point of Quines) suggests that this would cause modprobe to pull in the source code dynamically and eat your RAM.

fanf is reminded of an earlier discussion about LD_PRELOAD hacks (in which we agreed that a good way of discouraging programmers who are too enthusiastic about LD_PRELOAD is to explain to them how they can do a much better job with ptrace) and suggests that, as well as source code, Linux could export object code via .so files under /proc/.

everyone discusses how this would solve the problem of kernel vs. libc version skew, since libc could just dynamically link the kernel-dependent code from procfs. We debate whether Ulrich Drepper would have babies or kittens and whether this would lead to Core Wars being played in every process.

Date: 2007-02-22 23:26 (UTC)
simont: A picture of me in 2016 (Default)
From: [personal profile] simont
Actually, it was mdw who suggested /proc/source. What I pointed out was that the most useful bit of it would be /proc/include.

Date: 2007-02-24 18:27 (UTC)
From: [identity profile] lusercop.livejournal.com
Notable that on modern solaris, the libc is held within the kernel (and is, as with many things in Solaris, a magic mountpoint).

December 2025

S M T W T F S
 123456
78910111213
14151617181920
21222324 252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 2026-01-08 07:43
Powered by Dreamwidth Studios