Re: Bindings for Python or Ruby? And APR docco?
de > On 3 Jul 2023, at 22:08, Mads Toftum wrote: > > On Mon, Jul 03, 2023 at 01:20:14PM -0500, Greg Stein wrote: >> While I would doubt there is a book about APR itself, I would bet any book >> that talks about writing a module for Apache has extensive coverage of APR >> (if such a book exists; dunno). There is no docco besides the headers and >> the code itself. >> > There's a 30 page chapter on APR in Nick Kew's The Apache Modules Book. Thanks for the mention, but I doubt that would tell RoUS anything he doesn't already know! Bindings for scripting languages get mentioned only in passing in the book, and the detail goes no deeper than "mod_foo has foo bindings for HTTPD API and APR so you can do much the same things in foo as in C". I don't think APR would make much of a book on its own. Sure, you could expand on what I wrote, but only up to a point, so you'd want some context for it. Scripting might make just such a context if you can make a case that APR adds value to existing scripting language libraries other than in a specific context like HTTPD. -- Nick Kew
Re: Bindings for Python or Ruby? And APR docco?
Yeah, saw ... was explaining why such bindings would not exist. APR is still svn-based so sending patches to the list is fine. An issue works too, but feels heavier for everybody. The repos/asf/apr/ area is committers-only. Cheers, -g On Mon, Jul 3, 2023 at 1:35 PM Rodent of Unusual Size wrote: > I mentioned a multi-language (single- or multi-process) environment; for > example, some apps running C and some running Python on a Raspberry Pi. If > it were a single-language situation, naturally I'd use the native > mechanisms. And right now I'm thinking about the IPC functionality, not > the memory management bits (which, admittedly, I expect are a very big part > of APR's usage profiles). > > So what's the process for enhancing docco in the code? Is it through > GitHub pull requests, patches submitted to BZ/Jira, just commit to the dev > branch (assuming CTR)? In re-engaging with ASF, I'm finding the > github-RW/github-RO-mirror/svn per-project setup a bit difficult to track > and remember.. > > Thanks! > -- > Ken Coar () > OSS developer, opinionist, author > >
Re: Bindings for Python or Ruby? And APR docco?
On Mon, Jul 03, 2023 at 01:20:14PM -0500, Greg Stein wrote: > While I would doubt there is a book about APR itself, I would bet any book > that talks about writing a module for Apache has extensive coverage of APR > (if such a book exists; dunno). There is no docco besides the headers and > the code itself. > There's a 30 page chapter on APR in Nick Kew's The Apache Modules Book. vh Mads Toftum -- http://flickr.com/photos/q42/
Re: Bindings for Python or Ruby? And APR docco?
I mentioned a multi-language (single- or multi-process) environment; for example, some apps running C and some running Python on a Raspberry Pi. If it were a single-language situation, naturally I'd use the native mechanisms. And right now I'm thinking about the IPC functionality, not the memory management bits (which, admittedly, I expect are a very big part of APR's usage profiles). So what's the process for enhancing docco in the code? Is it through GitHub pull requests, patches submitted to BZ/Jira, just commit to the dev branch (assuming CTR)? In re-engaging with ASF, I'm finding the github-RW/github-RO-mirror/svn per-project setup a bit difficult to track and remember.. Thanks! -- Ken Coar () OSS developer, opinionist, author
Re: Bindings for Python or Ruby? And APR docco?
There are no bindings that I'm aware of. I don't think APR would add much value to Python, which has its own semaphores and memory mapping. Python's reference counting and garbage collection handle the memory management that APR pools would be used for. While I would doubt there is a book about APR itself, I would bet any book that talks about writing a module for Apache has extensive coverage of APR (if such a book exists; dunno). There is no docco besides the headers and the code itself. Cheers, -g On Mon, Jul 3, 2023 at 12:12 PM Rodent of Unusual Size wrote: > Please be gentle, I haven't been around APR for quite a few years.. > > I'm tentatively interested in a multi-language application that could > benefit from APR, specifically things like semaphores and shared memory. > > Are there any OSS binding libraries making *any* APR functionality > available to Python (primarily) or Ruby? Either from the APR project > itself, or provided by some other person or organisation? > > For that matter, are there any good *BOOKS* about APR out there? I've > found the documentation, apparently built from code-embedded comments, to > be a bit .. sparse. I might be interested in improving that, if someone > would be willing to inform me (and possibly hold my hand for a bit ) > about the process for doing so.. > > 's been a very, _very_ long time since I was involved with APR, so I'm > going to have to feel my way back into being able to provide any value. > With all the various different ways ASF projects have now of handling > submissions, issues, and code repos, I'm sure my SVN-and-email 'muscle > memory' is stale and obsolete.. > > Thanks! > -- > Ken Coar () > OSS developer, opinionist, author >