We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. During my progress in the compiler course I've encountered a possible bug in lamac.
Scenario
case ... of
->
lamac <file name>
Problem In the described scenario lamac execution time grows exponentially as the number of patterns grows.
lamac
Expected behavior Execution time in the described scenario is similar to the execution time of lamac without dot notation usage.
Example Consider the following gist, in which I've implemented 2 semantically equivalent programs, according to specification:
$ time lamac test.lama real 0m8,152s user 0m8,037s sys 0m0,102s
$ time lamac test.lama real 0m0,227s user 0m0,219s sys 0m0,009s
$ time lamac test.lama real 0m4,357s user 0m4,289s sys 0m0,067s
$ time lamac test.lama real 1m23,222s user 1m22,964s sys 0m0,223s
Did not finish after 10 minutes of execution
Environment description
The text was updated successfully, but these errors were encountered:
Looks like Ostap issue with dot notation support. Should be postponed until hash-consing and proper memoization is implemented.
Sorry, something went wrong.
dboulytchev
No branches or pull requests
Hello. During my progress in the compiler course I've encountered a possible bug in lamac.
Scenario
case ... of
construction to the code->
lamac <file name>
Problem
In the described scenario
lamac
execution time grows exponentially as the number of patterns grows.Expected behavior
Execution time in the described scenario is similar to the execution time of lamac without dot notation usage.
Example
Consider the following gist, in which I've implemented 2 semantically equivalent programs, according to specification:
Did not finish after 10 minutes of execution
Environment description
The text was updated successfully, but these errors were encountered: