Re: Fall of Roman Empire

2006-12-24 Thread Dan Bishop
Dec 20, 10:36 am, Felix Benner <[EMAIL PROTECTED]> wrote:

> static int main(int argc, char **argv) {
> char *god_name;
> if (argc)
> god_name = argv[1];
> else
> god_name = "YHWH";
> metaPower God = getGodByName(god_name);
> universe *everything = makeUniverse(God);
> while (simulatePhysics(everything));
> return 0;
> }

This won't work if there are no command-line arguments.  You mean if
(argc > 1).

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-23 Thread Hendrik van Rooyen
"Thomas Ploch" <[EMAIL PROTECTED]> wrote:


> Delaney, Timothy (Tim) wrote:
> > Hendrik van Rooyen wrote:
> > 
> >> naaah - you don't have to worry - for real control He uses assembler.
> >> with jump statements.
> >> so the loops are closed.
> >>
> >> Unfortunately its not open source.  Yet.
> > 
> > People are working hard on reverse-engineering it though. I hope no one
> > slaps them with a DMCA-style lawsuit ...
> > 
> > Tim Delaney
> 
> I heard Steve Ballmer recently made an offer to the pope for purchasing
> the license for an apple and an egg (Apfel und Ei).
> 

LOL! 

For the sake of those unfortunates who have no grounding in the Germanic
Languages - when you buy something for "an apple and an egg" or in Afrikaans
an "apple and an onion" - you are getting it excessively cheaply...

- Hendrik

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-23 Thread Thomas Ploch
Delaney, Timothy (Tim) wrote:
> Hendrik van Rooyen wrote:
> 
>> naaah - you don't have to worry - for real control He uses assembler.
>> with jump statements.
>> so the loops are closed.
>>
>> Unfortunately its not open source.  Yet.
> 
> People are working hard on reverse-engineering it though. I hope no one
> slaps them with a DMCA-style lawsuit ...
> 
> Tim Delaney

I heard Steve Ballmer recently made an offer to the pope for purchasing
the license for an apple and an egg (Apfel und Ei).

Thomas
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Fall of Roman Empire

2006-12-21 Thread Delaney, Timothy (Tim)
Hendrik van Rooyen wrote:

> naaah - you don't have to worry - for real control He uses assembler.
> with jump statements.
> so the loops are closed.
> 
> Unfortunately its not open source.  Yet.

People are working hard on reverse-engineering it though. I hope no one
slaps them with a DMCA-style lawsuit ...

Tim Delaney
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Hendrik van Rooyen
"Thomas Ploch" <[EMAIL PROTECTED]> wrote:


> Ben Finney schrieb:
> > "John Machin" <[EMAIL PROTECTED]> writes:
> > 
> >> Ben Finney wrote:
> >>
> >>>  \  "...one of the main causes of the fall of the Roman Empire was |
> >>>   `\that, lacking zero, they had no way to indicate successful |
> >>> _o__)   termination of their C programs."  -- Robert Firth |
> >> An amusing .sig, but it doesn't address the root cause: As they had no
> >> way of testing for the end of a string, in many cases successful
> >> termination of their C programs would have been unlikely.
> > 
> > Yet historically proven: the 'imperium' process they were running
> > terminated many centuries ago.
> > 
> > Or did it fork and exec a different process?
> > 
> 
> And what about the C-Programs running in the middle of the sun or earth
> making them spinning around or having nuclear reactions controlled. I
> hope they won't terminate in the near future with exit status != 0

naaah - you don't have to worry - for real control He uses assembler.
with jump statements.
so the loops are closed.

Unfortunately its not open source.  Yet.

- Hendrik

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Sion Arrowsmith
Ben Finney  <[EMAIL PROTECTED]> wrote:
>"John Machin" <[EMAIL PROTECTED]> writes:
>> Ben Finney wrote:
>> >  \  "...one of the main causes of the fall of the Roman Empire was |
>> >   `\that, lacking zero, they had no way to indicate successful |
>> > _o__)   termination of their C programs."  -- Robert Firth |
>> [ ... ] in many cases successful
>> termination of their C programs would have been unlikely.
>Yet historically proven: the 'imperium' process they were running
>terminated many centuries ago.
>
>Or did it fork and exec a different process?

Pretty much. Except they would argue that the child process
(Byzantium) never exec'd.

-- 
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |-- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Fall of Roman Empire

