[ClojureScript] Re: Consequences of not closing channels in browser?

2014-07-12 Thread Mike Fikes
I would imagine Brandon Bloom's response to a similar question in the Clojure group is applicable to the ClojureScript implementation of of core.async: https://groups.google.com/forum/#!searchin/clojure/close$20channel/clojure/Zr1FmmE2cpQ/F6m9Ye_n1VoJ -- Note that posts from new members are

[ClojureScript] Re: Consequences of not closing channels in browser?

2014-07-12 Thread Mike Fikes
I would imagine Brandon Bloom's response to a similar question in the Clojure group is applicable to the ClojureScript implementation of of core.async: https://groups.google.com/d/msg/clojure/Zr1FmmE2cpQ/B_6MV2sTP8wJ -- Note that posts from new members are moderated - please be patient with

[ClojureScript] Understanding Dead Code Elimination

2014-07-14 Thread Mike Fikes
One thing I found instructive is David Nolen's “Minecraft” port http://swannodette.github.io/2013/06/10/porting-notchs-minecraft-demo-to-clojurescript/ In David's post he claimed that 400 lines would drop by 200 with real keyword support—it did; you can see this with the latest compiler. Also

[ClojureScript] Re: Boolean vs. Number for Boolean field

2014-08-17 Thread Mike Fikes
Thanks Max! The unsigned char / _Bool type distinction is probably the root cause. I did a little digging and found that exported BOOL properties are _supposed_ to be handled correctly. JSExport.h indicates BOOL: values are converted consistently with valueWithBool/toBool. where

[ClojureScript] Re: Boolean vs. Number for Boolean field

2014-09-05 Thread Mike Fikes
I filed a rdar, and Apple engineering confirmed the inherent limitation with the 32-bit runtime: “Objective-C internally treats BOOL as int, so we can't do anything nicer.” -- Note that posts from new members are moderated - please be patient with your first post. --- You received this

[ClojureScript] iOS app in ClojureScript

2014-09-15 Thread Mike Fikes
I have an iOS app in the App Store where the view controllers and other code are written in ClojureScript instead of Objective-C. Otherwise, it is a native app, based on storyboards. The JavaScript is running in JavaScriptCore, manipulating UI elements via the Objective-C / JavaScript bridge.

[ClojureScript] Re: iOS app in ClojureScript

2014-09-16 Thread Mike Fikes
Hi Dylan, I have no experience with PhoneGap / Cordova. I avoided that stack presuming that the resulting app is essentially like a packaged web app.” I wanted to instead produce an effectively native app where (ideally) the only difference is that instead of the underlying implementation

[ClojureScript] Re: Circular references broken?

2014-10-11 Thread Mike Fikes
In the namespaces chapter of ClojureScript: Up and Running, bottom of pg. 57, it indicates ClojuresScript does not support circular references between namespaces. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message

[ClojureScript] Path names in :advanced compile

