Migrate code from Dolphin Smalltalk
Hi, Does anybody know if there is a tool/package or something to import Dolphin's chunked fileouts into Pharo? The chunk format is different, as well as some methods not present in Pharo classes (like #owningPackage:/#guid: among others). If nothing exists, then I'll have to make it somehow. Regards! Esteban A. Maringolo
Hi Esteban, I wrote some code which makes a dolphin package appear as a changeset to Pharo. Works fairly well. However, I didn't tackle the automatic code conversion issues: methods too long for pharo, Dolphin syntax extensions (##). Thierry Le 17/08/2014 00:39, Esteban A. Maringolo a écrit :
Hi,
Does anybody know if there is a tool/package or something to import Dolphin's chunked fileouts into Pharo?
The chunk format is different, as well as some methods not present in Pharo classes (like #owningPackage:/#guid: among others).
If nothing exists, then I'll have to make it somehow.
Regards!
Esteban A. Maringolo
Hi esteban let us know if we can help (if we are rather busy). Stef On 16/8/14 23:39, Esteban A. Maringolo wrote:
Hi,
Does anybody know if there is a tool/package or something to import Dolphin's chunked fileouts into Pharo?
The chunk format is different, as well as some methods not present in Pharo classes (like #owningPackage:/#guid: among others).
If nothing exists, then I'll have to make it somehow.
Regards!
Esteban A. Maringolo
I solved it adding a few mock classes/methods, plus a bunch of regular expressions to convert Dolphin chunk to Pharo chunk. Dolphin uses methodsFor! and sets method category as a "do-it", while Pharo defines the category and the stamp in methodsFor:stamp:! It isn't super pretty, but got the job done. (I was able to file-in a lot of code I did years ago saving me from reinventing the wheel). Regards! Esteban A. Maringolo 2014-08-18 7:56 GMT-03:00 stepharo <stepharo@free.fr>:
Hi esteban
let us know if we can help (if we are rather busy).
Stef
On 16/8/14 23:39, Esteban A. Maringolo wrote:
Hi,
Does anybody know if there is a tool/package or something to import Dolphin's chunked fileouts into Pharo?
The chunk format is different, as well as some methods not present in Pharo classes (like #owningPackage:/#guid: among others).
If nothing exists, then I'll have to make it somehow.
Regards!
Esteban A. Maringolo
Hi Esteban - might it be possible to put your script and mock classes on Smalltalk hub for future reference? I might need to do something similar at some point - and it sounds workable with what you did. Thanks for mentioning it. Tim Sent from my iPhone
On 18 Aug 2014, at 04:46 pm, "Esteban A. Maringolo" <emaringolo@gmail.com> wrote:
I solved it adding a few mock classes/methods, plus a bunch of regular expressions to convert Dolphin chunk to Pharo chunk.
Dolphin uses methodsFor! and sets method category as a "do-it", while Pharo defines the category and the stamp in methodsFor:stamp:!
It isn't super pretty, but got the job done. (I was able to file-in a lot of code I did years ago saving me from reinventing the wheel).
Regards!
Esteban A. Maringolo
2014-08-18 7:56 GMT-03:00 stepharo <stepharo@free.fr>:
Hi esteban
let us know if we can help (if we are rather busy).
Stef
On 16/8/14 23:39, Esteban A. Maringolo wrote:
Hi,
Does anybody know if there is a tool/package or something to import Dolphin's chunked fileouts into Pharo?
The chunk format is different, as well as some methods not present in Pharo classes (like #owningPackage:/#guid: among others).
If nothing exists, then I'll have to make it somehow.
Regards!
Esteban A. Maringolo
Tim Mackinnon wrote
might it be possible to put your script and mock classes on Smalltalk hub for future reference?
+1. That sounds cool :) ----- Cheers, Sean -- View this message in context: http://forum.world.st/Migrate-code-from-Dolphin-Smalltalk-tp4773556p4773872.... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (5)
-
Esteban A. Maringolo -
Sean P. DeNigris -
stepharo -
Thierry Goubier -
Tim Mackinnon