Polyglot, or multiple language, solutions allow you to apply languages to problems which they are best suited for. Yet, at least in my experience, software shops tend to want to apply a "super" language to all aspects of the problem they are trying to solve. Sticking with that language come "hell or high water" even if another language...
I am considering building an application that is a blend of a dynamic language (python or ruby) and compiled language and need some help getting convincing myself that this is a good idea.
My thought are that I can use a dynamic language to get a lot of code written quickly, and then dropping down to a compiled language like c/c++ to im...
Those of us who use multiple languages to solve problems can combine them in a lot of ways. Personally I use PL/SQL, XSLT, JavaScript, and Java plus the pseudo languages HTML, XML, CSS, Ant, and Bash. What do you use?
...
Is there an open source application that could integrate applications using multiple programming languages into a Java application?
...
Trying to learn more about Polyglot programming.
What is it exactly and is it important?
I found this article by Ted Neward (Thoughtworks) interesting.
Article suggests that polyglot programming was first mentioned by Neil Ford.
...
I'd rather not "reinvent the wheel" and I've found a Ruby project that provides functionality I need in my Java app (there is no preexisting Java project that does what I need - trust me, I've looked). So, best case scenario, I am able to run the Ruby code from my Java code (ala JSR223).
However, this Ruby project depends on having seve...
I am using an Compiler called Polyglot which is a highly extendable compiler for Java.
I seem to have run into this Exception while trying to compile some test code:
"Invalid action number found in internal parse table."
How can I make a valid action number for the parse table?
EDIT:
I solved the problem by just fixing my gram...
I've got a batch script that does some processing and calls some perl scripts.
My question is if there was a way to put the perl code directly into the batch script and have it run both types of scripts.
...
I've been considering converting my current HTML5 documents to polyglot HTML5 ones. I figure that even if they only ever get served as text/html, the extra checks of writing it XML would help to keep my coding habits tidy and valid.
Is there anything particularly thrilling in the HTML5-only space that would make this an unwise choice?
...
It's possible to interleave a C++ source file with an HTML document:
//<![IGNORE[
/*]]>
<html>
<head>
<title>Example</title>
</head>
<body>
<p>Example</p>
</body>
</html>
<![IGNORE[*/
#include <iostream>
int main(int argc, char** argv) {
std::cout << "Hello, world!\n";
}
/*]]>
<![IGNORE[*/
//]]>
This leaves a stray // at th...
I'm working in Java, C ,Perl, and Bash (and a little python) on a project that all work together (mostly via RESTfull interfaces) and am looking for an IDE suited to Polyglot programming?
What IDE can i use that has:
jump to definition
call hierarchy
syntax highlighting
across at least these languages:
Java
C
Perl
all from ...
In Maven 3 there are new DSL replacements for the POMs. See:
http://polyglot.sonatype.org/groovy.html
for the wonderfully terse syntax.
Is there something similar that can be used for Spring applicationcontext.xml files?
...
What's the most complex/powerful code you can write that's valid in a maximum number of languages?
So, for example, the following code is valid in both PHP and JavaScript.
function foo($bar)
{
$var = 0;
for($i=0;$i<100;$i++)
{
$var += ($bar + 2)/(1+$i);
}
return $var;
}
Why is this a useful challenge? I think its a useful way to t...