Hi Shaping,
great! :) Answers inline… Von: Shaping <shap...@uurda.org> Gesendet: Mittwoch, 3. August 2022 16:03 An: 'Any question about pharo is welcome' <pharo-users@lists.pharo.org>; 'Pharo Development List' <pharo-...@lists.pharo.org> Betreff: [Pharo-users] FW: Porting from VW 8.3 to Pharo Hi Christian. I’m trying to port from VW 8.3 to Pharo. Is there a detailed algorithm in addition to the Workflow section mentioned here?: https://wiki.pdftalk.de/doku.php?id=pdftalknonnamespacefileout 1. generate the source for the target dialect from VisualWorks with the defined code transformations. Fix problems so that there are no errors or warnings. … No. The page is a bit outdated and reflected the beginning of the project, I will go over it and update the description. How does one generate the source (run the transformation)? Where are the aforementioned “defined code transformations”, Is there an example of how to setup the declarative template needed to map VW namespace names to Pharo class prefixes? I loaded the following packages into my VW 8.3 image: Values Project Yes Values Values Fileout Pharo Values Testing Values Tools Values Tools Testing Automatic Load PDFtalk Project bundle. Since the main target is PDFtalk. Values (and PostScript) are just bycatch. Pharo Fileout Values No, this package has been renamed to [Pharo Fileout PDFtalk]. Load this. Pharo Transform No, not separate. This is part of the Transform Project. Smalltalk Transform Project Yes Smalltalk Transform TestBundle Smalltalk Transform Tests Smalltalk Transform Smalltalk Transform Model Smalltalk Transform Testing Smalltalk Transform TestPackage Smalltalk Transform Tools Automatic Any package not updated recently (in the last few months) I didn’t load. Did I miss anything? Yes. The ideal setup from a virgin image is: Load {Values Project] bundle Load {PDFtalk Project} bundle Load {Smalltalk Transform Project} bundle Load [Pharo Fileout PDFtalk] package Save, done To transform Values do: “Pharo100 fileOutValues” The [Pharo Fileout PDFtalk] package includes the latest Values transformations. I am thinking about a better modularization… Also, the wiki is a bit out of control. It really needs some restructuring. In the cites wiki page, there is a link to a blog where I record the changes. This might be informative. 2. Port the Values package. This is easy, since no namespaces are involved. This first instruction after VW package setup says to port the contents of the Values package from VW to Pharo. Do you mean manually? Probably not. No, no. This has been finished in March. For each dialect, I have a GitHub repository where I release important versions: <https://github.com/PortingPDFtalk/PharoPDFtalk> https://github.com/PortingPDFtalk/PharoPDFtalk. You can find the working port as first release “ <https://github.com/PortingPDFtalk/PharoPDFtalk/releases/tag/1.3.0.0> Working version“. There you can download the ported Values fileout with the exact description with which versions of what it was created. This should be a good starting example. I feel like I’ve missed the main details of how to start the transformation. I’d like to do a small fully contained test package with no external dependencies as a first test, probably my Magnitude or Collection packages. Suggestions are welcome. Thanks for doing this and sharing it. If I may suggest, I would look at the transformations on the class side of the SmalltalkTransform.Pharo class: methods #ValuesProject and #PDFtalkProject (I know, some would detest, that I start methods sometimes with a capital letter…). To get a feel for the machinery, you could debug through “Pharo100 fileOutValues” (for Pharo 10.0). As said, Values don’t use namespaces. To see what is involved there, you could look at #PDFtalkProject for the name mapping. But beware! The PDFtalk transformation is not finished yet. Still, you could get some inspiration and can probably reuse some of the rules. Shaping Great that you are trying to use the transformation project. The more use, the better it should get. Please share your questions and insights (and successes :)). Happy hacking, Christian From: christian.haider <christian.hai...@smalltalked-visuals.com <mailto:christian.hai...@smalltalked-visuals.com> > Sent: Wednesday, 22 June, 2022 05:42 To: pharo-users@lists.pharo.org <mailto:pharo-users@lists.pharo.org> Subject: [Pharo-users] [PDFtalk] second fileOut for Squeak and Pharo With help from the community some issues were fixed which improved the test statistics nicely. Check it out: https://wiki.pdftalk.de/doku.php?id=portingblog#second_pdftalk_fileout_for_squeak_and_pharo Thanks to everybody involved! Happy hacking, Christian