[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some fun with quines
[Thread Prev] | [Thread Next]
- Subject: Re: Some fun with quines
- From: Brian G <brian@xxxxxxxxxxxxxxxx>
- Date: Sat, 25 Oct 2025 07:48:22 -0700
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 10/24/25 15:08, Jussi Lahtinen wrote:
No idea if it is first, not sure it could be done with the IDE though.
Why not? Isn't the definition just a program that prints its own source?
Jussi
On the surface it would seem quite simple, but the IDE creates a complicated group of source files/support files
I guess in effect that is what the scripter does. Converts the script to a project and then executes it.
so take any IDE project directory and run the command gbs3 --convert-project ~/quine <destination directory>Which would create a single gambas script source file "quine.gbs", Now verify that all the details are in the contained source string and then
cat quine.gbs | gbs3 - | gbs3 - | gbs3 - > quine2.gbs ; diff quine.gbs quine2.gbs
I am not sure how complicated it would be to do this directly from the ide/project directory to achieve the same result, any ideas?
maybe something likegbx3 ~/myproject > ~/newproject ; gbx3 ~/newproject > ~/newerproject ; diff ~/myproject ~/newerprogect
I guess could be done but would get pretty big and complicated as you should not just copy directly ones self, it must create its self from code.
-- Never too old to have a little fun with our craft! ~~~~ Brian
Attachment:
OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
| Re: Some fun with quines | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
| Some fun with quines | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: Some fun with quines | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
| Re: Some fun with quines | Brian G <brian@xxxxxxxxxxxxxxxx> |
| Re: Some fun with quines | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |