[Pharo-users] Re: Wow - Chat GPT understands Smalltalk

2023-03-15 Thread Esteban Maringolo
It is good with boilerplate code (e.g. SQL queries) or general algorithm structures. But i.e. I asked it to write me a method to parse a string (e.g. ISO 8601) and turn it into a DateAndTime, and then asked to write it as an Excel formula. It works much better when you can spot the mistakes, you

[Pharo-users] Re: Omnibase/Monibase repository removal

2022-08-23 Thread Esteban Maringolo
There is a comment in one of the commits from 2005 (OmniBase-jf.2) that suggests that OmniBase had a free with restrictions license: http://www.squeaksource.com/@dZ70JMB-R7RDi4-m/Ox-ysyAT Also, licensing was messier these days, some of that mess creeps up until today. Esteban A. Maringolo On

[Pharo-users] Re: [Pharo-dev] [ANN] Pharo 10 released!

2022-04-06 Thread Esteban Maringolo
Congratulations to the core team and to the whole list of contributors! It's always good to see Smalltalk moving forward. Regards! Esteban A. Maringolo On Tue, Apr 5, 2022 at 7:40 AM Esteban Lorenzano wrote: > Dear Pharo users and dynamic language lovers: > > We have released Pharo version

[Pharo-users] Re: Null Object Pattern

2022-03-21 Thread Esteban Maringolo
Being able to proxy to another object is such an important feature, that even in ES6 (aka "Javascript") there is a Proxy object [1] that allows you to intercept/redefine operations for that object. In the case of Smalltalk, and coming back to the original topic of this thread, that is even more

[Pharo-users] Re: Null Object Pattern

2022-03-18 Thread Esteban Maringolo
On Fri, Mar 18, 2022 at 3:24 PM Todd Blanchard via Pharo-users wrote: > > What, exactly, is inconsistent about a key message isNil being allowed to be > overridden? Overrides are not the issue here. > There is a VERY simple solution to your problem that does not involve > disrupting the

[Pharo-users] Re: Null Object Pattern

2022-03-17 Thread Esteban Maringolo
for example. > > > > There is already the #compilerOptions: Pragma, e.g.: > > > For example this method compiled the and: as a real send: > tt > > true and: [ false ] > > > On Thu, Mar 17, 2022 at 8:17 AM Esteban Maringolo > wrote: >> A great trade off would b

[Pharo-users] Re: Null Object Pattern

2022-03-17 Thread Esteban Maringolo
Just to add another argument in favor of not inlining some message sends, is for instance in things like Glorp you need to use a special selector for #and:/#or: message sends, breaking not only the naming conventions but also the polymorphism. E.g. you have to use #AND: and #OR: to avoid

[Pharo-users] Re: Null Object Pattern

2022-03-15 Thread Esteban Maringolo
+1 Inlining breaks the fundamental piece of OOP: Message sends. I'm sure there are use cases where inlining adds a significant speedup, but for some messages, I prefer them to be sent. Regards! Esteban A. Maringolo On Tue, Mar 15, 2022 at 3:16 PM wrote: > > I had some chaining that was

[Pharo-users] Re: Too many parenthesis - a matter of syntax

2022-01-26 Thread Esteban Maringolo
On Wed, Jan 26, 2022 at 10:58 AM gettimothy via Pharo-users wrote: > I realize this is just a preference, but the denseness forces me to think in > Objects and composition rather than process. I never thought of it this way, but I fully agree with it. Thanks for putting this in words. Maybe

[Pharo-users] Re: Strategies for (re)using HTTP client

2021-11-03 Thread Esteban Maringolo
//github.com/svenvc/zinc/commit/d9fe41707b16748b9340540127ec5d77800856b6 > > > On 1 Nov 2021, at 21:22, Sven Van Caekenberghe wrote: > > > > > > > >> On 1 Nov 2021, at 20:03, Esteban Maringolo > wrote: > >> > >> If I need to use cookies, wou

[Pharo-users] Re: Strategies for (re)using HTTP client

2021-11-01 Thread Esteban Maringolo
A. Maringolo On Mon, Nov 1, 2021 at 1:39 PM Esteban Maringolo wrote: > Thank you Sven. > > I'll go with instantiating a new client for each request, the less state > shared, the better :-) > > Regards! > > Esteban A. Maringolo > > > On Fri, Oct 29, 2021 at 12:15

