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
gomacro cannot be used with google app engine because it uses the unsafe package #43
Comments
The unsafe package is used in several places as an optimization - without it, the gomacro/fast interpreter would be either much slower or much more complex. So, while technically possible to remove them, it's a lot of work - more than I am currently willing to put for the goal of running it on google app engine. There is also a workaround for some missing features of the reflect package that uses unsafe, and the only way to implement them without unsafe is to patch the reflect package from Go standard library (or live with the missing features). A possible solution is to use the gomacro/classic interpreter: as I mentioned in #42, it's older and much slower. On the plus side, it's much smaller and does not use |
For documentation, what would be the list of missing features if one was not to use the |
unsafe is used for the following features:
As you can guess, removing some of these usages is quite trivial (1 2 5 6 in particular if you stick to the classic interpreter), while removing others (3 4 7) has non-trivial side effects |
Thank you very much for documenting this. |
as highlighted by @morangorin in #42. He also adds:
would it be possible to have a smaller and simpler version of gomacro ? (perhaps at the cost of performance and/or features ?)
The text was updated successfully, but these errors were encountered: