Tee hee, cool beans guys :)
Niko
On Tue, Nov 10, 2009 at 6:32 PM, Stéphane Ducasse
wrote:
> It is a pearl!
> may be a joke for geek but I love it.
>
> STef
>> ((Project class parseTreeFor: #mostRecent:onServer:) allChildren
>> reject: [ :each | each isVariable ])
>> asBag sortedCount
Glad to hear it :). Is it really faster than Magma in your experience?
Cheers,
Niko
On Sun, Nov 29, 2009 at 11:11 AM, Johan Brichau
wrote:
> We are using GOODS for a while now and it runs pretty well. I have
> added it to the wikipage.
>
> On 26 Nov 2009, at 17:39, Tudor Girba wrote:
>
>> Hi,
>
with, but it all seems to run just fine right now.
>
> and thanks for having suggested it! ;-)
>
> On 29 Nov 2009, at 13:26, Niko Schwarz wrote:
>
>> Glad to hear it :). Is it really faster than Magma in your experience?
>>
>> Cheers,
>>
>> Niko
>>
On Stackoverflow someone asked what to do with good code which isn't
needed anymore. This was the answer: As an answer, please
consider this short story:
The dead code Collector: Bring out yer dead code.
Man with dead code : Here's one.
The dead code Collector: That'll be ninepence.
The dead co
The alpha image runs into a deprecation warning, caused by
Preferences class>annotationPanes, called by OBSystemBrowser
class(OBCodeBrowser class)>>annotationPanel
as soon as you open a browser.
Cheers,
Niko
On Mon, Dec 7, 2009 at 10:08 AM, Damien Cassou wrote:
> Based on 1.0 rc1 and 1.1 alph
Hi list,
the purpose of PluggableSet and KeyedSet is the same: they're both
sets where the equivalence relation is overwritten by a block.
One of the two should be removed. What do you think?
Cheers,
Niko
--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 076 235 8683
Hello!
Typing a burst into a pluggable list morph results in a behaviour
quite remote from e.g. Finder.
E.g. typing the same key twice will go to the next match. I suggest
changing the behaviour to make
it resemble the behaviour that a user may anticipate more closely.
I submitted a fix for the
I found and fixed a tiny bug in FixedIdentitySet:
http://code.google.com/p/pharo/issues/detail?id=1308&can=3&colspec=ID%20Type%20Status%20Summary%20Milestone
Cheers,
Niko
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.g
In Pharo, '.1' = 0 evaluates to true. In the bug tracker, it was
proposed to change this to an error being raised, which I implemented:
http://code.google.com/p/pharo/issues/detail?id=1258
Cheers,
Niko
___
Pharo-project mailing list
Pharo-project@list
Consider this code:
w := SystemWindow labelled: 'LatestInspector'.
t := TabGroupMorph new addPage: (RectangleMorph new color: Color green
) label: 'Instance' ;
addPage: (RectangleMorph new color: Color red) label: 'Methods' .
w openInWorld
w addMorph: t fullFrame: (Layout
You can follow our progress on twitter! Just open this page:
http://twitter.com/#search?q=%23pharolille
We're using the twitter tag #Pharolille
niko
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bi
Just for context, I'm referring to the Pharo Sprint in Lille, taking
place today. We're already 12 sprinters.
On Sat, Oct 17, 2009 at 1:20 PM, Niko Schwarz
wrote:
> You can follow our progress on twitter! Just open this page:
>
> http://twitter.com/#search?q=%23pharolille
Shouldn't my incredible ThothCompiler allow that?
http://smalltalkthoughts.blogspot.com/2009/09/introducing-thothcompiler.html
niko
On Sat, Oct 17, 2009 at 1:31 PM, Lukas Renggli wrote:
> -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
>
> rule := RBUnderscoreAssignmentRule new.
> Sma
That's because you're using the latest Pharo. YOU changed the old AST,
and removed a method called "null" that I'm calling. I'll update
ThothCompiler tonight.
cheers,
niko
On Sat, Oct 17, 2009 at 3:38 PM, Stéphane Ducasse
wrote:
> I get a DNU rule does not know open.
>
> On Oct 17, 2009, at 1:3
Hello list!
I would like to propose the compiler spit out immutable strings as
string literals. I'd like to do this by making a subclass of classical
strings which throws error messages when it is attempted to change the
string.
The beginning of this discussion happened in the bug tracker, please
That was me, it comes from Squeak trunk. I didn't test it, because it
looked so harmless and works in Squeak … I'm sorry. It should be
"sortBy: rather than sort:"
niko
On Mon, Oct 19, 2009 at 7:06 PM, Michael Roberts wrote:
> MCMergeBrowser>>merger:
> conflicts := aMerger conflicts sort:
I clicked around for some time now but I can't trigger that method to
test it properly this time. It isn't called on conflicts, it isn't
called on merges. What do you need to do to get that method executed
artificially?
Niko
On Mon, Oct 19, 2009 at 8:48 PM, Niko Schwarz
wrote:
&g
Then, why was sort: yanked from OrderedCollection? I'm confused.
On Mon, Oct 19, 2009 at 9:17 PM, Nicolas Cellier
wrote:
> Implementation details: #sortBy: is not exactly #sort:
> #sort: does a fast inplace sort, when #sortBy: performs useless copy
> operations...
>
> Nicolas
Hi list, this is a copy of a proposal that I dumped into the
bugtracker as http://code.google.com/p/pharo/issues/detail?id=1346.
An OrderedCollection returns a copy on #sortBy:, while an
ArrayedCollection returns a changed
self on #sort:. ArrayedCollection does understand #sortBy:, while
OrderedC
Hi list, issue 1336 proposes re-implementing Stack using the new
LinkedList which can take arbitrary objects. I committed the code and
it was really straightforward to do. Now stack is implemented in 3
one-line methods, removing about 10 methods, and removing one class
(StackLink).
Please see http
Hi Johan,
On 21.10.2009, at 18:39, Johan Brichau wrote:
> I also understood from Niko on monday that he is working on an
> alternative inspector that very much ressembles the one from
> Visualworks.
Yes, with Toon Verwaest, it should get ready on the weekend. :)
Niko
__
Hi all, I made a follow-up patch like discussed on the workshop. Now
porting becomes as easy as changing "asNumber" to "squeezeOutNumber".
Name: SLICE-issue-1258-squeezeOutNumber-NikoSchwarz.2
This slice adds squeezeNumberOutOfString: to Number, as discussed in
the Pharo workshop. On the way, it
Hi list!
Imagine you want to test the Stack class, and your first test just
creates a test and checks if it's empty.
Then in your second test, you create the same empty stack, but now
push an element 'apple' and check if the size is one.
Then in your third test, you do all the same, and then you
Hi Stef,
On Sun, Oct 25, 2009 at 10:37 PM, Stéphane Ducasse
wrote:
> - is there a way to get something compiled in between?
Two of us use the ThothCompiler in the mean time, which supports all
the source code transformations of the NewCompiler, because it
features the same AST:
- http://smal
e since it may break their code.
>>
>> Adrian
>>
>> On Oct 24, 2009, at 10:46 , Stéphane Ducasse wrote:
>>
>>> Thanks niko
>>>
>>> So does everybody agree with
>>> asNumber raising an error
>>> and
>>> squ
Hi list,
in the most recent dev image (9.10.5), OCompletion is broken for me.
I lost my reproducible test case, but the gist was that sometimes when
OCompletion had no idea which type a temporal variable would be, you
were unable to insert code behind that variable, because if you tried,
a debugg
e it with a deprecation.
>
> stef
>
>
> On Oct 27, 2009, at 2:38 PM, Niko Schwarz wrote:
>
>> Well, what do you propose? Deprecating asNumber calls altogether?
>>
>> Cheers,
>>
>> Niko
>>
>> On Sat, Oct 24, 2009 at 10:32 AM, Stéphane Ducasse
f time before the
> latest version of OCompletion is used instead of the older one.
>
> Cheers,
> Romain
>
> On Oct 27, 2009, at 3:07 PM, Niko Schwarz wrote:
>
>> Hi list,
>>
>> in the most recent dev image (9.10.5), OCompletion is broken for me.
>&g
By the way, what is the proper way to propose changes to the dev image script?
On Tue, Oct 27, 2009 at 3:57 PM, Niko Schwarz
wrote:
> My image is indeed still on version damiencassou.33. I marked the bug
> as 1.0 in the bugtracker
> (http://code.google.com/p/pharo/issues/detail?id=135
Hi list, I learned something fun today from a friend, how to make
Pharo produce random garbage!
Make a class AC which is defined as:
Object subclass: #AC
instanceVariableNames: 'a'
classVariableNames: ''
poolDictionaries: ''
category: 'OB-Standard-Browsers'
Then you
Hi list,
sending displayWorldAsTwoTone to the global PasteUpMorph does not
turn my screen black and white. That is because WorldState does not
respond to #displayWorldAsTwoTone, as
PasteUpMorph>displayWorldAsTwoTone expects.
Cheers,
Niko
__
Hi list,
consider this code:
c := Compiler compile: 'meth "bla" ^ 2'.
Here, c will be set to the symbol #meth. And Compiler will be added a
new method "meth".
This is of course counter-intuitive, but it's kind of wired into the
system. Behavior>compile: does certainly more than compile. It
com
system.
>> And of course, compiler should answer an instance of compiled method
>>
>> 2009/11/3 Niko Schwarz :
>>> Hi list,
>>>
>>> consider this code:
>>>
>>> c := Compiler compile: 'meth "bla" ^ 2'.
>>>
>
Every project needs to have sacred cows that may not be tipped :D.
Well, alright, in case that we can't agree on renaming, how about my
original proposal, which left everything the way it was and only added
the class-side compile:onClass: method to Compiler? Possibly sided by
compile:onClass:ifFai
Hi, I just bumped into this. Probably this is intended somehow, but it
does seem weird enough to ask …
(Object >> #hash) asString class
returns 'Text'.
Cheers,
Niko
--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 076 235 8683
Hi list,
http://code.google.com/p/pharo/issues/detail?id=2508&can=4&colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty
The following mini unit test fails:
readWriteStreamShouldHonorStartIndex
self assert: ( (ReadWriteStream on: 'hallo' from: 3 to: 4) contents = 'll')
Instead, con
Hi list,
http://code.google.com/p/pharo/issues/detail?id=2510&can=4&colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty
I suggest the following snippet in object to ease debugging:
Object>>haltIfShiftPressed
self haltIf: [Sensor shiftPressed]
Pharo image: core
Pharo core version: #1
Seriously, I think the method should be called "h". Just that.
Nobody's going to type a method name as long as haltIfShiftPressed for
debugging. Debugging is not about readability.
Cheers,
Niko
On Sat, Jun 5, 2010 at 3:31 PM, Niko Schwarz
wrote:
> Hi list,
>
> http:/
I think the rationale must be: during TDD it's ok to ask the developer
questions that he can answer right away. Thus, it's ok that the create
button asks for the class: you know instantly what to answer. But
asking for the method category is a major pain. I don't know about
y'all, but I never quite
Hi guys,
Am I the only one who finds the ruby protocol for accessing
collections richer at times? In Smalltalk, if ary is an array, how do
I get ary without its last element?
In Ruby, it's dead easy: ary[0..-2]. I can do that by heart after not
having done any serious Ruby in a long time. In Smal
On Mon, Jun 7, 2010 at 3:23 PM, Stéphane Ducasse
wrote:
> yes this one looks good.
> but
>
> copyFrom: 1 to: does not convey that you should pass the second
> argument starting reverse.
Well, in ruby it's a general convention that negative indices start
counting from the right. A reasonab
Is there a website with this text that I can link to?
Niko
On Mon, Jun 7, 2010 at 3:48 PM, Marcus Denker wrote:
> Hello,
>
> INRIA RMOD is looking for a full-time engineer for helping with Pharo
> development. As researchers, we need a really great
> system to explore new ideas with. The job of
ernan Wilkinson :
> it is true, I almost all the time cancel that dialog to put the method as
> not yet categorized... but sometimes I select the category... I think that
> pressing ESC or cancel is not that bad in this case and I would keep this
> dialog.
>
> On Mon, Jun 7, 2010 at 5
Well, I'm just arguing that in Ruby, the simple convention that
negative indices start from left to right map to a zoo of different
methods in Smalltalk.
You didn't comment on:
('hello' from: 2 toFromEnd: 2) should = 'ell'
Would that find your blessing?
niko
On Mon, Jun 7, 2010 at 6:59 PM, Ra
On Mon, Jun 7, 2010 at 9:30 PM, Hilaire Fernandes
wrote:
> Niko Schwarz a écrit :
>
>> Just to put something on the table, how about:
>>
>> (ary at: 1, -2)
>
> Or #at: could accept an interval as argument
>
>
>
> _
Why not offer "not yet categorized" as the first option as a category
to choose from?
Niko
2010/6/7 Gabriel Brunstein :
> maybe the right name would be something like "don´t categorize" ;)
>
> On Mon, Jun 7, 2010 at 11:54 AM, Niko Schwarz
> wrote:
>>
&g
On Mon, Jun 7, 2010 at 10:29 PM, Ramon Leon wrote:
> Ruby
> seems to have a style where you can send just about anything to a method and
> it tries to figure out what to do based on the type of the arg, they like
> magic and the smaller API; Smalltalk tends to just have a dozen different
> but si
I listed this behavior as http://code.google.com/p/pharo/issues/detail?id=2522
Cheers,
Niko
On Mon, Jun 7, 2010 at 10:04 PM, Niko Schwarz
wrote:
> Why not offer "not yet categorized" as the first option as a category
> to choose from?
>
> Niko
>
> 2010/6/7 Gabr
I hear that we're working on 1.2 now. But pharo-project.org still
hands out 1.0 versions to everyone who asks. So we'll get plenty of
bug reports for 1.0.
I think we should switch over to 1.1 on the home page soon.
Niko
--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 076 235
We've further improved on the issue in
http://code.google.com/p/pharo/issues/detail?id=2469.
It's committed to the inbox, now.
Niko
On Tue, May 25, 2010 at 10:34 PM, Stéphane Ducasse
wrote:
> thanks a lot denis for checking that.
> I should say thatI'm quite busy right now. :)
>
> Stef
>
> On M
Of course not. Just switch the default download (the big one, all over
the site) site to 1.1.
I just suggest to switch from 1.0 to 1.1 as stable at the same time
that we switch from 1.1 to 1.2 for development. Then we never have 3
"current" versions at once.
Cheers,
Niko
--
http://scg.unibe.ch
Hi,
Why is the auto-completion in the dev images so stupid in the
debugger? Why is it wildly guessing around in a debugger, where the
type of all variables is well known?
I'm using a 1.1 beta image (non-core):
http://gforge.inria.fr/frs/download.php/27025/Pharo-1.1-11367-Betadev10.05.1.zip.
Niko
2010/6/8 Mariano Martinez Peck :
> Maybe you should be more polite in order to receive better feedback.
I'll work on it. I wasn't sure if the feature's missing or whether I'd
done something wrong.
Cheers,
Niko
--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41 076 235 8683
___
Hmm, not right now, but I'll add it to my someday/maybe list :)
Thanks for the offer!
Cheers,
Niko
On Tue, Jun 8, 2010 at 5:44 PM, Romain Robbes wrote:
>
> I'll work on it. I wasn't sure if the feature's missing or whether I'd
> done something wrong.
>
>
> Hi Niko,
> Indeed, the feature is mis
Done: http://code.google.com/p/pharo/issues/detail?id=2524
2010/6/8 Mariano Martinez Peck :
>
>
> On Tue, Jun 8, 2010 at 5:50 PM, Niko Schwarz
> wrote:
>>
>> Hmm, not right now, but I'll add it to my someday/maybe list :)
>
> You can also add it to the some
Depends on who you ask. Your standard Windows developer will say it's
4, your standard Unix believer will say it's 3 (because in Unix text
files always end in a newline. And String cr is used roughly like Unix
\n, although it's another character.)
Niko
2010/6/9 Fabrizio Perin :
> Hi,
> evaluating
On Wed, Jun 9, 2010 at 9:29 AM, Adrian Lienhard wrote:
> Also, people who know there is something that really needs to be fixed for a
> 1.1 release should speak up now.
I think http://code.google.com/p/pharo/issues/detail?id=2469 should be
integrated before 1.1. I remember how much of a pain th
I got confused about this because of what printString shows. At least
printString could show what is intended to be in the stream, not more.
Niko
2010/6/11 Henrik Sperre Johansen :
> On 05.06.2010 15:30, Niko Schwarz wrote:
>
> Hi list,
>
> http://code.google.com/p/pharo/issues
Here's a funny way to crash your image. Works in:
Pharo-1.1-11367-Beta
Latest update: #11367
Make a class named AbstractBla, with two subclasses: SubA, SubB. Then,
add to both SubA and SubB the identically named instance variable:
instVar. Now, use the "pull up" refactoring in OmniBrowser on SubA
s hierarchy is broken?
>
> Lukas
>
> On 7 August 2010 22:18, Niko Schwarz wrote:
>> Here's a funny way to crash your image. Works in:
>>
>> Pharo-1.1-11367-Beta
>> Latest update: #11367
>>
>> Make a class named AbstractBla, with two subc
Has this been resolved? I still get an error saying that
PluggableButtonMorphPlus and OBPluggableButtonMorphPlus define
homonymous instance variables.
Niko
On Wed, Aug 18, 2010 at 9:04 AM, Marcus Denker wrote:
>
> On Aug 17, 2010, at 11:16 PM, Lukas Renggli wrote:
>
>> Or you would keep the empt
Perhaps interestingly, in the original Self paper promoting mirrors,
it was argued that one of the lessons learned of using mirrors in self
was that '==' is really a reflective property, that should be
accessible only through mirrors. That is because, whether or not two
pointers are equal is really
But that's the point, there should be no business semantics to '=='.
Only reflective semantics. The reflective semantics are ok.
Niko
On Mon, Sep 27, 2010 at 11:51 AM, Johan Brichau wrote:
>
> On 27 Sep 2010, at 11:28, Igor Stasenko wrote:
>
>> On 27 September 2010 11:54, Johan Brichau wrote:
>
Hi,
The RB refactorings do some obscure dance around an errorBlock, which
is always nil, as far as I can see. As I was trying to supply a
non-nil error block, I was astonished to find out that even if it
isn't nil, it won't be executed. Here's the relevant snippets:
checkPreconditions
| c
toring, RemoveClassRefactoring or
> RemoveInstanceRefactoring.
>
> On 4 October 2010 15:40, Lukas Renggli wrote:
>> This is used to validate the preconditions of refactorings and inform
>> the user about any mismatches.
>>
>> It should better not be removed.
>>
>>
ing, e.g. ORCommand>>#handleError:
>
> Ok, the code is quite ugly, but this is how the original refactoring
> browser implemented it.
>
> On 4 October 2010 16:06, Niko Schwarz wrote:
>> Ok, help me out, how is that block ever invoked? The above code
>> snippet ju
Hi,
Currently, to mark a test as an expected failure, `expectedFailures`
should be overwritten
(http://stackoverflow.com/questions/3976596/how-to-mark-expected-failures-in-sunit).
That's a bit tricky to figure out, so I added a comment to the method:
SUnit-NikoSchwarz.114. However, I think it's st
What's the status of akuhn/SUnit? I couldn't find his code in 1.2 core.
Niko
On Wed, Feb 3, 2010 at 1:13 PM, Stéphane Ducasse
wrote:
> this loads well in the latest 1,1 core :)
> so now we should really have a look and these cool changes
>
> Stef
>
> On Jan 6, 2010, at 2:38 PM, Adrian Kuhn wrote
till want to know the status of a test. what is red or not when it was
> packaged and shipped or is is my system the problem
>
> Stef
> On Oct 20, 2010, at 1:41 PM, Mariano Martinez Peck wrote:
>
>>
>>
>> On Wed, Oct 20, 2010 at 12:15 PM, Niko Schwarz
>>
>> On Oct 23, 2010, at 08:05 , Stéphane Ducasse wrote:
>>
>>> It was too difficult to integrate.
>>>
>>> Stef
>>>
>>> On Oct 23, 2010, at 2:01 PM, Niko Schwarz wrote:
>>>
>>>> What's the status of akuhn/SUnit? I could
Yea, well, it depends on whether we want to be compatible with camp
smalltalk's SUnit, as maintained by Niall Ross:
http://sunit.sourceforge.net/devel.htm. Pharo already is using
extensions, such as the possibility to mark tests as expected failures
at all (that is impossible in standard SUnit).
M
nly to run, but also to write tests on
> the official SUnit. This is crucial for projects like Seaside,
> Magritte, Pier, PetitParser, ... that are supposed to work on various
> other Smalltalk platforms.
>
> Lukas
>
> On 25 October 2010 15:51, Niko Schwarz wrote:
>> Yea, we
I remember that alright. On some Usenet groups you'd get stoned to
death if you were to fullquote at the bottom. Postings like that we'd
call TOFU in Germanglish: ("Text oben, Fullquote unten"), and it was a
major offense to submit TOFU. And the holy scripture was RFC 1855
(http://tools.ietf.org/ht
Markus, try to change the first line of the footer, which currently is
" ___"
to
"-- \n"
Yes, including the space before the linebreak. Many email clients to
this date will not quote what comes after this so-called "sig
separator". AAMOF, I advise ever
Hi guys,
I haven't checked if this bug exists already, so please ignore this if it's
been reported before.
Bug in WAMemoryItem:
sizeOfObject: anObject
| headerSize instanceSize variableSize |
headerSize := anObject class indexIfCompact > 0
ifTrue: [ 4 ]
Hi Sean!
Phexample doesn't duplicate the logic of what is a change method, it changes
it. The rational is to allow the user to choose a speaking test name, that
accurately describes the test:
shouldNicelyHandleNotifications
And the like.
Is this really in conflict with OB?
Niko
On 24.06.
Hi,
Symbol responds to #value:, but not to #value:value:.
At some point, Symbol and Block were decided to have the invocation protocol in
common. I find this great. Therefore, I think, Symbol should also respond to
#value:value:, as follows:
value: anObject value: anotherObject
^ anOb
I think it's important to have a consistent answer to the question:
"Can you treat symbols as blocks?".
Niko
On Tue, Aug 30, 2011 at 2:30 PM, Tudor Girba wrote:
> I proposed this some one or two years ago. I got shut down, but I still find
> it a good idea.
>
> And I even have a semantic reason
On Tue, Aug 30, 2011 at 3:59 PM, Sven Van Caekenberghe wrote:
> #+ value: 1 value: 2
>
> 1 perform: #+ with: 2
>
> Note that the last two expressions are equally short/concise, the second
> being clearer.
That is not a comparison worth making. The fair comparison is:
[:a :b | a + b]
vs
#+
> persons inject: OrderedCollection new into: [:col :p | col copyWith: p]
> persons inject: OrderedCollection new into: #copyWith:
Or this one:
#(3 2 1) asSortedCollection: [:a :b | a <= b]
#(3 2 1) asSortedCollection: #<=
You just inspired me to a block post on point-free programming :)
http://smalltalkthoughts.blogspot.com/2011/08/point-free-programming-in-smalltalk.html
Niko
On 30.08.2011, at 16:57, HwaJong Oh wrote:
> I have similar definitions from symbol to block for SortedCollection like;
>
> #('3' '20'
It's a question of consistency. Why support value:, but not value:value:?
Niko
On Tue, Aug 30, 2011 at 7:45 PM, Igor Stasenko wrote:
> On 30 August 2011 18:02, Douglas Brebner wrote:
>> On 30/08/2011 13:30, Tudor Girba wrote:
>>
>> I proposed this some one or two years ago. I got shut down, but
Hi,
How can I find all objects that reference myObject?
http://stackoverflow.com/questions/8164418/how-can-i-find-all-objects-that-reference-myobject
Niko
--
http://scg.unibe.ch/staff/Schwarz
twitter.com/nes1983
Tel: +41786126354
83 matches
Mail list logo