Re: [Pharo-users] Adopting someone else's image

2016-09-09 Thread Siemen Baader
Thanks. I found out that I had two unrelated problems. Spotter was one and not critical, and the reason I had errors with Monticello was that I had made the mistake to rename the .image file, so it didn't match the changes file anymore. Siemen -- View this message in context: http://forum.wor

Re: [Pharo-users] arrays with FFI structs

2016-09-09 Thread Esteban Lorenzano
With UFFI, what you’ll do for “being OO” is to: 1) extend FFIExternalStructure 2) then use your class adding methods that use the structure into it (using “self” as argument). For example: FFIExternalStructure subclass: #MyStruct. MyStruct>>#method1: arg ^ self ffiCall: #(int funct

Re: [Pharo-users] Cryptography packages

2016-09-09 Thread Esteban Lorenzano
http://www.squeaksource.com/Cryptography.html some of the algorithms present there are already in the image, but others don’t :) Esteban > On 10 Sep 2016, at 04:03, Esteban A. Maringolo wrote: > > Hi there, > > What are the most maintaned/popu

Re: [Pharo-users] arrays with FFI structs

2016-09-09 Thread Ben Coman
On Sat, Sep 10, 2016 at 8:47 AM, Pierce Ng wrote: > On Sat, Sep 10, 2016 at 01:11:18AM +0800, Ben Coman wrote: >> Are arrays within structs handled? I have a C type declaration... > > Ben, > > Is it possible to write C functions to manipulate these structures, build > these > functions into a sha

[Pharo-users] Cryptography packages

2016-09-09 Thread Esteban A. Maringolo
Hi there, What are the most maintaned/popular cryptography package for Pharo? Regards! Esteban A. Maringolo

Re: [Pharo-users] arrays with FFI structs

2016-09-09 Thread Pierce Ng
On Sat, Sep 10, 2016 at 01:11:18AM +0800, Ben Coman wrote: > Are arrays within structs handled? I have a C type declaration... Ben, Is it possible to write C functions to manipulate these structures, build these functions into a shared library, and call the functions from Pharo? More "object orie

Re: [Pharo-users] [SCREENCAST] Creating GUIs with Pharo

2016-09-09 Thread Dimitris Chloupis
good thing you did not Sorry guys but that was a spectacular failure, the recording started fine, Twitch decided to stop broadcasting after 3 minutes , the software I use which is by the way recommended by Twitch was saying that it was streaming, then it did not let me close the stream had to exit

Re: [Pharo-users] [SCREENCAST] Creating GUIs with Pharo

2016-09-09 Thread Esteban Lorenzano
I will not be able to attend :( (I’m in a train now… but as a regular observation… I think a Friday 21h is not the best moment :P) Esteban > On 09 Sep 2016, at 20:30, Dimitris Chloupis wrote: > > Just a friendly reminder the screencast will begin in 30 minutes. > > https://www.twitch.tv/ki

Re: [Pharo-users] [SCREENCAST] Creating GUIs with Pharo

2016-09-09 Thread Dimitris Chloupis
Just a friendly reminder the screencast will begin in 30 minutes. https://www.twitch.tv/kilonalios On Fri, Sep 9, 2016 at 2:09 PM Dimitris Chloupis wrote: > Sure no problem , I am always online with Discord, so even if one does not > attend he can ask me to show him on a next screencast. I wi

Re: [Pharo-users] arrays with FFI structs

2016-09-09 Thread Esteban Lorenzano
by the way, this is a new feature of UFFI… old NB didn’t have it :) > On 09 Sep 2016, at 19:17, Esteban Lorenzano wrote: > > not very well (I didn’t adapted the parser or optimised it, but it works fine > :P). > you need to declare a type: > > CXCursor class>>initiallize > VoidPointer3

Re: [Pharo-users] arrays with FFI structs

2016-09-09 Thread Esteban Lorenzano
not very well (I didn’t adapted the parser or optimised it, but it works fine :P). you need to declare a type: CXCursor class>>initiallize VoidPointer3 := FFITypeArray ofType: ‘void*’. then you declare: CXCursor class >> fieldsDesc "self rebuildFieldAccessors" ^ #(

[Pharo-users] arrays with FFI structs

2016-09-09 Thread Ben Coman
Are arrays within structs handled? I have a C type declaration... typedef struct { enum CXCursorKind kind; int xdata; const void *data[3]; } CXCursor; which for the moment I've simplified the enum and defined... FFIExternalStructure subclass: #CXCursor instanceVariableNames:

Re: [Pharo-users] Adopting someone else's image