[Pharo-users] Re: Strategies for (re)using HTTP client

2021-11-01 Thread Esteban Maringolo
Thank you Sven. I'll go with instantiating a new client for each request, the less state shared, the better :-) Regards! Esteban A. Maringolo On Fri, Oct 29, 2021 at 12:15 PM Sven Van Caekenberghe wrote: > Hi, > > > On 29 Oct 2021, at 15:42, Esteban Maringolo > wrote: > &

[Pharo-users] Strategies for (re)using HTTP client

2021-10-29 Thread Esteban Maringolo
Hi, I happened to me more than once that I have to create some REST service "client" in which I usually wrap an HTTP client inside (ZnClient in this case), and all the calls to the service, end up using the HTTP client, inside some mutex to serialize the execution. But I don't like that, in

[Pharo-users] Re: Silly question about storing and displaying currency amounts?

2021-08-30 Thread Esteban Maringolo
I was recently bitten by this wrong "scaled decimal expectation", in which what I thought was wrong it actually wasn't, or I can't tell whether it was. I would expect that a scaled decimal would be something like what Esteban L. suggests, an integer where you just move the decimal point for

[Pharo-users] Re: Private Methods

2021-08-23 Thread Esteban Maringolo
If something, I'd rather have _ as a prefix indicating a private method, very much like Dart does. But why use a "syntax" trick when it could be an attribute of the CompiledMethod itself? As for many private methods being a code smell... it could be, but it depends, until you find the right

[Pharo-users] Re: Private Methods

2021-08-19 Thread Esteban Maringolo
Public/Private is not just a category, it is also a declaration of what is the interface of the object. As I said, it's not critical, but I've been working with and without a "native" private method, and I prefer working with them. Namespacing is a different animal, and not as simple to implement

[Pharo-users] Re: Private Methods

2021-08-18 Thread Esteban Maringolo
ed, Aug 18, 2021 at 9:47 AM Noury Bouraqadi wrote: > > Hi Esteban, > > Which first "class attribute" are you referring to? Is it a pragma? Can you > provide an example please ? > > Thanx > Noury > > On Aug 17 2021, at 10:31 pm, Esteban Maringolo wrote: > &

[Pharo-users] Re: Private Methods

2021-08-17 Thread Esteban Maringolo
I don't understand the request? Wouldn't tagging methods as private (as a first class attribute, and not only its category) be enough? What you ask for seems to be a splitted method dictionary of some sort. Having first class private methods would save you from autocomplete selector "pollution"

[Pharo-users] Re: Pharo-SQLite3: closing connections immediately and deleting the database file

2021-08-12 Thread Esteban Maringolo
g 2021 at 23:23, Esteban Maringolo wrote: >> >> I've been doing exactly that. It is, creating a new DB file for each >> test, and I was having the same problem as you. >> >> I suggested a change to the driver to cover that situation: >> https://github.com/pharo-r

[Pharo-users] Re: Logging Frameworks

2021-08-09 Thread Esteban Maringolo
because we want to settle on some option as the default for > our Pharo components. > > On Sun, Aug 8, 2021 at 11:29 AM Esteban Maringolo > wrote: >> >> What are the current options for logging? >> >> Beacon seems to be the most modern one, but the Github repo

[Pharo-users] Re: Logging Frameworks

2021-08-09 Thread Esteban Maringolo
orwarding the logs to a > centralized place. I'm also interested in other's experiences regarding > logging options because we want to settle on some option as the default for > our Pharo components. > > On Sun, Aug 8, 2021 at 11:29 AM Esteban Maringolo > wrote: >> >>

[Pharo-users] Logging Frameworks

2021-08-08 Thread Esteban Maringolo
What are the current options for logging? Beacon seems to be the most modern one, but the Github repository doesn't seem very active (maybe it forked somewhere else). Given that the logs might come from different worker images, is there something that can work via HTTP or similar? (it is,

[Pharo-users] Re: Pharo-SQLite3: closing connections immediately and deleting the database file

2021-08-07 Thread Esteban Maringolo
I've been doing exactly that. It is, creating a new DB file for each test, and I was having the same problem as you. I suggested a change to the driver to cover that situation: https://github.com/pharo-rdbms/Pharo-SQLite3/pull/22/files Try applying that change and see if that works. I still

[Pharo-users] Re: [ANN] Bootstrap 5 for Seaside in Pharo

2021-07-30 Thread Esteban Maringolo
Hi Sanjay, Have you looked at the differences between BS4 and BS5? Among the main differences are: - removes jQuery as a dependency and uses vanilla JS instead. - replaces default looking form elements by styled ones If you're starting from scratch it might be worth trying it, and maybe fix

[Pharo-users] Re: [ANN] Bootstrap 5 for Seaside in Pharo

2021-07-30 Thread Esteban Maringolo
Yeap, I like how they're built, and it has a good use case for Traits! I'm using both BS3 and BS4, the latter has more support for CSS Flex layout (which I still don't master). Thanks for this! I'll have to catch up and update my related extensions [1]. Best regards! [1]

[Pharo-users] Re: Zinc exception logging

2021-07-26 Thread Esteban Maringolo
26, 2021 at 3:16 AM Sven Van Caekenberghe wrote: > > Hi Esteban, > > > On 26 Jul 2021, at 02:47, Esteban Maringolo wrote: > > > > Is there a way to have a "stack dump" response in Zinc? > > > > #debugMode is good for development, but I'm having

[Pharo-users] Zinc exception logging

2021-07-25 Thread Esteban Maringolo
Is there a way to have a "stack dump" response in Zinc? #debugMode is good for development, but I'm having an "Internal Error: 4", that I don't know how to trace. * Trying 167.71.182.110... * TCP_NODELAY set * Connected to fore.base.golf (167.71.182.110) port 8090 (#0) > GET /web HTTP/1.1 >

[Pharo-users] Re: The Greatest Contributors to Smalltalk since 1980

2021-07-25 Thread Esteban Maringolo
On Sun, Jul 25, 2021 at 11:31 AM Tim Mackinnon wrote: > Isn’t this the wrong question to ask? I’m assuming this is to do with > Smalltalk’s 50th anniversary, and of course we are grateful to those early > pioneers who did lots of work in the field 20-30 years ago but to me that’s > the old

[Pharo-users] Re: ZnServer on a cheap server: your experiences

2021-07-22 Thread Esteban Maringolo
Yeap, not much more to add than what Sven said. What's important to mention is that they are really stable. I've been running Pharo servers in DO droplets of all sizes, without issues (some running for months), I only had to upscale one droplet to more memory, and it was because of a leak I

[Pharo-users] Re: [Pharo-dev] [ANN] Pharo 9 released!

2021-07-16 Thread Esteban Maringolo
Thanks team. Impressive release. Keep up the good work! Esteban A. Maringolo On Thu, Jul 15, 2021 at 6:14 AM Esteban Lorenzano wrote: > Dear World and dynamic language lovers: > > The time has come for Pharo 9 ! > > Pharo is a pure object-oriented programming language

[Pharo-users] Flattening traits

2021-07-12 Thread Esteban Maringolo
Hi, What is the way, ideally programmatic, to flatten traits into regular methods of their user classes? I remember there was an option in the UI, but I couldn't find it, and there is nothing about it in the general documentation [1]. Thanks! [1]

[Pharo-users] Re: Communication between different images

2021-07-01 Thread Esteban Maringolo
On Thu, Jul 1, 2021 at 3:00 PM Jesus Mari Aguirre wrote: > > As far as I know, zmq doesn't need a broker but subscribers should know the > address of the publisher, if the network increases its complexity with more > publishers you need a broker, that is a proxy on zmq. > If I understand well

[Pharo-users] Re: Communication between different images

2021-07-01 Thread Esteban Maringolo
having my images living for months sometimes). Thanks in advance. Regards! Esteban A. Maringolo On Wed, Jun 30, 2021 at 5:00 AM Sven Van Caekenberghe wrote: > > > > > On 30 Jun 2021, at 01:28, Esteban Maringolo wrote: > > > > I like the Ansible approach

[Pharo-users] Re: Communication between different images

2021-06-29 Thread Esteban Maringolo
? Regards! Esteban A. Maringolo On Tue, Jun 29, 2021 at 3:44 PM Gabriel Cotelli wrote: > > If you want to use Rabbit you can also take a look at Ansible for connecting > using the protocol instead of STOMP. > > On Tue, Jun 29, 2021 at 3:11 PM Esteban Maringolo > wrote:

[Pharo-users] Re: Communication between different images

2021-06-29 Thread Esteban Maringolo
eviously installed on your system. > It was ported from http://smalltalkhub.com/#!/~panuw/zeromq now it is at: > https://github.com/dellani/zeroMQ but I'm not sure if the original repo works > on newer PharosI had no time to contact the original author to join both > repos... > > &g

[Pharo-users] Re: Communication between different images

2021-06-29 Thread Esteban Maringolo
steban, > > > On 29 Jun 2021, at 04:55, Esteban Maringolo wrote: > > > > Hi, > > > > I'm rearchitecting a web app to perform updates only when necessary > > (instead of computing them all the time) on each request, I can have a > > global announcer and sub

[Pharo-users] Communication between different images

2021-06-28 Thread Esteban Maringolo
Hi, I'm rearchitecting a web app to perform updates only when necessary (instead of computing them all the time) on each request, I can have a global announcer and subscribers to know when to update within an image, but is there a way to have something like that but for inter-image coordination?

[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] 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
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 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 de

[Pharo-users] Re: Rounding in Floats

2021-06-15 Thread Esteban Maringolo
nteresting > to look at the code. > > But I am far from an expert. > > > On 14 Jun 2021, at 23:23, Sven Van Caekenberghe wrote: > > > > > > > >> On 14 Jun 2021, at 22:44, Esteban Maringolo wrote: > >> > >> I'm coming back to this be

[Pharo-users] Re: Rounding in Floats

2021-06-15 Thread Esteban Maringolo
ss your entire calculation to use exact > > > arithmetic. > > > > I really don't know how to do this, any pointers? > > > > Nothing is more straightforward than addition and subtraction to me, > > 6.7 - 2.2 is the simplest it can get. > > > > The common

[Pharo-users] Re: Rounding in Floats

2021-06-15 Thread Esteban Maringolo
y coincidence, I prepared exam questions > about floats for my students yesterday. ) > > Kind regards, > Steffen > > > Konrad Hinsen schrieb am Dienstag, 15. Juni 2021 07:02:30 (+02:00): > > > On 15/06/2021 01:03, Esteban Maringolo wrote: > > > Sure, but what in

[Pharo-users] Re: Rounding in Floats

2021-06-14 Thread Esteban Maringolo
but in this particular case s was 113 so it removed the "troubling" part. > That or get agreement on "de minimis non curat lex". I had to search for that expression. Now I know, I agree. Regards, Esteban A. Maringolo > > > On Tue, 15 Jun 2021 at 08:45, Esteban Maring

[Pharo-users] Re: Rounding in Floats

2021-06-14 Thread Esteban Maringolo
Hi Sven, > > If in Pharo [1] you do: > > a := 6.7 + (32.8 - 35) > > It will produce: > > 4.497 > > Which, when rounded, will produce 4. > But, > a roundTo: 0.1 "=> 4.5" Sure, but what initiated this thread was a reference to roundTo: 0.1 which produced a "wrong" output. (9.1 +

[Pharo-users] Re: Rounding in Floats

2021-06-14 Thread Esteban Maringolo
s about these problems. Best regards, [1] Dolphin Smalltalk, JS, Python, Ruby, Dart produces the same output as Pharo. [2] VisualWorks, VAST, Excel, VB and all calculators I tried Esteban A. Maringolo On Tue, Sep 8, 2020 at 12:45 AM Esteban Maringolo wrote: > > On Tue, Sep 8, 202

[Pharo-users] Re: [ANN] Pharo-ODBC

2021-06-14 Thread Esteban Maringolo
Thank you John! This is very good news! Best regards, Esteban A. Maringolo On Mon, Jun 14, 2021 at 6:29 AM John Aspinall wrote: > > There is now an ODBC framework for Pharo, available at the pharo-rdbms github > site: > > https://github.com/pharo-rdbms/Pharo-ODBC > > This is based on the

[Pharo-users] SQLite3 primitiveFailed after FFI call

2021-04-30 Thread Esteban Maringolo
Hi all, I'm having a strange issue when executing a query with the SQLite3 driver (via GLORP). In: SQLite3Library>>#apiPrepare: dbHandle withSQLText: anSQLText with: textSize with: sHandle with: tail "int sqlite3_prepare_v2(sqlite3*, const char*, int, sqlite3_stmt**, const char **)" ^ self

[Pharo-users] Re: creating a subclass in system browser

2021-04-27 Thread Esteban Maringolo
It's been there as a refactoring for a while. Why a refactoring? Who knows... Esteban A. Maringolo On Tue, Apr 27, 2021 at 1:59 PM kmo wrote: > / a red circled exclamation point (hovering says 'Refactorings' - which > has a > menu for the +New subclass./ > > That sounds completely horrible.

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Esteban Maringolo
The bubbling up is very common in UI, I don't know how it is implemented though. I don't know if event handling is programmed using events or imperative calls to continue "bubbling" up, or... the event is handler by the container presenter and passed down to the target (e.g. a button). So the end

[Pharo-users] Re: Announcements - and whether its bad to check if a subscription would be handled?

2021-04-27 Thread Esteban Maringolo
Exceptions are real, so your use case might justify it. In my experience I never had to test whether an announcer has some subscription, and before using announcements whether an object has some "listener" to some event. I always saw announcements as a fire and forget kind of architecture. Not

[Pharo-users] Re: Postgres P3 Driver in seaside/web apps - strategy for "prepare:"

2021-04-19 Thread Esteban Maringolo
Not completely related, but also not unrelated. (?) You can pool your connections in the server side by means of pg_bouncer [1] to scale tenfold (or more) the connectivity to your PostgreSQL server. So you can program with P3Client and then when you need to scale the connectivity, simply do it on

[Pharo-users] Re: We haven't had a design debate in a while - thoughts on CD.buy article...

2021-04-16 Thread Esteban Maringolo
I saw a tweet about that, and I think that the example is misleading, maybe intentionally so. I don't think anybody would model it that way, in any case you'd have aProduct.buy() or aProduct.addToCart(aCart). If you think it with the typical dog.bark() it certainly makes more sense than

[Pharo-users] Re: Whats the easiest/cheapest way to run a Pharo web app in 2021?

2021-04-13 Thread Esteban Maringolo
l month 24/7. > > > > Thanks to the fact that Pharo has a full JIT VM on ARM64, this is crazy > > fast as well. > > > > I am sure that the reason this is so cheap is the fact that it is super > > efficient. > > > > You can try this easily for yoursel

[Pharo-users] Re: Whats the easiest/cheapest way to run a Pharo web app in 2021?

2021-04-12 Thread Esteban Maringolo
What do you use that's so cheap/affordable? El lun., 12 de abril de 2021 04:48, Norbert Hartl escribió: > > > > Am 12.04.2021 um 04:02 schrieb Jeff Gray : > > > > Considering easiest and cheapest, there's always self hosting, or are you > > discounting that idea? > > Most geeks have a bit of

[Pharo-users] Re: Whats the easiest/cheapest way to run a Pharo web app in 2021?

2021-04-02 Thread Esteban Maringolo
I've been running a Pharo application since August last year, initially setup with everything inside a Docker swarm (database, reverse proxy and Pharo workers for the UI and REST API). I wanted to give Docker a try because I thought it was going to be "better". After having some issues with the

[Pharo-users] Simple statistics package?

2021-03-08 Thread Esteban Maringolo
Hi, I need to perform simple statistical analysis over a small set of objects (~10-1000 max), basic stuff like getting the quartiles, mean, average of a certain set and perform moving averages. I'm looking for something where I can pass a collection of objects of my domain, an accessor and get

[Pharo-users] Re: [ANN] Foliage: a static site generator

2021-01-18 Thread Esteban Maringolo
Hi Norbert, Thanks for sharing it! ps: In spanish a sheet of paper and a tree leaf also share the same word, so "Follaje" means the same thing. Esteban A. Maringolo On Mon, Jan 18, 2021 at 11:11 AM Norbert Hartl wrote: > > Hi, > > I’ve been toying around with a web site generator the last

[Pharo-users] Re: is there a better way

2021-01-06 Thread Esteban Maringolo
To avoid doing something like that, and for a web scrapping tool I wrote, I implemented a basic subclass of ZnClient (called ZnCachingClient) that used a disk cache where each key/file was the hash of the requested URL. I haven't used in a while but it should continue to work, in any case, I

[Pharo-users] Re: Easiest light weight cloud/web persistence for Pharo?

2020-10-06 Thread Esteban Maringolo
Hi Pierce, On Mon, Oct 5, 2020 at 10:22 PM Pierce Ng wrote: > On Mon, Oct 05, 2020 at 11:23:25PM +0100, Tim Mackinnon wrote: > Many options. Great time sinks. :-) Have fun. > > > - Choose Boring Technology - http://boringtechnology.club/ This made my day. Thank you :-) Esteban A. Maringolo

