GithubHelp home page GithubHelp logo

Comments (11)

qrg avatar qrg commented on June 9, 2024

👍

from efcl.github.io.

azu avatar azu commented on June 9, 2024

aster

astベースのビルドツール公開されてた

from efcl.github.io.

azu avatar azu commented on June 9, 2024

Gruntとgulpは結局パースするのは変わらない。

2014-08-30_16-35-15_fotor_collage

asterはASTを中心に処理を回す。

2014-08-30_16-41-50

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 avatar azu commented on June 9, 2024

azu_re: ここ1-2ヶ月 JavaScript ASTまわり若干動きがある気がする。
esprimaの動きは鈍いけど、他が動いてる感じがする。
主にES6対応まわりが焦点なんだろうけど、何か取っ掛かりとなる事あったのかな。

from efcl.github.io.

azu avatar azu commented on June 9, 2024

sebmck/6to5 がとても熱い感じ。
とにかくissueの処理速度が凄い。2日で20個ぐらいissue立ったけど全部処理していってる。

内部的にも面白くて、変換結果となるテンプレートを用意して最初にそのテンプレートを読み込んで、割り当てる感じでES6 -> ES5をやってる。
これのいいところは多分見た目が確保しやす所なのかもしれない。
後、配布するバージョンはちゃんと事前にテンプレートをキャッシしたものを使うので処理速度が少しよくなってる

from efcl.github.io.

azu avatar azu commented on June 9, 2024

eslint/espree

esprima forkが現れた。

JavaScript AST explorer

便利エディタ

impinball/es6-module-at-proposal

ES6サポートが進んでいるがパーサで微妙に違うのを解決する提案。
こういうTC39みたいな機能毎のプロポーサルを出すスタイルで進んだ方がいいきがする

from efcl.github.io.

azu avatar azu commented on June 9, 2024

shapesecurity/shift-spec

Shape Securityの人中心で、SpiderMonkey AST formatでは限界が見えてきたのでちゃんとES6も含めたJavaScriptのAST定義をしようというプロジェクトが公開された。

from efcl.github.io.

azu avatar azu commented on June 9, 2024

Shape Security Labs: A Technical Comparison of the Shift and SpiderMonkey AST Formats

これで各陣営の動きが観測できたら書こう

from efcl.github.io.

azu avatar azu commented on June 9, 2024

http://azu.github.io/slide/crosushi/shift-ast.html
スライド

from efcl.github.io.

azu avatar azu commented on June 9, 2024

上記のスライドから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/566299381633384448

littlecalculist: @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.

azu avatar azu commented on June 9, 2024

書いた!! [2015-02] 最近のJavaScript AST標準化の動き | Web Scratch

from efcl.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.