Skip to content

CantorAI/PyJit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyJit

Embed c++[c#/Java, in planning] code into Python directly and compile just in time

Simple Example:

import pyjit
@pyjit.func(lang="cpp",Debug=True)
def numpy_test(x:int,y:int):
	"""
	auto np =JitObject()["numpy"];
	    
	auto a = np["arange"](x*y)["reshape"](x,y);
	auto b = np["random.rand"](x,y);
	auto c = np["multiply"](a,b);
	JitObject ary(std::map<std::string,JitObject>{ { "a", a }, { "b", b },{ "c", c } });
	return ary;
	"""
np_a = numpy_test(2,3)
print(np_a)

About

Embed c++/c#/Java code into Python directly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.3%
  • Python 7.1%
  • CMake 1.3%
  • Other 1.3%