Reputation: 9547
I'm lookign for a langage with the following features :
C, C++, AllegroCL, C# - Mono, C# - MS .NET, CFFI, CHICKEN, CLISP, D, Go , Guile, Java, Lua, MzScheme/Racket, Ocaml, Octave, Perl, PHP, Python, R, Ruby, Tcl/Tk
C, C++, C#, D, Go, Java, Ocaml, PHP, Ruby ? Other ?
C : libCLang, Ch; C++ : Ch; Any scripting langage; Other ?
C : gcc, libClang, etc; C++; C#; D; Python; Go; OCaml; Lua : LuaJIT; Ruby : Ludicrous
TL;DR
I would like a statically typed, embeddable scripting langage which can be compiled for perf.
Ideas ? Comments ? Input of any kind ? Thanks !
EDIT Valid propositions so far :
So there is much more hope than I originally thought :) Thank you all ! I'll keep investigating and will accept an answer when I have more experience on the subject.
Upvotes: 3
Views: 951
Reputation: 47163
This is almost certainly not a useful answer, but Java does actually fit all your bullet points.
The problem is that it's not exactly a scripting language; you need to write quite a lot of boilerplate to get a small task done, and the APIs are usually fairly involved.
Upvotes: 1
Reputation: 9527
Have a look at OpenCL, perhaps? It's designed around being a C-like language that is compiled at runtime, but AMD's latest SDKs provide the ability to do offline pre-compilation as well.
It's not an obvious choice, because it's promoted for use on GPUs, but it's designed to be more broadly-applicable than that and can be run just as well on ordinary CPUs.
Upvotes: 1
Reputation: 35520
Ruby is in each of your lists, and the Rubinius compiler compiles it down to bytecode. Does that meet your needs?
2nd try: Have you looked at Boo: "an object oriented statically typed programming language for the Common Language Infrastructure"
Upvotes: 1
Reputation: 5982
I'm pretty sure D is compilable and can be run as a script.
Upvotes: 0