October 16, 2004 11:43 AM Subscribe
I'm working on something like a glorified graphing calculator application, based on a small functional programming language. Each input program describes a function of some number of parameters, and the app's job is to plot the function's output across various input ranges. Is there an existing language with an open-source parser I can reuse for this job instead of inventing and implementing a new language from scratch?
posted by Mars Saxman to Computers & Internet (12 answers total)
I've never done any programming with functional languages before, and while web searches have turned up lists of dozens of them, I have no idea how they work or which ones might be suitable for a small embedded application like this.
The critical requirement is concurrency: the whole point of this project is to compile the program using SIMD instructions so I can run four passes at once. I'm sure threads and dual processor machines will get involved too.
I don't need integer math, or any data types other than single-precision floats. The language needs to include, or I need to be able to supply, a library of intrinsic math functions (sine, tangent, square root, etc). The finished app needs to run on Unix, Windows, and Mac OS.
I call this thing a compiler, but there's no need to write out an executable; it just needs to load the program, run it some thousands of times using different parameter sets, save each result value in an image buffer, and write the output to disk as a PNG or JPEG file.