This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-28
Channels
- # adventofcode (6)
- # beginners (61)
- # boot (1)
- # chestnut (1)
- # cider (18)
- # cljs-dev (1)
- # cljsrn (3)
- # clojure (176)
- # clojure-android (8)
- # clojure-germany (12)
- # clojure-russia (4)
- # clojure-spec (7)
- # clojure-uk (5)
- # clojurescript (28)
- # css (10)
- # cursive (36)
- # datomic (7)
- # devcards (1)
- # docs (8)
- # emacs (17)
- # fulcro (29)
- # hoplon (28)
- # lein-figwheel (3)
- # leiningen (37)
- # lumo (1)
- # off-topic (54)
- # om (6)
- # re-frame (2)
- # reitit (7)
- # ring-swagger (23)
- # shadow-cljs (115)
- # sql (10)
- # uncomplicate (1)
- # unrepl (24)
The #clojure-android channel is public, you can join without being invited.
As far as Clojure on android goes I've seen more activity of Clojure on Android through ClojureScript and React Native then JVM Clojure
yeah i wanted to do somehting really simple not really uish just looking to convert sms to json and send it to a server
@jstuartmilne yeah, biggest problem with clojure on JVM for Android is the startup time (esp on slow mobile processors). Not great UX if your app takes 5 seconds to start....
Even if thats acceptable for your application, you're gonna be writing lots of Java interop code to work with the Android API, which is somewhat painful and misses the point of using Clojure IMO... better off writing Kotlin in a functional style.
um... yeah, actually I thought they dropped dalvik years ago in favour of ART too...? (I could be wrong, not an Android expert)
@jgh ok, I just looked it up, dalvik is not a JVM. You need to translate the JVM bytecode into dalvik bytecode .dex
ahead of time.
the salient point is that dalvik is different enough that clojure-android needs to be a fork of clojure
and to get a lot of stuff to work you need to do interop that would not be needed with a normal jvm
last I checked clojure-android didn’t support clojure 1.8 yet, not to mention 1.9
in fact, the clojure-clr port of clojure to the clr microsoft environment is more compatible and complete with regular clojure than clojure-android is :P
I'm with eyes on http://nas.sr/magic/ for clojure on other targets...
yeah - magic is a special case - clojure already works 100% on clr but the language itself is not suited for game programming for the code that runs in tight loops - magic is for making code that doesn’t use gc so it can run in the graphics rendering code -which is cool but not applicable for most of our projects
I mean if I was them I would have saved my time / energy and just written some c# code for that, and used clojure-clr for the rest, but it’s cool that they made what they did
i assume, for the most part, writing games in a specific language other than what’s most compatible / performant for the platform is primarily an exercise in “can it be done”
yeah the effort / payoff ratio for that kind of thing is a bit dismal for pragmatic purposes
when using evil
, eval-last-sexp
, if the cursor is on a )
, seems to ignore the )
, evaling the sexp vefore the ), not the one including the ). Is ther ea way to change this?
https://github.com/syl20bnr/spacemacs/issues/646 <-- seems to be same problem
it's possible there is confusion about where the cursor is in emacs. if you see the blinking square on top of the )
, the cursor isn't on the )
in emacs. The point
in emacs is the left edge of the square cursor. So if the box is on the )
it is actually before it, so previous sexp would indeed be the preceeding one. You can check C-x =
to display the character code of character after point to show you what emacs is "looking at".
yeah - evil uses vi style cursor placement so I bet you need to be in insert mode after the last ) on the line to make that ) part of the “last sexp”
whereas fireplace uses vi navigaiton concepts natively so it uses the sexp contained by the ) or ( under cursor
oh, makes sense they would have a config for that
but it sucks you have to get vim incompatible behavior in order for cider to behave properly
I would be distracted by the extra fake cursor position and think it was a white space error in my code
for something called evil
and as messy as tgetting vi emulationg to work in emacs, I can accept these warts
haha fair enough
(stuff like that is why I'm happy I'm using Atom/ProtoREPL instead 😈 )
you kids with your new fangled browser toolkit based editors
out of the ones anybody actually uses, I guess so
@noisesmith Well, we can always do something about this. Obviously it’s hard for me to account for things I’m not using unless something points them out. 😉
of course