Yang,
I've used Python with Twisted Matrix and C++ with ACE. They both have
high learning curves, but once you they will perform (scale, etc). I
chose Python with Twisted Matrix this time for my open source project -
Twisted Storage ( http://twistedstorage.org ) - because of the number of
available libraries and tools to make building applications easier. The
problem I have with ACE is the lack of packaged libraries to do things
within the framework, like SOAP, XML-RPC, etc.
Peace,
Chaz
Yang wrote:
Has anyone looked into the D programming language? From afar, it looks
"nice" - it seems well-suited for systems programming, like a
substantially-cleaned-up C++ or a Java that gives you more raw
control. Digital Mars' D compiler also falls just under gcc's C
compiler in the computer language shootout's CPU comparisons. I've
never used it, though.
I'm currently considering using it for implementing a small
distributed systems project. (The project is a rewrite where the
original prototype was written with Python and Twisted, but was too
slow, as it had to run on under-powered 386 devices, and we'd like to
maximize throughput.) However, I wasn't able to find any solid
asynchronous I/O libraries for it. Have people had any experience
using D? What are your thoughts? Are there any ugly downsides to the
language you'd want to point out (aside from the things that come with
lower popularity, e.g. lack of community/code/support/tools)?
The other option I am considering is C++, with either ACE, libasync,
or asio. I was wondering if anyone can offer (experience-based)
comparisons of the three (or even any two of the three).
Thanks!
Yang
On 11/10/06, Alex Pankratov ap-at-hamachi.cc |p2p-hackers|
<...> wrote:
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Darcy
> Sent: Friday, November 10, 2006 5:58 AM
> To: theory and practice of decentralized computer networks
> Subject: Re: [p2p-hackers] Cross-platform development
>
>
> > I'll write some file i/o support for Twisted to be
> non-blocking but I
> > still wonder about the following: does writing to a file ever block?
> Yes. The data have to be written somewhere. Depending on
> the OS this
> may be either the buffer or the page cache, but either way
> it's possible
> that a write could block waiting for a resource to become
> available. A
> fair number of system hangs come down to this, actually,
> because it's a
> rare enough case that it's often not very well thought through or
> tested. For this very reason, it's probably OK to pretend it doesn't
> happen. When it does, it usually means the whole system's in
> pretty bad
> shape, and an unexpected pause in one application is probably
> the least
> of your worries.
That's exactly the assumption Windows Explorer appears to make
and that is exactly why it hangs left and right when working
with shares that are mapped over laggy or lossy connections.
The system is in A-OK shape otherwise.
Alex
_______________________________________________
p2p-hackers mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/p2p-hackers
_______________________________________________
p2p-hackers mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/p2p-hackers
_______________________________________________
p2p-hackers mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/p2p-hackers