Re: [Pharo-users] AST tokens question

2014-10-29 Thread Marcus Denker
> On 29 Oct 2014, at 16:27, Thierry Goubier wrote: > > > > 2014-10-29 16:17 GMT+01:00 Mark Rizun >: > You mean the changes tool in Monticello ? > > No I mean, that before your rule is applied you will see the same window, > when you choose refactoring. > I mean Chan

Re: [Pharo-users] FFI structs

2014-10-29 Thread Thomas Bany
Oops, sorry, I was misslead by Steph reply. Some of the comments might still hold. For the *time: ’05:45’* code to work, you would need FFI to handle all the hassle of memory management and actually allocate the memory for 5 characters and copying it. I never used FFI but I doubt it does this. Lo

Re: [Pharo-users] [ANN] Pharo Days 2015

2014-10-29 Thread François Stephany
I can host one or two people at my place in Mons, Belgium (~1h drive from INRIA Lille) for free. I can drive to the conference both days. In the best case, I might have some friends to host me (us?) in Lille. So we can have some beers without having to drive. Francois On Wed, Oct 29, 2014 at 4:

[Pharo-users] nautilus plugin documentation

2014-10-29 Thread Paul DeBruicker
Hi - Where is the content that was at this link: http://rmod.inria.fr/web/pier/software/Tools-Improvement/NautilusDocumentation ? Thanks Paul

[Pharo-users] [ANN] Pharo Days 2015

2014-10-29 Thread Sven Van Caekenberghe
We are excited to announce the details so far for the Pharo Days 2015, to be held on Thursday January 29 and Friday January 30 at INRIA, Lille, France. https://medium.com/@svenvc/pharo-days-2015-6336d6ee2a23 We’ll update this page moving forward. You can ask questions on the any of the Phar

Re: [Pharo-users] Pharo - OpenDBXDriver: Unsupported data type: UNKNOWN

2014-10-29 Thread bsselfri...@gmail.com
Esteban and Guille, I just realized that you gentlemen are the keepers of DBXTalk. Thank you for kindly corresponding with me. My hat's off to all of you for taking on this task. I have a somewhat grandeur goal for solving this problem. I would like to solve the problem rather than creating a

Re: [Pharo-users] FFI structs

2014-10-29 Thread Annick Fron
I can’t use NativeBoost on the Raspberry, I would be glad if I could !!! Le 29 oct. 2014 à 12:18, stepharo a écrit : > did you read the NativeBoost tutorial on the PharoForTheEntreprise book? > If you do please report potential mistakes so that we can improve. > > > On 29/10/14 05:59, Annick

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 16:17 GMT+01:00 Mark Rizun : > You mean the changes tool in Monticello ? >> > > No I mean, that before your rule is applied you will see the same window, > when you choose refactoring. > I mean Changes Browser. Here it is: > > [image: Вбудоване зображення 1] > > Ok, thanks. this is a g

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
> > You mean the changes tool in Monticello ? > No I mean, that before your rule is applied you will see the same window, when you choose refactoring. I mean Changes Browser. Here it is: [image: Вбудоване зображення 1]

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 15:54 GMT+01:00 Mark Rizun : > This is the one which sounds difficult for me. Patterns are fairly global >> in nature, and they may match synonyms (i.e. methods of the same name but >> with different meanings), so I'm worried about the mastery of my changes. >> >> For an isNil ifTrue: t

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
> > This is the one which sounds difficult for me. Patterns are fairly global > in nature, and they may match synonyms (i.e. methods of the same name but > with different meanings), so I'm worried about the mastery of my changes. > > For an isNil ifTrue: to ifNil:, it's easy. But for an indexAt: to

Re: [Pharo-users] Zoomable & Infinitely scrollable PasteupMorph

2014-10-29 Thread Dennis Schetinin
Thanks, very interesting! -- Best regards, Dennis Schetinin 2014-10-29 16:31 GMT+04:00 Sean P. DeNigris : > I gave up on zoomability (with the idea to revisit after Athens is > integrated), but I hacked together an infinitely scrollable world, called > ScrollableWorldMorph, which is in use i

Re: [Pharo-users] FFI structs

2014-10-29 Thread Thomas Bany
Hi Annick ! I'll explain first why you got the error. The assignment time: ’05:45’ failed because you tried to put an array of char (of size 5*sizeof(char)) inside an address. At some point, you need to allocate the memory that will hold the data. In your case, you can do it quite easily with th

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 11:41 GMT+01:00 Mark Rizun : > I had a look at the video, and it looks great. Certainly the way to go. >> > Well, it's not that great. And it shows pretty old version of what I have > now. I should make a new better one:) > > >> I had some ideas along those, but I never have time to try

Re: [Pharo-users] **Important** PharoDays Preparation

