Any high-level languages ​​that can use the c libraries?

I know this question may be in vain, but it's just out of curiosity, and I still really love it. In any case, I loved python for a while, studying it. My problem is obviously related to speed. I would like to get into the creation of indie games, and for the short future 2d and pygame will work.

But in the end, I would like to enter the 3D area, and python is really too slow to make anything 3d and professional. So I wonder, have I ever worked on creating a high-level language capable of importing and using c libraries? I looked through Genie and it seems to be able to use certain libraries, but I'm not sure to what extent. Can I use it to program openGL or in the game engine c?
I know some lisp and enjoy it a lot, but there are not many libraries for this. This leads to a problem: I can't stand the syntax of C, but C has libraries I might need! And game engines like irrlicht. Is there any language that can be used instead of C around C?

Many thanks guys

+3
source share
10 answers

Python can call functions in dynamically loaded C libraries (.so on unix, .dll on Windows) using the ctypes module.

There is also cython - a variant of python that compiles in C and can directly call C libraries. You can mix modules written in pure Python and cython.

3D-, Python python. , ( ), Blender Python-Ogre.

+9

Panda3D - , Python . Python, Panda3D (, , C ++) .

, Panda3D. AAA Gears of War, .

+3

swig, C : lua, python, php, #...

.

+3

Python C ctypes. Python C, C API , .

+1
+1

PyOpenGL, . Swig , C/++ Python.

+1

, , ++ - , . , , ++, 3D-. 3D-, , , ?

, , ++ OpenGL, , , ,

+1

- Cython , . Python , C , .

, , 3D, C ++ .: -)

0

Python (Ogre, Irrlicht ..). Panda3D .

0

.Net. :

  • ++/CLI C/++ .Net, , C/++.

  • .Net(#, F #, IronPython) . #/F # 2-4 , C-, , Python. , , #/F # .

0
source

Source: https://habr.com/ru/post/1748798/


All Articles