[Pharo-users] First Call for Papers: 12th ACM SIGPLAN International Conference on Software Language Engineering (SLE 2019)

2019-03-29 Thread Andrei Chis
Call for Papers: 12th ACM SIGPLAN International Conference on Software Language Engineering (SLE 2019) co-located with SPLASH 2019 Athens, Greece October 21-22, 2019 https://conf.researchr.org/home/sle-2019 http://www.sleconf

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
Hey thanks guys - while it certainly makes sense when you think about it, I was kind of hoping we had something that was much more readable and obvious. It seems strange that when we have lots of esoteric things in collection, that something which is quite common to do isn’t there. I was kind of

Re: [Pharo-users] Resolving DNS in-image

2019-03-29 Thread Sven Van Caekenberghe
Holger, I'll write most of my comments inline. Yesterday I moved my code to https://github.com/svenvc/NeoDNS using Tonel format, to make it a bit easier to consume. I also did a couple of minor updates while going over the functionality. Note the 'my code' is in the package Net-Protocols-DNS-E

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Peter Kenny
Tim But the beauty of Smalltalk is that, if you need to use a particular structure frequently, you can make it an object just by subclassing something useful. In this case, you could create CircularList by subclassing SequenceableCollection and re-implementing #before and #after (and maybe tidying

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
Hi Peter - yes of course you are right that its malleable, I guess I’m often suprised about the things we leave out and then discover weird things we’ve put in. I had a quick look at LinkedList (I should have thought of that) - I might be able to do something with that (and this is now more out

Re: [Pharo-users] Resolving DNS in-image

2019-03-29 Thread Cédrick Béler
> The core cause of the problems is that the current NameResolver is totally > blocking, especially in failure cases, which gives a terrible experience. > > One way to fix this would be with the concept of NetworkState, a cheap, > reliable, totally non-blocking way to test if the image has a w

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Peter Kenny
Hi Tim. Sorry you crashed your image. I owe you an apology, because when I looked at the code for LinkedList, I thought there was something odd, but I dismissed it thinking ' they must have thought of that!' I think the problem is that LinkedList inherits #after: from SequenceableCollection, meanin

Re: [Pharo-users] Text presenter autosave features

2019-03-29 Thread Ben Coman
No guarantees, but it might help if you provided a detailed recipe for anyone to reproduce this. cheers -ben On Fri, 29 Mar 2019 at 00:24, Offray Vladimir Luna Cárdenas < offray.l...@mutabit.com> wrote: > Hi, > > Just a remainder if anyone can help with this... > > Thanks, > > Offray > > On 23/03

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
No problem Peter - I’ll raise a bug (as it happened, I had save my image a few hours before and epicea got back the few things I had changed since). Rather strangely - even just trying to debug “myList next” (as in right click and pick debug it) seems to hang my image too (I didn’t expect that).

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Esteban Maringolo
I would do it as an iterator (a circular one). The structure of the underlying list is irrelevant here (as long as it is sequenceable), IMO. Regards, El vie., 29 de mar. de 2019 07:21, Peter Kenny escribió: > Tim > > But the beauty of Smalltalk is that, if you need to use a particular > structu

Re: [Pharo-users] Resolving DNS in-image

2019-03-29 Thread Ben Coman
On Fri, 29 Mar 2019 at 18:08, Sven Van Caekenberghe wrote: > Holger, > > I'll write most of my comments inline. > > Yesterday I moved my code to https://github.com/svenvc/NeoDNS using Tonel > format, to make it a bit easier to consume. I also did a couple of minor > updates while going over the f

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Ben Coman
On Fri, 29 Mar 2019 at 18:57, Tim Mackinnon wrote: > Hi Peter - yes of course you are right that its malleable, I guess I’m > often suprised about the things we leave out and then discover weird things > we’ve put in. > > I had a quick look at LinkedList (I should have thought of that) - I might

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Marcus Denker
> On 29 Mar 2019, at 14:24, Ben Coman wrote: > > > > On Fri, 29 Mar 2019 at 18:57, Tim Mackinnon wrote: > Hi Peter - yes of course you are right that its malleable, I guess I’m often > suprised about the things we leave out and then discover weird things we’ve > put in. > > I had a quick

Re: [Pharo-users] Resolving DNS in-image

2019-03-29 Thread Holger Freyther
> On 29. Mar 2019, at 10:07, Sven Van Caekenberghe wrote: > > Holger, Sven, All! Thanks for moving it to GitHub! Pharo Days: I am in APAC right now and I am not sure if I make it. I am hesitating. Maybe we can have a Google Hangout to discuss this (if not too inconvenient for the ones pr

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Peter Kenny
Tim Going back to your original question, the answer is there all the time but buried in the enormous method dictionaries of the Collection subclasses. If you look at SequenceableCollection>>atWrap: you will see that it does exactly what you want. To get the item before the first, i.e. the zeroth

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Sven Van Caekenberghe
Haha, great discussion, great find. Amazing that all these things are just already there. Pharo/Smalltalk programming is really 'studying the problem and the existing system, moving it to the desired state with as little work as possible' - including the use of frameworks and libraries. > On 2

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Tim Mackinnon
Peter - nice spot. I’m glad we kept this thread running as I keep learning more of the nooks and crannies. I keep finding that between odd naming (although in this case I’m shocked I missed that one - I need to get better at using spotter) and unfortunate method categorisation, that I struggle

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Peter Kenny
We could probably mine this forever to get interesting connections, but I shall restrict myself to three (and then shut up). a. The code for SequenceableCollection>>atWrap: is a single line, which exactly reproduces Tim's original method. Maybe a hint for programming strategy - if code is mysteriou

[Pharo-users] How to generically find methods in class hierarchies? (Aka narrow spotter?)

2019-03-29 Thread Tim Mackinnon
I’m wondering if there are better ways of finding things that I am missing. In another thread I was asking about how to wrap the lookup of an item at an index in a collection. I had browsed the collection hierarchy and not seen anything (I kept coming back to the fact that I dont find the proto

Re: [Pharo-users] Easiest way to wrap around the indexed value in a list (mod doesn't quite work)

2019-03-29 Thread Ben Coman
On Sat, 30 Mar 2019 at 01:09, Peter Kenny wrote: > Tim > > Going back to your original question, the answer is there all the time but > buried in the enormous method dictionaries of the Collection subclasses. And we have Tools > Finder > Examples > #(10 20 30 40) . 5 . 10 to help unbury such m

Re: [Pharo-users] How to generically find methods in class hierarchies? (Aka narrow spotter?)

2019-03-29 Thread Ben Coman
On Sat, 30 Mar 2019 at 07:46, Tim Mackinnon wrote: > I’m wondering if there are better ways of finding things that I am missing. > > In another thread I was asking about how to wrap the lookup of an item at > an index in a collection. > > I had browsed the collection hierarchy and not seen anythi