Re: Writing an Android application with Clojure

2017-09-02 Thread Didier
Well, in the last 2 years I think React Native has grown quite a bit. I 
think if you target Android only, and you need performance, like a game, 
going with Java/C is best, or just Unity.

But ClojureScript with ReactNative is great for iOS + Android compatibility 
for more normal apps.

I don't think Clojure for native is a great experience, you can experiment 
with it, but I wouldn't use it for a real commercial app.

On Saturday, 2 September 2017 00:59:36 UTC-7, Cecil Westerhof wrote:
>
> 2017-08-31 14:46 GMT+02:00 Luke Gessler >
> :
>
>> Check out cljsrn .
>>
>
> ​Thanks, but from https://www.youtube.com/watch?v=mVXTcAEKgF8 I 
> understood it is better to go native.​
>  
>
>  
>
>> On Thursday, August 31, 2017 at 5:45:08 AM UTC-5, Cecil Westerhof wrote:
>>>
>>> It has been a while that I worked with Clojure and I want to pick it up 
>>> again. I also want to pick up Android programming. (That is new for me.) I 
>>> am thinking about doing those together. Would that be doable?
>>> Also is writing Android applications with Clojure still viable? Because 
>>> the Clojure-Android mailing-list is very silent.
>>>
>>
> -- 
> Cecil Westerhof
>

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-02 Thread James Reeves
On 2 September 2017 at 05:06, Rostislav Svoboda  wrote:

> > identity isn't a boolean, so neither true? nor false? should return true
> for it
>
> But then why it should return 'false'?


Because you're asking, "Is identity the boolean value true?", and Clojure
is telling you, "False, it's a function".

Then you ask "Is identity the boolean value false?", and clojure replies,
"Also false, it's still a function.".

Then finally you ask, "Is false equal to false?" and Clojure says, "True."

-- 
James Reeves
booleanknot.com

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-02 Thread Colin Yates
A more revealing name for 'true?' and 'false?' would be
'boolean-which-equals-true?' and 'boolean-which-equals-false?'. Since
the 'identity' function isn't a boolean both functions return 'false',
and '(= false false)' is 'true'.

'(true? (true? identity) (false? identity))' would return, you guessed
it, 'true'.

A more revealing name for the _implementation_ you assumed 'true?' and
'false?' had would be 'truthy?' and 'falsey?'

HTH.

On 2 September 2017 at 04:43, Rostislav Svoboda
 wrote:
> Hi, can anybody explain it please?
>
> $ java -cp clojure-1.8.0.jar clojure.main
> Clojure 1.8.0
> user=> (= (true? identity) (false? identity))
> true
>
> And in 1.9.0-alpha19 it behaves the same.
>
> thx Bost
>
> --
> 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 this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Writing an Android application with Clojure

2017-09-02 Thread Cecil Westerhof
2017-08-31 14:46 GMT+02:00 Luke Gessler :

> Check out cljsrn .
>

​Thanks, but from https://www.youtube.com/watch?v=mVXTcAEKgF8 I understood
it is better to go native.​




> On Thursday, August 31, 2017 at 5:45:08 AM UTC-5, Cecil Westerhof wrote:
>>
>> It has been a while that I worked with Clojure and I want to pick it up
>> again. I also want to pick up Android programming. (That is new for me.) I
>> am thinking about doing those together. Would that be doable?
>> Also is writing Android applications with Clojure still viable? Because
>> the Clojure-Android mailing-list is very silent.
>>
>
-- 
Cecil Westerhof

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Clojure 1.9.0-alpha19

2017-09-02 Thread Rostislav Svoboda
Next time I'll send you the Contributor Agreement and a pull request
just to get to the list of contributors :)

2017-09-02 5:45 GMT+02:00 Alex Miller :
> Due to the new dependence on external jars, these instructions will be 
> different in Clojure 1.9. We will be providing additional tooling to make 
> this easier but that's still a work in progress.
>
> --
> 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 this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SRSLY? (= (true? identity) (false? identity)) => true

2017-09-02 Thread Rostislav Svoboda
Aaaah! :)
My math books say booleans can't be true and false in the same time.
I made a mistake assuming that the identity function just because it
exists somewhere as an object in the memory is of a boolean type and
as such it's boolean value is true. Well, everybody here - thank you!

Just for the record: The type of:
- function 'identity' is "function with type signature: Any -> Any"
- functions: 'true?, false?, not'  is "function with type signature:
Any -> Boolean"

So following evaluations are perfectly valid:
(true? identity) -> false
(false? identity) -> false
(not identity) -> false

These functions should not be expected produce the boolean opposite of
each other's result, even if it's a bit strange at the first glance.

-- 
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 this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.