[Pharo-users] Random forest in Pharo
Hi, did anyone implement a Random Forest algorithm in Pharo? https://en.wikipedia.org/wiki/Random_forest -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill
Re: [Pharo-users] [Pharo-dev] Random forest in Pharo
I don't think so. I followup your message on SciSmalltalk mailing-list. This is something that might interested us ;-) On Wed, Oct 14, 2015 at 4:54 PM, Damien Cassouwrote: > Hi, > > did anyone implement a Random Forest algorithm in Pharo? > > https://en.wikipedia.org/wiki/Random_forest > > -- > Damien Cassou > http://damiencassou.seasidehosting.st > > "Success is the ability to go from one failure to another without > losing enthusiasm." --Winston Churchill > -- Serge Stinckwich UCBN & UMI UMMISCO 209 (IRD/UPMC) Every DSL ends up being Smalltalk http://www.doesnotunderstand.org/
[Pharo-users] Pharo 4 debugger
In Pharo 3.0 there was a Add/Remove breakpoint (experimental) method popup menu option. I do not see this capability in version 4.0. Is this feature still available or has it been removed? If still available, then how does one get it instantiated? Brad Selfridge - Brad Selfridge -- View this message in context: http://forum.world.st/Pharo-4-debugger-tp4855663.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Some news from the growing pharo teacher front
Thanks Esteban, Nice to know. Cheers, Offray On 13/10/15 14:24, Esteban A. Maringolo wrote: 2015-09-29 8:43 GMT-03:00 Serge Stinckwich>: Did you have a look to Jupyter notebook ? https://jupyter.org/ This could be nice if we could have a Pharo support for this (already supported by other languages like R, Python, Scala, etc ...). Slightly OT: Google just launched its Datalab product, which is based on Jupyter: https://cloud.google.com/datalab/ Esteban A. Maringolo
Re: [Pharo-users] Exploring Pier
Hola Offray, Thanks for the positive reply. I was hoping you wouldn't take anything I wrote negatively. On 10/13/2015 12:20 PM, Offray Vladimir Luna Cárdenas wrote: Hi Jimmie, On 05/10/15 09:16, Jimmie Houchin wrote: Hello Offray, My apologies for the delay in reply. I have been on holiday. No problem. I'm not as proactive as I would like on this community. I'm trying to gain time/knowledge to contribute more, but there are pending answers from me on interesting topics, so thanks for taking your time to answer. I have grouped your answer in two parts: Pharo related and other tools related. More comments below. Correct. Thanks for the suggestions. I am pretty much wanting to stick with Pharo solutions. I want to use and contribute to the Pharo ecosystem. I believe the more we use our own tools and contribute toward the ecosystem the better our tools and the ecosystem will be. In Pharo I can possibly offer an occasional bug fix, contribute to documentation or tests. [...] In Pharo I have Pharo/Smalltalk. Even a simple user can often contribute in simple ways. Even as a simple user of a Pharo tool. I can submit issues, fix simple issues, improve method or class comments, etc. As I learn the Pharo tools and ecosystem I continually improve my ability to take care of myself and also contribute to the community. I think Pharo is the most user empowering environment I have found. I agree with you. I share your vision of Smalltalk as the most empowering environment I have used. First time we meet (vía EToys, Scratch, BotsInc) I felt in love, but weren't ready for each other and took almost 10 years and Pharo to bring me back (kind of a bittersweet love story). I'm a simple user, but in this last year after returning back I have made stuff I just thought/dream about in other environments. Still a lot of things to learn and rookie code and practice, but I'm improving faster that in any other environment, despite of having not as much time to practice as I would like. Even prototyping is faster... a lot faster. I understand your journey. I too have been a part of this community and Squeak for a long time. However, between what capabilities Squeak/Pharo had and my skill set and project requirements, I have at times had to look elsewhere. Some things require the ability to use external libraries. This sometimes requires skills which I don't have or the current state of FFI/NB isn't friendly for people like me. But I think over time Pharo is becoming more capable and hopefully at some point its interoperability will improve as well. If you have the skills or can live with the few interoperability issues. I haven't found anything that I feel that is as empowering as Pharo. For me my project requirements have changed and I am no longer requiring the use of a proprietary C++/C library. I want to help Pharo too, by making it talk better with other/external ways of thinking/practicing computing. For example, after my talk with Serge about IPtyhon/Jupyter and Grafoscopio (my learning project) it was clearer to my that interactive documentation and data visualization was being bridged with objects via scripting (thanks to embedded playground in the document tree). So you can start thinking in a more "emergent way": documents and scripts instead of a hierarchy of objects and messages, and then go from your scripts in documents to more objectual forms as you clear your mind about the problem. This practice/thinking was far away ten years ago for grown ups in Etoys, BotsInc, as also happened with documentation (they happen elsewhere and not inside the image). I am not sure I understand what you are trying to do here with Jupyter and Grafoscopio. I think Jupyter is exceptionally nice if you are doing Python. I have used it both with Python and Julia. But I don't see why or for what I would use it for if I have a much superior, IMO, live environment in Pharo. Jupyter is a nice option to command line or repl Python. But Pharo (Smalltalk's) image environment is so much more than anything offered easily anywhere else. And yes, the other solutions do offer that as well as they are open source. But the bar is much higher. I now have to understand their ecosystems, languages, and development cultures of a variety of tools. [...] Sure I can find lots and lots of other quality tools in other languages. But each is their own island. And depending on how broadly I spread the net. Different languages, different cultures, different licenses, all independent of each other. [...] I much prefer the Pharo ecosystem and culture. It is home. I know others who like the other tools, and multiplicity of choice. And they feel comfortable there. I prefer Pharo too. I have felt the "red pill" effect talked several times in the Pharo/Smalltalk culture. You just need to enter the matrix sometimes to awake others :-), which means that you share their
Re: [Pharo-users] Renaming a Class triggers debugger
2015-10-14 21:12 GMT+02:00 Lyn Headley: > Hi Ben, > > Thanks for looking into this. I've gone through your steps on my > machine (the image filename is Pharo-40622.image so I assume that is a > build number) and I get the same error you do. As you say, the errors > are not identical but hopefully this will lead to a fix for both. For > continuing my work, I am going to install a fresh image, and hopefully > I can still rename classes as long as there are no MessageBrowsers > open. I'd be interested in hearing other workarounds. > Yes, I think this is just another error. I can now reproduce the first one too. 1. Open fresh 4.0 image (I have 40619) 2. World > System Browser 3. Package pane > Add package > "AAPackage" 4. Class pane > Add class > "AAClass" 5. Check "class-side" (!) 6. Protocol pane > no messages 7. Code pane, add and accept this method test1 self aaclasstestselector 8. select "aaclasstestselector" and choose "senders of it" from the code search context menu A MessageBrowser with one entry opens 9. Again in the SystemBrowser add another method on the class side 10. choose Class pane menu "Rename" 11. rename class AAClass to AAClass2 12. add a new method > > Lyn > > On Wed, Oct 14, 2015 at 7:01 AM, Ben Coman wrote: > >> That sounds like a reasonable choice. Anyhow, with build 50384 I can >> reproduce a similar error as follows... >> >> 1. Open fresh image. >> 2. World > Tools > Recent Messages >> 3. World > System Browser >> 4. Package pane > Add package > "AAPackage" >> 5. Class pane > Add class > "AAClass" >> 6. Protocol pane > no messages >> 7. Code pane > replace template with "test1" and save >> 8. Class pane > right-click "AAClass" > Rename > "AAClass2" > Ok >> 9. Code pane > replace "test1" with "test2" and save >> >> which produces... >> >> UndefinedObject(Object)>>doesNotUnderstand: #timeStamp >> RGMethodDefinition>>stamp >> [ self class parseTimestampFrom: self stamp default: DateAndTime epoch >> ] in RGMethodDefinition>>timeStamp >> [ self at: key put: aBlock value ] in >> IdentityDictionary(Dictionary)>>at:ifAbsentPut: >> IdentityDictionary(Dictionary)>>at:ifAbsent: >> IdentityDictionary(Dictionary)>>at:ifAbsentPut: >> RGMethodDefinition(RGDefinition)>>annotationNamed:ifAbsentPut: >> RGMethodDefinition>>timeStamp >> [ :a :b | a timeStamp > b timeStamp ] in RecentMessageList>>open >> Array(SequenceableCollection)>>mergeFirst:middle:last:into:by: >> Array(SequenceableCollection)>>mergeSortFrom:to:src:dst:by: >> OrderedCollection>>sort: >> OrderedCollection(SequenceableCollection)>>sorted: >> MultiColumnListModel(ListModel)>>items: >> MessageBrowser>>messages: >> ... >> WorldMorph>>doOneCycle >> >> So thanks Lyn, you found a bug. Did you get this same error, or just >> similar? Anyhow, it may be the same root cause. >> >> However I didn't create an issue in the tracker yet, since I wasn't >> sure what the title should be... anyone? >> >> cheers -ben >> >> On Wed, Oct 14, 2015 at 10:27 AM, Lyn Headley wrote: >> > Because Pharo 4 is the latest release. Do I really have to defend this >> > choice? >> > >> > On Tue, Oct 13, 2015 at 2:32 PM, Alexandre Bergel < >> alexandre.ber...@me.com> >> > wrote: >> >> >> >> I have no idea. But why don’t you move to Pharo 5? >> >> >> >> Cheers, >> >> Alexandre >> >> >> >> >> >> > On Oct 13, 2015, at 4:36 PM, Lyn Headley wrote: >> >> > >> >> > Hello, >> >> > >> >> > I'm running pharo 4 and I'm having a problem. I recently renamed a >> >> > class using the rename: menu item in the standard system browser (I >> >> > believe it's called Nautilus) and now I am getting uncaught >> exceptions >> >> > whenever I add or remove a method (three debugger windows pop >> >> > up). Here is the stack trace; any advice? >> >> > >> >> > Thank you. >> >> > >> >> > Lyn >> >> > >> >> > Author: LynHeadley >> >> > Date: 2015-10-13T08:51:16.837987-07:00 >> >> > >> >> > UndefinedObject(Object)>>doesNotUnderstand: #theMetaClass >> >> > RGMetaclassDefinition>>realClass >> >> > RGMethodDefinition(RGElementDefinition)>>realParent >> >> > RGMethodDefinition(RGElementDefinition)>>realClass >> >> > RGMethodDefinition>>methodClass >> >> > ByteSymbol(Symbol)>>value: >> >> > OrderedCollection>>collect: >> >> > MessageBrowser>>buildHierarchyForMessages: >> >> > MessageBrowser>>cacheHierarchyForClasses: >> >> > MessageBrowser>>messages: >> >> > [ >> >> > (item methodClass notNil and: [ item methodClass isObsolete not ]) >> >> > ifTrue: [ >> >> > | sel text boolean | >> >> > boolean := textModel hasUnacceptedEdits. >> >> > boolean >> >> > ifTrue: [ text := textModel pendingText ]. >> >> > sel := listModel selectedItem. >> >> > self >> >> > messages: >> >> > (listModel listItems >> >> > add: item
Re: [Pharo-users] Renaming a Class triggers debugger
Hi Ben, Thanks for looking into this. I've gone through your steps on my machine (the image filename is Pharo-40622.image so I assume that is a build number) and I get the same error you do. As you say, the errors are not identical but hopefully this will lead to a fix for both. For continuing my work, I am going to install a fresh image, and hopefully I can still rename classes as long as there are no MessageBrowsers open. I'd be interested in hearing other workarounds. Lyn On Wed, Oct 14, 2015 at 7:01 AM, Ben Comanwrote: > That sounds like a reasonable choice. Anyhow, with build 50384 I can > reproduce a similar error as follows... > > 1. Open fresh image. > 2. World > Tools > Recent Messages > 3. World > System Browser > 4. Package pane > Add package > "AAPackage" > 5. Class pane > Add class > "AAClass" > 6. Protocol pane > no messages > 7. Code pane > replace template with "test1" and save > 8. Class pane > right-click "AAClass" > Rename > "AAClass2" > Ok > 9. Code pane > replace "test1" with "test2" and save > > which produces... > > UndefinedObject(Object)>>doesNotUnderstand: #timeStamp > RGMethodDefinition>>stamp > [ self class parseTimestampFrom: self stamp default: DateAndTime epoch > ] in RGMethodDefinition>>timeStamp > [ self at: key put: aBlock value ] in > IdentityDictionary(Dictionary)>>at:ifAbsentPut: > IdentityDictionary(Dictionary)>>at:ifAbsent: > IdentityDictionary(Dictionary)>>at:ifAbsentPut: > RGMethodDefinition(RGDefinition)>>annotationNamed:ifAbsentPut: > RGMethodDefinition>>timeStamp > [ :a :b | a timeStamp > b timeStamp ] in RecentMessageList>>open > Array(SequenceableCollection)>>mergeFirst:middle:last:into:by: > Array(SequenceableCollection)>>mergeSortFrom:to:src:dst:by: > OrderedCollection>>sort: > OrderedCollection(SequenceableCollection)>>sorted: > MultiColumnListModel(ListModel)>>items: > MessageBrowser>>messages: > ... > WorldMorph>>doOneCycle > > So thanks Lyn, you found a bug. Did you get this same error, or just > similar? Anyhow, it may be the same root cause. > > However I didn't create an issue in the tracker yet, since I wasn't > sure what the title should be... anyone? > > cheers -ben > > On Wed, Oct 14, 2015 at 10:27 AM, Lyn Headley wrote: > > Because Pharo 4 is the latest release. Do I really have to defend this > > choice? > > > > On Tue, Oct 13, 2015 at 2:32 PM, Alexandre Bergel < > alexandre.ber...@me.com> > > wrote: > >> > >> I have no idea. But why don’t you move to Pharo 5? > >> > >> Cheers, > >> Alexandre > >> > >> > >> > On Oct 13, 2015, at 4:36 PM, Lyn Headley wrote: > >> > > >> > Hello, > >> > > >> > I'm running pharo 4 and I'm having a problem. I recently renamed a > >> > class using the rename: menu item in the standard system browser (I > >> > believe it's called Nautilus) and now I am getting uncaught exceptions > >> > whenever I add or remove a method (three debugger windows pop > >> > up). Here is the stack trace; any advice? > >> > > >> > Thank you. > >> > > >> > Lyn > >> > > >> > Author: LynHeadley > >> > Date: 2015-10-13T08:51:16.837987-07:00 > >> > > >> > UndefinedObject(Object)>>doesNotUnderstand: #theMetaClass > >> > RGMetaclassDefinition>>realClass > >> > RGMethodDefinition(RGElementDefinition)>>realParent > >> > RGMethodDefinition(RGElementDefinition)>>realClass > >> > RGMethodDefinition>>methodClass > >> > ByteSymbol(Symbol)>>value: > >> > OrderedCollection>>collect: > >> > MessageBrowser>>buildHierarchyForMessages: > >> > MessageBrowser>>cacheHierarchyForClasses: > >> > MessageBrowser>>messages: > >> > [ > >> > (item methodClass notNil and: [ item methodClass isObsolete not ]) > >> > ifTrue: [ > >> > | sel text boolean | > >> > boolean := textModel hasUnacceptedEdits. > >> > boolean > >> > ifTrue: [ text := textModel pendingText ]. > >> > sel := listModel selectedItem. > >> > self > >> > messages: > >> > (listModel listItems > >> > add: item asFullRingDefinition; > >> > yourself). > >> > listModel setSelectedItem: sel. > >> > boolean > >> > ifTrue: [ textModel pendingText: text ] ] ] in > >> > MessageBrowser>>methodAdded: > >> > WorldState>>runStepMethodsIn: > >> > WorldMorph>>runStepMethods > >> > WorldState>>doOneCycleNowFor: > >> > WorldState>>doOneCycleFor: > >> > WorldMorph>>doOneCycle > >> > [ > >> > [ > >> > World doOneCycle. > >> > Processor yield. > >> > false ] whileFalse: [ ] ] in MorphicUIManager>>spawnNewProcess > >> > [ > >> > self value. > >> > Processor terminateActive ] in BlockClosure>>newProcess > >> > > >> > >> -- > >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > >> Alexandre Bergel http://www.bergel.eu > >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > >> > >> >
Re: [Pharo-users] Pharo 4 debugger
2015-10-14 20:28 GMT+02:00 bsselfri...@gmail.com: > In Pharo 3.0 there was a Add/Remove breakpoint (experimental) method popup > menu option. I do not see this capability in version 4.0. Is this feature > still available or has it been removed? No, it was removed. (we moved from "old" compiler to Opal and had to remove the decompiler. Without a working decompiler, the debugger showed wrong code when stepping through a method with breakpoints) > If still available, then how does > one get it instantiated? > In pharo 5, we have a new kind of breakpoints, but they don't work well at the moment. > > Brad Selfridge > > > > - > Brad Selfridge > -- > View this message in context: > http://forum.world.st/Pharo-4-debugger-tp4855663.html > Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com. > >
Re: [Pharo-users] Renaming a Class triggers debugger
On 14/10/15 22:23, Nicolai Hess wrote: I can now reproduce the first one too. 1. Open fresh 4.0 image (I have 40619) Confirmed in 40622 When having the senders window open, renaming the class results in some nil() instead of AAClass4 class (as yet unclassified) Stephan
Re: [Pharo-users] Renaming a Class triggers debugger
That sounds like a reasonable choice. Anyhow, with build 50384 I can reproduce a similar error as follows... 1. Open fresh image. 2. World > Tools > Recent Messages 3. World > System Browser 4. Package pane > Add package > "AAPackage" 5. Class pane > Add class > "AAClass" 6. Protocol pane > no messages 7. Code pane > replace template with "test1" and save 8. Class pane > right-click "AAClass" > Rename > "AAClass2" > Ok 9. Code pane > replace "test1" with "test2" and save which produces... UndefinedObject(Object)>>doesNotUnderstand: #timeStamp RGMethodDefinition>>stamp [ self class parseTimestampFrom: self stamp default: DateAndTime epoch ] in RGMethodDefinition>>timeStamp [ self at: key put: aBlock value ] in IdentityDictionary(Dictionary)>>at:ifAbsentPut: IdentityDictionary(Dictionary)>>at:ifAbsent: IdentityDictionary(Dictionary)>>at:ifAbsentPut: RGMethodDefinition(RGDefinition)>>annotationNamed:ifAbsentPut: RGMethodDefinition>>timeStamp [ :a :b | a timeStamp > b timeStamp ] in RecentMessageList>>open Array(SequenceableCollection)>>mergeFirst:middle:last:into:by: Array(SequenceableCollection)>>mergeSortFrom:to:src:dst:by: OrderedCollection>>sort: OrderedCollection(SequenceableCollection)>>sorted: MultiColumnListModel(ListModel)>>items: MessageBrowser>>messages: ... WorldMorph>>doOneCycle So thanks Lyn, you found a bug. Did you get this same error, or just similar? Anyhow, it may be the same root cause. However I didn't create an issue in the tracker yet, since I wasn't sure what the title should be... anyone? cheers -ben On Wed, Oct 14, 2015 at 10:27 AM, Lyn Headleywrote: > Because Pharo 4 is the latest release. Do I really have to defend this > choice? > > On Tue, Oct 13, 2015 at 2:32 PM, Alexandre Bergel > wrote: >> >> I have no idea. But why don’t you move to Pharo 5? >> >> Cheers, >> Alexandre >> >> >> > On Oct 13, 2015, at 4:36 PM, Lyn Headley wrote: >> > >> > Hello, >> > >> > I'm running pharo 4 and I'm having a problem. I recently renamed a >> > class using the rename: menu item in the standard system browser (I >> > believe it's called Nautilus) and now I am getting uncaught exceptions >> > whenever I add or remove a method (three debugger windows pop >> > up). Here is the stack trace; any advice? >> > >> > Thank you. >> > >> > Lyn >> > >> > Author: LynHeadley >> > Date: 2015-10-13T08:51:16.837987-07:00 >> > >> > UndefinedObject(Object)>>doesNotUnderstand: #theMetaClass >> > RGMetaclassDefinition>>realClass >> > RGMethodDefinition(RGElementDefinition)>>realParent >> > RGMethodDefinition(RGElementDefinition)>>realClass >> > RGMethodDefinition>>methodClass >> > ByteSymbol(Symbol)>>value: >> > OrderedCollection>>collect: >> > MessageBrowser>>buildHierarchyForMessages: >> > MessageBrowser>>cacheHierarchyForClasses: >> > MessageBrowser>>messages: >> > [ >> > (item methodClass notNil and: [ item methodClass isObsolete not ]) >> > ifTrue: [ >> > | sel text boolean | >> > boolean := textModel hasUnacceptedEdits. >> > boolean >> > ifTrue: [ text := textModel pendingText ]. >> > sel := listModel selectedItem. >> > self >> > messages: >> > (listModel listItems >> > add: item asFullRingDefinition; >> > yourself). >> > listModel setSelectedItem: sel. >> > boolean >> > ifTrue: [ textModel pendingText: text ] ] ] in >> > MessageBrowser>>methodAdded: >> > WorldState>>runStepMethodsIn: >> > WorldMorph>>runStepMethods >> > WorldState>>doOneCycleNowFor: >> > WorldState>>doOneCycleFor: >> > WorldMorph>>doOneCycle >> > [ >> > [ >> > World doOneCycle. >> > Processor yield. >> > false ] whileFalse: [ ] ] in MorphicUIManager>>spawnNewProcess >> > [ >> > self value. >> > Processor terminateActive ] in BlockClosure>>newProcess >> > >> >> -- >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: >> Alexandre Bergel http://www.bergel.eu >> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. >> >> >> >> >
[Pharo-users] Data Kitchen: A data visualization project powered by Pharo. Feedback welcomed.
Hi, In my effort to more create more meaningful computer mediated experiences for me and other and to use Pharo as a medium for that I have proposed the following project: --- - Name: Data Kitchen: Frictionless data, moldable tools, pocket infrastructures & permanent workshops for community empowerment - url: https://www.newschallenge.org/challenge/data/entries/data-kitchen-frictionless-data-moldable-tools-pocket-infrastructures-permanent-workshops-for-community-empowerment --- It combines the ideas of moldable tools, agile visualization in this community with some of other like frictionless data, by Open Knowledge Foundation and what I call "pocket infrastructures". Any feedback is welcomed. You can make it here in this list, but if you can made it on their platform, from a simple "heart" (+1) or drop me a line, it would be greatly appreciated and it will help to make more visible the project. Thanks, Offray