… | |
… | |
4 | use strict; |
4 | use strict; |
5 | |
5 | |
6 | use Symbol; |
6 | use Symbol; |
7 | use List::Util; |
7 | use List::Util; |
8 | use Storable; |
8 | use Storable; |
|
|
9 | use Event; |
9 | use Opcode; |
10 | use Opcode; |
10 | use Safe; |
11 | use Safe; |
11 | use Safe::Hole; |
12 | use Safe::Hole; |
12 | |
13 | |
13 | use Coro 3.5 (); |
14 | use Coro 3.52 (); |
|
|
15 | use Coro::State; |
14 | use Coro::Event; |
16 | use Coro::Event; |
15 | use Coro::Timer; |
17 | use Coro::Timer; |
16 | use Coro::Signal; |
18 | use Coro::Signal; |
17 | use Coro::Semaphore; |
19 | use Coro::Semaphore; |
18 | use Coro::AIO; |
20 | use Coro::AIO; |
… | |
… | |
24 | use IO::AIO 2.32 (); |
26 | use IO::AIO 2.32 (); |
25 | use YAML::Syck (); |
27 | use YAML::Syck (); |
26 | use Time::HiRes; |
28 | use Time::HiRes; |
27 | use Compress::LZF; |
29 | use Compress::LZF; |
28 | |
30 | |
|
|
31 | Coro::State::cctx_stacksize 256000; # 1-2MB stack, for deep recursions in maze generator |
29 | Compress::LZF::sfreeze_cr { }; # prime Compress::LZF so it does not use require later |
32 | Compress::LZF::sfreeze_cr { }; # prime Compress::LZF so it does not use require later |
30 | |
|
|
31 | use Event; $Event::Eval = 1; # no idea why this is required, but it is |
33 | $Event::Eval = 1; # no idea why this is required, but it is |
32 | |
34 | |
33 | sub WF_AUTOCANCEL () { 1 } # automatically cancel this watcher on reload |
35 | sub WF_AUTOCANCEL () { 1 } # automatically cancel this watcher on reload |
34 | |
36 | |
35 | # work around bug in YAML::Syck - bad news for perl6, will it be as broken wrt. unicode? |
37 | # work around bug in YAML::Syck - bad news for perl6, will it be as broken wrt. unicode? |
36 | $YAML::Syck::ImplicitUnicode = 1; |
38 | $YAML::Syck::ImplicitUnicode = 1; |