Re: [Pharo-users] Floating point arithmetic

2020-01-13 Thread werner kassens
Hi Sven, if you dont transform floats, that are not always exactly what they seem to be, you get what you would expect: 0.09560268s8 - 0.005s8 = 0.09060268s8. "true" "of course" a:=0.09560268 asScaledDecimal. 0.09560268s8=a . "false" "you could eg do this:" b:=a roundTo: 0.0001s8. "then"

Re: [Pharo-users] Pharo Launcher & Stored Settings

2018-08-07 Thread werner kassens
On 08/07/2018 02:15 AM, Evan Donahue wrote: > Yes, that's right. As long as I don't "store settings" everything is > ok, but if I do find myself wanting to change a global setting of some > kind, and I hit "store," it /also/ stores the metacello paths, which > will then be incorrect for the next

Re: [Pharo-users] a basic hash question

2018-07-30 Thread werner kassens
Hi Andres, that is the kind of argument i was looking for, as i thought i would have a similar situation as in my small example and wondered whether i could keep my slightly incongruent definition of #= and #hash, but in a way your examples show that my problem is different, iow i should change

Re: [Pharo-users] a basic hash question

2018-07-30 Thread werner kassens
Hi, thank you all for your answers. Cédrick Béler wrote: > But it raises the question if : > (1 to:4)hash = #(1 2 3 4)hash should return true instead ?? principally yes, but it would slow down the Interval>>hash implementation considerably. id guess one would first make

[Pharo-users] a basic hash question

2018-07-30 Thread werner kassens
Hi, i guess i can subsume almost everything i know about hashes in one sentence: it is my understanding that two objects that are equal (obj1=obj2. -->true) have to have the same hash value (which is used for some collection types), whereas objects where obj1=obj2 returns false should have

Re: [Pharo-users] RB refactoring rewrite variable to a symbol

2017-11-11 Thread werner kassens
Hi Peter, i assume from your question "RewriteTool maintained?" that you want to make a RBTransformationRule, right? if yes, i once had a similar problem and overwrote only #checkMethod: checkMethod: aMethod     | arg |     arg := aMethod argumentNames first asString.     self initialize.     self

Re: [Pharo-users] What is code 137 / how to gracefully shut down via SIGTERM?

2017-10-29 Thread werner kassens
Hi Herby, eventually you might want to look at https://github.com/moby/moby/issues/1063 but then i dont know anything about these things. werner On 10/28/2017 01:39 PM, Herby Vojčík wrote: > Hi, > > I had to find out how to automatically deploy the backend written in > Pharo, and so far it uses

Re: [Pharo-users] Linear solvers

2017-10-28 Thread werner kassens
On 10/28/2017 04:23 PM, Ben Coman wrote: > btw, what does PolyMath/SciSmalltalk offer in the way of linear solvers? Hi Ben, so far no linear solvers in PolyMath. i made a small constraint solver for PolyMath that is not restricted to linear problems, hence necessarily slower than linear solvers &

Re: [Pharo-users] Continued Fractions

2017-09-18 Thread werner kassens
Hi Phil, yes, in polymath it is the the object PMContinuedFraction. werner On 09/17/2017 08:38 PM, p...@highoctane.be wrote: > Ah, I see there is something in the Numerical Methods book. :rolleyes: > > Phil > > On Sun, Sep 17, 2017 at 8:30 PM, p...@highoctane.be >

Re: [Pharo-users] About how to benchmark the lookup speed...

2017-06-14 Thread werner kassens
On 06/14/2017 09:12 PM, Steven Costiou wrote: repetitions timesRepeat:[ results add: [100 timesRepeat:[o m]] timeToRun]. Hi Steven, the influence of the garbage collector is in cases like these often somewhat difficult to forecast. i would eventually change the code to: repetitions

Re: [Pharo-users] Rewriting question

2017-06-12 Thread werner kassens
Hi Nicolai, thanks, yes, i can see that basically more or less solves the problem i had. werner On 06/12/2017 09:15 AM, Nicolai Hess wrote: 2017-06-10 21:16 GMT+02:00 werner kassens <wkass...@libello.com <mailto:wkass...@libello.com>>: On 06/10/2017 04:07 PM, werner k

Re: [Pharo-users] Rewriting question

2017-06-10 Thread werner kassens
On 06/10/2017 04:07 PM, werner kassens wrote: On 06/10/2017 03:37 PM, werner kassens wrote: Hi, i have a private rewriting rule. unfortunately it shows up in the lower pane of the SystemBrowser which makes no sense at all, since it is not intended for use outside of the program using it. how

Re: [Pharo-users] Rewriting question

2017-06-10 Thread werner kassens
On 06/10/2017 03:37 PM, werner kassens wrote: Hi, i have a private rewriting rule. unfortunately it shows up in the lower pane of the SystemBrowser which makes no sense at all, since it is not intended for use outside of the program using it. how do i make it invisible for that part

[Pharo-users] Rewriting question

2017-06-10 Thread werner kassens
Hi, i have a private rewriting rule. unfortunately it shows up in the lower pane of the SystemBrowser which makes no sense at all, since it is not intended for use outside of the program using it. how do i make it invisible for that part of the systembrowser? and btw where are the rules

Re: [Pharo-users] RewriteToolbuilder question

2017-06-07 Thread werner kassens
On 06/07/2017 08:11 PM, Mark Rizun wrote: At first, I was not able to reproduce the error, but then I realised that you probably don't save the content of lower left and right parts (`@.Statements).Use cmd+s to save changes. The error is raised because parser tries to parse the old code (same

Re: [Pharo-users] RewriteToolbuilder question

2017-06-07 Thread werner kassens
ow down which video with a link? cheers -ben On Thu, Jun 8, 2017 at 12:05 AM, werner kassens <wkass...@libello.com <mailto:wkass...@libello.com>> wrote: Hi, i followed the video and opened the RewriteToolbuilder on some code in pharo4.0

[Pharo-users] RewriteToolbuilder question

2017-06-07 Thread werner kassens
Hi, i followed the video and opened the RewriteToolbuilder on some code in pharo4.0. i then tried to keep things simple and made a transformationrule,which i thought would not change anything, by just copying "‘@.Statements." into the lower left & right panels (without the " of course).i then

Re: [Pharo-users] rewrite question

2017-06-07 Thread werner kassens
On 06/07/2017 12:46 PM, werner kassens wrote: Hi, where do i find the 'rewrite tool' described in the paper 'Code Transformation by Direct Transformation of ASTs' by Rizun et al? werner oops, found it, i read the paper a bit too fast, sorry. werner

[Pharo-users] rewrite question

2017-06-07 Thread werner kassens
Hi, where do i find the 'rewrite tool' described in the paper 'Code Transformation by Direct Transformation of ASTs' by Rizun et al? werner

Re: [Pharo-users] Creating Dates before/after Daylight Saving Time change

2017-03-27 Thread werner kassens
Hi Sven, i completely agree my monday is not necessarily your monday, but my monday is my monday independently of when i initiate it. my monday (a few days ago) does _not begin at another utc because of a dst change in the meantime. this behaviour could result in additional problems, apart

Re: [Pharo-users] What is the craziest bug you ever face

2017-03-10 Thread werner kassens
and occasionally memory leaks werner On 03/10/2017 04:02 PM, werner kassens wrote: Hi Stephane, bugs i found difficult to debug are eg (1) red cross of death bugs in morphs, (2) bugs that are not visible any more because they are caught and dealt with in the wrong place and then produce wrong

Re: [Pharo-users] What is the craziest bug you ever face

2017-03-10 Thread werner kassens
Hi Stephane, bugs i found difficult to debug are eg (1) red cross of death bugs in morphs, (2) bugs that are not visible any more because they are caught and dealt with in the wrong place and then produce wrong results instead of errors, and (3) bugs in iterative algos that work eg with #while

Re: [Pharo-users] About Git

2017-01-16 Thread werner kassens
On 01/16/2017 12:20 PM, Peter Uhnak wrote: Usually it's better to keep the discussion contained on the mailing list, and not extend it to private conversations. Hi Peter, after your message i considered the the thread to be essentially closed. My point was that not only you don't understand

Re: [Pharo-users] About Git

2017-01-14 Thread werner kassens
Hi Dimitris, i as a simple user tend to think about these things in simple terms: i download a program, add something, upload my addition. lets take an upload step, _one_ simple step with monticello: i upload something once (git add), i upload it a second time (git commit), i upload it a third

Re: [Pharo-users] Google visibility?

2017-01-13 Thread werner kassens
On 01/13/2017 01:01 PM, Dimitris Chloupis wrote: For example Ben recently posted a very nice guide for UFFI. Hi, where do i find Bens blog? i think it is not mentioned at http://pharo.org/web/blogs . btw another very informative blog about pharo, not mentioned there, is Peters

Re: [Pharo-users] Graph library in Pharo

2016-11-13 Thread werner kassens
On 11/12/2016 06:19 PM, stepharo wrote: Would be nice to make it an object because serge looks interested :) ok, i'll have a look, but _not_ next week (relatively busy at the moment). werner Le 12/11/16 à 13:42, werner kassens a écrit : On 11/12/2016 09:29 AM, serge.stinckw...@gmail.com

