I wonder if you looked at Lush? (http://lush.sourceforge.net)? Created by Yann LeCun, a prominent Machine Learning researcher, it is one of the quirkier lisps but it interfaces with C/C++ easily and takes away some of the pain. I have used it to work with OpenCV . You can prototype like in MATLAB and end up with very optimized C code for deployment.