Live data from Hacker News

Self-replicating Python using ChatGPT

github.com

41–44 of 44 posts

Re: Self-replicating Python using ChatGPT

#41
Self-replicating programs aren't new, but using ChatGPT to do it is. However, although alluring in terms of imagination, the reality is that self-replicating programs typically end up being useless. They never seem to evolve to be useful unless by random accident, which is perhaps the goal, but even then that seems to be a rarity which never goes any further.

Re: Self-replicating Python using ChatGPT

#42

Wake me when it can write self-replicating groff macro(s). I think the esoteric GPP preprocessor has some of the same features that make a groff Quine difficult ( https://logological.com/gpp/ )

As an AI language model, I don't have access to a groff environment to test and validate the macro, but here is an example of a self-replicating groff macro: .de self-replicate '\" Self-replicating groff macro .nop .de replicated This is a replicated macro. .. .rm self-replicate .rm replicated .fp \&.self-replicate Explanation: This macro defines a macro called "self-replicate" that, when invoked, defines a new macro…

Doesn't work. The output is 66 lines of text, the default page length in nroff. 65 of them are zero-length ("blank") lines. One line says ".self-replicate".

I've tried several times, ChatGPT can't come up with a self-replicating nroff macro.

A file of 66 blank lines is a self-replicating nroff document. It just doesn't run anything, and therefore violates the usual quine/self-replicating program rules that prohibit mere copying of input to output:

$ cat cat2

certainly self-replicates, but misses solving the mysteries of self-replication.

Re: Self-replicating Python using ChatGPT

#43

Earlier quoted context omitted.

Don't people already give large percentages of their income to an organization that is supposed to provide services for the impoverished? How would giving another 10% solve poverty?

Please watch Beth's video, it's very good. Most governments aren't super focused on addressing poverty, in part because some don't consider it fair to directly lift people out of poverty, there is a taboo against giving, or because it's not in the common conscience that we should eradicate poverty as soon as we can. Some countries for example in Western Europe or elsewhere do have almost eliminated poverty, but it st…

No thanks
Post reply on HN