[Pharo-users] Re: [Pharo-dev] [ANN] Pharo Consortium New Gold Member: InfOil

2020-09-30 Thread Esteban Maringolo
As a former employee of the company I'm really happy to see this finally happening! Best regards! Esteban A. Maringolo On Wed, Sep 30, 2020 at 11:13 AM Marcus Denker wrote: > > > The Pharo Consortium is very happy to announce that InfOil has joined the > Consortium as a Gold Member. > >

[Pharo-users] Re: Standalone html builder (a la seaside without seaside?)

2020-09-29 Thread Esteban Maringolo
Hi Jan, Nice work, the "Eleven" framework goes in the direction of what I was experimenting with for Seaside, but instead of trying to introduce that in Seaside without breaking everything else (as I failed to some extent) you went directly to replace and redo most of the stuff there (some with

[Pharo-users] Re: Standalone html builder (a la seaside without seaside?)

2020-09-28 Thread Esteban Maringolo
I've been playing with something like that, but still using Seaside. I was calling it "WAStatelessApplication", which is nothing but a way to route requests to components, and have these components not using callbacks nor continuations. I'm really comfortable with the Seaside canvas way of doing

[Pharo-users] Re: why is ZnEasy choking on this and languages as c# and ruby not

2020-09-27 Thread Esteban Maringolo
Hi Roelof, As pointed in the Discord chat, and just for others to know, the HTTP response is not correct since it doesn't set any MIME Type, so Zinc (ZnEasy) does the correct thing that it is to assume the content is application/octet-stream, so you get a ByteArray. If you decode such bytearray

Re: [Pharo-users] Rounding in Floats

2020-09-07 Thread Esteban Maringolo
On Tue, Sep 8, 2020 at 12:16 AM Richard O'Keefe wrote: > > "7.1 roundTo: 0.1 should return 7.1" > You're still not getting it. I was until Konrad explained it. > Binary floating point CANNOT represent either of those numbers. > You seem to be assuming that Pharo is making some mistake. > It

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

2020-09-07 Thread Esteban Maringolo
! Esteban A. Maringolo On Mon, Sep 7, 2020 at 1:55 PM Stéphane Ducasse wrote: > > I would like also to be able to deploy a pharo app as a dll juts time and > money. > > S. > > On 7 Sep 2020, at 17:28, Esteban Maringolo wrote: > > Hi Davide, > > Thanks for the thorough

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

2020-09-07 Thread Esteban Maringolo
out names and locations > apart from suggest to see 4 emulators 4 running in a squeak image > running ... in javascript in your browser (so total is 5) at : > https://smalltalkzoo.thechm.org/HOPL-Squeak.html?earlyst80 > (thanks to Vanessa Freudemberg & Dan Ingalls). > > Sorry again

Re: [Pharo-users] Rounding in Floats

2020-09-07 Thread Esteban Maringolo
7, 2020 at 9:51 AM Tomohiro Oda wrote: > > Esteban, > > You can instead use `7.1 round: 1` to get 7.1. > It's not the problem of the rounding algorithm. > It's because IEEE float can't express the exact value of 0.1. > --- > tomo > > 2020年9月7日(月) 21:28 Esteb

Re: [Pharo-users] Rounding in Floats

2020-09-07 Thread Esteban Maringolo
Hi Sven, On Mon, Sep 7, 2020 at 9:10 AM Sven Van Caekenberghe wrote: > > On 6 Sep 2020, at 22:21, Esteban Maringolo wrote: > > > > It is not for printing but for testing. I want to assert that a > > certain calculation gives the expected result. > > Then

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

2020-09-06 Thread Esteban Maringolo
nly practical form of protection I see in Squeak/Pharo > is to obfuscate code. > > Maybe I'm wrong. > > Davide Grandi > > On 06/09/2020 22:27, Esteban Maringolo wrote: > > On Sun, Sep 6, 2020 at 12:52 PM Davide Grandi > > wrote: > >> Does "competition&quo

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

2020-09-06 Thread Esteban Maringolo
On Sun, Sep 6, 2020 at 12:52 PM Davide Grandi wrote: > > Does "competition" has SmalltalkEmulator ? > A Smalltalk-written VM will defeat any simple obfuscation scheme. Sorry, but I don't understand what you mean. Best regards,

Re: [Pharo-users] Rounding in Floats

2020-09-06 Thread Esteban Maringolo
Hi Sven, On Sun, Sep 6, 2020 at 11:57 AM Sven Van Caekenberghe wrote: > > On 6 Sep 2020, at 16:06, Esteban Maringolo wrote: > > (9.1 + (-2.0)) roundTo: 0.1. > > "7.1005" > > Is this a bug? > > Maybe. > > But I would not approach the

[Pharo-users] Rounding in Floats

2020-09-06 Thread Esteban Maringolo
Hi, Continuing with my issues with decimals, I'm having one issue that is not clear to me why it happens. If I do: (9.1 + (-2.0)) roundTo: 0.1. "7.1005" I expect to get a single decimal Float (rounded with whatever precision, but a single decimal). Even if I do something like this:

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

2020-09-06 Thread Esteban Maringolo
Stef, On Sat, Sep 5, 2020 at 12:49 PM Stéphane Ducasse wrote: > just a question what if a bad guy you want to protect from is just smart > and use a default vm. You're talking about decompiling and I'm talking about not making it trivial to see the code, internals and other things. Security is

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

2020-09-04 Thread Esteban Maringolo
Hi Jan, I wasn't aware of such a method, actually it doesn't have many users in the system. I'll do this and check whether this works. Esteban A. Maringolo On Wed, Sep 2, 2020 at 5:19 PM jan.struz wrote: > > Hi Esteban, > > you can try this for all methods requiring source code, before

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

2020-09-04 Thread Esteban Maringolo
My compromise would be to disable the GUI version of the VM. How can I compile a VM with the --headless setting hardcoded? Where to start? Esteban A. Maringolo On Fri, Sep 4, 2020 at 2:39 PM Stéphane Ducasse wrote: > > Thanks James > > This is pretty much the right questions :) > And I would

