Re: [Pharo-users] Bit Manipulation Challenge

2020-07-23 Thread Sean P. DeNigris
Thanks for the ideas. I guess I'll stick with #1 for now, but I documented the others and appreciated the interesting conversation :) - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Bit Manipulation Challenge

2020-07-20 Thread David T. Lewis
On Tue, Jul 21, 2020 at 02:17:59AM +0800, Ben Coman wrote: > On Mon, 20 Jul 2020 at 23:19, Sean P. DeNigris wrote: > > > > I want to take an IP address routing prefix in CIDR [1] notation (i.e. the > > 24 > > in "192.168.100.14/24") and convert it into subnet form (i.e. > > 255.255.255.0). I came

Re: [Pharo-users] Bit Manipulation Challenge

2020-07-20 Thread Ben Coman
On Mon, 20 Jul 2020 at 23:19, Sean P. DeNigris wrote: > > I want to take an IP address routing prefix in CIDR [1] notation (i.e. the 24 > in "192.168.100.14/24") and convert it into subnet form (i.e. > 255.255.255.0). I came up with 4 ways to do that (see below), but none stand > out as best (alth

[Pharo-users] Bit Manipulation Challenge

2020-07-20 Thread Sean P. DeNigris
I want to take an IP address routing prefix in CIDR [1] notation (i.e. the 24 in "192.168.100.14/24") and convert it into subnet form (i.e. 255.255.255.0). I came up with 4 ways to do that (see below), but none stand out as best (although #3 and #4 seem a bit more straightforward as they avoid the