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

Create Source Mapping NEP initial draft #162

Open
lock9 opened this issue Feb 25, 2019 · 2 comments
Open

Create Source Mapping NEP initial draft #162

lock9 opened this issue Feb 25, 2019 · 2 comments

Comments

@lock9
Copy link

lock9 commented Feb 25, 2019

In order to have greater compatibility with all programming languages supported by NEO, it's necessary that we create a source mapping standard. This NEP should explain the file format used to map the source code from high-level programming languages (C#, Typescript, Python, Go, Java) into NEO VM Opcodes.
I spoke with individuals interested in this subject, and their desire is to use an existing model, instead of creating a new one. We already have this kind of mapping done using neo-debugger-tools, however, it has to be adapted.
The main difference from this model to our model is the compression used in map files to make it much smaller. In smart contracts I have worked with, the map files are 10 times larger than the Smart Contract code.

"Universal mapping" reference:
https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map
https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/preview#
https://github.com/ryanseddon/source-map/wiki/Source-maps%3A-languages,-tools-and-other-info
https://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

Credits: @Relfos for the initiative, @afragapane and @dicarlo2 for the mapping references and collaboration.

I would like to suggest that @Relfos produces the initial draft, and we add our input on top of it. In my dreams we can have this NEP done in one month 🙏.

Required for #147 and #5

@Relfos
Copy link
Collaborator

Relfos commented Feb 25, 2019

I've talked with @lock9, I will delegate the creation of the initial draft to him and help review it.

@dicarlo2
Copy link

dicarlo2 commented Mar 28, 2019

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

4 participants