Re: [Pharo-users] Protego - smart way to manage NIL's in business calculations

2016-12-18 Thread Ben Coman
f each approach. Now I'm not saying MissingValue is the best way to go. Smalltalk does have the advantage of being able to add behaviour to nil and that might be sufficient for you. Just providing an additional way to think about it. cheers -ben > > > 2016-12-18 18:12 GMT+03:00

Re: [Pharo-users] Protego - smart way to manage NIL's in business calculations

2016-12-18 Thread Ben Coman
Thanks for sharing. A similar thing might be useful for dealing with "quality" of Process Variable measurement in industrial situations - where instruments fail from time to time. I'm not sure of all the pros and cons, but btw an alternative to hanging special behaviour on a method, would be to

Re: [Pharo-users] What can we look forward to in 2017?

2016-12-14 Thread Ben Coman
On Thu, Dec 15, 2016 at 12:38 AM, Dimitris Chloupis wrote: > > On Wed, Dec 14, 2016 at 5:35 PM Offray Vladimir Luna Cárdenas < > offray.l...@mutabit.com> wrote: > >> This is a good example of the "empowering map" I talk about about >> "Pharo/Smalltalk places for you". What

Re: [Pharo-users] What can we look forward to in 2017?

2016-12-14 Thread Ben Coman
On Wed, Dec 14, 2016 at 5:15 PM, Dimitris Chloupis wrote: > > On Tue, Dec 13, 2016 at 6:15 PM horrido wrote: > >> Fellow Pharoers: What is the most exciting development in 2017 to look >> forward to? I'm asking for things to put into the

Re: [Pharo-users] What can we look forward to in 2017?

2016-12-13 Thread Ben Coman
On Wed, Dec 14, 2016 at 8:11 AM, horrido <horrido.hobb...@gmail.com> wrote: > Wow! These *are* exciting. Thanks! > > > Ben Coman wrote > > Pharo 6 release due April 2017. > > - 64-bit!!! > Actually to be specific, this is the 64-bit JIT'ed Cog VM, as distinct f

Re: [Pharo-users] What can we look forward to in 2017?

2016-12-13 Thread Ben Coman
On Wed, Dec 14, 2016 at 12:00 AM, horrido wrote: > Fellow Pharoers: What is the most exciting development in 2017 to look > forward to? I'm asking for things to put into the end-of-year post in my > "Make Smalltalk Great Again!" campaign. Thanks. > > Worthwhile 2016

Re: [Pharo-users] setter method

2016-12-09 Thread Ben Coman
On Sat, Dec 10, 2016 at 1:39 AM, Kateryna Aloshkina wrote: > Hi everybody! > > I've just joined the community:) and have a question > How to write the method count: such that, when invoked on an instance of > Counter, instance variable is set to the argument given to the

Re: [Pharo-users] [Pharo-dev] consider putting stars on our nice books on github :)

2016-12-09 Thread Ben Coman
Good idea. Done. Now just because I couldn't remember explicitly what "starring" meant, from GitHub help... Starring a repository allows you to keep track of projects that you find interesting, even if you aren't associated with the project. When you star a repository, you're actually performing

Re: [Pharo-users] Hash collision

2016-12-09 Thread Ben Coman
On Fri, Dec 9, 2016 at 10:51 PM, Hilaire wrote: > Hi, > > In Dr. Geo I rely a lot on hash value for the geometric object. It > largely improves speed up to compare geometric items (to avoid > duplicated items). For example to detect when the user is building an > already

Re: [Pharo-users] seaside javascript builders

2016-12-09 Thread Ben Coman
On Fri, Dec 9, 2016 at 9:20 PM, Siemen Baader wrote: > Hi all, > > I'm confused about the limitations and intended use of Seaside's javascript > builders. I can follow that we can do eg: "(html jQuery: 'div') remove" or > "html javascript alert: 'hello'" within the

Re: [Pharo-users] Contributing code

2016-12-08 Thread Ben Coman
Bugs are tracked at pharo.fogbugz.com. My screen is a little different to yours since Fogbugz keeps me logged on, but you should see information about signing up. Please let us know of any difficulties. In particular you might not get a confirmation email when you sign up and need to reset your

Re: [Pharo-users] [squeak-dev] pondering Smalltalk scripting in Minecraft

2016-12-07 Thread Ben Coman
.eu> wrote: > Have you seen this: > > http://forum.world.st/ANN-Minecraft-Bindings-tt4671908.html > >> On 7 Dec 2016, at 09:40, Ben Coman <b...@openinworld.com> wrote: >> >> Minecraft is immensely popular. For teaching programming (to kids) >> via Min

Re: [Pharo-users] Execute Tet pdflib

