Skip to content

[Belt] Small roadmap #2603

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

Closed
1 of 6 tasks
chenglou opened this issue Mar 9, 2018 · 7 comments
Closed
1 of 6 tasks

[Belt] Small roadmap #2603

chenglou opened this issue Mar 9, 2018 · 7 comments
Labels
stale Old issues that went stale

Comments

@chenglou
Copy link
Member

chenglou commented Mar 9, 2018

Asked a few people and summarized into this

  • Polish usage of belt (at least the data structures part) as a standalone js library
  • Make it compile to native
  • Docs
  • String module (that works on native)
  • Whatever you can think of (folks want json pattern matcher. Not really Belt though)
  • Option module (like Js.Option, but more idiomatic Belt)
@jchavarri
Copy link
Contributor

Make it compile to native

@chenglou @bobzhang Is the plan to use bsb-native to compile "Universal Belt"? I'm asking because if that's the case we could use the BSB_BACKEND flag, and it would be a great "eat your own food" opportunity, to evaluate the experience of writing cross-platform code with BuckleScript.

as a standalone js library

Will this package just include Belt? Or the stdlib too? In #2171 I started some preliminary steps to publish the stdlib as a standalone package (change templates, guarantee that both bs-platform and this new package stay in sync) that I could maybe revive for this.

@chenglou
Copy link
Member Author

Yeah it would. Only need to standardize on a single env var name.

Will this package just include Belt?
Let's keep it just for Set/Map and their variations for now.

@jaredly
Copy link
Contributor

jaredly commented Mar 16, 2018

Ok I think in terms of native compilation, I'm just gonna copy the sources into my project & fiddle with them until they work

@chenglou
Copy link
Member Author

Ping here if you need any help understanding the conditional compilation: https://bucklescript.github.io/docs/en/conditional-compilation.html

@chenglou
Copy link
Member Author

Option done! Thanks @arnarthor!

@bobzhang
Copy link
Member

@jaredly we will support it on native. The worst thing is that we just keep the interface file and provide an alternative implementation. But let's wait for a while to allow some stability

@stale
Copy link

stale bot commented Jan 15, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Old issues that went stale label Jan 15, 2021
@stale stale bot closed this as completed Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Old issues that went stale
Projects
None yet
Development

No branches or pull requests

4 participants