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