Re: [Pharo-users] Few newbie questoins about Pharo/Smalltalk capabilities

2020-06-08 Thread webwarrior
Well, one thing that might disappoint you in Pharo is UI libraries. You'd assume that system that has UI as integral part and relies on it would have excellent UI framework, but sadly that's not the case. Old framework - Morphic - is outdated; it's buggy, poorly documented, and its code is convolut

Re: [Pharo-users] [GSoC blog post] Binary Search Trees

2019-07-10 Thread webwarrior
Smiljana Knezev wrote > Dear all, > > I've written about implementing binary search trees: > https://pharokeepers.github.io/pharo/2019/07/07/SmiljanaBinarySearchTreeinPharo.html > > Feedback and opinions is always welcome :) > > Best regards, > Smiljana Knezev Your implementation is unnecesaril

Re: [Pharo-users] Slots doc

2019-02-04 Thread webwarrior
Vitor Medina Cruz wrote > Thanks, I had already read this paper, which got me interested in the > concept of slots :) . Is it a prototype in Pharo or is ready to use? it > will become as an official part of it? > > > On Sun, Feb 3, 2019 at 10:13 AM Ben Coman < > btc@ > > wrote: > >> >> >> On S

Re: [Pharo-users] Examples of bad code

2018-11-12 Thread webwarrior
In old Pharo code (Morphic, etc.) there's a lot of wierd stuff. My favourite is DockingBarMorph>>#predominantDockingBarsOfChastes: Though it explains what "predominant" means in a long comment, it's absolutely unclear what the heck "chaste" is. -- Sent from: http://forum.world.st/Pharo-Smallt

Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-13 Thread webwarrior
6.1 on Windows 10. Since that report, I have seen it very > rarely. Most recently I found that the Pharo window appearance was > distorted - wrong font size etc - but I did not see the debug console > error message. > > Advice to Webwarrior - reboot machine and see if it goes away. &g

[Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-12 Thread webwarrior
LoadLibrary(FT2Plugin.dll) (998: Invalid access to memory location. ) Windows 10. Win32 built on May 31 2017 03:09:04 GMT Compiler: 5.4.0 VMMaker versionString VM: 201705310241 Tried latest stable VM - same error. Pharo 7 works normally. -- Sent from: http://forum.world.st/Pharo-Smalltalk-U

Re: [Pharo-users] Request for Windows test

2018-07-11 Thread webwarrior
Windows finds DrGeo.exe suspicious. I guess the problem will disappear when enough users have launched it. But it's usable anyway, you just have to click through the annoying dialog. -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] #ast vs. #parseTree

2018-05-09 Thread webwarrior
Richard O'Keefe wrote > First, my message was *defending* most of the short names > that someone else was attacking. For the record, I am > *far* more worried about the fragility of typical Smalltalk > code than I am about method names, which are generally > pretty good. > > ... If by "someone e

Re: [Pharo-users] #ast vs. #parseTree

2018-05-07 Thread webwarrior
If you guys are to get rid of acronyms in method names, cosider the following: #onDNU:do: #gcd: #lcm: #rem: #quo: #ulp #ln #theta #r #g #b and others. Then if you get bored again there are a lot of contractions, too, especially in Number and subclasses. Like #abs, #sqrt, #sin, #cos, ... -- Se

Re: [Pharo-users] Behold Pharo: The Modern Smalltalk

2017-10-10 Thread webwarrior
Calm your tits, dude. No need to use Caps Lock that much :-) I made no value judgements in my post, letting readers decide for themselves. Nor did I attribute any claims to you. Except "live coding in Python is easy", which you did say in some earlier posts. > My post were not made to pick a figh

Re: [Pharo-users] Behold Pharo: The Modern Smalltalk

2017-10-09 Thread webwarrior
kilon.alios wrote > Care to explain what difficulty you experienced in live coding with > Python. > Or what Pharo can do that Python can’t live code wise ? Maybe I will learn > something. It's funny that one of main reasons why I discovered and started using Pharo was failure to get live coding wo

Re: [Pharo-users] [ANN] VistaCursor now scalable

