> (Please correct me if this is the wrong list for my proposal.) Treasure Hunt for it:
http://www.cpan.org/ there is one, even if it is [EMAIL PROTECTED] > I was wonder if it would be possible / usefull to add a hibernation > functionality to the Perl 6 Language, possibly via a Module. > (but the core would have to provide the needed low level functions) Excellent, you want to contribute to the currently in early development Perl 6 implementation. http://dev.perl.org It would be useful, but not possible. > "Hibernate" would simply be a funny kind of fork. > The "child process" is not created instantly, instead the > user has to start the "child process" at a later time, using > some kind of binary image created at hibernation time. Perl 6's compiler will be able to output Parrot bytecode. > The binary image should represent the interpreters > internal state and the compiled bytecode, as straight > as possible. Internal state is a problem. > example: > > if (my $binary = hibernate) { > print "Feelin sleepy... Good Night."; > save_to_disk($binary, "~/myscript.pl.sleeps"); > exit; > } else { > print "Im awake !"; > } > > # perl myscript.pl > Feelin sleepy... Good Night. > > # perl myscript.pl.sleeps > Im awake ! > > > Of course, the delicate things like open file handles, permissions... would > have to be handled by a supporting Module. And the problem, some process will have to look after all the open filehandles, sockets etc. Perhaps by hibernating these will time out, which is bad. Also, what about scripts that are dependent on signals - you could hibernate the script before it was due to catch a signal, which is painful to debug. Signals are already a nightmare as it is, thank you. IMSOHO this is impossible to implement sucessfully, without turning Perl into a non-portable, complex and slow language. Ask the experts, not the beginners list! Jonathan Paton ===== s''-//--/\\///|-\/\|--\--/-\-/\-//\-|/\\\|/\///|-\--\\\\', s''/-\\\/|///|-|/|/--\--/--//\|\/\||/|/-/\\\-/\///|-\-\-', y'|\/-'3210',$_=join qq\\,map{s|2|10|||s|3|11|||s|^|0|;$_} m|.|g;map{print chr unpack'N',pack'B32','0'x24 .$_}/.{8}/g __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]