nyquil93 / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

Using other languages than Python #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is an idea I've had for a long time but never recorded.  Once Crunchy
is mature, we should investigate the possibility of having other languages
than Python being "runnable".  One obvious possibility is Ruby.  The way we
could do so would be to start an external process (using the subprocess
module http://docs.python.org/lib/module-subprocess.html) and pipe back the
result to the web page.  This is how the old crunchy (pre-comet) used to work.

This idea could even be extended to compiled languages such as C.

Finally, we could probably find a more "native" way to do this for
javascript, simply using eval().

Original issue reported on code.google.com by andre.ro...@gmail.com on 20 Jun 2008 at 10:31

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Resubmitting as myself instead of on my gf's account:

This is another thing that would be easier using Silverlight: Because 
Silverlight
runs on the .NET CLR using the Dynamic Languages Runtime, Ruby and 
(standardised)
Javascript support is only a little bit more tricky than Python.

Furthermore, I am pretty sure (without checking) that it is possible to compile 
and
run C# and all the other .NET languages (of which there are a lot[1]) at runtime
without actually writing the data to a file.

Whichever route we take, I think this is an excellent idea!

[1] - http://en.wikipedia.org/wiki/List_of_CLI_Languages

Original comment by johannes...@gmail.com on 21 Jun 2008 at 3:23

GoogleCodeExporter commented 8 years ago
Interesting suggestion; I wonder about the Linux support (i.e. status of Mono 
and
Moonlight).

I think though, that before we go this route, we should migrate to using 
pygment (see
Issue 123) instead of our own colorizer module.  It would be one dependency 
that we
could include with the Crunchy distribution, like we do with ElementSoup.

Original comment by andre.ro...@gmail.com on 21 Jun 2008 at 5:16