All of lore.kernel.org
 help / color / mirror / Atom feed
From: Damien Churchill <damoxc@gmail.com>
To: Colin Patrick McCabe <colin.mccabe@dreamhost.com>
Cc: Sage Weil <sage@newdream.net>, ceph-devel@vger.kernel.org
Subject: Re: projects
Date: Tue, 30 Aug 2011 18:55:14 +0100	[thread overview]
Message-ID: <CAFtEh-eSHZPCTB2rv4_6gksNxE=DWG7gdTBK+7QHB-ftBLus1Q@mail.gmail.com> (raw)
In-Reply-To: <CA+qbEUPpoxeNGSd795EpjWPes8tfKkiY0hXQPh4Bo5NZ1iVd1w@mail.gmail.com>

On 30 August 2011 18:04, Colin Patrick McCabe
<colin.mccabe@dreamhost.com> wrote:
> On Tue, Aug 30, 2011 at 6:07 AM, Damien Churchill <damoxc@gmail.com> wrote:
>> On 29 August 2011 20:08, Sage Weil <sage@newdream.net> wrote:
>>> I started to make a list of smallish projects that are reasonably easy for
>>> new developers to approach.  The list is at
>>>
>>> http://ceph.newdream.net/wiki/Projects
>>>
>>> Any other ideas?
>>>
>>> sage
>>>
>>
>> I've been working on some alternative python bindings [0], using
>> Cython instead of ctypes to wrap the libraries. It's still early days
>> but they're in a reasonably usable state. When I have the time I'm
>> going to look at wrapping the C++ headers instead of the C ones. I
>> started it as there weren't any py bindings for librbd and figured may
>> as well wrap the others whilst I'm at it. No idea if it'll be useful
>> for anyone else.
>>
>> [0] http://github.com/ukplc/pyceph
>> --
>> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> Cython is an interesting project.
>
> C++ makes a big deal out of being source-compatible with C. But
> really, source compatibility with C is not required to have a
> well-integrated system with high-level and low-level components. All
> you need is the ability to link with C code and interact with it
> without the hassle of something like JNI or SWIG.
>
> For example, GCC now allows you to compile half of your project in C
> and the other half in Golang. You can't mix the two in the same object
> file, but they can interact pretty seamlessly.
>
> There seems to be a trend lately to give dynamic languages a small
> amount of static typing, just to give them some much-needed
> performance. Javascript recently got typed arrays, and apparently it
> was a huge performance boost. However, one thing that is notably
> lacking in Cython is any discussion of removing the global interpreter
> lock (GIL.) Unless that ever gets tackled, you'll effectively be
> limited to the performance of a single core, which is a rapidly
> shrinking percentage of the actual system resources. I can see there
> are some workarounds in Cython like manually dropping the GIL inside a
> certain section.

Yes, you can add "nogil" to method signatures (I have yet to do so)
which will release the GIL when executing that method. You of course
have to not be touching any python stuff whilst running that method
but it means you are able to delve into using multiple cores for C
code. So for something like bindings it works fine as there shouldn't
be too much computation going on in the python side of things.

> If you get a chance, you should check out Golang. It allows you to use
> something very much like duck typing, but also get the benefits of
> static typing. There are no header files, class hierarchies, or
> tedious boilerplate.  It also has a great concurrency mechanism that
> is better than threads and yes, does use all the cores. :)
>

Already have been experimenting with it, quite enjoying it as well.
The concurrency is a dream indeed :-) Python does have greenlet but
goroutines are far more elegant.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-08-30 17:55 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29 19:08 projects Sage Weil
2011-08-29 23:50 ` projects Marcus Sorensen
2011-08-30 13:07 ` projects Damien Churchill
2011-08-30 17:04   ` projects Colin Patrick McCabe
2011-08-30 17:55     ` Damien Churchill [this message]
2011-09-03 22:33 ` projects Sage Weil
2011-09-05  2:15   ` projects Noah Watkins
2011-09-07  4:01     ` projects Sage Weil
2021-05-11  8:37 Projects Chris Pavlides
2021-06-03 16:34 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 12:09 Projects Jotham Masuku
2021-06-09 13:25 Projects Jotham Masuku
2021-06-09 13:40 Projects Jotham Masuku
2021-06-09 16:01 Projects Jotham Masuku
2021-06-28  9:00 Projects Jotham Masuku
2021-06-28  9:19 Projects Jotham Masuku
2021-06-28  9:25 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-28 10:13 Projects Jotham Masuku
2021-06-30  8:10 Projects Jotham Masuku
2021-07-12 18:49 Projects J Masuku
2021-07-12 18:49 Projects J Masuku
2021-07-12 18:49 Projects J Masuku
2021-08-21 22:41 Projects Chris Pavlides
2022-01-25  0:59 Projects D C Johnston
2022-01-25 14:21 Projects D C Johnston
2022-03-07 13:59 Projects E Matare
2022-03-12 12:31 Projects E Matare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFtEh-eSHZPCTB2rv4_6gksNxE=DWG7gdTBK+7QHB-ftBLus1Q@mail.gmail.com' \
    --to=damoxc@gmail.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=colin.mccabe@dreamhost.com \
    --cc=sage@newdream.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.