Re: Web meeting series: data visualization and literate programming

2019-09-01 Thread Daniel Slutsky
Here is the video of last Thursday's meeting, with Jon Anthony's talk
abouut Hanami -- moderated by John Stevenson:

https://youtu.be/3Hx7kbub9YE

On Fri, 23 Aug 2019 at 16:43, Daniel Slutsky 
wrote:

> Preparing to the meeting next week, with Jon Anthony 's talk about
> interactive data visualization and literate programming with Hanami:
>
> https://twitter.com/scicloj/status/1164887113680281600
>
> On Sat, 10 Aug 2019 at 21:39, Daniel Slutsky 
> wrote:
>
>> Here is the video of yesterday's meeting, with Christopher Small's talk
>> about Oz:
>> https://youtu.be/CRLvHgQzhmI
>> Moderator: John Stevenson
>>
>> On Sat, 3 Aug 2019 at 16:41, Daniel Slutsky 
>> wrote:
>>
>>> Registration to Friday's meeting with Christopher Small about Oz:
>>> https://twitter.com/scicloj/status/1157646172770721798
>>>
>>> On Fri, 19 Jul 2019 at 23:28, Daniel Slutsky 
>>> wrote:
>>>
 Hi.

 In August, the Scicloj  community will
 begin a series of web meetings about data visualization and literate
 programming in Clojure.


 On the first meeting, Friday, Aug 9th, 5pm-7pm UTC,
 @Christopher_Smallwill talk about Oz
 .


 If you are interested in this series, it is recommended to follow this
 topic here
 at
 the Clojurians Zulip.

 If you wish to suggest a topic for this series of meetings, it would be
 great to suggest it under that topic, or in a private message.


 See you there,

 Daniel

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CADTWONOmjSt0YVJB6msnty-f%3D%2BN9RypaMRmbFT%3DyYdbk-2xKQA%40mail.gmail.com.


Re: gen-class/AOT considered harmful (in libraries)???

2019-09-01 Thread Didier
AOT does matter, because AOT is transitive. Effectively, all AOT builds are 
like Uberjars. They compile your code and the code of your dependencies and 
theirs as well into .class files putting everything in the build folder. Then 
the package will take all the classes and put them in the Jar.

Any library that does that does it wrong. Don't AOT your libraries for that 
reason. Or make sure if you do, you are only including .class of your library 
code, not any of its dependencies. And even ideally, like I said, only include 
the bare minimum, so only .classes required for interop. The rest package as 
source.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/4516034c-7a15-4424-b0bb-fad483d59ea2%40googlegroups.com.


Re: gen-class/AOT considered harmful (in libraries)???

2019-09-01 Thread atdixon
Hi, Dimitris - 

It looks from Clojure source [1] that Clojure compiles to v1.8 class files, 
so this should be mean you can run in any JVM 1.8 and beyond.

When you say you are deliberating including Clojure as a proper dependency. 
I've noticed that some Clojure libraries will have Clojure listed as a 
dependency in their repository POM but it will be marked with scope 
`provided` which is a way of saying this is a dependency that the JAR is 
expected to be provided by the library consumer at runtime.

I'm not sure why AOT changes the question of whether to include the Clojure 
jar as a dependency; I think you have this question with 
non-precompiled/AOT'd libraries, no? I do understand that with AOT your lib 
will have *.class files in the JAR that directly reference Clojure classes. 
But in some IDEs -- just having the dependency as provided will suffice to 
make it available for linking/compiling.

[1] 
https://github.com/clojure/clojure/commit/38705b49fd3dbae11e94c576ef49ff3eb1c47395
)

On Friday, August 23, 2019 at 2:18:35 PM UTC-5, Jim foo.bar wrote:
>
> Ok, so after a bit of more thinking/reading, I realise now that my 
> question was somewhat misplaced. 
>
> Any AOT compiled code (not just gen-class), is an artifact of the compiler 
> used to compile it, and therefore, in some sense, implicitly tied to that 
> compiler version. However, that's not to say that the produced class 
> definitely will or won't work with some other version. If my understanding 
> is correct, it will work for future versions (which is the main point here) 
> as long as Clojure itself maintains backwards compatibility (in this case 
> wrt to gen-class). 
>
> I'm still torn on whether to actually add Clojure as a proper dependency - 
> I think I will probably end up doing so, but I'm not thrilled about it...
>
> Kind regards,
>
> Dimitris
>
>
> On 23/08/2019 08:15, dimitris wrote:
>
> Why would I write the class in Java, when this below works exactly as 
> expected?
>
> (ns foo
>   (:gen-class :name foo.Bar
>   :extends java.lang.System$LoggerFinder
>   :constructors {[] []}))
>
> (let [slm (delay(-> 'foo/system-logger-memo
> requiring-resolve
> var-get))]
>   (defn -getLogger
> "Returns a subclass of `System$Logger` which routes logging requests 
> to the `core/*root*` logger."[this name module]
> ;; resolve it at runtime (and only once),;; in order to prevent AOT 
> leaking out of this ns(@slm)))
>
>
> My question boils down to this:
>
> Let's say that I used clojure1.10 to compile the above gen-class. Does the 
> project containing it need to specify Clojure 1.10 as a proper dependency, 
> or will the end user be able to provide any version of Clojure greater or 
> equal to 1.10? 
>
> Thanks in advance...
>
> Kind regards,
>
> Dimitris
>
>
> On 23/08/2019 02:00, Matching Socks wrote:
>
> You are considering gen-class as an alternative to writing the 
> service-provider class in Java and using only methods in Clojure's public 
> Java API to connect it with an implementation-in-Clojure?
> -- 
> 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
> clo...@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 clo...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/clojure/0660b640-cf91-429b-9a40-1695e7955aef%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/d6430c24-6e97-4b13-ba21-e81a34f5020e%40googlegroups.com.