[EMAIL PROTECTED] wrote:
> ... the first element of the list to which x refers is a reference to
> the new string and back outside foo, the first element of the list to
> which x refers will be a reference to the new string.
I'd rephrase that as:
* Both the global context and the inside of foo
Duncan Booth wrote:
> Unfortunately generators only save a single level of stack-frame, so they
> are not really a replacement for fibers/coroutines. The OP should perhaps
> look at Stackless Python or Greenlets. See
On the surface of things, the single level aspect *LOOKS* like a problem,
but in
Hi,
> It just works, but using native Python threads for non-preemptive
> threading is not cost-effective. Python has generator instead but it
> seemed to be very restricted for general scripting. I wish I could
> write nested (generator) functions easily at least.
>
> Is there any plan of imple
Duncan Booth wrote:
> Michael Sparks <[EMAIL PROTECTED]> wrote:
>
>> Duncan Booth wrote:
>>
>>> Unfortunately generators only save a single level of stack-frame, so
>>> they are not really a replacement for fibers/coroutines. The OP
>>> should
o to Richard Taylor for detailed feedback and discussion
regarding locking and for pointing me at MASCOT which made me think of
doing the dining philosophers this way :-)
Future
==
This will be merged onto the mainline of Kamaelia with some auxillary
functions , as another feather aimed at making concurrency easy to
work with :-)
Best Regards,
Michael.
--
Michael Sparks, Kamaelia Project
http://kamaelia.sourceforge.net/Developers/
http://yeoldeclue.com/blog
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth wrote:
[ snip sections about why the single layer aspect can be helpful ]
> I'm happy with generators as they are: they're a great solution to a
> problem that most of us didn't realise we had until the solution came
> along. That doesn't mean that I wouldn't also like to have a separ
Bjoern Schliessmann wrote:
> Michael Sparks wrote:
>
>> All that said, my personal primary aim for kamaelia is to try and
>> make it into a general toolkit for making concurrency easy &
>> natural (as well as efficient) to work with. If full blown
>> coroutines
Duncan Booth wrote:
> There are also problems where full blown coroutines are appropriate. The
> example I quoted earlier of turning a parser from one which generates a
> lot of callbacks to one which 'yields' tokens is the usual example given.
For completeness, I looked at the other half of the
Aaron Watters wrote: (from a gmail account)
> So cloud computing is java diskless workstations warmed over but less
> flexible?
>
> I'm having trouble understanding why people would want
> to buy in to this.
Why do you like gmail - since you appear to use it? (I can think of several
possibilities
Bjoern Schliessmann wrote:
> Hello,
>
> I'm currently trying to implement a simulation program with Kamaelia
> and need a reliable TCP connection to a data server.
The behaviour you're seeing sounds odd (which is hopefully encouraging :-),
but it's not clear from the description whether its a bug
Bjoern Schliessmann wrote:
> Whoops, the TCP client does in fact quit if the server closes
> connection :)
Great - so it wasn't a problem with the TCPClient after all :-)
> For some reason, my Listener doesn't quit. I thought
> it's sufficient to exit the main method in some way to quit a
> co
niAxon
Presentations:
http://www.slideshare.net/kamaelian
Get involved:
http://www.kamaelia.org/Developers/
http://groups.google.com/group/kamaelia *CHANGED MAILING LIST*
http://code.google.com/p/kamaelia/
Licensing
=
Kamaelia is released under the Mozilla tri-license scheme
(
sophie_newbie wrote:
> Hi,
>
> I'm running a python cgi script on a frontend web server and I want it
> to spawn another script (that takes a long time to run) on a backend
> number crunching server thats connected to the same network. What do
> you think is the best way to do this? I have a few
Hi Andy,
Andy wrote:
> However, we require true thread/interpreter
> independence so python 2 has been frustrating at time, to say the
> least. Please don't start with "but really, python supports multiple
> interpreters" because I've been there many many times with people.
> And, yes, I'm awar
Andy O'Meara wrote:
> Yeah, that's the idea--let the highest levels run and coordinate the
> show.
Yes, this works really well in python and it's lots of fun. We've found so
far you need at minimum the following parts to a co-ordination little
language:
Pipeline
Graphline
Carousel
Glenn Linderman wrote:
> In the module multiprocessing environment could you not use shared
> memory, then, for the large shared data items?
If the poshmodule had a bit of TLC, it would be extremely useful for this,
since it does (surprisingly) still work with python 2.5, but does need a
bit of T
Andy O'Meara wrote:
> basically, it seems that we're talking about the
> "embarrassingly parallel" scenario raised in that paper
We build applications in Kamaelia and then discover afterwards that they're
embarrassingly parallel and just work. (we have an introspector that can
look inside running
Jesse Noller wrote:
> http://www.kamaelia.org/Home
Thanks for the mention :)
I don't think it's a good fit for the original poster's question, but a
solution to the original poster's question would be generally useful IMO,
_especially_ on python implementations without a GIL (where threads are t
jasiu85 wrote:
> Do I need a lock to protect the COMMON_DICT dictionary? AFAIK bytecode
> operations are atomic and in each thread there's only one crucial
> bytecode op: STORE_NAME in the first thread and LOAD_NAME in the
> second one. So I suspect that everything will work just fine. Am I
> righ
Glenn Linderman wrote:
> so a 3rd party library might be called to decompress the stream into a
> set of independently allocated chunks, each containing one frame (each
> possibly consisting of several allocations of memory for associated
> metadata) that is independent of other frames
We use a c
Protocol wrote:
> Is Python suitable for building a multi-track midi sequencer (with a
> gui), that would run on windows / mac ? I fail to find sufficient
> information on this, being a newbie and all.
We had a Google Summer of Code student working on this sort of thing this
year (This clearly p
Philip Semanchuk wrote:
> On Oct 25, 2008, at 7:53 AM, Michael Sparks wrote:
>> Glenn Linderman wrote:
>>> In the module multiprocessing environment could you not use shared
>>> memory, then, for the large shared data items?
>>
>> If the poshmodule had a b
Hi Alf,
Before I start, note we're talking about semantics, not
implementation. That distinction is very important.
On Feb 11, 4:49 am, "Alf P. Steinbach" wrote:
> > *The* standard general language independent definition?
[ of pointer ]
> Yes.
>
> > As defined where?
>
> For example, as I use
Hi Alf,
On Feb 12, 8:22 pm, "Alf P. Steinbach" wrote:
> Thanks for the effort at non-flaming discussion, it *is*
> appreciated.
I would appreciate it if you tried to be non-flaming yourself,
since you can see I am not flaming you.
I was seeking to educate you on a simple matter which you seem
On Feb 18, 4:15 pm, Steve Howell wrote:
...
> def print_numbers()
> [1, 2, 3, 4, 5, 6].map { |n|
> [n * n, n * n * n]
> }.reject { |square, cube|
> square == 25 || cube == 64
> }.map { |square, cube|
> cube
> }.each { |n|
>
Hi,
Is the following behaviour expected ?
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def Toggler(F, B):
... print F("Hello")
... print F("Hello")
... print F("Hello")
... print
On Mar 17, 8:29 pm, Terry Reedy wrote:
> On 3/17/2010 11:44 AM, Emile van Sebille wrote:
>
> > On 3/17/2010 8:16 AM Michael Sparks said...
> >> Hi,
>
> >> Is the following behaviour expected ?
>
> > In short, yes. Assignment within a function forces the v
On Jan 21, 10:39 am, sl33k_ wrote:
> What is namespace? And what is built-in namespace?
tl;dr - Namespaces are sets that contain names. You can think of
namespaces as being /like/ boxes. A namespace is therefore an
organisational tool, forming a similar purpose to human names &
surnames - to iden
It can be broken if someone tries to use the class as is - that is
treating the
class as a model - to drive a display of the ship. If it was written
using super()
then that wouldn't be a problem.
For example, I could write a display mixin that I'd like to use like
this:
class VisibleShip(ship, sp
On Feb 14, 7:15 pm, rantingrick wrote:
> On Feb 14, 11:55 am, Michael Sparks wrote:
>
> > It can be broken if someone tries to use the class as is - that is
> > treating the class as a model - to drive a display of the ship. If
> > it was written using super() then th
101 - 130 of 130 matches
Mail list logo