Re: Clojure/flutter

2018-06-27 Thread Gal Dolber
I don't know much about dart. But most of the work on clojure-objc
<https://github.com/galdolber/clojure-objc> was to modify the clojure
compiler to generate java instead of bytecode (and then convert the java
source code to objc). The code is now outdated, but the same approach could
be use here.

I'm not sure if a java2dart converter exists, if so, it should be trivial
to get clojure working on dart, otherwise the compiler could be modified to
generate dart directly, but then you have to write the RT in dart.

On Wed, Jun 27, 2018 at 9:41 PM vinurs zhang 
wrote:

> I'am also looking for the clojuredart so i can write flutter app with
> clojure
>
> 在 2018年4月26日星期四 UTC+8上午5:42:23,Gregg Reynolds写道:
>
>> Flutter is looking pretty good to me.  Sure would be nice to have a
>> clojure->flutter compiler. Anthing there, there?
>>
> --
> 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.
>
-- 
Gal Dolber
+1 (702) 748-9859 <+1.702.748.9859>
CTO @Zuldi

-- 
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] Datomic Cloud

2018-01-19 Thread Gal Dolber
roups.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.
>>>
>>
>>
>> --
>> 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.
>
>
> --
> 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.
>


-- 
Gal Dolber
+1 (702) 748-9859 <+1.702.748.9859>
CTO @Zuldi

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


Spec validation cache?

2016-11-15 Thread Gal Dolber
I'm having an issue with clojure.spec, its been great in more ways than I
expected but it's slowing down everything too much for development. On one
side when running the app on development with all fspecs instrumented and
on the other when running the tests.

For the first case, most of the fdef functions take the app state as the
first argument, and the app state, being a really big data structure, gets
constantly validated and re-validated, while only few parts change. So I've
been wondering if there's a way to memoize spec/valid? to speed everything
up (while sacrificing memory).

For the tests the case is different, because the app state gets generated
every time, so I don't see how this could speed them up.