2016-09-09 Thread Stephan Eggermont
On 09-09-16 13:08, Siemen Baader wrote: What can I do? Is there a proper way to re-initialize the host dependent state when taking over someone else's image? I know the preferred way to share code without state is to use Montichello... In a copy of an image, just open an inspector and set the pa

Re: [Pharo-users] SpecBooklet: Strange behavior of ProtocolBrowser

2016-09-09 Thread stepharo
Le 8/9/16 à 15:14, Johan Fabry a écrit : Thanks Stef ! There will be a new chapter for you to review soon ;-) eagerly waiting :) Johan we should say that the booklet is for Pharo 60. Like that we have the time to finish it. Stef -- Does this mail seem too brief? Sorry for that, I don’t mea

[Pharo-users] Problem cleaning up image

2016-09-09 Thread Vitor Medina Cruz
Hello, Isn't cleanup the headless image working right now? I know it has some problems, but I tried to: curl get.pharo.org | bash ./pharo Pharo.image clean --production It runs for hours and don't complete. Last time I leave it for about 5 hours before I cancelled. Regards, Vitor

Re: [Pharo-users] Performance vs Ruby performance

2016-09-09 Thread Vitor Medina Cruz
Thank you for the answers! On Thu, Sep 8, 2016 at 3:31 AM, Dimitris Chloupis wrote: > It does not matter. When it comes to performance the workflow is always > the same whatever the language you use. > > 1. Profile the code see where it consume most CPU cycles > 2. Can you improve the code to re

[Pharo-users] Adopting someone else's image

2016-09-09 Thread Siemen Baader
Hi, I am having a problem using an image that was saved by a different user on a different machine. I'm trying to get started with PharoJS and have downloaded the Pharo 4.0 image from https://pharojs.github.io/faq.html#demoEsug2016. When I load the image Spotter raises errors becasue it holds on

Re: [Pharo-users] [SCREENCAST] Creating GUIs with Pharo

2016-09-09 Thread Dimitris Chloupis
Sure no problem , I am always online with Discord, so even if one does not attend he can ask me to show him on a next screencast. I will try to make one screencast per month. 50 per year , one or half hour long depending on the subject and how much I know. For those that prefer the mailing list you

Re: [Pharo-users] Spec Text Emphasis

2016-09-09 Thread Nicolai Hess
2016-09-02 15:56 GMT+02:00 Nicolai Hess : > > > 2016-09-02 15:29 GMT+02:00 Sean P. DeNigris : > >> Peter Uhnak wrote >> > LabelModel has #emphasis: >> >> Another apparent bug: >> LabelModel new >> emphasis: #(struck); <--- doesn't work. It accepts #struck as a >> valid option, but does

Re: [Pharo-users] [SCREENCAST] Creating GUIs with Pharo

2016-09-09 Thread Ben Coman
Sounds interesting but its 3am for me, so probably I wont attend. I look forward to watch it later. cheers -ben On Fri, Sep 9, 2016 at 5:39 PM, Dimitris Chloupis wrote: > So as I promised tonight I will share a live screencast about creating GUIs > with Pharo, that includes UIManager , Morphic

Re: [Pharo-users] PharoJS ESUG 2016 Demo files

2016-09-09 Thread Dimitris Chloupis
Talking about javascript , I have been taking a look at the new chat channel I created at Discord for Pharo, Discord has a node.js API for creating plugins, was wondering how well PharoJS works with Node.js and if I can use it for this scenario . On Fri, Sep 9, 2016 at 11:53 AM Noury Bouraqadi wr

[Pharo-users] [SCREENCAST] Creating GUIs with Pharo

2016-09-09 Thread Dimitris Chloupis
So as I promised tonight I will share a live screencast about creating GUIs with Pharo, that includes UIManager , Morphic and a bit of Spec. The focus will be mainly Morphic that I am more familiar with. The place is my twitch channel https://www.twitch.tv/kilonalios You dont need an account to

[Pharo-users] PharoJS ESUG 2016 Demo files

2016-09-09 Thread Noury Bouraqadi
Hi, The Pharo 4.0 image + related files used in the PharoJS ESUG 2016 demo are now available for download at https://pharojs.github.io/faq.html#demoEsug2016 Best, Noury

Re: [Pharo-users] Lint Rule for Class-Side Method

2016-09-09 Thread Yuriy Tymchuk
Hi, so in Pharo 5 CriticBrowser does not care about #checksClass, #checksMethod and so on. I am changing this in Pharo 6, but I didn’t have enough time for Pharo 5. For CriticBrowser you need to override instance-side methods #checkClass: or #checkMethod:. In your case you want to override #ch