Branch: refs/heads/fniephaus/fullscreen-fix
Home: https://github.com/OpenSmalltalk/opensmalltalk-vm
Commit: 05d149fc6a844ed53ee23303cd5b7e4822b03d0b
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/05d149fc6a844ed53e…
Author: Fabio Niephaus <code(a)fniephaus.com>
Date: 2020-02-28 (Fri, 28 Feb 2020)
Changed paths:
M platforms/iOS/vm/OSX/sqSqueakOSXMetalView.m
Log Message:
-----------
Use NSWindow API for changing fullscreen mode
instead of going through NSView's API. The latter does offer more options, but messes up the fullscreen mode for some reason (UI becomes unresponsive because input events are no longer received).
Using `self.window toggleFullScreen:self` also does not mess with additional displays (only the display showing Squeak is put into fullscreen mode).
Branch: refs/heads/fniephaus/fullscreen-fix
Home: https://github.com/OpenSmalltalk/opensmalltalk-vm
Commit: edd51520455b9344afa8437eee81f5f640d0bea3
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/edd51520455b9344af…
Author: Fabio Niephaus <code(a)fniephaus.com>
Date: 2020-02-28 (Fri, 28 Feb 2020)
Changed paths:
M platforms/iOS/vm/OSX/sqSqueakOSXMetalView.m
Log Message:
-----------
Use NSWindow API for changing fullscreen mode
instead of going through NSView's API. The latter does offer more options, but messes up the fullscreen mode for some reason (UI becomes unresponsives because input events are no longer received).
Using `self.window toggleFullScreen:self` also does not mess with additional displays (only the display showing Squeak is put into fullscreen mode).
Hi Stefano,
this is the problem I saw too. My guess is that it is a simple encoding bug
somewhere. But I do not have the time right now to investigate,
unfortunately.
- Bert -
On Thu, Feb 27, 2020 at 2:25 PM stefano federici <s_federici(a)yahoo.com>
wrote:
> Dear Bert,
> I realized that I didn't check really everything. Indeed, I can open in
> ScratchJS projects that I created with Scratch 1.4, but I cannot reopen
> projects modified in ScratchJS, neither in ScratchJS nor in Scratch 1.4. I
> get the following error message in both cases:
>
> Could not read project; file may be damaged
> (key not found)
>
> Is this a known problem? Is there a way to overcome this limitation?
>
> Thanks in advance
>
> Cheers
> Stefano
>
>
> Stefano Federici
> -------------------------------------------------
> Università degli Studi di Cagliari
> Facoltà di Studi Umanistici
> Dipartimento di Pedagogia, Psicologia e Filosofia
> Via Is Mirrionis 1, 09123 Cagliari, Italia
> -------------------------------------------------
> Tel: +39 349 818 1955 Fax: +39 070 675 7113
>
> Il lunedì 10 febbraio 2020, 00:29:58 CET, Bert Freudenberg <
> bert(a)freudenbergs.de> ha scritto:
>
>
> Hi Stefano,
>
> it is possible to export your project to your hard disk:
>
> 1. run ScratchJS via https://squeak.js.org/scratch/#fullscreen
> 2. Inside Scratch, click "Save" as you normally would, give it a name. I
> just did that and named mine "test".
> 3. go to https://squeak.js.org/run/ and scroll down inside the file box:
> [image: image.png]
> 4. click the "/Scratch/Scratch Projects/test.sb" link to download the
> project file.
>
>
> To import an older project you simply drag-and-drop it into ScratchJS. Or
> drop it into the "run" page and then use Scratch's file dialog - you just
> need to navigate up to the right folder (Click "Computer" then "SqueakJS"):
>
> [image: image.png]
>
> When I just tested this it said the file was corrupted, not sure if that
> is a general problem or not.
> Someone should investigate - to get to the Morphic desktop, shift-click
> the loop in the R of the SCRATCH logo:
>
> [image: image.png]
>
> Feel free to file bug reports / feature requests at
> https://github.com/bertfreudenberg/SqueakJS/issues/
>
> It would be relatively simple to make a proper stand-alone app out of this
> by packaging it via Electron, and using the actual file system instead of
> the in-browser file system. I just do not have the time for that currently.
>
> Cheers!
>
> - Bert -
>
> On Sun, Feb 9, 2020 at 7:32 AM David T. Lewis <lewis(a)mail.msen.com>
> wrote:
>
> Hi Stefano,
>
> I think that your understanding is correct. SqueakJS stores files
> in an internal database, so the Scratch files that you saved do not
> appear directly on your PC.
>
> I do not know if it possible to copy those files to the file system
> on your PC, but hopefully someone on the squeak-dev mailing list will
> have an answer.
>
> Thanks for asking,
> Dave
>
>
> On Sun, Feb 09, 2020 at 09:51:25AM +0000, stefano federici wrote:
> >
> > >> you want to understand where the Scratch files are stored on your PC.
> > > Correct. So that I can easily open my old Scratch projects and I can
> send projects that I develop in ScratchJS to other people
> >
> > UPDATE: I created and saved a project in the "SqueakJS" folder (the one
> shown in ScratchJS) and I made a full search in my PC. The file was not
> found. So, I guess projects are just saved in an internal SqueakJS DB? If
> it is so, this makes unfortunately ScratchJS useless for my purposes. And I
> have no sufficient javascript/smalltalk knowledge to try myself to change
> this behaviour (that I guess would possible in principle, as a lot of JS
> apps allow to save file locally).
> >
> > Cheers
> > Stefano
> >
> > > I am also CC'ing the squeak-dev mailing list where some of the real
> Scratch and SqueakJS experts reside.
> >
> > Thanks a lot Dave
> >
> > > I think that you are asking about running Scratch on Bert
> Freudenberg's SqueakJS, which is a modern Squeak virtual machine
> implemented entirely in JavaScript for HML5
> >
> > Correct
> >
> > > If I understand your question correctly, you are asking about how to
> run Scratch on SqueakJS locally on your PC
> >
> > Yes. I partially solved the problem by downloading page
> https://squeak.js.org/run/ and by dragging my Scratch.image file into the
> page. ScratchJS runs apparently fine. I also partially solved the problem
> of running local files, by dragging the Scratch projects on the Scratch app
> running in SqueakJS
> >
> > > you want to understand where the Scratch files are stored on your PC.
> >
> > Correct. So that I can easily open my old Scratch projects and I can
> send projects that I develop in ScratchJS to other people
> >
> > Thanks for your help
> >
> > Stefano Federici
> > -------------------------------------------------
> > Universit?? degli Studi di Cagliari
> > Facolt?? di Studi Umanistici
> > Dipartimento di Pedagogia, Psicologia e Filosofia
> > Via Is Mirrionis 1, 09123 Cagliari, Italia
> > -------------------------------------------------
> > Tel: +39 349 818 1955 Fax: +39 070 675 7113
> >
> > Il domenica 9 febbraio 2020, 04:05:38 CET, David T. Lewis <
> lewis(a)mail.msen.com> ha scritto:
> >
> >
> >
> > Hi Stefano,
> >
> > I am changing the subject line to "SqueakJS for Scratch" because google
> > sends me somewhere else for "ScratchJS".
> >
> > I think that you are asking about running Scratch on Bert Freudenberg's
> > SqueakJS, which is a modern Squeak virtual machine implemented entirely
> > in JavaScript for HML5, rather than the traditional compiled virtual
> > machines that run on operating systems such as Linux and Windows.
> >
> > If I understand your question correctly, you are asking about how to
> > run Scratch on SqueakJS locally on your PC, and you want to understand
> > where the Scratch files are stored on your PC.
> >
> > I do not have good answers to your questions but I am sure that others
> > on this list can help. I am also CC'ing the squeak-dev mailing list
> > where some of the real Scratch and SqueakJS experts reside.
> >
> > Here are some useful links for SqueakJS information:
> >
> > ?? https://squeak.js.org/
> > ?? http://try.squeak.org/
> > ?? https://github.com/bertfreudenberg/SqueakJS
> >
> > And for Scratch:
> >
> > ??
> https://www.raspberrypi.org/blog/a-new-version-of-scratch-for-raspberry-pi-…
> > ?? https://www.raspberrypi.org/blog/test-tims-nuscratch-beta/
> > ?? https://github.com/raspberrypi/scratch
> >
> > Dave
> >
> >
> > On Sun, Feb 09, 2020 at 01:01:57AM +0000, stefano federici wrote:
> > >??
> > >?? I managed running ScratchJS locally by saving the page
> https://squeak.js.org/run/ to my PC and the dragging my Scratch.image
> into the page.
> > >
> > > What I don't know is where the SqueakJS file system is stored. When I
> open the File>Open dialog I can see the SqueakJS and ScratchProjects
> folders. Where are they stored in my PC?
> > >
> > > Thanks in advance
> > >
> > > Stefano Federici
> > > -------------------------------------------------
> > > Universit?? degli Studi di Cagliari
> > > Facolt?? di Studi Umanistici
> > > Dipartimento di Pedagogia, Psicologia e Filosofia
> > > Via Is Mirrionis 1, 09123 Cagliari, Italia
> > > -------------------------------------------------
> > > Tel: +39 349 818 1955 Fax: +39 070 675 7113
> > >
> > >?? ?? ?? Il venerd?? 7 febbraio 2020, 21:39:50 CET, stefano federici <
> s_federici(a)yahoo.com> ha scritto:??
> > >??
> > >?? Dear All,
> > > I have two questions about ScratchJS (that I think is an awesome
> project):
> > > - is it possible to run ScratchJS locally? I tried to run index.html
> in the SqueakJS-master\scratch folder, but I just got a black square in the
> upper left corner
> > > - can I open local projects in ScratchJS?
> > >
> > > Thanks in advance for your help
> > >
> > > Regards
> > > Stefano Federici
> > > -------------------------------------------------
> > > Universit?? degli Studi di Cagliari
> > > Facolt?? di Studi Umanistici
> >
> > > Dipartimento di Pedagogia, Psicologia e Filosofia
> > > Via Is Mirrionis 1, 09123 Cagliari, Italia
> > > -------------------------------------------------
> > > Tel: +39 349 818 1955 Fax: +39 070 675 7113??
>
>
Branch: refs/heads/Cog
Home: https://github.com/OpenSmalltalk/opensmalltalk-vm
Commit: 11a812894dd9c9cbb774c8d3d4cf4713936c5640
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/11a812894dd9c9cbb7…
Author: Nicolas Cellier <nicolas.cellier.aka.nice(a)gmail.com>
Date: 2020-02-27 (Thu, 27 Feb 2020)
Changed paths:
M src/plugins/Squeak3D/Squeak3D.c
Log Message:
-----------
Hotfix for Squeak3D on 64bits VM
The B3DRasterizer state.objects store pointers to B3D objects into a 4-bytes Smalltalk WordArray.
This means that appropriate arithmetic has to take place in order to compute the number of objects stored in that WordArray
Indeed, on 64bits VM, each object pointer is going to consume 8-bytes (2 words).
That also means that proper allocation of Smalltalk WordArray has to take place at image side.
A fix to `B3DPrimitiveRasterizerState>>initObjects:` is thus also required
objects := B3DPrimitiveRasterizerData new: nObjects * (Smalltalk wordSize / 4)
The slang and image Smalltalk code have not been published yet.
They are waiting for approval of my Developer status on http://www.squeaksource.com/Balloon3D.html