2015-02-03 Thread Mike Fikes
Try the :pseudo-names compiler option to see what the :advanced code is referring to (https://github.com/clojure/clojurescript/wiki/Compiler-Options#pseudo-names). -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message

[ClojureScript] ClojureScript form call compiled to JavaScript

2015-01-14 Thread Mike Fikes
Also, see: https://github.com/clojure/clojurescript/wiki/Compiler-Options#static-fns -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript group. To unsubscribe

Re: [ClojureScript] Making sense of cljs compiler settings

2015-01-11 Thread Mike Fikes
Hi Jonathon, try the :pseudo-names compiler option [1] to get more insight into what might be going wrong with your is not a function error. [1] https://github.com/clojure/clojurescript/wiki/Compiler-Options#pseudo-names -- Note that posts from new members are moderated - please be patient

[ClojureScript] Re: Mac OS X Classpath issue in Getting Started?

2015-03-17 Thread Mike Fikes
On Monday, March 16, 2015 at 7:35:40 PM UTC-4, Josh Nursing wrote: I am being frustrated in trying out the latest Clojurescript release on Mac OS X Yosemite. Not sure what I am doing wrong. I follow the Getting Started instructions and get this error on launching java -cp cljs.jar:src

Re: [ClojureScript] Building ClojureScript locally.

2015-03-17 Thread Mike Fikes
You can run script/build and this will cause a locally-built version to be installed in your local Maven repo. Watch the number that gets built and you can use this in your project.clj. These are the same steps as in https://github.com/clojure/clojurescript/wiki/Patches#testing-patches

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3115

2015-03-16 Thread Mike Fikes
If that is true, then it is a problem, indicative either of a widespread lack of discipline among the tool makers or (more likely) a strong need for some additional well-specified (and maintained!) APIs in the compiler for tools to hook into. Sometimes it is just a simple bug or lack

Re: [ClojureScript] println not working in setIntervall callback

2015-03-08 Thread Mike Fikes
Hi Roger, Are you using a REPL and is console output going to your REPL? (Some REPL implementations queue asynchronously printed output and only print it when a response to a form evaluation needs to be printed.) - Mike On Mar 8, 2015, at 3:15 PM, Roger Gilliar roger.gill...@googlemail.com

Re: [ClojureScript] GCL advanced compilation bug-- :foo-bar and :foo_bar both become :foo_bar

2015-03-12 Thread Mike Fikes
Perhaps the same: http://dev.clojure.org/jira/browse/CLJS-1105 http://dev.clojure.org/jira/browse/CLJS-1105 Fixed with a recent commit: https://github.com/clojure/clojurescript/commit/4bcc95175e4282d43ed74bf0abd670550fc40140

Re: [ClojureScript] Good/Bad of React Native

2015-03-30 Thread Mike Fikes
With respect to it being ready for prime time within a year or two: The Facebook Ads app is evidently written using React Native. There is a tremendous amount of interest in it (for example, the #reactnative IRC channel is very active). Facebook appears to be very responsive―my guess is that a

Re: [ClojureScript] Unexpected token return in a case form returning a function

2015-04-02 Thread Mike Fikes
of function context to be in play while compiling the first argument? Sean On Apr 2, 2015, at 6:58 PM, Mike Fikes mikefike...@gmail.com wrote: I haven’t looked into the root cause, but if it helps, here is the emitted JS: https://gist.github.com/mfikes/a6106afedd37b7e47138 - Mike

Re: [ClojureScript] Unexpected token return in a case form returning a function

2015-04-02 Thread Mike Fikes
I haven’t looked into the root cause, but if it helps, here is the emitted JS: https://gist.github.com/mfikes/a6106afedd37b7e47138 https://gist.github.com/mfikes/a6106afedd37b7e47138 - Mike On Apr 2, 2015, at 9:33 PM, Elliot Bulmer sonell...@gmail.com wrote: I get this error when I try to

Re: [ClojureScript] Unexpected token return in a case form returning a function

2015-04-03 Thread Mike Fikes
support. - Mike On Apr 3, 2015, at 12:22 PM, Sean Corfield s...@corfield.org wrote: On Apr 2, 2015, at 7:21 PM, Mike Fikes mikefike...@gmail.com wrote: Here you go: https://gist.github.com/mfikes/b76ad8576b0357f1b617 Thanks Mike. So, same bug as outside the `apply` context? (In case

[ClojureScript] Re: ANN: ClojureScript 0.0-3211

2015-04-25 Thread Mike Fikes
Hey Tony, try updating the version of Clojure in your project.clj to 1.7.0-beta1, which is used by 0.0-3211. (In short, reader/read was given a second arity to allow options to be passed, thus supporting #? conditional reading.) -- Note that posts from new members are moderated - please be

[ClojureScript] Re: Himera update

2015-04-27 Thread Mike Fikes
I've updated this beta so that it supports reader conditionals. cljs.user #?(:cljs ClojureScript :clj Clojure) ClojureScript - Mike On Friday, April 17, 2015 at 5:17:49 PM UTC-4, Mike Fikes wrote: I'm helping update Himera so that it runs the latest version of ClojureScript (0.0-3196

[ClojureScript] VanderHart's QTTT on native iOS

2015-05-14 Thread Mike Fikes
With some relatively minor tweaks to its Om binding, it is possible to run Luke VanderHart's Quantum Tic Tac Toe React web app natively on iOS using React Native. For those interested, the port is in https://github.com/mfikes/qttt and I put together a quick demo illustrating it running at

[ClojureScript] Re: VanderHart's QTTT on native iOS

2015-05-15 Thread Mike Fikes
For those interested in delving into React Native with ClojureScript, I took a stab at documenting how you get off the ground with a new project: https://github.com/omcljs/ambly/wiki/ClojureScript-React-Native-Quick-Start -- Note that posts from new members are moderated - please be patient

[ClojureScript] Himera update

2015-04-17 Thread Mike Fikes
I'm helping update Himera so that it runs the latest version of ClojureScript (0.0-3196). I'd like to eliminate any regressions before submitting a PR to Fogus, and have set up a copy with the changes here: http://geit.fikesfarm.com I'm planning on letting it run there for several weeks.

Re: [ClojureScript] Exploring the ClojureScript REPL

2015-04-05 Thread Mike Fikes
Hi Alex, I like it! One thing worth considering is `deref`ing the `app-state` atom in lieu of letting the #Atom ... representation print. Maybe just slap an `@` on front without explaining atoms in depth? - Mike On Apr 5, 2015, at 7:00 PM, Alex Eberts alex.ebe...@gmail.com wrote: Hi

Re: [ClojureScript] Best way to write React Native ui in cljs?

2015-06-05 Thread Mike Fikes
Hey Daniel, My guess is that nobody is working on this yet, at least for use with Om. I'm also curious as to whether om.next will ultimately be required (and whether this matters). (So far, I've just made do with some very simple helper functions.) - Mike On Jun 5, 2015, at 8:12 PM, Daniel

Re: [ClojureScript] [ANN] Planck 1.4

2015-08-12 Thread Mike Fikes
On Wednesday, August 12, 2015 at 9:34:56 PM UTC-4, g vim wrote: Great work, Mike. I'm a relative novice so where can I find info about executing host commands with planck.shell and I/O reader/writer? gvim The strategy is to mimic the existing Clojure namespaces / facilities. Planck has doc

[ClojureScript] Re: Clojurescript Bootstrap Requiring clojure.string and clojure.set

2015-08-16 Thread Mike Fikes
On Sunday, August 16, 2015 at 10:37:24 AM UTC-4, Matthew Molloy wrote: I can successfully require files using cljs.js/require. Requiring clojure.string and clojure.set fails with the message {:error #error {:message ERROR, :data {:tag :cljs/analysis-error}, :cause #object[Error Error:

[ClojureScript] [ANN] Planck 1.6

2015-08-24 Thread Mike Fikes
http://planck.fikesfarm.com http://planck.fikesfarm.com/ New Features Support JAR deps Support -c / --classpath for specifying source directories and JAR deps Support for OS X 10.8 Mountain Lion Ship with bundled cljs.pprint and cljs.test Support source REPL special Support import REPL special

Re: [ClojureScript] Re: [ANN] Planck 1.5

2015-08-16 Thread Mike Fikes
On Sunday, August 16, 2015 at 7:27:42 PM UTC-4, nchurch wrote: Speed is one use case for having the compiled script; another is distribution. A lot more people are apt to have nodejs installed than Planck, so it might still be nice to have the compiled js in one file (that you would

[ClojureScript] [ANN] Replete 1.0 beta: ClojureScript REPL iOS app

2015-06-29 Thread Mike Fikes
Wondering what all this “bootstrapped ClojureScript” hubbub is all about, and have an iOS device? There's a REPL app for that! Try the beta; experience it firsthand: https://github.com/mfikes/replete/wiki/Beta Special thanks to David Nolen and Joel Martin for making this possible! - Mike

Re: [ClojureScript] [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-01 Thread Mike Fikes
It is a hybrid native / ClojureScript command-line app, with the native portion being Objective-C / Cocoa driving JavaScriptCore. The native portion is a fairly small (albeit non-portable) codebase. What would it take to port this to Windows and Linux? Thinking of opportunities to teach

Re: [ClojureScript] [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-03 Thread Mike Fikes
On Aug 3, 2015, at 6:00 PM, gvim gvi...@gmail.com wrote: On 01/08/2015 18:19, Mike Fikes wrote: It is a hybrid native / ClojureScript command-line app, with the native portion being Objective-C / Cocoa driving JavaScriptCore. The native portion is a fairly small (albeit non-portable

Re: [ClojureScript] ClojureScript Self-hosting Demo

2015-08-03 Thread Mike Fikes
Marc, See this FAQ entry: https://github.com/clojure/clojurescript/wiki/Bootstrapped-ClojureScript-FAQ#with-bootstrapped-clojurescript-can-we-now-have-namespaces-that-mix-both-macros-and-functions

[ClojureScript] Re: [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-04 Thread Mike Fikes
Planck 1.3 is now available via Homebrew: http://blog.fikesfarm.com/posts/2015-08-04-pour-a-pint-of-planck.html -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups

[ClojureScript] [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-07-31 Thread Mike Fikes
Happy to announce that Planck 1.0 is available: http://planck.fikesfarm.com http://planck.fikesfarm.com/ -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups ClojureScript

Re: [ClojureScript] Re: [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-04 Thread Mike Fikes
Is it possible to use other JS or CLJSJS libs from within Planck? Planck implements `cljs.js/*load-fn*` by looking for source in a directory you specify. Perhaps in the future it will also be able to load code from JARs. So, for now, you'd need to un-JAR a lib and do `planck -s

Re: [ClojureScript] [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-02 Thread Mike Fikes
Readline support is available now, along with tab autocompletion. Great work, Mike. Is readline support in the works, by any chance? gvim -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to

Re: [ClojureScript] Leiningen for node.js + Cljs in Cljs

2015-08-15 Thread Mike Fikes
Hi Divyansh, Joel Martin has this for Node.js: sudo npm install -g cljs-repl and then you can start up a REPL with cljs If you are on OS X you can try Planck: http://planck.fikesfarm.com Neither use the JVM. (While Joel’s uses Node, Planck uses the JavaScriptCore that ships with

Re: [ClojureScript] Re: [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-04 Thread Mike Fikes
Where can I find info about any filesystem API that may be available? There is a `planck.io` namespace, and a `planck.sh` namespace is in the works. https://github.com/mfikes/planck/blob/1.3/planck-cljs/src/planck/io.cljs -- Note that posts from new members are moderated - please be patient

[ClojureScript] Re: [ANN] Replete ClojureScript REPL iOS app available

2015-07-24 Thread Mike Fikes
It was approved as is. Out of curiosity, how painful/painless was the process of getting it accepted into the app store? I've heard that Apple is pretty sensitive about letting anything in that does any kind of evaluation of arbitrary code. -- Note that posts from new members are

[ClojureScript] [ANN] Replete ClojureScript REPL iOS app available

2015-07-20 Thread Mike Fikes
Replete 1.0 is now in the App Store http://blog.fikesfarm.com/posts/2015-07-20-ios-clojurescript-repl-available-in-app-store.html -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the

[ClojureScript] [ANN] Planck 1.8

2015-11-06 Thread Mike Fikes
http://planck.fikesfarm.com New Features Tab completion for core macros Support for :static-fns (via -s or --static-fns) Analysis / compilation cache (-k option) planck.core/*planck-version* Changes Use ClojureScript 1.7.170 Can now (require 'cljs.analyzer) Fixes 0 is truthy doc fix when

Re: [ClojureScript] Mobile dev on Android: clojure or clojurescript?

2015-07-09 Thread Mike Fikes
-with-react-native.html On Jul 9, 2015, at 10:30 PM, Mike Pence mike.pe...@gmail.com wrote: I have been loving your tweets, Mike. They are what brought me here. Can you recommend some links for getting started? I am partial to Intellij. On Thursday, July 9, 2015 at 1:11:23 PM UTC-4, Mike

Re: [ClojureScript] Clojurescript special fns

2015-07-10 Thread Mike Fikes
Hi Ewen, FWIW, the REPL special functions are mainly for their side effects. Perhaps an argument could be made to have things (like `in-ns`) behave more like the plain Clojure REPL. But even in that case the return value seems to be specific to the JVM implementation: user= (in-ns 'foo.bar)

Re: [ClojureScript] Easiest way to compile cljs live

2015-09-10 Thread Mike Fikes
Yehonathan, Any ClojureScript REPL derived from the shipping REPLs is capable of showing compiled JS for a form via the :repl-verbose option. See https://github.com/clojure/clojurescript/wiki/REPL-Options#repl-verbose and here is some non-normative exposition on the option:

Re: [ClojureScript] Easiest way to compile cljs live

2015-09-12 Thread Mike Fikes
>> (no autocomplete etc). >> >> The features for compiling and update client side cljs is really really good. >> >> https://github.com/bhauman/lein-figwheel >> >> Den 11 sep 2015 04:22 skrev "Mike Fikes" <mikef...@gmail.com>: >

Re: [ClojureScript] self-hosted defmacro

2015-09-13 Thread Mike Fikes
Self-hosted ClojureScript supports defmacro in the same way that regular ClojureScript supports defmacro. In particular, macros must be defined separately from runtime code. And, perforce, macros must be written in ClojureScript (or, alternatively, they can be in a .clj file, so long as the

Re: [ClojureScript] Easiest way to compile cljs live

2015-09-10 Thread Mike Fikes
1. Are you setting :repl-options in project.clj? If so, I suspect that only affects Lein’s Clojure REPL. See https://github.com/clojure/clojurescript/wiki/Running-REPLs and, in particular, :repl-verbose true would be provided in

[ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Mike Fikes
A new site aggregating info on how to use ClojureScript with React Native: http://cljsrn.org -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Mike Fikes
gt; wrote: > > This is great, Mike - thanks! > > Are there any plans to set up an RSS/Twitter feed? (I'd be happy to pitch in > if you need any help.) > > On Thu, Oct 1, 2015 at 11:57 AM, Mike Fikes <mikefike...@gmail.com > <mailto:mikefike...@gmail.com>> wrote: > A new s

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-10-01 Thread Mike Fikes
tive. > > One question I have for you: do we need to use Reagent/Om or can we just > build plain React components (with React Native components like View, Text, > etc) using framework-less CLJS? > > Thank you again, your work is inspiring. > > Marc > > On T

[ClojureScript] [ANN] Planck 1.7

2015-10-03 Thread Mike Fikes
http://planck.fikesfarm.com New Features Support OS X 10.11 El Capitan Support OS X 10.7 Lion Support for setTimeout Errors emitted when spit and slurp fail Support terminating REPL by typing quit or exit Changes Use ClojureScript 1.7.122 Experimental analysis / compilation cache (-k option)

Re: [ClojureScript] [ANN] Planck 1.7

2015-10-04 Thread Mike Fikes
:False) > :False > cljs.user=> (if 0 :True :False) > :False > > > gvim > > > On 03/10/2015 23:19, Mike Fikes wrote: >> http://planck.fikesfarm.com >> >> New Features >> >> * Support OS X 10.11 El Capitan >> * Support OS X

Re: [ClojureScript] Planck empty string and 0 truthiness seems to be broken

2015-09-26 Thread Mike Fikes
gt; wrote: > > I don't really understand how it all works :) but for feedback the Node REPL > which comes with a clean `lein new mies app` is not affected. > > gvim > > > > On 26/09/2015 22:56, Mike Fikes wrote: >> Right, >> >> This also affects http:/

Re: [ClojureScript] Planck empty string and 0 truthiness seems to be broken

2015-09-26 Thread Mike Fikes
Right, This also affects http://clojurescript.net , Joel Martin’s Node bootstrapped ClojureScript REPL and David's http://swannodette.github.io/2015/07/29/clojurescript-17/ (try (if 0 (prn 1) (prn 2)) in

[ClojureScript] Re: macros in pure clojurescript

2015-12-12 Thread Mike Fikes
See the last two items in the FAQ at https://github.com/clojure/clojurescript/wiki/Bootstrapped-ClojureScript-FAQ -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups

[ClojureScript] Re: Problem with including JSX in Clojurescript build as a foreign library

2015-12-12 Thread Mike Fikes
Hi Timur, Have you set up a defmethod js-transforms for :jsx (the value specified in :preprocess)? - Mike -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups

[ClojureScript] Re: Can not "require" om.next in clojureScript (in clojurescript)

2015-12-12 Thread Mike Fikes
Hi Zubair, I don't know the root cause of that, other than could be similar to https://github.com/mfikes/planck/issues/158 But, ignoring that, in order to (require 'om.next), it will have to (require-macros 'om.next) and if you look into om/next.clj, you'll see that it requires cljs.core,

Re: [ClojureScript] [ANN] ClojureScript React Native: cljsrn.org

2015-12-12 Thread Mike Fikes
> One question I have for you: do we need to use Reagent/Om or can we just > build plain React components (with React Native components like View, Text, > etc) using framework-less CLJS?  You don't need a ClojureScript library like Reagent or Om to act as a React binding to work with React

Re: [ClojureScript] Re: cljs.analyzer: how to use it?

2015-12-12 Thread Mike Fikes
There are a couple of ways to make use of macros in cljs.js. One would be to put the macros in a namespace and use cljs.js to require that namespace as a macros namespace. This would involve using cljs.js/*load-fn* to provide the source in the macro namespace. Then you can subsequently use

Re: [ClojureScript] Re: ANN: ClojureScript 1.9.14, clojure.spec port

2016-06-02 Thread Mike Fikes
Hey Shaun, It has been. It is cljs.spec.impl.gen - Mike > On Jun 2, 2016, at 9:32 AM, Shaun LeBron wrote: > > Great stuff, thanks! I'm not familiar, but is the `clojure.spec.gen` > namespace going to be ported? > > On Wednesday, June 1, 2016 at 1:01:58 PM UTC-5,

[ClojureScript] [Ann] Planck 2.0 alpha: Linux

2016-06-17 Thread Mike Fikes
. - Mike Fikes -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [ClojureScript] core.matrix in the browser!

2016-01-16 Thread Mike Fikes
raffic for the mailing list. - Mike Fikes > On Jan 16, 2016, at 5:30 PM, j...@thinktopic.com wrote: > > Hi Clojurescripters, > > I've been chipping away on core.matrix support for Clojurescript, but I > could use some help figuring out some final macro issues that are breaking > th

Re: [ClojureScript] core.matrix in the browser!

2016-01-16 Thread Mike Fikes
expand to a form that makes use of a helper function, make-exception, or some such, where two versions of that function exist, one in the Clojure runtime code and one in the ClojureScript runtime code. - Mike > On Jan 16, 2016, at 7:58 PM, Mike Fikes <mikefike...@gmail.com> wrote: >

[ClojureScript] Re: Self-hosted ClojureScript vs. cljs.user namespace

2016-02-25 Thread Mike Fikes
Yeah, cljs.js defaults to cljs.user, but generally self-host environments ensure that any namespace they are issuing forms in are defined. If you have an `in-ns` REPL special, a user could switch to an entirely different namespace, and then you would pass in :ns, but you'd still need to ensure

Re: [ClojureScript] [Ann] Planck 1.9

2016-01-25 Thread Mike Fikes
Yeah, I’d like Planck to work on Linux, but I haven’t been focused on it as a high priority. > On Jan 25, 2016, at 4:21 AM, Karel Miarka wrote: > > On Monday, January 25, 2016 at 10:16:34 AM UTC+1, Karel Miarka wrote: >> I'm just curious if there is any chance to run it

Re: [ClojureScript] Re: cljs.analyzer: how to use it?

2016-01-20 Thread Mike Fikes
Hi Andray, Can you provide an example. FWIW this is working for me: foo.core=> (cljs/eval-str st "(defn square [x] (* x x))" 'test {:eval cljs/js-eval} cb) #object[cljs$user$square "function cljs$user$square(x){ return (x * x); }"] nil foo.core=> > > Hi, Maria! > > I tried to eval

Re: [ClojureScript] Trivial self-hosted cljs example in node.js not working

2016-02-18 Thread Mike Fikes
Hey Nikita, Please give ClojureScript master a try. Two patches have landed there for CLJS-1541 and CLJS-1565 which are likely related to what you are seeing. - Mike > On Feb 18, 2016, at 3:05 AM, Nikita Beloglazov wrote: > > Hi > > I'm compiling cljs from cljs using

[ClojureScript] Re: Using require-as with include-macros in self-hosted js

2016-02-20 Thread Mike Fikes
Hi Nikita, It is a known issue with a fix. I'd recommend trying the second patch in http://dev.clojure.org/jira/browse/CLJS-1521 and, if it works for you, please add a comment to the ticket to that effect. Also, as an aside, the way the my.foo ns form is structured, it will require the

[ClojureScript] Re: Using require-as with include-macros in self-hosted js

2016-02-20 Thread Mike Fikes
Hi Nikita, Thanks for the comment in the ticket! (I'm sure such comments are immensely helpful to David when ascertaining patch validity.) You are right about the loading twice. It will also result in populating 'my.bar and 'my.bar$macros namespace entries in the compiler state, but, as you

[ClojureScript] Re: Using require-as with include-macros in self-hosted js

2016-02-20 Thread Mike Fikes
There are a few fundamental facts that shape my thinking on this question: 1) .clic files are the only place reader conditionals are allowed. [1] 2) When code is compiled using bootstrapped ClojureScript, the :cljs branch is always followed. 3) In bootstrapped ClojureScript, .cljc is used only

[ClojureScript] Re: Using require-as with include-macros in self-hosted js

2016-02-21 Thread Mike Fikes
Hi Nikita, That's interesting. Things work for me (details below). A couple notes: 1) Since quil.sketch requires macros from its own namespace, consuming namespaces like quil.core get them for free. In other words, no need to add :include-macros true when requiring quil.sketch. If you do (doc

[ClojureScript] [Ann] Planck 1.10

2016-03-03 Thread Mike Fikes
Planck 1.10 has been released. http://planck-repl.org New Features Bundle port of cljs.test for use in bootstrap (post ) Colors (with light and dark theme) (post

[ClojureScript] Re: cljs.js/eval and functions/macros defined in user/custom namespace

2016-04-02 Thread Mike Fikes
Hi Olek, The first argument to `eval`—the compiler state—would need to have metadata regarding your `sstr` function. Since the state is empty, you run into a problem. (As a quick aside, there is no need to write your own `eval-str` that calls `eval`—one exists in `cljs.js`.) Frequently, for

[ClojureScript] [Ann] Planck 1.11

2016-04-25 Thread Mike Fikes
Planck 1.11 has been released http://planck-repl.org New Features A quiet mode that disables banner and other output Support for clojure.core.reducers Ability to use cljs.js itself within Plank via planck.core/init-empty-state Autocompletion on commonly used keywords and other autocomplete

[ClojureScript] [Ann] Andare: core.async for bootstrap ClojureScript

2016-05-21 Thread Mike Fikes
to run the core.async unit tests in a Node.js bootstrap ClojureScript environment. (The tests also pass if loaded and executed in Planck.) - Mike Fikes -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you

[ClojureScript] [Ann] Planck 1.12

2016-05-16 Thread Mike Fikes
Planck 1.12 has been released. http://planck-repl.org New Features Pretty print REPL results using Fipp with syntax highlighting A new planck.http namespace supporting get and post Support :foreign-libs in deps.cljs embedded in JARs Support re-configuring control keys

Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-05-14 Thread Mike Fikes
On Tuesday, December 15, 2015 at 8:54:21 AM UTC-5, Zubair Quraishi wrote: > Hi Mike, > I took a quick look. Really happy that you are actively working on this too. > When do you think a stable will be released? Just a ballpark figure I mean, > so that I can plan around it? > thanks > Zubair Hi

Re: [ClojureScript] compile static-fns

2016-04-14 Thread Mike Fikes
Yehonathan, here is a post giving an example of what can go wrong with static-fns at the REPL: http://blog.fikesfarm.com/posts/2016-04-14-static-free-clojurescript-repl.html -- Note that posts from new members are moderated - please be patient with your first post. --- You received this

Re: [ClojureScript] How can I get core.async to work in Cljs in Cljs

2016-07-05 Thread Mike Fikes
> i know I have been pushing for core.async to be pushed into master but I have > since changed my mind as i have seen that running macros in bootstrapped > clojurescript is very slow Hey Zubair, For a library of the size of `core.async`, I’d recommend making use of bootstrapped

Re: [ClojureScript] Clojurescript exec shell command

2017-02-21 Thread Mike Fikes
Hi Max, If you can do this at compile time, you could embed this logic in a macro, where Java capabilities are available. Otherwise, you’d need to rely on facilities provided in your JavaScript environment for launching executables, and invoke those facilities using JavaScript interop. (For

Re: [ClojureScript] ClojureScript Compilation via Command Line

2016-08-15 Thread Mike Fikes
In the interim, you can pass multiple -e expressions, one for each form that would be in the build file you'd hypothetically be evaluating. For example: java -cp cljs.jar:src clojure.main -e "(require 'cljs.build.api)" -e '(cljs.build.api/build "src" {:output-to "out/main.js"})' -- Note that

Re: [ClojureScript] Getting ClojureScript running on Google Apps Script servers

2016-09-07 Thread Mike Fikes
Hi John, You’ll have to arrange in some way to create a namespace so that defs work. While the cljs.user namespace is the default namespace when :ns is not specified, it is not automatically created for you. Here is a way to do it directly in the script: function evalstr() {

[ClojureScript] Re: Differences in emitted javascript for recursive function definitions

2016-10-22 Thread Mike Fikes
Hi Aravindh, What you show has similarities to the concepts described in http://dev.clojure.org/jira/browse/CLJS-1495 FWIW. - Mike -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the

[ClojureScript] Re: self-hosted clojurescript eval-str and load-fn cljsjs dependencies

2018-04-07 Thread Mike Fikes
The answer to this can be pretty involved, so I'll just direct you to Planck, which sets things up for deps.cljs files embedded in JARS on the classpath around here https://github.com/mfikes/planck/blob/51b88aac41c77207f25eaefd5cd4a66ccb8fb17f/planck-cljs/src/planck/js_deps.cljs#L59 and with

[ClojureScript] Replete 2.0 open beta (with Android support)

2019-01-19 Thread Mike Fikes
Help beta test Replete 2.0, which now supports Android! We also have a spiffy new icon! Replete is a ClojureScript REPL for mobile devices. Join the open beta: Android: https://play.google.com/apps/testing/com.fikesfarm.Replete iOS: https://testflight.apple.com/join/yfsQO4yx - Mike -- Note

[ClojureScript] ANN: Replete 2.0

2019-03-16 Thread Mike Fikes
Replete 2.0 has been released. Replete is a ClojureScript REPL for mobile devices. Now supports Android! (Kudos to Roman Liutikov for the work done here.) New features include replete.core, replete.io, and replete.http namespaces. Replete 2.0 has a cool new icon. (Thanks to George Farro!) And

[ClojureScript] [ANN] CLJS Bean: Clojure's bean function for ClojureScript

2019-06-15 Thread Mike Fikes
https://github.com/mfikes/cljs-bean Like clojure.core/bean, but for ClojureScript. (require '[cljs-bean.core :refer [bean]]) (bean #js {:a 1, :b 2}) ;; => {:a 1, :b 2} This lets you interoperate with JavaScript objects in an idiomatic fashion, while being an order of magnitude faster than