Create Your Own Programming Language (book)

Create Your Own Programming Language by Marc-André Cournoyer.

I love these quotes, and I think that LtU had its part in making programming languages the hot new thing to build up your online reputation:

The ultimate system to achieve every programmer’s dream.

Become the next Guido Van Rossum, Matz, Larry Wall or Rasmus Lerdorf by creating your own revolutionary programming language in a few days.

Impress your employer and peers with a résumé that says: I created my own programming language.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Because the world needs more

Because the world needs more knock-offs of Ruby and Python. ;-)

love sweet love?

I think the world does need more knock-offs of Ruby, Python, Lua, Smalltalk, and Scheme. And Forth. And ML. And on and on.

It's the only way kids learn and it creates a "generative environment" in which new PL ideas can come into being. It's a good practice for programmers to feel at least a little bit empowered and competent at all levels of their software stacks.

I'm a big fan of free (as in libre) software but I sometimes think about righting a utopian science fiction novel about a future time when, by social compact, all of the computing systems engineers over the age of 30 start refusing to give anyone younger any copies of source code once per decade. Each upcoming generation has to rebuild everything solely on the basis of teachings and the freedom to use already built computing systems for bootstrapping purposes. As a result, this society has seen 150 years of steadily increasing quality and efficiency in their software systems. (Then, because there has to be some dramatic action, one generation of elders goes too far and injects a Thompson-style trojan ("On Trusting Trust") into the bootstrapping tools. The world economy collapses for a decade. There is a witch-hunt for the perpetrators who have great adventures while trying to stealthily correct their mistake. Peace and prosperity return thanks to a global-scale populist movement of New Luddites who will use computing but only mistrustfully and at arms length in an otherwise agrarian society. In the end, the young programmer protagonist "gets the girl" and scurries away to help tend a kelp farm and live happily ever after. The end.)

So, in conclusion, yes - more knock-offs of Ruby and Python, please.

-t

The second time as farce

The danger being of course that history's painful lessons aren't learned, and have to be repeated in every generation. I hear that some people are currently reinventing FEXPRs.

Don't you dare...

Hands off my FEXPRs, man! (Personally, I'm rather fond of them....) :-)

If they aren't doing fexprs

If they aren't doing fexprs exactly the same then it could be a world apart compared with previous incarnations of fexprs. http://lambda-the-ultimate.org/node/3640

Lessons learned?

I'm wondering if you cited that essay for some specific lesson(s) in it, or just generally (though in either case, thanks for giving me an excuse to reread it!). Of the lessons there, the two that catch my eye as particularly relevant to fexprs are  (1) dynamic scope is a bad idea — true in general, but especially important for fexprs because the single easiest way to make fexprs unmanageable is to make your Lisp dynamically scoped — and  (2) people can believe something fundamental for decades that isn't true, as with the belief that fexprs are inherently unmanageable, when the serious unmanageability comes from mixing them with certain other features like dynamic scope or non-local set!; or (of somewhat more recent vintage) the belief that fexprs can't have a nontrivial formal theory, when that depends on how the operational semantics is mapped onto a calculus.

Beat me to it

I year or two ago I outlined a book on this subject before opting to write a free online tutorial series instead, seeing how it's much less work for the same amount of income, i.e. 0. If I ever finish, it won't be freaking awesome, but you get what you pay for. Fortunately someone else is up to the task. At nearly $1 apiece, HTCYOFAPL's 44 PDF pages are surely jam-packed with valuable horizontal code and 140-character-or-less comments that get right to the point; as they say, brevity is the soul of wit. According to the table of contents, it covers Python indentation in 4 pages, Lex/Yacc in 3, Parsing Expressing Grammars in 1, Lisp in 1, bootstrapping in 1. All writers should aspire to be this succinct.

Is this for real or are we all victims of another Zed Shaw prank? :-)

Same here

I thought about doing the same thing. Of course my approach was from that of a total beginner in language design & implementation. Since I'm still learning myself, I was keeping notes on areas that I didn't grasp right away, and I ended up with a fairly good multi-chapter outline (and even did a first draft of the intro chapter + one of the chapters towards the end). But due to time constraints the project has been shelved temporarily. Plus I need to do a lot more reading so I don't give out wrong information accidentally (mostly need to find the correct terminology for what I'm trying to describe).

I take it back

I've been using CoffeeScript for a month or so, and it's pretty freaking awesome. Jeremy Ashkenas said he wrote that compiler (or 'transpiler') based on this unbelievable book. It's amazing what you can do with a good idea and a bit of succinct advice.

Too bad this book was marketed the way it was, as a blatantly overpriced and overhyped e-book rather than a blog series. Even before it came out, I had considered writing my own book(let) on basic parser/compiler implementation, probably as a free HTML/JS-based interactive tutorial (much like the CoffeeScript manual, actually). It's a no-brainer - the amount of money to be made writing about programming pales in comparison to a typical programmer's income.

This is the most bizarre

This is the most bizarre marketing of PL I've ever seen. Its like taking a pitch for learning PL, and putting it in a 60 second infomercial. Would have worked better if someone like Guy Steele was making the pitch.

I don't think this is

I don't think this is targeted for diehard language addicts with Ph.D.'s in Comp Sci. For people like you, I agree, Guy Steele is like Patches O'Houlihan sponsoring a dodgeball team in a Dodgeball tournament.

Most bizarre alright...

If the sample chapter is anything to go by then they aught to release an audio-book version read by Keanu Reeves and Alex Winter.

Not a good sign

And just to make sure you’re ready to use the template right away, we’re also including a screencast explaining the code.

...isn't that what the book is supposed to do?

It is a joke of course

Laughing my butt off. This is really great. I especially like the endorsement of the creator of "Coffeescript" ....

By the way, check out my language Babel-17. It has almost an interpreter in Java already :-)