Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upMove qubes.qdb module outside qubes package #1252
Comments
woju
added this to the Release 4.0 milestone
Sep 29, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 29, 2015
Member
Some time ago you've pointed some module to automatically generate
C->python bindings. Can you remind me what it was?
It may be also converted to use ctypes to access that library, but I'm
not sure if that would be better (but it will be easier to read).
Not saying that strictly want to do that now.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Some time ago you've pointed some module to automatically generate Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
woju
Sep 29, 2015
Member
On Tue, Sep 29, 2015 at 03:58:13AM -0700, Marek Marczykowski-Górecki wrote:
Some time ago you've pointed some module to automatically generate
C->python bindings. Can you remind me what it was?
It may be also converted to use ctypes to access that library, but I'm
not sure if that would be better (but it will be easier to read).
Not saying that strictly want to do that now.
Cython. I already have some preliminary work on
that.
And no, ctypes is not easier to read. ctypes is, by some accounts,
less readable than plain C, plus it is easy to segfault the interpreter.
Cython with only minor attention make that very hard.
|
On Tue, Sep 29, 2015 at 03:58:13AM -0700, Marek Marczykowski-Górecki wrote:
Cython. I already have some preliminary work on And no, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 29, 2015
Member
On Tue, Sep 29, 2015 at 11:08:21AM -0700, Wojtek Porczyk wrote:
And no,
ctypesis not easier to read.ctypesis, by some accounts,
less readable than plain C, plus it is easy to segfault the interpreter.
Cython with only minor attention make that very hard.
You just need to define argument types (aka rewrite header file into
python), for example:
https://bitbucket.org/mhallin/py-scrypt/src/119842611360837902b12b7c5aadef5387318f70/scrypt.py?at=default
Anyway I think you know better what can be used here.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Tue, Sep 29, 2015 at 11:08:21AM -0700, Wojtek Porczyk wrote:
You just need to define argument types (aka rewrite header file into Anyway I think you know better what can be used here. Best Regards, |
woju commentedSep 29, 2015
qubes.qdb, a compiled module, should still reside in/usr/lib64. It howeverprevents importing of main
qubespackage, since/usr/lib64is searchedbefore
/usr/lib. Therefore it should be renamed, for example toqubesdb.