2006-12-20 Thread Georg Brandl
Felix Benner schrieb:

>> Sorry, somehow had to do this. Please slap me (i like it, don't worry)
>> if it's totally stupid
>> 
>> 
> 
> s totally stupid! You forgot the main function! (not to mention you
> returned universe instead of everything)
> 
> static int main(int argc, char **argv) {
>   char *god_name;
>   if (argc)
>   god_name = argv[1];
>   else
>   god_name = "YHWH";
>   metaPower God = getGodByName(god_name);
>   universe *everything = makeUniverse(God);
>   while (simulatePhysics(everything));
>   return 0;
> }

Well, I'd expect God to be more clever as to do it that way.
Could you imagine toying around with your universe in C?

No, it must have been

static PyObject *
create_universe(char *god_name) {
PyObject *universe;
universe = PyObject_New(universetype, PyUniverse_Type);
if (!universe) {
PyErr_SetString(PyExc_CreationError,
"Out of spacetime, or BDFL is too busy hacking "
"on web-based collaboration tools");
return NULL;
}
universe->un_god = PyGod_FromName(god_name);
universe->un_size = 0;
universe->un_expand_rate = COSMOLOGICAL_CONSTANT;
return universe;
}

Georg
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Thomas Ploch
Felix Benner schrieb:
> Thomas Ploch schrieb:
>>> Ben Finney schrieb:
 "John Machin" <[EMAIL PROTECTED]> writes:

> Ben Finney wrote:
>
>>  \  "...one of the main causes of the fall of the Roman Empire was |
>>   `\that, lacking zero, they had no way to indicate successful |
>> _o__)   termination of their C programs."  -- Robert Firth |
> An amusing .sig, but it doesn't address the root cause: As they had no
> way of testing for the end of a string, in many cases successful
> termination of their C programs would have been unlikely.
 Yet historically proven: the 'imperium' process they were running
 terminated many centuries ago.

 Or did it fork and exec a different process?

>> I rather stay with the metaphysics:
>>
>>
>> #include "metaphysics.h"
>>
>> static metaPower God;
>>
>> universe *makeUniverse(metaPower God)
>> {
>> if (!God) {
>> printf("Oops, no God available at the moment.Try again later!");
>> return NULL;
>> }
>>
>> universe *everything;
>>
>> if (!(everything = malloc(sizeof(universe {
>> God.mood = REALLY_BORED;
>> printf("God has no time to create a universe.");
>> return NULL;
>> } else {
>> return universe;
>> }
>> }
>>
>>
>>  :-)
>>
>> Sorry, somehow had to do this. Please slap me (i like it, don't worry)
>> if it's totally stupid
>>
>>
> 
> s totally stupid! You forgot the main function! (not to mention you
> returned universe instead of everything)

Argh, I need some serious slapping (but I changed everything and
universe, and just forgot to change it all the way through (...good that
I am _not_ God)

> static int main(int argc, char **argv) {
>   char *god_name;
>   if (argc)
>   god_name = argv[1];
>   else
>   god_name = "YHWH";
>   metaPower God = getGodByName(god_name);
>   universe *everything = makeUniverse(God);
>   while (simulatePhysics(everything));
>   return 0;
> }

You forgot to check if God wasn't too bored. ;-)

Thomas
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Felix Benner
Thomas Ploch schrieb:
>> Ben Finney schrieb:
>>> "John Machin" <[EMAIL PROTECTED]> writes:
>>>
 Ben Finney wrote:

>  \  "...one of the main causes of the fall of the Roman Empire was |
>   `\that, lacking zero, they had no way to indicate successful |
> _o__)   termination of their C programs."  -- Robert Firth |
 An amusing .sig, but it doesn't address the root cause: As they had no
 way of testing for the end of a string, in many cases successful
 termination of their C programs would have been unlikely.