2016-12-05 Thread Ben Coman
On Tue, Dec 6, 2016 at 4:28 AM, wrote: > Hello, > > 1- I need help to extract a selected text from a pdf document. > Tet pdflib can do that and i need help to execute command line using Pharo. > I am able to do the work using a bat file but i think we can do better.

Re: [Pharo-users] GitFileTree on Pharo 5.0

2016-12-05 Thread Ben Coman
hi Dario, Reading back through the thread, it seems it works when you start Pharo one way, but not another way. Can you report the VM versions for each way.. World menu > System > System Reporter > VM General Is one of those ways you start Pharo is using Pharo Launcher? In the settings you can

Re: [Pharo-users] Use of -> in Pharo Code

2016-11-30 Thread Ben Coman
On Thu, Dec 1, 2016 at 8:12 AM, Bruce Prior wrote: > don't understand what the right-arrow (->) does. hi Bruce, Its a message. Select it and hit to view its implementation. cheers -ben

Re: [Pharo-users] Where is the documentation of the base class libraries?

2016-11-27 Thread Ben Coman
On Sun, Nov 27, 2016 at 3:24 PM, Derry Bryson wrote: > Where can I find documentation of the base class libraries for Pharo > Smalltalk? Or is there some other way I should learn about the system? Within the Image, click on the button beneath the class list to view the

Re: [Pharo-users] [UFFI] Dealing with Windows types

2016-11-21 Thread Ben Coman
On Sun, Nov 20, 2016 at 9:50 PM, Dimitris Chloupis wrote: > Once more I got lost in the the spaghetti called "Pharo code". I am > referring to OSWindows. > > Ironically its easier to read Windows header files and disassemble memory > than actually read pharo code :D > >

Re: [Pharo-users] [Teaser] Using Pharo to script Unreal

2016-11-13 Thread Ben Coman
Really cool! Great to hear your success. Looking forward to the next instalment. cheers- ben On Sun, Nov 13, 2016 at 4:44 AM, Dimitris Chloupis wrote: > Annnd I DID IT !!! > > I accomplished connecting Pharo with Unreal so I can script it with Pharo. > It works

Re: [Pharo-users] Little challenges for a friday evening

2016-11-12 Thread Ben Coman
A nice read. What audience is it aimed at? Some grammar suggestions... > Sets are collections that only contains one element. Being pedantic ;) the following Set does more than "contain one element"... (Set new) add: 1; add: 2. so maybe... "Sets are unordered collections where elements

Re: [Pharo-users] Little challenges for a friday evening

2016-11-10 Thread Ben Coman
First I've heard of an isogram. Wikipedia [1] is ambiguous. Are you considering only single occurrence of letters, or also equal occurrence of letters. I like Sven's answer best, but just as an exercise I thought of an alternative. String>>#isIsogram | letters | letters := Dictionary

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-08 Thread Ben Coman
On Tue, Nov 8, 2016 at 4:17 PM, Nicolai Hess wrote: > Another pulll request > https://github.com/SquareBracketAssociates/UpdatedPharoByExample/pull/180 > But I messed this one up. It contains the commits from the other pull > request. If PR179 is merged first, it shouldn't

Re: [Pharo-users] Speed up JPG images loading

2016-11-06 Thread Ben Coman
What does the Time Profiler show? Can you link to a sample picture? cheers -ben On Sat, Nov 5, 2016 at 11:11 PM, Matteo via Pharo-users wrote: > > > -- Forwarded message -- > From: Matteo > To: "Pharo is welcome (ML)"

Re: [Pharo-users] How to consume the MOOC?

2016-11-04 Thread Ben Coman
On Fri, Nov 4, 2016 at 10:59 PM, Johan Fabry wrote: > > For me, the easiest way is http://mooc.pharo.org And that links to here for the videos http://rmod-pharo-mooc.lille.inria.fr/MOOC/Videos/W1/ and here for subtitles..

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread Ben Coman
On Thu, Nov 3, 2016 at 10:05 PM, Dimitris Chloupis wrote: > " > 3. How to drag-n-drop from the host operation system into pharo application > and vice versa? I need to drag-n-drop a list of files from\to file browser." I don't know the answer to what you ask, but the

Re: [Pharo-users] Pharo desktop UI

2016-11-03 Thread Ben Coman
On Thu, Nov 3, 2016 at 5:43 AM, vikenti wrote: > 2. The next task is to do some work on image load (i mean pharo image). I > need some handler which fires immediately after image is loaded. How to > include my handler in this chain My app saves data into the image

Re: [Pharo-users] How does Boolean ifTrue work?

2016-10-31 Thread Ben Coman
Hi Dmitry, You've just bumped into one of Smalltalk's paradigms that may change the way you *think* about programming ;). For me it was certainly an eye-opener. It intrigued me there could even exist another way to *think* about booleans. On Mon, Oct 31, 2016 at 10:06 PM,

