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

deno binary builds in releases #1461

Open
rnbguy opened this issue Jul 15, 2024 · 1 comment · May be fixed by #1529
Open

deno binary builds in releases #1461

rnbguy opened this issue Jul 15, 2024 · 1 comment · May be fixed by #1529
Labels
good first issue A simple issue to start with

Comments

@rnbguy
Copy link
Member

rnbguy commented Jul 15, 2024

I have been using Quint with Deno for a while.

$ deno install -A -n quint npm:@informalsystems/quint
✅ Successfully installed quint
/home/user/.deno/bin/quint
$ quint --version
0.21.0
$ # or just
$ deno run -A npm:@informalsystems/quint --version
0.21.0

But I wished if Quint releases could include binaries directly via deno compile.

But I couldn't suggest as quint verify was breaking because of a http2 bug. Today, I resolved it on denoland/deno#24576 which makes Quint Deno-compatible. You can now try it on quint examples.

$ cd quint/examples/cosmos/ics20
$ deno run -A npm:@informalsystems/quint verify --max-steps=1 --main=bankTests --invariant=BalanceNonNegative,NonExistantAccountsOrCoinsAreZero bank.qnt

With this, would you consider including Deno compiled Quint binaries in future releases?

$ deno compile -A -o quint npm:@informalsystems/quint
$ ./quint --version
0.21.0

Pros:

  • No dependency to node or anything else.
  • Standalone executables. Easily distributable.

Cons:

  • Includes Deno runtime. Bigger package: 22MB (without counting the node or npm installation) vs 101MB.
  • Deno is still ironing out bugs and APIs. But, Deno 2 is coming.

Refs:

@bugarela
Copy link
Collaborator

Thank you for fixing that issue! I agree, we should do it: Pros > Cons 😄

@bugarela bugarela added the good first issue A simple issue to start with label Jul 18, 2024
@rnbguy rnbguy linked a pull request Oct 10, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue A simple issue to start with
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants