TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Bitey: Import LLVM bitcode directly into Python

177 pointsby macealmost 13 years ago

8 comments

zokieralmost 13 years ago
I very much like the concept. But I dislike the "magic" feel of overloading "import". Especially as it creates namespace collisions, eg when you have python module and object file with same name. Imho something like "bitey.import_obj(name)" would have been nice and more clear.<p>I wonder how complicated it would be to parse header files to populate field names of structs automatically? Maintaining separate .pre.py and .h files seems like recipe for trouble.
评论 #4365796 未加载
评论 #4365791 未加载
synparbalmost 13 years ago
I'll be interested to see how this compares to numba and how easy it is to fit it into the scientific python ecosystem. I'm also curious about performance versus numba and my current go to solution, cython.
bbayeralmost 13 years ago
What about performance? Is there any benchmark for a function compared with pure python and C implementation?
评论 #4365122 未加载
jrockwayalmost 13 years ago
"I call the big one Bitey."
评论 #4364044 未加载
madlagalmost 13 years ago
Very cool ! Can't wait to test it ! Why exactly no C++ support ?
评论 #4363909 未加载
评论 #4364723 未加载
zoobertalmost 13 years ago
It seems cool but why would you use it instead of having a c lib (or c obj file) interfaced with ctypes or swig ... ? Maybe I miss what LLVM brings ? Thanks
评论 #4365803 未加载
评论 #4366032 未加载
评论 #4366058 未加载
评论 #4365412 未加载
tocommentalmost 13 years ago
So can you use this with C functions compiled normally with gcc? It seems like that would be even more useful.
评论 #4366052 未加载
评论 #4366396 未加载
tvdwalmost 13 years ago
I could be completely wrong here, but doesn't this completely bypass the optimizer that makes C so fast?
评论 #4365943 未加载