Re: [Pharo-users] X11 options on Ubuntu VM / Athens renderingproblems
Interesting. Could be. The specific problem came up on an Intel NUC which uses Intel integrated graphics. Cheers, Jeff On Mon, Nov 6, 2017 at 5:24 PM Andrew Glynn wrote: > I don’t have any issues with Linux in full screen mode (Mint 18 KDE and > OEL7 UEK KDE) but it sounds like it may be an issue with the Wayland > graphics system, and KDE doesn’t use it AFAIK. If so, it may also be > driver specific – what graphics card are you using? > > > > It is just a guess, but pulling Unity forward switches it out of Wayland > graphics mode (used mainly for games etc. that run full screen), if it > doesn’t go back into it until a new full screen app starts up it would > account for the improvement. > > > > Andrew > > > > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for > Windows 10 > > > > *From: *J.F. Rick > *Sent: *Monday, November 6, 2017 4:57 PM > *To: *Any question about pharo is welcome > *Subject: *Re: [Pharo-users] X11 options on Ubuntu VM / Athens > renderingproblems > > > > Just a quick follow up: We've found that if we are in fullscreen Pharo > mode on Linux and hit the ALT button twice, the Athens-based rendering > speeds up significantly. The first ALT brings the Unity launcher to the > foreground. The second ALT bring fullscreen Pharo back to the foreground. > I'm not sure why this makes Athens rendering faster but it does. Perhaps > that offers a clue as to what is slowing Pharo down in fullscreen on Linux. > > > > Cheers, > > > > Jeff > > > > On Wed, Oct 11, 2017 at 2:56 PM Hilaire wrote: > > We tested it on P6.1 64bits, and this Cairo crash seems to be gone. It > may need more testing though. > > Is it thanks to P6.1 or the 64bits image/VM? It looks strange because it > looked like a lib Cairo crash, but in the other hand the faulty C > function did not appear to be called from Pharo image. > > What need to be done porting to P6.1, is mainly image shrinking, fix of > several bugs from P6.1 impacting drgeo, working setup for > linux/windows/mac. Still some job. > > Hilaire > > Le 02/10/2017 à 15:19, Stephane Ducasse a écrit : > > How could we help? > > > > > > On Sun, Oct 1, 2017 at 9:14 PM, Hilaire wrote: > >> I had situation where the system libcairo:i386 does not work with > Dr.Geo[1], > >> Pharo crashes with what looks like a Cairo crash! Looks like not a Pharo > >> fault, but I am definitely stuck. > >> > >> It is problematic, it is a system (LinuxMint based) used in Geneva > primary > >> schools and Dr. Geo was expected to be used there:( > >> > >> Hilaire > >> > >> [1]http://forum.world.st/Cairo-related-crash-with-Dr-Geo-tt4952023.html > >> > >> > >> Le 01/10/2017 à 19:50, Igor Stasenko a écrit : > >>> All these difficulties are good argument to get the appropriate > >>> libcairo/libpng shipped with the Linux VM, as done with Windows > >>> and MacOSX VM > >>> > >>> Nah, in my case, there's nothing that can be lableled as "Pharo > fault". It > >>> is definitely a linux/ubuntu ecosystem fault. - by not providing > parallel > >>> updates for 32 & 64 bit variant of same library. > >> -- > >> Dr. Geo > >> http://drgeo.eu > >> > >> > >> > > -- > Dr. Geo > http://drgeo.eu > > > >
Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems
Just a quick follow up: We've found that if we are in fullscreen Pharo mode on Linux and hit the ALT button twice, the Athens-based rendering speeds up significantly. The first ALT brings the Unity launcher to the foreground. The second ALT bring fullscreen Pharo back to the foreground. I'm not sure why this makes Athens rendering faster but it does. Perhaps that offers a clue as to what is slowing Pharo down in fullscreen on Linux. Cheers, Jeff On Wed, Oct 11, 2017 at 2:56 PM Hilaire wrote: > We tested it on P6.1 64bits, and this Cairo crash seems to be gone. It > may need more testing though. > > Is it thanks to P6.1 or the 64bits image/VM? It looks strange because it > looked like a lib Cairo crash, but in the other hand the faulty C > function did not appear to be called from Pharo image. > > What need to be done porting to P6.1, is mainly image shrinking, fix of > several bugs from P6.1 impacting drgeo, working setup for > linux/windows/mac. Still some job. > > Hilaire > > Le 02/10/2017 à 15:19, Stephane Ducasse a écrit : > > How could we help? > > > > > > On Sun, Oct 1, 2017 at 9:14 PM, Hilaire wrote: > >> I had situation where the system libcairo:i386 does not work with > Dr.Geo[1], > >> Pharo crashes with what looks like a Cairo crash! Looks like not a Pharo > >> fault, but I am definitely stuck. > >> > >> It is problematic, it is a system (LinuxMint based) used in Geneva > primary > >> schools and Dr. Geo was expected to be used there:( > >> > >> Hilaire > >> > >> [1]http://forum.world.st/Cairo-related-crash-with-Dr-Geo-tt4952023.html > >> > >> > >> Le 01/10/2017 à 19:50, Igor Stasenko a écrit : > >>> All these difficulties are good argument to get the appropriate > >>> libcairo/libpng shipped with the Linux VM, as done with Windows > >>> and MacOSX VM > >>> > >>> Nah, in my case, there's nothing that can be lableled as "Pharo > fault". It > >>> is definitely a linux/ubuntu ecosystem fault. - by not providing > parallel > >>> updates for 32 & 64 bit variant of same library. > >> -- > >> Dr. Geo > >> http://drgeo.eu > >> > >> > >> > > -- > Dr. Geo > http://drgeo.eu > > > >
Re: [Pharo-users] Writing "powerpoint" like presentations in Pharo?
I've often used Pharo and Squeak for presentations, particularly when interactive widgets can get me beyond typical presentation stuff. The main hurdle I see in getting a really awesome Pharopoint is that I'd like to have a presenter interface that is different for me the presenter than what the audience sees. Here are some things that come to mind: (1) Allow me to keep my higher resolution 16x10 aspect ratio screen and present to a 4x3 monitor. (2) Allow me to keep presenter notes that people can't see. (3) Allow me a preview of upcoming slides and to jump around. (4) Make my cursor on the presentation leave a trail, so I can highlight things with my mouse. >From a programming Pharo programming perspective, this stuff isn't hard. Where the rubber hits the road is that Pharo needs to interact with the operating system to set up the two different decoration-less windows, displaying one on the projector and keeping the other one on the laptop. In Powerpoint and the like, getting into this mode is just a button click away. Once that functionality is just a few lines of Smalltalk away, I'm sure we'll see really interesting versions of Pharopoint coming soon after. Just my two cents, Jeff On Sat, Nov 4, 2017 at 12:57 PM Stephane Ducasse wrote: > I think that this kind of experiences is excellent because this is > exactly the level for Bloc. > > Stef > > On Fri, Nov 3, 2017 at 1:27 PM, Stephan Eggermont > wrote: > > On 03/11/17 12:33, Tim Mackinnon wrote: > >> > >> Cool - great minds think alike ;) > > > > > > :) > > > >> In your photo - there is keynote, are you creating there and then > >> rendering in Pharo - or are you exporting to keynote to had out > afterwards? > > > > > > That was the first experiment. I took a slide from a keynote > presentation I > > have made and tried reproducing it in Bloc. The quality of the graphics > and > > typographical support is now good enough to do that. > > It is a page from > > https://medium.com/concerning-pharo/pharo-50c66685913c > > > > I'm not yet sure how I'd want it integrated with gtInspector, how to > have a > > slide-specific DSL and what kind of storage format to use. > > > > My Bloc experiments on vimeo are helping me test hypotheses on how I'd > want > > to work with it. Last week I was distracted by private reasons, the weeks > > before that with PharoLauncher, P3, Iceberg... > > > > Interaction between text areas and drag and drop was not yet working as I > > wanted it to. > > > > Earlier experiments I've done with a glamour based browser, including > > exercises where save would recompile a method and show the results > > > > Stephan > > > > > >
Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems
Hi Igor et al., thanks for taking a look at this. I appreciate it a lot. I've been swamped with work et al. but I'm back. If I understand it correctly, Igor is still fighting with drivers to make it work on his system. Let me know when you want me to try something. Cheers, Jeff On Fri, Sep 29, 2017 at 3:22 PM Igor Stasenko wrote: > On 29 September 2017 at 22:05, Hilaire wrote: > >> libcairo2:amd64 1.15.2-0intel1 is clearly not from the official >> repository. >> >> See on my ubuntu17.04: >> >> hilaire@PCHome:~$ dpkg -l | grep libcairo2 >> ii libcairo2:amd64 1.14.8-1 amd64Cairo 2D vector graphics library >> ii libcairo2:i386 1.14.8-1 i386 Cairo 2D vector graphics library >> ii libcairo2-dev 1.14.8-1 amd64Development files for the Cairo 2D >> graphics library >> >> >> If you can wipe it out, you may sort out. >> >> > most probably it is due to my attempts to make my hybrid graphics setup > work.. > i bought this laptop year ago and then figured out, that there are issues > with X11 and kernel drivers > that prevents using both video cards on board.. > and installing latest & finest didn't changed much. > > > > > -- > Best regards, > Igor Stasenko. >
Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems
Hi Clement and and Stef, thanks for sharing. The video looks cool and it seems like a high-performance approach. Unfortunately, it doesn't seem to be working in Linux. I'm attaching the Pharo debug file, but it seems like the Handler being OSNullWindowHandle indicates a problem. I'm also not sure that this approach would allow me to do fullscreen apps. I noticed that your video shows a title bar in MacOS. Cheers, Jeff On Sun, Sep 24, 2017 at 7:53 AM Clément Bera wrote: > Hi, > > I describe in the next paragraphs what I do to build application with > Pharo at 50 fps. Now I am using a SDL2 window with OSWindow and not the > default Pharo window for rendering. There is a fullscreen option with > OSWindow, I don't use it but I've just tried it works fine. > > To use Athens/Cairo I start the VM headless and I open from the code a > window using the SDL2 binding (OSWindow), then I extract the window surface > as a cairo surface to draw on it using Athens and I use SDL2 to manage > events (mouse, keyboard). That way I don't even start morphic/WorldMorph > which wastes cpu ressources. > > I built this video game that way: > > https://clementbera.wordpress.com/2016/08/29/sdl2-cairo-headless-for-realtime-native-applications/ > https://www.youtube.com/watch?v=srPdFgbyS6s > > The game is running in Pharo 4 (pre-Spur). I configured it to run at 50 > fps but from time to time some frames are dropped for performance so I > would say it is running at around 48-49 fps in practice. I think it should > work on the latest Pharo but you need to ask on pharo-dev how to use > OSWindow. Some APIs have changed since Pharo 4. Since the latest Pharo > version is now using Spur I expect the performance to be way better and I > think 50 fps is definitely manageable on a laptop. > > Note that this is still Pharo so if you want something which looks > real-time you need to be careful about you object allocation rate > in-between frame rendering. > > I hope this can help. > > Regards > > > > On Sun, Sep 24, 2017 at 9:43 AM, Stephane Ducasse > wrote: > >> Hi jeff >> >> let us know if this is working. the start.sh script is not working on >> my machine. but clement made it worked on his machine and he should >> publish a zip. >> >> Stef >> >> >> >> On Sun, Sep 24, 2017 at 9:39 AM, Stephane Ducasse >> wrote: >> > Yes I will share a dropbox with you for now. >> > >> > On Sat, Sep 23, 2017 at 9:44 PM, J.F. Rick wrote: >> >> Hi Stef, >> >> >> >> since I'm only doing Athens rendering, it might be possible to do a >> native >> >> window implementation. That said, I don't know how to get started with >> that. >> >> Documentation seems to be hard to find. The last time I saw any work >> on that >> >> it was too early to be usable. I'm also not sure if it solves my "it >> needs >> >> to run in fullscreen at full speed" problem. If someone like Clement >> could >> >> get me started, that would be awesome. >> >> >> >> Cheers, >> >> >> >> Jeff >> >> >> >> On Fri, Sep 22, 2017 at 12:27 PM Stephane Ducasse < >> stepharo.s...@gmail.com> >> >> wrote: >> >>> >> >>> Hi Jeff >> >>> >> >>> Nice to see you. I do not know anybody running on X11. Esteban is >> >>> working on better SDL20 integration. >> >>> Did you try having a native window? I asked clement if he could >> >>> release the Wizard Battle Arena because it was a game he did in a >> >>> couple of days (yes he is good this guy) and that use cairo athens >> >>> based for drawing on native window. >> >>> >> >>> stef >> >>> >> >>> On Fri, Sep 22, 2017 at 3:11 PM, J.F. Rick wrote: >> >>> > I'm running a fullscreen Pharo application on Ubuntu and I've >> noticed >> >>> > that >> >>> > Athens rendering gets way worse (maybe 10 updates per second) when I >> >>> > switch >> >>> > to fullscreen mode from inside Pharo. Ideally, I'd love for that to >> be >> >>> > fixed. >> >>> > >> >>> > In lieu of that, it would be cool if I could just maximize Pharo to >> the >> >>> > size >> >>> > of the screen to achieve good performance. Two things stop that: the >> >>> > Unity >> >>&g
Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems
Hi Stef, since I'm only doing Athens rendering, it might be possible to do a native window implementation. That said, I don't know how to get started with that. Documentation seems to be hard to find. The last time I saw any work on that it was too early to be usable. I'm also not sure if it solves my "it needs to run in fullscreen at full speed" problem. If someone like Clement could get me started, that would be awesome. Cheers, Jeff On Fri, Sep 22, 2017 at 12:27 PM Stephane Ducasse wrote: > Hi Jeff > > Nice to see you. I do not know anybody running on X11. Esteban is > working on better SDL20 integration. > Did you try having a native window? I asked clement if he could > release the Wizard Battle Arena because it was a game he did in a > couple of days (yes he is good this guy) and that use cairo athens > based for drawing on native window. > > stef > > On Fri, Sep 22, 2017 at 3:11 PM, J.F. Rick wrote: > > I'm running a fullscreen Pharo application on Ubuntu and I've noticed > that > > Athens rendering gets way worse (maybe 10 updates per second) when I > switch > > to fullscreen mode from inside Pharo. Ideally, I'd love for that to be > > fixed. > > > > In lieu of that, it would be cool if I could just maximize Pharo to the > size > > of the screen to achieve good performance. Two things stop that: the > Unity > > application bar and the title-bar. For the former, I can configure Unity > to > > hide it. I noticed a '-notitle' X11 option when I execute pharo -help. > I've > > tried using these X11 options and neither -notitle or -fullscreen seem to > > have any effect. Here's the command I run: > > > > ./bin/pharo --encoding utf8 -vm-display-X11 -fullscreen PATH_TO_IMAGE & > > > > Pharo starts fine but neither option seems to have any effect. I've also > > tried this in GNOME, thinking that Unity was the problem. Again, no > effect. > > > > Any suggestions? > > > > Jeff > > > > > >
[Pharo-users] X11 options on Ubuntu VM / Athens rendering problems
I'm running a fullscreen Pharo application on Ubuntu and I've noticed that Athens rendering gets way worse (maybe 10 updates per second) when I switch to fullscreen mode from inside Pharo. Ideally, I'd love for that to be fixed. In lieu of that, it would be cool if I could just maximize Pharo to the size of the screen to achieve good performance. Two things stop that: the Unity application bar and the title-bar. For the former, I can configure Unity to hide it. I noticed a '-notitle' X11 option when I execute pharo -help. I've tried using these X11 options and neither -notitle or -fullscreen seem to have any effect. Here's the command I run: ./bin/pharo --encoding utf8 -vm-display-X11 -fullscreen PATH_TO_IMAGE & Pharo starts fine but neither option seems to have any effect. I've also tried this in GNOME, thinking that Unity was the problem. Again, no effect. Any suggestions? Jeff
Re: [Pharo-users] Pharo Audio?
Yes, sound support on Linux is not great and probably won't be good until 64-bit. If you are just looking to play an MP3 based on some user action, you could just try using a command-line MP3 player and then using an OSProcess to launch it, stop it, etc. It's a bit ugly code but might need your needs. Cheers, Jeff On Mon, May 8, 2017 at 2:16 AM p...@highoctane.be wrote: > CentOS7 and Ubuntu 14.04 LTS are not so lucky apparently. > > Phil > > On Mon, May 8, 2017 at 5:29 AM, Volkert wrote: > > Ubuntu 16.04 > > > > Volkert > > > > Am 7. Mai 2017 22:18:26 MESZ schrieb "p...@highoctane.be" > > : > >> > >> Which Linux are you on? > >> > >> Phil > >> > >> On Sun, May 7, 2017 at 9:36 PM, volkert wrote: > >>> > >>> I found this tutorial "https://github.com/xmessner/PharoSoundTutorial > " > >>> > >>> So at least wav files working :-) > >>> > >>> Volkert > >>> > >>> > >>> Am 07.05.2017 um 19:08 schrieb volkert: > >>>> > >>>> > >>>> it tried the latest VM for Pharo6 and it works. you need to install > >>>> "osspd". > >>>> > >>>> anyway, any code snippets around, that shows me how to load and play > >>>> mp3, > >>>> ogg or wav? > >>>> > >>>> Volkert > >>>> > >>>> Am 07.05.2017 um 18:12 schrieb p...@highoctane.be: > >>>>> > >>>>> > >>>>> And sound is not working under linux at the moment. > >>>>> > >>>>> Phil > >>>>> > >>>>> On Sun, May 7, 2017 at 3:20 PM, volkert wrote: > >>>>>> > >>>>>> > >>>>>> I have done this, but if have no idea how to play a mp3, ogg, wav > >>>>>> file > >>>>>> > >>>>>> LG, > >>>>>> > >>>>>> Volkert > >>>>>> > >>>>>> > >>>>>> Am 07.05.2017 um 15:17 schrieb J.F. Rick: > >>>>>> > >>>>>> Yes, you need to install PharoSound from the Catalog Browser (World > >>>>>> Menu > >>>>>> -> > >>>>>> Tools -> Catalog Browser). > >>>>>> > >>>>>> Cheers, > >>>>>> > >>>>>> Jeff > >>>>>> > >>>>>> On Sun, May 7, 2017 at 8:42 AM volkert wrote: > >>>>>>> > >>>>>>> > >>>>>>> Dear all, > >>>>>>> > >>>>>>> it is possible to play some audio (wav, ogg, mp3, ...) in Pharo? > >>>>>>> > >>>>>>> - I need to play an effect on a key/mouse event... > >>>>>>> > >>>>>>> - i need to play/stream some audio file in the background ... > >>>>>>> > >>>>>>> BW, > >>>>>>> Volkert > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>> > >> > >> > >> > > > > -- > > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail > gesendet. > >
Re: [Pharo-users] Pharo Audio?
Yes, you need to install PharoSound from the Catalog Browser (World Menu -> Tools -> Catalog Browser). Cheers, Jeff On Sun, May 7, 2017 at 8:42 AM volkert wrote: > Dear all, > > it is possible to play some audio (wav, ogg, mp3, ...) in Pharo? > > - I need to play an effect on a key/mouse event... > > - i need to play/stream some audio file in the background ... > > BW, > Volkert > > > >
Re: [Pharo-users] Older Pharo on MacOS Sierra
So, what's the proper procedure? I just moved my Pharo4 to the Application directory and it didn't work? Launched but the window is black. Is there a new Pharo4 VM for MacOS? If so, where is it? Thanks, Jeff On Fri, Jan 13, 2017 at 3:12 PM Hilaire wrote: > Ok, nice to hear that. I will have to change the VM sooner or later for > DrGeo then. > > Le 13/01/2017 à 16:44, Esteban Lorenzano a écrit : > > yes they do. > > you just have to download the vm for Pharo4 > > > > (vry old versions of Pharo maybe will not work, but who knows :P) > > > > Esteban > > -- > Dr. Geo > http://drgeo.eu > > >
[Pharo-users] Older Pharo on MacOS Sierra
While Pharo5 works in Sierra if I place it in the Applications directory, older Pharo versions don't. While the image opens, I just get a giant black window. Any way around this? Happy New Year! Jeff
Re: [Pharo-users] Retina support in Pharo
My guess is that retina support through Athens rendering and 64-bit are critical to greater adoption of Pharo for several reasons: (1) First impressions matter greatly. If I try to get someone into Pharo and the first thing they see is a pixelated screen, they will have an immediate bad reaction. My students believed that Pharo was a toy language because of the pixelated rendering. Even when I explained why, I'm not sure they believed me (sure, prof, we believe you). The interface being slow also gives the impression that the entire system is slow. So, speed improvements from Spur are less tangible. For most newcomers, interface speed = system speed. (2) One of the first things newcomers will want to do with a new system is some sort of graphical user interface. Pharo's morphic is quite nice but the BitBlt rendering is off putting. So, even if newcomers buy that there are reasons for the rendering being not great, they will likely conclude that it isn't a system for them. (3) The vast majority of OSes are 64-bit and 32-bit packages are getting deprecated. So, even if there are nice ways to interface with the outside world, they are being held back. So, very small things, like sound on Ubuntu, don't work. It's not really worth fixing that until Pharo is 64-bit. Again, it looks like Pharo is behind the curve, rather than ahead of it. Now, that stated, I understand why things are the way they are. There are limited resources and there are things that take priority. In addition, there is the tension between Pharo as an engine for research ideas (roughly equates to the things where Pharo is ahead of the curve) and Pharo as a general purpose environment (most notable in places where Pharo is behind the curve). Pharo5 is a major accomplishment and I am excited by it. It is awesome what was accomplished. I have faith in the leadership in setting priorities and great appreciation for those putting in the time. My point in posting this is not to criticize past development or priorities but just to make the case that these two things on the horizon (retina support, 64-bit) are important to my use of Pharo and how newcomers will view the system. I wish I could contribute but the VM things are out of my zone of competence. Cheers, Jeff
Re: [Pharo-users] Modern Events Touch and Gestures in Pharo.
Awesome! There's a reasonable chance that I can contribute to this (or at least utilize it), depending on what contracts I get. If I do get that in the near future, who do I contact about contributing? Cheers, Jeff On Tue, Jun 30, 2015 at 1:18 PM stepharo wrote: > Thanks Thales for the sponsoring. > > https://youtu.be/eNrbH8A5nyY > > Stef and the rmod team > >
Re: [Pharo-users] Athens question - #openInSceneView
Incomplete, though EllipseMorph would be quite easy to implement. You would have to implement drawOnAthensCanvas: on EllipseMorph. It is currently just inheriting that from Morph. Cheers, Jeff On Wed, Feb 12, 2014 at 10:09 PM, Torsten Bergmann wrote: > If I understand correctly #openInSceneView wraps a morph in an > Athens scene. I tried some examples: > > "Smalltalk ui icons configIcon asMorph openInSceneView" > "BorderedMorph new openInSceneView" > > First two work, but the third: > > "EllipseMorph new openInSceneView" > > brought up a yellow morph - but as rectangle not as ellipse > like in "EllipseMorph new openInWorld". > > Havent looked deeper. Incomplete or a bug? > > Thx > T. > > > > > > > > -- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick