You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by gi...@apache.org on 2023/02/15 11:15:27 UTC

[groovy-dev-site] branch asf-site updated: 2023/02/15 11:15:24: Generated dev website from groovy-website@8bc3de1

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-dev-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 442926c  2023/02/15 11:15:24: Generated dev website from groovy-website@8bc3de1
442926c is described below

commit 442926c40f34d4379d0088e1c3b1e50f395d3964
Author: jenkins <bu...@apache.org>
AuthorDate: Wed Feb 15 11:15:24 2023 +0000

    2023/02/15 11:15:24: Generated dev website from groovy-website@8bc3de1
---
 blog/adventures-with-groovyfx.html                 |   4 +-
 ...alculating-fibonacci-with-groovy-revisited.html |  18 +-
 blog/classifying-iris-flowers-with-deep.html       |   2 +-
 blog/comparators-and-sorting-in-groovy.html        |   4 +-
 blog/deck-of-cards-with-groovy.html                |   2 +-
 blog/deep-learning-and-eclipse-collections.html    |  12 +-
 blog/detecting-objects-with-groovy-the.html        |   2 +-
 blog/feed.atom                                     |  10 +
 blog/fruity-eclipse-collections.html               |   8 +-
 blog/index.html                                    |   4 +-
 blog/matrix-calculations-with-groovy-apache.html   |   2 +-
 blog/reading-and-writing-csv-files.html            |   2 +-
 blog/using-groovy-with-apache-wayang.html          | 470 +++++++++++++++++++++
 blog/whiskey-clustering-with-groovy-and.html       |  16 +-
 14 files changed, 529 insertions(+), 27 deletions(-)

