Re: [Pharo-users] ring deprecation in pharo 7
Hi Doru, I imagine the replacement is Pavel's Ring2 https://github.com/pavel-krivanek/ring2 Peter On Fri, Oct 19, 2018 at 10:56 PM Tudor Girba wrote: > Hi, > > Ring seems to be deprecated in Pharo 7. Is there something else it will be > replaced with? > > In particular, I am looking for the correct class that should correspond > to RGMethodDefinition. > > Cheers, > Doru > > > -- > www.feenk.com > > "Value is always contextual." > > > > > > >
[Pharo-users] Pharo for PWAs and Web Push Notifications
Hi all, I'm interested in developing progressive web applications (PWA) [1] in Pharo, so I'd like to know if anyone has been involved in such kind of task before and could share his experiences. At first sight, I was thinking in trying PharoJS [2] to build abstractions in Pharo for each PWA's client-side concept like Service Workers, Cache API, IndexedDB API, appshell architecture, etc. By the other hand, one of the more appealing features of PWAs is the web push notifications capability. To be able to send push notifications from a Pharo server I will also need an implementation of the Web Push Protocol [3] and the VAPID spec [4]. Do you know any previous related work in Pharo or should I think in my own implementation? Thank you! [1] https://developers.google.com/web/progressive-web-apps/ [2] https://pharojs.github.io/ [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-12 [4] https://tools.ietf.org/html/draft-thomson-webpush-vapid-02
Re: [Pharo-users] ring deprecation in pharo 7
Hi, Ok. So, as Ring2 is not in Pharo 7 and all Ring classes in Pharo 7 are deprecated, should we still use them, or is it desired to load Ring2 in our applications? Cheers, Doru > On Oct 23, 2018, at 9:01 AM, Peter Uhnak wrote: > > Hi Doru, > > I imagine the replacement is Pavel's Ring2 > https://github.com/pavel-krivanek/ring2 > > Peter > > On Fri, Oct 19, 2018 at 10:56 PM Tudor Girba wrote: > Hi, > > Ring seems to be deprecated in Pharo 7. Is there something else it will be > replaced with? > > In particular, I am looking for the correct class that should correspond to > RGMethodDefinition. > > Cheers, > Doru > > > -- > www.feenk.com > > "Value is always contextual." > > > > > > -- www.feenk.com "In a world where everything is moving ever faster, one might have better chances to win by moving slower."
[Pharo-users] GlorpSQLite on Pharo 7
Hi all, GlorpSQLite now runs on Pharo 7, passing all 891 tests. Load from my repo's pharo7dev branch: Metacello new baseline: 'GlorpSQLite'; repository: 'github://PierceNg/glorp-sqlite3:pharo7dev'; load. Tested on 32- and 64-bit Ubuntu 18.04 with image 5f13ae8. Pierce
Re: [Pharo-users] ring deprecation in pharo 7
Hi, the Ring 2 is not integrated because we do not want to have two version in the system at once and we are not ready for the old Ring removal. However, it is marked as deprecated to warn people that they probably should not base their new code on it. That is important for more intensive usage of the models. Most people want to simply have something like a method reference. In that case, you can still use the old Ring. We will add some class comments to clarify that. Cheers, -- Pavel út 23. 10. 2018 v 14:41 odesílatel Tudor Girba napsal: > Hi, > > Ok. > > So, as Ring2 is not in Pharo 7 and all Ring classes in Pharo 7 are > deprecated, should we still use them, or is it desired to load Ring2 in our > applications? > > Cheers, > Doru > > > > On Oct 23, 2018, at 9:01 AM, Peter Uhnak wrote: > > > > Hi Doru, > > > > I imagine the replacement is Pavel's Ring2 > https://github.com/pavel-krivanek/ring2 > > > > Peter > > > > On Fri, Oct 19, 2018 at 10:56 PM Tudor Girba > wrote: > > Hi, > > > > Ring seems to be deprecated in Pharo 7. Is there something else it will > be replaced with? > > > > In particular, I am looking for the correct class that should correspond > to RGMethodDefinition. > > > > Cheers, > > Doru > > > > > > -- > > www.feenk.com > > > > "Value is always contextual." > > > > > > > > > > > > > > -- > www.feenk.com > > "In a world where everything is moving ever faster, > one might have better chances to win by moving slower." > > > > > > >
Re: [Pharo-users] GlorpSQLite on Pharo 7
Wow, that is nice, thanks a lot! > On 23 Oct 2018, at 15:26, Pierce Ng wrote: > > Hi all, > > GlorpSQLite now runs on Pharo 7, passing all 891 tests. > > Load from my repo's pharo7dev branch: > > Metacello new >baseline: 'GlorpSQLite'; >repository: 'github://PierceNg/glorp-sqlite3:pharo7dev'; >load. > > Tested on 32- and 64-bit Ubuntu 18.04 with image 5f13ae8. > > Pierce >
Re: [Pharo-users] ring deprecation in pharo 7
Ok. Thanks. Cheers, Doru > On Oct 23, 2018, at 3:30 PM, Pavel Krivanek wrote: > > Hi, > > the Ring 2 is not integrated because we do not want to have two version in > the system at once and we are not ready for the old Ring removal. However, it > is marked as deprecated to warn people that they probably should not base > their new code on it. > > That is important for more intensive usage of the models. Most people want to > simply have something like a method reference. In that case, you can still > use the old Ring. We will add some class comments to clarify that. > > Cheers, > -- Pavel > > út 23. 10. 2018 v 14:41 odesílatel Tudor Girba napsal: > Hi, > > Ok. > > So, as Ring2 is not in Pharo 7 and all Ring classes in Pharo 7 are > deprecated, should we still use them, or is it desired to load Ring2 in our > applications? > > Cheers, > Doru > > > > On Oct 23, 2018, at 9:01 AM, Peter Uhnak wrote: > > > > Hi Doru, > > > > I imagine the replacement is Pavel's Ring2 > > https://github.com/pavel-krivanek/ring2 > > > > Peter > > > > On Fri, Oct 19, 2018 at 10:56 PM Tudor Girba wrote: > > Hi, > > > > Ring seems to be deprecated in Pharo 7. Is there something else it will be > > replaced with? > > > > In particular, I am looking for the correct class that should correspond to > > RGMethodDefinition. > > > > Cheers, > > Doru > > > > > > -- > > www.feenk.com > > > > "Value is always contextual." > > > > > > > > > > > > > > -- > www.feenk.com > > "In a world where everything is moving ever faster, > one might have better chances to win by moving slower." > > > > > > -- www.feenk.com "Beauty is where we see it."
Re: [Pharo-users] Pharo for PWAs and Web Push Notifications
Have you also looked at Willow - https://link.medium.com/Iyj4qo2BfR? It has spa ‘s in mind - although I’m not sure of the pro’s/cons vs Pharo js which also looks good too. Would be interested in what you decide. Tim Sent from my iPhone > On 23 Oct 2018, at 19:02, Rafael Luque wrote: > > Hi all, > > I'm interested in developing progressive web applications (PWA) [1] in Pharo, > so I'd like to know if anyone has been involved in such kind of task before > and could share his experiences. > > At first sight, I was thinking in trying PharoJS [2] to build abstractions in > Pharo for each PWA's client-side concept like Service Workers, Cache API, > IndexedDB API, appshell architecture, etc. > > By the other hand, one of the more appealing features of PWAs is the web push > notifications capability. To be able to send push notifications from a Pharo > server I will also need an implementation of the Web Push Protocol [3] and > the VAPID spec [4]. Do you know any previous related work in Pharo or should > I think in my own implementation? > > Thank you! > > [1] https://developers.google.com/web/progressive-web-apps/ > [2] https://pharojs.github.io/ > [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-12 > [4] https://tools.ietf.org/html/draft-thomson-webpush-vapid-02
Re: [Pharo-users] Pharo for PWAs and Web Push Notifications
Rafael, > On 23 Oct 2018, at 11:32, Rafael Luque wrote: > > By the other hand, one of the more appealing features of PWAs is the web push > notifications capability. To be able to send push notifications from a Pharo > server I will also need an implementation of the Web Push Protocol [3] and > the VAPID spec [4]. Do you know any previous related work in Pharo or should > I think in my own implementation? The two protocols you mention are based on HTTP/2, which we do not (yet) have. We do have WebSockets in Zinc, which might help in understanding the issues at hand. Sven
Re: [Pharo-users] GlorpSQLite on Pharo 7
Sven Van Caekenberghe-2 wrote > Wow, that is nice, thanks a lot! +1! - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
[Pharo-users] [ANN] PetitParser2 for VisualWorks (Was: [vwnc] Parsing in Smalltalk)
Hi, I am happy to announce that I've just finished an initial port of (the impressive) PetitParser2 (https://github.com/kursjan/petitparser2) to VisualWorks. It is available in the Public Store. The port consists of 4 bundles: * PetitParser2 * PetitParser2-Tests * PetitParser2-Smalltalk (defunct, test support only) * PetitParser2-Validation (defunct, test support only) I'd be happy to hear your comments. Cheers, Steffen
Re: [Pharo-users] Pharo for PWAs and Web Push Notifications
On Tue, Oct 23, 2018 at 11:32 AM Rafael Luque wrote: > Hi all, > > I'm interested in developing progressive web applications (PWA) [1] in > Pharo, so I'd like to know if anyone has been involved in such kind of task > before and could share his experiences. > The best thing I used for such stuff in terms of effort/results is using Firebase. https://firebase.google.com Why? Because it provides a ton of the mechanisms for what you ask below, works well, handles a ton of periphrenalia that I really do not want to deal with directly. The good bit is that the frontend piece (the actual PWA) can be written in any way you want provided that at the end there is some JS code handling the UI. Services can be provided as cloud functions of Google Cloud and nothing prevents them from being in Pharo. In the Firebase SDK, there is a command line tool that provides for local execution of the generated JS and one can then push that code to the server side. Integration with Google general push notification system is easy to implement as well. Costs of operation are quite low, even for pushing to large user bases. There is of course the "database" component (the actual "Firebase") that is key/value pair system, along with read/write policies (which can be quite complexand support quite a number of situations very well, provided the schema is well done) and if what one needs is a relational DB, this is not really the same thing. So, that's how I would do PWAs, they work nicely using that very stack. Phil > At first sight, I was thinking in trying PharoJS [2] to build abstractions > in Pharo for each PWA's client-side concept like Service Workers, Cache > API, IndexedDB API, appshell architecture, etc. > > By the other hand, one of the more appealing features of PWAs is the web > push notifications capability. To be able to send push notifications from a > Pharo server I will also need an implementation of the Web Push Protocol > [3] and the VAPID spec [4]. Do you know any previous related work in Pharo > or should I think in my own implementation? > > Thank you! > > [1] https://developers.google.com/web/progressive-web-apps/ > [2] https://pharojs.github.io/ > [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-12 > [4] https://tools.ietf.org/html/draft-thomson-webpush-vapid-02 >
Re: [Pharo-users] Pharo for PWAs and Web Push Notifications
https://firebase.google.com/docs/hosting/ has some more info on PWAs On Tue, Oct 23, 2018 at 11:32 AM Rafael Luque wrote: > Hi all, > > I'm interested in developing progressive web applications (PWA) [1] in > Pharo, so I'd like to know if anyone has been involved in such kind of task > before and could share his experiences. > > At first sight, I was thinking in trying PharoJS [2] to build abstractions > in Pharo for each PWA's client-side concept like Service Workers, Cache > API, IndexedDB API, appshell architecture, etc. > > By the other hand, one of the more appealing features of PWAs is the web > push notifications capability. To be able to send push notifications from a > Pharo server I will also need an implementation of the Web Push Protocol > [3] and the VAPID spec [4]. Do you know any previous related work in Pharo > or should I think in my own implementation? > > Thank you! > > [1] https://developers.google.com/web/progressive-web-apps/ > [2] https://pharojs.github.io/ > [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-12 > [4] https://tools.ietf.org/html/draft-thomson-webpush-vapid-02 >
Re: [Pharo-users] Pharo for PWAs and Web Push Notifications
Last spam bit: https://www.youtube.com/watch?v=iHqqUoqvYx4 On Tue, Oct 23, 2018 at 11:32 AM Rafael Luque wrote: > Hi all, > > I'm interested in developing progressive web applications (PWA) [1] in > Pharo, so I'd like to know if anyone has been involved in such kind of task > before and could share his experiences. > > At first sight, I was thinking in trying PharoJS [2] to build abstractions > in Pharo for each PWA's client-side concept like Service Workers, Cache > API, IndexedDB API, appshell architecture, etc. > > By the other hand, one of the more appealing features of PWAs is the web > push notifications capability. To be able to send push notifications from a > Pharo server I will also need an implementation of the Web Push Protocol > [3] and the VAPID spec [4]. Do you know any previous related work in Pharo > or should I think in my own implementation? > > Thank you! > > [1] https://developers.google.com/web/progressive-web-apps/ > [2] https://pharojs.github.io/ > [3] https://tools.ietf.org/html/draft-ietf-webpush-protocol-12 > [4] https://tools.ietf.org/html/draft-thomson-webpush-vapid-02 >
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--->
[Pharo-users] Issue decoding source file
I’m getting a walkback while attempting to look at the prior versions of certain methods.It happens on some methods, but not all. I think the the issue may be related to having characters in the method body that are represented as multi-byte sequences in UTF-8. The error is 'Illegal leading byte for utf-8 encoding’ from ZnUTF8Encoder Here are the top few stack frames: ZnUTF8Encoder>>error: ZnUTF8Encoder>>errorIllegalLeadingByte ZnUTF8Encoder>>nextCodePointFromStream: ZnUTF8Encoder(ZnCharacterEncoder)>>nextFromStream: ZnCharacterReadStream>>nextElement ZnCharacterReadStream(ZnEncodedReadStream)>>peek SourceFile>>peek ChunkReadStream(DecoratorStream)>>peek ChunkReadStream>>skipSeparators ChunkReadStream>>basicNextChunk ChunkReadStream>>next SourceFileArray>>readOnlyDo: BlockClosure>>ensure: SourceFileArray>>readOnlyDo: SourceFileArray>>changeRecordsFrom:className:isMeta:do: SourceFileArray>>changeRecordsFrom:className:isMeta: VersionBrowser>>buildChangeList VersionBrowser>>buildBrowser VersionBrowser>>browseVersionsOf: Everything looks reasonable. The underlying ZnBufferedReadStream is at position 2, and the first few bytes are 159 166 34 39 46 or, in hex: 9F A6 22 27 2E That first byte, 9F or 1001, is not valid as the first byte in a UTF-8 sequence (it’s a valid continuing byte) — which presumably is why ZnUTF8Encoder is complaining. So, why is the VersionBrowser starting to look at that particular place in the source file? VersionBrowser >> buildChangeList looks like this: buildChangeList rgMethod sourcePointer ifNil:[ ^ #() ]. ^ (SourceFiles changeRecordsFrom: rgMethod sourcePointer className: rgMethod instanceSideParentName isMeta: rgMethod isMetaSide) collectWithIndex: [ :c :i | | rg | rg := c asRingDefinition. rg annotationNamed: #versionIndex put: i ] and rgMethod sourcePointer is the value of the sourcePointer attribute in the attributes dictionary in rgMehod. What can be done to fix this? Andrew
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 ---