Re: [Pharo-users] Cover for PBE5

2016-10-29 Thread Ben Coman
Nice, but I guess this was originally for something else since its not in the book form factor which will change your composition. It would be good to see a sample in book form factor. Also Pharo has its brand with the lighthouse in the big-O that I guess it would be good to follow like the

Re: [Pharo-users] The Ultimate Smalltalk Tutorial

2016-10-27 Thread Ben Coman
On Thu, Oct 27, 2016 at 11:40 PM, Offray Vladimir Luna Cárdenas < offray.l...@mutabit.com> wrote: > > > [2] http://mutabit.com/offray/blog/en/entry/dumb-hello-world > > Great article. For some reason I get the idea that mixing it with your Data Week experiences would make a great TED talk.

Re: [Pharo-users] How do I debug a MNU in Pharo-6.0

2016-10-20 Thread Ben Coman
On Thu, Oct 20, 2016 at 5:06 PM, Ben Coman <b...@openinworld.com> wrote: > On Thu, Oct 20, 2016 at 6:35 AM, Dale Henrichs > <dale.henri...@gemtalksystems.com> wrote: >> I am trying to debug a problem that showed up loading my version of STON >> into Pharo-6.0. ON Tra

Re: [Pharo-users] How do I debug a MNU in Pharo-6.0

