![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> I wonder what a quine in haskell would look like.
Not sure, but this is a particularly short quine, written in c:
http://www0.us.ioccc.org/1994/smr.c
http://www0.us.ioccc.org/1994/smr.hint
- Ricky
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Jim Henderson
Subject: Re: You thought 4K graphics demos were impressive?
Date: 28 Aug 2009 14:50:04
Message: <4a9826dc@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Fri, 28 Aug 2009 08:34:34 -0400, Warp wrote:
> Most self-replicating programs just replicate themselves, and that's
> it.
> No ascii art either.
One of the most impressive of these that I've ever seen was from the
IOCCC - I can't seem to find the right keywords, but it did something
similar to this but used more than one programming language (ie, #1 was
C, #2 was maybe Pascal, #3 was C again). Wish I could find it now.
Jim
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Warp
Subject: Re: You thought 4K graphics demos were impressive?
Date: 28 Aug 2009 14:56:43
Message: <4a98286b@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
triple_r <nomail@nomail> wrote:
> Not sure, but this is a particularly short quine, written in c:
> http://www0.us.ioccc.org/1994/smr.c
> http://www0.us.ioccc.org/1994/smr.hint
That program doesn't link. The linker cannot find the main() function.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Orchid XP v8
Subject: Re: You thought 4K graphics demos were impressive?
Date: 28 Aug 2009 15:11:35
Message: <4a982be7$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>> Most self-replicating programs just replicate themselves, and that's
>> it.
>> No ascii art either.
>
> One of the most impressive of these that I've ever seen was from the
> IOCCC - I can't seem to find the right keywords, but it did something
> similar to this but used more than one programming language (ie, #1 was
> C, #2 was maybe Pascal, #3 was C again). Wish I could find it now.
I found a program (I forget what it did) that was runnable in multiple
languages simultaneously...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Darren New
Subject: Re: You thought 4K graphics demos were impressive?
Date: 28 Aug 2009 18:24:43
Message: <4a98592b@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Orchid XP v8 wrote:
> I found a program (I forget what it did) that was runnable in multiple
> languages simultaneously...
I saw that. And not similar languages. Like, javascript, awk, Haskell, and
C++ or something.
The one I liked was the one that output its own source code in the shape of
a maze, and then solved itself.
--
Darren New, San Diego CA, USA (PST)
Understanding the structure of the universe
via religion is like understanding the
structure of computers via Tron.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Jim Henderson
Subject: Re: You thought 4K graphics demos were impressive?
Date: 28 Aug 2009 18:30:36
Message: <4a985a8c$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Fri, 28 Aug 2009 20:11:47 +0100, Orchid XP v8 wrote:
>>> Most self-replicating programs just replicate themselves, and that's
>>> it.
>>> No ascii art either.
>>
>> One of the most impressive of these that I've ever seen was from the
>> IOCCC - I can't seem to find the right keywords, but it did something
>> similar to this but used more than one programming language (ie, #1 was
>> C, #2 was maybe Pascal, #3 was C again). Wish I could find it now.
>
> I found a program (I forget what it did) that was runnable in multiple
> languages simultaneously...
Hmmm, maybe that's the one I am remembering - though I was sure there was
a code generator involved in it...
Jim
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> > http://www0.us.ioccc.org/1994/smr.c
> > http://www0.us.ioccc.org/1994/smr.hint
>
> That program doesn't link. The linker cannot find the main() function.
I think the hints said there was some tricky compile flags to force it to
compile. Turns out this is how you compile it:
cp smr.c smr
chmod +x smr
That doesn't seem valid, but I guess that's how you abuse rules and get them
changed.
- Ricky
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Darren New schrieb:
>> I found a program (I forget what it did) that was runnable in multiple
>> languages simultaneously...
>
> I saw that. And not similar languages. Like, javascript, awk, Haskell,
> and C++ or something.
I actually encountered something close to this in real-life work: It was
a file designed to be included in both a C program and a makefile, to
define certain constants.
And typically, pulling this off is even easier if the languages are
quite different, as the most typical way to do it is by having one
language see comments where the other one doesn't.
For instance, to fuse POV-Ray SDL and Lua code, you can use the
following pattern:
#version 3.7; /* (Lua ignores first line if it starts with "#")
-- Lua code goes here
--[=[ */
// POV-Ray SDL code goes here
// ]=]
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Warp
Subject: Re: You thought 4K graphics demos were impressive?
Date: 29 Aug 2009 06:38:17
Message: <4a990518@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
triple_r <nomail@nomail> wrote:
> cp smr.c smr
> chmod +x smr
I thought it was supposed to be the Internet Obfuscated *C* Code Contest.
That's not C.
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Warp
Subject: Re: You thought 4K graphics demos were impressive?
Date: 29 Aug 2009 06:41:20
Message: <4a9905d0@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Orchid XP v8 <voi### [at] dev null> wrote:
> I found a program (I forget what it did) that was runnable in multiple
> languages simultaneously...
A polyglot quine?
--
- Warp
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |