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,
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
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
^
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 tu...@tudorgirba.com 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
On Tue, Aug 30, 2011 at 3:59 PM, Sven Van Caekenberghe s...@beta9.be 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]
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 siguc...@gmail.com wrote:
On 30 August 2011 18:02, Douglas Brebner squeakli...@fang.demon.co.uk wrote:
On 30/08/2011 13:30, Tudor Girba wrote:
I proposed this some
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
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
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 everybody
not only 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 niko.schw...@googlemail.com wrote:
Yea
and no
real improvements.
Stef
On Oct 23, 2010, at 10:58 PM, Adrian Kuhn wrote:
Sad to hear that.
Technical difficulties, or just lack of customers? ^^
--AA
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
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).
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
stephane.duca...@inria.fr 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
progress.
I still 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 niko.schw...@googlemail.com
wrote:
Hi
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
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
|
, Niko Schwarz niko.schw...@googlemail.com 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 refactoring, 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 niko.schw...@googlemail.com wrote:
Ok, help me out, how is that block ever invoked? The above code
snippet just appends
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
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 jo...@inceptive.be wrote:
On 27 Sep 2010, at 11:28, Igor Stasenko wrote:
On 27 September 2010 11:54, Johan
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 marcus.den...@inria.fr wrote:
On Aug 17, 2010, at 11:16 PM, Lukas Renggli wrote:
Or you
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
On 7 August 2010 22:18, Niko Schwarz niko.schw...@googlemail.com 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 subclasses: SubA, SubB. Then,
add to both SubA and SubB the identically named instance
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 henrik.s.johan...@veloxit.no:
On 05.06.2010 15:30, Niko Schwarz wrote:
Hi list,
http://code.google.com/p/pharo
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
On Wed, Jun 9, 2010 at 9:29 AM, Adrian Lienhard a...@netstyle.ch 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
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
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
stephane.duca...@inria.fr wrote:
thanks a lot denis for checking that.
I should say thatI'm quite busy right
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
--
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.
2010/6/8 Mariano Martinez Peck marianop...@gmail.com:
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:
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 romain.rob...@gmail.com 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,
Done: http://code.google.com/p/pharo/issues/detail?id=2524
2010/6/8 Mariano Martinez Peck marianop...@gmail.com:
On Tue, Jun 8, 2010 at 5:50 PM, Niko Schwarz niko.schw...@googlemail.com
wrote:
Hmm, not right now, but I'll add it to my someday/maybe list :)
You can also add
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
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
On Mon, Jun 7, 2010 at 3:23 PM, Stéphane Ducasse
stephane.duca...@inria.fr 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
Is there a website with this text that I can link to?
Niko
On Mon, Jun 7, 2010 at 3:48 PM, Marcus Denker marcus.den...@inria.fr 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
:
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:45 AM, Niko Schwarz niko.schw
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,
On Mon, Jun 7, 2010 at 9:30 PM, Hilaire Fernandes
hilaire.fernan...@gmail.com 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
___
Pharo-project mailing list
Why not offer not yet categorized as the first option as a category
to choose from?
Niko
2010/6/7 Gabriel Brunstein gab...@gmail.com:
maybe the right name would be something like don´t categorize ;)
On Mon, Jun 7, 2010 at 11:54 AM, Niko Schwarz niko.schw...@googlemail.com
wrote:
Right
On Mon, Jun 7, 2010 at 10:29 PM, Ramon Leon ramon.l...@allresnet.com 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
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
niko.schw...@googlemail.com wrote:
Why not offer not yet categorized as the first option as a category
to choose from?
Niko
2010/6/7 Gabriel Brunstein
Hi list,
http://code.google.com/p/pharo/issues/detail?id=2508can=4colspec=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,
Hi list,
http://code.google.com/p/pharo/issues/detail?id=2510can=4colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty
I suggest the following snippet in object to ease debugging:
ObjecthaltIfShiftPressed
self haltIf: [Sensor shiftPressed]
Pharo image: core
Pharo core version:
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
niko.schw...@googlemail.com wrote:
Hi list,
http
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,
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
The alpha image runs into a deprecation warning, caused by
Preferences classannotationPanes, 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 damien.cas...@gmail.com wrote:
Based on
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 Sun, Nov 29, 2009 at 11:11 AM, Johan Brichau
johan.bric...@uclouvain.be wrote:
We
On Stackoverflow someone asked what to do with good code which isn't
needed anymore. This was the answer: blockquoteAs 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.
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
johan.bric...@uclouvain.be 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
Tee hee, cool beans guys :)
Niko
On Tue, Nov 10, 2009 at 6:32 PM, Stéphane Ducasse
stephane.duca...@inria.fr 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 ])
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. Behaviorcompile: does certainly more than compile. It
.
And of course, compiler should answer an instance of compiled method
2009/11/3 Niko Schwarz niko.schw...@googlemail.com:
Hi list,
consider this code:
c := Compiler compile: 'meth bla ^ 2'.
Try using
c:= Compiler new
compiledMethodFor: ...
The class-side #compile:... method
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
PasteUpMorphdisplayWorldAsTwoTone expects.
Cheers,
Niko
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 Stef,
On Sun, Oct 25, 2009 at 10:37 PM, Stéphane Ducasse
stephane.duca...@inria.fr 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
.
Adrian
On Oct 24, 2009, at 10:46 , Stéphane Ducasse wrote:
Thanks niko
So does everybody agree with
asNumber raising an error
and
squeezeOutNumber
I like the proposal.
Stef
On Oct 24, 2009, at 10:30 AM, Niko Schwarz wrote:
Hi all, I made a follow-up patch like discussed
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
.
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
stephane.duca...@inria.fr wrote:
Yes a good deprecation is needed.
Stef
On Oct 24, 2009, at 11:13 AM
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.
I lost my reproducible test case, but the gist was that sometimes
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
niko.schw...@googlemail.com 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
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, 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
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 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
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,
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 m...@mjr104.co.uk wrote:
MCMergeBrowsermerger:
conflicts := aMerger
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
niko.schw
...
Nicolas
2009/10/19 Niko Schwarz niko.schw...@googlemail.com:
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 m...@mjr104
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
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:
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
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
niko.schw...@googlemail.com wrote:
You can follow our progress on twitter! Just open this page:
http://twitter.com/#search?q
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 reng...@gmail.com wrote:
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
rule :=
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
stephane.duca...@inria.fr wrote:
I get a DNU rule does not know open.
On
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
80 matches
Mail list logo