Fork me on GitHub
#clojurescript
<
2018-12-27
>
jimberlage03:12:00

Does anyone know how to set a binding in cljs.user when evaluating code with the self-hosted compiler? I’d like the eval function to have a binding already set up for cljs.user/*db* when I call it. I’m pretty sure I need to manipulate the [:cljs.analyzer/namespaces 'cljs.user :defs '*db*] object in the compiler state but I have no idea what I should set it to. I’m just binding a data structure, not a function or anything

jakuzure10:12:37

is there a way to write cljs code on iOS? my search only showed me people trying to develop for iOS, not on it

norman15:12:01

I’m 95% sure you aren’t interested in this approach, but blink (the best ios ssh program) + emacs on (substitute the cloud provider of your choice)

norman15:12:43

I use it for clojure dev regularly from an ipad. You really need an external keyboard, but it works well.

jimberlage17:12:32

Anyone know how to access the compiler options passed to clojurescript at compile time? Specifically I’m looking to save the :asset-path option so I can use it to spawn a web worker

jimberlage18:12:08

Ah, perfect. Thanks!

kwladyka21:12:37

I am asking for feedback I made a library to validate form inputs in CLJS with spec and fn. https://github.com/kwladyka/form-validator-cljs I would love to know if you will use it and get constructive feedback! PS What is the best place to publish to community information about this library? It needs some advertising and I don’t have famous blog 🙂

rutledgepaulv21:12:27

I think common places include #announcements or the mailing list

kwladyka21:12:50

mailing list?

kwladyka21:12:54

I don’t have my own mailing list. I am not famous blogger 🙂

kwladyka21:12:28

Thank you for #announcements, i didn’t know about this channel

kwladyka22:12:58

cool, thank you