I tried doing it with `with-redefs without any luck.
Any ideas? (I'm running on clojurescript)

-- 
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: Deep transients

2016-06-02 Thread Gal Dolber
Nice book! I've been looking for something like that, thanks for sharing!

On Thu, Jun 2, 2016 at 10:24 PM Colin Fleming 
wrote:

> BTW if you're interested in Specter, Brian Marick has an interesting book
> which aims to teach Specter by implementing it:
> https://leanpub.com/specter. I bought it but haven't had time to work
> through it yet, but from an initial skimming it looks very nice.
>
> On 3 June 2016 at 16:11, Mark Engelberg  wrote:
>
>> That's an interesting idea.  Maybe there's a way to build a set of
>> Specter navigators that operate on transients, and then use its
>> corresponding eqiuvalences for assoc-in, update-in, etc.
>>
>> On Thu, Jun 2, 2016 at 9:01 PM, Colin Fleming <
>> colin.mailingl...@gmail.com> wrote:
>>
>>> Have you looked at Specter? I actually don't know if it uses transients
>>> under the hood or not, or if you can make it do so, but it seems like a
>>> good fit for the data manipulation problem, at least.
>>>
>>> On 3 June 2016 at 14:43, Mark Engelberg 
>>> wrote:
>>>
 Let's say I have an object represented by a series of nested maps:

 {:a {:b 1} :c {:d 2}}

 and now I'm going to be making a whole slew of edits to the submaps.

 To do this efficiently, I need to make all the levels of the map
 transients, because any update to the inner map also updates the outer map:

 (transient {:a (transient {:b 1}), :c (transient {:d 2})})

 and then at the end I need to do a nested persistent! operation.

 However, there aren't good facilities for dealing with nested
 transients, for example, there's no assoc!-in.  So it's a real pain to work
 with.

 Has anyone dealt with this already, and developed a suite of tools for
 working with nested transients, or other techniques for making batch
 updates efficient for deeply nested objects?

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

-- 
You received this message because you are 

ANN: clojure-objc 1.7.0-RC1

2015-06-07 Thread Gal Dolber
## Dependencies
https://github.com/galdolber/clojure-objc
[galdolber/clojure-objc 1.7.0-RC1]

https://github.com/galdolber/lein-objcbuild
[lein-objcbuild 0.1.9]

## Changes
* Sync with clojure 1.7.0-RC1
* Consistent anonymous functions naming to prevent cascade changes,
resulting on faster incremental compiles
* lein-objcbuild https://github.com/galdolber/lein-objcbuild can now
build standalone binaries, making it possible to write native command line
and desktop apps in clojure for any platform.

## Sample console app
https://github.com/galdolber/cljobjc
$ time ./cljobjc some parameter
[./cljobjc some parameter]
real 0m0.150s
user 0m0.080s
sys 0m0.062s

As always feedback welcome!

-- 
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-objc 1.7.0-beta2

2015-05-07 Thread Gal Dolber
I have 2 apps in production, but they are enterprise apps so they are not
in the AppStore.
There are many apps built with j2objc in the AppStore already, and
internally this is just that, it generates objc code and it doesn't violate
any Apple terms. Inbox by Google and Google Sheets are built with j2objc.

At this point I consider it production ready, we've been using it for a
year, all of Clojure is working, this is not a small subset of features, j2objc
matured a lot since the first release, there are no memory leaks and we
haven't seen a crash in months.

Incremental compilation and the REPL changed the game for the development
experience. You can now do interactive REPL development on iOS, and I'm
biased, but it is better and faster than swift.

On Thu, May 7, 2015 at 3:40 PM Rangel Spasov raspa...@gmail.com wrote:

 Have you built or released on the App Store any apps using this? I'm just
 wondering if you'd classify it as feature complete and ready to use or
 it's more in the experimental phase.


 On Thursday, May 7, 2015 at 11:32:20 AM UTC-7, Gal Dolber wrote:

 Thanks! Yes, thats the project from Google that translates java to objc

 On Thu, May 7, 2015 at 3:23 PM Rangel Spasov rasp...@gmail.com wrote:

 This is very cool! I saw some references to
 https://github.com/google/j2objc - is that what the project uses to do
 the Java - ObjC?



 On Wednesday, May 6, 2015 at 8:13:10 PM UTC-7, Gal Dolber wrote:

 Clojure-objc, the Clojure compiler that targets objc runtimes.

 clojure-objc https://github.com/galdolber/clojure-objc 1.7.0-beta2

-

Sync with clojure 1.7.0-beta2
-

Remote REPL fully working
-

Use the same hashing on NSString as java.lang.String to enable
‘case’
-

Almost all tests were transcompiled and pass on objc
-

Include j2objc in the releases

 lein-objcbuild https://github.com/galdolber/lein-objcbuild 0.1.5

-

Incremental compilation of functions
-

Automatically manage and download all the release binaries

 clojure-objc-sample https://github.com/galdolber/clojure-objc-sample

-

Use uikit https://github.com/galdolber/uikit
-

Add sample code to use the Remote REPL


 Now it's very easy to get started, the lein plugin is doing all the
 heavy lifting.

 Here's a quick screencast of the plugin and the REPL
 https://github.com/galdolber/lein-objcbuild/blob/master/README.md
 https://github.com/galdolber/clojure-objc-sample/raw/master/ios.gif


 Feedback is welcome!

  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.

 To post to this group, send email to clo...@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+u...@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+u...@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: ANN: clojure-objc 1.7.0-beta2

2015-05-07 Thread Gal Dolber
Thanks! Yes, thats the project from Google that translates java to objc

On Thu, May 7, 2015 at 3:23 PM Rangel Spasov raspa...@gmail.com wrote:

 This is very cool! I saw some references to
 https://github.com/google/j2objc - is that what the project uses to do
 the Java - ObjC?



 On Wednesday, May 6, 2015 at 8:13:10 PM UTC-7, Gal Dolber wrote:

 Clojure-objc, the Clojure compiler that targets objc runtimes.

 clojure-objc https://github.com/galdolber/clojure-objc 1.7.0-beta2

-

Sync with clojure 1.7.0-beta2
-

Remote REPL fully working
-

Use the same hashing on NSString as java.lang.String to enable ‘case’
-

Almost all tests were transcompiled and pass on objc
-

Include j2objc in the releases

 lein-objcbuild https://github.com/galdolber/lein-objcbuild 0.1.5

-

Incremental compilation of functions
-

Automatically manage and download all the release binaries

 clojure-objc-sample https://github.com/galdolber/clojure-objc-sample

-

Use uikit https://github.com/galdolber/uikit
-

Add sample code to use the Remote REPL


 Now it's very easy to get started, the lein plugin is doing all the heavy
 lifting.

 Here's a quick screencast of the plugin and the REPL
 https://github.com/galdolber/lein-objcbuild/blob/master/README.md
 https://github.com/galdolber/clojure-objc-sample/raw/master/ios.gif


 Feedback is welcome!

  --
 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: [ANN] Arcadia, the integration of Clojure and Unity3D

2014-10-17 Thread Gal Dolber
very impressive! congrats!

On Fri, Oct 17, 2014 at 4:13 PM, kovas boguta kovas.bog...@gmail.com
wrote:

 Congrats!

 On Fri, Oct 17, 2014 at 3:09 PM, Tims Gardner timsgard...@gmail.com
 wrote:
  Ramsey Nasser and I are excited to announce the alpha release of Arcadia,
  the integration of Clojure 1.7 into the Unity3D game engine and
 development
  platform.
 
  Based on Clojure's CLR branch, Arcadia compiles to optimized bytecode,
 with
  performance suitable for general game development. It includes a
 networked
  REPL that can be targeted by arbitrary editors, and provides
 functionality
  for fast, bidirectional conversion between Unity objects and persistent
  Clojure data. It has confirmed export for Windows, Linux, and OSX, and
  aspires to export for iOS, Android, PlayStation, Xbox, and the web.
 
  Arcadia lives at https://github.com/arcadia-unity/Arcadia. For now, the
 best
  way to get started is by cloning the repo. A brief screencast on getting
 set
  up is here.
 
  Arcadia's blog is here. The mailing list is here.
 
  Unity3D can be obtained (for free!) at http://unity3d.com/.
 
  Our StrangeLoop presentation on Arcadia (then known as Clojure-Unity) is
  here.
 
  Acknowledgements ---
 
  We're very grateful to the many people who helped with this project. We
 owe
  special thanks to our studiomates Kovas Boguta and David Nolen, and
 honorary
  studiomates Brandon Bloom and David Lansdowne, for their invaluable
 advice
  and support. We're especially fortunate to have attracted the attention
 of
  Joseph Parker, who has been building amazing things with Arcadia since it
  was a sloppy hack hidden on Github. We owe the name to the generous and
  urbane Zach Tellman, without whom this project would probably be called
  Clunity.
 
  Super special thanks to David Miller and the Clojure-CLR community. David
  has maintained a fully-loaded port of Clojure to the CLR runtime for five
  years. His amazing work and ongoing support made Arcadia possible. We're
  humbled by the astounding quality of a Clojure implementation with
  relatively few users, and would be honored if integration with Unity
 brings
  it more attention.
 
  - Tims Gardner
 
  --
  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.


-- 
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: Clojure on iOS devices - Swift as a host?

2014-06-11 Thread Gal Dolber
I've been writing iOS apps in clojure for some time now. Believe me when I
say that Interface Builder is the least of your problems. I wrote a small
lib https://github.com/galdolber/uikit to generate iOS interfaces from
clojure data structures.
Aside from being able to compose ui like never before, Interface Builder
gives you limited access to Apple's amazing Auto Layouts. Once you have
full access to it, it's amazing what you can do.

Now, all that said, I don't see why you could not have binding to work with
Interface Builder.


On Wed, Jun 11, 2014 at 5:43 PM, Hussein B. hubaghd...@gmail.com wrote:

 The idea of having lisp on iOS (and OS X) is really awesome but there is a
 huge downside:
 That won't integrate with Xcode Interface Builder out of the box. That
 would be the deal breaker.


 On Wednesday, June 4, 2014 3:20:22 PM UTC+2, Greg Knapp wrote:

 The recent release of Swift made me revisit Clojure on LLVM. This post
 from 2010
 https://groups.google.com/d/msg/clojure/KrwtTsdYZ8I/Qf8PSMeoZCUJ
 suggests it's a very difficult task.

 Swift would make this job easier? As with ClojureScript, generate Swift
 code / provide interop and Clojurian's can produce native iOS apps?

 Perhaps the biggest hole to be filled would be tooling (Xcode is not
 Clojure/Lisp friendly? i.e. no playground support)

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


Clojars is down?

2014-03-31 Thread Gal Dolber


-- 
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: Clojars is down?

2014-03-31 Thread Gal Dolber
nevermind


On Mon, Mar 31, 2014 at 4:00 PM, Gal Dolber g...@dolber.com wrote:




-- 
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: Leiningen Survey

2014-03-26 Thread Gal Dolber
How do I turn on auto-cleaning of transitively-compiled .class files?


On Wed, Mar 26, 2014 at 3:34 PM, Hoàng Minh Thắng p...@banphim.net wrote:

 Hey Phil,
 What do you mean unmanaged jars in the question What annoys you about
 Leiningen?

 --
 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: expectations 2.0 has been released

2014-03-13 Thread Gal Dolber
Looks great! thanks for sharing


On Thu, Mar 13, 2014 at 6:25 AM, Jochen joc...@riekhof.de wrote:

 Hi Jay...

 thanks for all the great new features.

 There is just one strangeness I have, exceptions seem not to work with
 more-, but did with given.
 E.g.
 (expect (more- false identity
 AssertionError assert)
 false)

 fails with reporting

  failure in ( sample_test.clj:4) : sample-test
   (expect (more- false identity AssertionError assert) false)
 exp-msg: exception in expected: (more- false identity
 AssertionError assert)
  threw: class java.lang.AssertionError - Assert failed:
 x__653__auto__
 on (sample_test.clj:4)
  Ran 1 tests containing 1 assertions in 55 msecs
  0 failures, 1 errors.

 , but

 (expect AssertionError (assert false))

 still works.

 Ciao

 ...Jochen


 Am Mittwoch, 12. März 2014 02:28:37 UTC+1 schrieb Jay Fields:

 expectations is a minimilist's unit testing framework

 website: http://jayfields.com/expectations/
 github: https://github.com/jaycfields/expectations

 changelog: https://github.com/jaycfields/expectations/blob/master/
 CHANGELOG.md

 some large changes that will hopefully result in even more concise and
 maintainable tests.

 feedback always welcome.

 Jay

  --
 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: declare and def

2014-03-13 Thread Gal Dolber
#'declare adds extra meta to the var {:declared true}

I don't think it's being used right now, but it can be specially handled by
the compiler, for example, to ignore the #'declare stataments from the
emitted bytecode, I'm experimenting with this here:

https://github.com/galdolber/clojurefast/commit/649672baede3e0f1cc8b3e9e42b6e899927a9c09


On Thu, Mar 13, 2014 at 10:57 AM, Ambrose Bonnaire-Sergeant 
abonnaireserge...@gmail.com wrote:

 No difference, but declare can take multiple vars as arguments.

 Thanks,
 Ambrose


 On Thu, Mar 13, 2014 at 9:51 PM, Plínio Balduino pbaldu...@gmail.comwrote:

 Hi there

 Is there any difference between declare and def when I'm making a forward
 declaration?

 Thanks

 Plínio

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


-- 
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: A faster clojure startup

2014-03-06 Thread Gal Dolber
Here's more on this: https://github.com/galdolber/clojurefast

I'm stuck figuring out how to get AOT and dynamically compiled clj files to
work nice together.

Help is more than welcome!


On Thu, Mar 6, 2014 at 4:06 PM, Nicola Mometto brobro...@gmail.com wrote:


 I wonder how this compares with this change Rich made to enable lazy fn
 initialization:

 https://github.com/clojure/clojure/commit/71930b6b6537a796cdf13c4ffa7cf93eb53b6235
 that he later reverted:

 https://github.com/clojure/clojure/commit/c5681382da775e898915b17f3ab18b49c65359ec

 If I read the first commit correctly that approach consisted in wrapping
 all fn objects that appears in a def init position in a FnLoaderThunk,
 which loads the fn class, creates a fn object and binds it to the Var's
 root the first time the fn is invoked.

 It's not clear to me why that change was reverted.

 Gal Dolber writes:

  Here're some notes on the lean compiler I've been working on for
  clojure-objc
 
  http://galdolber.tumblr.com/post/78110050703/reduce-startup
 
  Feedback's welcome

 --
 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/groups/opt_out.


-- 
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/groups/opt_out.


Notes on objc subclassing for clojure-objc

2014-03-06 Thread Gal Dolber
http://gal.dolber.com/post/78830045901/defnstype-myclass

As always, feedback is very welcome!

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


A faster clojure startup

2014-02-28 Thread Gal Dolber
Here're some notes on the lean compiler I've been working on for
clojure-objc

http://galdolber.tumblr.com/post/78110050703/reduce-startup

Feedback's welcome

-- 
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/groups/opt_out.


Re: A faster clojure startup

2014-02-28 Thread Gal Dolber
The runtime impact should be none or minimal, but I didn't benchmark it yet.


On Fri, Feb 28, 2014 at 12:44 PM, bob wee@gmail.com wrote:

 Great, will it impact the runtime performance?


 On Friday, February 28, 2014 11:16:44 PM UTC+8, Gal Dolber wrote:

 Here're some notes on the lean compiler I've been working on for
 clojure-objc

 http://galdolber.tumblr.com/post/78110050703/reduce-startup

 Feedback's welcome



-- 
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/groups/opt_out.


Re: A faster clojure startup

2014-02-28 Thread Gal Dolber
No, its a bit more than that, but it shouldn't be hard to port. The changes
already generate the right bytecode. I'm working a clean patch for
clojure-jvm that should work on android.


On Fri, Feb 28, 2014 at 12:58 PM, Adam Clements adam.cleme...@gmail.comwrote:

 This sounds like an awesome shortcut to speeding things up on android/ios
 while we're waiting for CinC and friends. Do you know how much work it
 would be to port your changes to clojure-android and try it out there? I'd
 be very interested to test it out and do some debugging on android. Is it
 just a tweaked Var class or is there more to it?


 Adam


 On Fri, Feb 28, 2014 at 3:16 PM, Gal Dolber g...@dolber.com wrote:

  Here're some notes on the lean compiler I've been working on for
 clojure-objc

 http://galdolber.tumblr.com/post/78110050703/reduce-startup

 Feedback's welcome

 --
 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/groups/opt_out.


  --
 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/groups/opt_out.


-- 
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/groups/opt_out.


Re: Post on Clojure Intrinsics

2014-02-19 Thread Gal Dolber
Thanks!

@Phillip: that is definitely something worth exploring, finding almost
intrinsic calls shouldn't be hard to do


On Wed, Feb 19, 2014 at 6:41 AM, Manuel Paccagnella 
manuel.paccagne...@gmail.com wrote:

 Nice post!

 Il giorno mercoledì 19 febbraio 2014 07:45:01 UTC+1, Gal Dolber ha scritto:

 Here is my first post on clojure, I hope it's helpful!

 http://galdolber.tumblr.com/post/77153377251/clojure-intrinsics



-- 
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/groups/opt_out.


Post on Clojure Intrinsics

2014-02-18 Thread Gal Dolber
Here is my first post on clojure, I hope it's helpful!

http://galdolber.tumblr.com/post/77153377251/clojure-intrinsics

-- 
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/groups/opt_out.


Re: set vs hash-set

2014-02-06 Thread Gal Dolber
One takes a coll and the other a list of arguments

user= (set [1 1])

#{1}

user= (hash-set 1 1)

#{1}


On Thu, Feb 6, 2014 at 4:49 PM, Alan Thompson thompson2...@gmail.comwrote:

 OK, this one has me stumped.  What is the difference between
 clojure.core/set and clojure.core/hash-set  ???   The source code is almost
 identical.  Is one to be preferred over the other depending on
 circumstances?
 Alan

 (defn set
   Returns a set of the distinct elements of coll.
   {:added 1.0
:static true}
   [coll] (clojure.lang.PersistentHashSet/create (seq coll)))


 (defn hash-set
   Returns a new hash set with supplied keys.
   {:added 1.0
:static true}
   ([] #{})
   ([ keys]
(clojure.lang.PersistentHashSet/createWithCheck keys)))

 --
 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/groups/opt_out.


-- 
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/groups/opt_out.


[ANN] clojure-objc 1.5.1-1

2014-01-28 Thread Gal Dolber
== clojure-objc 1.5.1-1

https://github.com/galdolber/clojure-objc

- ObjC interop re-implemented to support arm64
- Introducing nsproxy: extend classes or implement anonymous objects on
runtime

== lein-objcbuild 0.1.3

https://github.com/galdolber/lein-objcbuild

- Allow objc sources with :objc-source-paths
- Faster compiles

== clojure-objc-sample

https://github.com/galdolber/clojure-objc-sample

Added UINavigationController with 2 screen and a small uikit experimental
framework.

-- 
-- 
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/groups/opt_out.


Re: ANN: clojure-objc

2014-01-26 Thread Gal Dolber
I added a better sample with a UINavigationController and a small uikit
framework(very very alpha).

https://github.com/galdolber/clojure-objc-sample/blob/master/src/clojure_objc_sample/core.clj

Feedback and improvements on the uikit framework are very much welcome.


On Sat, Jan 25, 2014 at 10:08 PM, PublicFarley publicfar...@gmail.comwrote:

 Thanks for the quick reply Gal. Excellent advise. I never thought to do it
 that way. Need to stretch my thinking a bit... LOL.

 Yes your compilation technology could enable a lot of creative thinking
 around frameworks and libraries for iOS UI construction in Clojure. Much
 like the excitement and development in the RubyMotion community. I need to
 put my hard hat on and experiment more.

 Again thanks for the fabulous contribution.

 Kind Regards,
 publicfarley

 --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


Re: ANN: clojure-objc

2014-01-26 Thread Gal Dolber
That's a bug in the objc interop, the type detection is incomplete.

https://github.com/galdolber/clojure-objc/blob/master/src/jvm/clojure/lang/Selector.java?source=c#L87

The error you get is happening on arm64(iphone 5s or simulator 64bits), it
should work on i386, armv7 and armv7s.


On Sun, Jan 26, 2014 at 3:18 PM, PublicFarley publicfar...@gmail.comwrote:

 I got an error as posted in my 1:01 PM post below. I've uploaded my
 source in case it helps. Basically it's your github sample code.


 On Sunday, January 26, 2014 8:15:17 AM UTC-5, Gal Dolber wrote:

 I added a better sample with a UINavigationController and a small uikit
 framework(very very alpha).

 https://github.com/galdolber/clojure-objc-sample/blob/
 master/src/clojure_objc_sample/core.clj

 Feedback and improvements on the uikit framework are very much welcome.


 On Sat, Jan 25, 2014 at 10:08 PM, PublicFarley public...@gmail.comwrote:

 Thanks for the quick reply Gal. Excellent advise. I never thought to do
 it that way. Need to stretch my thinking a bit... LOL.

 Yes your compilation technology could enable a lot of creative thinking
 around frameworks and libraries for iOS UI construction in Clojure. Much
 like the excitement and development in the RubyMotion community. I need to
 put my hard hat on and experiment more.

 Again thanks for the fabulous contribution.

 Kind Regards,
 publicfarley

 --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.


  --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


Re: ANN: clojure-objc

2014-01-26 Thread Gal Dolber
I reimplemented the interop and its fully functional now.
Just download the last binary from https://github.com/galdolber/clojure-objc


On Sun, Jan 26, 2014 at 6:17 PM, Gal Dolber g...@dolber.com wrote:

 That's a bug in the objc interop, the type detection is incomplete.


 https://github.com/galdolber/clojure-objc/blob/master/src/jvm/clojure/lang/Selector.java?source=c#L87

 The error you get is happening on arm64(iphone 5s or simulator 64bits), it
 should work on i386, armv7 and armv7s.


 On Sun, Jan 26, 2014 at 3:18 PM, PublicFarley publicfar...@gmail.comwrote:

 I got an error as posted in my 1:01 PM post below. I've uploaded my
 source in case it helps. Basically it's your github sample code.


 On Sunday, January 26, 2014 8:15:17 AM UTC-5, Gal Dolber wrote:

 I added a better sample with a UINavigationController and a small uikit
 framework(very very alpha).

 https://github.com/galdolber/clojure-objc-sample/blob/
 master/src/clojure_objc_sample/core.clj

 Feedback and improvements on the uikit framework are very much welcome.


 On Sat, Jan 25, 2014 at 10:08 PM, PublicFarley public...@gmail.comwrote:

 Thanks for the quick reply Gal. Excellent advise. I never thought to do
 it that way. Need to stretch my thinking a bit... LOL.

 Yes your compilation technology could enable a lot of creative thinking
 around frameworks and libraries for iOS UI construction in Clojure. Much
 like the excitement and development in the RubyMotion community. I need to
 put my hard hat on and experiment more.

 Again thanks for the fabulous contribution.

 Kind Regards,
 publicfarley

 --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.


  --
 --
 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/groups/opt_out.




-- 
-- 
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/groups/opt_out.


So, how much do you really know about clojure's internals?

2014-01-25 Thread Gal Dolber
https://github.com/galdolber/clojure-core-java

-- 
-- 
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/groups/opt_out.


Re: ANN: clojure-objc

2014-01-25 Thread Gal Dolber
Hey, you cannot subclass from clojure at the moment. But I its not
necessary..
Just create a UIView, add subviews, properties and listeners. And if you
need a UIViewController to pass around, create one and set the view with
setView:

I have a small ui framework, but its not ready to open source.
Its amazing what you can do with AutoLayouts when you have full access to
them, I haven't miss Storyboards..
I'll try to get this ready and post an example.

On the other side, I was really curious to see what people would come out
with to do UI with no subclassing.. I came out with one solution, but I'm
sure its not the only one.


On Sat, Jan 25, 2014 at 8:31 PM, PublicFarley publicfar...@gmail.comwrote:

 I'm utterly shocked by the lack of posts and questions about this very
 cool variation of the Clojure compiler. Think people Develop iOS apps
 in Clojure! Awesome and fun. I suggest that the author and his team try to
 see if you can present at ClojureWest. Need to get the word out.

 Anyway, quick question to the OP. Can you post an example where you
 subclass UIViewController and throw up a simple UIView with say a button
 and delegate method that gets called on button click. Would love to see
 where and how you do your 'release' calls as well.

 I think a simple example like above would give people some understanding
 on how to really start digging in to clojure-objc.

 - PublicFarley


 On Friday, January 24, 2014 1:37:01 AM UTC-5, Gal Dolber wrote:

 clojure-objc is a clojure compiler that generates java(instead of
 bytecode) and uses j2objc(https://code.google.com/p/j2objc/) to
 translate it to objc.

 Goals
  * Write iOS and MacOS apps in clojure
  * Future proof: new features on clojure should be easy to add
  * Distribute clojure-objc libs using maven
  * Pure clojure libs should 'just work' (if they only use the jre emulated 
 classes)
  * ObjC dynamic interop
  * Run tests in the jvm (with no ObjC interop)

 For more information:
 https://github.com/galdolber/clojure-objc

 Lein plugin:
 https://github.com/galdolber/lein-objcbuild

 Sample project:
 https://github.com/galdolber/clojure-objc-sample

  --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


Re: ANN: clojure-objc

2014-01-25 Thread Gal Dolber
Loading performance is actually better than clojure on the jvm, on my
notebook loading clojure.core takes 700ms on the jvm and 200ms on the ios
simulator.

And for computation performance I haven't benchmark yet, but at first sight
doesn't seems to be a problem.

On the second question, j2objc generates the retain release calls, and in
my experience really good. And the refs and atoms implementations on
clojure don't have much magic on them. I translated and ran all clojure
core tests on the ios simulator and they (pretty much) all pass, there a
few failures caused because j2objc emulates NullPointerException and
ClassCastException, and not perfectly.


On Sat, Jan 25, 2014 at 9:36 PM, Timothy Baldridge tbaldri...@gmail.comwrote:

 What's the performance of this code like? I'd be interested in seeing how
 performance on Clojure data structures compares. In my experiments with
 reference counting and highly polymorphic code, getting much faster than
 languages like Python was quite hard. Without a more dedicated optimizer
 that understands Clojure code, I'm not sure how fast it can be.

 Secondly, how does j2objc get around reference counting and atomic
 updates. Articles such as this :
 http://hacksoflife.blogspot.com/2009/07/cas-and-reference-counting-dont-mix.htmlbasically
  suggest that attempting  lock free references (like atoms) with
 reference counting is not exactly easy. I'm interested in how j2objc solves
 this as well.

 Timothy


 On Sat, Jan 25, 2014 at 5:17 PM, Gal Dolber g...@dolber.com wrote:

 Hey, you cannot subclass from clojure at the moment. But I its not
 necessary..
 Just create a UIView, add subviews, properties and listeners. And if you
 need a UIViewController to pass around, create one and set the view with
 setView:

 I have a small ui framework, but its not ready to open source.
 Its amazing what you can do with AutoLayouts when you have full access to
 them, I haven't miss Storyboards..
 I'll try to get this ready and post an example.

 On the other side, I was really curious to see what people would come out
 with to do UI with no subclassing.. I came out with one solution, but I'm
 sure its not the only one.


 On Sat, Jan 25, 2014 at 8:31 PM, PublicFarley publicfar...@gmail.comwrote:

 I'm utterly shocked by the lack of posts and questions about this very
 cool variation of the Clojure compiler. Think people Develop iOS apps
 in Clojure! Awesome and fun. I suggest that the author and his team try to
 see if you can present at ClojureWest. Need to get the word out.

 Anyway, quick question to the OP. Can you post an example where you
 subclass UIViewController and throw up a simple UIView with say a button
 and delegate method that gets called on button click. Would love to see
 where and how you do your 'release' calls as well.

 I think a simple example like above would give people some understanding
 on how to really start digging in to clojure-objc.

 - PublicFarley


 On Friday, January 24, 2014 1:37:01 AM UTC-5, Gal Dolber wrote:

 clojure-objc is a clojure compiler that generates java(instead of
 bytecode) and uses j2objc(https://code.google.com/p/j2objc/) to
 translate it to objc.

 Goals
  * Write iOS and MacOS apps in clojure
  * Future proof: new features on clojure should be easy to add
  * Distribute clojure-objc libs using maven
  * Pure clojure libs should 'just work' (if they only use the jre emulated 
 classes)
  * ObjC dynamic interop
  * Run tests in the jvm (with no ObjC interop)

 For more information:
 https://github.com/galdolber/clojure-objc

 Lein plugin:
 https://github.com/galdolber/lein-objcbuild

 Sample project:
 https://github.com/galdolber/clojure-objc-sample

  --
 --
 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/groups/opt_out.


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

Re: ANN: clojure-objc

2014-01-25 Thread Gal Dolber
To get started just follow the steps here:

https://github.com/galdolber/lein-objcbuild

You should be able to get everything setup in a few minutes.


On Sat, Jan 25, 2014 at 10:02 PM, Devin Walters dev...@gmail.com wrote:

 (inc #'your/idea)

 I performance related questions similar to Tim, but I think having some
 good getting started material might give me a way to start testing the
 boundaries myself.

 Cheers,
 '(Devin Walters)

 On Jan 25, 2014, at 17:31, PublicFarley publicfar...@gmail.com wrote:

 I'm utterly shocked by the lack of posts and questions about this very
 cool variation of the Clojure compiler. Think people Develop iOS apps
 in Clojure! Awesome and fun. I suggest that the author and his team try to
 see if you can present at ClojureWest. Need to get the word out.

 Anyway, quick question to the OP. Can you post an example where you
 subclass UIViewController and throw up a simple UIView with say a button
 and delegate method that gets called on button click. Would love to see
 where and how you do your 'release' calls as well.

 I think a simple example like above would give people some understanding
 on how to really start digging in to clojure-objc.

 - PublicFarley

 On Friday, January 24, 2014 1:37:01 AM UTC-5, Gal Dolber wrote:

 clojure-objc is a clojure compiler that generates java(instead of
 bytecode) and uses j2objc(https://code.google.com/p/j2objc/) to
 translate it to objc.

 Goals
  * Write iOS and MacOS apps in clojure
  * Future proof: new features on clojure should be easy to add
  * Distribute clojure-objc libs using maven
  * Pure clojure libs should 'just work' (if they only use the jre emulated 
 classes)
  * ObjC dynamic interop
  * Run tests in the jvm (with no ObjC interop)

 For more information:
 https://github.com/galdolber/clojure-objc

 Lein plugin:
 https://github.com/galdolber/lein-objcbuild

 Sample project:
 https://github.com/galdolber/clojure-objc-sample

  --
 --
 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/groups/opt_out.

  --
 --
 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/groups/opt_out.


-- 
-- 
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/groups/opt_out.


ANN: clojure-objc

2014-01-23 Thread Gal Dolber
clojure-objc is a clojure compiler that generates java(instead of bytecode) 
and uses j2objc(https://code.google.com/p/j2objc/) to translate it to objc.

Goals
 * Write iOS and MacOS apps in clojure
 * Future proof: new features on clojure should be easy to add 
 * Distribute clojure-objc libs using maven
 * Pure clojure libs should 'just work' (if they only use the jre emulated 
classes)
 * ObjC dynamic interop
 * Run tests in the jvm (with no ObjC interop)
 
For more information:
https://github.com/galdolber/clojure-objc

Lein plugin:
https://github.com/galdolber/lein-objcbuild

Sample project:
https://github.com/galdolber/clojure-objc-sample

-- 
-- 
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/groups/opt_out.


[ANN] lein-gwt-plugin

2013-05-04 Thread Gal Dolber
A small plugin to work with gwt apps, including resources handling and an 
improved javac compiler to get complex annotation processors working 
properly.

https://github.com/galdolber/gwt-plugin

Enjoy

-- 
-- 
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/groups/opt_out.