[Pharo-users] Re: [Pharo-dev] Open Call: Object-Centric Breakpoints experiment

2024-05-14 Thread Steven Costiou
2024-02-02 14:14, Steven Costiou a écrit : > Dear Community, > > as part of a research project in the EVREF team, we are looking for people to > participate to an empirical experiment on object-centric breakpoints - a > debugging tool present in Pharo 9. > > Many peop

[Pharo-users] IWST 24 — International Workshop on Smalltalk Technologies Lille, France; July 8th to 11th, 2024

2024-03-14 Thread Steven Costiou
will take place only with a minimum of six submissions. Notice also that to be eligible, a paper/abstract must be presented at the workshop by one of the author and that the presenting author must be registered at the ESUG conference. PROGRAM CHAIRS * Steven Costiou, Inria Lille, France (chair

[Pharo-users] ESUG24 Call for Student Volunteers, 8-11 July, Lille, France

2024-03-12 Thread Steven Costiou
CALL FOR STUDENT VOLUNTEERS, ESUG 2024, 8-11 JULY, LILLE, FRANCE Student volunteers help the conference running smoothly; in return, they have free accommodations, while still having most of the time to enjoy the conference. PAY ATTENTION: the places are limited so do not wait till the last

[Pharo-users] Open PhD position on debugging at Inria Lille

2024-02-08 Thread Steven Costiou
Hello, we have a PhD position opening at Lille, France. See all details here: https://recrutement.inria.fr/public/classic/fr/offres/2024-07154 Steven. _Summary of the research proposal:_ ### Application development inevitably introduces bugs. Often, it's not clear why a code change

[Pharo-users] Open Call: Object-Centric Breakpoints experiment

2024-02-02 Thread Steven Costiou
Dear Community, as part of a research project in the EVREF team, we are looking for people to participate to an empirical experiment on object-centric breakpoints - a debugging tool present in Pharo 9. Many people from the community already participated, and we thank them very much  We are

[Pharo-users] Open Call: Object-Centric Breakpoints experiment

2023-11-21 Thread Steven Costiou
Dear Community, We would like to invite you to participate to our experimental study on Object-Centric Breakpoints. This study aims to evaluate and to understand how Object-Centric Breakpoints impacts the debugging activity. This experiment takes place in **Pharo 9**. In this experiment, we

[Pharo-users] Re: How to show the process name in the debugger?

2022-04-26 Thread Steven Costiou
Hi, in Pharo 9-11, from the StDebugger you can access the debugged process using self session interruptedProcess name In the debugger class you can prepend that instruction in the window title update methods: StDebugger>>initializeWindow: aWindowPresenter super initializeWindow:

[Pharo-users] One PhD and two internships offers on object-centric debugging at Inria Lille

2021-11-09 Thread Steven Costiou
Hello, Inria Lille is recruiting one phd student and two interns to work on object-centric debugging within the OCRE project (ANR). DESCRIPTION OF THE PROJECT Debugging is difficult and costly. Object-centric debugging is a young technique arguing that focusing the scope of debugging on

Re: [Pharo-users] How to print playground contents as I type them.

2020-08-21 Thread Steven Costiou
Hi, no idea if that's what you are looking to, but there is RubScrolledTextMorph>>whenKeystrokeInTextArea: anAnnouncement self announcer announce: (anAnnouncement copy morph: self) I instrumented that in one of my projects to capture what's written in text areas and print it on the

Re: [Pharo-users] Disable halt and breakpoints globally

2020-08-19 Thread Steven Costiou
cause you cannot add/remove them within > the debugger, and sometimes with nested blocks it is hard to specify which > expression should get it. > > Regards! > > Esteban A. Maringolo > > On Wed, Aug 19, 2020 at 5:27 AM Steven Costiou > wrote: > > So, I jus

Re: [Pharo-users] Disable halt and breakpoints globally

2020-08-19 Thread Steven Costiou
So, I just checked and we have this view in Pharo 9 with all halts and breakpoints. We just need to put a global checkbox to (de)activate everything at once (and polish a little bit the view). Le 2020-08-19 10:11, Steven Costiou a écrit : > Hi, > > in Pharo 9/NewTools

Re: [Pharo-users] Disable halt and breakpoints globally

2020-08-19 Thread Steven Costiou
Hi, in Pharo 9/NewTools we added the possibility to disable a halt or a breakpoint through a checkbox in the inspector or from a view in the debugger. For example this is an inspector on a test object: When a halt is disabled this way, it is still in your code but instead of halting it logs

[Pharo-users] Fwd: [Pharo-dev] Fwd: Help Needed! Survey on developer knowledge of Breakpoints/Watchpoints

2020-06-17 Thread Steven Costiou
du Québec à Chicoutimi, Chicoutimi, Québec, Canada. - Steven Costiou, Inria Lille, France. - YANN-GAËL GUÉHÉNEUC, Concordia University, Montreal, Quebec, Canada. - STÉPHANE DUCASSE, Inria Lille, France.

Re: [Pharo-users] Slots and Metalink

2019-04-03 Thread Steven Costiou
Also, I do not think metalinks could work on #write:to: method from slots, because that method is not used at runtime (I do not remember exactly but maybe somebody knows the details...). Le 2019-04-03 16:20, Steven Costiou a écrit : > Hi, > > if you are using Pharo7, you could

Re: [Pharo-users] Slots and Metalink

2019-04-03 Thread Steven Costiou
Hi, if you are using Pharo7, you could do either on a class (affects all instances) or on an object (affects only the target instance): > classOrObject link: yourMetaLink toSlotNamed: #slotName option: #write It will install the metalink on all write accesses to the slot. Note that if you

Re: [Pharo-users] Iliad on Pharo 7.0

2019-02-05 Thread Steven Costiou
Hi, I looked at it this week end but in the end had no time to go through. I will surely do it, but it will take time as I have too much to do at the moment (say, not before March i think). Unless somebody does it before I can.. Steven. Le 2019-02-05 17:37, Siemen Baader a écrit : > Hi,

Re: [Pharo-users] How to intercept instvar write - MetaLinks + anonymous subclass problem

2019-02-02 Thread Steven Costiou
> Le 2019-02-02 16:26, Petr Fischer via Pharo-users a écrit : > > Thanks for answer! I want to detect instvar writes only for objects > (instances), that was previously fetched from external "datastore" (DB like), > so I can persist changed objects only back to the datastore at the end of >

Re: [Pharo-users] How to intercept instvar write - MetaLinks + anonymous subclass problem

2019-02-02 Thread Steven Costiou
> is possible to intercept (before writeú all instance variable writes on every > existing objects? > > Ok, I learned more about MetaLinks and it's perfectly possible to intercept > instance variable writes via. installing MetaLink into object instance (cool) > - then I can intercept instvar

Re: [Pharo-users] Is it possible to follow an object through a computation?

2019-01-03 Thread Steven Costiou via Pharo-users
--- Begin Message --- Hi, if you are using Pharo 7 I have some work on object-centric debugging that could do that, using Reflectivity. For example, with object-centric metalinks you could do the following: ##get your object (here are two instances of a trivial class which only has a "name"

Re: [Pharo-users] Tracing Method Calls

2018-07-27 Thread Steven Costiou
Hi, it may not be actively maintained but Phantom has recently been ported to Pharo 6/6.1 https://github.com/InesSosa95/PHANtom You could also use Reflectivity (look for MetaLink class), which should not be hard to understand if you are familiar with aspects (although that is not aspects).

Re: [Pharo-users] Pharo 6, bad debugger behaviour

2018-06-08 Thread Steven Costiou
Concerning the bug 22085, i commented on fogbuzz: > I believe it is because when running test cases, it runs through: > > runCaseForDebug: aTestCase > [...call test code...] > on: self class failure , self class skip, self class warning, self class error > do: [:ex | ex sunitAnnounce: aTestCase

[Pharo-users] What are RBPattern* classes in the AST?

2018-03-31 Thread Steven Costiou
Hi, i was browsing the classes of the AST and i am curious about the RBPattern* classes. What are they used for? The RBPatternParser's comment says that it is used "to search and transform source code". After looking a bit in the senders and class refs, it seems it is used for refactorings

Re: [Pharo-users] Looking for small boards and tiny computers which can run Pharo

2018-03-23 Thread Steven Costiou
Hi, thanks for the links :) Yes i am still working on this topic, however i chose to focus on Raaspbery Pi. It is quite handy to have an embedded linux to experiment things. I do not have a public page on my projects at the moment, but there is the Pharo-iot github project that gather work of

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-26 Thread Steven Costiou
nario where you want to change the method? > > Cheers, > > On Sat, Feb 24, 2018 at 11:23 AM, Steven Costiou <steven.cost...@kloum.io> > wrote: > >> Hi, >> >> is this possible somehow to: >> >> - load compiled code in th

Re: [Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-25 Thread Steven Costiou
Le 2018-02-25 08:37, Stephane Ducasse a écrit : > On Sat, Feb 24, 2018 at 11:23 AM, Steven Costiou > <steven.cost...@kloum.io> wrote: > >> Hi, >> >> is this possible somehow to: >> >> - load compiled code in the image? like loading a compiled metho

[Pharo-users] how to load compiled code in the image and to change methods already on the stack?

2018-02-24 Thread Steven Costiou
Hi, is this possible somehow to: - load compiled code in the image? like loading a compiled method instead of loading source then compiling it? - dynamically change a method that is on the stack? If so, how? :) Steven.

Re: [Pharo-users] [Iliad] raw HTML in Iliad

2018-02-13 Thread Steven Costiou
Hi, i think just doing e html: '' also works. Elements should not be instantiated like you do, there is an interface for each element that can be called on "e". e div, e html:, e h1:, etc. The interface instantiates the right class behind. You can find this somewhere in the core

Re: [Pharo-users] Trying to test Phantom / aspects in Pharo

2018-01-15 Thread Steven Costiou
eve it > is discontinued. If you contact Johan I will be glad to collaborate on this > for a good cause > > On Sat, Jan 13, 2018 at 10:24 AM Stephane Ducasse <stepharo.s...@gmail.com> > wrote: You should ask Johan Fabry. > Now working at Raincode in belgium. >

Re: [Pharo-users] Trying to test Phantom / aspects in Pharo

2018-01-15 Thread Steven Costiou
e glad to collaborate on this > for a good cause > > On Sat, Jan 13, 2018 at 10:24 AM Stephane Ducasse <stepharo.s...@gmail.com> > wrote: > >> You should ask Johan Fabry. >> Now working at Raincode in belgium. >> >> Stef >> >> On Sat, J

[Pharo-users] Trying to test Phantom / aspects in Pharo

2018-01-13 Thread Steven Costiou
Hi, i am trying to test PHANtom but so far i can't get it to work. I found an image here https://pleiad.cl/research/software/phantom and i made it run on a vm from 2013. But the examples crashes (PhantomDemo), and i cannot make my own examples work either (simple object interception).

[Pharo-users] How to justify text in pillar booklets ?

2018-01-03 Thread Steven Costiou
Hi, i am using the pillar booklet tools from https://github.com/SquareBracketAssociates/Booklet-PublishingAPillarBooklet How can i justify all paragraphs in the generated spiral book, instead of having all of it aligned to left ? Steven.

Re: [Pharo-users] Pharo things analog reads ?

2017-12-23 Thread Steven Costiou
: > On Wednesday 20 December 2017 03:50 AM, Steven Costiou wrote: > >> So connecting an Arduino-like device to the raspberry that is >> configured as an i2c slave, Pharo can ask for analog values. I will >> try tomorrow with analog sensors, I will share if i manage t

Re: [Pharo-users] Pharo things analog reads ?

2017-12-20 Thread Steven Costiou
Thanks for the link, also ;) Le 2017-12-20 05:20, K K Subbu a écrit : > On Wednesday 20 December 2017 03:50 AM, Steven Costiou wrote: > >> So connecting an Arduino-like device to the raspberry that is >> configured as an i2c slave, Pharo can ask for analog values. I wi

Re: [Pharo-users] Pharo things analog reads ?

2017-12-20 Thread Steven Costiou
Yeah i know this exists, but i have none of these and i have plenty of trinkets, and i need to do analog reads. I2c is interesting anyway, some devices need it i believe. Le 2017-12-20 05:20, K K Subbu a écrit : > On Wednesday 20 December 2017 03:50 AM, Steven Costiou wrote: >

Re: [Pharo-users] Pharo things analog reads ?

2017-12-19 Thread Steven Costiou
com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi?view=all but it uses more pins on the board. Steven. Le 2017-12-17 19:48, Denis Kudriashov a écrit : > Hi Steven > > 2017-12-17 12:40 GMT+01:00 Steven Costiou <steven.cost...@kloum.io>: > >> Hi,

[Pharo-users] Pharo things analog reads ?

2017-12-17 Thread Steven Costiou
Hi, For what i know, raspberry pi boards cannot read analog sensors (which are the most interesting imo), except by connecting to some kind of bridges or to Arduino boards. In the PharoTHings code i see that there are Arduino classes, and also it is based on wiringpi and wiringpi provides

Re: [Pharo-users] Metalinks arguments as Array ?

2017-12-13 Thread Steven Costiou
Ok, i found it digging the mailing list... Working example is in testReifySendArgsAsArray method, where it suffice to use link options: #(argsAsArray). I should try searching in the list before asking...

[Pharo-users] Metalinks arguments as Array ?

2017-12-13 Thread Steven Costiou
Hi, can we somehow provide an array of reifications to a metalink metaobject ? For ex.: link metaObject: [:args| do stuff with args]. link selector: #valueWithArguments:. link arguments: #(object node link receiver sender) So that when the link executes, args in the block would be an

Re: [Pharo-users] reloading ffi library

2017-12-07 Thread Steven Costiou
Thanks :) Will try it :) Le 2017-12-07 16:41, Esteban Lorenzano a écrit : > you need to reset FFI: > > FFIMethodRegistry resetAll. > > Esteban > >> On 7 Dec 2017, at 16:04, Steven Costiou <steven.cost...@kloum.io> wrote: >> >> Hi, >&g

