Sven Sauleau

Results 316 comments of Sven Sauleau

I assumed that Babel would parse and apply transformations. But it seems that works only that way? I don't see where the loader has access to the ast?

> But if there needs to be a Tree Adapter of some sort the question is if this isn't actually slower then letting webpack parse it again :) I'm sure...

It seems that a converter already exists https://www.npmjs.com/package/babel-to-estree

Yes, I have this use-case. Wouldn't it break exisiting HTML parser? How would you make the difference between a valid script (opaque blob in the page) and some corrupted data....

Yes, that makes sense. I think the encoded binary format would be a lot more bigger that the original binary format. What would be the advantage vs code representation? I...

> I think the encoded binary format would be a lot more bigger that the original binary format. Yes, i'm not sure either. We'll need to try it out to...

I can't speak for the proposal's champions but Cloudflare experimented with distributing binary AST instead of JavaScript for compatible eyeballs. We are planning to continue to work on the proposal.

We wrote a blog post https://blog.cloudflare.com/binary-ast/.

Instead of using a binary representation over HTTP I would use end to end binary stream. - bson (binary json): packing and unpacking is very simple, it's just JSON in...

Ok, sorry I didn't know it was to communicate with lambdas. As I said, bson is really a simple packing technique, it should be implementable in every languages.