joker

Discuss all things joker, the Clojure interpreter/linter on top of Go. https://github.com/candid82/joker
jcburley 2019-09-16T19:35:46.003500Z

Hey! I've merged my pending documentation-related PRs into my gostd fork, regenerated, and uploaded the resulting docs (except for Windows -- let me know if that would be helpful) here: https://burleyarch.com/joker/docs/ Please check it out, mainly the addition of information on Joker's standard types (which is added to official Joker by one of the PRs), and consider providing feedback here or on the main PR at https://github.com/candid82/joker/pull/269. This is laying some groundwork to refactor how the gostd fork handles Go types, which (among other things) is intended to autogenerate documentation for the receivers ("methods"), in the Go standard library, that are already being wrapped. Thanks!

1👍
jcburley 2019-09-16T19:48:27.003700Z

Related to this work, joker.repl/doc of a type name works in official (but not yet released) Joker:

user=> (doc Int)
-------------------------
Int
  (Concrete type)
  Wraps the Go 'int' type, which is 32 bits wide on 32-bit hosts, 64 bits wide on 64-bit hosts, etc.
nil
user=>
In my gostd fork, doc of an expression works, by evaluating the expression and printing the doc info in the metadata found therein, which allows this:
user=> (doc (type (= true false)))
-------------------------
Boolean
  (Concrete type)
nil
user=>
(That won't be especially useful until gostd has fully autogenerated type info for the Go standard library.)

hlship 2019-09-16T20:34:16.004700Z

Is there any way that Joker can identify when output is being sent to a pipe or file rather than the console? I have a case where I'd love to turn off some ANSI colors when not writing to console.

jcburley 2019-09-16T20:46:48.004800Z

Not at present, AFAIK.