Re: [Pharo-users] Pharo2VW (Was:[vwnc] Parsing in Smalltalk)
--- Begin Message --- > I really like the tool as it makes cross-platform-life a lot easier. Thanks :-) > I really wish there was a similar tool for the reverse direction, too! That is interesting. Anyone else interested in such a tool? Cheers, Alexandre > > Cheers! Steffen > > Am .10.2018, 22:38 Uhr, schrieb Alexandre Bergel via Pharo-users > : > >> Thanks Steffen for your contribution to Pharo2VW. >> We reviewed and accepted your PullRequests. >> >> Alexandre >> >>> On Oct 19, 2018, at 6:29 AM, Steffen Märcker wrote: >>> >>> Nevermind, I figured it out easily. Must been blind before. >>> >>> Many thanks to the Iceberg team, the tool works like a charm in 6.1! >>> >>> >>> Am .10.2018, 10:58 Uhr, schrieb Steffen Märcker : >>> > <---Schnitt---> >>> >> >> > > > --- End Message ---
Re: [Pharo-users] Pharo2VW (Was:[vwnc] Parsing in Smalltalk)
You're welcome. =) I really like the tool as it makes cross-platform-life a lot easier. I really wish there was a similar tool for the reverse direction, too! Cheers! Steffen Am .10.2018, 22:38 Uhr, schrieb Alexandre Bergel via Pharo-users : Thanks Steffen for your contribution to Pharo2VW. We reviewed and accepted your PullRequests. Alexandre On Oct 19, 2018, at 6:29 AM, Steffen Märcker wrote: Nevermind, I figured it out easily. Must been blind before. Many thanks to the Iceberg team, the tool works like a charm in 6.1! Am .10.2018, 10:58 Uhr, schrieb Steffen Märcker : <---Schnitt--->
Re: [Pharo-users] Pharo2VW (Was:[vwnc] Parsing in Smalltalk)
--- Begin Message --- Thanks Steffen for your contribution to Pharo2VW. We reviewed and accepted your PullRequests. Alexandre > On Oct 19, 2018, at 6:29 AM, Steffen Märcker wrote: > > Nevermind, I figured it out easily. Must been blind before. > > Many thanks to the Iceberg team, the tool works like a charm in 6.1! > > > Am .10.2018, 10:58 Uhr, schrieb Steffen Märcker : > >> Hi, >> >> I tried the tool yesterday and found some hickups. After opening issues on >> GitHub, I wonder how I can easily contribute a PR there. I imagine there is >> a straight-forward way with Iceberg now, isn't it? I a sorry if I miss the >> obvious but I am still not familiar with Pharos comprehensive tool set. >> >> Best, Steffen >> >> >> Am .10.2018, 18:06 Uhr, schrieb milton mamani : >> >>> Hi you can use >>> >>> https://github.com/ObjectProfile/Pharo2VW >>> >>> Cheers, Milton >>> >>> El sáb., 13 oct. 2018 a las 12:38, Steffen Märcker () >>> escribió: >>> Hi, I gave PetitParser 2 a try and I am pretty impressed by the results, please see the updated table below. =) Again, that's pure parsing and Array-based AST-building. Moving to PP2 was indeed as easy as sending #asPParser and working around character ranges ($a - $z). Is there a preferred way to do the latter? Jan mentioned that there might be an automated tool to port stuff to VisualWorks. Do you have a name? And again the old question: what is the preferred workflow to exchange code between the two dialects? Till now I stick to FileOut30. input PrismStorm Xtreams.PEG PP PP2 size parse check check parse cache parse parse optim 230kB 0.1s 10s 6s 9s3s 2s 4s 0.2s 544kB 0.2s 90s20s20s7s 5s 9s 0.5s 1.1MB 0.4s 392s46s34s 13s 8s15s 1.0s 1.4MB 0.8s 1091s85s47s 20s12s20s 1.3s 2.2MB63s 30s16s27s 1.9s 2.9MB81s 44s20s34s 2.5s 3.8MB 107s 61s25s45s 3.1s 4.4MB 123s 76s30s56s 3.7s Best, Steffen Am .10.2018, 05:22 Uhr, schrieb Tudor Girba : > Hi, > > Interesting experiment. Thanks for sharing! > > I assume that you tried the original PetitParser. PetitParser2 offers > the possibility to optimize the parser (kind of a compilation), and this > provides a significant speedup: > https://github.com/kursjan/petitparser2 > > Would you be interested in trying this out? > > Cheers, > Doru > > > >> On Oct 4, 2018, at 10:46 PM, Steffen Märcker wrote: >> >> I gave Xtreams-Parsing and PetitParser a shot and like to share my >> findings.[*] >> >> The task was to parse the modelling language of the probabilistic model >> checker PRISM. I've written a grammer of about 130 definitions in the >> Xtreams DSL, which is close to Bryan Fords syntax. To avoid doing it >> all again with PetitParser, I wrote a PetitParserGenerator that takes >> the DSL and builds a PetitParser. >> >> The numbers below are just parsing times, no further actions involved. >> For reference I show the times from PRISM (which uses JavaCC), too -- >> although they involve additional verification and normalization steps >> on the AST. >> >> input PrismXP PP >> 230kB14s9s 2s >> 544kB121s 20s 5s >> 1.1MB421s 34s 8s >> 1.4MB 1091s 47s 12s >> 2.2MB 63s 16s >> 2.9MB 81s 20s >> 3.8MB 107s 25s >> 4.4MB 123s 30s >> >> Please note that these times are not representative at all. It's just a >> single example and I put zero effort in optimization. However, I am >> quite satisfied with the results. >> >> [*] I was already familiar with the DSL of Xtreams-Parsing, which I >> like very much. I did not consider SmaCC, as I find PEGs easier to use. >> >> Best, Steffen >> >> >> >> Am .10.2018, 20:14 Uhr, schrieb Steffen Märcker : >> >>> Dear all, >>> >>> I have two questions regarding parsing frameworks. >>> >>> 1) Do you have any insights on the performance of SmaCC VS Xtreams >>> Parsing VS PetitParser? >>> 2) Has anybody started to port PetitParser 2 from Pharo to VW? Is it >>> worth the effort? >>> >>> Sorry for cross-posting, I thought this might interest both >>> communities. >>> >>> Cheers, Steffen > > -- > www.feenk.com > > "No matter how many recipes we know, we still value a chef." > > > > > > > > --- End Message ---
Re: [Pharo-users] Pharo2VW (Was:[vwnc] Parsing in Smalltalk)
Nevermind, I figured it out easily. Must been blind before. Many thanks to the Iceberg team, the tool works like a charm in 6.1! Am .10.2018, 10:58 Uhr, schrieb Steffen Märcker : Hi, I tried the tool yesterday and found some hickups. After opening issues on GitHub, I wonder how I can easily contribute a PR there. I imagine there is a straight-forward way with Iceberg now, isn't it? I a sorry if I miss the obvious but I am still not familiar with Pharos comprehensive tool set. Best, Steffen Am .10.2018, 18:06 Uhr, schrieb milton mamani : Hi you can use https://github.com/ObjectProfile/Pharo2VW Cheers, Milton El sáb., 13 oct. 2018 a las 12:38, Steffen Märcker () escribió: Hi, I gave PetitParser 2 a try and I am pretty impressed by the results, please see the updated table below. =) Again, that's pure parsing and Array-based AST-building. Moving to PP2 was indeed as easy as sending #asPParser and working around character ranges ($a - $z). Is there a preferred way to do the latter? Jan mentioned that there might be an automated tool to port stuff to VisualWorks. Do you have a name? And again the old question: what is the preferred workflow to exchange code between the two dialects? Till now I stick to FileOut30. input PrismStorm Xtreams.PEG PP PP2 size parse check check parse cache parse parse optim 230kB 0.1s 10s 6s 9s3s 2s 4s 0.2s 544kB 0.2s 90s20s20s7s 5s 9s 0.5s 1.1MB 0.4s 392s46s34s 13s 8s15s 1.0s 1.4MB 0.8s 1091s85s47s 20s12s20s 1.3s 2.2MB63s 30s16s27s 1.9s 2.9MB81s 44s20s34s 2.5s 3.8MB 107s 61s25s45s 3.1s 4.4MB 123s 76s30s56s 3.7s Best, Steffen Am .10.2018, 05:22 Uhr, schrieb Tudor Girba : > Hi, > > Interesting experiment. Thanks for sharing! > > I assume that you tried the original PetitParser. PetitParser2 offers > the possibility to optimize the parser (kind of a compilation), and this > provides a significant speedup: > https://github.com/kursjan/petitparser2 > > Would you be interested in trying this out? > > Cheers, > Doru > > > >> On Oct 4, 2018, at 10:46 PM, Steffen Märcker wrote: >> >> I gave Xtreams-Parsing and PetitParser a shot and like to share my >> findings.[*] >> >> The task was to parse the modelling language of the probabilistic model >> checker PRISM. I've written a grammer of about 130 definitions in the >> Xtreams DSL, which is close to Bryan Fords syntax. To avoid doing it >> all again with PetitParser, I wrote a PetitParserGenerator that takes >> the DSL and builds a PetitParser. >> >> The numbers below are just parsing times, no further actions involved. >> For reference I show the times from PRISM (which uses JavaCC), too -- >> although they involve additional verification and normalization steps >> on the AST. >> >> input PrismXP PP >> 230kB14s9s 2s >> 544kB121s 20s 5s >> 1.1MB421s 34s 8s >> 1.4MB 1091s 47s 12s >> 2.2MB 63s 16s >> 2.9MB 81s 20s >> 3.8MB 107s 25s >> 4.4MB 123s 30s >> >> Please note that these times are not representative at all. It's just a >> single example and I put zero effort in optimization. However, I am >> quite satisfied with the results. >> >> [*] I was already familiar with the DSL of Xtreams-Parsing, which I >> like very much. I did not consider SmaCC, as I find PEGs easier to use. >> >> Best, Steffen >> >> >> >> Am .10.2018, 20:14 Uhr, schrieb Steffen Märcker : >> >>> Dear all, >>> >>> I have two questions regarding parsing frameworks. >>> >>> 1) Do you have any insights on the performance of SmaCC VS Xtreams >>> Parsing VS PetitParser? >>> 2) Has anybody started to port PetitParser 2 from Pharo to VW? Is it >>> worth the effort? >>> >>> Sorry for cross-posting, I thought this might interest both >>> communities. >>> >>> Cheers, Steffen > > -- > www.feenk.com > > "No matter how many recipes we know, we still value a chef." > > > > > > >
[Pharo-users] Pharo2VW (Was:[vwnc] Parsing in Smalltalk)
Hi, I tried the tool yesterday and found some hickups. After opening issues on GitHub, I wonder how I can easily contribute a PR there. I imagine there is a straight-forward way with Iceberg now, isn't it? I a sorry if I miss the obvious but I am still not familiar with Pharos comprehensive tool set. Best, Steffen Am .10.2018, 18:06 Uhr, schrieb milton mamani : Hi you can use https://github.com/ObjectProfile/Pharo2VW Cheers, Milton El sáb., 13 oct. 2018 a las 12:38, Steffen Märcker () escribió: Hi, I gave PetitParser 2 a try and I am pretty impressed by the results, please see the updated table below. =) Again, that's pure parsing and Array-based AST-building. Moving to PP2 was indeed as easy as sending #asPParser and working around character ranges ($a - $z). Is there a preferred way to do the latter? Jan mentioned that there might be an automated tool to port stuff to VisualWorks. Do you have a name? And again the old question: what is the preferred workflow to exchange code between the two dialects? Till now I stick to FileOut30. input PrismStorm Xtreams.PEG PP PP2 size parse check check parse cache parse parse optim 230kB 0.1s 10s 6s 9s3s 2s 4s 0.2s 544kB 0.2s 90s20s20s7s 5s 9s 0.5s 1.1MB 0.4s 392s46s34s 13s 8s15s 1.0s 1.4MB 0.8s 1091s85s47s 20s12s20s 1.3s 2.2MB63s 30s16s27s 1.9s 2.9MB81s 44s20s34s 2.5s 3.8MB 107s 61s25s45s 3.1s 4.4MB 123s 76s30s56s 3.7s Best, Steffen Am .10.2018, 05:22 Uhr, schrieb Tudor Girba : > Hi, > > Interesting experiment. Thanks for sharing! > > I assume that you tried the original PetitParser. PetitParser2 offers > the possibility to optimize the parser (kind of a compilation), and this > provides a significant speedup: > https://github.com/kursjan/petitparser2 > > Would you be interested in trying this out? > > Cheers, > Doru > > > >> On Oct 4, 2018, at 10:46 PM, Steffen Märcker wrote: >> >> I gave Xtreams-Parsing and PetitParser a shot and like to share my >> findings.[*] >> >> The task was to parse the modelling language of the probabilistic model >> checker PRISM. I've written a grammer of about 130 definitions in the >> Xtreams DSL, which is close to Bryan Fords syntax. To avoid doing it >> all again with PetitParser, I wrote a PetitParserGenerator that takes >> the DSL and builds a PetitParser. >> >> The numbers below are just parsing times, no further actions involved. >> For reference I show the times from PRISM (which uses JavaCC), too -- >> although they involve additional verification and normalization steps >> on the AST. >> >> input PrismXP PP >> 230kB14s9s 2s >> 544kB121s 20s 5s >> 1.1MB421s 34s 8s >> 1.4MB 1091s 47s 12s >> 2.2MB 63s 16s >> 2.9MB 81s 20s >> 3.8MB 107s 25s >> 4.4MB 123s 30s >> >> Please note that these times are not representative at all. It's just a >> single example and I put zero effort in optimization. However, I am >> quite satisfied with the results. >> >> [*] I was already familiar with the DSL of Xtreams-Parsing, which I >> like very much. I did not consider SmaCC, as I find PEGs easier to use. >> >> Best, Steffen >> >> >> >> Am .10.2018, 20:14 Uhr, schrieb Steffen Märcker : >> >>> Dear all, >>> >>> I have two questions regarding parsing frameworks. >>> >>> 1) Do you have any insights on the performance of SmaCC VS Xtreams >>> Parsing VS PetitParser? >>> 2) Has anybody started to port PetitParser 2 from Pharo to VW? Is it >>> worth the effort? >>> >>> Sorry for cross-posting, I thought this might interest both >>> communities. >>> >>> Cheers, Steffen > > -- > www.feenk.com > > "No matter how many recipes we know, we still value a chef." > > > > > > >