language-binding

CUDA for .net?

纵然是瞬间 提交于 2019-12-02 17:31:56
I know that there are a lot of CUDA language bindings, such as PyCUDA, but are there any good bindings for .Net? The only one I've seen is this one , but I'd like to know if there are any others. torial Here's another library: http://sourceforge.net/projects/brahma-fx/ Edit : I've been looking at the documentation for the project you initially listed, and can say that the interface makes me think: what is the point of using .Net. The project I've listed has a cleaner interface but no documentation. The project you listed seems to be more dedicated in the development path ( a recent 2.1 release

What is a language binding?

天大地大妈咪最大 提交于 2019-12-02 17:15:58
My good friend, Wikipedia, didn't give me a very good response to that question. So: What are language bindings? How do they work? Specifically accessing functions from code written in language X of a library written in language Y. Let's say you create a C library to post stuff to stackoverflow. Now you want to be able to use the same library from Python. In this case, you will write Python bindings for your library. Also see SWIG: http://www.swig.org In the context of code libraries, bindings are wrapper libraries that bridge between two programming languages so that a library that was

ctypes return a string from c function

浪尽此生 提交于 2019-11-30 02:15:53
I'm a Python veteran, but haven't dabbled much in C. After half a day of not finding anything on the internet that works for me, I thought I would ask here and get the help I need. What I want to do is write a simple C function that accepts a string and returns a different string. I plan to bind this function in several languages (Java, Obj-C, Python, etc.) so I think it has to be pure C? Here's what I have so far. Notice I get a segfault when trying to retrieve the value in Python. hello.c #include <stdlib.h> #include <stdio.h> #include <string.h> const char* hello(char* name) { static char

Symbolic Computation Library in pure C

风格不统一 提交于 2019-11-29 09:25:39
问题 Does there exist a symbolic computation library written pure C? Symbolic computation as in manipulating mathematical equations in symbolic form. I know there is Mathematica , and Sympy . But, I am interested in creating in a high performance pure C implementation of a symbolic computation library to bind to a scripting language, specifically Ruby to start. It would seem that their is a need for a symbolic mathematics library such this. Over time, ideally the library could be built out in a

ctypes return a string from c function

对着背影说爱祢 提交于 2019-11-28 23:08:30
问题 I'm a Python veteran, but haven't dabbled much in C. After half a day of not finding anything on the internet that works for me, I thought I would ask here and get the help I need. What I want to do is write a simple C function that accepts a string and returns a different string. I plan to bind this function in several languages (Java, Obj-C, Python, etc.) so I think it has to be pure C? Here's what I have so far. Notice I get a segfault when trying to retrieve the value in Python. hello.c