[Pharo-users] Installing a metalink on a subclass not overriding a method
Imagine the following: I have a class ‘Parent’ which has the following method Parent>>name: aString name := aString I also have a subclass of a Parent called Child. Now I would like to attach some behavior via MetaLinks for the method ‘name:’ but only for the Child method, is that possible? Naturally I could just override the method and have Child>>name: aString super name: aString And then attach the metalink to that, but that’s not nice because you have to create extra methods (which is extra work/code if Parent has more subclasses) Alternatively I could attach the MetaLink to Parent and do type-checking, but that would br very complex and error-prone (Parent has a rather wild family). Ideally I would like for the MetaLink to install to the child even though the method doesn't exist. Is that somehow possible? Thanks, Peter
[Pharo-users] How to rewrite self should: into self assert:
Hi guys I tried to tools of mark and failed miserably. Any suggestion is welcome. Stef
Re: [Pharo-users] OpenGL project
Hi Thibault, Strange, I tried "brew install glfw3 “ but it does not work. Instead, I had to do "brew install homebrew/versions/glfw3” When I try to compile your file: -=-=-=-=-=-=-=-=-= /tmp> cc demo.c -lglfw3 -framework OpenGL demo.c:2:10: fatal error: 'GLFW/glfw3.h' file not found #include ^ 1 error generated. -=-=-=-=-=-=-=-=-= Cheers, Alexandre > On Mar 25, 2016, at 6:37 AM, Thibault Raffaillac > wrote: > >> Can you include a proper build script? > > Yep sorry, here are the steps I used to make it run on OSX: > $ brew install glfw3 > $ cc demo.c -lglfw3 -framework OpenGL > > For other systems the doc is hopefully detailed enough > (http://www.glfw.org/docs/latest/build.html). > >> Why do you say ?porting NBOpenGL?? Is it just a matter of rewriting the >> native calls with the new FFI system? > NBOpenGL functions were generated automatically from NBGLGenerator, so I need > to get used to the tool beforehand. It looks like a lot of work was put into > this, can I find a paper about it? > Also, IMO this all looks too complex. My point in limiting to ES 2 is not > just removing functions, I want to make it look simple like the C demo! > > Thibault > -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Re: [Pharo-users] Making STON exportation lighter
Hi, On 25/03/16 13:10, Offray Vladimir Luna Cárdenas wrote: [...] The next step is to made STON DVCS friendly by removing long lines [2] [2] http://forum.world.st/Citizen-example-for-manipulating-a-bibtex-file-tp4784240p4822035.html Done since http://smalltalkhub.com/#!/~Offray/Grafoscopio/versions/Grafoscopio-OffrayLuna.167 . Thanks specially to Sven for being so supportive about STON and the feature requests about it. Now we have a light, simple, DVCS friendly format for interactive documentation (Jupyter/IPython notebook still don't have that :-P [1]) [1] http://odewahn.github.io/publishing-workflows-for-jupyter/#1 [2] https://www.oreilly.com/ideas/jupyter-at-oreilly Cheers, Offray
[Pharo-users] Running Pharo 5 on Ubuntu 16.04
Hi guys, I'm having some issues in trying to run Pharo 5 in Ubuntu 16.04 1) I've downloaded the sources, images and latest vm from pharo site 2) Unpacked everything into a directory ~/Applications/Pharo 3) chowned and chmoded everythin in that file But when I try to do: ./pharo I get: bash: ./pharo: No such file or directory even if I do ls -la : total 115264 drwxrwxr-x 2 nacho nacho 4096 mar 26 13:20 . drwxrwxr-x 4 nacho nacho 4096 mar 26 13:39 .. -rwxrwxr-x 1 nacho nacho73871 mar 15 19:19 libB3DAcceleratorPlugin.so -rwxrwxr-x 1 nacho nacho37374 mar 15 19:19 libFT2Plugin.so -rwxr-xr-x 1 nacho nacho 2873682 mar 15 19:19 libgit2.so.0 -rwxrwxr-x 1 nacho nacho12493 mar 15 19:19 libInternetConfigPlugin.so -rwxrwxr-x 1 nacho nacho16550 mar 15 19:19 libJPEGReaderPlugin.so -rwxrwxr-x 1 nacho nacho 164835 mar 15 19:19 libJPEGReadWriter2Plugin.so -rwxrwxr-x 1 nacho nacho51465 mar 15 19:19 libRePlugin.so -rwxr-xr-x 1 nacho nacho 1508908 mar 15 19:18 libSDL2-2.0.so.0 -rwxr-xr-x 1 nacho nacho 1508908 mar 15 19:18 libSDL2-2.0.so.0.2.1 -rwxrwxr-x 1 nacho nacho 7462 mar 15 19:18 libSDL2DisplayPlugin.so -rwxrwxr-x 1 nacho nacho27114 mar 15 19:19 libSqueakSSL.so -rwxr-xr-x 1 nacho nacho 212961 mar 15 19:18 libssh2.so.1 -rwxrwxr-x 1 nacho nacho 7288 mar 15 19:19 libSurfacePlugin.so -rwxrwxrwx 1 nacho nacho 1294725 mar 15 19:19 pharo -rwxr-xr-x 1 nacho nacho 32438188 mar 26 11:01 Pharo-50662.changes -rwxrwxrwx 1 nacho nacho 47711568 mar 26 11:01 Pharo-50662.image -rwxr-xr-x 1 nacho nacho 29854972 abr 14 2015 PharoV40.sources -rwxrwxr-x 1 nacho nacho14530 mar 15 19:19 vm-display-null -rwxrwxr-x 1 nacho nacho 121391 mar 15 19:19 vm-display-X11 -rwxrwxr-x 1 nacho nacho29175 mar 15 19:19 vm-sound-ALSA -rwxrwxr-x 1 nacho nacho 7773 mar 15 19:19 vm-sound-null I don't know whats wrong. Any clues? Thanks in advance Nacho - Nacho Smalltalker apprentice. Buenos Aires, Argentina. -- View this message in context: http://forum.world.st/Running-Pharo-5-on-Ubuntu-16-04-tp4886758.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Re: [Pharo-users] Making STON exportation lighter
Very good ! > On 26 Mar 2016, at 17:08, Offray Vladimir Luna Cárdenas > wrote: > > Hi, > > On 25/03/16 13:10, Offray Vladimir Luna Cárdenas wrote: > > [...] >> >> The next step is to made STON DVCS friendly by removing long lines [2] >> >> [2] >> http://forum.world.st/Citizen-example-for-manipulating-a-bibtex-file-tp4784240p4822035.html >> > > Done since > http://smalltalkhub.com/#!/~Offray/Grafoscopio/versions/Grafoscopio-OffrayLuna.167 > . Thanks specially to Sven for being so supportive about STON and the > feature requests about it. Now we have a light, simple, DVCS friendly format > for interactive documentation (Jupyter/IPython notebook still don't have that > :-P [1]) > > [1] http://odewahn.github.io/publishing-workflows-for-jupyter/#1 > [2] https://www.oreilly.com/ideas/jupyter-at-oreilly > > Cheers, > > Offray
Re: [Pharo-users] OpenGL project
> Strange, I tried "brew install glfw3 ? but it does not work. > Instead, I had to do "brew install homebrew/versions/glfw3? Yep good point thank you. > demo.c:2:10: fatal error: 'GLFW/glfw3.h' file not found Homebrew should place the GLFW folder in /usr/local/include, and cc should list it among include directories with -v Cheers, Thibault > > Cheers, > Alexandre > > > On Mar 25, 2016, at 6:37 AM, Thibault Raffaillac > > wrote: > > > >> Can you include a proper build script? > > > > Yep sorry, here are the steps I used to make it run on OSX: > > $ brew install glfw3 > > $ cc demo.c -lglfw3 -framework OpenGL > > > > For other systems the doc is hopefully detailed enough > > (http://www.glfw.org/docs/latest/build.html). > > > >> Why do you say ?porting NBOpenGL?? Is it just a matter of rewriting the > >> native calls with the new FFI system? > > NBOpenGL functions were generated automatically from NBGLGenerator, so I > > need to get used to the tool beforehand. It looks like a lot of work was > > put into this, can I find a paper about it? > > Also, IMO this all looks too complex. My point in limiting to ES 2 is not > > just removing functions, I want to make it look simple like the C demo! > > > > Thibault > > > > -- > _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: > Alexandre Bergel http://www.bergel.eu > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > > > > > > > -- > > Subject: Digest Footer > > ___ > Pharo-users mailing list > Pharo-users@lists.pharo.org > http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org > > > -- > > End of Pharo-users Digest, Vol 35, Issue 121 > >
Re: [Pharo-users] OpenGL project
On 26 March 2016 at 18:44, Thibault Raffaillac wrote: > Homebrew should place the GLFW folder in /usr/local/include, and cc should > list it among include directories with -v > No. It should put them in `brew --prefix`/include, which only happens to be /usr/local/include if you followed homebrew's default installation instructions. If you have pkg-config installed, you can use it to determine the correct preprocessor and linker flags to the compiler, like so: pkg-config --cflags --libs glfw3
[Pharo-users] [Spec] CheckBoxModel>>enabled: does not work?
Hello, I am trying to disable a CheckBoxModel using #enabled: method does not works. Any idea? Regards, Julien
[Pharo-users] [Metacello] Apparent loop in before / after ....
hi dale I'm working a pretty large configuration and I got the following error messsage (and I do not understand I cannot debug). Do you have any suggestion because I did not even know that this error exist before. I disabled the validation of the config because it validates packages that I cannot modify such as XML or SMark. Stef
[Pharo-users] [Metacello] about required list
Hi using the dependency analyser I see that may packages have the following dependencies for example package: 'Math-DistributionGamma' with: [ spec requires: #('Math-Core' 'Math-DHB-Numerical' 'Math-Series' 'Math-Core-Distribution') ]; package: 'Math-DistributionBeta' with: [ spec requires: #('Math-DistributionGamma' 'Math-Core' 'Math-Core-Distribution' 'Math-DHB-Numerical' 'Math-Series') ]; so I wrote the requirement this way Now does it have an impact on Metacello and should I keep only the direct depend. package: 'Math-DistributionBeta' with: [ spec requires: #('Math-DistributionGamma' ) ]; This is annoying because I have 50 packages and doing that manually is a pain. Stef
Re: [Pharo-users] [Metacello] about required list
On 26/03/2016 22:00, stepharo wrote: > Hi > > using the dependency analyser I see that may packages have the following > dependencies > > for example > > package: 'Math-DistributionGamma' with: [ spec requires: > #('Math-Core' 'Math-DHB-Numerical' 'Math-Series' > 'Math-Core-Distribution') ]; > > package: 'Math-DistributionBeta' with: [ spec requires: > #('Math-DistributionGamma' 'Math-Core' 'Math-Core-Distribution' > 'Math-DHB-Numerical' 'Math-Series') ]; > > so I wrote the requirement this way > > > Now does it have an impact on Metacello and should I keep only the > direct depend. > Hi, Since Math-DistributionBeta depend on Math-DistributionGamma you can do: package: 'Math-DistributionGamma' with: [ spec requires: #('Math-Core' 'Math-DHB-Numerical' 'Math-Series' 'Math-Core-Distribution') ]; package: 'Math-DistributionBeta' with: [ spec requires: #('Math-DistributionGamma') ]; You can do this if beta really cannot work without gamma and if gamma will keep the same dependencies. And it is important I think because imagine Math-DisctirbutionBeta depend on Ston. You can create a group gamma and a group beta. If you load the group gamma, you will not get the ston dependency because it only concern gamma. > > package: 'Math-DistributionBeta' with: [ spec requires: > #('Math-DistributionGamma' ) ]; > > This is annoying because I have 50 packages and doing that manually is a > pain. > > Stef > > -- Cyril Ferlicot http://www.synectique.eu 165 Avenue Bretagne Lille 59000 France signature.asc Description: OpenPGP digital signature
Re: [Pharo-users] [Metacello] Apparent loop in before / after ....
looks like you forgot something :D On 26 March 2016 at 21:56, stepharo wrote: > hi dale > > I'm working a pretty large configuration and I got the following error > messsage (and I do not understand I cannot debug). > Do you have any suggestion because I did not even know that this error > exist before. > I disabled the validation of the config because it validates packages that > I cannot modify such as XML or SMark. > > Stef > > > >