Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-toolchain, 2016-06-23

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:13 lizmat joined #perl6-toolchain
00:47 sivoais joined #perl6-toolchain
01:48 ilbot3 joined #perl6-toolchain
01:48 Topic for #perl6-toolchain is now Fire is step THREE! | https://github.com/perl6/toolchain-bikeshed | Channel logs: http://irclog.perlgeek.de/perl6-toolchain/today | useful prior art: https://metacpan.org/pod/CPAN::Meta::Spec
02:28 lizmat joined #perl6-toolchain
03:24 lizmat joined #perl6-toolchain
06:11 lizmat joined #perl6-toolchain
06:14 lizmat joined #perl6-toolchain
07:12 domidumont joined #perl6-toolchain
07:35 llfourn nine: If have something like this in a module: constant %schema = from-json "schema.json". Is there any way I could force a re-precomp and reload if I notice that schema.json has changed?
07:36 llfourn at runtime lets say
07:37 llfourn or the compile time of module using the module with the %schema constant
07:39 llfourn (err that should be from-json "schema.json".IO.slurp)
07:43 moritz sounds like a whacky approach
07:50 nine llfourn: I don't think I see any way. How would schema.json be updated anyway?
07:52 llfourn like every so often someone inserts something new into schema.json but infrequently enough that pre-compiling the result of parsing the file is worth it
07:52 llfourn err let's say manually with an editor
07:53 nine All your user would need to do then is touch the module's source file
07:54 llfourn yeah that works actually. I will try touching it via $?FILE if I notice it has changed :). Thanks.
07:56 nine llfourn: that's gonna be too late because your outdated precompiled version has already been loaded at that time.
07:56 nine llfourn: also this would only work for a not-installed module. You may not have write permission on the installed module's source.
07:56 llfourn ah yeah I was thinking that in EXPORT I could both re-parse it and touch it
07:57 llfourn the file won't change once it's installed but that's a good point
11:57 lizmat joined #perl6-toolchain
12:09 lizmat joined #perl6-toolchain
12:56 lizmat joined #perl6-toolchain
14:42 xdg joined #perl6-toolchain
14:54 b2gills joined #perl6-toolchain
15:20 [Coke] joined #perl6-toolchain
15:22 camelia joined #perl6-toolchain
15:24 [Coke] joined #perl6-toolchain
15:25 [Coke] joined #perl6-toolchain
18:16 domidumont joined #perl6-toolchain
18:49 FROGGS joined #perl6-toolchain
20:27 Cheery joined #perl6-toolchain
20:36 tadzik joined #perl6-toolchain

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary