You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we might want to move gnovm/pkg/gnolang/precompile.go out of gnovm/pkg/gnolang/
For following reasons:
precomplie is part of off chain tools for devs to validate the gno files by leveraging local go build tool chains before we upload files to gno.land chain. these are not part of the language specs
gnovm code should not depends on gno.land configurations.
Above const and vars do not determine gno.land chain settings, nor language specs. They merely need to match with a specific version of deployed gno.land chain either locally or remotely, so that we can accurately validate gno files against a specific chain run time.
Proposal:
Put precompile.go in something like gnovm/pkg/tools , move chain specific information and lib list to a config file so that people can use it as a template when they fork gno or migrate gno to other chains.
A feature in a separate RFC: gno.land chain publishes these settings.
A separate RFC: combine gno precompile and build as a validation tool to avoid confusion, since we only leverage go build tool chains to validate gno files, syntax, import paths and injected native method signatures. The binary out of precompiled gen.go and the building process serves no purpose.
Open for suggestions and comments.
The text was updated successfully, but these errors were encountered:
Description
we might want to move gnovm/pkg/gnolang/precompile.go out of gnovm/pkg/gnolang/
For following reasons:
precomplie is part of off chain tools for devs to validate the gno files by leveraging local go build tool chains before we upload files to gno.land chain. these are not part of the language specs
gnovm code should not depends on gno.land configurations.
gno/gnovm/pkg/gnolang/precompile.go
Line 22 in 7464b94
gno/gnovm/pkg/gnolang/precompile.go
Line 31 in 7464b94
Above const and vars do not determine gno.land chain settings, nor language specs. They merely need to match with a specific version of deployed gno.land chain either locally or remotely, so that we can accurately validate gno files against a specific chain run time.
Proposal:
Open for suggestions and comments.
The text was updated successfully, but these errors were encountered: