marginalia icon indicating copy to clipboard operation
marginalia copied to clipboard

Create separate project for standalone exe

Open fogus opened this issue 13 years ago • 4 comments
trafficstars

At the moment Marg is compiled to provide a -main entry point, but I think it should act as a pure library only. We should create a whole new project that creates a command-line runnable Marg.

fogus avatar Dec 09 '11 20:12 fogus

I'll take this.

Raynes avatar Dec 09 '11 20:12 Raynes

I'll take this.

You are like a superhero or something!

fogus avatar Dec 09 '11 20:12 fogus

Do you want to just eliminate the marginalia.main namespace, or do you want to eliminate the entire external interface (run-marginalia and such)? I'm not sure we should get rid of run-marginalia and friends, though I suppose if we move it to the new project, the lein plugin can depend on it rather than Marginalia itself so that it can get run-marginalia and avoid duplicating code. That's quite a bit more indirection than just leaving it in marginalia itself. I say we move run-marginalia and friends into their own marginalia.external namespace.

I'll get this done as soon as I've got your okay on it, @fogus.

Raynes avatar Dec 10 '11 05:12 Raynes

I think run-marg can stay. The main goal of this task is to completely eliminate AOT in the main library. Maybe we should leave run-marg in place for now so that we don't break people dependent on it. We can float out the possibility for breakage later.

fogus avatar Dec 10 '11 13:12 fogus