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

Compiled HVM programs need a better CLI interface #188

Open
developedby opened this issue Dec 21, 2022 · 1 comment
Open

Compiled HVM programs need a better CLI interface #188

developedby opened this issue Dec 21, 2022 · 1 comment

Comments

@developedby
Copy link
Member

Running a program compiled with hvm compile somefile.hvm and then cargo build --release, I am greeted with this message

$ ./target/release/somefile 

somefile 1.0.17-beta
A massively parallel functional runtime.

USAGE:
    somefile <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    compile    Compile a file to Rust
    help       Print this message or the help of the given subcommand(s)
    run        Load a file and run an expression

That means that this program is not carrying only the interpreted and precompiled functions, but also the whole compiler.

That is unintuitive, what I expected was to just be able to call my program directly (which would correspond to calling it with somefile run "(Main arg)").

We should probably create a separate CLI for the compiled programs to make this simpler to use

@developedby developedby changed the title Compiled HVM program need a better CLI interface Compiled HVM programs need a better CLI interface Dec 21, 2022
@VictorTaelin
Copy link
Member

Makes sense to me. Will add.

nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 24, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 24, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 24, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 24, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 24, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 25, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 25, 2023
nothingnesses added a commit to nothingnesses/LambdaVM-Rust that referenced this issue Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants