Re: [Pharo-users] Scaled decimals comparisons

2020-08-31 Thread jtuc...@objektfabrik.de
Interesting. Your expression evaluates to true in VA Smalltalk. Am 01.09.20 um 06:17 schrieb Esteban Maringolo: As a follow up to this, adding a roundTo: before converting into a ScaledDecimal does not work. (((91 - (2 * 35.9) - (0 / 2) * (113/121)) roundTo: 0.1) asScaledDecimal: 1) = 17.9s1

Re: [Pharo-users] Scaled decimals comparisons

2020-08-31 Thread Esteban Maringolo
As a follow up to this, adding a roundTo: before converting into a ScaledDecimal does not work. (((91 - (2 * 35.9) - (0 / 2) * (113/121)) roundTo: 0.1) asScaledDecimal: 1) = 17.9s1 So how do you compare two ScaledDecimals that _should_ be the same? Regards! Esteban A. Maringolo On Tue, Sep

[Pharo-users] Scaled decimals comparisons

2020-08-31 Thread Esteban Maringolo
Hi, I was doing some basic calculations based on a formula, and I wanted to convert the result to a scaled decimal in order to avoid having these "loose" decimals in 10th position or something similar. So I did the following: 82 - (2 * 35.9) - (0 / 2) * (113/121) asScaledDecimal: 1 -> 9.5s1 But

Re: [Pharo-users] mentoring contined I hope

2020-08-31 Thread Richard Sargent
On Mon, Aug 31, 2020 at 1:57 PM Roelof Wobben wrote: > > I would argue against that approach. Make it a requirement that a given > API must be used with correct values. > e.g. #hours:minutes: requires hours between 00 and 23 and minutes between > 00 and 59. > > If you want to convert equivalent

[Pharo-users] mentoring contined I hope

2020-08-31 Thread Roelof Wobben via Pharo-users
--- Begin Message --- I would argue against that approach. Make it a requirement that a given API must be used with correct values. e.g. #hours:minutes: requires hours between 00 and 23 and minutes between 00 and

Re: [Pharo-users] mentoring continued I hope

2020-08-31 Thread Richard Sargent
On Sun, Aug 30, 2020 at 10:04 PM Roelof Wobben via Pharo-users < pharo-users@lists.pharo.org> wrote: > Hello, > > I have this challenge from exercism : > https://github.com/exercism/pharo-smalltalk/tree/master/exercises/clock > > and this function is given : > > hour: anInteger minute: anInteger2

Re: [Pharo-users] ported and refreshed Crypto-Nacl to GitHub (from StH)

2020-08-31 Thread Torsten Bergmann
Hi Jonathan,   nice, thanks for investing time and effort into this. Such utilities are needed for serious applications. Some thoughts and questions:  1. What is the mid-term or long-term plan regarding collaboration? Will you be able to step in as maintainer?  2. As it already seems to be

Re: [Pharo-users] CV/OCR Library

2020-08-31 Thread Stéphane Ducasse
I know that there is an openCV binding by https://twitter.com/DmitryMatveev You have a binding in GT too. > On 31 Aug 2020, at 14:40, Esteban Maringolo wrote: > > Hi, > > Does anybody know if there is an OCR or some CV library available for Pharo? > > I would like to make an experiment

Re: [Pharo-users] CV/OCR Library

2020-08-31 Thread Esteban Maringolo
Hi Eric, Thanks for the reference. I'll look into it! Regards! Esteban A. Maringolo On Mon, Aug 31, 2020 at 10:06 AM Eric Gade wrote: > > Hi Esteban, > > I know that Sean D has wrapped the Tesseract OCR library: > https://github.com/seandenigris/Tesseract-St > > On Mon, Aug 31, 2020 at 8:42

Re: [Pharo-users] Getting rid of .sources file for deployment

2020-08-31 Thread Stéphane Ducasse
If this is for obsfucation why not simply providing an empty source/changes file? And you can remove the decompiler (but then after you will never debug anymore your application). S > Hi Stef, > > Thanks for the support. > > I don't know if there is a way to do that for FFI except if you >

Re: [Pharo-users] CV/OCR Library

2020-08-31 Thread Eric Gade
Hi Esteban, I know that Sean D has wrapped the Tesseract OCR library: https://github.com/seandenigris/Tesseract-St On Mon, Aug 31, 2020 at 8:42 AM Esteban Maringolo wrote: > Hi, > > Does anybody know if there is an OCR or some CV library available for > Pharo? > > I would like to make an

[Pharo-users] CV/OCR Library

2020-08-31 Thread Esteban Maringolo
Hi, Does anybody know if there is an OCR or some CV library available for Pharo? I would like to make an experiment with recognizing the content of some fixed size form, and of course I prefer to do it with Smalltalk whenever possible. Regards! Esteban A. Maringolo

Re: [Pharo-users] Getting rid of .sources file for deployment

2020-08-31 Thread Esteban Maringolo
Hi Stef, Thanks for the support. I don't know if there is a way to do that for FFI except if you somehow modify the methods during execution to include the arguments in the method itself instead of relying on the source code for reflection. What would help in the meantime is to have a VM that

Re: [Pharo-users] ported and refreshed Crypto-Nacl to GitHub (from StH)

2020-08-31 Thread Stéphane Ducasse
tx! > On 31 Aug 2020, at 09:52, Jonathan van Alteren > wrote: > > Hi all, > > I wanted to let you know that I ported the Crypto-Nacl library from > SmalltalkHub to GitHub here: https://github.com/objectguild/Crypto-Nacl > > > The original

Re: [Pharo-users] Image crashed, how can I restore the Playground?

2020-08-31 Thread Davide Varvello via Pharo-users
--- Begin Message --- Thanks Offray, I'll give a glance to Grafoscopio Cheers Davide -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html --- End Message ---

[Pharo-users] ported and refreshed Crypto-Nacl to GitHub (from StH)

2020-08-31 Thread Jonathan van Alteren
Hi all, I wanted to let you know that I ported the Crypto-Nacl library from SmalltalkHub to GitHub here: https://github.com/objectguild/Crypto-Nacl The original author is Tony Garnock-Jones, with contributions from Hernán Morales Durand. See the README for more details. Libsodium has evolved