|
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 28 July 2015. |
|||
|
03:25
vendethiel joined
05:39
vendethiel joined
07:23
vendethiel joined
07:29
FROGGS joined
07:50
vendethiel joined
|
|||
| masak | er. woot! | 08:03 | |
| managed to pass the test simply by making assignments care more about identifiers (and their bound frames) | |||
| this was definitely a case of "I don't know what I'm doing, but let's take this to its inevitable conclusion and see if the tests pass" | 08:04 | ||
| I also had a couple of thoughts along the way: | 08:07 | ||
| (a) right now, .eval on a Q::Identifier takes care of doing reads on variables. but the code paths for doing writes on variables are scattered in various places (assignment, `my`, `constant`...) -- I think I'm going to attempt a refactor where I collect those code paths into a single one | 08:09 | ||
| (b) thinking ahead a bit to #119 ("just implement full assignment already"), we'll need to broaden reading/writing of identifiers to the same thing for "storage references" (what #118 calls "index paths") | 08:12 | ||
| we'll also need to start thinking in terms of "storage cells". these will be references not just by identifiers, but also by array elements and object values. | |||
|
08:33
pdcawley joined
12:14
Ven joined
|
|||
| Ven | o/ | 12:14 | |
| www.youtube.com/watch?v=4rJEBs_Nnaw | |||
| a perspective on Nim | 12:15 | ||
| showcases macros, templates, etc | |||
| masak saves the link | 12:56 | ||
| my current region is not compatible with YouTube :/ | |||
| FROGGS | I can help you there, just takes a few minutes | 13:07 | |
| masak | decent of you | 13:20 | |
| FROGGS | masak: froggs.de/OSCON%202015%20-%20Andrea...0p%5D.webm | 14:04 | |
| masak | FROGGS: thanks, got it. and more importantly, I can play it. \\o/ | 14:08 | |
| FROGGS | \\o/ | 14:10 | |
| Ven | yay :) | 14:41 | |
| you can mostly skip the non-template/macro-y bits | |||
| masak | I'll probably watch all of it :) | 14:59 | |
| FROGGS | masak: can I remove it from my server? | 15:02 | |
| Ven | cool :) | 15:05 | |
| masak | FROGGS: yep, all downloaded. thanks! | 15:06 | |
| FROGGS | danke | 15:07 | |
| masak | hm, "type system weakened for the meta-programming"... | 15:20 | |
| oh, but it seems to mean simply that type checking is suspended during a macro call | |||
| the `template` feature is pretty nice. | 15:43 | ||
| I think the `import threadpool` example shoots itself in the foot a little, by blocking on the result in sequential order in the second loop | 15:51 | ||
| ok, overall: my interest is piqued, and I have opened up the Nim documentation for templates and macros for later perusal | 15:57 | ||
| Ven | good :) | 15:58 | |
| yes, I was expecting the "weakened" part to pique your interest | |||
| masak | well, uh, 007 is currently all weakened in that sense | 16:00 | |
| bed & | 16:04 | ||
| Ven | it's weakened everywhere :P | 16:46 | |
|
19:28
vendethiel joined
23:47
vendethiel joined
|
|||