<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Done, thanks!</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel<br>
<b>Gesendet:</b> Dienstag, 11. Oktober 2022 11:12:09<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] OSVM Update Reminder (was: [ANN] OpenSmalltalk VM 2022 released (tag 202205110711))</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Looks good. Except for that little "." UI glitch in the text, which also introduces a inconsistent line gap :-)
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 22.09.2022 13:29:12 schrieb christoph.thiede@student.hpi.uni-potsdam.de <christoph.thiede@student.hpi.uni-potsdam.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">Hi all,<br>
<br>
please find the attached changeset which implements a small VM update reminder as proposed. :-)<br>
<br>
Best,<br>
Christoph<br>
<br>
<b>=============== Summary ===============</b><br>
<br>
Change Set:        vm-update-reminder<br>
Date:            22 September 2022<br>
Author:            Christoph Thiede<br>
<br>
Tot the 'update completed' dialog, adds a short reminder if a newer OSVM release is available. For different VMs, the reminder will not appear. The latest release number is stored in SystemVersion>>#recommendedVMBuildNumber and should be updated after each
 VM release. See http://lists.squeakfoundation.org/pipermail/vm-dev/2022-September/038412.html.<br>
<br>
<b>=============== Diff ===============</b><br>
<br>
<b>MCMcmUpdater>>updateMessageFor: {private} · ct 9/22/2022 13:15 (changed)</b><br>
updateMessageFor: previousUpdateLevel<br>
<br>
<s><span style="color: #0000FF">-     ^ ('Update completed.<br><br>Version: {1}<br>Update: {3}<b>{2}</b><br><br>Url: <a href="{4}">{4}</{10}><br>Map: ''{5}''<br>CI status: <a href="{8}"><img src="{7}" /> {9}</{10}>{6}' translated format: {<br>
</span></s><span style="color: #FF0000">+     ^ ('Update completed.<br><br>Version: {1}<br>Update: {3}<b>{2}</b><br><br>Url: <a href="{4}">{4}</{10}><br>Map: ''{5}''<br>CI status: <a href="{8}"><img src="{7}" /> {9}</{10}>{6}.{11}' translated format: {<br>
</span>            SystemVersion current version.<br>
            SystemVersion current highestUpdate.<br>
            previousUpdateLevel = SystemVersion current highestUpdate<br>
                ifTrue: ['']<br>
                ifFalse: [previousUpdateLevel asString, ' -> '].<br>
            self repository.<br>
            MCMcmUpdater updateMapName.<br>
            SystemVersion current description ifEmpty: [''] ifNotEmpty: [:d |<br>
                '<br><br><font face="{2}" size="{3}">{1}</font>'<br>
                    format: {<br>
                        d.<br>
                        Preferences standardButtonFont familyName.<br>
                        Preferences standardButtonFont pointSize.<br>
                    }].<br>
            SystemVersion current ciStatusBadgeUrl.<br>
            SystemVersion current ciStatusPageUrl.<br>
            SystemVersion current ciStatusTimestamp ifNil: ['(build inaccessible!)' translated].<br>
            "mt: Avoid triggering the Windows Defender. See http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-December/217346.html"<br>
            'a'.<br>
<span style="color: #FF0000">+             SystemVersion current recommendedVMUpdateInfo ifNil: [''] ifNotNil: [:info |<br>
+                 '<br><br><font face="{5}" size="{6}">A newer VM is recommended ({1} -> {2})! Visit the <a href="{3}">project page</{4}> to download it.</font>' translated<br>
+                     format: {<br>
+                         info key.<br>
+                         info value.<br>
+                         SystemVersion current vmUpdateURL.<br>
+                         'a'. "avoid Windows Defender again"<br>
+                         Preferences standardButtonFont familyName.<br>
+                         Preferences standardButtonFont pointSize<br>
+                     }]<br>
</span>                }) asTextFromHtml<br>
<br>
<b>SmalltalkImage>>isRunningOpenSmalltalkVM {system attributes} · ct 9/22/2022 13:18</b><br>
<span style="color: #FF0000">+ isRunningOpenSmalltalkVM<br>
+ <br>
+     ^ [#('CoInterpreter' 'StackInterpreter') includes: (self interpreterClass copyUpTo: Character space)]<br>
+         on: Error "unsupported primitives"<br>
+         do: [:ex | false]</span><br>
<br>
<b>SmalltalkImage>>openSmalltalkVMBuildNumber {system attributes} · ct 9/22/2022 12:58</b><br>
<span style="color: #FF0000">+ openSmalltalkVMBuildNumber<br>
+ <br>
+     | matcher |<br>
+     self isRunningOpenSmalltalkVM ifFalse: [^ nil].<br>
+     <br>
+     matcher := 'VM\: (\d+).*' asRegex.<br>
+     (matcher matches: self platformSourceVersion) ifFalse: [^ nil].<br>
+     ^ (matcher subexpression: 2) asNumber</span><br>
<br>
<b>SystemReporter>>reportVM: {reporting} · ct 9/22/2022 12:52 (changed)</b><br>
reportVM: aStream<br>
    | howToBuild |<br>
    self header: 'Virtual Machine' on: aStream.<br>
    aStream<br>
        nextPutAll: Smalltalk vm vmFileName; cr;<br>
        nextPutAll: Smalltalk vm vmVersion; cr.<br>
    Smalltalk vm buildDate<br>
        ifNotNil: [:string | aStream nextPutAll: string; cr].<br>
    [Smalltalk vm platformSourceVersion<br>
        ifNotNil: [:v | aStream nextPutAll: 'platform sources revision ', v; cr]]<br>
            on: Warning do: ["unsupported primitive"].<br>
    [Smalltalk vm interpreterSourceVersion<br>
        ifNotNil: [:v | aStream nextPutAll: 'VMMaker versionString ', v; cr]]<br>
            on: Warning do: ["unsupported primitive"].<br>
    [Smalltalk vm interpreterClass<br>
        ifNotNil: [:string | aStream nextPutAll: string; cr].<br>
    Smalltalk vm cogitClass<br>
        ifNotNil: [:string | aStream nextPutAll: string; cr]<br>
    ] on: Error do: ["unsupported primitives"].<br>
<s><span style="color: #0000FF">-     self vmIsOpenSmalltalkVM ifTrue:<br>
</span></s><span style="color: #FF0000">+     Smalltalk vm isRunningOpenSmalltalkVM ifTrue:<br>
</span>        [howToBuild := 'Visit https://github.com/OpenSmalltalk/opensmalltalk-vm; follow the\"Clone or download" instructions, then read the top-level README.md\and HowToBuild files in the top-level build directory for your\platform(s), build.macos64x64/HowToBuild,
 build.win32x86/HowToBuild, etc.' withCRs].<br>
    howToBuild ifNil: [^self].<br>
    aStream cr.<br>
    self header: 'To Build A Similar Virtual Machine' on: aStream.<br>
    aStream nextPutAll: howToBuild; cr<br>
<br>
<b>SystemVersion>>recommendedVMBuildNumber {accessing} · ct 9/22/2022 13:05</b><br>
<span style="color: #FF0000">+ recommendedVMBuildNumber<br>
+ <br>
+     ^ 202206021410</span><br>
<br>
<b>SystemVersion>>recommendedVMUpdateInfo {accessing} · ct 9/22/2022 13:11</b><br>
<span style="color: #FF0000">+ recommendedVMUpdateInfo<br>
+ <br>
+     | currentNumber |<br>
+     currentNumber := Smalltalk openSmalltalkVMBuildNumber ifNil: [^ nil].<br>
+     currentNumber >= self recommendedVMBuildNumber ifTrue: [^ nil].<br>
+     ^ currentNumber -> self recommendedVMBuildNumber</span><br>
<br>
<b>SystemVersion>>vmUpdateURL {accessing} · ct 9/22/2022 13:12</b><br>
<span style="color: #FF0000">+ vmUpdateURL<br>
+ <br>
+     ^ 'https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/202206021410'</span><br>
<br>
<span style="color: #808080">---<br>
</span><span style="color: #808080"><i>Sent from </i></span><span style="color: #808080"><i><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><u><font color="#808080">Squeak Inbox Talk</font></u></a></i></span><br>
<br>
On 2022-09-18T16:46:29-07:00, eliot.miranda@gmail.com wrote:<br>
<br>
> On Fri, Sep 16, 2022 at 7:20 AM Thiede, Christoph <<br>
> Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:<br>
> <br>
> > Hi all,<br>
> ><br>
> ><br>
> > > If you are mostly interested in making sure that people are aware of a<br>
> > new vm, a message that says a new vm is available with release notes and a<br>
> > method to update the vm would serve the same purpose. A well placed red<br>
> > (!) exclamation point is really all you need. The method to update the vm<br>
> > could be as simple as taking the user to the download page (just like your<br>
> > original email message in this thread).<br>
> ><br>
> > This is what I meant. Don't restrict compatibility, don't enforce users to<br>
> > install a new VM, but give them a short unobtrusive note if an update is<br>
> > available. We could place this in the "Update complete" dialog, for<br>
> > instance. We could also read the latest build number of the VM<br>
> > somewhere from squeak.org if we don't want to store this information in<br>
> > the image. Could this maybe help VM developers receive earlier feedback on<br>
> > new VM releases?<br>
> ><br>
> <br>
> +1<br>
> <br>
> ><br>
> > Best,<br>
> > Christoph<br>
> ><br>
> > ------------------------------<br>
> > *Von:* Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im<br>
> > Auftrag von Ron Teitelbaum <ron at usmedrec.com><br>
> > *Gesendet:* Freitag, 16. September 2022 14:56:01<br>
> > *An:* The general-purpose Squeak developers list<br>
> > *Betreff:* Re: [squeak-dev] [ANN] OpenSmalltalk VM 2022 released (tag<br>
> > 202205110711)<br>
> ><br>
> > Hi All,<br>
> ><br>
> > If you are mostly interested in making sure that people are aware of a new<br>
> > vm, a message that says a new vm is available with release notes and a<br>
> > method to update the vm would serve the same purpose. A well placed red<br>
> > (!) exclamation point is really all you need. The method to update the vm<br>
> > could be as simple as taking the user to the download page (just like your<br>
> > original email message in this thread).<br>
> ><br>
> > All the best,<br>
> ><br>
> > Ron Teitelbaum<br>
> ><br>
> > On Thu, Sep 15, 2022 at 8:56 PM David T. Lewis <lewis at mail.msen.com><br>
> > wrote:<br>
> ><br>
> >> On Thu, Sep 15, 2022 at 01:10:00PM +0000, Thiede, Christoph wrote:<br>
> >> > Hi all,<br>
> >> ><br>
> >> ><br>
> >> > just a quick idea: Could we maintain the build number of the<br>
> >> *recommended*<br>
> >> > (i.e., stable) OSVM version in the Trunk and remind users about a newer<br>
> >> > VM in the Transcript after processing the update stream?<br>
> >> ><br>
> >><br>
> >> -1<br>
> >><br>
> >> Images and VMs are loosely coupled and we all work hard to minimize<br>
> >> unnecessary dependencies between them. One VM can run many different<br>
> >> images, and an image can run on more than one kind of VM. That is<br>
> >> a good thing.<br>
> >><br>
> >> Remember that we have SqueakJS and other kinds of VM also.<br>
> >><br>
> >> Dave<br>
> >><br>
> ><br>
> _,,,^..^,,,_<br>
> best, Eliot<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220918/e91140f5/attachment.html><br>
> <br>
> </div>
</blockquote>
</div>
</div>
</body>
</html>