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

2022-04-05 Thread Kasper Østerbye
ano, > Evelyn Cusi Lopez, Ezequiel R. Aguerre, Gabriel Omar Cotelli, Geraldine > Galindo, Giovanni Corriga, Guille Polito, Himanshu, Jan Bliznicenko, Jaromir > Matas, Kasper Østerbye, Kausthub Thekke Madathil, Konrad Hinsen, Kurt > Kilpela, Luz Paz, Marco Rimoldi, Marcus Denker, Martín Di

[Pharo-users] Re: The orange 'content modified' indicator

2022-03-03 Thread Kasper Østerbye
Agrees with Robert > Den 3. mar. 2022 kl. 16.59 skrev Robert Briggs via Pharo-users > : > >  > Hi Esteban > > Thankyou for responding. > > You say it’s a very bad way to show something is “dirty” yet Pharo continues > to use it in the System Browser and elsewhere. Also from my

[Pharo-users] Re: possible dates for Pharo Days 2022 :)

2021-10-07 Thread Kasper Østerbye
If I can make it, the early days in March are OK, 10-11 is maybe (lambs could come at that time ) > Den 7. okt. 2021 kl. 12.34 skrev stephane ducasse : > > Hello guys > > We are super excited because we want to organise PharoDays at Lille > We are checking some possible dates and we would

Re: [Pharo-users] Class hierarchy diagram

2020-05-31 Thread Kasper Østerbye
I believe the browser can do that out of the box. Look below the four panes, above the code, and there is a hierarchical view option. > Den 31. maj 2020 kl. 16.30 skrev Sanjay Minni : > > Is there any way to display the Class Hierarchy as a Diagram or a indented > list. Even for all the

Re: [Pharo-users] Dictionary removeKey: very low performance

2020-02-10 Thread Kasper Østerbye
Hi RIchard, On 9 February 2020 at 17.54.30, Richard O'Keefe (rao...@gmail.com) wrote: My library uses separate chaining (https://en.wikipedia.org/wiki/Hash_table#Separate_chaining) which makes deletion simple and fast and allows 'null' keys. Does your implementation use a fixed number of

Re: [Pharo-users] Dictionary removeKey: very low

2020-02-07 Thread Kasper Østerbye
This is actually a very good issue you have raised. As far as I am able to read the code for Dictionary and HashedCollection, the implementation is not very well suited for deletions at all. First, as you have discovered, the remove has an implementation which is unsound (performance wise).

Re: [Pharo-users] Pharo image processing library