Re: [Pharo-users] Graph library in Pharo

2016-11-12 Thread werner kassens
On 11/12/2016 09:29 AM, serge.stinckw...@gmail.com wrote: Nice ! Do you commit the code somewhere ? Hi Serge, at the moment i have no specific usecase for density-plots, hence no need to incorporate that in some package. it never got that far, that it became an object or so, it was just

Re: [Pharo-users] Graph library in Pharo

2016-11-11 Thread Werner Kassens
Hi Stephane, i probably dont understand that question correctly. anyway a long time ago Pierre Chanson and me talked privately a bit about how to make density-plots like in the attachment werner On 11/11/2016 01:14 PM, stepharo wrote: Hi I'm looking for a graph library based on a matrix. I

Re: [Pharo-users] Glamour question

2016-06-17 Thread Werner Kassens
teban On 16 Jun 2016, at 22:19, Tudor Girba <tu...@tudorgirba.com> wrote: Hi, Unfortunately, this is not supported. Would you maybe want to look at how to add a behavior like this? Cheers, Doru On Jun 16, 2016, at 5:01 PM, Werner Kassens <wkass...@libello.com> wrote: Hi, im using a

[Pharo-users] Glamour question

2016-06-16 Thread Werner Kassens
Hi, im using a GLMGenericAction in a popup menu of a browser. i noticed that i can completely hide it with GLMGenericAction(GLMAction)>>condition:aBlock in that menu. now i wonder whether i can grey-out it instead in that menu by setting isEnabled somehow in a similar simple way? werner

Re: [Pharo-users] Is lazy evaluation of infinite series possible?

2016-06-06 Thread Werner Kassens
Hi Erisa, one solution, using your notation, could eg be * aPowerSeries ^ PowerSeries on: [ :generator | |a b| a:=OrderedCollection new. b:=OrderedCollection new. [ a add: self next. b add: aPowerSeries

Re: [Pharo-users] Call about Numerical Methods in Pharo :)

2016-03-08 Thread Werner Kassens
Hi Vincent, it would perhaps be helpful if you could specify your proposal "Standard statistical tests: normality, variance, mean, distribution" a bit, because eventually some of these are already implemented and would just need a wrapper to be easily usable. perhaps it would be enough if one

Re: [Pharo-users] another Metacello question

2016-02-16 Thread Werner Kassens
Hi Dale, thanks for aprouving the membership request. i was talking about a mcz repository. lets say i have myconfig (mcz) with a baseline, a stable and a development version. the baseline of that config could eg look like this: spec project: 'SciSTSpecial' with: [ spec className:

Re: [Pharo-users] another Metacello question

2016-02-16 Thread Werner Kassens
Hi Dale, since you are reading this forum, may i ask you another qestion here (btw i asked for access to the metacello forum, i dont know, a year ago or so but didnt get it)? assumed i have a project (with a config) in a baseline and several packages in that baseline with dependencies on

Re: [Pharo-users] Metacello reverse project dependency

2016-02-16 Thread Werner Kassens
Hi Peter, ah i see, at least i know now why i dont like git . in your 2nd ex there is perhaps still a circular dependency, what happens if the baselines of bar & zar do not rely on baselineoffoo, which isnt used there anyway ? werner On 02/16/2016 11:30 AM, Peter Uhnák wrote: Don't look at

Re: [Pharo-users] Metacello reverse project dependency

2016-02-16 Thread Werner Kassens
Hi Peter, in your second example, which has a new BaselineOfZar & of bar, BaselineOfZar-PeterUhnak.9 & BaselineOfBar-PeterUhnak.11 is fetched, which have the same versionnumber as in the 1st example, are you sure, that the new baselines of ex2 are loaded? werner On 02/16/2016 09:33 AM, Peter

Re: [Pharo-users] Monticello reverse project dependency

2016-02-15 Thread Werner Kassens
Hi Peter, have you looked at metacellos #includes: method? from https://code.google.com/archive/p/metacello/wikis/APIReference.wiki : "When 'Example-AddOn' is loaded, load 'Example-UI'" includes: #('Example-UI' ); werner On 02/13/2016 11:26 PM, Peter Uhnák wrote: Hi, I have the

[Pharo-users] stupid spur question

2016-02-02 Thread Werner Kassens
Hi, in the developersforum i read: "And in 32-bits there are only BoxedFloat64 instances. So on a 32 bits VM Floats are represented only by BoxedFloat64. On a 64 bits VM Floats are represented either by BoxedFloat64 or SmallFloat64. " i wonder whether this means, that in 32 bit systems there

Re: [Pharo-users] stupid spur question

2016-02-02 Thread Werner Kassens
On 02/02/2016 02:30 PM, Sven Van Caekenberghe wrote: Maybe those classes could exist in a 32-bit image as empty subclasses of float ? that is, what i hope werner

Re: [Pharo-users] stupid spur question

2016-02-02 Thread Werner Kassens
. This is part of a larger problem which consists in making the Pharo Kernel modular so that we can load only part of it in specific contexts to save memory or to reduce the system capabilities. 2016-02-02 14:43 GMT+01:00 Werner Kassens <wkass...@libello.com <mailto:wkass...@libello.com>>

Re: [Pharo-users] Ready to play guinea pig for UI improvements

2016-01-22 Thread Werner Kassens
On 01/22/2016 01:31 PM, Nicolai Hess wrote: I think this is a problem of the way nautilus adds a breakpoint for debugging the test. (source code and byte code aren't in sync). opened bug report 17455 werner

Re: [Pharo-users] Ready to play guinea pig for UI improvements

2016-01-22 Thread Werner Kassens
On 01/22/2016 01:31 PM, Nicolai Hess wrote: I think this is a problem of the way nautilus adds a breakpoint for debugging the test. (source code and byte code aren't in sync). ah, i understand werner

Re: [Pharo-users] Ready to play guinea pig for UI improvements

2016-01-22 Thread Werner Kassens
On 01/22/2016 11:48 AM, Tudor Girba wrote: Hi, Yes. That is the type of input that we need. It would be great if others would do the same. Hi Doru, ok, i often use the debugger to test that some code actually does what i intended: in the old one i click first on "stack top" and then click

Re: [Pharo-users] Ready to play guinea pig for UI improvements

2016-01-22 Thread Werner Kassens
On 01/22/2016 01:16 PM, Tudor Girba wrote: I do not understand this one. Could you describe more specifically the scenario? if i do a "debug test" in the contextmenu of "testGenericCharCall" (in FFIPluginTests) and press "restart" then "= 130" is highlighted. werner

Re: [Pharo-users] Understanding the role of the sources file

2016-01-13 Thread Werner Kassens
Hi Dimitris, your formulation "...Pharo bytcode...and convert it to machine code..." is insofar irritating to me as "convert it to machine code" would suggest to me that a compiler is at work here. Davids "executing Pharo byte-code" seems more understandable to me here. werner On 01/13/2016

Re: [Pharo-users] #storeOn: question

2015-12-03 Thread Werner Kassens
Hi Stephane, there are 89 senders of #storeOn: minus around 30 implementations of #storeOn: minus around 10 tests, also things like the PharoChangesCondenser use it. then there are 26 senders of #storeString (essentially the same functionality implemented via #storeOn:, but returns a string)

[Pharo-users] #storeOn: question

2015-11-30 Thread Werner Kassens
Hi, SortedCollection>>storeOn: seems to have a little problem since it does not store sortBlock and the used super-method (in Collection) uses #add: which uses sortBlock and their default uses #<=, hence if the elements are not comparable via #<=, but need a special sortblock, one gets an

Re: [Pharo-users] #storeOn: question

2015-11-30 Thread Werner Kassens
Hi Sven, i see, then i'll simply forget it (i asked, because i halfway expected that). thanks for that info. werner On 11/30/2015 03:23 PM, Sven Van Caekenberghe wrote: I am not so sure the #storeOn: / #readFrom: mechanism is still being maintained. I am not using it in any case, I thought

Re: [Pharo-users] Matrix error

2015-10-24 Thread Werner Kassens
Hi Offray, you could try this: medMatrix:=Matrix rows: 5 columns: 7. 1 to: medMatrix numberOfRows do: [:row | 1 to: medMatrix numberOfColumns do: [ :column | medMatrix at: row at: column put: 0. Transcript show: row asString, ',', column asString, '|'. ]. Transcript

Re: [Pharo-users] memory question

2015-10-23 Thread Werner Kassens
Thank you Norbert and Alexandre, #sizeInMemory was obviously what i was looking for. and the hint about the little complication in a collection that can grow, was helpful indeed! werner

[Pharo-users] memory question

2015-10-23 Thread Werner Kassens
Hi, i'd like to test how much memory a dictionary uses. i guess i could simply delete that dictionary and see how much memory the garbage collector releases, but i wonder how i could measure that without destroying that dictionary? werner

Re: [Pharo-users] memory question

2015-10-23 Thread Werner Kassens
sorry, wrong thread, that was unintentional. werner On 10/23/2015 01:24 PM, Werner Kassens wrote: Hi, i'd like to test how much memory a dictionary uses. i guess i could simply delete that dictionary and see how much memory the garbage collector releases, but i wonder how i could measure

Re: [Pharo-users] Better Code Completion

2015-10-10 Thread Werner Kassens
On 10/10/2015 09:50 AM, stepharo wrote: the code should be in the image :) Hi Stephane, of course. but sometimes i only discover some nice pharo code by reading a paper. i discovered ocompletion in the image only after having read that paper mentioned by Peter, and - thinking "yes, that

Re: [Pharo-users] Better Code Completion

2015-10-07 Thread Werner Kassens
just fwiw, i looked at http://www.squeaksource.com/OCompletion/ and there was a paper about ocompletion mentioned, but the access to this paper was forbidden - at least for me. but at http://users.dcc.uchile.cl/~rrobbes/p/JASE-completion.pdf there is a paper about ocompletion by the same

Re: [Pharo-users] Better Code Completion

2015-10-07 Thread Werner Kassens
thanks Peter werner On 10/07/2015 05:28 PM, Peter Uhnák wrote: This is different paper, I've posted accessible link earlier: On Mon, Oct 5, 2015 at 9:59 PM, Peter Uhnák > wrote: I'm currently going through

Re: [Pharo-users] Better Code Completion

2015-10-07 Thread Werner Kassens
Hi Peter, the difference between the paper i mentioned (JASE-completion) and ASE2008-completion (both accessible) is, i think, that in the first one also the class-level code completion of ocompletion is explained. (i think that part was later added to ocompletion or so) werner

Re: [Pharo-users] Better Code Completion

2015-10-06 Thread Werner Kassens
On 10/06/2015 09:09 AM, Nicolai Hess wrote: > Since Object has almost 500 methods whatever I will start typing Object/TClass/TBehavior/... will have a list of answers... I think this is difficult, even though this classes are big and you don't use most of the methods, Hi Nicolai, imagine

Re: [Pharo-users] How to silently generate and remove code

2015-03-30 Thread Werner Kassens
On 03/30/2015 09:10 AM, Marcus Denker wrote: What the compiler does not have is to look up references e.g. to symbols regarding to an environment, but that is because we don’t have that concept right now in the system in general. globals/class vars are requested from the class (which defines

Re: [Pharo-users] How to silently generate and remove code

2015-03-30 Thread Werner Kassens
Hi Johan, thanks, i see how it works and removes the object later. werner On 03/30/2015 06:42 PM, Johan Fabry wrote: Here is a class that can be of use for you then :-)

Re: [Pharo-users] New random generator

2015-03-20 Thread Werner Kassens
On 03/20/2015 09:32 AM, stepharo wrote: Now I saw that the postload invoke this method but DhbMaximumLikelihoodHistogramFit does not exist. So the postload should be removed. Hi Stephane, hi Serge, this postload was made by someone as a kind of improvised depreciation

Re: [Pharo-users] when iterating over a collection how to determine the current objects index

2015-03-16 Thread Werner Kassens
Hi, there are several methods that end with withBlaBla: aBlabla (ok, they have generally several arguments). hence i would expect doWithIndex: to have this form #doWithIndex: anIndex. and anything that ends with do: expects a doBlock and several methods that have the form doSomething: dont

Re: [Pharo-users] ExtendedNumberParser now has its own repository

2015-03-16 Thread Werner Kassens
Hi Stefane, i understand, fwiw i have no idea whether that helps Mariano, but in that repository exponentLetters looks like this: ExtendedNumberParserexponentLetters Allow uppercase exponent letter. ^'edqEDQ' werner

Re: [Pharo-users] ExtendedNumberParser now has its own repository

2015-03-16 Thread Werner Kassens
On 03/15/2015 09:41 PM, stepharo wrote: Hi I did not want to lose the work of Nicolas Cellier around alternate number parsers so I went back in Pharo 30 and packaged them as a separate package (may be it was already done but I could not find it). Hi Stephane, you can find ExtendedNumberParser

Re: [Pharo-users] [ANN AthensSketch] A playground for drawings with Athens.

2015-03-06 Thread Werner Kassens
Hi Nicolai, very funny and very interesting indeed, i had no idea that athens has that many possibilities and methods. in a way a very instructive docu. werner

Re: [Pharo-users] scaled decimal number for currency

2015-03-05 Thread Werner Kassens
do you perhaps mean this? b:=ScaledDecimal newFromNumber: 5.8777 scale: 2. 5.88s2 b printShowingDecimalPlaces:2. '5.88' on a stream you can use 'printOn: aStream showingDecimalPlaces: placesDesired' werner On 03/05/2015 01:21 PM, Pablo R. Digonzelli wrote: Hi, I want to use scaled decimal

Re: [Pharo-users] Statistics package in Pharo?

2015-03-03 Thread Werner Kassens
and you can find the doku here: https://github.com/SquareBracketAssociates/NumericalMethods/releases werner On 03/03/2015 06:03 PM, Werner Kassens wrote: hi Julien, you can find chisquare-test, f-test, t-test in numericalmethods werner

Re: [Pharo-users] Statistics package in Pharo?

2015-03-03 Thread Werner Kassens
hi Julien, you can find chisquare-test, f-test, t-test in numericalmethods werner

Re: [Pharo-users] Roassal question

2015-02-24 Thread Werner Kassens
On 02/24/2015 01:51 AM, Pierre Chanson wrote: by the way I am interested in how you did this Werner, actually if it would be an easy and simple algorithm to fill a defined circle for example like a mesher. Hi Pierre, it is just a not-yet-ready half-baked implementation of

Re: [Pharo-users] Roassal question

2015-02-23 Thread Werner Kassens
Hi Pierre, i still have a problem since i can't place my RTBoxes at the position i need them to be. obviously they dont understand #translate: or #translateTo: like the things in TRCanvas. is there a way around this restriction? werner

Re: [Pharo-users] Roassal question

2015-02-23 Thread Werner Kassens
On 02/23/2015 09:01 PM, Pierre CHANSON wrote: Why don't you use an RTView and RTBox ? so you can use directly the builder with view elements as objects ? I am not sure to understand your problem because to me you can always create any desired boxes using RTBox new width:y; height:x then place

Re: [Pharo-users] Roassal question

2015-02-23 Thread Werner Kassens
ahh, yes understood, now things work as i want them to work! thank you, werner On 02/23/2015 11:02 PM, Peter Uhnák wrote: that is exactly the problem i have embarrassed grin, RTBox does not understand #translateTo: or #translateBy: a:=RTBox new . a translateTo:

Re: [Pharo-users] [Pharo-dev] GSOC 2015 Call for Ideas

2015-02-22 Thread Werner Kassens
On 02/21/2015 01:44 PM, stepharo wrote: Indeed these are nice to have, now they will not magically happen :) There is a 400 pages book on SciTalk. Le 19/2/15 09:36, Andrea Ferretti a écrit : Actually, some of the things I have mentioned above are already (I think) in SciSmalltalk, which

Re: [Pharo-users] Roassal question

2015-02-16 Thread Werner Kassens
On 02/16/2015 05:18 PM, Pierre CHANSON wrote: But about the axis, the idea would be to have axis from 0@0 or axis that are placed near your elements ? Using RTGrapher you can integrate axis easily that are placed for your datas, but if we want particular axis to go in this view we will have to

[Pharo-users] Roassal question

2015-02-14 Thread Werner Kassens
Hi, i have a little problem, where i think roassal could perhaps be helpfull, but i have to admit this is the very first time i looked into roassal, hence i have a stupid question: i have a collection of something like rectangles, lets say: coll:=Array with: (Rectangle origin: 500@500 corner:

Re: [Pharo-users] Canvas Transform Goes Haywire if Scaled

2015-02-05 Thread Werner Kassens
On 02/05/2015 06:29 AM, Sean P. DeNigris wrote: I had both translation and scale working in a spike by translating with FormCanvas#translateBy:during: and then magifying with canvas form magnifyBy: 0.5, but I want to do this in my morph's drawing method, so I want to do both with the canvas.

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Werner Kassens
, that is not really fast, but as precise as you want it to be (with the implemented functions). werner On 02/02/2015 09:43 PM, stepharo wrote: we should move it to scitalk ;) Le 2/2/15 17:51, Werner Kassens a écrit : Hi Pierre, you will find an ArbitraryPrecisionFloat package at sqeaksource

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Werner Kassens
Hi Pierre, you will find an ArbitraryPrecisionFloat package at sqeaksource that works eg in pharo3 4: http://www.squeaksource.com/ArbitraryPrecisionFl.html werner

Re: [Pharo-users] New book for Pharo :)

2015-01-29 Thread Werner Kassens
Hi Ben, i also prefer SCI, although i have another reason g, it has less letters than MATH and the letters are positioned nearer to each other on my keyboard (good for my one-handed typing approach). SciTalk is a really nice idea i agree. werner On 01/29/2015 04:19 PM, Ben Coman wrote: MATH

Re: [Pharo-users] New book for Pharo :)

2015-01-29 Thread Werner Kassens
Hi Hernán This is like if I get 5 mathematicians, fork SciSmalltalk, push cool new features, and then make all you loose them if you don't update. And I could do it for fun 1000 times. You get the idea. g got it! btw Serge explained his plans for scismalltalk here:

Re: [Pharo-users] New book for Pharo :)

2015-01-28 Thread Werner Kassens
Hi Stéphane, thanks to Msr Besset, to you and to the other people who made this possible. it's a fascinating book. werner

Re: [Pharo-users] NumericalMethods and SciSmalltalk

2015-01-26 Thread Werner Kassens
in scismalltalk a fork of numericalmethods is used. DhbNormalDistribution in scismalltalk should be exactly the same as in numericalmethods and should be usable without code change. werner On 01/26/2015 05:58 PM, nacho wrote: I have an application that uses DhbNormalDistribution from

Re: [Pharo-users] NumericalMethods and SciSmalltalk

2015-01-26 Thread Werner Kassens
but numericalmethods and scismalltalk are not usable together they overwrite each other and that produces nonsense werner On 01/26/2015 07:50 PM, Werner Kassens wrote: in scismalltalk a fork of numericalmethods is used. DhbNormalDistribution in scismalltalk should be exactly the same

Re: [Pharo-users] NumericalMethods and SciSmalltalk

2015-01-26 Thread Werner Kassens
let me rephrase it g just that there are no misunderstandings, NumericalMethods is independent of SciSmalltalk and does work in Pharo4 werner On 01/26/2015 10:22 PM, Ignacio Sniechowski wrote: That was my question. If in Pharo 4 the NumericalMethods package will be deprecated and instead

Re: [Pharo-users] improving print-it in playground

2015-01-24 Thread Werner Kassens
I am still looking for concrete use cases why people need to see the printout in the editor. on my pharo i have usually several workspaces flying around, one of them usually start with Smalltalk garbageCollect . followed by a commented printout. if things get strange the commented printout

Re: [Pharo-users] improving print-it in playground

2015-01-19 Thread Werner Kassens
Hi Doru, works nicely and makes the playground for the first time actually usable for me. i like the way it works: the automatic commenting and that i only need to press enter. werner

Re: [Pharo-users] improving print-it in playground

2015-01-19 Thread Werner Kassens
one thing, i guess it could eventually be preferable if the comment would go on the next line so that one can repeatedly evaluate or print that line. this is at least a common use case for me. werner On 01/19/2015 10:01 AM, Werner Kassens wrote: Hi Doru, works nicely and makes the playground

Re: [Pharo-users] question on syntax negate numbers

2014-11-22 Thread Werner Kassens
Thanks for all the answers, so, for better portability, maybe we should dissallow opals current behavior and only accept -5 and not - 5 as negative numbers? Hi Nicolai, perhaps. if you mean portability pharo-otherLanguage certainly. if you mean otherLanguage-pharo, well you are the

Re: [Pharo-users] question on syntax negate numbers

2014-11-12 Thread Werner Kassens
On 11/12/2014 11:29 AM, José Comesaña wrote: Well, I don't understand why the book says that because in fact you can define a -- binary method: yes, that is what i said, it's just an irritating bug in the book. werner

Re: [Pharo-users] Memoization Question

2014-11-11 Thread Werner Kassens
Hi, now this a nice idea, especially the memoizedUsing:cache idea. i would really appreciate it, if that would be MIT licenced. werner

Re: [Pharo-users] Memoization Question

2014-11-11 Thread Werner Kassens
hi Torsten, thank you for making that possible and thanks to John Cromartie and Sven van Caekenberghe werner

Re: [Pharo-users] question on syntax negate numbers

2014-11-10 Thread Werner Kassens
3 @ - space 5 is what I object to (and Opal allows) with this i have no problems, it follows simple obvious rules as long as one knows that #@ cant be an unary operator. is 4 - 5 two literals, or is it two literals separated by the - operator ? but then there is no situation in which the -

Re: [Pharo-users] question on syntax negate numbers

2014-11-10 Thread Werner Kassens
Of course. i was talking about x -- y not x - - y. werner On 11/10/2014 03:17 PM, Thierry Goubier wrote: I believe that x - - y would give you an error. 4 - - 5 in parsing is a different beast, because you consider - 5 as a single token.

Re: [Pharo-users] question on syntax negate numbers

2014-11-10 Thread Werner Kassens
Let me restate what i meant: if you enter 5--4 in squeak for example, the parser asks you whether you meant 5 - -4 or 5 -- 4. werner On 11/10/2014 03:28 PM, Werner Kassens wrote: Of course. i was talking about x -- y not x - - y. werner On 11/10/2014 03:17 PM, Thierry Goubier wrote: I

Re: [Pharo-users] question on syntax negate numbers

2014-11-10 Thread Werner Kassens
dont know but g let me try yet another attempt at rephrasing this. suppose you ask an intermediate beginner how 5--4 would be parsed, as: a) 5 - -4 b) 5 -- 4 perhaps he does not need to look up the chapter in the pharobook and will choose b). but if he looks into the pharobook he will read under

Re: [Pharo-users] question on syntax negate numbers

2014-11-08 Thread Werner Kassens
but if you omit the space between - and 3 the old compiler understands it too, hence its just a convenience thing that cant lead to misunderstandings, or? btw opal also understands this: -3@2. -- (-3@2) i mean, its obvious nevertheless that - is not a method like negated, but part of a

Re: [Pharo-users] How not to serve an AngularJs application from Pharo

2014-11-07 Thread Werner Kassens
Is ironic if you think about, Pharo really lacks documentation even in basic areas, Are you joking? I spend my time writing books and chapters and their quality is quite good. Hi, i think in the meantime the docu _is quite good. i like the deep into pharo book, that also covered basic areas

Re: [Pharo-users] the simplest program of the world

2014-10-28 Thread Werner Kassens
Hi Hans, i guess you are asking for a way to make a batch file that when double-clicked immediately starts your program? a batch file with something like this: ~/pharo3.0/bin/pharo ~/pharo3.0/shared/yourImage.image ~/pharo3.0/shared/start.st would do that. start.sh should be a text file with

Re: [Pharo-users] the simplest program of the world

2014-10-28 Thread Werner Kassens
small typo, the start script should have the file extension .st werner

[Pharo-users] Glamour question

2014-09-22 Thread Werner Kassens
Hi, if i want to have access to the variables in a workspace and know its window i simply do: window model instVarNamed: 'bindings' now i'd like to know how i do something like that with a GTPlayground that resides in a GLMSystemWindow werner

Re: [Pharo-users] Glamour question

2014-09-22 Thread Werner Kassens
Hi Andrei, oh yes, that answers my question exactly, thank you! Now accessing the bindings of a playground seems like a useful use-case. I'll look to see if I can add a nicer api for this. i agree, otoh grin even workspace doesnt have one, as i have to use #instVarNamed:. werner

  1   2   >