6macros: discussing the finer points of Perl 6 macros, Qtrees, and how to stay sane | irclog: irclog.perlgeek.de/6macros/today
Set by moderator on 4 July 2015.
00:02 vendethiel joined 01:23 vendethiel joined 02:00 vendethiel joined 02:24 vendethiel joined 03:10 vendethiel joined 03:42 vendethiel joined 04:37 vendethiel joined 05:27 vendethiel joined 05:51 vendethiel joined 06:33 vendethiel joined 07:22 vendethiel joined 08:36 vendethiel joined 09:06 vendethiel joined 13:29 vendethiel joined 13:58 vendethiel joined 15:33 vendethiel joined 15:59 vendethiel joined 16:34 vendethiel joined 17:18 vendethiel joined 17:45 vendethiel joined 18:34 Ven joined
Ven I want to be able to do that at compile-time in perl6: 18:59
blog.mattbierner.com/stupid-templat...te-tetris/
:D
masak euhm. 19:00
not a priority, but noted :)
Ven oh, don't read that 19:04
it's just gonna hurt your eyes and your head...
but basically, what this does is....
you declare the "move" via -DUP (or so) + #ifdef UP in the code 19:05
then it writes the... state in a file.
yes. it generates C++ code, then it writes it to a file
and then #include it
so that the only "runtime" thing is printing the "board"
(+ printing the new state) 19:06
there's like... 10 lines of runtime