[Pharo-users] reloading ffi library

2017-12-07 Thread Steven Costiou
Hi, noob question: i installed bloc and tried to run examples. It worked well on Fedora 27 but not on latest Debian 64 bits because the path of libcairo.so.2 was wrong. So i fixed it in the code, but when trying the bloc examples again the lib path is still wrong (in the debugger). Is

Re: [Pharo-users] Calypso bugs with metalinks in latest 7

2017-12-07 Thread Steven Costiou
> To disable critiques look at Problems section in github Calypso [1] Aw... sorry. I didn't read the whole page before so i didn't see it... thanks. Links: -- [1] https://github.com/dionisiydk/Calypso#problems

[Pharo-users] Calypso bugs with metalinks in latest 7

2017-12-07 Thread Steven Costiou
Hi, running Reflectivity tests (e.g. ReflectivityReificationTest) provokes errors and tests fails: RGMethodDefinition did not understand #isDeprecated. Seems to be located in MetaLinkChanged calypso extension (the 4 methods provoke the same bug). To reproduce it i used the launcher to get

Re: [Pharo-users] How to remove method body?

2017-12-03 Thread Steven Costiou
For example that works for me: |ast| ast := (MyClass >> #printOn:) ast. ast body: (MyClass >> #returnSelf) ast body. MyClass compile: ast newSource Le 2017-12-03 23:42, Steven Costiou a écrit : > Hi, > > just after your modifications, from the compiled method try:

Re: [Pharo-users] How to remove method body?

2017-12-03 Thread Steven Costiou
Hi, just after your modifications, from the compiled method try: ObjSkeletonMock compile: self ast newSource Maybe not the most elegant but it works. Steven. Le 2017-12-03 22:31, Stephane Ducasse a écrit : > Hi > > to prepare some code for students I want to convert methods into a >

Re: [Pharo-users] Bloc texts font size

2017-10-20 Thread Steven Costiou
> measurement will still be broken, though... > > Other than that you code looks good! > > Cheers, > Alex > On 20 October 2017 at 15:04, Steven Costiou <steven.cost...@kloum.io> wrote: > >> Hi, >> >> i am trying to set the font size of a BlT

[Pharo-users] Bloc texts font size

2017-10-20 Thread Steven Costiou
Hi, i am trying to set the font size of a BlTextElement, and i do not have much success. I use the following code to add the text element, where 'model' is a string. First, if the string is '0.0' then the font size is correct (see screenshot). But, if for example the value is '21.0' then the

Re: [Pharo-users] How to recover selections in a fastlist after an update

2017-10-13 Thread Steven Costiou
this selection. Le 2017-10-13 13:33, Ben Coman a écrit : > On Fri, Oct 13, 2017 at 5:53 PM, Steven Costiou <steven.cost...@kloum.io> > wrote: > >> Hi, >> >> I am using fastlists in a browser inspired from glmexamples, and when i use >> a stepping and that i

[Pharo-users] How to recover selections in a fastlist after an update

2017-10-13 Thread Steven Costiou
Hi, I am using fastlists in a browser inspired from glmexamples, and when i use a stepping and that i update the browser (update method) all selections in lists are lost. Is there an automatic way to recover the selections or does it have to be handled in my code ? If so, i don't understand

Re: [Pharo-users] how to update a pane in a customized inspector

2017-10-10 Thread Steven Costiou
It works :) Thanks :) Yes that is the video i was looking for :) Le 2017-10-10 13:26, Andrei Chis a écrit : > Hi, > > On Tue, Oct 10, 2017 at 11:31 AM, Steven Costiou <steven.cost...@kloum.io> > wrote: > >> Hi, >> >> I am trying to customize an in

