Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created September 12, 2013 16:56
Show Gist options
  • Select an option

  • Save swannodette/6540713 to your computer and use it in GitHub Desktop.

Select an option

Save swannodette/6540713 to your computer and use it in GitHub Desktop.
(ns hello-world.core)
(.log js/console "Hello world!")
Math.floor(2147483648 * Math.random()).toString(36);
console.log("Hello world!");
@swannodette
Copy link
Copy Markdown
Author

The first line is an artifact from Google Closure, will need to look into it. Note this gist does not mean that your ClojureScript programs are going to be any smaller, it just demonstrates that the standard library is now squeaky clean with respect to being static (nothing runs) and dependencies.

@ghoseb
Copy link
Copy Markdown

ghoseb commented Sep 12, 2013

👍

@tgk
Copy link
Copy Markdown

tgk commented Sep 12, 2013

That is surely one of the weirdest artifacts I've ever seen. Great work on the projects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment