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

RFC: lake exe variant without compilation #5238

Open
Seasawher opened this issue Sep 2, 2024 · 1 comment
Open

RFC: lake exe variant without compilation #5238

Seasawher opened this issue Sep 2, 2024 · 1 comment
Labels
P-low We are not planning to work on this issue RFC Request for comments

Comments

@Seasawher
Copy link
Contributor

Seasawher commented Sep 2, 2024

Proposal

add option to lake exe which simply execute an already existing binary file, without compilation.

User Experience: How does this feature improve the user experience?

lake exe command running time improvement

Beneficiaries: Which Lean users and projects benefit most from this feature/change?

repos depend on other lean packages

Community Feedback

Omit compilation and run the executable binary in the .lake

Impact

Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.

@Seasawher Seasawher added the RFC Request for comments label Sep 2, 2024
@Seasawher
Copy link
Contributor Author

Seasawher commented Sep 2, 2024

lake exe ... command is very slow compared to simply run binary file

tested at: https://github.com/lean-ja/lean-by-example

lean-by-example on  main [$!]
❯ Measure-Command { .lake/packages/mk-exercise/.lake/build/bin/mk_exercise.exe Examples/Solution Exercise }

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 19
Ticks             : 193731
TotalDays         : 2.24225694444444E-07
TotalHours        : 5.38141666666667E-06
TotalMinutes      : 0.000322885
TotalSeconds      : 0.0193731
TotalMilliseconds : 19.3731


lean-by-example on  main [$!]
❯ Measure-Command { lake exe mk_exercise Examples/Solution Exercise }

Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 837
Ticks             : 8375452
TotalDays         : 9.69381018518518E-06
TotalHours        : 0.000232651444444444
TotalMinutes      : 0.0139590866666667
TotalSeconds      : 0.8375452
TotalMilliseconds : 837.5452

@leanprover-bot leanprover-bot added the P-low We are not planning to work on this issue label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-low We are not planning to work on this issue RFC Request for comments
Projects
None yet
Development

No branches or pull requests

2 participants