Re: [ANN] lein-jlink: A leiningen plugin for custom JRE creation

2018-02-11 Thread Kimmo Koskinen
Just whistling in that there's a project, that has tree-shaker similar to 
proguard, but written (partly) in 
Clojure: https://github.com/portkey-cloud/portkey
Portkey has been a bit dormant for a while, but we had some success as 
minimizing amount of bytecode that's shipped to AWS Lambda, to keep a 
repl-like development experience.

tiistai 30. tammikuuta 2018 18.10.32 UTC+2 Laurens Van Houtven kirjoitti:
>
> This is great! Thanks Ning! Do you have any experience/pointers/projects 
> around reducing deployable size on the code side (as opposed to runtime)? 
> They seem like very related concerns. I've messed with proguard but it 
> mostly seems to be great at producing jars that are 10% of the size and 
> don't actually work ;-)
>
> On Tue, Jan 30, 2018 at 8:24 AM, Ning Sun  > wrote:
>
>> Hi clojurians,
>>
>> I just created a Leiningen plugin that creates custom Java Runtime
>> Environment based on you configuration. The custom JRE can be as small
>> as 29MB, and it's fully capable to run a Ring web app.
>>
>> With this plugin:
>> 0. You can test your Clojure application against the custom JRE;
>> 1. You can distribute your Clojure application with runtime attached and
>> don't have to assume your user has JRE installed;
>> 2. You can create minimal Docker image for your Clojure service, it
>> takes less than 50MB at minimal setup, comparing to others can be 350MB+;
>> 3. You discover.
>>
>> The plugin is here:
>> https://github.com/sunng87/lein-jlink
>>
>> I have a blog post about it:
>> https://sunng.info/blog/custom-jre-for-clojure-app-distribution.html
>>
>> And I'd like to hear your ideas about it.
>>
>> Don't forget it requires JDK9 or 10. Because jlink is a feature
>> introduced in JDK9.
>>
>> --
>> 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.


[ANN] lein-jlink: A leiningen plugin for custom JRE creation

2018-01-31 Thread Didier
This is awesome! I'll definitly give it a shot. Thanks for putting it together. 

-- 
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] lein-jlink: A leiningen plugin for custom JRE creation

2018-01-31 Thread Ning Sun
Hi Laurens,

I haven't got chance to play with proguard. I doubt of it works well with 
non-Android projects. For now I think the best method is to keep you dependency 
tree from bloated.

On January 31, 2018 12:09:57 AM GMT+08:00, Laurens Van Houtven <_...@lvh.io> 
wrote:
>This is great! Thanks Ning! Do you have any
>experience/pointers/projects
>around reducing deployable size on the code side (as opposed to
>runtime)?
>They seem like very related concerns. I've messed with proguard but it
>mostly seems to be great at producing jars that are 10% of the size and
>don't actually work ;-)
>
>On Tue, Jan 30, 2018 at 8:24 AM, Ning Sun 
>wrote:
>
>> Hi clojurians,
>>
>> I just created a Leiningen plugin that creates custom Java Runtime
>> Environment based on you configuration. The custom JRE can be as
>small
>> as 29MB, and it's fully capable to run a Ring web app.
>>
>> With this plugin:
>> 0. You can test your Clojure application against the custom JRE;
>> 1. You can distribute your Clojure application with runtime attached
>and
>> don't have to assume your user has JRE installed;
>> 2. You can create minimal Docker image for your Clojure service, it
>> takes less than 50MB at minimal setup, comparing to others can be
>350MB+;
>> 3. You discover.
>>
>> The plugin is here:
>> https://github.com/sunng87/lein-jlink
>>
>> I have a blog post about it:
>> https://sunng.info/blog/custom-jre-for-clojure-app-distribution.html
>>
>> And I'd like to hear your ideas about it.
>>
>> Don't forget it requires JDK9 or 10. Because jlink is a feature
>> introduced in JDK9.
>>
>> --
>> 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.

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

-- 
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] lein-jlink: A leiningen plugin for custom JRE creation

2018-01-30 Thread Laurens Van Houtven
This is great! Thanks Ning! Do you have any experience/pointers/projects
around reducing deployable size on the code side (as opposed to runtime)?
They seem like very related concerns. I've messed with proguard but it
mostly seems to be great at producing jars that are 10% of the size and
don't actually work ;-)

On Tue, Jan 30, 2018 at 8:24 AM, Ning Sun  wrote:

> Hi clojurians,
>
> I just created a Leiningen plugin that creates custom Java Runtime
> Environment based on you configuration. The custom JRE can be as small
> as 29MB, and it's fully capable to run a Ring web app.
>
> With this plugin:
> 0. You can test your Clojure application against the custom JRE;
> 1. You can distribute your Clojure application with runtime attached and
> don't have to assume your user has JRE installed;
> 2. You can create minimal Docker image for your Clojure service, it
> takes less than 50MB at minimal setup, comparing to others can be 350MB+;
> 3. You discover.
>
> The plugin is here:
> https://github.com/sunng87/lein-jlink
>
> I have a blog post about it:
> https://sunng.info/blog/custom-jre-for-clojure-app-distribution.html
>
> And I'd like to hear your ideas about it.
>
> Don't forget it requires JDK9 or 10. Because jlink is a feature
> introduced in JDK9.
>
> --
> 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.


[ANN] lein-jlink: A leiningen plugin for custom JRE creation

2018-01-30 Thread Ning Sun
Hi clojurians,

I just created a Leiningen plugin that creates custom Java Runtime
Environment based on you configuration. The custom JRE can be as small
as 29MB, and it's fully capable to run a Ring web app.

With this plugin:
0. You can test your Clojure application against the custom JRE;
1. You can distribute your Clojure application with runtime attached and
don't have to assume your user has JRE installed;
2. You can create minimal Docker image for your Clojure service, it
takes less than 50MB at minimal setup, comparing to others can be 350MB+;
3. You discover.

The plugin is here:
https://github.com/sunng87/lein-jlink

I have a blog post about it:
https://sunng.info/blog/custom-jre-for-clojure-app-distribution.html

And I'd like to hear your ideas about it.

Don't forget it requires JDK9 or 10. Because jlink is a feature
introduced in JDK9.

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


signature.asc
Description: OpenPGP digital signature