News for hackers. Stuff that matters.
Re:007, a small experimental language with a license to macro by masak on Sunday October 04, 2015 @10:38AM (#10327631)
Author here. Thanks for all the kind words. README files are important, and I worked quite a bit on this one. Had some fun writing it.

A quick summary of the language itself: I felt I needed a smaller language than Perl 6 to "think" in as I mapped out exactly what we want from macros. If you're curious about the latest shape of that thinking process, you'll want to read https://gist.github.com/masak/13210c51f034f931af0c .

Implementing 007 has been a fun thing, and largely easier than I thought. Mostly bottlenecked by available tuits. Somewhat surprisingly, I found it much tougher going to implement user-defined operators than to implement macros. (But now that we have both, you can also haz custom operator macros!)

Next up, I plan to use 007 to map out as much of the terrain as possible covered by that gist above. That is, I want 007 to get synthetic Qtrees, really good handling of hygiene and lexical scoping, statement macros, maybe multis if I feel it's worth the trouble, introspection of Qtrees, and visitor macros.

Re:007, a small experimental language with a license to macro by mdcox on Saturday October 03, 2015 @09:35PM (#10326047)
For those interested in seeing the language, the README has a link to the tutorial ( http://masak.github.io/007/ ) hidden at the very bottom of the (highly entertaining) narrative.
Re:007, a small experimental language with a license to macro by akkartik on Saturday October 03, 2015 @10:46PM (#10326221)
Aw c'mon, it was a gripping read until the end and then.. no unquote?!
Re:007, a small experimental language with a license to macro by masak on Sunday October 04, 2015 @10:46AM (#10327659)
Oh, we'll get unquotes, don't worry. It's more a question of not-yet-implemented than anything else.

Here I might as well ask HN what syntax I should go with for unquotes in 007. In Perl 6, unquotes are written as three nested braces: {{{$ast}}}

Almost no-one is happy with that syntax. It manages to be distinctive (and can be easily syntax-highlighted, too) but pretty it ain't.

The difficulty of finding something better is that it has to be orthogonal to basically all other syntax in the language. And that's a challenge in Perl. :) People keep proposing Unicode sigils and stuff, but I haven't seen something I like yet.

Re:007, a small experimental language with a license to macro by akhilcacharya on Saturday October 03, 2015 @11:41PM (#10326358)
Of all movies to quote, he picks Never Say Never Again...
Re:007, a small experimental language with a license to macro by raimue on Sunday October 04, 2015 @08:14AM (#10327317)
I have to admit I did not even look at the language itself, the README made me upvote this.
Re:007, a small experimental language with a license to macro by mappu on Saturday October 03, 2015 @10:34PM (#10326184)
Definitely more engaging than the usual "made with love" bootstrap website.
Re:007, a small experimental language with a license to macro by dropit_sphere on Saturday October 03, 2015 @10:26PM (#10326167)
That README was amazing.
Re:007, a small experimental language with a license to macro by perlgeek on Sunday October 04, 2015 @02:18AM (#10326683)
Another project with an awesome README by the same author: https://github.com/masak/ufo
Re:007, a small experimental language with a license to macro by exabrial on Sunday October 04, 2015 @01:48AM (#10326635)
Considerably.
Re:007, a small experimental language with a license to macro by crocal on Sunday October 04, 2015 @09:03AM (#10327418)
I don't understand a clue of what this macro thing is, but let's upvote this and every comment made by principle.
Re:007, a small experimental language with a license to macro by i336_ on Sunday October 04, 2015 @08:37AM (#10327362)
Can confirm, this is how READMEs should be done.
Re:007, a small experimental language with a license to macro by igl on Sunday October 04, 2015 @11:09AM (#10327722)
First time i read a README from first to last word. Good job!
Re:007, a small experimental language with a license to macro by tmd83 on Sunday October 04, 2015 @09:37AM (#10327464)
It sure was something different to read :)