MountainWest JavaScript 2014 - Unshackling JavaScript with Macros by James Long

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=dxaCWhDFAl4



Duration: 33:08
698 views
8


By James Long

JavaScript is thriving, but the language itself is shackled to the long process of ECMA standardization and implementation in all engines. We have to wait many years for a simple feature like variable destructuring.
Macros allow you to extend a language with new syntax and semantics, just like you would build new APIs on top of native ones. There's no reason the language itself shouldn't be extensible, which allows it to grow naturally.
sweet.js is a project that implements robust hygienic macros for JavaScript. I will explain how this works and why it's such an exciting idea. I will show how you can already have ES6 variable destructuring, classes, fat arrow syntax, and more just with a few macros. In addition, you can use things like function tracing, native pattern matching, better assertions (logs contain the original expression), and much more. sweet.js macros track the original source location and generates sourcemaps, so debug away like normal! Let's unshackle ourselves from the the mire of standardization, and take control of the language we love!

Help us caption & translate this video!

http://amara.org/v/FG3C/




Other Videos By Confreaks


2014-04-18EmberConf 2014 Modeling the App Store and iTunes with Ember Data by Jeremy Mack
2014-04-18MountainWest JavaScript 2014 - Browser Package Management by Guy Bedford
2014-04-17MountainWest JavaScript 2014 - JavaScript SEO (The "Right" Way) by Jeff Whelpley
2014-04-17MountainWest JavaScript 2014 - Bringing the Web Back to the Blind by Ryan Florence
2014-04-17MountainWest JavaScript 2014 - JavaScript: A Gateway Language, or, Why You Should Teach Your Kids...
2014-04-17MountainWest JavaScript 2014 - And Benchmarks for All! by Alex Navasardyan
2014-04-17MountainWest JavaScript 2014 - Test-Driven Development of Ember.js Applications by Andy Pliszka
2014-04-17MountainWest JavaScript 2014 - Using TDD to Tame the Big Ball o' Mud by Brandon Hays
2014-04-17MountainWest JavaScript 2014 - Adding Even More Fun to Functional Programming With RXJS
2014-04-17MountainWest JavaScript 2014 - Asynchronous JavaScript at Netflix by Jafar Husain
2014-04-17MountainWest JavaScript 2014 - Unshackling JavaScript with Macros by James Long
2014-04-17Mountain West JavaScript 2014 - Be Predictable, Not Correct. by Pete Hunt
2014-04-13EmberConf 2014 Ember Components Transclude My Directives by John Paul
2014-04-13EmberConf 2014 Animations and Transitions in an Ember App by Edward Faulkner
2014-04-13EmberConf 2014 No more `grunt watch`: Modern build workflows with Broccoli
2014-04-13EmberConf 2014 Ember Data and the Way Forward by Igor Terzic
2014-04-12Kod.io 2014 - How to Get More Women in Tech in 5 Steps by Anika Lindtner
2014-04-12LA Ruby Conf 2014 - Go for the Rubyist by Mark Bates
2014-04-12LA Ruby Conf 2014 - Writing Games with Ruby by Mike Moore
2014-04-12LA Ruby Conf 2014 - Addressing sexism to build a better Ruby community
2014-04-12LA Ruby Conf 2014 - Write Small Things by Mark Menard