Fork me on GitHub
#off-topic
<
2017-12-28
>
sudakatux14:12:54

how can i get invited to clojure-android channel if there is one

sudakatux14:12:56

im trying to follow a totorial and it seems to me its outdated

sudakatux14:12:25

the project hasnt been updated for a while and im wondering if its still a thing

spinningtopsofdoom14:12:49

The #clojure-android channel is public, you can join without being invited.

spinningtopsofdoom14:12:19

As far as Clojure on android goes I've seen more activity of Clojure on Android through ClojureScript and React Native then JVM Clojure

lewix16:12:24

Happy holidays everybody

sudakatux16:12:44

Thank u verry much

sudakatux16:12:48

yeah i wanted to do somehting really simple not really uish just looking to convert sms to json and send it to a server

sudakatux16:12:16

since im a clojure noob thought it was a good idea to do it in Clojure

akiroz17:12:29

@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....

akiroz17:12:40

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.

jgh17:12:07

is it running jvm on top of dalvik?

akiroz17:12:28

dalvik IS a JVM implementation

jgh17:12:57

yeah it is, but you know it’s different enough that google won that battle 😉

akiroz17:12:20

um... yeah, actually I thought they dropped dalvik years ago in favour of ART too...? (I could be wrong, not an Android expert)

jgh17:12:13

im not sure tbh, neither am i

jgh17:12:21

most of my android experience is ndk

akiroz17:12:48

most of mine is react native 😄

akiroz17:12:45

@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.

jgh17:12:28

ok, well at least it isnt jvm running on dalvik heh

noisesmith18:12:28

the salient point is that dalvik is different enough that clojure-android needs to be a fork of clojure

noisesmith18:12:47

and to get a lot of stuff to work you need to do interop that would not be needed with a normal jvm

noisesmith18:12:13

last I checked clojure-android didn’t support clojure 1.8 yet, not to mention 1.9

noisesmith18:12:00

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

souenzzo19:12:19

I'm with eyes on http://nas.sr/magic/ for clojure on other targets...

noisesmith19:12:25

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

noisesmith19:12:08

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

jgh19:12:43

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”

noisesmith19:12:44

yeah the effort / payoff ratio for that kind of thing is a bit dismal for pragmatic purposes

qqq19:12:26

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?

dpsutton19:12:31

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".

noisesmith19:12:12

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”

noisesmith19:12:03

whereas fireplace uses vi navigaiton concepts natively so it uses the sexp contained by the ) or ( under cursor

qqq19:12:11

seems like (setq evil-move-cursor-back nil) is the easiest fix

noisesmith19:12:21

oh, makes sense they would have a config for that

qqq19:12:32

it places a virtual char at end of line, so one can be 'one char behind the offending )'

noisesmith19:12:43

but it sucks you have to get vim incompatible behavior in order for cider to behave properly

noisesmith19:12:18

I would be distracted by the extra fake cursor position and think it was a white space error in my code

qqq19:12:19

for something called evil and as messy as tgetting vi emulationg to work in emacs, I can accept these warts

noisesmith19:12:28

haha fair enough

seancorfield20:12:03

(stuff like that is why I'm happy I'm using Atom/ProtoREPL instead 😈 )

noisesmith20:12:07

you kids with your new fangled browser toolkit based editors

dominicm20:12:05

I mean, emacs is built with a web browser built in now (chrome)

dominicm20:12:18

So it's only vim left? 😄

noisesmith20:12:12

out of the ones anybody actually uses, I guess so

bozhidar20:12:30

@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. 😉

jgh20:12:59

i use sublime, it’s still c++ 😛

jgh20:12:43

sometimes i use atom but i have the font set to comic sans to remind me where i am

jgh20:12:26

although proto repl does look neat

jgh20:12:37

i just wonder how well it works with comic sans