2016-10-20 Thread Ben Coman
On Thu, Oct 20, 2016 at 6:35 AM, Dale Henrichs wrote: > I am trying to debug a problem that showed up loading my version of STON > into Pharo-6.0. ON Travis, I see the error message[1]: > > MessageNotUnderstood: receiver of "ifTrue:ifFalse:" is nil > > The code

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-16 Thread Ben Coman
On Sun, Oct 16, 2016 at 9:11 PM, Charlie Robbats wrote: > Here, Dmitry, try this code in playground...maybe helps you understand > > | lookupClosure | > lookupClosure := []. > lookupClosure := [:cls :selector | > (cls == nil) > ifTrue: [Warning signal:

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-16 Thread Ben Coman
On Sun, Oct 16, 2016 at 8:38 PM, Nicolai Hess wrote: > Am 16.10.2016 14:35 schrieb "CodeDmitry" : >> >> I define Magic as "An opaque abstraction or an abstraction you think is >> opaque until you learn better.", to a beginner, everything is deeply >>

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-16 Thread Ben Coman
On Sun, Oct 16, 2016 at 12:44 PM, CodeDmitry wrote: > I understand that it is a single message send, but to know how to handle the > message at runtime, the parser needs to somehow determine where the > implementation of that message is. It must do a lookup based on

Re: [Pharo-users] Debugger with inlined methods

2016-10-12 Thread Ben Coman
On Tue, Oct 11, 2016 at 9:45 PM, Esteban Lorenzano wrote: > >> On 11 Oct 2016, at 15:43, Vitor Medina Cruz wrote: >> >> Hello, >> >> I was TTDing today with Pharo and some odd thing happened. I had a method >> that just returned false and while

Re: [Pharo-users] Intro to Microsoft COM for Smalltalkers

2016-10-07 Thread Ben Coman
t;> | wait wait2 | >> "*a very long assignment*" >> wait := self serverMode >> ifTrue: [ 50 ] >> ifFalse: >> [ wait2 := (lastCycleTime notNil and: [CanSurrenderToOS ~~ false]) >> ifFalse: [ 0 ] >> ifTrue: [ lastCycleTime + milliSecs - Time millisecondClockValue ]. >> >> self flag: 'Issue 14754 - wait2>millisecs is only True for clock >> rollover. Remove it once DelayScheduler based on microsecondClock - Ben >> Coman 19.01.2015'. "*< maybe we want this #flag: not to be called all Yes, good idea. I'll see to it. cheers -ben

[Pharo-users] 19169 Debugging World>>doOneCycleNowFor: induces debugger MNU (was Re: Intro to Microsoft COM for Smalltalkers)

2016-10-03 Thread Ben Coman
On Mon, Oct 3, 2016 at 7:08 PM, Denis Kudriashov <dionisi...@gmail.com> wrote: > Hi Ben. > > 2016-10-03 12:37 GMT+02:00 Ben Coman <b...@openinworld.com>: >> >> A further curiousity occurs to me. With this being executed 20 times >> a second or more, how can

Re: [Pharo-users] Intro to Microsoft COM for Smalltalkers

2016-10-03 Thread Ben Coman
On Mon, Oct 3, 2016 at 6:25 PM, Ben Coman <b...@openinworld.com> wrote: > On Mon, Oct 3, 2016 at 6:08 PM, Ben Coman <b...@openinworld.com> wrote: >> On Mon, Oct 3, 2016 at 3:49 PM, CodeDmitry <dimamakh...@gmail.com> wrote: >>> a JavaScript timeout is a func

Re: [Pharo-users] Intro to Microsoft COM for Smalltalkers

2016-10-03 Thread Ben Coman
On Mon, Oct 3, 2016 at 3:49 PM, CodeDmitry wrote: > a JavaScript timeout is a function that takes a block and a period of time, > and after this period of time, puts the block at the end of the event > queue, to be executed as soon as the runtime is done performing the

Re: [Pharo-users] Intro to Microsoft COM for Smalltalkers

2016-10-02 Thread Ben Coman
On Mon, Oct 3, 2016 at 2:52 AM, CodeDmitry wrote: > @kilon.alios > > [1] > I like C++/CLI more than C# because it is very refreshing to use a > language capable of using managed memory and unmanaged memory. > > I am too used to being in languages where garbage collection is

Re: [Pharo-users] Mustache templates listed the in Mustache site

2016-09-26 Thread Ben Coman
Cool! We should do more of that. Part of building exposure. Is it known to work on more than "pharo smalltalk 2.0" ? Perhaps an "Update" can be inserted on the page. cheers -ben On Mon, Sep 26, 2016 at 9:28 PM, Esteban A. Maringolo wrote: > Some months ago I sent a pull

Re: [Pharo-users] Get implementors list window from Spotter

2016-09-26 Thread Ben Coman
On Mon, Sep 26, 2016 at 4:07 PM, Ben Coman <b...@openinworld.com> wrote: > On Wed, Sep 21, 2016 at 2:00 AM, Esteban A. Maringolo > <emaring...@gmail.com> wrote: >> Hi, >> >> How can I open the implementors list from Spotter? >> >> I want to brows

Re: [Pharo-users] Get implementors list window from Spotter

2016-09-26 Thread Ben Coman
On Wed, Sep 21, 2016 at 2:00 AM, Esteban A. Maringolo wrote: > Hi, > > How can I open the implementors list from Spotter? > > I want to browse through the code of the different implementors as I > do by selecting a selector and searching an implementor (or Ctr+M). > >

Re: [Pharo-users] Why Pharo?

2016-09-25 Thread Ben Coman
Thanks Stephan & Diego. Nice to read. I liked the term "sea of objects" cheers -ben On Sun, Sep 25, 2016 at 7:07 PM, Stephan Eggermont wrote: > I finally found the time to put the slides and narrative together > >

Re: [Pharo-users] [ANN] FFI Tutorial, Pharo5 / Libclang

2016-09-24 Thread Ben Coman
t; 32709046 (or something similar)" > > FFIPlay on purpose? It was unclear to me how this is related to LibC An error. Thanks for picking that up. When I first was trying it I had created that class to hold experiements, but it wsa shorter for the post to put in on the existing class.

[Pharo-users] [ANN] FFI Tutorial, Pharo5 / Libclang

2016-09-24 Thread Ben Coman
hi all, Just announcing that I'm writing a series of posts on using FFI in Pharo 5 to interface to libclang, the interface library for the LLVM C compiler. http://blog.openinworld.com/2016/09/pharo-libclang-ffi-part-1-preamble/ I'm writing this from the perspective of a FFI newbie progressively

Re: [Pharo-users] Pharo 3.0 Issue with instance variables

2016-09-22 Thread Ben Coman
On Thu, Sep 22, 2016 at 9:58 PM, Pablo Frias wrote: > Hi all, > > We are teaching Smalltalk at the Universtity of Cordoba, Argentina with > Pharo, but we are having the following issue. > Sometimes y in different workstations, we notice that when instantiating an > object

Re: [Pharo-users] Using symbol

2016-09-19 Thread Ben Coman
On Mon, Sep 19, 2016 at 6:12 PM, frankl1_miky wrote: > Hi, > > I'll like to know what is happening exactly in background when I'm using a > symbol as in *Collection withAllSubclasses collect: #numberOfLinesOfCode*. Nicolas has a good answer. Now you could explore this

Re: [Pharo-users] Fwd: [Vm-dev] unused-method removal vs. Spur compaction

2016-09-19 Thread Ben Coman
a new compactor. > > On Mon, Sep 19, 2016 at 1:42 AM, Ben Coman <b...@openinworld.com> wrote: >> >> Forwarded from squeak & vm lists in case its useful to others... >> >> On Sun, Sep 18, 2016 at 5:11 AM, Craig Latta <cr...@blackpagedigital.com> >

Re: [Pharo-users] Is someone working on RFID tags?

2016-09-17 Thread Ben Coman
On Sun, Sep 18, 2016 at 2:19 AM, Hernán Morales Durand wrote: > > Recently I've been working on a model for RFID for animal identification > using ISO 11784. I would like to have a nice model of RFID Tag types, > Readers ,etc. (alternatively, if you know an object model

Re: [Pharo-users] Spec - Wrap-able Label

2016-09-16 Thread Ben Coman
On Sat, Sep 17, 2016 at 4:49 AM, Brad Selfridge wrote: > Never mind. I found MorphicUIManager. It will support most of the > requirements that I'm needing. Still would be nice to have wrap-able text, > even in MorphicUIManager. Maybe you can wrap it yourself. I vaguely

Re: [Pharo-users] double dispatch example

2016-09-14 Thread Ben Coman
http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org On Thu, Sep 15, 2016 at 10:04 AM, Melanie Tarr wrote: > Can someone please tell me how to unsubscribe from this list, > > Kind Regards > Melanie > > On Tue, Sep 13, 2016 at 10:16 PM, Alexandre Bergel

Re: [Pharo-users] Extending live coding beyond Pharo

2016-09-14 Thread Ben Coman
On Thu, Sep 15, 2016 at 3:38 AM, Dimitris Chloupis wrote: > Live coding on Pharo is great, easy , simple and working out of the box. An > extremely useful tool to be able to code an application while it runs, > change and improve code with no interruptions. > > However

Re: [Pharo-users] What are the best practices for an open source project with Pharo?

2016-09-14 Thread Ben Coman
On Wed, Sep 14, 2016 at 9:22 PM, julius wrote: > I'm new to Smalltalk, I did the Inria MOOC and really like the way of how to > construct applications. Still I wonder how development teams approach > development with Pharo. > > Currently I'm thinking of implementing a small

Re: [Pharo-users] [Pharo-dev] [ANN] RProjectConnector V2.1

2016-09-14 Thread Ben Coman
On Wed, Sep 14, 2016 at 4:21 PM, Blondeau Vincent wrote: >> > >> >> >> >> I try to move the R dll close to my Pharo VM and also inside the >> >> Plugins directory but without success ... >> > >> > It should be at the same location that libcairo.2.dylib >> > >> >>

Re: [Pharo-users] Class shown in _UnpackagedPackage but belongs to package

2016-09-13 Thread Ben Coman
Thought-0.0.2... What does Monticello > Browse show? Thought-0.0.3... Have a look at RPackageOrganizer class >> initialize cheers -ben On Wed, Sep 14, 2016 at 1:05 PM, Ben Coman <b...@openinworld.com> wrote: > Very first thought... > 1. Close all Nautilus windows. > 2

Re: [Pharo-users] Class shown in _UnpackagedPackage but belongs to package

2016-09-13 Thread Ben Coman
Very first thought... 1. Close all Nautilus windows. 2. Smalltalk recompileAll. ?? cheers -ben On Wed, Sep 14, 2016 at 11:58 AM, Esteban A. Maringolo wrote: > Hi, > > After renaming, promoting as tag, moving to package and other > non-secuential operations in Nautilus

Re: [Pharo-users] [Pharo-dev] [ANN] RProjectConnector V2.1

2016-09-13 Thread Ben Coman
On Wed, Sep 14, 2016 at 12:25 AM, Blondeau Vincent wrote: > > > >> -Message d'origine- >> De : Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] De la part de >> Serge Stinckwich >> Envoyé : vendredi 2 septembre 2016 16:44 >> À : Pharo Development List

Re: [Pharo-users] Seaside not installing

2016-09-12 Thread Ben Coman
On Tue, Sep 13, 2016 at 10:09 AM, Hersh Krishna via Pharo-users wrote: > > -- Forwarded message -- > From: Hersh Krishna > To: pharo-users@lists.pharo.org > Cc: > Date: Mon, 12 Sep 2016 19:05:06 -0700 (PDT) > Subject:

Re: [Pharo-users] Cryptography packages

2016-09-12 Thread Ben Coman
On Tue, Sep 13, 2016 at 2:49 AM, Esteban A. Maringolo wrote: > Who is the author of the to-be announced library? > I guess Stef was being deliberately vague allowing the author's convenience to make the announcement. cheers -ben > > Regards! > > Esteban A. Maringolo > >

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-12 Thread Ben Coman
On Mon, Sep 12, 2016 at 6:08 PM, Henrik Johansen < henrik.s.johan...@veloxit.no> wrote: > > On 07 Sep 2016, at 5:38 , Ben Coman <b...@openinworld.com > <b...@openinworld.com>> wrote: > > On Wed, Sep 7, 2016 at 10:42 PM, Ben Coman <b...@openinworld.com> wr

[Pharo-users] limits on number of instance variables and class variables

2016-09-11 Thread Ben Coman
Minor curiosity... I was wondering about the limits on the number of instance variables and class variables (particularly the latter regarding large FFI enumerations), so I produced a script to experiment with. Results: * Class Variables seem to have no practical limit. Although running 6C

Re: [Pharo-users] Porting TalkFFI / LibClang to Pharo 5 UFFI

2016-09-10 Thread Ben Coman
On Sat, Sep 10, 2016 at 3:14 PM, Ben Coman <b...@openinworld.com> wrote: > Looks like I've been reinventing the wheel making an FFI interface to > libclang. I just bumped into Ciprian's TalkFFI which provides a > NativeBoost interface to libclang (and was used to create l

[Pharo-users] Porting TalkFFI / LibClang to Pharo 5 UFFI

2016-09-10 Thread Ben Coman
Looks like I've been reinventing the wheel making an FFI interface to libclang. I just bumped into Ciprian's TalkFFI which provides a NativeBoost interface to libclang (and was used to create libgit2 bindings) * https://rochiamaya.wordpress.com/2013/07/30/create-bindings-with-talkffi/ *

Re: [Pharo-users] arrays with FFI structs

2016-09-09 Thread Ben Coman
On Sat, Sep 10, 2016 at 8:47 AM, Pierce Ng <pie...@samadhiweb.com> 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 manipul

[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] [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

Re: [Pharo-users] [ANN] Territorial Re-Licensing

2016-09-07 Thread Ben Coman
Hi Hernan, Thanks for your balanced response. Licensing discussion can be boring but also crucial, hence the sometimes religious views on it. Like a lot of things, from a distance it seems easy - but the devil is in the details. Consider anyway that "Territorial" may otherwise have been a

Re: [Pharo-users] Profiling

2016-09-07 Thread Ben Coman
On Thu, Sep 8, 2016 at 11:37 AM, Ben Coman <b...@openinworld.com> wrote: > - 9989 tallies, 10003 msec. > > **Tree** > > Process: other processes > > 99.2% {9928ms} ProcessorScheduler class

Re: [Pharo-users] Profiling

2016-09-07 Thread Ben Coman
Ahhh... gmail pre-emptive send strikes again To continue... I am curious about the recursive calls to ZdcSecureSocketStream(ZdcSimpleSocketStream)>>fillReadBuffer and multiple accumulations from DelayExperimentalSpinScheduler>>unschedule: but that method doesn't really do a lot. I wouldn't

Re: [Pharo-users] Profiling

2016-09-07 Thread Ben Coman
- 9989 tallies, 10003 msec. **Tree** Process: other processes 99.2% {9928ms} ProcessorScheduler class>>startUp 99.2% {9928ms} ProcessorScheduler class>>idleProcess **Leaves** 99.2% {9928ms} ProcessorScheduler class>>idleProcess

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-07 Thread Ben Coman
On Wed, Sep 7, 2016 at 10:42 PM, Ben Coman <b...@openinworld.com> wrote: > On Wed, Sep 7, 2016 at 9:09 PM, Esteban Lorenzano <esteba...@gmail.com> wrote: >> >> On 07 Sep 2016, at 14:56, Ben Coman <b...@openinworld.com> wrote: >> >> On Tue, Sep

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-07 Thread Ben Coman
On Wed, Sep 7, 2016 at 9:09 PM, Esteban Lorenzano <esteba...@gmail.com> wrote: > > On 07 Sep 2016, at 14:56, Ben Coman <b...@openinworld.com> wrote: > > On Tue, Sep 6, 2016 at 8:08 PM, Esteban Lorenzano <esteba...@gmail.com> > wrote: > > Hi, > &

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-07 Thread Ben Coman
On Tue, Sep 6, 2016 at 8:08 PM, Esteban Lorenzano wrote: > Hi, > > sorry for arriving so late to this, but I was on holidays :) > this is how autoRelease works: > > 1) #autoRelease of an object registers object for finalisation with a > particular executor. Then behaviour is

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-06 Thread Ben Coman
On Tue, Sep 6, 2016 at 8:08 PM, Esteban Lorenzano wrote: > Hi, > > sorry for arriving so late to this, but I was on holidays :) > this is how autoRelease works: > > 1) #autoRelease of an object registers object for finalisation with a > particular executor. Then behaviour is

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-06 Thread Ben Coman
fFalse: [ DemoFFILibrary uniqueInstance apiFree: handle ] and the only sender of #letGo is... DEMOFFIThingTest >> tearDown >From this I can't follow how #apiFree: ultimately gets automatically invoked by the object finalization. Are you able to fill me in on the details?

Re: [Pharo-users] difficult to kill objects - pesky hanging pointersTo

2016-09-05 Thread Ben Coman
ome: String new > > As soon as that do-it unwinds there won't be any references to what the new > string became (the new string wasn't referenced further), so... > > > On 9/5/16 8:50 , Ben Coman wrote: >> >> Sometimes its *really* hard to kill some objects. It seems th