[Pharo-users] how to update a pane in a customized inspector

2017-10-10 Thread Steven Costiou
Hi, I am trying to customize an inspector with a code browser, and I have in a compose method of my own browser the following: [...] browser transmit from: #methods; fromOutsidePort: #entity; to: #source; when: [ :method |

Re: [Pharo-users] Hiding the cursor in pharo and/or bloc

2017-10-03 Thread Steven Costiou
be always blank. > Something like this: > >> Cursor classVariables associationsDo: [ :each | each value: Cursor blank ] > > 2017-10-03 9:38 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > > Ah, thanks. So i will look at Morphic to see if i can do that. > &g

Re: [Pharo-users] Hiding the cursor in pharo and/or bloc

2017-10-03 Thread Steven Costiou
Ah, thanks. So i will look at Morphic to see if i can do that. Steven. Le 2017-10-02 22:30, Aliaksei Syrel a écrit : > Hi Steven, > > What you see is not Bloc's cursor (there is no cursor in bloc) > It is a Morphic cursor :) > > Cheers, > Alex > On 2 Octob

[Pharo-users] Hiding the cursor in pharo and/or bloc

2017-10-02 Thread Steven Costiou
Hi, i've been playing with bloc, and i am trying to completely remove the cursor (i.e. always display a blank cursor). I can't find how. Removing the Pharo cursor would also be ok, but i can't either. I can only show a blank cursor for a few moments but after moving the mouse too much it becomes