2017-08-15 Thread webwarrior
Torsten Bergmann wrote > Hi, > > Mike Davis asked about changing the cursor size as he runs Pharo with > Windows 10 on a Microsoft Surface > @ 2736 x 1824 dpi. He discussed on Discord and said that all of the > display is well scaled, except the mouse > cursor which is too small for him. > > As

Re: [Pharo-users] FLSerializer in Pharo 6.1

2017-08-11 Thread webwarrior
jb wrote > Hi everyone, > > the FLSerializer in Pharo 6.1 doesn’t work. I tried the example from the > class comment and I always get > > FileException: cannot open file: example.FL. > > Is that a known problem? > > Johannes Probably that's because you don't have write permission in working d

Re: [Pharo-users] Playground and Dr. Geo

2017-07-22 Thread webwarrior
HilaireFernandes wrote > ... > > >> also >> see: >> https://pharo.fogbugz.com/f/cases/15927/Menu-is-broken-when-contained-in-a-scrollable-pane >> >> > Looks to be the same. But issue was closed so it should be ok, may be an > unrelated problem. > > > Hilaire > > -- > Dr. Geo > http://drgeo.eu

Re: [Pharo-users] Saving to local git and "Loading all file names from http://...pharo5/inbox"

2017-06-17 Thread webwarrior
Well, that is the question to the author of original script - Peter Uhnak. The goal is to avoid contacting server (takes alot of time and blocks the image) every time you save a package to a filetree repo. As I understand repositories in question are kind of special and are always checked, so remo

Re: [Pharo-users] Saving to local git and "Loading all file names from http://...pharo5/inbox"

