CLOJUREC(1)

πŸ“¦ version 1.10.2, in ubuntu jammy

πŸ’– CLOJUREC(1) β€” the clojurec manual page, bestie edition πŸ’–

okay so welcome to the General Commands Manual, section 1, entry CLOJUREC(1). it's giving compiler energy and i'm obsessed. sit down, grab a strawberry πŸ“, and let's get you fluent.


✨ NAME ✨

clojurec β€” the Clojure compiler, no cap.


🌸 SYNOPSIS 🌸

clojurec [-d destination-directory] [-W/-Wreflect] [-cp/-classpath
classpath] lib1 [lib2 ...]

like, that's the whole vibe. one command, a couple of flags if you want them, and then a whole pile of libs. πŸ¦‹


πŸ‘‘ DESCRIPTION πŸ‘‘

This manual page documents briefly the clojurec command β€” like a lil intro, not the whole saga.

clojurec compiles libs and generates class files stored within the directory named by the -d option, or . if not specified. so if you don't tell it where to put stuff, it's just gonna drop them right in the current directory. main character behavior honestly πŸ’…

Arguments are strings naming the libs to be compiled. and here's the tea, bestie: libs are specified in dotted notation and are loaded from a classpath. for example my.lib refers to a file my/lib.clj contained within a classpath. so the dots turn into slashes, the .clj gets implied, and it goes hunting along your classpath. iconic. ✨


πŸŽ€ OPTIONS πŸŽ€

A summary of options is included below. yes, all of them. i would never gatekeep.

  • -d destination-directory β€” Specifies the destination directory for compiled class files. that's where your shiny new classes get to live. 🏠
  • -W, -Wreflect β€” Causes the compiler to emit warnings when reflection is needed to resolve Java method calls or field accesses. lowkey the most useful flag here β€” reflection is sneaky and this one snitches on it. 🚨
  • -cp classpath, -classpath classpath β€” Specifies additional classpath elements. careful though: this option overrides the $CLASSPATH environment variable. it doesn't add on top, it takes over. periodt. πŸ’€

🌈 ENVIRONMENT 🌈

A listing of recognised environment variables is included below.

  • CLASSPATH β€” Specifies additional classpath elements. your ambient classpath, just vibing in the background, until -cp/-classpath rolls up and steals the show. πŸ™ˆ

🫢 SEE ALSO 🫢


πŸ’œ AUTHOR πŸ’œ

clojurec is a wrapper script around a Java implementation by Rich Hickey <richhickey@gmail.com>. The wrapper script was written by Peter Collingbourne <peter@pcc.me.uk>.

This manual page was written by Peter Collingbourne <peter@pcc.me.uk>, for the Debian project (but may be used by others). shoutout to the Debian girlies, y'all ate. πŸ‘‘


ngl that's the whole page. no hidden sections, no secret flags, no nothing. go compile something and make it everyone's problem. πŸ”₯

and that's a wrap on the CLOJUREC(1) page from the General Commands Manual β€” thanks for reading, bestie, ily, bye!! πŸŒΈπŸ’–πŸ§š

πŸ“¦ where this page comes from