Re: [Pharo-users] How to find if a method is being executed in a given process

2017-09-25 Thread Steven Costiou
Le 2017-09-25 17:47, Stephane Ducasse a écrit : > This is exactly my usecase, i need to remove code that may be called > by a method on the stack - and i know exactly which method. However my > base hypothesis is that it is in an already running process (maybe a > loop) and that part i cannot

Re: [Pharo-users] How to find if a method is being executed in a given process

2017-09-25 Thread Steven Costiou
Le 2017-09-25 12:21, jtuc...@objektfabrik.de wrote : > Steven > > You could add use a semaphore if changing code is an option. > We once used MethodWrappers in VAST to answer a similar question regarding > whether a body of code can be removed from a system. > > Joachim This is exactly my

[Pharo-users] How to find if a method is being executed in a given process

2017-09-25 Thread Steven Costiou
Hi, how can i know if a given method is being executed ? For ex.: process := [[mycondition] whileTrue:[ myObject doStuff. myDelay wait]] fork I want to suspend process and find if doStuff is being executed or if process is waiting. How could i do that ? Steven.

Re: [Pharo-users] Metalinks UI... ?

2017-08-28 Thread Steven Costiou
d > changed... anyway, it is document. > > In metalink-wrapper branch there are also two undocumented classes > simplifying a bit the usage of metalinks, but I forgot to merge it and > document it... so. :) > > Peter > > On Mon, Aug 28, 2017 at 7:48 PM, Steven Cos

