Re: guile fibers - looking for adivce

2020-09-09 Thread Jan Wielkiewicz
oy program. If you have any suggestions, feel free to tell me, also feel free to use my code, if you find it useful. I could push this a bit further by making the allocate all slots by default as #:message - this way every object would work safely on fibers, without the boilerplate code. Thanks for help, everyone. Jan Wielkiewicz

Re: guile fibers - looking for adivce

2020-09-07 Thread Jan Wielkiewicz
Hi! Dnia 2020-09-05, o godz. 18:19:49 Aleix Conchillo Flaqué napisał(a): > Hi! > > On Sat, Sep 5, 2020 at 3:48 PM Jan Wielkiewicz < > tona_kosmicznego_smie...@interia.pl> wrote: > > I believe sharing the same object by the two fibers defeats the > purpose

Re: guile fibers - looking for adivce

2020-09-07 Thread Jan Wielkiewicz
s itself to such > "other way around" of updating state. > > > Thanks in advance > > Jan Wielkiewicz > > Out of ideas for now. > > Regards, > Zelphir > > Anyway, thanks for ideas. Jan Wielkiewicz

guile fibers - looking for adivce

2020-09-05 Thread Jan Wielkiewicz
fibers for concurrency? I was thinking about implementing slots in objects as sending and receiving messages instead of regular variables, but still there were some problems with the object state. Could someone explain me what should I do? Thanks in advance Jan Wielkiewicz

Re: No Guile on Windows?

2020-07-24 Thread Jan Wielkiewicz
ooking for someone who does. It could be a GSoC proposal, Outreachy something, etc. Jan Wielkiewicz

Re: GOOPS and fibers - need help understanding what's wrong, bug in fibers/guile?

2020-07-24 Thread Jan Wielkiewicz
ng (send-message p 'pong)) ('pong (send-message p 'ping))) (loop) (define (main) (define p1 (make )) (define p2 (make )) (connect-peers p1 p2) (run-fibers (lambda () (handle-message p1) (handle-message p2) (send-message p1 'ping)) #:drain? #t)) (main) --- Jan Wielkiewicz

GOOPS and fibers - need help understanding what's wrong, bug in fibers/guile?

2020-07-21 Thread Jan Wielkiewicz
(handle-message p1) (send-message p1 'ping) (handle-message p2)) I run this in repl: (define p1 (make )) (define p2 (make )) (start-listening p1 p2) - Thanks in advance, Jan Wielkiewicz

Re: Handling object communication in GOOPS

2020-07-19 Thread Jan Wielkiewicz
Hello, Dnia 2020-07-19, o godz. 18:22:17 "Dr. Arne Babenhauserheide" napisał(a): > > Did you have a look at fibers and channels for this? > > https://github.com/wingo/fibers Looks like exactly what I need, thanks! > Best wishes, > Arne Jan Wielkiewicz

Re: Handling object communication in GOOPS

2020-07-19 Thread Jan Wielkiewicz
ges. > I have not worked with GOOPS yet, so my answer is not GOOPS specific > and perhaps there are better ways, but I think this is the classic > approach to the problem. It seems GOOPS is pretty minimalistic, I couldn't find anything there, but I didn't yet study the MetaObject Protocol entirely. > Regards, > Zelphir Thanks Jan Wielkiewicz

Handling object communication in GOOPS

2020-07-16 Thread Jan Wielkiewicz
the object to know when address in the address bar is changed, for example (set-address address-bar1 "/home/user"). Any suggestions? Thanks in advance. Jan Wielkiewicz