Comments (11)
👍
from efcl.github.io.
astベースのビルドツール公開されてた
from efcl.github.io.
Gruntとgulpは結局パースするのは変わらない。
asterはASTを中心に処理を回す。
asterはJavaScript ASTを処理するビルドツール。
GruntやGulp等はtaskごとにパースと生成を繰り返すため非効率な部分がある。
asterはASTに対して変換の処理をパイプラインで行うため無駄な処理が減る。
現時点の問題はそれぞれのモジュールが現時点だと、ASTに対する処理をpublicにしてなかったり、falafelみたいなやつはそもそもASTを変換してないから、使えるところは限られる感じ。
esnext はこれをやってるからそれを汎用化したものな感じ。
後、もう一つの問題はパースで依存してるモジュールがesprima,esprima-fb,acornと微妙に違うモジュールがあるので、その辺aster-parse-jsは変えられるようにするのかな。
生成はEscodegen一択なので問題なさそう
from efcl.github.io.
azu_re: ここ1-2ヶ月 JavaScript ASTまわり若干動きがある気がする。
esprimaの動きは鈍いけど、他が動いてる感じがする。
主にES6対応まわりが焦点なんだろうけど、何か取っ掛かりとなる事あったのかな。
- https://twitter.com/azu_re/status/507905831652712450
- https://twitter.com/azu_re/status/507906505211772928
from efcl.github.io.
sebmck/6to5 がとても熱い感じ。
とにかくissueの処理速度が凄い。2日で20個ぐらいissue立ったけど全部処理していってる。
内部的にも面白くて、変換結果となるテンプレートを用意して最初にそのテンプレートを読み込んで、割り当てる感じでES6 -> ES5をやってる。
これのいいところは多分見た目が確保しやす所なのかもしれない。
後、配布するバージョンはちゃんと事前にテンプレートをキャッシしたものを使うので処理速度が少しよくなってる
from efcl.github.io.
esprima forkが現れた。
便利エディタ
impinball/es6-module-at-proposal
ES6サポートが進んでいるがパーサで微妙に違うのを解決する提案。
こういうTC39みたいな機能毎のプロポーサルを出すスタイルで進んだ方がいいきがする
from efcl.github.io.
Shape Securityの人中心で、SpiderMonkey AST formatでは限界が見えてきたのでちゃんとES6も含めたJavaScriptのAST定義をしようというプロジェクトが公開された。
from efcl.github.io.
Shape Security Labs: A Technical Comparison of the Shift and SpiderMonkey AST Formats
これで各陣営の動きが観測できたら書こう
from efcl.github.io.
http://azu.github.io/slide/crosushi/shift-ast.html
スライド
from efcl.github.io.
上記のスライドからesprima周りで動きがあって、estreeという正統後継な感じ(というよりも現状曖昧なところをちゃんと仕様に落としこむ感じ)の仕様策定が始まった。
mozillaのdhermanさんがメインでコミットしてるのでSpidermonkey ASTと互換性をメインにした仕様。esprima/acorn/shift ast でそれぞれの人が参加してるのでとても活発。
DmitrySoshnikov: @littlecalculist nice! What about Shift AST? Seems it's also actively developed/spec'ed. Are we gonna have two AST standards? @AriyaHidayat
-- https://twitter.com/dmitrysoshnikov/status/566299381633384448littlecalculist: @maguiar02 nothing, but until and unless it's adopted by popular tools like Esprima and Acorn, they need to advance to support ES6.
-- https://twitter.com/littlecalculist/status/566262748179218432
Shift ASTが何か悪いわけじゃなくて、esprimaとacornが今多くのツールで使われてるので、そこのES6対応とかやらないと良くないからやってる感じ
from efcl.github.io.
書いた!! [2015-02] 最近のJavaScript AST標準化の動き | Web Scratch
from efcl.github.io.
Related Issues (20)
- 複数のURLをまとめてPocketに突っ込むアプリ HOT 1
- JekyllをCircle CIからデプロイ HOT 1
- Jekyll 2から3へのアップデート
- Edit リンクがリンク切れ
- セキュリティ寿司次は行きたい HOT 12
- Broken markdown
- HTTPSへ移行する HOT 1
- Use Travis CI
- ブラウザやNode.jsで動く軽量な非同期KeyValueストレージ @kvs HOT 1
- monorepo + TypeScript Project Reference HOT 2
- JavaScript-Plugin-Architectureのアップデート HOT 1
- スクショメモアプリ mumemo HOT 1
- eslint-plugin-typescript-compatのブログ
- semgrepを使ったマイグレーション
- JavaScriptをTypeScriptにマイグレーションする HOT 1
- 音声の文字起こしのアプリ
- [niconico] deflist API 廃止
- Maintainer Month: メンテナンスを続けるコツ HOT 2
- 新しい JavaScript ライブラリ HOT 1
- /page/2/ から "新しい記事へ" をクリックすると404になる
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efcl.github.io.