Re: [Pharo-users] Metalinks UI... ?

2017-08-28 Thread Steven Costiou
> You can also enable something similar for when you have your own metalink > attached to a particular AST node. > > Peter > > On Mon, Aug 28, 2017 at 4:28 PM, Steven Costiou <steven.cost...@kloum.io> > wrote: > >> Hi, >> >> i think somebody told me (

[Pharo-users] Metalinks UI... ?

2017-08-28 Thread Steven Costiou
Hi, i think somebody told me (i do not remember who) that an other somebody (whose name i don't remember either) made a very basic UI for metalink creation or management. Would somebody know of such project and where to find it ? Thanks, Steven.

Re: [Pharo-users] Looking for small boards and tiny computers which can run Pharo

2017-07-30 Thread Steven Costiou
tchip.com/pages/chip > > If I get some free time I can poke at these and see how well Squeak etc runs. > > cheers > > bruce > > _24 July 2017 21:30 Steven Costiou <steven.cost...@kloum.io> wrote:_ > >> Hi, >> >> i am looking for: >

[Pharo-users] Looking for small boards and tiny computers which can run Pharo

2017-07-24 Thread Steven Costiou
Hi, i am looking for: - small hardware, boards/computers, "embeddable" devices, etc. that can run Pharo (except Raspberry pi that i already know) - robots, flying drones or things alike with an open linux which can possibly run Pharo Could somebody points me to documentation or web sites

Re: [Pharo-users] Anonymous classes performances

2017-06-17 Thread Steven Costiou
to compute enough speed tests and do an accurate mean...) Steven. Le 2017-06-16 18:14, Steven Costiou a écrit : > You can find the code below. I just change the call to m by m1 to test the > two methods. > > I started again in a fresh pharo 6 image and now the results seem

Re: [Pharo-users] Anonymous classes performances

2017-06-16 Thread Steven Costiou
: > Hi Steven. > > Could you show code which you measure? > > 2017-06-16 17:17 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> I have been playing a bit with anonymous subclasses, and instances of anon >> subclasses seem slower to execute code

[Pharo-users] Anonymous classes performances

2017-06-16 Thread Steven Costiou
I have been playing a bit with anonymous subclasses, and instances of anon subclasses seem slower to execute code than "regular" subclasses instances, but sometimes they reach equivalent performances (for code defined in anon-subclasses). I don't understand why. I have a class A with a method m.

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

2017-06-15 Thread Steven Costiou
k you both :) Steven. Le 2017-06-14 22:08, werner kassens a écrit : > 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 collect

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

