This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-26
Channels
- # architecture (2)
- # beginners (310)
- # boot (34)
- # cider (50)
- # cljs-dev (82)
- # cljsrn (1)
- # clojure (125)
- # clojure-dusseldorf (1)
- # clojure-hamburg (1)
- # clojure-italy (47)
- # clojure-russia (21)
- # clojure-spec (38)
- # clojure-uk (36)
- # clojurescript (200)
- # community-development (21)
- # cursive (10)
- # datomic (15)
- # duct (58)
- # emacs (20)
- # fulcro (10)
- # funcool (1)
- # graphql (2)
- # hoplon (6)
- # jobs (1)
- # lumo (12)
- # mount (20)
- # off-topic (14)
- # om (5)
- # portkey (43)
- # protorepl (2)
- # re-frame (31)
- # reagent (36)
- # ring (17)
- # ring-swagger (6)
- # shadow-cljs (50)
- # spacemacs (9)
- # sql (5)
- # tools-deps (28)
- # uncomplicate (4)
- # unrepl (5)
- # vim (2)
- # yada (2)
mawnmawn
Morning ✨ ☕ ✨
morning all!
rcfotd:
-------------------------
clojure.core/subs
([s start] [s start end])
Returns the substring of s beginning at start inclusive, and ending
at end (defaults to length of string), exclusive.
Why was subs
not designed to work on sequences? What does one use to perform subs
-like operations on a sequence?
drop + take?
didn't know about subvec
, cheers @tmulvaney
iirc there are caveats with subvec
like it retains a reference to the underlying vector
It does hold a reference (preventing garbage collection) but subvec
it's O(1) space+time. The caveat is that if you are splitting a large vector v
into tiny bits with subvec
with the idea of never using v
again, you probably want to (into [] (subvec i j v))
before moving forward.
Anyone here have any recent experience of using clojure on android? Have done some quick googling but all the links that turned were from circa 2015. I cam across this https://github.com/clojure-android but it seems to have been abandoned I know there is a #clojure-android channel but that doesn't look to have any recent activity
there was a london clojurians meet up where you got to do your own android app in clojure
i think we used https://github.com/clojure-android/lein-droid
I’ve seen a talk about using http://cljsrn.org/
https://www.youtube.com/watch?v=ELM_eKZXl3M ^^ was at euroclojure 2017
lein-droid doesn't look like it's been touched for a year or so and builds are currently marked as failing so it doesn't give me a lot of confidence.
I was wondering whether people have lost interest and are using react-native instead
@shan thanks for the EuroClojure link - I'll take a look
In my case I was looking at using it on an embedded system (a robot) so react native isn't a good fit
I think cljsrn is the way to go these days... and you get iOS as well to a certain extend
@davesnowdon is the robot running Andriod?
yes, the part of the robot developers have access to is running android at least