Re: [Pharo-users] Scaled decimals comparisons

2020-09-02 Thread Esteban Maringolo
gt; aScaledDecimal roundedToScale = anotherOne roundedToScale > > Note that the ANSI standard, which was agreed to by a whole bunch of > Smalltalk experts, says "A converted to a > will be a fraction having the same numeric value but having an integer > numerator and a denomina

Re: [Pharo-users] Scaled decimals comparisons

2020-09-01 Thread Esteban Maringolo
- (2 * 35.9) - (0 / 2) * (113/121) asScaledDecimal: 1) roundedByScale = > 9.5s1 "true" > > > HTH. > > John > > > > > > > > > On 1 Sep 2020, at 05:17, Esteban Maringolo wrote: > > > > As a follow up to this, adding a roundTo: before conve

Re: [Pharo-users] Scaled decimals comparisons

2020-09-01 Thread Esteban Maringolo
o 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) > > asScaledDec

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

2020-09-01 Thread Esteban Maringolo
uper busy > but if you have a way and that Pharo should be changed to support this > scenario let > us know we will support you. > > S > > On 29 Aug 2020, at 04:49, Esteban Maringolo wrote: > > Hi, > > Is there a way to get rid the .sources file in a deployment scena

Re: [Pharo-users] Scaled decimals comparisons

2020-08-31 Thread Esteban Maringolo
, 2020 at 1:07 AM Esteban Maringolo wrote: > > 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. > >

[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] CV/OCR Library

2020-08-31 Thread Esteban Maringolo
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 experiment with recognizing the content of >> some fixed size form, a