2017-06-14 Thread Steven Costiou
e square root law is working against you. 10,000 > repetitions would give you an interval about 10% of the width of 100 > repetitions, 1,000,000 repetitions would reduce it to 1%. > > Hope this is helpful > > Peter Kenny > > FROM: Pharo-users [mailto:pharo-users-boun...

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

2017-06-14 Thread Steven Costiou
Hi, i'm having trouble doing benchmarks in Pharo, at least i don't understand the results (maybe i'm missing something). I want to compare anonymous subclasses lookup speed with standard pharo classes lookup speed. I have a method m and a method m2 that execute the following code: ^ 100

Re: [Pharo-users] Remote debugger: do i need identical images ?

2017-06-12 Thread Steven Costiou
Le 2017-06-12 16:27, Denis Kudriashov a écrit : > Hi. > > 2017-06-12 16:03 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> Hi, >> >> when using the Pharo remote debugger, we have a server side (the remote >> application) and a cli

[Pharo-users] Remote debugger: do i need identical images ?

2017-06-12 Thread Steven Costiou
Hi, when using the Pharo remote debugger, we have a server side (the remote application) and a client side (the local computer used to debug). Apart from the remote debugger itself, do both images need to have exactly the same code - especially the application itself - or could they be

Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Steven Costiou
Kudriashov a écrit : > 2017-06-07 16:43 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> Yes but when you do that you loose all the states from "a" (at least the >> values). You have to do state migration management... > > You just need extr

Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Steven Costiou
Yes but when you do that you loose all the states from "a" (at least the values). You have to do state migration management... Le 2017-06-07 16:18, Denis Kudriashov a écrit : > 2017-06-07 14:53 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> I want to

Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Steven Costiou
se." > > Vincent > > DE : Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] DE LA PART DE > Steven Costiou > ENVOYÉ : mercredi 7 juin 2017 15:18 > À : Any question about pharo is welcome > OBJET : Re: [Pharo-users] How to migrate an object to a subclass of i

Re: [Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Steven Costiou
ill use. > > I hope that it will help you > > Vincent > > DE : Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] DE LA PART DE > Steven Costiou > ENVOYÉ : mercredi 7 juin 2017 14:54 > À : Pharo users users > OBJET : [Pharo-users] How to migrate an object to

[Pharo-users] How to migrate an object to a subclass of its class but with new inst vars ?

2017-06-07 Thread Steven Costiou
Hi, i'm trying to migrate an object from a given class A to a subclass of A with new inst vars. Can't get it to work. I have a class and an instance of it, say: Object subclass: #A instanceVariableNames: '' |a| a := A new. A has no instance variables. Now i create a subclass B of A

Re: [Pharo-users] A benchmarking package or lib ?

2017-05-25 Thread Steven Costiou
Thank you all for your answers :) I will have a look into all that :) Steven.

