Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Groovy
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>A fun activity in the late 1980's and early 1990's was to write <a href="http://en.wikipedia.org/wiki/Polyglot_%28computing%29">polyglot</a> programs that ran in multiple languages, e.g. check out <a href="http://ideology.com.au/polyglot/">this one</a> which runs in COBOL, Pascal, Fortran, C, PostScript, Linux/Unix shell script (bash, sh, csh), x86 machine language and Perl! More recently the term has resurfaced (e.g. <a href="http://memeagora.blogspot.com/2006/12/polyglot-programming.html">Neal</a>, <a href="http://martinfowler.com/bliki/OneLanguage.html">Martin</a> and others) in recognition of the fact that a developer no longer lives in a world dominated just by one language, e.g. COBOL, Java, C#. As a minimum, a developer must know JavaScript for AJAX sights, SQL for databases, XML, various build file dialects, various scripting languages etc., in addition to one or more mainstream languages.</p> <p>This interest has been increasing lately with multiple languages being <a href="http://www.infoq.com/news/2008/02/Da-Vinci-and-the-DLR">emphasised</a> on both the <a href="http://www.robert-tolksdorf.de/vmlanguages.html">JVM</a> and the <a href="http://dotnetpowered.com/languages.aspx">CLR</a>. Groovy obviously supports a polyglot relationship with Java (e.g. A Groovy class can inherit from a Java class which can inherit from a Groovy class). In other cases Groovy reduces the need to introduce multiple languages because it gives you a Groovy syntax where you might otherwise have to introduce a new language, e.g. using GPath instead of introducing XPath, using datasets instead of SQL, AntBuilder instead of Ant XML files and so on. Other features just make integration with other languages a little easier, e.g. Groovy's regex, multi-line string, GString amd template support.</p> <p>Groovy also has other Polyglot friendly features or integration possibilities:</p> <ul> <li>Consider combining <a class="confluence-link" href="/display/GROOVY/Functional+Programming+with+Groovy" data-linked-resource-id="63953" data-linked-resource-type="page" data-linked-resource-default-alias="Functional Programming with Groovy" data-base-url="http://docs.codehaus.org">Functional Programming with Groovy</a> with Groovy</li> <li>Considering using some <a class="confluence-link" href="/display/GROOVY/Constraint+Programming" data-linked-resource-id="80213" data-linked-resource-type="page" data-linked-resource-default-alias="Constraint Programming" data-base-url="http://docs.codehaus.org">Constraint or logic programming</a> with your Groovy</li> <li>Consider accessing other <a class="confluence-link" href="/display/GROOVY/JSR-223+access+to+other+JVM+languages" data-linked-resource-id="79528444" data-linked-resource-type="page" data-linked-resource-default-alias="JSR-223 access to other JVM languages" data-base-url="http://docs.codehaus.org">languages via JSR-223</a></li> <li>Consider using Groovy as a <a href="http://www.cascading.org/documentation/groovy.html">front end scripting language</a> for your Hadoop Cluster</li> <li><a class="confluence-link" href="/display/GROOVY/Calling+Scala+from+Groovy" data-linked-resource-id="81133750" data-linked-resource-type="page" data-linked-resource-default-alias="Calling Scala from Groovy" data-base-url="http://docs.codehaus.org">Calling Scala from Groovy</a></li> <li><a class="confluence-link" href="/display/GROOVY/Calling+Clojure+from+Groovy" data-linked-resource-id="126025894" data-linked-resource-type="page" data-linked-resource-default-alias="Calling Clojure from Groovy" data-base-url="http://docs.codehaus.org">Calling Clojure from Groovy</a></li> </ul>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced