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

Trying to compile nested let takes up a lot of resource #1463

Open
mikecat opened this issue Jun 25, 2024 · 0 comments
Open

Trying to compile nested let takes up a lot of resource #1463

mikecat opened this issue Jun 25, 2024 · 0 comments

Comments

@mikecat
Copy link

mikecat commented Jun 25, 2024

I'm trying Carp 0.5.5 on Windows (using released binary).

When I tried to compile this code:

(defn test [] 42)

(let [s (prn (test))]
  (IO.println &s)
)

With a command line:

carp -b test.carp

It failed saying 'clang-cl.exe' is not recognized in a few seconds.
I don't think this failure is not a large problem here: It is suggesting that I should find or create the executable file in some way if I want to go further.

However, when I tried to compile this code in the same way:

(defn test [] 42)

(let [a (test)]
  (let [s (prn a)]
    (IO.println &s)
  )
)

The compiler used almost 100% of the CPU for at least several minutes, and it used more than 20GB of memory.

I think this usage of resources is too much for trying to compile this simple code.

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

1 participant