[Pharo-users] A benchmarking package or lib ?

2017-05-25 Thread Steven Costiou
Hi, is there any benchmark library for Pharo ? that would provide tools to choose metrics to measure between two versions of the same code and maybe display a comparison or something (whatever the form of the report) ? I've found BenchmarkResult in Pharo but it seems very basic, at least there

Re: [Pharo-users] Working with remote debugger: how to debug something happening in the remote image ?

2017-05-10 Thread Steven Costiou
It works :) Thanks :) Le 2017-05-10 14:22, Denis Kudriashov a écrit : > 2017-05-10 13:49 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> Then i do openPlayground and TestClass new inspect -> i got an inspector on >> the proxy object. If i do "sel

Re: [Pharo-users] Working with remote debugger: how to debug something happening in the remote image ?

2017-05-10 Thread Steven Costiou
> If you want to fight with it then my first idea would be to find how method > AST is built in sugs menu. Then try to look at senders of > #astForStylingInCalypso which was implemented to support styling of remote > methods. Try to use it somehow for sugs menu too. > Maybe it will fix

Re: [Pharo-users] Working with remote debugger: how to debug something happening in the remote image ?

2017-05-10 Thread Steven Costiou
ogic to be handled properly. > > Anyway these features will be supported in future.. > > 2017-05-10 11:28 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> While configuring my local and remote images to work with the remote >> debugger, there was a b

Re: [Pharo-users] Working with remote debugger: how to debug something happening in the remote image ?

2017-05-10 Thread Steven Costiou
Le 2017-05-10 11:28, Steven Costiou a écrit : > While configuring my local and remote images to work with the remote > debugger, there was a bug with the menu in the remote browser. So i wanted to > try the debugger and figure out what was the problem using it, but i do not > un

Re: [Pharo-users] Remote Debugger bugs ?

