Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread Sven Van Caekenberghe
Hi Petter, https://github.com/svenvc/P3/commit/a6b409d0d92cb92bf9b44452908bb9033523b863 adds a connection pool. Here is the class comment: == I am P3ConnectionPool. I offer a pool of shared PSQL connections (P3Client instances) as a resource. After configuring me with at least a url, you

Re: [Pharo-users] The results are in!

2020-02-10 Thread Ben Coman
On Mon, 10 Feb 2020 at 08:01, horrido wrote: > > > Although the "smalltalk" title of the video is not ideal, that was the > > name of the competition when it was originally going to use VisualWorks, > > and so it carried over. > > Not only that, but if you look at jrmpc.ca, it uses the word "Smal

Re: [Pharo-users] The results are in!

2020-02-10 Thread Guillermo Polito
Hi Ben, > El 9 feb 2020, a las 21:01, Ben Coman escribió: > > > This list is for people to *ask* questions about Pharo. Not to diffuse any > > kind of propaganda (pharo related or not). > > This list is not just for asking questions. There are plenty of [ANN] posts > advertising new librarie

Re: [Pharo-users] Voluntarily cancelling requests ("applying an expiration date")

2020-02-10 Thread Sven Van Caekenberghe
Hi Holger, That is a complicated story ;-) But, you running out of external semaphores means that you are using too many sockets, are not closing/releasing them (in time) and/or your GC does not run enough to keep up (it is easy to deplete the external semaphore table without the GC kicking in

[Pharo-users] [ANN] Pharo TechTalk Feb 20: The Colony

2020-02-10 Thread Marcus Denker
A regular chat about Pharo. Happens on Discord. This month a bit a special TechTalk, not about Pharo but about a tool that might be interesting for us to use. Topic: The Colony https://colony.io Introduction to "The Colony", a new platform to Organize and Incentivize Collaborators, Con

Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread Petter Egesund
Hi and thanks for an answer above my expectations to our problem. This is really awesome, I was just about to start coding a pool myself, but getting it directly from the author of the base library is off course way better :) I will try out and get back as soon as we have tested. One quick quest

Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread Sven Van Caekenberghe
> On 10 Feb 2020, at 16:30, Petter Egesund wrote: > > Hi and thanks for an answer above my expectations to our problem. > > This is really awesome, I was just about to start coding a pool myself, but > getting it directly from the author of the base library is off course way > better :) >

Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread Petter Egesund
Yes, I see - that sounds sensible. Could it be an idea to subclass the pool-class and to prepare statements in this method, if there is a kind of init-method in the class? What do you think? Petter On Mon, Feb 10, 2020 at 4:36 PM Sven Van Caekenberghe wrote: > > > > On 10 Feb 2020, at 16:30, P

Re: [Pharo-users] The expanding Pharo ecosystem

2020-02-10 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote > Topic tags automatically organise some projects: > > https://github.com/topics/pharo > > https://github.com/topics/pharo-smalltalk Yes, please everyone remember to use these tags for your Pharo projects. Like this we get a poor-man's catalog for free ;) ---

Re: [Pharo-users] The expanding Pharo ecosystem

2020-02-10 Thread Serge Stinckwich
And don't forget to star your favorite Pharo projects! On Mon, Feb 10, 2020 at 5:58 PM Sean P. DeNigris wrote: > Sven Van Caekenberghe-2 wrote > > Topic tags automatically organise some projects: > > > > https://github.com/topics/pharo > > > > https://github.com/topics/pharo-smalltalk > > Ye

Re: [Pharo-users] About "it's not pharo but smalltalk"

2020-02-10 Thread Sean P. DeNigris
Trygve Reenskaug wrote > I have recently completed a conceptual model with tools for a new way of > programming for novices. Hi trygve, what is the project and how can I install it? I try to follow all your work... Trygve Reenskaug wrote > the port will probably be outdated > and useless by th

Re: [Pharo-users] About "it's not pharo but smalltalk"

2020-02-10 Thread Sean P. DeNigris
TedVanGaalen wrote > I am only suggesting that Pharo should be downward compatible > (that is, within Pharo's scope only). I agree that this is a worthy ideal, but IMHO is not realistic with the current resources (time and staff). All that additional code would have to be maintained. In the worst

Re: [Pharo-users] Dictionary removeKey: very low performance

2020-02-10 Thread Kasper Østerbye
Hi RIchard, On 9 February 2020 at 17.54.30, Richard O'Keefe (rao...@gmail.com) wrote: My library uses separate chaining (https://en.wikipedia.org/wiki/Hash_table#Separate_chaining) which makes deletion simple and fast and allows 'null' keys. Does your implementation use a fixed number of buckets

Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread Sven Van Caekenberghe
Hi Petter, > On 10 Feb 2020, at 16:46, Petter Egesund wrote: > > Yes, I see - that sounds sensible. > > Could it be an idea to subclass the pool-class and to prepare statements in > this method, if there is a kind of init-method in the class? What do you > think? That would have indeed been

Re: [Pharo-users] [Pharo-dev] [Ann] Concurrent Programming in Pharo is available

2020-02-10 Thread Todd Blanchard via Pharo-users
--- Begin Message --- I have wanted a clean explanation of semaphores and process scheduling for a long time. Thanks for this. > On Feb 9, 2020, at 3:58 AM, Stéphane Ducasse > wrote: > > On http://books.pharo.org/booklet-ConcurrentProgramming/ >

Re: [Pharo-users] [Pharo-dev] [Ann] Concurrent Programming in Pharo is available

2020-02-10 Thread ducasse
You are welcome. This is really one of the few resources on the topic and at this level in the ecosystem. In the future I plan to learn and explain monitors because they are better than semaphores or mutexes but I have the learn about them before :). > On 10 Feb 2020, at 20:46, Todd Blanchard

Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread Petter Egesund
Perfect, this is exactly what I needed. Thank so much!! Petter On Mon, Feb 10, 2020 at 8:44 PM Sven Van Caekenberghe wrote: > Hi Petter, > > > On 10 Feb 2020, at 16:46, Petter Egesund > wrote: > > > > Yes, I see - that sounds sensible. > > > > Could it be an idea to subclass the pool-class and

Re: [Pharo-users] P3 and concurrenty

2020-02-10 Thread ducasse
Amazing experience! This is the power of Pharo at work. Thanks a lot Sven. S > On 10 Feb 2020, at 21:24, Petter Egesund wrote: > > Perfect, this is exactly what I needed. Thank so much!! > > Petter > > On Mon, Feb 10, 2020 at 8:44 PM Sven Van Caekenberghe > wrote: > Hi P

Re: [Pharo-users] [Pharo-dev] [Ann] Concurrent Programming in Pharo is available

2020-02-10 Thread Eliot Miranda
Hi Stef, here's my review/feedback On Sun, Feb 9, 2020 at 5:05 AM Stéphane Ducasse > wrote: > > > > On http://books.pharo.org/booklet-ConcurrentProgramming/ > In fig 1.1 there needs to be a back arrow from Executing to Runnable which is labelled "Preempted by a higher priority process" or si