what does ^:skip-aot mean in clojure project.clj
Asked Answered
H

1

34

I am new to clojure, when I use

lein new app

I saw this line

:main ^:skip-aot my-stuff.core

What does ^:skip-aot mean?

In which section of clojure document could I find the description?

Hoye answered 17/12, 2013 at 10:40 Comment(2)
You are creating Pedestal application?Nickell
I don't know what is a Pedestal application. I just try lein new app my-stuff in the tutorialHoye
N
10

It is Leiningen configuration. Have a look at : Sample project.clj.

If you are creating a Pedestal application, then that is why they want to skip AOT:

Why does pedestal skip AOT? and in Heroku context: Reason for skipping AOT?

Nickell answered 17/12, 2013 at 11:1 Comment(3)
Just adding to this answer: In case it wasn't clear, AOT = ahead-of-time compilation (vs JIT, just-in-time compilation). You can read more about how AOT vs JIT impacts clojure specifically in the official docs here: clojure.org/compilationAmbrogio
Another clarification, sleetdrop: Leiningen isn't really part of Clojure; it's a tool that enhances Clojure. That's why the documentation is separate.Abloom
"It is Leiningen configuration." explains nothing.Isolda

© 2022 - 2024 — McMap. All rights reserved.