2017-05-10 Thread Steven Costiou
> I found the issue. Debugging remote UI process is not supported well. When > you close debugger remote UI process is terminated which makes remote image > unresponsive. > But it is not completely frozen. You can spawn new UI process remotely: > >> remotePharo evaluate: [ UIManager default

Re: [Pharo-users] Remote Debugger bugs ?

2017-05-09 Thread Steven Costiou
Hi Denis, > 2017-05-09 17:22 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> I evaluated "1/0" in a playground in the remote image, and the exception >> opens in my local image. Now if i clic "abandon", the local image is ok but >> th

[Pharo-users] Remote Debugger bugs ?

2017-05-09 Thread Steven Costiou
Hi, i'm confused with how to configure the remote debugger. I used this link to configure my images: http://dionisiydk.blogspot.fr/2017/01/pharmide-pharo-remote-ide-to-develop.html I evaluated "1/0" in a playground in the remote image, and the exception opens in my local image. Now if i clic

Re: [Pharo-users] How to listen for source code change in the image ?

2017-05-04 Thread Steven Costiou
egards, > > Thierry > > 2017-05-04 13:40 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > >> Hi, >> >> where should i look at if i want a class of mine to be notified of any >> source code change in the image ? >> >> Specifically

[Pharo-users] How to listen for source code change in the image ?

2017-05-04 Thread Steven Costiou
Hi, where should i look at if i want a class of mine to be notified of any source code change in the image ? Specifically i want to know if anything changed about a method (or its ast method node), anything that could happen like a refactoring operation or a source code change. Steven.

Re: [Pharo-users] looking for tools to manually select ast nodes for metalinks

2017-03-20 Thread Steven Costiou
rings > - code navigation > - breakpoints and watchpoints (through Metalinks) > > Check the SmartSuggestions package. > > Guille > > On Mon, Mar 20, 2017 at 1:12 AM, Ben Coman <b...@openinworld.com> wrote: > >> On Mon, Mar 20, 2017 at 4:06 AM, Steven Costiou

[Pharo-users] looking for tools to manually select ast nodes for metalinks

2017-03-19 Thread Steven Costiou
Hi, i would like a way to define metalinks at debug time, by "visually" selecting ast nodes in the debugger. For example i would like to see a method that i am debugging and by a clic on the source code it would select the associated ast node and allow me to put a metalink right there. - does

Re: [Pharo-users] adding messages dinamically to a single instance object

2017-03-03 Thread Steven Costiou
Hi, could you describe why you need this ? Do you have a usecase ? Just interested to know, as i work on similar mechanisms. Steven. Le 2017-03-03 14:55, Pablo R. Digonzelli a écrit : > Thanks Denis, I will take a look . I think this is what i need. > > Tia > >

Re: [Pharo-users] [Deployement] Apache rewrite rules for Pharo

2017-01-18 Thread Steven Costiou
Hi, not sure that's what you are looking for but for my Pharo images with Iliad applications i just add the following to my website vhost in the /etc/apache directory: ProxyPass / http://localhost:/ ProxyPassReverse / http://localhost:/ That redirects all queries to my domain to this

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
Thank you very much =) It works perfectly ! Steven. Le 2016-07-28 14:05, Denis Kudriashov a écrit : > Steven, I fixed it. > Load development version (or just this: > Ghost-ObjectVirus-DenisKudryashov.12). > > I will update stable soon > > 2016-07-28 13:46 GMT

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
"meta" in the behavior ? Le 2016-07-28 12:33, Steven Costiou a écrit : > Hi, > > I think i am missing something. > > For example in the following code (took from the tests): > > | victim virus actual | > virus := GHObjectVirus behaviour: GHGhostBehaviou

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-28 Thread Steven Costiou
<dionisi...@gmail.com>: > > Hi > > 2016-07-27 22:19 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > > Hi, > > I use virus from Ghost to intercept messages sent to a given object and adapt > methods behaviors for this particular object onl

[Pharo-users] "self problem" with Ghost (virus)

2016-07-27 Thread Steven Costiou
Hi, I use virus from Ghost to intercept messages sent to a given object and adapt methods behaviors for this particular object only. However it would seems that doing interception this way is subject to the "self problem" described in this paper from Stéphane (DUCASSE, Stéphane. Evaluating

Re: [Pharo-users] Messages interceptions without using "halt"

2016-07-24 Thread Steven Costiou
ght be wrong... Marcus can explain better :) > > On 26 Apr 2016, at 14:50, Thierry Goubier <thierry.goub...@gmail.com> wrote: > > Hi Steven, > > 2016-04-26 14:39 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>: > > Hello, > > i am not new to Pharo

Re: [Pharo-users] Changing method definition at runtime

2016-07-24 Thread Steven Costiou
As i'm trying to build some kind of context oriented mechanism, i have the same need of behavior modification for a single instance of a class. I use virus-proxies in Ghost, that can intercept a message upon its reception in a particular object. From there it is possible to choose the code you

Re: [Pharo-users] Changing method definition at runtime

2016-07-23 Thread Steven Costiou
Hello, a mean to achieve behavior modification of methods at runtime could be context oriented programming (COP). It allows a method to have multiple behavior variations that can be (de)activated dynamically. However to my knowledge there is no context oriented extension for Pharo yet. I would

Re: [Pharo-users] [Raspberry Pi] Accessing GPIO pins on Raspberry Pi?

2016-06-13 Thread Steven Costiou
Hi, i have tried to make it work but so far i can't get it right. Have you been able to work with it ? I used pharo 5 latest non spur image with the non spur vm. It works on a raspberry 3 but it is very slow. I tried the led examples, the leds do not seem to be affected (some are on, some off,

Re: [Pharo-users] Messages interceptions without using "halt"

2016-04-26 Thread Steven Costiou
Thank you ! I will look into these possibilities =) Steven.

[Pharo-users] Messages interceptions without using "halt"

2016-04-26 Thread Steven Costiou
Hello, i am not new to Pharo nor to the list but this is the first time i speak here, so : hi =) I started a phd a few month ago (with Alain Plantec) on context oriented programming and dynamic programs adaptation. I am using Pharo for my experiments and i would like to intercept messages sent