Perl 6 - the future is here, just unevenly distributed

IRC log for #6macros, 2016-05-12

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:39 vendethiel joined #6macros
05:58 vendethiel- joined #6macros
13:54 vendethiel joined #6macros
17:11 vendethiel o/
17:12 vendethiel I'm currently implementing a lisp in perl to get a small taste of what it looks like
17:12 vendethiel (it's in Perl 5, here: https://github.com/vendethiel/simplist )
20:16 masak nice
20:17 masak no tests :/
20:21 vendethiel nope
20:22 vendethiel later :)
20:22 masak bah :)
20:24 vendethiel i do have a small integration test file
20:24 vendethiel ah, it's not there
20:24 vendethiel well, i'll do unit tests when i'm decided on an internal format
20:27 vendethiel i don't feel that big of a need to test the actual parsed formats in isolation because faux_combinator has its test suite
20:33 masak ok
20:36 vendethiel i also coded myself into a corner with that
20:40 vendethiel my "eval" functions (OO-style dispatch) strip off the structure, and just return a value (i.e. 3)
20:40 vendethiel which means implementing macros is gonna be complicated, zz
20:41 vendethiel (because I'd need to convert the array I'm getting from the macro back to an AST to eval it)
20:42 vendethiel (i have a few too many projects like that at the same time.. This interpreted lisp, a stack VM in Rust, and an alt-compiler in haskell...)
20:42 vendethiel I've never implemented macros though, so that's gonna be a fun exercise :)
20:43 masak :)
20:43 masak best of luck
20:43 vendethiel (or exercice? I can never get it right...)
20:46 vendethiel well, i'm sure it looks like a small feat through you -- and I'm not pretending it's gonna be complex either. It's just gonna be good for deeper understanding
20:48 vendethiel s/through/for/ (or from where you stand)
20:50 masak "exercise" :)
20:51 masak no, implementing macros is no small feat. ...it just happens to be easier than implementing custom operators ;)
20:51 masak though I do find that implementing macros is always... hm, opinionated
20:52 masak in the sense that either you make a lot of contingent decisions about how it all should work at that point, or the language has somehow already done it for you
20:56 * vendethiel nods
20:56 vendethiel the language i'm implementing certainly made its stand a few decades ago..:)
21:04 masak and so did Perl 6, more recently

| Channels | #6macros index | Today | | Search | Google Search | Plain-Text | summary