>>110467383
>2026
>Jython is still using Python 2.7
>Userbase is well below 1% of all Python users
Ahahaha.. no.
Of course, you can find an example for any obscure combination of languages. But fact of the mattter basic Python is a hybrid between compiled and interpreted (just like C#, and Java are hybrids).
I am not a fan of python (there are other script languages that are far more simple, logical and powerful). I am just stating that python is basically C with fancy syntax:
https://github.com/python/cpython/blob/main/Include/floatobject.h
Just like C is basically a Macro system for ASM with fancy syntax.
import ctypes
import mmap
buf = mmap.mmap(-1, mmap.PAGESIZE, prot=mmap.PROT_READ | mmap.PROT_WRITE | mmap.PROT_EXEC)
ftype = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
fpointer = ctypes.c_void_p.from_buffer(buf)
f = ftype(ctypes.addressof(fpointer))
buf.write(
b'\x8b\xc7' # mov eax, edi
b'\x83\xc0\x01' # add eax, 1
b'\xc3' # ret
)
r = f(42)
print(r)
del fpointer
buf.close()
It's all some and mirrors, fren.