2014-10-29 Thread Mark Rizun
Ok, I'm in:) 2014-10-29 13:10 GMT+02:00 stepharo : > fun and crazy conference with sprints and hacking in the middle. > It will be super cool. > > Stef > > > On 29/10/14 05:58, Mark Rizun wrote: > > Hi Stef, hi everyone! > > As I plan to be in Lille during this time, I'm interested what is > Ph

Re: [Pharo-users] Zoomable & Infinitely scrollable PasteupMorph

2014-10-29 Thread Sean P. DeNigris
I gave up on zoomability (with the idea to revisit after Athens is integrated), but I hacked together an infinitely scrollable world, called ScrollableWorldMorph, which is in use in my LivingCode IDE prototype described (with loading instructions) at http://forum.world.st/Clickable-class-side-examp

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

2014-10-29 Thread Attila Magyar
Also, there is a serveStatic: '/statics' from: '/var/www/htdocs' if someone wants to store something outside the image. -- View this message in context: http://forum.world.st/How-not-to-serve-an-AngularJs-application-from-Pharo-tp4786980p4787433.html Sent from the Pharo Smalltalk Users mai

Re: [Pharo-users] BabyMock2: Stubbing individual methods from existing instance?

2014-10-29 Thread Sean P. DeNigris
Damien Pollet wrote > (if it's not there, consider this an official feature request :) We tried before (http://forum.world.st/Unifying-Testing-Ideas-tp4726787p4727283.html) but he wouldn't drink the partial stub koolaid ;) - Cheers, Sean -- View this message in context: http://forum.world.

Re: [Pharo-users] BabyMock2: Stubbing individual methods from existing instance?

2014-10-29 Thread Damien Pollet
Well, I'm porting existing code with tests, so I would prefer to avoid changing how they work. Now I might as well consider it a rewrite… On 28 October 2014 21:49, Attila Magyar wrote: > This is not supported. BabyMock is designed to test the message flow between > objects, and not the internal i

Re: [Pharo-users] FFI structs

2014-10-29 Thread stepharo
did you read the NativeBoost tutorial on the PharoForTheEntreprise book? If you do please report potential mistakes so that we can improve. On 29/10/14 05:59, Annick Fron wrote: I I have a C struct with a char* struct result { char* time } I define an ExternalStructure in FFI , with o

Re: [Pharo-users] **Important** PharoDays Preparation

2014-10-29 Thread stepharo
fun and crazy conference with sprints and hacking in the middle. It will be super cool. Stef On 29/10/14 05:58, Mark Rizun wrote: Hi Stef, hi everyone! As I plan to be in Lille during this time, I'm interested what is PharoDays conference? Mark 2014-10-29 12:46 GMT+02:00 stepharo

Re: [Pharo-users] Zoomable & Infinitely scrollable PasteupMorph

2014-10-29 Thread Dennis Schetinin
Sean, any news on the topic? -- Best regards, Dennis Schetinin 2014-09-18 9:20 GMT+04:00 Alexandre Bergel : > > Ah one thing with roassal: > > > > Please honor the global keymappings and morph local ones. > > > > TRMorph swallows them due to the key press related methods which hijack > them

Re: [Pharo-users] **Important** PharoDays Preparation

2014-10-29 Thread Mark Rizun
Hi Stef, hi everyone! As I plan to be in Lille during this time, I'm interested what is PharoDays conference? Mark 2014-10-29 12:46 GMT+02:00 stepharo : > Hi guys > > We will organize at Lille the 29 and 30 of January PharoDays. > Now to help us building a budget I would like to know if you al

[Pharo-users] **Important** PharoDays Preparation

2014-10-29 Thread stepharo
Hi guys We will organize at Lille the 29 and 30 of January PharoDays. Now to help us building a budget I would like to know if you already know that you plan to attend the conference. Could you fill up the doodle http://doodle.com/icxtazwfq76caxf8 Stef

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
> > I had a look at the video, and it looks great. Certainly the way to go. > Well, it's not that great. And it shows pretty old version of what I have now. I should make a new better one:) > I had some ideas along those, but I never have time to try them. My > interest would have been to show ho

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 11:16 GMT+01:00 Mark Rizun : > I misunderstood you, of course I can find the node in old ast which was > replaced, using operator =. > Sure it works, but the problem is I have to pass oldNodes each time from > old node to new one. > I think you can work recreating the ast. I'm not sure

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 11:11 GMT+01:00 Mark Rizun : > This is well how I understood it. >> >> Are you implementing something around the use of refactoring? >> > > I'm implementing tool for creating rewrite rules. Here is a blog about > it: http://myfuncoding.blogspot.com/ > Also I write chapter for PharoForE

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

