[squeak-dev] Smalltalk>>#platformName

Marcel Taeumel marcel.taeumel at hpi.de
Wed Oct 23 13:45:40 UTC 2019


Sounds good for a name. 

+1 for OSPlatform
-1 for SqueakPlatform

Best,
Marcel
Am 22.10.2019 11:07:13 schrieb Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>:
Please consider if the work done in Pharo OSPlatform may fit.
Otherwise, maintaining multi-dialect compatibility becomes harder than necessary.



Le mar. 22 oct. 2019 à 10:21, Tobias Pape <Das.Linux at gmx.de [mailto:Das.Linux at gmx.de]> a écrit :


> On 22.10.2019, at 10:17, Fabio Niephaus <lists at fniephaus.com [mailto:lists at fniephaus.com]> wrote:
>
> Considering there's quite some code relying on `Smalltalk platformName = 'Win32'`, I'm certain the Windows 64bit VM also returns `Win32`. We might want to clean this up, but it will be hard to provide backward compatibility. In 64bit GraalSqueak, we also return 'Win32' (see [1])
>

Win32 is the correct name, irrespective of 64/32 bit executables.

Best regards
        -Tobias

> Fabio
>
> [1] https://github.com/hpi-swa/graalsqueak/blob/9ce025f5f891a6369881551897e39a604cd6e617/src/de.hpi.swa.graal.squeak/src/de/hpi/swa/graal/squeak/util/OSDetector.java#L37 [https://github.com/hpi-swa/graalsqueak/blob/9ce025f5f891a6369881551897e39a604cd6e617/src/de.hpi.swa.graal.squeak/src/de/hpi/swa/graal/squeak/util/OSDetector.java#L37]
>
> On Tue, Oct 22, 2019 at 10:18 AM John Pfersich via Squeak-dev <squeak-dev at lists.squeakfoundation.org [mailto:squeak-dev at lists.squeakfoundation.org]> wrote:
> I dunno, my Squeak download says its 64 bit, but Smalltalk platformName answers Win32 still; isn’t the 64 bit exe still experimental?
>
> /————————————————————/
> For encrypted mail use jgpfersich at protonmail.com [mailto:jgpfersich at protonmail.com]
> Get a free account at ProtonMail.com
> Web: www.objectnets.net [http://www.objectnets.net] and www.objectnets.org [http://www.objectnets.org]
>
>> On Oct 21, 2019, at 18:10, Chris Muller <ma.chris.m at gmail.com [mailto:ma.chris.m at gmail.com]> wrote:
>>
>> 
>> I was trying to find out all possible values of this message.  Browsing senders reveals a need to factor this out into a first-class SqueakPlatform -- we have way too many places which employ switch statements to determine what to do:
>>
>>     Smalltalk platformName = "Mac OS"
>>        ifTrue:
>>           [ #('/System/Library/Fonts' '/Library/Fonts') do: [:fontDir | aBlock value: fontDir]. ]
>>
>> Others check for "Win32", I'm not sure what #platformName is answering on 64-bit VM on Windows these days, could someone running Windows please tell me?
>>
>> Still others check for "Risc OS" or "unix".  So, the full list I have so far is:
>>
>>     unix
>>     Win32
>>     Mac OS
>>     Risc OS
>>
>> If you know of any others, please let me know.
>>
>>  - Chris
>>
>
>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191023/ea0788cc/attachment.html>


More information about the Squeak-dev mailing list