>>> Yet historically proven: the 'imperium' process they were running
>>> terminated many centuries ago.
>>>
>>> Or did it fork and exec a different process?
>>>
> 
> I rather stay with the metaphysics:
> 
> 
> #include "metaphysics.h"
> 
> static metaPower God;
> 
> universe *makeUniverse(metaPower God)
> {
> if (!God) {
> printf("Oops, no God available at the moment.Try again later!");
> return NULL;
> }
> 
> universe *everything;
> 
> if (!(everything = malloc(sizeof(universe {
> God.mood = REALLY_BORED;
> printf("God has no time to create a universe.");
> return NULL;
> } else {
> return universe;
> }
> }
> 
> 
>  :-)
> 
> Sorry, somehow had to do this. Please slap me (i like it, don't worry)
> if it's totally stupid
> 
> 

s totally stupid! You forgot the main function! (not to mention you
returned universe instead of everything)

static int main(int argc, char **argv) {
char *god_name;
if (argc)
god_name = argv[1];
else
god_name = "YHWH";
metaPower God = getGodByName(god_name);
universe *everything = makeUniverse(God);
while (simulatePhysics(everything));
return 0;
}
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Thomas Ploch
> Ben Finney schrieb:
>> "John Machin" <[EMAIL PROTECTED]> writes:
>>
>>> Ben Finney wrote:
>>>
  \  "...one of the main causes of the fall of the Roman Empire was |
   `\that, lacking zero, they had no way to indicate successful |
 _o__)   termination of their C programs."  -- Robert Firth |
>>> An amusing .sig, but it doesn't address the root cause: As they had no
>>> way of testing for the end of a string, in many cases successful
>>> termination of their C programs would have been unlikely.
>> Yet historically proven: the 'imperium' process they were running
>> terminated many centuries ago.
>>
>> Or did it fork and exec a different process?
>>

I rather stay with the metaphysics:


#include "metaphysics.h"

static metaPower God;

universe *makeUniverse(metaPower God)
{
if (!God) {
printf("Oops, no God available at the moment.Try again later!");
return NULL;
}

universe *everything;

if (!(everything = malloc(sizeof(universe {
God.mood = REALLY_BORED;
printf("God has no time to create a universe.");
return NULL;
} else {
return universe;
}
}


 :-)

Sorry, somehow had to do this. Please slap me (i like it, don't worry)
if it's totally stupid


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Chris Mellon
On 12/20/06, Ben Finney <[EMAIL PROTECTED]> wrote:
> "John Machin" <[EMAIL PROTECTED]> writes:
>
> > Ben Finney wrote:
> >
> > >  \  "...one of the main causes of the fall of the Roman Empire was |
> > >   `\that, lacking zero, they had no way to indicate successful |
> > > _o__)   termination of their C programs."  -- Robert Firth |
> >
> > An amusing .sig, but it doesn't address the root cause: As they had no
> > way of testing for the end of a string, in many cases successful
> > termination of their C programs would have been unlikely.
>
> Yet historically proven: the 'imperium' process they were running
> terminated many centuries ago.
>
> Or did it fork and exec a different process?
>

According to the C standard (16AD version), access past the end of an
imperial era results in undefined behavior.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-20 Thread Thomas Ploch
Ben Finney schrieb:
> "John Machin" <[EMAIL PROTECTED]> writes:
> 
>> Ben Finney wrote:
>>
>>>  \  "...one of the main causes of the fall of the Roman Empire was |
>>>   `\that, lacking zero, they had no way to indicate successful |
>>> _o__)   termination of their C programs."  -- Robert Firth |
>> An amusing .sig, but it doesn't address the root cause: As they had no
>> way of testing for the end of a string, in many cases successful
>> termination of their C programs would have been unlikely.
> 
> Yet historically proven: the 'imperium' process they were running
> terminated many centuries ago.
> 
> Or did it fork and exec a different process?
> 

And what about the C-Programs running in the middle of the sun or earth
making them spinning around or having nuclear reactions controlled. I
hope they won't terminate in the near future with exit status != 0
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fall of Roman Empire

2006-12-19 Thread Ben Finney
"John Machin" <[EMAIL PROTECTED]> writes:

> Ben Finney wrote:
>
> >  \  "...one of the main causes of the fall of the Roman Empire was |
> >   `\that, lacking zero, they had no way to indicate successful |
> > _o__)   termination of their C programs."  -- Robert Firth |
>
> An amusing .sig, but it doesn't address the root cause: As they had no
> way of testing for the end of a string, in many cases successful
> termination of their C programs would have been unlikely.

Yet historically proven: the 'imperium' process they were running
terminated many centuries ago.

Or did it fork and exec a different process?

-- 
 \ "I wish there was a knob on the TV to turn up the intelligence. |
  `\  There's a knob called 'brightness' but it doesn't work."  -- |
_o__)  Eugene P. Gallagher |
Ben Finney

-- 
http://mail.python.org/mailman/listinfo/python-list