2020-02-05 Thread Kasper Østerbye
Cool! I like that readme. Best, Kasper On 6 February 2020 at 03.26.05, Pablo Navarro (pablo...@gmail.com) wrote: Hi everyone I put available my code for Image Form in GitHub ( https://github.com/pablo1n7/ImageForm). This afternoon, I did the operations with kernels :D. It's not 100%

[Pharo-users] StringSlice

2020-02-04 Thread Kasper Østerbye
Hi, I was working on parsing longer texts, and my program was extracting substrings which sometimes were rather large. Not that it actually caused any problems, but it kind of hurt my feel for good code to do that. It has most surely been done before, but here it is again then, string slices.

Re: [Pharo-users] Migration from Spec to Spec2

2020-01-29 Thread Kasper Østerbye
Thanks for all the feedback on zebra stribes. What I meant as the learning experience was not so much the stribes themselves, but the fact that I could not find them. The reason I could not find them is because they are not there. I knew that Spec2 is not completely done, so I am not surprised

[Pharo-users] Migration from Spec to Spec2

2020-01-24 Thread Kasper Østerbye
Cheers all, There was a mail about Spec2 documentation on this list in the last few days. I had a Spec program, and wanted to see how to migrate it to Spec2. The before and after is the master and the Spec2Migration branches of: https://github.com/kasperosterbye/ovina I decided to write down an

Re: [Pharo-users] spec 2 documentation

2020-01-24 Thread Kasper Østerbye
Hi Just to make sure - you guys know about the class SpDemo (part of the image), it has examples of a lot of things. It is seriously a treasure trove of how-to. Best, Kasper

Re: [Pharo-users] Pharo Quality Rules for Beginners

2020-01-16 Thread Kasper Østerbye
On 16 January 2020 at 14.20.03, Ben Coman (b...@openinworld.com) wrote: An error message like "Blah doesn't understand self" is a bit complex for a beginner to decipher. I would like to second this one! If you want to have *beginners mode*, I think you need to include run-time aspects as well

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

2020-01-10 Thread Kasper Østerbye
After having read this thread, I would like to add an other comment Richard. It is really super that you are evangelising smalltalk and pharo. The technology is truly worth it. And I should not try to take away your enthusiasm. Best, Kasper On 9 January 2020 at 17.07.25, Richard Kenneth Eng (

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

2020-01-09 Thread Kasper Østerbye
This rant states once again that in Smalltalk everything is an object. Alas, it is not (but should). This is a shortlist of things which is currently not objects in smalltalk: * Message categories * Class categories (there is something called packages, which is rather useful as they are actually

Re: [Pharo-users] Code overview - or maybe not

2020-01-07 Thread Kasper Østerbye
some Visio templates a few years ago, but they're all now requiring too many clicks when you're used to PlantUML). Plus, PlantUML also supports many other formats (including DOT, just put @startdot/@enddot). On Fri, 20 Dec 2019 at 14:31, Kasper Østerbye wrote: > On 20 December 2019 at 19.59.

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

2020-01-03 Thread Kasper Østerbye
Just while we are at the notion of markdowns, I have at https://github.com/kasperosterbye/PillarRichTextRender a first build of a pharo based github markdown to pillar. From pillar you can go to html. But just to prove the point of the strength of importing working software from outside using

Re: [Pharo-users] uses or instead of a searching literal

2019-12-28 Thread Kasper Østerbye
Are you aware of the ‘finder’ tool?, in particular the ‘examples' mode is useful. try: ‘aaa_bbb-ccc’. ‘_-‘. #(‘aaa’ ‘bbb’ ‘ccc’) Best, Kasper On 28 December 2019 at 08.12.03, Roelof Wobben via Pharo-users ( pharo-users@lists.pharo.org) wrote: Op 27-12-2019 om 23:33 schreef Richard O'Keefe: >

Re: [Pharo-users] can I write this without the three if then;s

2019-12-27 Thread Kasper Østerbye
Hi First, I think your code is readable and easy to understand. I think the problem does not lend itself too much towards having “an object oriented solution”, as such. If you are looking for a one-liner using smalltalk libraries, you could do: ({10 -> 0. 5 -> 1. 1 -> 5. 0 -> 10} detect: [

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

2019-12-23 Thread Kasper Østerbye
On 23 December 2019 at 01.31.00, Ronie Salgado (ronies...@gmail.com) wrote: P.S: A bigger problem that I remember from that ESUG discussion is having namespaced/modularized selectors and extension methods. :) Was there ever any reasonable solution/proposal to that issue ? Best, Kasper

Re: [Pharo-users] Code overview - or maybe not

2019-12-20 Thread Kasper Østerbye
On 20 December 2019 at 19.59.05, tbrunz (wild.id...@gmail.com) wrote: What I would find useful (and what I think Kasper has started down the road to) is the ability to generate PlantUML script from a specified (set of) packages or classes in Pharo. That would make it easy not only to examine the

Re: [Pharo-users] Code overview - or maybe not

2019-12-19 Thread Kasper Østerbye
My issue with the background color was how to make a TextAttribute to set the background color of individual characters, not the overall background of the text. I succeeded, and Pharo 8 has a background text attribute - at least using Rubric - see https://github.com/pharo-project/pharo/pull/5326

Re: [Pharo-users] Code overview - or maybe not

2019-12-19 Thread Kasper Østerbye
Do you know https://github.com/fuhrmanator/PlantUMLPharoGizmo ? Norbert Indeed I know that tool, I actually base my stuff on the transformation Furhman makes in that program, only I did not use the whole tool, but just the source to url part. On 19 December 2019 at 19.15.39, tbrunz

[Pharo-users] Ring, Athena, Rubric, Calypso, Morphic, Block,…

2019-12-05 Thread Kasper Østerbye
Cheers I was wondering if there is somewhere all these subparts of Pharo are listed, and if it is also listed (and maintained) which ones are on their way out, and which are being updated and to what. I still find it truly baffling. What I am looking for is a list somewhat like this: * Ring

[Pharo-users] Presenter initialization

2019-11-14 Thread Kasper Østerbye
Cheers, I want to make a Spec Presenter which can show rendered pillar. I have the necessary code to transform a pillar string document into Text with fonts and stuff. My problem is how to make the Presenter. To get moving I did not want to make a wysiwyg editor, but a simple two-mode thing. It

[Pharo-users] Rubric architecture

2019-10-24 Thread Kasper Østerbye
Cheers, Is there any documentation about the architecture of Rubric? At the moment I feel like I am up to my ears in Editor, EditingModes, EditingStates, Areas, the occasional morphs, Paragraphs etc. Besides, I am not even sure I should be looking at Rubric. RubAbstractTextArea>>class comment:

Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Kasper Østerbye
On 21 October 2019 at 21.44.49, Norbert Hartl (norb...@hartl.name) wrote: I started to use Rubric as text editing component. With this I started to add text attributes for wysiwyg editing. In a basic attempt I wrote a converter from text attributes to pillar markup. The text with pillar markup is

Re: [Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Kasper Østerbye
On 21 October 2019 at 18.53.24, Norbert Hartl (norb...@hartl.name) wrote: Looking at the code it seems that there is just a pillar to text conversikn. Yes, I only go from pillar to Text (not just String). Do you have plans to go from text to pillar as well? Your question confuses me :-) -

Re: [Pharo-users] Pillar in-image rendering (was: String concatenation vs. Stream)

2019-10-21 Thread Kasper Østerbye
On 21 October 2019 at 16.17.49, Guillermo Polito (guillermopol...@gmail.com) wrote: What if instead of putting tables into text you put text into tables ;). In other words, think both text and tables as renderable elements (cof cof morphs). Then, since we can make a morph from a text, and a table

[Pharo-users] Pillar in-image rendering as RichText

2019-10-21 Thread Kasper Østerbye
Cheers, Rendering the Pillar markup inside the Pharo image This is work in (early) progress, but I think it is far enough for a "technology preview". Goal of the project The goal of the project is

Re: [Pharo-users] Pillar in-image rendering (was: String concatenation vs. Stream)

2019-10-20 Thread Kasper Østerbye
On 20 October 2019 at 09.11.06, Pierce Ng (pie...@samadhiweb.com) wrote: On Sat, Oct 19, 2019 at 04:39:21AM -0700, Kasper Østerbye wrote: > I am currently working on a github markdown -> pillar tree (the internal > rep of pillar). I estimate I am a few days out from that one. Are

[Pharo-users] Pillar in-image rendering (was: String concatenation vs. Stream)

2019-10-19 Thread Kasper Østerbye
On 19 October 2019 at 10.51.53, Norbert Hartl (norb...@hartl.name) wrote: Am 18.10.2019 um 11:33 schrieb Kasper Østerbye : I am working on a pillar to `Text` generator. Here I found concatenation to be simpler to handle as I can add bold, italics, indentation, etc. in a much simpler way. To use

Re: [Pharo-users] String concatenation vs. Stream

2019-10-18 Thread Kasper Østerbye
On 18 October 2019 at 08.00.13, Richard O'Keefe (rao...@gmail.com) wrote: When is it pointless to introduce a WriteStream and just use #, ? When #, would not be in a loop or recursion. Constructing error messages, class initialisation code, that sort of thing. If you find yourself doing a lot of

[Pharo-users] String concatenation vs. Stream

2019-10-17 Thread Kasper Østerbye
This is an old one, and I knew of cause that one should not use #, when you can use streams instead. But that is was this bad to use #, came as a surprise I must say Best, Kasper

[Pharo-users] Pharo and new MacOS Catalina

2019-10-08 Thread Kasper Østerbye
Cheers, Have there been any problems with running Pharo on the new MacOS Catelina (10.15)?

Re: [Pharo-users] Test method auto-generation in Calypso

2019-10-04 Thread Kasper Østerbye
On 4 October 2019 at 12.39.56, Norbert Hartl (norb...@hartl.name) wrote: I read so many explanations how you can do stuff with mouse, cmd click ir whatever. How can I figure out that on my own? If it is hidden it is pretty useless. 

Re: [Pharo-users] Test method auto-generation in Calypso

2019-10-04 Thread Kasper Østerbye
On 4 October 2019 at 10.09.25, Denis Kudriashov (dionisi...@gmail.com) wrote: On the MacOS it is done by cmd+click on the tab header. You are my hero of the day!!!

Re: [Pharo-users] Test method auto-generation in Calypso

2019-10-04 Thread Kasper Østerbye
I clearly understand your issue of having ways to show more code on the screen (at least that is how I interpret the issue). Here are a few tricks I only learned recently, and which has helped me live with what is in the standard image. Double clicking on a code tab maximises the code window,

Re: [Pharo-users] R: Code of Conduct

2019-09-18 Thread Kasper Østerbye
When I read the Code of conduct which is part of Pharo, my reaction was "OK, I don't expect to run into trouble over that one, so no worries". After having read the discussion here I would rather it was not there. -- Kasper

[Pharo-users] The most upvoted stackoverflow question - also holds for Pharo

2019-09-11 Thread Kasper Østerbye
The most upvoted question/answer on stackoverflow is this one: https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array/11227902#11227902 I wanted to see if the results could be reproduced in Pharo, and indeed they can (though I only

Re: [Pharo-users] Set >> collect:thenDo:

2019-09-08 Thread Kasper Østerbye
The first version: (#(1 2 3) asSet collect: #odd) do: [ :each | Transcript show: each; cr ] is rather straight forward I believe, as collect: and do: has been around forever (relatively speaking). #(1 2 3) asSet collect: #odd thenDo: [ :each | Transcript show: each; cr ] On 8 September 2019

Re: [Pharo-users] Set >> collect:thenDo:

2019-09-08 Thread Kasper Østerbye
Feature! collect: forms a new collection of the same kind as its receiver. In this case a set. As the result of your collect: #(1 2 3) asSet collect: #odd) is booleans, the resulting set will contain only to elements (the duplicate odd resulting in true is removed). collect: thenDo: applies the

Re: [Pharo-users] SequenceableCollection>>#allButFirst: inconsistence across subclasses

2019-09-02 Thread Kasper Østerbye
This is actually an intersting discussion. There are several levels to it. 1. Should Pharo be compatible with a standard from 1998? 2. What is the general view on using exceptions in Pharo? 3. What should allButFirst: do? Ad 1) I am relatively new to Pharo, If backwards compatibility is

Re: [Pharo-users] SequenceableCollection>>#allButFirst: inconsistence across subclasses

2019-08-30 Thread Kasper Østerbye
I always like to find a way not to make the choice. #(1 2) allButFirst: 3 ifInsufficient: […] allButFirst: N ^self allButFirst: N ifInsufficent: [ “fight about this"]. — Kasper On 30 August 2019 at 12.28.14, Cyril Ferlicot (cyril.ferli...@gmail.com) wrote: On Fri 30 Aug 2019 at 09:34,

Re: [Pharo-users] [ANN] Iterators

2019-08-23 Thread Kasper Østerbye
Hi This is supercool! I had been wondering myself of the lack of such a library. The Xtreams seem to be a bit related, but they focus on IO more that map/reduce programming. I am intrigued by your choice of argument-less methods (reduceIt, collectIt,…). I would most likely have opted for a