Re: [Pharo-users] UFFI cleanup of externally allocated memory (was Re: UFFI const, unsigned, opaque-ish types)

2016-09-04 Thread Ben Coman
On Fri, Sep 2, 2016 at 10:04 PM, Pierce Ng <pie...@samadhiweb.com> wrote: > On Fri, Sep 02, 2016 at 12:40:06PM +0800, Ben Coman wrote: >> Referring to the example show_clang_version() below, cleanup is done >> with clang_disposeString(). How does UFFI hook into the object >

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-02 Thread Ben Coman
t; > Can you check if this was fixed in Pharo 60 because someone told me that it > was but I'm not sure. > > > Stef > > > Le 2/9/16 à 02:28, Ben Coman a écrit : > >> I agree. I've suffered the same need previously. Unless there is a >> particular reason its been

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-01 Thread Ben Coman
I agree. I've suffered the same need previously. Unless there is a particular reason its been designed against, I'd request the usual shortcut keys work. I often want to use ctrl-b, ctrl-m in the default tab, even though switching to the raw tab works. cheers -ben On Fri, Sep 2, 2016 at 3:37

Re: [Pharo-users] UFFI const, unsigned, opaque-ish types

2016-09-01 Thread Ben Coman
if not is a bug) > Unsigned does not exist :) > You can always put an alias, but the type you are looking for is "uint" > > Cheers, > Esteban > >> On 31 Aug 2016, at 18:59, Ben Coman <b...@openinworld.com> wrote: >> >> For this definition pulled