[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
rt this > scenario let > us know we will support you. > > S > > On 29 Aug 2020, at 04:49, Esteban Maringolo wrote: > > Hi, > > Is there a way to get rid the .sources file in a deployment scenario? > > I followed this guide [1], but I cannot get rid of the .sources fi

Re: [Pharo-users] PostgresV2 Driver available?

2020-08-30 Thread Esteban Maringolo
Hi, My question was done in a quest to crack an issue with Postgres which was already solved, and it involved the connection, but it wasn't the driver nor the server, but a firewall in between. So I don't see the need, nor I think it would be advisable, to use the v2 driver when the P3 is

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

2020-08-28 Thread Esteban Maringolo
Hi, Is there a way to get rid the .sources file in a deployment scenario? I followed this guide [1], but I cannot get rid of the .sources files, because I'm using PharoADO (which uses PharoCOM) and it uses some reflection for FFI and for some reason that implies using the .sources file. I

Re: [Pharo-users] Checking baseline before publishing

2020-08-28 Thread Esteban Maringolo
.ston file accordingly (see > https://github.com/hpi-swa/smalltalkCI#testcase-selection). > > Hope this helps! > > Kind regards, > > Jonathan van Alteren > > Founding Member | Object Guild B.V. > Sustainable Software for Purpose-Driven Organizations > > jvalte...

[Pharo-users] Pharo.exe and PharoConsole.exe VM Difference

2020-08-27 Thread Esteban Maringolo
Hi, What is the difference between the Pharo.exe and PharoConsole.exe? They have the same size, but are binary different. I'd expect the PharoConsole to run headless by default, but it is not the case. So... is this documented anywhere? Thanks! Esteban A. Maringolo

[Pharo-users] Checking baseline before publishing

2020-08-26 Thread Esteban Maringolo
Hi, How can I check that my baseline works without having to publish everything, check that it fails and then going to the origin, fixing, etc? I might be particularly idiot to always miss something, I usually have to try at least four times (in a blank image) that my Baseline, dependencies,

Re: [Pharo-users] Iceberg "adopt commit" behavior

2020-08-24 Thread Esteban Maringolo
Thanks Sean, I switched to use that, I didn't know about the "DO NOT CHECK OUT..." option. This sequence is so convenient it might be worth having as a single click option (repair > discard > do not checkout). Regards! Esteban A. Maringolo On Sat, Aug 22, 2020 at 8:24 AM Sean P. DeNigris

Re: [Pharo-users] Iceberg "adopt commit" behavior

2020-08-21 Thread Esteban Maringolo
gt; Tell us if you have any questions > > Thanks! > > On Thu, Aug 20, 2020 at 2:21 PM Esteban Maringolo > wrote: > > > > Hi Pablo, > > > > Thanks for the answer. > > > > So my workflow of editing files outside of Pharo, committing them, and >

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-20 Thread Esteban Maringolo
Hi all, Good news. :-) On Thu, Aug 20, 2020 at 6:36 PM Esteban Maringolo wrote: > > Is it not so that in Docker all network connections in/out/between > > instances are mediated by some management software ? > > I even thought it was nginx. Maybe I am

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-20 Thread Esteban Maringolo
Hi all, On Thu, Aug 20, 2020 at 3:02 PM Sven Van Caekenberghe wrote: > >> I don't know what is going on inside Socket, I just stated my opinion. > > Maybe there is something to investigate here? > Is it not so that in Docker all network connections in/out/between instances > are mediated by

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-20 Thread Esteban Maringolo
Hi, I'm replying to the list as well... because the last two mails got replied to our personal addresses. On Thu, Aug 20, 2020 at 11:55 AM Sven Van Caekenberghe wrote: > > On 20 Aug 2020, at 15:31, Esteban Maringolo wrote: > > > > Hi Sven, > > > > If a socke

Re: [Pharo-users] Iceberg "adopt commit" behavior

2020-08-20 Thread Esteban Maringolo
On Thu, Aug 20, 2020 at 10:48 AM Sean P. DeNigris wrote: > > The image knows at any moment the commit it has loaded (or it supposed > > to have loaded). > > For posterity, that info can be accessed via e.g. `anIceLibgitRepository > workingCopy referenceCommit shortId` This comes really handy, so

Re: [Pharo-users] Iceberg "adopt commit" behavior

2020-08-20 Thread Esteban Maringolo
opy, and also it affects the records of > changes the image has. > > On Thu, Aug 20, 2020 at 5:16 AM Esteban Maringolo > wrote: > > > > Hi, > > > > What does the "Adopt commit" mean? > > > > It seems like a rebase, but I'm not sure. > > >

[Pharo-users] Iceberg "adopt commit" behavior

2020-08-19 Thread Esteban Maringolo
Hi, What does the "Adopt commit" mean? It seems like a rebase, but I'm not sure. I often have ongoing changes in my image, and also changes in the filesystem (css, js, Dockerfile, etc.). So what I do is to commit on the filesystem, and then "adopt" the recently created commit, and then commit

Re: [Pharo-users] CannotWriteData errors in P3 and Seaside

2020-08-19 Thread Esteban Maringolo
ping on Pharo 8 on Windows with PostgreSQL running in Docker on WSL2 (ubuntu), but on the server it is a 100% Linux deployment. Any ideas? Esteban A. Maringolo On Mon, Aug 10, 2020 at 5:44 PM Esteban Maringolo wrote: > > Looking at the Postgres side of the log I find that the connection

  1   2   3   >