[ClojureScript] Re: iOS app in ClojureScript

2014-09-16 Thread Dylan Butman
Hey Mike,

I haven't written anything like this yet, but I've started playing around with 
phonegap intending to use clojurescript as well. Do you have any experience 
with phonegap or cordova (the library phonegap is built on)? Is there any 
particular reason you used straight Objective-C?

On Monday, September 15, 2014 6:50:15 PM UTC-4, Mike Fikes wrote:
 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. The Objective-C is minimal, with the bulk of the implementation in 
 ClojureScript.
 
 
 
 It is a paid app—so I'm definitely not interested in promoting the app in any 
 way via this forum. Instead, I'm interested in:
 
 
 
 1) Asking whether anyone else has gone down the same road.
 
 
 
 2) Offering help to anyone who might be considering, or involved in the same.
 
 
 
 Basically, just looking to share ideas with respect to this particular use of 
 ClojureScript.

-- 
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, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.


[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 language being Objective-C, it 
is Clojure.

There are a few projects that let you produce completely native apps using 
Clojure (an ARM binary), but those appear to be “experimental.” 

With iOS 7, Apple formally supports implementing parts of an iOS app in 
JavaScript via a newly-introduced Objective-C bridge capability. That, combined 
with using ClojureScript felt like the entire stack is “supported”—at least the 
individual pieces.

An example of things that might not be possible with PhoneGap is rendering a 
table view where the data in the cells come from Core Data (using an 
NSFetchedResultsController). Another example might be the ability to 
participate in Apple's app persistence / resumption capability. I suppose 
PhoneGap could implement any of this stuff (and may already have done so).

So, I'm short, the rationale behind the approach is to take an otherwise native 
app, and simply replace bits that would normally be implemented in one 
language, with my preferred language :)

-- 
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, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.