Re: [Pharo-users] BitArray and BooleanArray ?

2016-09-01 Thread Ben Coman
I don't know the answer but I assume you a looking for a memory efficient way of storing booleans. So perhaps the Bit Field layouts discussed here [1] may be of interest considering the recent introduction of Slots to Pharo. Otherwise I verry vaguely remember Bitmap used for this somewhere.

[Pharo-users] UFFI const, unsigned, opaque-ish types

2016-08-31 Thread Ben Coman
For this definition pulled from a library header file... typedef struct { const void *data; unsigned private_flags; } CXString; which is used with a helper function to get a usable string like... void show_clang_version(void) {CXString version =

Re: [Pharo-users] support for Croatian language

2016-08-26 Thread Ben Coman
On Fri, Aug 26, 2016 at 4:57 PM, Gour wrote: > On Fri, 26 Aug 2016 10:18:14 +0200 > "teso...@gmail.com" > wrote: > >> Hi, >> sometimes running fc-cache is needed to update the FreeTypeFonts >> caches of fonts. > > Well, my fonts are already installed

Re: [Pharo-users] More reliable VCS, Project management and tools?

2016-08-26 Thread Ben Coman
Hi Vitor, Thanks for your report. Sorry I don't use Windows to respond directly to your issues, but a few comments... On Fri, Aug 26, 2016 at 10:16 AM, Vitor Medina Cruz wrote: > Hello, > > I am doing some katas and challenges using pharo 5, and I got a bad > impression

Re: [Pharo-users] Google building new OS with Dart

2016-08-20 Thread Ben Coman
On Thu, Aug 18, 2016 at 12:23 PM, askoh wrote: > It became news a few days ago. It is called Fuchsia and is meant to run on > all devices from IoT on up. The interesting thing is that Dart will be the > main language. The developers promise to make Fuchsia run on Raspberry Pi 3 >

Re: [Pharo-users] Launching Pharo 4 image in new Pharo 5 Launcher fails

2016-08-02 Thread Ben Coman
On Tue, Aug 2, 2016 at 10:50 PM, Brad Selfridge wrote: > I've downloaded and installed the new Pharo 5 One Click environment. I've > also downloaded the new Pharo 5 Launcher. I can build and run a Pharo 5 > image from the launcher, but when I build or try to open a Pharo 4

Re: [Pharo-users] Programmatic generation of new class

2016-07-29 Thread Ben Coman
On Fri, Jul 29, 2016 at 10:05 PM, Brad Selfridge wrote: > I'm trying to programmatically generate a new class, but am getting the > following error: > > DynamicDescriptorSystem class(Object)>>doesNotUnderstand: > #subclass:instanceVariableNames:classVariableNames:package: >

Re: [Pharo-users] "self problem" with Ghost (virus)

2016-07-29 Thread Ben Coman
On Thu, Jul 28, 2016 at 10:21 PM, Denis Kudriashov wrote: > > 2016-07-28 12:56 GMT+02:00 Esteban Lorenzano : >> >> I do not like either the “virus” name. >> not just because is negative in a subjective way… also it hides what it >> does inside a fantasy

Re: [Pharo-users] Emojis in Pharo

2016-07-28 Thread Ben Coman
On Thu, Jul 28, 2016 at 10:11 PM, Sean P. DeNigris wrote: > Are there any available fonts which correctly display emojis? I'm playing > with sms data... Do you want to display them as graphics... http://unicode.org/emoji/charts/full-emoji-list.html or cross-platform

Re: [Pharo-users] VW Store access (Re: Pharo and GIT)

2016-07-26 Thread Ben Coman
On Tue, Jul 26, 2016 at 5:37 PM, Thierry Goubier <thierry.goub...@gmail.com> wrote: > > > 2016-07-26 11:23 GMT+02:00 Ben Coman <b...@openinworld.com>: >> >> On Tue, Jul 26, 2016 at 3:43 PM, Thierry Goubier >> <thierry.goub...@gmail.com> wrote: >&g

Re: [Pharo-users] System Browser "Implementors of..." drill down?

2016-07-26 Thread Ben Coman
On Tue, Jul 26, 2016 at 6:17 PM, Ben Coman <b...@openinworld.com> wrote: > On Tue, Jul 26, 2016 at 5:18 PM, Torsten Bergmann <asta...@gmx.de> wrote: >> Norbert Fortelny wrote: >>>Something I have not figured out how to do easily in the Pharo system >>>bro

Re: [Pharo-users] System Browser "Implementors of..." drill down?

2016-07-26 Thread Ben Coman
On Tue, Jul 26, 2016 at 5:18 PM, Torsten Bergmann wrote: > Norbert Fortelny wrote: >>Something I have not figured out how to do easily in the Pharo system >>browser: I am looking at a method and want to see how a message that is used >>in this >>method is implemented. > > Have a

Re: [Pharo-users] System Browser "Implementors of..." drill down?

2016-07-26 Thread Ben Coman
> -Original Message- > From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of > Norbert Fortelny > Sent: Thursday, July 21, 2016 7:55 PM > To: pharo-users@lists.pharo.org > Subject: [Pharo-users] System Browser "Implementors of..." drill down? > > Something I have not

[Pharo-users] VW Store access (Re: Pharo and GIT)

2016-07-26 Thread Ben Coman
On Tue, Jul 26, 2016 at 3:43 PM, Thierry Goubier wrote: > Note, for those who miss VW Store, that Squeak has a Magma mapping for code. This sounds useful. Could you describe it a bit more how to use and where to get it? cheers -ben

Re: [Pharo-users] Can GitHubcello be used against BitBucket?

2016-07-25 Thread Ben Coman
Just a couple of articles to head off problems in case you first tried SSH and then switched to HTTPS. https://confluence.atlassian.com/bitbucket/change-the-remote-url-to-your-repository-794212774.html https://help.github.com/articles/changing-a-remote-s-url/ cheers -ben On Mon, Jul 25, 2016

Re: [Pharo-users] pharo 5 crashing

2016-07-25 Thread Ben Coman
On Mon, Jul 25, 2016 at 6:42 PM, Sean Glazier wrote: > Hi, > > I have been saving and restarting my images all night and I carefully do a > save as regularly in case I toast an image. This morning I can not seem to > start up any of my images including a clean one. Strange

Re: [Pharo-users] [ANN] Metacello support for GitFileTree metadata-less mode

2016-07-24 Thread Ben Coman
On Mon, Jul 25, 2016 at 4:23 AM, Dale Henrichs wrote: > > > On 7/24/16 11:29 AM, Cyril Ferlicot D. wrote: >> >> Le 18/07/2016 à 20:33, Dale Henrichs a écrit : >>> >>> Hello Cyril, >>> >>> This appears to be related to the fact that the class comment file >>>

Re: [Pharo-users] Changing method definition at runtime

2016-07-24 Thread Ben Coman
On Sun, Jul 24, 2016 at 11:14 PM, Eric Velten de Melo wrote: > Actually I wanted to have many different object instances with different > behaviours picked at random from a list of available behaviours, but didn't > find practical to create a class for each different method

Re: [Pharo-users] System Browser "Implementors of..." drill down?

2016-07-22 Thread Ben Coman
On Fri, Jul 22, 2016 at 2:47 PM, Dimitris Chloupis wrote: > Learn to use GTSpotter , will make your experience 10 times easier and > faster. Agreed for 90% of what I do, but its RealHard(TM) for a single tool to provide a magic 100% coverage of use cases. The other 10% of

Re: [Pharo-users] How learning Smalltalk can make you a better developer

2016-07-18 Thread Ben Coman
On Mon, Jul 18, 2016 at 9:19 PM, horrido wrote: > A new article on Smalltalk has been published at TechBeacon: How learning > Smalltalk can make you a better developer > > . Hopefully, it will

<    3   4   5   6   7   8   9   10   11   12   >