2014-10-29 Thread Stephan Eggermont
Kilon wrote: >would it not be better to have the html / css and js code outside the image ? >so instead to load files instead of return strings ? Only for the things that are really static. All other parts should be in the image, and be generated, just like the seaside canvas does for html. Wor

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
P.S. Moreover, it's not only that I have to pass oldNodes each time from old node to new one. Each time I replace node I reparse tree and I lose oldNodes from each node of ast:) So, I have to pass oldNodes from each node of ast to each coresponding node of new ast. And it's a real problem. 2014-1

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
I misunderstood you, of course I can find the node in old ast which was replaced, using operator =. Sure it works, but the problem is I have to pass oldNodes each time from old node to new one.

Re: [Pharo-users] AST tokens question

2014-10-29 Thread stepharo
Thanks thierry and mark for this interesting discussion! Stef On 27/10/14 13:36, Mark Rizun wrote: Hi all, Trying to understand here how tokens are used in AST. So far I can not see any order in usage of tokens. For instance, why RBValueNode doesn't have token? Is it haow it's supposed to be?

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
> > This is well how I understood it. > > Are you implementing something around the use of refactoring? > I'm implementing tool for creating rewrite rules. Here is a blog about it: http://myfuncoding.blogspot.com/ Also I write chapter for PharoForEnterprise: https://github.com/SquareBracketAssoci

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 10:44 GMT+01:00 Mark Rizun : > > > 2014-10-29 11:40 GMT+02:00 Thierry Goubier : > >> >> >> 2014-10-29 10:22 GMT+01:00 Mark Rizun : >> >>> Second one, I do replace node all the time. >>> >> >> You insert new code inside the text view? >> > > Yes > > >> >> For me, if you replace nodes and

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
2014-10-29 11:40 GMT+02:00 Thierry Goubier : > > > 2014-10-29 10:22 GMT+01:00 Mark Rizun : > >> Second one, I do replace node all the time. >> > > You insert new code inside the text view? > Yes > > For me, if you replace nodes and display that, then you are "slowly" > replacing nodes. Anything

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 10:22 GMT+01:00 Mark Rizun : > Second one, I do replace node all the time. > You insert new code inside the text view? For me, if you replace nodes and display that, then you are "slowly" replacing nodes. Anything which has some display to a user in the loop is "slow". > Thinking a

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 10:09 GMT+01:00 Mark Rizun : > P.S. I have a solution, but don't know if it's appropriate: I remove > updating of source interval from replaceWith: method, but my tool will do > all the calculations of interval on it's own. > This is a possibility: have a transform; when you get select

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
Second one, I do replace node all the time. Thinking a bit about it, I'd try reparse, get node from selection index, > find equal old node in old (modified) ast, or replace old (modified) ast > with new one. > Can you explain this, sorry I didn't get the point

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 9:59 GMT+01:00 Mark Rizun : > > I use source intervals to detect which node is selected and than in the > right-click menu user can see only options that are relevanto to selected > node, as it is also made in SmartSuggestions. > I know that use case ;) Ok, then this means you are reg

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
P.S. I have a solution, but don't know if it's appropriate: I remove updating of source interval from replaceWith: method, but my tool will do all the calculations of interval on it's own. 2014-10-29 10:59 GMT+02:00 Mark Rizun : > That is way I'd like to have automatically updated source interval

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
> > That is way I'd like to have automatically updated source interval. >> > > I'm still not entirely sure why. Source intervals are only there to help > relating the ast to the source, not much else, really. > I use source intervals to detect which node is selected and than in the right-click men

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Thierry Goubier
2014-10-29 8:32 GMT+01:00 Mark Rizun : > > Which ones? > > > In my tool each node has property oldNodes, which holds collection of > obviously AST nodes:) > When I replace one of node I have to update source interval in some way. > > 1)If I update it with reparsing, I loose all data about oldNod

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

2014-10-29 Thread kilon alios
oh brilliant, I really like this design very much. Definitely will look a bit deeper into this . I guess it makes sense to pass the source files as string when the web app is finished to speed up loading times. I really like this workflow for creating web apps. Well done guys. On Wed, Oct 29, 20

Re: [Pharo-users] AST tokens question

2014-10-29 Thread Mark Rizun
> Which ones? In my tool each node has property oldNodes, which holds collection of obviously AST nodes:) When I replace one of node I have to update source interval in some way. 1)If I update it with reparsing, I loose all data about oldNodes for each node of my AST. So I have to save old AST wi

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

2014-10-29 Thread S Krish
"would it not be better to have the html / css and js code outside the image ? so instead to load files instead of return strings ? " *GET: '/index.html' -> [ self openspaceHtml ]; * can be modified to: *GET: '/index.html' -> [ self fetch: 'html/openspace.html' ]; * and the *fetch:* method c