[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Konrad Hinsen
On 15/06/2021 16:05, Esteban Maringolo wrote: And in this particular case, it might cause issues, since the "full precision" (whatever that means) must be retained when using such a number to derive another one. To me, "full precision" means "no precision is ever lost in arithmetic

[Pharo-users] Re: Problem installing 9.0 on MacMini M1

2021-06-16 Thread David Pennington
I transferred both of my images ( 8 and 9) across and put them in the images directory of a new Pharo Launcher. I now have 9.0 working on the Mac mini but it is still telling me that my VM is out of date. I have opened the VM window and updated both the 8 and 9 vm but I still get the message. I

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Esteban Maringolo
On Wed, Jun 16, 2021 at 9:13 AM Konrad Hinsen wrote: > > On 15/06/2021 16:05, Esteban Maringolo wrote: > > And in this particular case, it might cause issues, since the "full > > precision" (whatever that means) must be retained when using such a > > number to derive another one. > > To me, "full

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-06-16 Thread kmo
Hi Esteban Do you know when the fix for the extent problem under Gtk will be in the image? I downloaded the latest Pharo 9 image a couple of days ago and, though the fix was in for the extent problem in Morphic, it still didn't work in Gtk. Thanks. Ken -- Sent from:

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Richard O'Keefe
The problem is that while it is possible to read the ANSI Smalltalk standard as requiring ScaledDecimals to be fixed point numbers (which are a kind of exact rational number of the form x * 10**y, x and y integers), in Squeak and Pharo ScaledDecimal numbers are NOT fixed-point numbers. They are

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-06-16 Thread Esteban Lorenzano
Hi, Yes, it is there. Thing is... since cairo does not informs correctly extent of surface in x11, what I did is to add an extra parameter to the drawing block, as you can see in the example : SpAthensPresenter>>#exampleResizing | extent | extent := 350@300. self new surfaceExtent: extent;

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-06-16 Thread Esteban Lorenzano
boo... format lost :P On Jun 16 2021, at 2:27 pm, Esteban Lorenzano wrote: > > Hi, > Yes, it is there. > Thing is... since cairo does not informs correctly extent of surface in x11, > what I did is to add an extra parameter to the drawing block, as you can see > in the example : > >

[Pharo-users] Re: How to get dimensions (extent) of a SpPresenter

2021-06-16 Thread kmo
Many thanks esteban - works fine now in Gtk -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Re: Problem installing 9.0 on MacMini M1

2021-06-16 Thread Clacton Server
I am nearly there. I sorted out the curl/wget business and managed to get the new VM. I have installed it and everything is very quick so I am pleased. However there are two things I am not sure of. 1. Once I close this down, I am not confident of finding it again (smile). 2. I am back with

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Konrad Hinsen
On 16/06/2021 15:52, Sven Van Caekenberghe wrote: I am also a bit intrigued by this. Like you said: several other programming languages (I tried a couple of Common Lisp and Scheme implementations) do the same as Pharo, but handheld calculators, normal and scientific, do not. Handheld

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Sven Van Caekenberghe
I am also a bit intrigued by this. Like you said: several other programming languages (I tried a couple of Common Lisp and Scheme implementations) do the same as Pharo, but handheld calculators, normal and scientific, do not. I think that going for 1/10 fractions/precision is not going to help:

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Sven Van Caekenberghe
> On 16 Jun 2021, at 16:20, Konrad Hinsen wrote: > > On 16/06/2021 15:52, Sven Van Caekenberghe wrote: >> I am also a bit intrigued by this. Like you said: several other programming >> languages (I tried a couple of Common Lisp and Scheme implementations) do >> the same as Pharo, but

[Pharo-users] Re: Reading http post data using Zinc

2021-06-16 Thread Sven Van Caekenberghe
Hi Davide, > On 16 Jun 2021, at 23:17, Davide Varvello via Pharo-users > wrote: > > Hi Guys, > I'm posting from an http form and I'm wondering how to read data from the > post. It seems the request should give a ZnMultiPartFormDataEntity, but I > can't find how to use it. > > Can you help me

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Esteban Maringolo
On Wed, Jun 16, 2021 at 10:49 AM Richard O'Keefe wrote: > The problem is that while it is possible to read the ANSI Smalltalk standard > as requiring ScaledDecimals to be fixed point numbers (which are a kind of > exact rational number of the form x * 10**y, x and y integers), in Squeak and >

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Konrad Hinsen
Sven Van Caekenberghe writes: > It would be possible (and maybe it has already been done) to > implement/add such a decimal floating point number to Pharo. It would > require reimplementing all operations from scratch (esp. sin/cos/tan > log/exp and so on), it would be slow, but interesting.

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread ducasse
Richard As I said it thousands of times, - first we are not good in math - second Pharo is what we have and we never said that it is the best system ever we just enhanced daily - third, I never saw a piece of code from you. - if you want to see Pharo

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Esteban Maringolo
On Wed, Jun 16, 2021 at 10:52 AM Sven Van Caekenberghe wrote: > > I am also a bit intrigued by this. Like you said: several other programming > languages (I tried a couple of Common Lisp and Scheme implementations) do the > same as Pharo, but handheld calculators, normal and scientific, do not.

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Esteban Maringolo
I didn't know there were decimal floats. Are they used elsewhere? Esteban A. Maringolo On Wed, Jun 16, 2021 at 11:20 AM Konrad Hinsen wrote: > > On 16/06/2021 15:52, Sven Van Caekenberghe wrote: > > I am also a bit intrigued by this. Like you said: several other programming > > languages (I

[Pharo-users] Reading http post data using Zinc

2021-06-16 Thread Davide Varvello via Pharo-users
Hi Guys, I'm posting from an http form and I'm wondering how to read data from the post. It seems the request should give a ZnMultiPartFormDataEntity, but I can't find how to use it. Can you help me please? Davide -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Richard O'Keefe
2Decimal floats are (a) part of the IEEE 758-2008 standard for floating-point arithmetic, (b) implemented as part of the instruction set in IBM z/Series and POWER computers, (c) allowed for in the current C standard, (d) partially supported by GCC

[Pharo-users] Re: Rounding in Floats

2021-06-16 Thread Richard O'Keefe
"first we are not good in math" First, I am not criticising YOU. Pharo's weird ScaledDecimal is Squeak's weird ScaledDecimal and you have not changed it. Fine. "second Pharo is what we have and we never said that it is the best system ever" True, but irrelevant. "third I never saw a piece

[Pharo-users] Zn and AWS - retrieving object versions?

2021-06-16 Thread Tim Mackinnon
Hi everyone - I’m wondering if someone knows the trick to listing object versions in AWS S3? I was previously using a non-Zn library (there are a few around - but they are quite old and I’m not sure how much they are maintained) - however I hadn’t realised that Zn actually supports S3 until I