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] How to catch and handle multiple exceptions

2019-04-08 Thread Esteban Maringolo
Richard, I was going to comment the #when:do:[when:do:] approach of VAST [1]. Why do you say it won't be fast? Because of the multiple exception handlers in the call stack? I think that some construct might be used to obtain the same as the #when:do:when:do: but using a chained approach instead.

Re: [Pharo-users] How to catch and handle multiple exceptions

2019-04-08 Thread Esteban Maringolo
Maybe the abstraction needed wraps everything within a single handler, but internally does a switch like statement dispatching to a particular error handler block. handledBlock exceptionDispatcher on: NotFoundError do: [:ex | ...]; on: MessageNotUnderstood do: [:ex | .. ]. BlockClosure>

Re: [Pharo-users] [OT] (slightly) What makes other dialects "enjoyable" for you? (WAS: difference between double dispatch...)

2019-04-10 Thread Esteban Maringolo
I love this attitude coming from the very core of the Pharo dev-team, which felt to me as being blind to what other dialects were doing or did in the past, and these is days seems to be catching up quite quickly. Dolphin Smalltalk: Practically all "widgets" (aka "views") are the native ones, and t

Re: [Pharo-users] Migration from VW to Pharo

2019-04-17 Thread Esteban Maringolo
There is this tool: https://github.com/GemTalk/SETT I used it with a few packages with no special Namespace and it worked just fine. It provides, however, several settings to map namespaces, packages, etc, so it should work. It only works in Linux though, because of the dependency to external pr

Re: [Pharo-users] Migration from VW to Pharo

2019-04-17 Thread Esteban Maringolo
: > > Hey, > > Unfortunately I have Windows though. I will have a look at it. Thanks for > letting me know > > Best Regards, > Sree > > On Wed, Apr 17, 2019, 5:27 PM Esteban Maringolo wrote: >> >> There is this tool: https://github.com/GemTalk/SETT &

[Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
Hi, Is there a way to add deep recursion protection to the system? eg. RecursiveObject>>#recurse self recurse So calling `RecursiveObject new recurse` in Dolphin raises an exception right away... Throws the following error with this stack: ProcessorScheduler>>stackOverflow: [] in ProcessorSch

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
2019 at 9:30 AM Esteban Maringolo wrote: > > Hi, > > Is there a way to add deep recursion protection to the system? > > eg. > RecursiveObject>>#recurse > self recurse > > So calling `RecursiveObject new recurse` in Dolphin raises an > exception right away.

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
ieve such tight loops end up in JIT machine code. > > Checking stack overflow on each stack manipulation is costly. > > But I totally agree that we should try to catch these situations even if > there is a cost. > > > On 25 Apr 2019, at 14:39, Esteban Maringolo wrote: > &g

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
Hi Sven, On Thu, Apr 25, 2019 at 10:04 AM Sven Van Caekenberghe wrote: > This way, you should run out of heap before the stack gets too large, since > you allocate and hold on to an array in each frame. I don't understand the purpose of such expression, since I'm not writing recursive code, whe

Re: [Pharo-users] Deep Recursion break/protection

2019-04-25 Thread Esteban Maringolo
On Thu, Apr 25, 2019 at 10:41 AM Sven Van Caekenberghe wrote: > > On 25 Apr 2019, at 15:27, Esteban Maringolo wrote: > > However I ran these examples in Dolphin and Pharo 7, and in Dolphin it > > triggers an memory exhaustion exception right away, and in Pharo it > > gro

Re: [Pharo-users] Getting example images - https://picsum.photos

2019-04-29 Thread Esteban Maringolo
I remember Paul de Bruicker (cc'ed) used a similar service to get user profiles (with first and last name and pictures, so you can "simulate" users in your app, and you could ask for male or female profiles). I don't remember the name, hopefully he will :) Esteban A. Maringolo On Mon, Apr 29, 20

Re: [Pharo-users] Bloc of code in tiers programming language

2019-05-15 Thread Esteban Maringolo
On Wed, May 15, 2019 at 5:21 PM Tim Mackinnon wrote: > > On a similar line - I’ve often noticed that an interesting block pattern in > Smalltalk which is overlooked in other languages is how we handle errors > through them. > > We often don’t throw exceptions but instead pass a useful block (and

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Esteban Maringolo
Maybe this is a better way to build what you want. String streamContents: [:stream | gifts do: [:each | stream nextPutAll: each ] separatedBy: [ stream nextPut: $,; space ] ] Esteban A. Maringolo On Thu, May 16, 2019 at 4:21 PM Roelof Wobben wrote: > Hello, > > Im testing all my sol

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Esteban Maringolo
reamContents: [:stream | gifts > do: [:each | stream nextPutAll: each ] > separatedBy: [ stream nextPut: $,; space ] > > > > stream nextputAll: 'all'; nextPut: ','; nextPut: gifts last > > ] > > stream nextputAll: 'all' > strea

Re: [Pharo-users] can I do this with a stream or a format

2019-05-16 Thread Esteban Maringolo
21:47 schreef Roelof Wobben: > > oke, and then do something like : > > stream := > > String streamContents: [:stream | gifts > do: [:each | stream nextPutAll: each ] > separatedBy: [ stream nextPut: $,; space ] > > > > stream nextputAll: 'all'; n

Re: [Pharo-users] can I do this with a stream or a format

2019-05-17 Thread Esteban Maringolo
The good thing about these exercises is that you know about new selectors, I didn't know there was an #allButLast and #allButLastDo:. Regards, Esteban A. Maringolo On Fri, May 17, 2019 at 5:44 AM Sven Van Caekenberghe wrote: > I would make that > > ^ String new: gifts size * 10 streamContents

Re: [Pharo-users] [Pharo-dev] [Ann] Lifeware, Schmidt Pro contracts for the consortium

2019-05-20 Thread Esteban Maringolo
This is really good news! Congratulations! Esteban A. Maringolo On Mon, May 20, 2019 at 3:04 AM ducasse wrote: > The Pharo consortium is very excited and super happy to bring your > attention to the following announce > that was presented during Pharodays 2019: > https://fr.slideshare.net/pha

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Esteban Maringolo
The M:N relationship is pretty straightforward in pure OO design. You have anEpisode that references a collection with instances of Track. And each Track has a collection of episodes. Of course this could be elaborated even further, and have an object like TrackPlay sitting in between of anEpisod

Re: [Pharo-users] Modeling HABTM

2019-06-10 Thread Esteban Maringolo
uch a relationship. > > I was thinking that an object would have an instance variable that was an > ordered collection of objects.. So having one object belong to two parent > objects could be tricky. > > > > On Jun 10, 2019, at 1:27 PM, Esteban Maringolo wrote: > > You

[Pharo-users] SETT Commit per bundle/package

2019-06-17 Thread Esteban Maringolo
Hi, I don't know if anybody is using SETT to migrate from VW's Store to a Tonel repository, but I'm trying to pull back to Pharo a few packages I moved to VW and continued to maintain there. I don't understand why SETT creates a commit on a "per pundle" (package/bundle) basis. What would be the

[Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-17 Thread Esteban Maringolo
Hi, I'm trying to load a package from a Tonel repository[1] that was created using SETT[2]. The structure seems fine, but when I try to load a package, I'm getting the message saying that there is no version for the package in the current commit (which seems wrong at least to the naked eye). Eg.

Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Esteban Maringolo
and commit the missing files: > > > > If you commit those files, then you’ll be able to load your packages. > > Guille > > > El 18 jun 2019, a las 2:34, Esteban Maringolo > escribió: > > Hi, > > I'm trying to load a package from a Tonel repository[

Re: [Pharo-users] Iceberg loading a Tonel package migrated using SETT

2019-06-18 Thread Esteban Maringolo
roblems are going to continue to plague us. > > Dale > > [1] https://github.com/pharo-vcs/iceberg/issues/1239 > On 6/18/19 6:40 AM, Esteban Maringolo wrote: > > Hi Guillermo, > > Your workaround effectively solved my issue. > > About the tonel format, in the

Re: [Pharo-users] Playground auto-save?

2019-06-19 Thread Esteban Maringolo
I still don't know why there is no explicit "save", to at least capture that state in the play-stash. There is an explicit "publish" to the cloud, but no save. Esteban A. Maringolo On Wed, Jun 19, 2019 at 2:34 PM Sven Van Caekenberghe wrote: > if you give the playground's tab a name, it will s

Re: [Pharo-users] Cryptography decrufted

2019-07-05 Thread Esteban Maringolo
Thank you Norbert! Esteban A. Maringolo On Fri, Jul 5, 2019 at 11:06 AM Cédrick Béler wrote: > > Excellent job Norbert ! > > Thx, > > Cédrik > > > Le 5 juil. 2019 à 13:04, Norbert Hartl a écrit : > > > > I cannot remember how many years I’m suffering with the poor quality of the > > Cryptogra

[Pharo-users] Comparing to commits in Iceberg

2019-07-08 Thread Esteban Maringolo
Is there a way I can compare, and eventually merge, two arbitrary commits with Iceberg? E.g. I'm working on the latest commit of the master branch and want to see what changed against two commits ago, and maybe roll back some change. Regards, Esteban A. Maringolo

Re: [Pharo-users] [ANN] MessageFlowBrowser for Pharo 7 and 8

2019-07-12 Thread Esteban Maringolo
I like the soundtrack. If anything else must be added, subtitles is the first thing in the list. El vie., 12 de julio de 2019 08:59, Richard O'Keefe escribió: > Great tool. Helpful video. > One thing would improve the video: remove the sound track, or > replace it with spoken commentary. > > >

Re: [Pharo-users] [OrderedCollection] add a reference or a copy?

2019-07-24 Thread Esteban Maringolo
Yes, it is the same. Everything is passed by "reference" (*). And if you copy the collection you'll get two collections referencing the same object. E.g. | a c1 c2 | a := Object new. b := OrderedCollection with: a. b identityIncludes: a. "true" c := b copy. c identityIncludes: a. "true" (*) Some

Re: [Pharo-users] OrderedCollection as an instance variable

2019-07-24 Thread Esteban Maringolo
I agree with that, but in some cases, like reading objects from an ORM, you would be creating lots of instances of objects that are going to be discarded right away. This would put no stress on GC since it would happen in the "new" space, but would consume more memory (although I never measured how

[Pharo-users] How to modify a non-forked Iceberg repository to create a pull request

2019-07-27 Thread Esteban Maringolo
I was working on something using Glorp, loaded as a Metacello dependency cloned directly from the pharo-rdbms/Glorp GitHub repo. Then I found what I think is a bug, make a few modifications and make created a new commit. I cannot commit to the `origin` remote since I'm not a member, but I can't c

Re: [Pharo-users] How to modify a non-forked Iceberg repository to create a pull request

2019-07-27 Thread Esteban Maringolo
Thank you Gabriel. It was even simpler. Esteban A. Maringolo On Sat, Jul 27, 2019 at 5:37 PM Gabriel Cotelli wrote: > > Forth the repo > Add the remote > And just push to your remote > Then use the usual flow for pr > > On Sat, Jul 27, 2019, 16:33 Esteban Maringolo wrote

Re: [Pharo-users] Warning Newbie Question: Bootstrap Navbar example works my copy and paste fails?

2019-07-29 Thread Esteban Maringolo
You're using the Bootstrap 4 library and methods. I don't know about the one referenced in the MOOC, but there are several differences between Torsten's Bootstrap 3 (TBS prefixed classes) and Bootstrap 4 (SBS prefix), in particular because Bootstrap 4 library wrapper uses a subclass of WAHtmlCanva

Re: [Pharo-users] Warning Newbie Question: Bootstrap Navbar example works my copy and paste fails?

2019-08-01 Thread Esteban Maringolo
Hi Jeff, Here Regards, Esteban A. Maringolo On Thu, Aug 1, 2019 at 3:48 AM Jeff Gray wrote: > > Have I missed something? Is there a pharo Bootstrap 4? How do I get that? > > > > > -- > Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310

Re: [Pharo-users] A Canticle for Smalltalk

2019-08-06 Thread Esteban Maringolo
What is the intentend audience of this? Personally I don't like the aesthetics, the pace of text and its "nostalgia", and the overall message of the song lyrics ; and although I like the band and song, it's a proven plagiarism of Satriani's "If I could fly". [1] Regards, [1] https://youtu.be/8R

Re: [Pharo-users] A Canticle for Smalltalk

2019-08-06 Thread Esteban Maringolo
I'm not a native speaker but grammatically speaking "used" (simple past) means you did use it in the past but there is no information about whether you use it now, and "have been using" (present perfect) means you did use it in the past and continue to do so in the present. Esteban A. Maringolo

Re: [Pharo-users] Code of Conduct

2019-09-16 Thread Esteban Maringolo
On Mon, Sep 16, 2019 at 3:59 PM Ramon Leon wrote: > > On 2019-09-11 1:07 p.m., Sean P. DeNigris wrote: > > merely say that no one (including from those categories) will be harassed > > inside the Pharo community. Seems pretty reasonable, unless I'm missing > > something... > > You're missing what

Re: [Pharo-users] Code of Conduct

2019-09-17 Thread Esteban Maringolo
On Tue, Sep 17, 2019 at 10:28 AM Offray Vladimir Luna Cárdenas wrote: > For example, in Latin America I have not seen a huge movement about new > pronouns and I don't know any of such for Spanish. The movement in LATAM started by the use of gender-neutral plurals, with some phonetic aberrations

Re: [Pharo-users] Code of Conduct

2019-09-19 Thread Esteban Maringolo
Peter, I also understand that Esteban Lorenzano didn't aim the comment at you, and there was a language mismatch in the tone or intention of the last sentence. Let's get back to the discussion of the CoC (if something else must be discussed) and avoid the "you said"/"he said" kind of side-debate

Re: [Pharo-users] Reminder: Smalltalk Webcamp, 22nd of October

2019-09-24 Thread Esteban Maringolo
Hi, I'll arrive to Ghent by train on Monday afternoon, and will likely wander around the city/museum and/or any other point of interest. I still haven't booked any lodging, and will likely go for a simple bed & breakfast since I plan to be outside as much as possible (if weather enables it). Rega

Re: [Pharo-users] Microsoft COM

2019-09-26 Thread Esteban Maringolo
On Wed, Sep 25, 2019 at 8:35 PM Vince Refiti < vince.ref...@trapezegroup.com.au> wrote: > Have you checked out Dolphin Smalltalk's way of creating COM components? > The Dolphin guys have a wizard to "automatically generate wrapper classes > for all the interfaces defined in the type-library" (from

Re: [Pharo-users] Workflows and possible usages

2019-09-30 Thread Esteban Maringolo
Bruno, There was the MockGemstone package that created "compatible" reduced conflict classes (that provide name compatibility but no RC behavior) and other Gemstone globals (such as System) that you can use. The develop in Pharo deploy in Gemstone is used by a few projects that I'm aware of. As

Re: [Pharo-users] Looking for APIs to access Facebook, Instagram and Youtube

2019-10-04 Thread Esteban Maringolo
I have interest in such API tools as well. If you find something let me know. AFAIU FB uses GraphQL. Otherwise we'll have to build it our own. Regards! El vie., 4 de octubre de 2019 05:11, Esteban Lorenzano escribió: > Hi, > > I’m evaluating the viability of a side project. > Are there around A

Re: [Pharo-users] Pharo: Git and GUI speed; JS widget reuse in PharoJS

2019-10-07 Thread Esteban Maringolo
> Are we sure that Git is really the best way to go? Yes, it’s everywhere, but > its representation in Iceberg seems awkward or incomplete. I’ve been able to > crash several Pharo VMs with routine repo operations. This is why I backed > away recently from Pharo--that and the mush (see below).

Re: [Pharo-users] Pharo: Git and GUI speed; JS widget reuse in PharoJS

2019-10-07 Thread Esteban Maringolo
On Mon, Oct 7, 2019 at 12:07 PM Esteban Lorenzano wrote: > > On 7 Oct 2019, at 11:55, Esteban Maringolo wrote: > >> So I’m wondering when the Pharo GUI will snap as well as VW. > > > > Maybe with native widgets there will be a significant speedup, > > although I

Re: [Pharo-users] Pharo: Git and GUI speed; JS widget reuse in PharoJS

2019-10-09 Thread Esteban Maringolo
On Wed, Oct 9, 2019 at 10:50 AM Esteban Lorenzano wrote: > There are a lot of things to consider, not just the native widgets. > For example: how do you run those widgets? Because you need an event loop… > and while linux and windows do not care in which thread you run this, macOS > requires y

Re: [Pharo-users] How to zip a WideString

2019-10-10 Thread Esteban Maringolo
On Wed, Oct 9, 2019 at 3:18 PM Sven Van Caekenberghe wrote: > > Actually, thinking about the original use case, I now feel that it would be > best to remove #zipped/unzipped from String. Please do. Cases like this teach us about the proper separation of concerns. Regards, -- Esteban

Re: [Pharo-users] BlockClosure

2019-10-23 Thread Esteban Maringolo
There's no way you could use an integer (or any number) as a selector. So what you can do if you want to avoid using the "wordy" #value: selector is to implement your own selector in BlockClosure. It could be a #v: selector (so it is still a keyword selector) or a symbol such as #<< that ends up

Re: [Pharo-users] [ANN] XMLParser moved to GitHub

2019-11-19 Thread Esteban Maringolo
+1 Thanks for the effort. Not only migrated the code, but also polished it, documented, and setup a CI for it. Regards! Esteban A. Maringolo On Tue, Nov 19, 2019 at 8:53 AM Sven Van Caekenberghe wrote: > > Great! > > Thank you for this effort, it was probably much harder than it looks. > > > O

Re: [Pharo-users] [ANN] XMLParserHTML moved to GitHub

2019-11-29 Thread Esteban Maringolo
Thank you Torsten, I wasn't aware of this tool, I'm already using it to scrap content from a website and fed a Pharo driven system :) The XML integration in the Inspector is great too. Regards! Esteban A. Maringolo On Tue, Nov 19, 2019 at 8:40 AM Torsten Bergmann wrote: > > Hi, > > the STHub

Re: [Pharo-users] [ANN] XMLParserHTML moved to GitHub

2019-11-29 Thread Esteban Maringolo
Great! I just added a link to the README.md of the project and created a PR, because it is very likely that if you're parsing HTML you're doing some scrapping. :-) Esteban A. Maringolo On Fri, Nov 29, 2019 at 2:18 PM Cédrick Béler wrote: > > Stef and other wrote this book a while ago: > > http

Re: [Pharo-users] [ANN] XMLParserHTML moved to GitHub

2019-11-30 Thread Esteban Maringolo
Why use Chrome instead of ZnClient? To get a "real" render of the content? (including JS and whatnot). Regards! Esteban A. Maringolo On Sat, Nov 30, 2019 at 8:11 PM Cédrick Béler wrote: > > > > > > Also interesting! Any publicly available examples? How does one load "Google > > chrome pharo in

[Pharo-users] Cache for ZnClient

2019-12-04 Thread Esteban Maringolo
Is there any library/setting that adds "cache" to ZnClient? I'm doing some web scrapping with ZnClient, and sometimes I request the same pages (~300) more than once, and I'd like to save requests (and time) by simply retrieving what's in the cache (since the content doesn't change frequently). Ma

Re: [Pharo-users] Cache for ZnClient

2019-12-04 Thread Esteban Maringolo
ghe wrote: > > Hi Esteban, > > > On 4 Dec 2019, at 21:35, Esteban Maringolo wrote: > > > > Is there any library/setting that adds "cache" to ZnClient? > > > > I'm doing some web scrapping with ZnClient, and sometimes I request > > the sa

Re: [Pharo-users] Cache for ZnClient

2019-12-04 Thread Esteban Maringolo
text/html responses. It's simple, but it works pretty well and saved me a lot of time in the debugging of the scrapper :-) Regards! Esteban A. Maringolo Esteban A. Maringolo On Wed, Dec 4, 2019 at 6:58 PM Esteban Maringolo wrote: > > Hi Sven, > > Yeap, building something would be

[Pharo-users] Calypso loading code spinner

2019-12-06 Thread Esteban Maringolo
It is happening to me very often that to access the source of a method, or sometimes to find senders/implementors, the Calypso browser takes a long time to load it. By long I mean from two to five seconds, sometimes longer. I'm running Pharo 7 within a VirtualBox VM with Ubuntu 16.04 in a Windows

Re: [Pharo-users] Calypso loading code spinner

2019-12-06 Thread Esteban Maringolo
other apps within the VM. Is there any specific PM thing in the Pharo VM? Or should I look at the VBOX/Ubuntu settings. Regards. Esteban A. Maringolo On Fri, Dec 6, 2019 at 7:02 PM Esteban Maringolo wrote: > > It is happening to me very often that to access the source of a > method, o

[Pharo-users] Localization of Months and Day names

2019-12-17 Thread Esteban Maringolo
What is the "official way" (if any) to localize the printing of Date Month and Day names? I saw there is a Locale class, but neither the primLongDateFormat and primShortDateFormat have any senders, so if they're used, it's not through message sends. Regards! Esteban A. Maringolo

Re: [Pharo-users] Namespaces (was Re: Behold Pharo: The Modern Smalltalk)

2019-12-22 Thread Esteban Maringolo
There are two uses for namespacing: 1. Avoiding class name collisions between different packages 2. Modularization I don't have the use cases for 2, but Torsten had an idea to support the dot in the class name, that'd solve the problem 1. (e.g. Chronology.Date and YourPackage.Date). Esteban A. Ma

[Pharo-users] High CPU use idling

2019-12-23 Thread Esteban Maringolo
I constantly find Pharo eating the CPU of the VM, from 25% on idle to 100%, which of course heats up any laptop. The Pharo Process monitor doesn't show anything unusual, but I cannot tell from that tool if some process is the culprit. How can I know what is eating the CPU? Is there a way to kill

Re: [Pharo-users] High CPU use idling

2019-12-23 Thread Esteban Maringolo
VirtualBox or some weird combination. https://github.com/pharo-project/pharo/issues/5417 Regards, Esteban A. Maringolo On Mon, Dec 23, 2019 at 6:27 PM Esteban Maringolo wrote: > > I constantly find Pharo eating the CPU of the VM, from 25% on idle to > 100%, which of course heats up any laptop

Re: [Pharo-users] Date offset in Glorp and RDBMS

2019-12-29 Thread Esteban Maringolo
+1 to #equals:, it is for that purpose. However it might be the case that Glorp is testing a type that is expected to have an offset/timezone, in which case you'd be "eating" the error if the cell value contains a timezone different than the one in your image. Esteban A. Maringolo On Sun, Dec 29

Re: [Pharo-users] why is masses not found?

2019-12-31 Thread Esteban Maringolo
On Tue, Dec 31, 2019 at 11:29 AM Roelof Wobben via Pharo-users wrote: > > I solved it but I think with ugly code on the class side. > > solution > | computer | > computer := self new. > computer readRam: computer masses. > computer patchRam: 1 value: 12. > computer patchRa

Re: [Pharo-users] [ANN] Phoedown - Markdown to HTML

2020-01-02 Thread Esteban Maringolo
On Thu, Jan 2, 2020 at 3:47 PM Sean P. DeNigris wrote: > > Tim Mackinnon wrote > > I’m getting the impression that ffi is getting very easy these days and > > maybe we should use it more to focus on “other” things... This said, many > > of our nastiest bugs... > > That said, as you pointed out, bu

Re: [Pharo-users] Why Smalltalk is so easy to evangelize

2020-01-09 Thread Esteban Maringolo
Hi Richard, Regardless of the reasoning behind the title of the article, I don't like the tone of the last paragraph, it is not necessary, and probably not recommended either, to demote other languages in order to promote yours. In particular languages that have their own merits and capabilities t

Re: [Pharo-users] Why Smalltalk is so easy to evangelize

2020-01-09 Thread Esteban Maringolo
On Thu, Jan 9, 2020 at 2:23 PM horrido wrote: > I happen to like Dart, Elixir, Golang, Julia, and Rust. But be honest: do > these languages provide nearly as many reasons to choose them? > I'm not being deprecatory. I don't know about Julia nor Elixir, but Dart has Flutter, Golang drives a good

Re: [Pharo-users] Why Smalltalk is so easy to evangelize

2020-01-09 Thread Esteban Maringolo
Hi Richard, I don't find Smalltalk easy to evangelize, and in my experience the appeal to history (a variation of the "argumentum ad antiquitatem" fallacy) proved ineffective. People don't care about who invented MVC, bitblt or JIT, and so make decisions looking into the future, they weight in th

Re: [Pharo-users] Why Smalltalk is so easy to evangelize

2020-01-10 Thread Esteban Maringolo
On Fri, Jan 10, 2020 at 6:53 AM jtuc...@objektfabrik.de wrote: > I wanted to stay out of this thread, because it leads nowhere. But now > that I've typed all this, I will push the send button and regret it in a > few minutes... Don't regret it, I like how you wrote and I agree with most of what

Re: [Pharo-users] Smalltalk Poll

2020-01-29 Thread Esteban Maringolo
Final and correct option: All the above :-D Esteban A. Maringolo On Wed, Jan 29, 2020 at 9:40 AM Richard Kenneth Eng < horrido.hobb...@gmail.com> wrote: > I'm crafting a Smalltalk poll for my blog. I just wanted to get some > feedback. Have I overlooked anything? > > [image: image.png] >

Re: [Pharo-users] Just curious...

2020-01-30 Thread Esteban Maringolo
The number after the s is the scale of the ScaledDecimal. E.g. If you write 0.1s3 it means you instantiate a ScaledDecimal that is 0.001 So it sems that printOn: in ScaledDecimal is being "explicit" as it prints 1 when other dialects don't. Regards, Esteban A. Maringolo On Thu, Jan 30, 2020 a

Re: [Pharo-users] Just curious...

2020-01-30 Thread Esteban Maringolo
Errata: > E.g. If you write 0.1s3 it means you instantiate a ScaledDecimal that is 0.001 I meant: 0.1s3 = 0.100 Esteban A. Maringolo On Thu, Jan 30, 2020 at 2:28 PM Esteban Maringolo wrote: > > The number after the s is the scale of the ScaledDecimal. > > E.g. If you write 0.1

Re: [Pharo-users] About "it's not pharo but smalltalk"

2020-02-05 Thread Esteban Maringolo
On Wed, Feb 5, 2020 at 2:22 PM Steve Davies wrote: > I don't know where Pharo stops and Smalltalk starts, so its not easy for me > to tell if my question is a Pharo question of a Smalltalk one. Pharo is the political division(*) , Smalltalk was is the same territory. >From now on you can call

Re: [Pharo-users] About "it's not pharo but smalltalk"

2020-02-05 Thread Esteban Maringolo
On Wed, Feb 5, 2020 at 4:48 PM horrido wrote: > > I learned a long time ago that you can't please everybody. I've heard the > critics about my evangelism. I've also heard the praise. > > So what am I supposed to do? Listen to the critics and ignore the fans? tr;dr answer: know who you listen to.

Re: [Pharo-users] "Theming" dictionaries?

2020-02-19 Thread Esteban Maringolo
I'm not sure I fully understand your question. But Dictionaries expect its elements to respond to #key/#value messages, and in the case of Pharo Dictionary is tightly bound to the Association class (and the #-> selector), so there is no way to subclassify Dictionary and specify the class of its el

Re: [Pharo-users] "Theming" dictionaries?

2020-02-19 Thread Esteban Maringolo
On Wed, Feb 19, 2020 at 2:09 PM Richard Sargent wrote: > If you want to have a limited API, you wrap a dictionary with a new class > that exposes just the API you desire consumers to use. > > In general, inheritance is often overused or/ misused. Composition is usually > a better technique unle

Re: [Pharo-users] [ANN] Open source Pharo application "mediaclue"

2020-02-25 Thread Esteban Maringolo
Hi Andreas, Thanks for sharing the whole stack and how to build it from the ground up. One thing I noticed is that you are using the Plupload component? How was that integration with Seaside done? Is it available separately? Thanks! Esteban A. Maringolo On Tue, Feb 25, 2020 at 10:41 AM Brodbec

Re: [Pharo-users] evaluation of the expression 7 factorial

2020-03-10 Thread Esteban Maringolo
Try inspecting the result (Cmd+i) instead of printing it. The print result is breaking the number (5040) in two lines, but you only see the first three characters. Regards! Esteban A. Maringolo On Tue, Mar 10, 2020 at 1:48 PM Rene Paul Mages (ramix) wrote: > Hello, > > As you can see : > > h

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
Hi, To feed a Pharo app I need to read from an old MDB file, via ODBC. So I tested PharoADO and, after adding a missing Variant Type [1], I got my query working (at least read only). However the time of ADOClient to return a query with 10K rows of 5 columns each is extremely slow (+65000ms) comp

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
As an additional reference, I attach the profile tally for the query I'm mentioning. The culprit seems to be the calculation of the ADOField properties that might be calculated on every call. Regards, Esteban A. Maringolo On Wed, Mar 11, 2020 at 2:13 PM Esteban Maringolo wrote:

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
you have a direct access to each record at a time, and then > you can create your own "loop" to process the query result. In this way you > can avoid the loop in ADOClient>>query: method. > > Best wishes, > Tomaz > > -- Original Message -- > From: &q

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
. I look forward for an ODBC API, but at least to read any other data source, this seems to work pretty well. I already sent a pull-request. Esteban A. Maringolo On Wed, Mar 11, 2020 at 3:31 PM Esteban Maringolo wrote: > > The profiling using the recordset was even worst. I chang

Re: [Pharo-users] Generate class hierarchy from JSON Schema

2020-03-11 Thread Esteban Maringolo
Follow up. Seems that playing with these COM/ADO objects in the playground messes with the VM; so I'm getting weird image crashes, where the image closes without any notice. Do you experience the same? Esteban A. Maringolo On Wed, Mar 11, 2020 at 4:11 PM Esteban Maringolo wrote: >

Re: [Pharo-users] Any existing RDF implementation in Pharo?

2020-03-16 Thread Esteban Maringolo
Hi Juraj, There is an RDF project in Cincom's Public Repository for VW. And there it seems somebody was wanting to migrate it to Pharo since there is a "RDF fileout Pharo" package whose first version says: --- Blessed: Work In Progress --- By: chaider --- On 25/08/2019 08:20:42 started the RDF t

Re: [Pharo-users] How should XMLHTMLParser handle strange HTML?

2020-04-02 Thread Esteban Maringolo
Hi Peter, Just in case it helps you parsing the files... I had to parse HTML with a XMLParser (no XMLHTMLParser) so what I did was to pass it first through html tidy [1] converting it to xhtml which is compatible with XML parsers (it is XML, after all). Regards, [1] http://www.html-tidy.org/

Re: [Pharo-users] [Pharo-dev] Cover for PBE8

2020-04-07 Thread Esteban Maringolo
There is also Pixabay: https://pixabay.com/images/search/lighthouse/ Regards! Esteban A. Maringolo On Tue, Apr 7, 2020 at 11:18 AM Torsten Bergmann wrote: > > For free pictures I guess one could use: > >https://unsplash.com/about >https://www.pexels.com > > If you check there for "ligh

Re: [Pharo-users] [Pharo-dev] [SPAM] Re: [ANN] Pharo Launcher 2.0 released!

2020-04-18 Thread Esteban Maringolo
Thanks, I will check it as soon as Pharo.org gets back online! [1] https://downforeveryoneorjustme.com/pharo.org Esteban A. Maringolo On Sat, Apr 18, 2020 at 10:48 AM Christophe Demarey wrote: > > Hi Graham, > > > Le 18 avr. 2020 à 11:30, Graham McLeod a écrit : > > Hi > > This looks like a ma

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

2020-05-03 Thread Esteban Maringolo
Excellent Torsten! I guess it will not work in Pharo 8 because of the Spec 2 requirement. Right? Regards! Esteban A. Maringolo On Sat, May 2, 2020 at 5:35 PM Torsten Bergmann wrote: > > Hi, > > time flows and Pharo-Project is improving on all ends since its inception in > 2008. As you know ov

[Pharo-users] Preserving Pharo Window state between sessions

2020-05-05 Thread Esteban Maringolo
Is there a way to preserve the window state after saving the image on quit and restarting it again? If I save my image window maximized I would like it to be maximized when starting again. Having it otherwise can be annoying when moving from different screen resolutions, because a 1920x1080 maxim

Re: [Pharo-users] [ANN] What are good reasons to use Smalltalk?

2020-05-15 Thread Esteban Maringolo
I don't know what is behind the poll system, but it doesn't work in Brave browser. It simply says "Thanks for participating in the poll." I find the questions confusing though. Esteban A. Maringolo On Wed, May 13, 2020 at 4:43 PM Richard Kenneth Eng wrote: > > https://smalltalk.tech.blog/2020/0

Re: [Pharo-users] [ANN] What are good reasons to use Smalltalk?

2020-05-21 Thread Esteban Maringolo
On Thu, May 21, 2020 at 10:37 AM Vitor Medina Cruz wrote: > > Richard > > "The browsers are *way* more compatible than Smalltalk systems are." > > How so? You can have a webpage, or even a web application (JS) and it will run exactly the same on all major, modern, web-browsers (Chromium, Safari a

Re: [Pharo-users] [ANN] What are good reasons to use Smalltalk?

2020-05-21 Thread Esteban Maringolo
On Thu, May 21, 2020 at 11:34 AM Vitor Medina Cruz wrote: > Sorry, I mean how so are Smalltalk systems less compatible than web browsers > are? Different dialects have different features (e.g. Namespaces, Traits), syntax, image format... Smalltalk is a concept, with Smalltalk-80 as the canonica

Re: [Pharo-users] Willow-Seaside serving static files

2020-06-14 Thread Esteban Maringolo
The handler at /files (WAFileManager?), is set to explicitly forbid listing of files. El dom., 14 de junio de 2020 07:33, Tomaž Turk escribió: > Hi, I added an image to a subclass of WAFileLibrary to serve it as a > static file from within Pharo. Everything seems fine, except that the > /files U

Re: [Pharo-users] [Pharo-dev] [ANN] PharoPro

2020-06-17 Thread Esteban Maringolo
Hi Norbert, Congratulations for the initiative! I look forward to your success. Best regards! Esteban A. Maringolo On Wed, Jun 17, 2020 at 5:35 AM Norbert Hartl wrote: > > Dear community, > > we are very proud to announce the availability of PharoPro, a company that > offers professional sup

Re: [Pharo-users] a simple question (I think)

2020-06-17 Thread Esteban Maringolo
Objects interact with each other by sending messages, although you can get the sender by using reflection (thisContext sender), it is not a common practice to do so. So if you need another object to know the sender (or any other object) you simply pass it as a parameter. So modifying your example,

Re: [Pharo-users] [ANN] What are reasons NOT to use Smalltalk?

2020-06-19 Thread Esteban Maringolo
In my case it didn't let me vote at all, it assumed I already voted. I started a private tab, disabled tracking (it tracks a lot for a single post), and then saw the options, and there wasn't a "none of the above/other" kind of option. So I didn't vote. Esteban A. Maringolo On Fri, Jun 19, 2020

Re: [Pharo-users] STON question

2020-07-01 Thread Esteban Maringolo
Thank you Sven! This is really convenient. SortFunctions are really cool. Esteban A. Maringolo On Tue, Jun 30, 2020 at 6:06 PM Sven Van Caekenberghe wrote: > > Hi Stef, > > With the following commit > https://github.com/svenvc/ston/commit/3565d388172b76c180454575d4c2f71019f130c4 > > there is n

Re: [Pharo-users] STON question

2020-07-02 Thread Esteban Maringolo
On Thu, Jul 2, 2020 at 11:46 AM Sean P. DeNigris wrote: > > Sven Van Caekenberghe-2 wrote > > there is now basic support for SortCollections using SortFunctions. > > Cool! This would be great to have in Fuel as well. There is a slow and > steady stream of users running into trouble trying to seria

Re: [Pharo-users] Class side vs instance side (variables and methods)

2020-07-28 Thread Esteban Maringolo
Hi, The "class vs instance" side is one of the most confusing things for newcomers, I remember struggling with it when I learnt Smalltalk (and also was a novice in OOP). It helps you thinking it this way: the instance side is everything that will affect all instances of such class, and you can th

[Pharo-users] Extract-method refactoring erratic behavior in Pharo 8

2020-07-31 Thread Esteban Maringolo
Hi, I get, more often than not, a message indicating an "invalid source to extract", commonly with the "End of statement list encountered" explanation. In comparison, I can extract the same code in Pharo 4. Is there a reason why the "Extract method" refactoring is not working in Pharo 8 as it was

[Pharo-users] SmalltalkHub is offline

2020-08-01 Thread Esteban Maringolo
Hi people, SmalltalkHub has been down for a while. https://downforeveryoneorjustme.com/smalltalkhub.com I don't know if there was a planned downtime or something crashed. Thanks! Esteban A. Maringolo

  1   2   3   >