looking for a suitable language

I need a declarative language that either offers some way to use OpenCL bindings from another langauge or has it's own bindings for OpenCL.

Basically, I've drafted a project that has large portions that would work very well in a functional language and would benefit greatly if run concurrently across the stream processors of a GPU.

edit: didn't mean to hit submit, update to this post coming as soon as I finish it :P


I've done some searching on the google, and useful results were scarce.
I'm considering using Clojure and Java, but I'm a bit iffy on using a JVM language mainly because I'm not sure how well they can be scaled across multiple processors.

I was hoping I could get some input on this matter from some of my favorite computer science strangers from across the globe.
Last edited on
C is always suitable. Always.
if u are an exloler the programming world well! then i would recomend python as the easiest to bind with
edit: but on further thought u will alsol need lower level for the hardware interface
Last edited on
@Polar, python isn't really what I was looking for. But thanks for the suggestion

@Chrisname, not if it's not a FP language it isn't :P
Doesn't everything have support for C libraries? It's probably best to pick whatever you feel most comfortable with.

What are you making anyway?
xander336 wrote:
not if it's not a FP language it isn't :P

You can probably make C do functional programming.

hamsterman wrote:
Doesn't everything have support for C libraries?

Everything that can load .dlls or shared libraries or whatever, yes.
Last edited on

You can probably make C do functional programming


FP in a language without GC? I seriously doubt it.


If you want something fast as C, with unmatched imlicit and explicit parallelism support, including OpenCL, take Scala.
Last edited on
In the end I decided to go with LISP and C for this project. Though as I'm still early on and researching things I might switch to Clojure and Java for convenience before any code that would be difficult to port from C to java gets written.

@Hamsterman, an AI, more specifically a system designed to learn how to read body language. Currently my goal is to have it be able to recognize the emotion/connotation that is most often associated with a facial expression, when supplied with an image containing a face with that expression.

The pattern matching algorithm is what I intend to use OpenCL for.
rapidcoder wrote:
FP in a language without GC? I seriously doubt it.

You can get a GC in C as well. I once implemented my own mark-and-sweep GC based on the one at http://www.hpl.hp.com/personal/Hans_Boehm/gc/

It didn't work but that's not the point. It can be done.

Topic archived. No new replies allowed.