2017-06-16 Thread webwarrior
Updated script for Pharo6: StartupPreferencesLoader default executeAtomicItems: { StartupAction name: 'remove references to Pharo60 and Pharo60Inbox' code: [ |rx group| rx := '([0-9]{5})' asRegex. (rx matchesPrefix: Smalltalk image shortImageName) ifFalse:

Re: [Pharo-users] Spec way to embed something into Scrollable Wrapper

2017-03-12 Thread webwarrior
Nevermind, actually its both (vertical and horizontal) scrolling -- View this message in context: http://forum.world.st/Spec-way-to-embed-something-into-Scrollable-Wrapper-tp4938250p4938306.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Spec way to embed something into Scrollable Wrapper

2017-03-12 Thread webwarrior
Here's my widget (Spec model + adapter): spec_widget_list.zip . Vertical scroll only. -- View this message in context: http://forum.world.st/Spec-way-to-embed-something-into-Scrollable-Wrapper-tp4938250p4938296.html Sent from the Phar

Re: [Pharo-users] Code loading/unloading order

2017-01-26 Thread webwarrior
Thanks. Reason why I ask is because I ran into some issues with slots that depended on other classes in the package (when creating slot, like SomeSlot new valueClass: SomeOtherClass). I had to move slots into separate package to make it work. Like when you work on your code it's all good, but the

[Pharo-users] Code loading/unloading order

2017-01-24 Thread webwarrior
It is not documented. What happens when I load a package? Are all classes created first, and then methods are added, or classes are loaded one-by-one with all their methods? What about Slots? Are they added to classes after all classes are loaded? Do they have their methods by that time? What is o

Re: [Pharo-users] I'd really love to use Pharo this way

2017-01-24 Thread webwarrior
No, Eve is not "attempt to bring Literate Programming to the masses". It is an attempt at making programming daily tasks and small tools a lot simpler and easier, expecially for non-programmers (scientists, analysts, etc.). It took many forms in the past, including visual coding, Excel-like tables

Re: [Pharo-users] manipulating strings

2016-08-11 Thread webwarrior
Why not use standard collection API? 'Uquillas G\''{o}mez' reject: [ :c | #($\ ${ $} $' $`) includes: c ] thenCollect: #asLowercase -- View this message in context: http://forum.world.st/manipulating-strings-tp4910349p4910451.html Sent from the Pharo Smalltalk Users mailing list archive at Nab

Re: [Pharo-users] Block that doesn't leak memory

2015-12-29 Thread webwarrior
I've looked at implementation of cleanCopy. It removes sender, but my problem is with receiver. However I wrote similar set of methods that also set receiver to nil. Seems to work fine, in debugger such blocks are seen as defined in DoIt. On 29.12.2015 3:42, Mariano Martinez Peck [via Smalltal

[Pharo-users] Block that doesn't leak memory

2015-12-26 Thread webwarrior
BlockClosure objects hold reference to object that created them via outerContext receiver. This can cause memory leaks when moving blocks around/deepcopying/serializing. Is there a way to get "lightweight" block that has empty outerContext (like when executing code in Playground) or is there anoth

Re: [Pharo-users] Spec: Binding widgets how to

2015-11-26 Thread webwarrior
Try #whenHighlightedItemChanged: method. I remember that distinction between selection/highlight is not very clear in TreeModel. -- View this message in context: http://forum.world.st/Spec-Binding-widgets-how-to-tp4863742p4863757.html Sent from the Pharo Smalltalk Users mailing list archive at

Re: [Pharo-users] editable droplist

2015-11-18 Thread webwarrior
EditableDropListMorph. Although it doesn't show suggested options when you type in the field like you would expect from this type of control. -- View this message in context: http://forum.world.st/editable-droplist-tp4861846p4861853.html Sent from the Pharo Smalltalk Users mailing list archive

Re: [Pharo-users] Customised auto-completion to give priority to specific packages

2015-08-19 Thread webwarrior
I have interest in customized auto-completion. It would be also cool if it was possible to assign customized auto-completion to some instvars/arguments (for example based on knowlege about what their type is expected to be). -- View this message in context: http://forum.world.st/Customised-aut

Re: [Pharo-users] Comparison for SequencableCollection

2015-08-03 Thread webwarrior
We're drifting too much into philosophy here. Meaning of this, meaning of that... I'd argue there is no intrinsic meaning in statements such as "string A is less than string B". But it is useful to have order defined on set of words and character strings in general. Lexicographic order has some

Re: [Pharo-users] Comparison for SequencableCollection

2015-08-02 Thread webwarrior
Your use case (comparing containers using pluggable comparison for items) is pretty common. And what I was suggesting won't solve that problem. However, it will make sequencable collections with comparable items comparable. That's it. If we have comparison defined for Point, why not have it fo

Re: [Pharo-users] Comparison for SequencableCollection

2015-08-02 Thread webwarrior
On 02.08.2015 19:02, Peter Uhnák [via Smalltalk] wrote: > (a b c) = (b a c) if a = b > > (a b c) < (b a c) if a < b > The semantics are well defined. > > > Since you mentioned JavaScript, you should know that you can't compare > arrays with ==, because it does object comparison. > >

Re: [Pharo-users] Comparison for SequencableCollection

2015-08-02 Thread webwarrior
No. Sorted collection maintains order of its elements, and I'm talking about order on [the set of] sequencable collections On 02.08.2015 15:46, jtuchel [via Smalltalk] wrote: > Am 02.08.15 um 14:11 schrieb webwarrior: > > I was surprised when discovered that in Pharo comparison is

Re: [Pharo-users] Comparison for SequencableCollection

2015-08-02 Thread webwarrior
something is extremely easy to do in Smalltalk. We can easily make bad > mistakes, just because we can. > > Just my 2 cents > > Joachim > > Am 02.08.15 um 14:11 schrieb webwarrior: > > > I was surprised when discovered that in Pharo comparison is not > defined for &

[Pharo-users] Comparison for SequencableCollection

2015-08-02 Thread webwarrior
I was surprised when discovered that in Pharo comparison is not defined for lists, arrays and similar datastructures. Because in almost every programming language (F#, Python, Javascript just to name few) you can compare lists, arrays, etc. By convention, the ordering is lexicographical, just like

Re: [Pharo-users] Spec TreeModel dynamic contents

2015-05-21 Thread webwarrior
Actually, I may be using slightly newer version of Spec straight from github repository -- View this message in context: http://forum.world.st/Spec-TreeModel-dynamic-contents-tp4827440p4827820.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Spec TreeModel dynamic contents

2015-05-21 Thread webwarrior
version 30854 On 21.05.2015 14:16, Nicolai Hess [via Smalltalk] wrote: > > > 2015-05-21 13:05 GMT+02:00 webwarrior <[hidden email] > >: > > Using lots of trial and error, I finally found a solution. Or, > rather a hack. > > In Pharo 3: > Just

Re: [Pharo-users] Spec TreeModel dynamic contents

2015-05-21 Thread webwarrior
Using lots of trial and error, I finally found a solution. Or, rather a hack. In Pharo 3: Just set autoRefreshOnExpand to true, and then when there is need for update, do: self widget treeModel updateList In Pharo 4: For some reason autoRefreshOnExpand was removed, and now we also have to manual

[Pharo-users] Spec TreeModel dynamic contents

2015-05-19 Thread webwarrior
I want to make a tree using TreeModel that reacts to changes in underlying data - when an item changes, tree node for that item should update its state (recompute its children, etc.). Rebuilding the whole tree is ok, as long as selections and collapsed/expanded state of nodes are preserved. Using

[Pharo-users] Confusing ZeroDivide

2015-03-20 Thread webwarrior
Why this: [ 1/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ]. returns 1, but this: [ 1.0/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ]. hangs (causes infinite loop) ? -- View this message in context: http://forum.world.st/Confusing-ZeroDivide-tp4813627.html Sent from the Pharo Smalltalk Users mai

Re: [Pharo-users] Unintuitive behavior of class-side initialize

2014-08-27 Thread webwarrior
y class variables inside other methods. This way > I avoided the creation of an initialise method, and probably i will > avoid using it in the future too. From what I see most classes > (metaclasses) dont use an initialise method either. > > > On Wed, Aug 27, 2014 at 7:33 PM,

Re: [Pharo-users] Unintuitive behavior of class-side initialize

2014-08-27 Thread webwarrior
class-side initialize. I don't think it can be considered a metaprogramming in Smalltalk. In Python, yes, messing with metaclass is metaprogramming. But things are a bit different there and metaclasses are very rarely used [explicitly]. 27.08.2014 19:05, kilon.alios [via Smalltalk] написав(ла):

Re: [Pharo-users] Unintuitive behavior of class-side initialize

2014-08-27 Thread webwarrior
the year. > > > On Wed, Aug 27, 2014 at 3:44 PM, Mariano Martinez Peck <[hidden email] > > wrote: > > > > > On Wed, Aug 27, 2014 at 8:22 AM, webwarrior <[hidden email] > > wrote: > > As class is just an object in Smalltalk, it would

[Pharo-users] Unintuitive behavior of class-side initialize

2014-08-27 Thread webwarrior
As class is just an object in Smalltalk, it would be reasonable to believe that #initialize message is always sent to class on creation. However, that's not true. It is only sent to classes that redefine #initialize. Also sending super initialize may lead to problems. None of these is mentioned i

Re: [Pharo-users] Custom layout in Spec

2014-06-16 Thread webwarrior
>> Wasn't that hard, beacuse actual layouting *is* done in Morphic. > > It is not. That’s exactly why SpecLayoutFrame exists by example. > > You can convert Spec layout into morphic layout to use in the case of > Morphic but this is decoupled. Now I see what you mean. But my aim was to make a lay

Re: [Pharo-users] Custom layout in Spec

2014-06-13 Thread webwarrior
I implemented SpecTableLayout, which uses TableLayout policy. Wasn't that hard, beacuse actual layouting *is* done in Morphic. Interface of SpecTableLayout is somewhat similar to SpecLayout. All table layout options are supported (see http://wiki.squeak.org/squeak/2340). One thing that is not par

Re: [Pharo-users] Custom layout in Spec

2014-06-08 Thread webwarrior
My main requirements are such that container respects sizes and resizing behaviour (hResizing, vResizing) of its child elements. Proportional layout doesn't allow that. And yes, I've read Spec documentation and some Morphic documentation. -- View this message in context: http://forum.world.s

[Pharo-users] Custom layout in Spec

2014-06-08 Thread webwarrior
I want to make a layout based on TableLayout. Taking SpecLayout as example, it seems that I also have to create model class similar to ContainerModel and adapter for it. However, I noticed that SpecInterpreter has some hardcoded behaviour for ContainerModel in computeSpecFrom:selector: method. Is

Re: [Pharo-users] Slots

2014-05-17 Thread webwarrior
So Pharo 3 is out, slots are listed in changelog, but how to use them? Any examples (those in paper don't work)? -- View this message in context: http://forum.world.st/Slots-tp4679183p4759385.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.