Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break-out the loader & indexer #88

Open
matthewmueller opened this issue Dec 29, 2017 · 1 comment
Open

Break-out the loader & indexer #88

matthewmueller opened this issue Dec 29, 2017 · 1 comment

Comments

@matthewmueller
Copy link
Owner

This stuff is separate from the actual translation and useful in really any program that transforms Go ASTs. I'm finding myself copying a lot of the logic for the React framework.

Maybe this should be in a separate repo or at least isolated and abstracted a bit.

@matthewmueller
Copy link
Owner Author

matthewmueller commented Dec 29, 2017

There's also improvements we can make that GopherJS already does around loading. They do custom archiving to speed up importing large packages like "fmt". We don't really have this problem yet, but having a standard place to put these Go files would be nice.

I think gopher's loading logic predates https://godoc.org/golang.org/x/tools/go/loader, so we'll probably want to use the standard but add in the archiving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant