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

Contributing policies for adding/updating new stdlibs packages #239

Open
moul opened this issue Jun 7, 2022 · 2 comments
Open

Contributing policies for adding/updating new stdlibs packages #239

moul opened this issue Jun 7, 2022 · 2 comments
Assignees
Labels
📖 documentation Improvements or additions to documentation help wanted Want to contribute? We recommend these issues. 📦 🤖 gnovm Issues or PRs gnovm related

Comments

@moul
Copy link
Member

moul commented Jun 7, 2022

Multiple times, it happened to me that I missed a stdlibs package or method. We need to make it possible to add new stdlibs packages or update already imported ones.

I suggest:
We add a dedicated section with clear rules in CONTRIBUTING.md, let's say: "make sure the package compiles with no dead/incompatible code", and "make sure that the code allows making deterministic.", "make sure to keep the copyright", and "keep some unit tests".
Bonus: develop a small codegen script that takes a configuration file to regenerate all the stdlibs we want, and remove every function we don't want.
Bonus: if we get this configuration file from above, we could also generate an automatic changelog.

@jaekwon Before opening the first PR by myself to fully experiment with the process with some stdlibs I miss, I would like to know if you have any feedback about what you did in the past? Maybe you have already developed some helper scripts?

FYI, I plan to update "strconv" which lacks some recent Unicode helpers that I need in testing.

@moul
Copy link
Member Author

moul commented Jan 26, 2023

Related with #486

@moul
Copy link
Member Author

moul commented Jan 26, 2023

Update

We should also make a process for porting good go libraries to gno, and publish them under a special domain prefix.

  • gno.land is for the main GnoVM chain; the sources are published using TXs.
  • foobar.land is for a new GnoVM chain; the source will be fetched using IBC2.
  • github.com or maybe imported.land/github.com is a special prefix where we know that the publisher is not the actual author, the license is inherited from GitHub, and the original author will be able to claim ownership later.

That being said, we can't have a process to port existing libraries without supporting versioning:

  • import "gno.land/p/stuff" could be the alias of gno.land/p/stuff/a1b2c3d4, updatatable to a newer version.
  • import "gno.land/p/stuff/5e6f7g8g" is the exact version.

Maybe make something equivalent for the stdlib, and manage #486 by adding a new version.

@ajnavarro ajnavarro added 📦 🤖 gnovm Issues or PRs gnovm related 📖 documentation Improvements or additions to documentation labels May 17, 2023
@moul moul moved this to 🔵 Not Needed for Launch in 🚀 The Launch [DEPRECATED] Sep 5, 2023
@moul moul moved this from 🔵 Not Needed for Launch to 🌟 Wanted for Launch in 🚀 The Launch [DEPRECATED] Sep 5, 2023
@Kouteki Kouteki added help wanted Want to contribute? We recommend these issues. and removed help wanted labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 documentation Improvements or additions to documentation help wanted Want to contribute? We recommend these issues. 📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: 🌟 Wanted for Launch
Development

No branches or pull requests

4 participants