Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Steve Tickle
In the upcoming IOS8, UIWebView has the same (JITed) performance as the Safari, the distinction has been removed due to using the new inter-app communication mechanism. This allows the remote application (Safari/JavascriptCore/UIWebView) to display a view into another process, thus bypassing the no

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Omer Iqbal
I believe you're right Colin. JavaScriptCore doesn't use the JIT compiler [1]. There might be a possibility of that changing though 1. http://phoboslab.org/log/2011/04/ios-and-javascript-for-real-this-time On Wed, Jun 25, 2014 at 6:13 AM, Colin Fleming wrote: > Mike's doing all the hard work o

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Colin Fleming
Mike's doing all the hard work on this :-) Very interesting project - CLJS may be a viable option for iOS app development, which is pretty exciting stuff. One thing I dimly remember from somewhere (HN, maybe) was that JavaScriptCore apps wouldn't get JIT'ed, because iOS apps have no access to exe

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Mike Fikes
Thanks David! Targeting ClojureScript to iOS just got an order of magnitude easier for me. I want to say that Colin Fleming (Cursive) has been extremely helpful in helping me sort out how to achieve this. -- You received this message because you are subscribed to the Google Groups "Clojure" gr

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread David Nolen
Nothing to add other than to say this is really cool stuff :) David On Tue, Jun 24, 2014 at 2:29 PM, Mike Fikes wrote: > (Apologies to Greg for having essentially hijacked this thread, but I > suspect he'd find this cool.) > > I have no experience with the Swift REPL yet, but I'm still finding

using a private constructor...

2014-06-24 Thread Jules
Guys, I'm looking for a way to call private/protected ctors/methods in a performant manner from Clojure. I could probably work around my usecases if I coded in Java, but I would rather not add another compile stage to my project unless I absolutely have to... I am currently using reflection a

RE: leiningen project hooks

2014-06-24 Thread Phillip Lord
Ah, eval-in-leiningen I didn't know. Googling that also suggests I can use .lein-classpath, then write what is effectively a local plugin which seems a simpler option still. Thanks! Phil From: clojure@googlegroups.com [clojure@googlegroups.com] on beh

Functional Programming Job @swirrl

2014-06-24 Thread Rick Moynihan
Hi all, We're currently on the lookout for a new Software Engineer to join myself and our team at Swirrl ( http://www.swirrl.com/ ). Though we're predominantly a Ruby on Rails shop, we've recently started building two significant parts of our product offering in Clojure; so anyone with Clojure/FP

Re: Clojure on iOS devices - Swift as a host?

2014-06-24 Thread Mike Fikes
(Apologies to Greg for having essentially hijacked this thread, but I suspect he'd find this cool.) I have no experience with the Swift REPL yet, but I'm still finding this a little surreal: (I

Re: Game logic with Clojure

2014-06-24 Thread blake
I started with "Caves of Clojure"; I'm not sure I'd recommend it as a first thing. Also, as great as it is, it's unfinished, and it stops right where the design gets hard. Or at least the part that I'd consider hard. (Traditional roguelikes have 2D maps but Mr. Losh opts for a 3D map, a la Dwarf F

How to serve static assets (packaged by lein ring uberjar) with Nginx

2014-06-24 Thread Limbo Peng
Hi all, If I got it right, static assets (i.e.: CSS / js / images) are supposed to be at the resources/ directory, which will be packaged inside a jar together with application code during lein ring uberjar. And if I got it right again, I need only upload this single jar to my server - where I

Re: leiningen project hooks

2014-06-24 Thread Jason Felice
I didn't think of that. In my case, it was in a plugin. I bet it would work if you set :eval-in-leiningen to true. Plugins are also pretty easy to write. I'm not sure you need the lien exec plugin... an alias for ["run" "-m" "foo.bar/baz"]? On Tue, Jun 24, 2014 at 12:03 PM, Phillip Lord w

Re: leiningen project hooks

2014-06-24 Thread Phillip Lord
But where did you define the hook? In the project itself. My current best solution to this problem is to use an alias and the lein-exec plugin so I have a sort of working solution now, but I'd still like it to be a bit slicker if possible. Phil Jason Felice writes: > I think this approach sho

Re: leiningen project hooks

2014-06-24 Thread Jason Felice
I think this approach should work. When I've specified hooks in this way, I've specified the function name as well... e.g.: `:hooks [skeletor-clojure.hooks/add-revision-to-config.clj]` (don't let the `.clj` confuse you, the function name is _actually_ `add-revision-to-config.clj`). On Fri, Jun

Re: Output of printf is buffered

2014-06-24 Thread Andy Fingerhut
It is an annoying behavior. I'm not sure it is a bug. If you wanted Clojure's printf to flush on every newline character it issues, it would have to somehow scan through the output stream of characters _after_ they have been formatted to see if there was a newline character anywhere in there, and

Re: Output of printf is buffered

2014-06-24 Thread Seth Yuan
Yeah, this is definitely an annoying bug. On Thursday, April 10, 2014 8:03:02 PM UTC+8, Kevin Ilchmann Jørgensen wrote: > > nREPL server started on port 53667 on host 127.0.0.1 > REPL-y 0.3.0 > Clojure 1.5.1 > Docs: (doc function-name-here) > (find-doc "part-of-name-here") > Sourc

Re: IntelliJ Cursive ClojureScript IDE slowdown

2014-06-24 Thread Mike Fikes
Thanks. You're all awesome! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from thi

Re: IntelliJ Cursive ClojureScript IDE slowdown

2014-06-24 Thread Colin Fleming
The fix for this problem (assuming the bug that Ewen identified is the real culprit) is in from idea/135.930, which means it should go into IntelliJ 13.1.4. On 22 June 2014 15:03, Colin Fleming wrote: > Hmm, that bug looks like a likely candidate. It's actually marked as > fixed, but only in th

Re: Leiningen Clojure REPL in Windows doesn't accept arrow keys.

2014-06-24 Thread Taegyoon Kim
Arrow keys work on the latest version! Yay! nREPL server started on port 58049 on host 127.0.0.1 - nrepl://127.0.0.1:58049 REPL-y 0.3.1 Clojure 1.6.0 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-o