diff --git a/blog/adventures-with-groovyfx.html b/blog/adventures-with-groovyfx.html
index ecdcb65..9a29ea7 100644
--- a/blog/adventures-with-groovyfx.html
+++ b/blog/adventures-with-groovyfx.html
@@ -239,9 +239,9 @@ The application is perfectly functional without them (and the approximately 20 l
 </div>
 <div class="paragraph">
 <p>It&#8217;s a Groovy 3 and JDK 8 application but see this
-<a href="https://blogs.apache.org/groovy/entry/reading-and-writing-csv-files">blog</a>
+<a href="https://groovy.apache.org/blog/reading-and-writing-csv-files">blog post</a>
 if you want to see Jackson deserialization of classes and records
-(and Groovy&#8217;s emulated records) from CSV files using the most recent
+(and Groovy&#8217;s emulated records) from CSV files using recent
 Groovy and JDK versions.</p>
 </div>
 </div>
diff --git a/blog/calculating-fibonacci-with-groovy-revisited.html b/blog/calculating-fibonacci-with-groovy-revisited.html
index 27a67a9..254c3f1 100644
--- a/blog/calculating-fibonacci-with-groovy-revisited.html
+++ b/blog/calculating-fibonacci-with-groovy-revisited.html
@@ -56,8 +56,11 @@
                         </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Calculating Fibonacci with Groovy revisited</a></li><li><a href='#_iterative_style' class='anchor-link'>Iterative style</a></li><li><a href='#_recursive' class='anchor-link'>Recursive</a></li><li><a href='#_streams' class='anchor-link'>Streams</a></li><li><a href='#_byteco [...]
 <div class="sectionbody">
 <div class="paragraph">
-<p>In an earlier post,
-we looked at using <a href="https://blogs.apache.org/groovy/entry/matrix-calculations-with-groovy-apache">Matrices with Groovy</a> including using matrices to calculate Fibonacci terms. But do you need that complexity to calculate Fibonacci? Not, not at all. You can do various one-liners for that scenario (to repeat the calculation from that post):</p>
+<p>In an <a href="https://groovy.apache.org/blog/matrix-calculations-with-groovy-apache">earlier post</a>, we looked at using
+Matrices with Groovy including using matrices to calculate Fibonacci terms.
+But do you need that complexity to calculate Fibonacci? Not, not at all.
+You can do various one-liners for that scenario (to repeat the calculation from that
+<a href="https://groovy.apache.org/blog/matrix-calculations-with-groovy-apache">post</a>):</p>
 </div>
 <div class="listingblock">
 <div class="content">
@@ -65,8 +68,9 @@ we looked at using <a href="https://blogs.apache.org/groovy/entry/matrix-calcula
 </div>
 </div>
 <div class="paragraph">
-<p>The previous post was more about using <em>matrices</em> than Fibonacci per se, though hopefully learning
-that the Fibonacci matrix was a specialisation of the Leslie matrix was an added bonus.</p>
+<p>The previous post was more about using <em>matrices</em> than Fibonacci per se,
+though hopefully learning that the Fibonacci matrix was a specialisation
+of the Leslie matrix was an added bonus.</p>
 </div>
 <div class="paragraph">
 <p>Let&#8217;s have a look at a few other options to write Fibonacci methods in Groovy.</p>
@@ -77,8 +81,10 @@ that the Fibonacci matrix was a specialisation of the Leslie matrix was an added
 <h2 id="_iterative_style">Iterative style</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>Unless you learned a functional programming language as your first language, you may have written an iterative Factorial or
-Fibonacci as one of your first programming learning exercises. Such an algorithm for Fibonacci could look something like this:</p>
+<p>Unless you learned a functional programming language as your first language,
+you may have written an iterative Factorial or Fibonacci as one of your first
+programming learning exercises. Such an algorithm for Fibonacci could look
+something like this:</p>
 </div>
 <div class="listingblock">
 <div class="content">
diff --git a/blog/classifying-iris-flowers-with-deep.html b/blog/classifying-iris-flowers-with-deep.html
index d0654a9..1f54eaa 100644
--- a/blog/classifying-iris-flowers-with-deep.html
+++ b/blog/classifying-iris-flowers-with-deep.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Classifying Iris Flowers with Deep Learning, Groovy and GraalVM</a></li><li><a href='#_deep_learning' class='anchor-link'>Deep Learning</a></li><li><a href='#_encog' class='anchor-link'>Encog</a></li><li><a href='#_eclipse_deeplearning4j' class='anchor-link'>Eclipse DeepLe [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Classifying Iris Flowers with Deep Learning, Groovy and GraalVM</a></li><li><a href='#_deep_learning' class='anchor-link'>Deep Learning</a></li><li><a href='#_encog' class='anchor-link'>Encog</a></li><li><a href='#_eclipse_deeplearning4j' class='anchor-link'>Eclipse DeepLe [...]
 <div class="sectionbody">
 <div class="paragraph">
 <p><span class="image right"><img src="https://blogs.apache.org/groovy/mediaresource/80b1adc8-7234-4046-a279-e272b0a0edd4" alt="iris flowers" width="200"></span>
diff --git a/blog/comparators-and-sorting-in-groovy.html b/blog/comparators-and-sorting-in-groovy.html
index 9ea2a71..7e7c66f 100644
--- a/blog/comparators-and-sorting-in-groovy.html
+++ b/blog/comparators-and-sorting-in-groovy.html
@@ -3,7 +3,7 @@
 <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
 <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
 <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--><head>
-    <meta charset='utf-8'/><meta http-equiv='X-UA-Compatible' content='IE=edge'/><meta name='viewport' content='width=device-width, initial-scale=1'/><meta name='keywords' content='comparators, functional, gquery, ginq, groovy, lambdas, record, sorting'/><meta name='description' content='This post looks at Groovy functionality for making your classes comparable and/or sortable.'/><title>The Apache Groovy programming language - Blogs - Comparators and Sorting in Groovy</title><link href=' [...]
+    <meta charset='utf-8'/><meta http-equiv='X-UA-Compatible' content='IE=edge'/><meta name='viewport' content='width=device-width, initial-scale=1'/><meta name='keywords' content='comparators, functional, gquery, ginq, groovy, lambdas, records, sorting'/><meta name='description' content='This post looks at Groovy functionality for making your classes comparable and/or sortable.'/><title>The Apache Groovy programming language - Blogs - Comparators and Sorting in Groovy</title><link href= [...]
 </head><body>
     <div id='fork-me'>
         <a href='https://github.com/apache/groovy'>
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Comparators and Sorting in Groovy</a></li><li><a href='#_the_java_comparator_story_recap' class='anchor-link'>The Java comparator story recap</a></li><li><a href='#_the_groovy_comparator_story' class='anchor-link'>The Groovy comparator story</a></li><li><a href='#_mixing_i [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Comparators and Sorting in Groovy</a></li><li><a href='#_the_java_comparator_story_recap' class='anchor-link'>The Java comparator story recap</a></li><li><a href='#_the_groovy_comparator_story' class='anchor-link'>The Groovy comparator story</a></li><li><a href='#_mixing_i [...]
 <div class="sectionbody">
 <div class="paragraph">
 <p><span class="image right"><img src="https://blogs.apache.org/groovy/mediaresource/2eb621f3-0419-437e-950b-0c9e5e15804e" alt="Cher" width="179" height="179"></span>
diff --git a/blog/deck-of-cards-with-groovy.html b/blog/deck-of-cards-with-groovy.html
index e958f42..540a31d 100644
--- a/blog/deck-of-cards-with-groovy.html
+++ b/blog/deck-of-cards-with-groovy.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Deck of cards with Groovy, JDK collections and Eclipse Collections</a></li></ul><br/><ul class='nav-sidebar'><li style='padding: 0.35em 0.625em; background-color: #eee'><span>Related posts</span></li><li><a href='./groovy-null-processing'>Groovy Processing Nulls In Lists</ [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Deck of cards with Groovy, JDK collections and Eclipse Collections</a></li></ul><br/><ul class='nav-sidebar'><li style='padding: 0.35em 0.625em; background-color: #eee'><span>Related posts</span></li><li><a href='./deep-learning-and-eclipse-collections'>Deep Learning and E [...]
 <p>Once again, <a href="https://twitter.com/TheDonRaab">Donald Raab</a> has produced an interesting
 <a href="https://donraab.medium.com/how-to-create-a-deck-of-cards-using-eclipse-collections-d9838ac430b7">blog post</a> on
 <a href="https://github.com/eclipse/eclipse-collections">Eclipse Collections</a> this one shows some code for modelling and manipulating cards with Java 17 and Eclipse Collections. His related katas are highly recommended.
diff --git a/blog/deep-learning-and-eclipse-collections.html b/blog/deep-learning-and-eclipse-collections.html
index 0292593..0b6e3c1 100644
--- a/blog/deep-learning-and-eclipse-collections.html
+++ b/blog/deep-learning-and-eclipse-collections.html
@@ -3,7 +3,7 @@
 <!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
 <!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
 <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--><head>
-    <meta charset='utf-8'/><meta http-equiv='X-UA-Compatible' content='IE=edge'/><meta name='viewport' content='width=device-width, initial-scale=1'/><meta name='keywords' content='deep learning, eclipse collections, groovy, emoji, eclipse deeplearning4j'/><meta name='description' content='This post uses Emojis and Eclipse Collections to process pet records. We then use deep learning to predict whether each emoji looks like a dog or cat.'/><title>The Apache Groovy programming language -  [...]
+    <meta charset='utf-8'/><meta http-equiv='X-UA-Compatible' content='IE=edge'/><meta name='viewport' content='width=device-width, initial-scale=1'/><meta name='keywords' content='deep learning, eclipse collections, groovy, emoji, records, eclipse deeplearning4j'/><meta name='description' content='This post uses Emojis and Eclipse Collections to process pet records. We then use deep learning to predict whether each emoji looks like a dog or cat.'/><title>The Apache Groovy programming la [...]
 </head><body>
     <div id='fork-me'>
         <a href='https://github.com/apache/groovy'>
@@ -53,9 +53,13 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Deep Learning and Eclipse Collections</a></li></ul><br/><ul class='nav-sidebar'><li style='padding: 0.35em 0.625em; background-color: #eee'><span>Related posts</span></li><li><a href='./zipping-collections-with-groovy'>Zipping Collections with Groovy</a></li><li><a href='. [...]
-<p>In previous blogs, we&#8217;ve covered <a href="https://blogs.apache.org/groovy/entry/deck-of-cards-with-groovy">Eclipse Collections</a> and <a href="https://blogs.apache.org/groovy/entry/detecting-objects-with-groovy-the">Deep Learning</a>. Recently, a couple of the highly recommended katas for Eclipse Collections have been revamped to include "pet" and "fruit" emojis for a bit of extra fun. What could be better than <em>Learning</em> Eclipse Collections?
-<em>Deep Learning</em> and Eclipse Collections of course!</p>
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Deep Learning and Eclipse Collections</a></li></ul><br/><ul class='nav-sidebar'><li style='padding: 0.35em 0.625em; background-color: #eee'><span>Related posts</span></li><li><a href='./deck-of-cards-with-groovy'>Deck of cards with Groovy, JDK collections and Eclipse Colle [...]
+<p>In previous blogs, we&#8217;ve covered
+<a href="https://groovy.apache.org/blog/deck-of-cards-with-groovy">Eclipse Collections</a> and
+<a href="https://groovy.apache.org/blog/detecting-objects-with-groovy-the">Deep Learning</a>.
+Recently, a couple of the highly recommended katas for Eclipse Collections have been
+revamped to include "pet" and "fruit" emojis for a bit of extra fun. What could be better
+than <em>Learning</em> Eclipse Collections?<em>Deep Learning</em> and Eclipse Collections of course!</p>
 </div>
 <div class="paragraph">
 <p>First, we create a <code>PetType</code> enum with the emoji as <code>toString</code>:</p>
diff --git a/blog/detecting-objects-with-groovy-the.html b/blog/detecting-objects-with-groovy-the.html
index 022d925..f330f62 100644
--- a/blog/detecting-objects-with-groovy-the.html
+++ b/blog/detecting-objects-with-groovy-the.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Detecting objects with Groovy, the Deep Java Library (DJL), and Apache MXNet</a></li><li><a href='#_deep_learning' class='anchor-link'>Deep Learning</a></li><li><a href='#_deep_java_library_djl_apache_mxnet' class='anchor-link'>Deep Java Library (DJL) &amp; Apache MXNet</a [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Detecting objects with Groovy, the Deep Java Library (DJL), and Apache MXNet</a></li><li><a href='#_deep_learning' class='anchor-link'>Deep Learning</a></li><li><a href='#_deep_java_library_djl_apache_mxnet' class='anchor-link'>Deep Java Library (DJL) &amp; Apache MXNet</a [...]
 <div class="sectionbody">
 <div class="paragraph">
 <p>This blog posts looks at using <a href="https://groovy-lang.org/">Apache Groovy</a> with the
diff --git a/blog/feed.atom b/blog/feed.atom
index 5d6c5b3..eb945c7 100644
--- a/blog/feed.atom
+++ b/blog/feed.atom
@@ -264,6 +264,16 @@
     <published>2022-06-15T11:28:56+00:00</published>
     <summary>Thi post looks at using GPars with virtual threads.</summary>
   </entry>
+  <entry>
+    <author>
+      <name>Paul King</name>
+    </author>
+    <title>Using Groovy with Apache Wayang and Apache Spark</title>
+    <link href="http://groovy.apache.org/blog/using-groovy-with-apache-wayang"/>
+    <updated>2022-06-19T13:01:07+00:00</updated>
+    <published>2022-06-19T13:01:07+00:00</published>
+    <summary>This post looks at using Apache Wayang and Apache Spark with Apache Groovy to cluster various Whiskies.</summary>
+  </entry>
   <entry>
     <author>
       <name>Paul King</name>
diff --git a/blog/fruity-eclipse-collections.html b/blog/fruity-eclipse-collections.html
index 43cd3ce..b5b7315 100644
--- a/blog/fruity-eclipse-collections.html
+++ b/blog/fruity-eclipse-collections.html
@@ -53,12 +53,14 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Fruity Eclipse Collections</a></li><li><a href='#_eclipse_collections_fruit_salad' class='anchor-link'>Eclipse Collections Fruit Salad</a></li><li><a href='#_exploring_emoji_colors' class='anchor-link'>Exploring emoji colors</a></li><li><a href='#_putting_it_all_together'  [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Fruity Eclipse Collections</a></li><li><a href='#_eclipse_collections_fruit_salad' class='anchor-link'>Eclipse Collections Fruit Salad</a></li><li><a href='#_exploring_emoji_colors' class='anchor-link'>Exploring emoji colors</a></li><li><a href='#_putting_it_all_together'  [...]
 <div class="sectionbody">
 <div class="paragraph">
 <p>This blog post continues on the theme of using fruit emoji from the
-<a href="https://blogs.apache.org/groovy/entry/deep-learning-and-eclipse-collections">previous post</a>,
-but instead of deep learning, we&#8217;ll look at clustering using k-means after first exploring some top methods of <a href="https://www.eclipse.org/collections/">Eclipse Collections</a> with fruit emoji examples.</p>
+<a href="https://groovy.apache.org/blog/deep-learning-and-eclipse-collections">previous post</a>,
+but instead of deep learning, we&#8217;ll look at clustering using k-means after first
+exploring some top methods of
+<a href="https://www.eclipse.org/collections/">Eclipse Collections</a> with fruit emoji examples.</p>
 </div>
 </div>
 </div>
diff --git a/blog/index.html b/blog/index.html
index 3766ca2..5e44eb1 100644
--- a/blog/index.html
+++ b/blog/index.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3' id='blog-index'><ul class='nav-sidebar list'><li class='active'><a href='/blog/'>Blogs</a></li><li><a href='wordle-checker'>Checking Wordle with Groovy</a></li><li><a href='groovy-null-processing'>Groovy Processing Nulls In Lists</a></li><li><a href='groundhog-day'>Groundhog Day</a></li><li><a href='fun-with-rating-stars'>Fun with rating stars</a></li><li><a href=' [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3' id='blog-index'><ul class='nav-sidebar list'><li class='active'><a href='/blog/'>Blogs</a></li><li><a href='wordle-checker'>Checking Wordle with Groovy</a></li><li><a href='groovy-null-processing'>Groovy Processing Nulls In Lists</a></li><li><a href='groundhog-day'>Groundhog Day</a></li><li><a href='fun-with-rating-stars'>Fun with rating stars</a></li><li><a href=' [...]
                             <div class='row'>
                                 <div class='colset-3-footer'>
                                     <div class='col-1'>
@@ -97,7 +97,7 @@
                     colors: am5.ColorSet.new(root, {})
                 }));
                 wc.data.setAll([
-                { category: "groovy", value: 52 }, { category: "release", value: 23 }, { category: "decryption", value: 1 }, { category: "encryption", value: 1 }, { category: "security", value: 1 }, { category: "bouncy castle", value: 1 }, { category: "domain specific languages", value: 1 }, { category: "jsr385", value: 1 }, { category: "units of measurement", value: 1 }, { category: "machine learning", value: 2 }, { category: "artificial intelligence", value: 1 }, { category: "neural ne [...]
+                { category: "centroids", value: 1 }, { category: "data science", value: 7 }, { category: "groovy", value: 53 }, { category: "kmeans", value: 3 }, { category: "records", value: 5 }, { category: "apache spark", value: 1 }, { category: "apache wayang", value: 1 }, { category: "release", value: 23 }, { category: "decryption", value: 1 }, { category: "encryption", value: 1 }, { category: "security", value: 1 }, { category: "bouncy castle", value: 1 }, { category: "domain speci [...]
                 ]);
                 wc.labels.template.setAll({
                     paddingTop: 5,
diff --git a/blog/matrix-calculations-with-groovy-apache.html b/blog/matrix-calculations-with-groovy-apache.html
index 00ef875..e1c2669 100644
--- a/blog/matrix-calculations-with-groovy-apache.html
+++ b/blog/matrix-calculations-with-groovy-apache.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Matrix calculations with Groovy, Apache Commons Math, ojAlgo, Nd4j and EJML</a></li><li><a href='#_fibonacci' class='anchor-link'>Fibonacci</a></li><li><a href='#_leslie_matrices' class='anchor-link'>Leslie Matrices</a></li><li><a href='#_encryption_with_matrices' class='a [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Matrix calculations with Groovy, Apache Commons Math, ojAlgo, Nd4j and EJML</a></li><li><a href='#_fibonacci' class='anchor-link'>Fibonacci</a></li><li><a href='#_leslie_matrices' class='anchor-link'>Leslie Matrices</a></li><li><a href='#_encryption_with_matrices' class='a [...]
 <div class="sectionbody">
 <div class="paragraph">
 <p>This blogs looks at performing matrix calculations with Groovy
diff --git a/blog/reading-and-writing-csv-files.html b/blog/reading-and-writing-csv-files.html
index 9a68443..f22e547 100644
--- a/blog/reading-and-writing-csv-files.html
+++ b/blog/reading-and-writing-csv-files.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Reading and Writing CSV files with Groovy</a></li><li><a href='#_introduction' class='anchor-link'>Introduction</a></li><li><a href='#_commons_csv' class='anchor-link'>Commons CSV</a></li><li><a href='#_opencsv' class='anchor-link'>OpenCSV</a></li><li><a href='#_jackson_da [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Reading and Writing CSV files with Groovy</a></li><li><a href='#_introduction' class='anchor-link'>Introduction</a></li><li><a href='#_commons_csv' class='anchor-link'>Commons CSV</a></li><li><a href='#_opencsv' class='anchor-link'>OpenCSV</a></li><li><a href='#_jackson_da [...]
 <h2 id="_introduction">Introduction</h2>
 <div class="sectionbody">
 <div class="paragraph">
diff --git a/blog/using-groovy-with-apache-wayang.html b/blog/using-groovy-with-apache-wayang.html
new file mode 100644
index 0000000..4c5251e
--- /dev/null
+++ b/blog/using-groovy-with-apache-wayang.html
@@ -0,0 +1,470 @@
+<!DOCTYPE html>
+<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
+<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
+<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
+<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--><head>
+    <meta charset='utf-8'/><meta http-equiv='X-UA-Compatible' content='IE=edge'/><meta name='viewport' content='width=device-width, initial-scale=1'/><meta name='keywords' content='centroids, data science, groovy, kmeans, records, apache spark, apache wayang'/><meta name='description' content='This post looks at using Apache Wayang and Apache Spark with Apache Groovy to cluster various Whiskies.'/><title>The Apache Groovy programming language - Blogs - Using Groovy with Apache Wayang and [...]
+</head><body>
+    <div id='fork-me'>
+        <a href='https://github.com/apache/groovy'>
+            <img style='position: fixed; top: 20px; right: -58px; border: 0; z-index: 100; transform: rotate(45deg);' src='/img/horizontal-github-ribbon.png'/>
+        </a>
+    </div><div id='st-container' class='st-container st-effect-9'>
+        <nav class='st-menu st-effect-9' id='menu-12'>
+            <h2 class='icon icon-lab'>Socialize</h2><ul>
+                <li>
+                    <a href='http://groovy-lang.org/mailing-lists.html' class='icon'><span class='fa fa-envelope'></span> Discuss on the mailing-list</a>
+                </li><li>
+                    <a href='https://twitter.com/ApacheGroovy' class='icon'><span class='fa fa-twitter'></span> Groovy on Twitter</a>
+                </li><li>
+                    <a href='http://groovy-lang.org/events.html' class='icon'><span class='fa fa-calendar'></span> Events and conferences</a>
+                </li><li>
+                    <a href='https://github.com/apache/groovy' class='icon'><span class='fa fa-github'></span> Source code on GitHub</a>
+                </li><li>
+                    <a href='http://groovy-lang.org/reporting-issues.html' class='icon'><span class='fa fa-bug'></span> Report issues in Jira</a>
+                </li><li>
+                    <a href='http://stackoverflow.com/questions/tagged/groovy' class='icon'><span class='fa fa-stack-overflow'></span> Stack Overflow questions</a>
+                </li><li>
+                    <a href='http://groovycommunity.com/' class='icon'><span class='fa fa-slack'></span> Slack Community</a>
+                </li>
+            </ul>
+        </nav><div class='st-pusher'>
+            <div class='st-content'>
+                <div class='st-content-inner'>
+                    <!--[if lt IE 7]>
+                    <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
+                <![endif]--><div><div class='navbar navbar-default navbar-static-top' role='navigation'>
+                            <div class='container'>
+                                <div class='navbar-header'>
+                                    <button type='button' class='navbar-toggle' data-toggle='collapse' data-target='.navbar-collapse'>
+                                        <span class='sr-only'></span><span class='icon-bar'></span><span class='icon-bar'></span><span class='icon-bar'></span>
+                                    </button><a class='navbar-brand' href='../index.html'>
+                                        <i class='fa fa-star'></i> Apache Groovy
+                                    </a>
+                                </div><div class='navbar-collapse collapse'>
+                                    <ul class='nav navbar-nav navbar-right'>
+                                        <li class=''><a href='http://groovy-lang.org/learn.html'>Learn</a></li><li class=''><a href='http://groovy-lang.org/documentation.html'>Documentation</a></li><li class=''><a href='/download.html'>Download</a></li><li class=''><a href='http://groovy-lang.org/support.html'>Support</a></li><li class=''><a href='/'>Contribute</a></li><li class=''><a href='http://groovy-lang.org/ecosystem.html'>Ecosystem</a></li><li class=''><a href='https://groovy.apac [...]
+                                            <a data-effect='st-effect-9' class='st-trigger' href='#'>Socialize</a>
+                                        </li><li class=''>
+                                            <a href='../search.html'>
+                                                <i class='fa fa-search'></i>
+                                            </a>
+                                        </li>
+                                    </ul>
+                                </div>
+                            </div>
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Using Groovy with Apache Wayang and Apache Spark</a></li><li><a href='#_whiskey_clustering' class='anchor-link'>Whiskey Clustering</a></li><li><a href='#_implementation_details' class='anchor-link'>Implementation Details</a></li><li><a href='#_running_with_the_java_streams [...]
+<div class="sectionbody">
+<div class="paragraph">
+<p><span class="image right"><img src="https://blogs.apache.org/groovy/mediaresource/870eadc0-670a-4b58-86d0-0007c3f2f4b1" alt="wayang logo" width="100"></span>
+<a href="https://wayang.apache.org/">Apache Wayang</a> (incubating) is an API
+for big data cross-platform processing. It provides an abstraction
+over other platforms like <a href="https://spark.apache.org/">Apache Spark</a>
+and <a href="https://flink.apache.org/">Apache Flink</a> as well as a default
+built-in stream-based "platform". The goal is to provide a
+consistent developer experience when writing code regardless of
+whether a light-weight or highly-scalable platform may eventually
+be required. Execution of the application is specified in a logical
+plan which is again platform agnostic. Wayang will transform the
+logical plan into a set of physical operators to be executed by
+specific underlying processing platforms.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_whiskey_clustering">Whiskey Clustering</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p><span class="image right"><img src="img/groovy_logo.png" alt="groovy logo" width="140"></span>
+We&#8217;ll take a look at using Apache Wayang with Groovy to help us in
+the quest to find the perfect single-malt Scotch whiskey.
+The whiskies produced from
+<a href="https://www.niss.org/sites/default/files/ScotchWhisky01.txt">86 distilleries</a>
+have been ranked by expert tasters according to 12 criteria
+(Body, Sweetness, Malty, Smoky, Fruity, etc.).
+We&#8217;ll use a KMeans algorithm to calculate the centroids.
+This is similar to the
+<a href="https://github.com/apache/incubator-wayang/blob/main/README.md#k-means">KMeans example in the Wayang documentation</a>
+but instead of 2 dimensions (x and y coordinates), we have 12
+dimensions corresponding to our criteria. The main point is that
+it is illustrative of typical data science and machine learning
+algorithms involving iteration (the typical map, filter, reduce
+style of processing).</p>
+</div>
+<div class="paragraph">
+<p><span class="image"><img src="https://blogs.apache.org/groovy/mediaresource/8d458e7c-8993-470a-8afd-44a46cd2b500" alt="whiskey_bottles"></span></p>
+</div>
+<div class="paragraph">
+<p>KMeans is a standard data-science clustering technique. In our
+case, it groups whiskies with similar characteristics (according
+to the 12 criteria) into clusters. If we have a favourite whiskey,
+chances are we can find something similar by looking at other
+instances in the same cluster. If we are feeling like a change,
+we can look for a whiskey in some other cluster. The centroid
+is the notional "point" in the middle of the cluster. For us,
+it reflects the typical measure of each criteria for a whiskey
+in that cluster.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_implementation_details">Implementation Details</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>We&#8217;ll start with defining a Point record:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code data-lang="groovy">record Point(double[] pts) implements Serializable {
+    static Point fromLine(String line) { new Point(line.split(',')[2..-1]*.toDouble() as double[]) }
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>We&#8217;ve made it <code>Serializable</code> (more on that later) and included
+a <code>fromLine</code> factory method to help us make points from a CSV
+file. We&#8217;ll do that ourselves rather than rely on other libraries
+which could assist. It&#8217;s not a 2D or 3D point for us but 12D
+corresponding to the 12 criteria. We just use a <code>double</code> array,
+so any dimension would be supported but the 12 comes from the
+number of columns in our data file.</p>
+</div>
+<div class="paragraph">
+<p>We&#8217;ll define a related <code>TaggedPointCounter</code> record. It&#8217;s like
+<code>Point</code> but tracks an <code>int</code> cluster id and <code>long</code> count used
+when clustering the points:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code data-lang="groovy">record TaggedPointCounter(double[] pts, int cluster, long count) implements Serializable {
+    TaggedPointCounter plus(TaggedPointCounter that) {
+        new TaggedPointCounter((0..&lt;pts.size()).collect{ pts[it] + that.pts[it] } as double[], cluster, count + that.count)
+    }
+
+    TaggedPointCounter average() {
+        new TaggedPointCounter(pts.collect{ double d -&gt; d/count } as double[], cluster, 0)
+    }
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>We have <code>plus</code> and <code>average</code> methods which will be helpful
+later in the map/reduce parts of the algorithm.</p>
+</div>
+<div class="paragraph">
+<p>Another aspect of the KMeans algorithm is assigning points to the
+cluster associated with their nearest centroid. For 2 dimensions,
+recalling pythagoras' theorem, this would be the square root of x
+squared plus y squared, where x and y are the distance of a point
+from the centroid in the x and y dimensions respectively. We&#8217;ll do
+the same across all dimensions and define the following helper
+class to capture this part of the algorithm:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code data-lang="groovy">class SelectNearestCentroid implements ExtendedSerializableFunction&lt;Point, TaggedPointCounter&gt; {
+    Iterable&lt;TaggedPointCounter&gt; centroids
+
+    void open(ExecutionContext context) {
+        centroids = context.getBroadcast("centroids")
+    }
+
+    TaggedPointCounter apply(Point p) {
+        def minDistance = Double.POSITIVE_INFINITY
+        def nearestCentroidId = -1
+        for (c in centroids) {
+            def distance = sqrt((0..&lt;p.pts.size()).collect{ p.pts[it] - c.pts[it] }.sum{ it ** 2 } as double)
+            if (distance &lt; minDistance) {
+                minDistance = distance
+                nearestCentroidId = c.cluster
+            }
+        }
+        new TaggedPointCounter(p.pts, nearestCentroidId, 1)
+    }
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>In Wayang parlance, the <code>SelectNearestCentroid</code> class is a
+<em>UDF</em>, a User-Defined Function. It represents some chunk of
+functionality where an optimization decision can be made about
+where to run the operation.</p>
+</div>
+<div class="paragraph">
+<p>Once we get to using Spark, the classes in the map/reduce part
+of our algorithm will need to be serializable. Method closures
+in dynamic Groovy aren&#8217;t serializable. We have a few options to
+avoid using them. I&#8217;ll show one approach here which is to use
+some helper classes in places where we might typically use method
+references. Here are the helper classes:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code data-lang="groovy">class Cluster implements SerializableFunction&lt;TaggedPointCounter, Integer&gt; {
+    Integer apply(TaggedPointCounter tpc) { tpc.cluster() }
+}
+
+class Average implements SerializableFunction&lt;TaggedPointCounter, TaggedPointCounter&gt; {
+    TaggedPointCounter apply(TaggedPointCounter tpc) { tpc.average() }
+}
+
+class Plus implements SerializableBinaryOperator&lt;TaggedPointCounter&gt; {
+    TaggedPointCounter apply(TaggedPointCounter tpc1, TaggedPointCounter tpc2) { tpc1.plus(tpc2) }
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Now we are ready for our KMeans script:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code data-lang="groovy">int k = 5
+int iterations = 20
+
+// read in data from our file
+def url = WhiskeyWayang.classLoader.getResource('whiskey.csv').file
+def pointsData = new File(url).readLines()[1..-1].collect{ Point.fromLine(it) }
+def dims = pointsData[0].pts().size()
+
+// create some random points as initial centroids
+def r = new Random()
+def initPts = (1..k).collect { (0..&lt;dims).collect { r.nextGaussian() + 2 } as double[] }
+
+// create planbuilder with Java and Spark enabled
+def configuration = new Configuration()
+def context = new WayangContext(configuration)
+    .withPlugin(Java.basicPlugin())
+    .withPlugin(Spark.basicPlugin())
+def planBuilder = new JavaPlanBuilder(context, "KMeans ($url, k=$k, iterations=$iterations)")
+
+def points = planBuilder
+    .loadCollection(pointsData).withName('Load points')
+
+def initialCentroids = planBuilder
+    .loadCollection((0..&lt;k).collect{ idx -&gt; new TaggedPointCounter(initPts[idx], idx, 0) })
+    .withName("Load random centroids")
+
+def finalCentroids = initialCentroids
+    .repeat(iterations, currentCentroids -&gt;
+        points.map(new SelectNearestCentroid())
+            .withBroadcast(currentCentroids, "centroids").withName("Find nearest centroid")
+            .reduceByKey(new Cluster(), new Plus()).withName("Add up points")
+            .map(new Average()).withName("Average points")
+            .withOutputClass(TaggedPointCounter)).withName("Loop").collect()
+
+println 'Centroids:'
+finalCentroids.each { c -&gt;
+    println "Cluster$c.cluster: ${c.pts.collect{ sprintf('%.3f', it) }.join(', ')}"
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Here, <code>k</code> is the desired number of clusters, and <code>iterations</code>
+is the number of times to iterate through the KMeans loop.
+The <code>pointsData</code> variable is a list of <code>Point</code> instances loaded
+from our data file. We&#8217;d use the <code>readTextFile</code> method instead
+of <code>loadCollection</code> if our data set was large.
+The <code>initPts</code> variable is some random starting positions for our
+initial centroids. Being random, and given the way the KMeans
+algorithm works, it is possible that some of our clusters may
+have no points assigned.Our algorithm works by assigning,
+at each iteration, all the points to their closest current
+centroid and then calculating the new centroids given those
+assignments. Finally, we output the results.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_running_with_the_java_streams_backed_platform">Running with the Java streams-backed platform</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>As we mentioned earlier, Wayang selects which platform(s) will
+run our application. It has numerous capabilities whereby cost
+functions and load estimators can be used to influence and
+optimize how the application is run. For our simple example,
+it is enough to know that even though we specified Java or
+Spark as options, Wayang knows that for our small data set,
+the Java streams option is the way to go.</p>
+</div>
+<div class="paragraph">
+<p>Since we prime the algorithm with random data, we
+expect the results to be slightly different each time
+the script is run, but here is one output:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="prettyprint highlight"><code data-lang="shell">&gt; Task :WhiskeyWayang:run
+Centroids:
+Cluster0: 2.548, 2.419, 1.613, 0.194, 0.097, 1.871, 1.742, 1.774, 1.677, 1.935, 1.806, 1.613
+Cluster2: 1.464, 2.679, 1.179, 0.321, 0.071, 0.786, 1.429, 0.429, 0.964, 1.643, 1.929, 2.179
+Cluster3: 3.250, 1.500, 3.250, 3.000, 0.500, 0.250, 1.625, 0.375, 1.375, 1.375, 1.250, 0.250
+Cluster4: 1.684, 1.842, 1.211, 0.421, 0.053, 1.316, 0.632, 0.737, 1.895, 2.000, 1.842, 1.737
+...</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Which, if plotted looks like this:</p>
+</div>
+<div class="paragraph">
+<p><span class="image"><img src="https://blogs.apache.org/groovy/mediaresource/a74aff16-03f8-4aec-b7a8-e1ce7133efef" alt="WhiskeyWayang Centroid Spider Plot"></span></p>
+</div>
+<div class="paragraph">
+<p>If you are interested, check out the examples in the repo links
+at the end of this article to see the code for producing this
+centroid spider plot or the Jupyter/BeakerX notebook in this
+project&#8217;s GitHub repo.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_running_with_apache_spark">Running with Apache Spark</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p><span class="image right"><img src="https://blogs.apache.org/groovy/mediaresource/ab92d040-080c-414b-b33f-193772a341fc" alt="spark logo" width="100"></span>
+Given our small dataset size and no other customization, Wayang
+will choose the Java streams based solution. We could use Wayang
+optimization features to influence which processing platform it
+chooses, but to keep things simple, we&#8217;ll just disable the Java
+streams platform in our configuration by making the following
+change in our code:</p>
+</div>
+<div class="paragraph">
+<p><span class="image"><img src="https://blogs.apache.org/groovy/mediaresource/c26f8929-215b-423b-9870-7bc8f18ff874" alt="WhiskeyWayang_DisableJava"></span></p>
+</div>
+<div class="paragraph">
+<p>Now when we run the application, the output will be something like
+this (a solution similar to before but with 1000+ extra lines of
+Spark and Wayang log information - truncated for presentation purposes):</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre>[main] INFO org.apache.spark.SparkContext - Running Spark version 3.3.0
+[main] INFO org.apache.spark.util.Utils - Successfully started service 'sparkDriver' on port 62081.
+...
+Centroids:
+Cluster4: 1.414, 2.448, 0.966, 0.138, 0.034, 0.862, 1.000, 0.483, 1.345, 1.690, 2.103, 2.138
+Cluster0: 2.773, 2.455, 1.455, 0.000, 0.000, 1.909, 1.682, 1.955, 2.091, 2.045, 2.136, 1.818
+Cluster1: 1.762, 2.286, 1.571, 0.619, 0.143, 1.714, 1.333, 0.905, 1.190, 1.952, 1.095, 1.524
+Cluster2: 3.250, 1.500, 3.250, 3.000, 0.500, 0.250, 1.625, 0.375, 1.375, 1.375, 1.250, 0.250
+Cluster3: 2.167, 2.000, 2.167, 1.000, 0.333, 0.333, 2.000, 0.833, 0.833, 1.500, 2.333, 1.667
+...
+[shutdown-hook-0] INFO org.apache.spark.SparkContext - Successfully stopped SparkContext
+[shutdown-hook-0] INFO org.apache.spark.util.ShutdownHookManager - Shutdown hook called</pre>
+</div>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_discussion">Discussion</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>A goal of Apache Wayang is to allow developers to write
+platform-agnostic applications. While this is mostly true,
+the abstractions aren&#8217;t perfect. As an example, if I know I
+am only using the streams-backed platform, I don&#8217;t need to worry
+about making any of my classes serializable (which is a Spark
+requirement). In our example, we could have omitted the
+<code>implements Serializable</code> part of the <code>TaggedPointCounter</code> record,
+and we could have used a method reference
+<code>TaggedPointCounter::average</code> instead of our <code>Average</code>
+helper class. This isn&#8217;t meant to be a criticism of Wayang,
+after all if you want to write cross-platform UDFs, you might
+expect to have to follow some rules. Instead, it is meant to
+just indicate that abstractions often have leaks around the edges.
+Sometimes those leaks can be beneficially used, other times they
+are traps waiting for unknowing developers.</p>
+</div>
+<div class="paragraph">
+<p>To summarise, if using the Java streams-backed platform, you can
+run the application on JDK17 (which uses native records) as well
+as JDK11 and JDK8 (where Groovy provides emulated records).
+Also, we could make numerous simplifications if we desired.
+When using the Spark processing platform, the potential
+simplifications aren&#8217;t applicable, and we can run on JDK8 and
+JDK11 (Spark isn&#8217;t yet supported on JDK17).</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_conclusion">Conclusion</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>We have looked at using Apache Wayang to implement a KMeans
+algorithm that runs either backed by the JDK streams capabilities
+or by Apache Spark. The Wayang API hid from us some of the
+complexities of writing code that works on a distributed platform
+and some of the intricacies of dealing with the Spark platform.
+The abstractions aren&#8217;t perfect, but they certainly aren&#8217;t hard to
+use and provide extra protection should we wish to move between
+platforms. As an added bonus, they open up numerous optimization
+possibilities.</p>
+</div>
+<div class="paragraph">
+<p>Apache Wayang is an incubating project at Apache and still has
+work to do before it graduates but lots of work has gone on
+previously (it was previously known as Rheem and was started
+in 2015). Platform-agnostic applications is a holy grail that
+has been desired for many years but is hard to achieve.
+It should be exciting to see how far Apache Wayang progresses
+in achieving this goal.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_more_information">More Information</h2>
+<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p>Repo containing the source code: <a href="https://github.com/paulk-asert/groovy-data-science/tree/master/subprojects/WhiskeyWayang">WhiskeyWayang</a></p>
+</li>
+<li>
+<p>Repo containing similar examples using a variety of libraries including Apache Commons CSV, Weka, Smile, Tribuo and others: <a href="https://github.com/paulk-asert/groovy-data-science/tree/master/subprojects/Whiskey">Whiskey</a></p>
+</li>
+<li>
+<p>A similar example using Apache Spark directly but with a built-in parallelized KMeans from the <code>spark-mllib</code> library rather than a hand-crafted algorithm: <a href="https://github.com/paulk-asert/groovy-data-science/tree/master/subprojects/WhiskeySpark">WhiskeySpark</a></p>
+</li>
+<li>
+<p>A similar example using Apache Ignite directly but with a built-in clustered KMeans from the <code>ignite-ml</code> library rather than a hand-crafted algorithm: <a href="https://github.com/paulk-asert/groovy-data-science/tree/master/subprojects/WhiskeyIgnite">WhiskeyIgnite</a></p>
+</li>
+</ul>
+</div>
+</div>
+</div></div></div></div></div><footer id='footer'>
+                            <div class='row'>
+                                <div class='colset-3-footer'>
+                                    <div class='col-1'>
+                                        <h1>Groovy</h1><ul>
+                                            <li><a href='http://groovy-lang.org/learn.html'>Learn</a></li><li><a href='http://groovy-lang.org/documentation.html'>Documentation</a></li><li><a href='/download.html'>Download</a></li><li><a href='http://groovy-lang.org/support.html'>Support</a></li><li><a href='/'>Contribute</a></li><li><a href='http://groovy-lang.org/ecosystem.html'>Ecosystem</a></li><li><a href='https://groovy.apache.org/events.html'></a></li>
+                                        </ul>
+                                    </div><div class='col-2'>
+                                        <h1>About</h1><ul>
+                                            <li><a href='https://github.com/apache/groovy'>Source code</a></li><li><a href='http://groovy-lang.org/security.html'>Security</a></li><li><a href='http://groovy-lang.org/learn.html#books'>Books</a></li><li><a href='http://groovy-lang.org/thanks.html'>Thanks</a></li><li><a href='http://www.apache.org/foundation/sponsorship.html'>Sponsorship</a></li><li><a href='http://groovy-lang.org/faq.html'>FAQ</a></li><li><a href='http://groovy-lang.org/sea [...]
+                                        </ul>
+                                    </div><div class='col-3'>
+                                        <h1>Socialize</h1><ul>
+                                            <li><a href='http://groovy-lang.org/mailing-lists.html'>Discuss on the mailing-list</a></li><li><a href='https://twitter.com/ApacheGroovy'>Groovy on Twitter</a></li><li><a href='http://groovy-lang.org/events.html'>Events and conferences</a></li><li><a href='https://github.com/apache/groovy'>Source code on GitHub</a></li><li><a href='http://groovy-lang.org/reporting-issues.html'>Report issues in Jira</a></li><li><a href='http://stackoverflow.com [...]
+                                        </ul>
+                                    </div><div class='col-right'>
+                                        <p>
+                                            The Groovy programming language is supported by the <a href='http://www.apache.org'>Apache Software Foundation</a> and the Groovy community.
+                                        </p><div text-align='right'>
+                                            <img src='../img/asf_logo.png' title='The Apache Software Foundation' alt='The Apache Software Foundation' style='width:60%'/>
+                                        </div><p>Apache&reg; and the Apache feather logo are either registered trademarks or trademarks of The Apache Software Foundation.</p>
+                                    </div>
+                                </div><div class='clearfix'>&copy; 2003-2023 the Apache Groovy project &mdash; Groovy is Open Source: <a href='http://www.apache.org/licenses/LICENSE-2.0.html' alt='Apache 2 License'>license</a>, <a href='https://privacy.apache.org/policies/privacy-policy-public.html'>privacy policy</a>.</div>
+                            </div>
+                        </footer></div>
+                </div>
+            </div>
+        </div>
+    </div><script src='../js/vendor/jquery-1.10.2.min.js' defer></script><script src='../js/vendor/classie.js' defer></script><script src='../js/vendor/bootstrap.js' defer></script><script src='../js/vendor/sidebarEffects.js' defer></script><script src='../js/vendor/modernizr-2.6.2.min.js' defer></script><script src='../js/plugins.js' defer></script><script src='https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js'></script><script>document.addEventListener('DOMContentLoa [...]
+          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+          ga('create', 'UA-257558-10', 'auto');
+          ga('send', 'pageview');
+    </script>
+</body></html>
\ No newline at end of file
diff --git a/blog/whiskey-clustering-with-groovy-and.html b/blog/whiskey-clustering-with-groovy-and.html
index e522a1c..8ab550e 100644
--- a/blog/whiskey-clustering-with-groovy-and.html
+++ b/blog/whiskey-clustering-with-groovy-and.html
@@ -53,11 +53,21 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Whiskey Clustering with Groovy and Apache Ignite</a></li><li><a href='#_whiskey_clustering' class='anchor-link'>Whiskey Clustering</a></li><li><a href='#_apache_ignite' class='anchor-link'>Apache Ignite</a></li><li><a href='#_implementation_details' class='anchor-link'>Imp [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Whiskey Clustering with Groovy and Apache Ignite</a></li><li><a href='#_whiskey_clustering' class='anchor-link'>Whiskey Clustering</a></li><li><a href='#_apache_ignite' class='anchor-link'>Apache Ignite</a></li><li><a href='#_implementation_details' class='anchor-link'>Imp [...]
 <div class="sectionbody">
 <div class="paragraph">
-<p>In a previous <a href="https://blogs.apache.org/groovy/entry/using-groovy-with-apache-wayang">blog post</a>,
-<span class="image right"><img src="https://ignite.apache.org/img/logo.svg" alt="Ignite logo" width="150"></span> we looked at using <a href="https://wayang.apache.org/">Apache Wayang</a> (incubating) and <a href="https://spark.apache.org/">Apache Spark</a> to scale up the <a href="https://en.wikipedia.org/wiki/K-means_clustering">k-means</a> clustering algorithm. Let&#8217;s look at another useful technology for scaling up this problem, <a href="https://ignite.apache.org/">Apache Ignite [...]
+<p>In a previous <a href="https://groovy.apache.org/blog/using-groovy-with-apache-wayang">blog post</a>,
+<span class="image right"><img src="https://ignite.apache.org/img/logo.svg" alt="Ignite logo" width="150"></span> we looked at
+using <a href="https://wayang.apache.org/">Apache Wayang</a> (incubating) and
+<a href="https://spark.apache.org/">Apache Spark</a> to scale up the
+<a href="https://en.wikipedia.org/wiki/K-means_clustering">k-means</a> clustering algorithm.
+Let&#8217;s look at another useful technology for scaling up this problem,
+<a href="https://ignite.apache.org/">Apache Ignite</a>.
+The Ignite team recently released a <a href="https://ignite.apache.org/releases/2.14.0/release_notes.html">new version</a>,
+but earlier versions are also fine for our example.</p>
+</div>
+<div class="paragraph">
+<p>Before we start, a quick reminder of the problem.</p>
 </div>
 </div>
 </div>