Re: [Pharo-users] CodeImporter. 256 literals limit

2017-08-29 Thread Clément Bera
Hi, If your tool works in Pharo 6, you can use the other bytecode set which supports up to 32k literals. To do so, go to: World Menu > Settings > Compiler > Encoder and pick SistaV1 instead of V3PlusClosures Try to load your code. The default Pharo 6 VM supports both bytecode sets. Alternatively

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-24 Thread Clément Bera
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

Re: [Pharo-users] X11 options on Ubuntu VM / Athens rendering problems

2017-09-24 Thread Clément Bera
der in the future making it work on the latest Pharo version on multiple OS if it makes sense to show people how to do it. I'm busy with other concerns right now. Anyway, it's just one approach, you can use another one. > Cheers, > > Jeff > > > > > > On Sun

Re: [Pharo-users] Force headless mode

2017-09-26 Thread Clément Bera
Or write a script that obfuscate the code. Not so hard to do. On Tue, Sep 26, 2017 at 5:13 PM, Christophe Demarey < christophe.dema...@inria.fr> wrote: > Hi > > What about deploying a minimal image without UI ? > But, as you probably know, headless mode does not prevent to dump the code. > > Chr

Re: [Pharo-users] Music beat detection and 60FPS graphics on Pharo?

2017-10-14 Thread Clément Bera
Hi Phil, I did that using Ronie's OpenAL binding and Merwann's wav parser back in 2014-2015: MCSmalltalkhubRepository owner: 'ronsaldo' project: 'OpenAL' MCSmalltalkhubRepository owner: 'MerwanOuddane' project: 'WAVParser' I did things such as (build yourself something derived from this code I

Re: [Pharo-users] Pharo and instance variables ...

2017-10-17 Thread Clément Bera
On Wed, Oct 18, 2017 at 7:07 AM, James Ladd wrote: > Hey David, > > If you could only access instance variables in the class that defined them > and therefore only in a subclass via an accessor / mutator method w that be > a big problem in your view? > Yes. I don't want to have to define access

Re: [Pharo-users] Can we halt on memory growth beyond a limit?

2017-10-24 Thread Clément Bera
Hi, You can start the VM with this parameter: --memory [mk]use fixed heap size (added to image size) When the memory is reached you have an out of memory error. Check --help on the VM. On Tue, Oct 24, 2017 at 10:15 PM, PAUL DEBRUICKER wrote: > I'm trying to get some understanding about

Re: [Pharo-users] How to write a little REPL

2017-11-28 Thread Clément Bera
There is a REPL Image we use for VM debugging. It's a REPL in the command line and in the VM Simulator. File-in in attachement to load and start the REPL. On Tue, Nov 28, 2017 at 8:18 AM, Stephane Ducasse wrote: > Sorry I wanted to have it in pharo :) > > On Mon, Nov 27, 2017 at 3:56 AM, Holge

Re: [Pharo-users] Math Ontologie on Pharo 3.0

2014-09-08 Thread Clément Bera
What kind of bug do you have with accent ? Do you have a stack trace ? More importantly, can you give us a reproducible case ? I will investigate tomorrow if you have a reproducible case to check if this is due to Opal. It may also be recent changes related to fonts. 2014-09-08 21:07 GMT+02:00 S

Re: [Pharo-users] Math Ontologie on Pharo 3.0

2014-09-09 Thread Clément Bera
I got unmatched string quote. If it's French, could it be a ' ? It looks like a parser bug to me... I hope not :-) > > Alain > > On Tue, Sep 9, 2014 at 5:43 AM, Clément Bera > wrote: > >> What kind of bug do you have with accent ? Do you have a stack trace

Re: [Pharo-users] New compiler: variable and recursive bloc of code

2014-09-10 Thread Clément Bera
Hello, The additional assignment is not needed. You get a warning because the warning detection is approximate and sometimes raises warning whereas it should not, but if you proceed, it compiles fine. 2014-09-10 8:54 GMT+02:00 Hilaire : > Hello, > > I noticed this change described bellow and I

Re: [Pharo-users] Calling Pharo from C

2014-09-18 Thread Clément Bera
Let's say no. It will be possible in the future but it requires quite some work in the VM. If you want to do this work, ask the question on VM-dev mailing list they will tell you what you need to do to make it possible. 2014-09-18 22:05 GMT+02:00 Annick Fron : > > Is it possible to call pharo fr

Re: [Pharo-users] Passed by references and by value

2014-09-25 Thread Clément Bera
Depending on the VM you use, different objects are passed by values. Currently -> only smallintegers on Spur 32 bits VM -> smallintegers and characters on Spur 64 bits VM -> smallintegers, characters and smallfloat But as Stef said it does not really matter in smalltalk. 2014-09-25 21:55 GMT+02:

Re: [Pharo-users] Reloading a shared c library after been modified?

2014-10-12 Thread Clément Bera
Hello, this is possible but non trivial. I think the easiest way is to bind the C functions to manage C libraries: dlopen, dlsym, dlclose, dlerror. Then you can manually open and close the dynamic libs (dlopen, dlclose) and call the function dynamically loaded with dlsym. dlerror is used for erro

Re: [Pharo-users] Building 64-bit pharo VM

2014-11-18 Thread Clément Bera
Hello, What you want to do is difficult because the vm internals rely on the word size. There are two solutions: 1) editing the VM (JIT native code back end + memory manager) to support 64 bits. That's a work in progress. You can discuss about it on the Squeak vm-dev mailing list. 2) compiling th

Re: [Pharo-users] Beginner of smalltalk 80 - first graphic windows and GUI - need help

2014-11-26 Thread Clément Bera
Hello, I don't really know how to answer. Are your examples really from smalltalk-80 ? Were they running on the Xerox-D microcoded machine ? Because I don't think there are anymore smalltalk-80 available right now, nor machine that can run it. There's a smalltalk-78 running on javascript on the w

Re: [Pharo-users] New Pharo Collections

2014-12-16 Thread Clément Bera
2014-12-17 7:42 GMT+01:00 Damien Cassou : > > > Le 16 déc. 2014 22:48, "dboeren" a écrit :. > > Off the top of my head, I would be interested in support for "slices" > > meaning taking being able to treat a subset of a larger > OrderedCollection as > > its own OrderedCollection rather than using c

Re: [Pharo-users] Traveling to PharoDays

2014-12-27 Thread Clément Bera
There's a direct train from Paris CDG airport to Lille. It's usually more complex to go from brussels airport to Lille. There's an airport in Lille but there's very few flights from there (only to Marseilles and Porto AFAIK). 2014-12-27 12:21 GMT+01:00 Udo Schneider : > All, > > what's the best

Re: [Pharo-users] Notification on GC of an object?

2015-01-13 Thread Clément Bera
Yeah Object>>#finalize is supposed to do what you said but unfortunately it does not work... Maybe it's a VM bug or maybe it's not supported any more. We'll see if Eliot answer the thread. 2015-01-13 15:55 GMT+01:00 Johan Fabry : > > No, just putting the cleanup code in a finalize method does n

Re: [Pharo-users] "Improper store into indexable object" and weird variable names

2015-01-20 Thread Clément Bera
Typically, if the image can still access the change file but not the source file (or the other way around), some methods still show temporary variable names, whereas other methods show t1, t2, etc , depending on which files their sources were in. 2015-01-20 10:21 GMT+01:00 Sven Van Caekenber

Re: [Pharo-users] Running Pharo headless

2015-01-21 Thread Clément Bera
Just a detail. When you run headless with the latest pharo-vm (that you can download here: http://files.pharo.org/vm/pharo/ in your OS directory, file stable.zip), add --no-quit after --no-display in the VM start-up options. 2015-01-21 7:21 GMT+01:00 p...@highoctane.be : > why running pharo with

Re: [Pharo-users] Running Pharo headless

2015-01-21 Thread Clément Bera
aside.image \ > st ./startServer.st \ > --no-quit > > Apart from running it under a limited user/group, it is also possible to > chroot it for an extra security measure. > > > Michal > > > > > On 21.1.2015 09:16, Clément Bera wrote: > > Just a deta

Re: [Pharo-users] Running Pharo headless

2015-01-21 Thread Clément Bera
2015-01-21 10:31 GMT+01:00 nacho <0800na...@gmail.com>: > philippeback wrote > > why running pharo with a squeakvm? > > > > I do it, in my Raspberry Pi :p and its slo > Actually I think only the UI is slow on the Pi because on the squeak VM made by Tim he reimplemented differently BitBlt. Is

Re: [Pharo-users] Waiting object

2015-01-27 Thread Clément Bera
Hello, Or simpler: 1 second wait. In your example: Transcript open. [ 10 timesRepeat:[Transcript crShow:(DateAndTime now). 1 second wait] ] fork. 2015-01-27 20:21 GMT+01:00 Nicolai Hess : > > 2015-01-27 19:46 GMT+01:00 Laura Risani : > >> Hi all, >> >> I need an object/method lik

Re: [Pharo-users] Why single inheritance?

2015-01-28 Thread Clément Bera
2015-01-28 16:41 GMT+01:00 Laura Risani : > Hi all, > > What is the explanation why Smalltalk designers preferred single > inheritance+traits to multiple inheritance? Why is the former better than > the latter? > Do traits let you share state also or only behavior? > Traits only share behaviors.

Re: [Pharo-users] Image growing size

2015-02-03 Thread Clément Bera
Hello, There could be many reasons why you would have such a big image. The most common reason is the monticello metadata, as Phil said. Another reason could be because some caches and objects that are flushed on snapshot, so if you looked at the image size at runtime and not the file size (for

Re: [Pharo-users] Small benchmark

2015-02-17 Thread Clément Bera
Hello Andrea, The way you wrote you algorithm is nice but makes extensive use of closures and iterates a lot over collections. Those are two aspects where the performance of Pharo have issues. Eliot Miranda and myself are working especially on those 2 cases to improve Pharo performance. If you don

Re: [Pharo-users] Small benchmark

2015-02-17 Thread Clément Bera
h the updated result once Pharo4 is out. > > > > Of course, you can add the benchmark and tweak it for your needs. > > > > Thank you for all the good work you are doing! Reaching a speed near > > pypy would be a real game changer! > > > > 2015-02-17 11:24

Re: [Pharo-users] What happens to saved inspectors?

2015-02-18 Thread Clément Bera
Hey, Inspectors are different between Moose and Pharo 3. Can you precise, are you using the Glamour inspector, the EyeInspector or the old Morphic inspector ? I have never seen that in Pharo. Are your titles dynamic (I mean, when the object changes, can your title change ?) ? 2015-02-18 11:35 GM

Re: [Pharo-users] i feel dumb / Pharo3 > OrderedCollection >> do:

2015-02-20 Thread Clément Bera
It depends on your OrderedCollection implementation. OrderedCollection has a variable size in memory. When instantiated, it has for example 10 slots, and if you have more than 10 objects, it needs to change its size to hold more slots. The current implementation relies on an indirection to an arr

Re: [Pharo-users] Fwd: [Pharo Consortium] Your organization application has been rejected.

2015-03-03 Thread Clément Bera
Well, this year google it looks like accepted less organizations. 2012: 180 organizations accepted. 2013: 177 organizations accepted. 2014: 190 organizations accepted. 2015: 137 organizations accepted. A few projects with ESUG could be nice for sure. But there we will have in the same issues agai

Re: [Pharo-users] topics.pharo.org - Deep learning

2015-03-27 Thread Clément Bera
Hello, I believe that topics related to robotics are supervised by Noury Bouraqadi and / or Luc Fabresse. I think you should ask them for more information. You can find their mail on their web page (just type their names on google) Good luck, Clement 2015-03-27 9:51 GMT+01:00 Damien Cassou

Re: [Pharo-users] Proxies: Subclassing nil

2015-03-31 Thread Clément Bera
Hey Sean, Now to create a proxy you need to subclass ProtoObject and not nil. This was changed years ago to avoid some issues. An example of issue that existed: when you subclass nil, as #doesNotUnderstand: is not implemented by default on your proxy, any proxy created receiving a message would c

Re: [Pharo-users] Bytecodes in Nautilus

2015-04-01 Thread Clément Bera
Seemingly, UI-wise, it was not good to have a button for the bytecode. As I use it al the time, I reintroduced it in the menu and you can use the shortcut Cmd+b+b, which reportedly was better. In other IDE tools that nautilus you can't see anymore the bytecodes though. 2015-04-01 8:06 GMT-07:00

Re: [Pharo-users] questionable questionable code critic

2015-04-24 Thread Clément Bera
Code critics relies on simple rules, such as the use of the selector #isKindOf: . It does not detect the second case because the rule is simple, though both are questionable. Best, 2015-04-24 18:24 GMT+02:00 Peter Uhnák : > Why does CodeCritic (QualityAssistant) considers this questionable > >

Re: [Pharo-users] Silent compilation

2015-05-19 Thread Clément Bera
Silent compilation is when the compilation is done without telling any other objects. In the regular compilation of a method, for example, you tell all the class browsers opened that the method was compiled so that if a class browser shows an old version of the same method it is refreshed to show

Re: [Pharo-users] Roassal & Spec?

2013-05-30 Thread Clément Bera
Hello, How is your Roassal visualization ? Is it a morph ? If it is a morph I guess you would need to do a ComposableModel wrapper to integrate it in a spec. 2013/5/30 MartinW > Hi, > how can i combine a Roassal visualization and a Spec UI? > Is there already some Roassal-Spec? > See attached s

Re: [Pharo-users] Debugger question

2013-06-02 Thread Clément Bera
Yeah there was a bug report about stepping on Processor terminateActive. I tried with the latest Pharo VM and I was able to do Cmd . to interrupt. It worked several times, but it might be just a question of luck. It is not easy to fix. We could as a temporary patch hardcode the step over terminat

Re: [Pharo-users] New guy in the community.

2013-06-04 Thread Clément Bera
Hello and welcome, Yeah lots of programmers start programming willing to do video games. But a few finish by really doing games... When I was student (a year ago) I started to implement a game, and then I switched and I am now working in compiler & virtual machines related stuff. But recently I d

Re: [Pharo-users] account search

2013-06-07 Thread Clément Bera
No don't remove it. It is when someone is assigned to a project and wants to be removed. Then he selects this guy instead. 2013/6/7 Sven Van Caekenberghe > > On 07 Jun 2013, at 11:42, Camillo Bruni wrote: > > > who is rem...@me.com on fogbugz? > > I don't know, but I am pretty sure you can s

Re: [Pharo-users] Mugs 'n' stuff

2013-06-08 Thread Clément Bera
I have to agree. I would love to have a Pharo T-shirt. And I think I know some other people that would be interested :) Perhaps we could also get Pharo ecocups that we can provide for the sprints as an environment-friendly alternative of plastic glasses. 2013/6/8 Jeff Gray > ok so I need to b

Re: [Pharo-users] inspect returns iOf SystemWindow and not receiver

2013-06-08 Thread Clément Bera
I think the reason was the need of registering onWindowClose: event or closing the window by the code easily. Now you can do : | w | w := Object inspect. w onWindowClosed: [ ... ]. ... w close. 2013/6/9 Igor Stasenko > On 8 June 2013 20:29, Sabine Knöfel wrote: > > Hi, > > > > while developing

Re: [Pharo-users] how to draw this Shape??

2013-06-30 Thread Clément Bera
I don't know how to do it with Polymorph. You can do it with Athens (by polishing this code) : surf := AthensCairoSurface extent: 100@100. surf drawDuring: [:can | surf clear. can setPaint: Color red. can drawShape: ( can createPath: [:path | path absolute; moveTo: 0@25; curveVia: 25@0 to: 50@

Re: [Pharo-users] Tudor Girba joins Pharo Board

2013-07-02 Thread Clément Bera
Good news. Congratulations Tudor. I have a question. It is common knowledge that if the community cannot decide something for Pharo, the Pharo board will decide for the community. You used to be 3 so it was fine. Now that you are 4, if 2 people vote in a way and the 2 others the other way, what wi

Re: [Pharo-users] Deactivate method inlining/jitting

2013-07-09 Thread Clément Bera
To disable JIT, use StackVM instead of Cog. You can find it here: http://files.pharo.org/vm/. Now ifTrue:ifFalse: are compile time optimizations so using Stack will not change anything. With Opal compiler (by default in pharo 3.0), you can do something like: MyClass class>>compiler ^ super compile

Re: [Pharo-users] Procedure for reporting bugs in external libraries

2013-07-12 Thread Clément Bera
Hello, Usually, projects that are in integrated in Pharo or are going to be integrated in it are on the main Pharo issue tracker. For other projects, you can directly contact the author's email or you report about it on this mailing list. Depending on the project there could be an issue tracker or

Re: [Pharo-users] no SortedDictionary available?

2013-07-17 Thread Clément Bera
There is currently no sorted dictionary in Pharo. There's only OrderedIdentityDictionary / OrderPreservingDictionary which are different. If you implement one or find an opensource implementation somewhere, Marcus will be pleased to integrate it in Pharo. 2013/7/17 Sabine Knöfel > correction/

Re: [Pharo-users] How are you doing your jenkins build scripts?

2013-07-25 Thread Clément Bera
2013/7/25 Camillo Bruni > > On 2013-07-25, at 17:10, Norbert Hartl wrote: > > > Cami, > > > > thanks for the snippet. The commandline handler for tests is a super > replacement for one part of my snippet. But how do you do the lint tests? > > ah sorry, didn't see that last line. I didn't add sup

Re: [Pharo-users] Pharo 2.0 with Seaside + DBXTalk + GlorpDBX + Magritte 3 + TWBS is getting slower and slower

2013-07-29 Thread Clément Bera
A possibility would be the AST cache. During development, if you do things like recompileAll or load packages the AST cache can grow the image size up to 300 Mo. But this cache is deleted when saving & quitting the image. Did you save and quit the image before looking at the memory size ? It migh

Re: [Pharo-users] Garbage collector & Memory Profiling

2013-07-30 Thread Clément Bera
There is the StrongPointerExplorer in the image that can help... But it is not easy to know when an object is GC. 2013/7/30 Alejandro Infante > Hello, > We are currently working on memory profiling and we are having troubles to > detect when an object is garbage collected. > > Any ideas? > > T

Re: [Pharo-users] Benchmark

2013-08-30 Thread Clément Bera
However benchmark on the CI are not on a dedicated machine so it is not very reliable 2013/8/30 Camillo Bruni > That you just need to run it from the command line which is not related to > the benchmark project. > Currently it seems like the ci has some troubles, so I cannot get to the > c

Re: [Pharo-users] Muiltple images / FFI

2013-10-01 Thread Clément Bera
Hello, How did you bind your native library, with FFI, alien or NativeBoost ? I guessed FFI but I'm not sure. Did you try to run all the images on several VM (1 VM per image) ? If so, did it solve the problem ? What version of the VM are you using ? (Evaluate Smalltalk vm version). Retry with th

Re: [Pharo-users] Halos in pharo 3

2013-10-04 Thread Clément Bera
In Mac OS X lion, I press then I can select multiple morphs with the halo. I use that to close multiple morphs at the same time. I don't know on iPad however .. 2013/10/4 > Andy Burnett wrote: > >> I have two related questions: >> 1. how does one bring up halos in the 3.0 image. I tried Cmd +

Re: [Pharo-users] create windows with Pharo 2.0

2013-10-21 Thread Clément Bera
I'm not sure what you mean by window. If by window you mean native window (i.e. another window than the pharo window), then you should have a look at the mars project. If by window you mean a morphic window inside the pharo window, then you should have a look at spec (see AbstractSpec, MethodBrow

Re: [Pharo-users] Spec Question

2013-10-24 Thread Clément Bera
Hey, Accepting a text usually means the is compiled. To accept a text, right click on it, then click accept in the contextual menu (at the bottom). You can also do it with Cmd+s on Mac. Try again and tell us if the #whenTextIsAccepted: works fine in your image or not. Best, 2013/10/24 Benjami

Re: [Pharo-users] profStef missing executeMethod

2013-10-26 Thread Clément Bera
Hello, I think #executeMethod was a shortcut for method without arguments of the method #withArgs:executeMethod:. I missed it too, so I guess you can add a bug report, create and commit a slice and lastly it will be integrated in Pharo in the next few days. #withArgs:executeMethod: is implemented

Re: [Pharo-users] profStef missing executeMethod

2013-10-27 Thread Clément Bera
7;t figured out how to get "Time now." to report in 24hour > time.) > > I THINK that this should be changed in profStef rather than in Object, > probably by removing the reference. But that's just a guess. (That much I > can do in my image, but I wouldn't want to do i

Re: [Pharo-users] Using FFI

2013-10-31 Thread Clément Bera
Does Alien support ARM ? How to do FFI on ARM then if NativeBoost and FFI does not support it ? 2013/10/31 Igor Stasenko > > > > On 31 October 2013 11:23, Annick Fron wrote: > >> Hi Igor >> >> I have done that, but still gets an error, do I need to remove >> NativeBoost ? >> Annick >> >> > FF

Re: [Pharo-users] ProfStef, Lesson 25 - Unknown selector

2013-11-05 Thread Clément Bera
Hello, The method that exists is #withArgs:executeMethod: so replace "executeMethod: someCode" ==> by ==> "withArgs: #( ) executeMethod: someCode" or create the method: Object>>executeMethod: compiledMethod ^ self withArgs: #( ) executeMethod: compiledMethod Then it should work. You're the se

Re: [Pharo-users] ProfStef, Lesson 25 - Unknown selector

2013-11-05 Thread Clément Bera
I added the issue with a slice in inbox. 2013/11/5 Marcus Denker > > On 05 Nov 2013, at 10:19, Clément Bera wrote: > > > Hello, > > > > The method that exists is #withArgs:executeMethod: so replace > > "executeMethod: someCode" ==> by ==>

Re: [Pharo-users] Spec - Text alignment in LabelModel

2013-11-07 Thread Clément Bera
Hey, I'm not sure this is the good way to do it, but you can store in your labelModel a Text instead of a String: myComposableModel label text: 'someString' asText. Then you can add attribute to the text: myComposableModel label text addAttribute: TextColor red. myComposableModel label text add

Re: [Pharo-users] Spec - Tutorial Series

2013-11-07 Thread Clément Bera
I'm glad you are doing that :). Marcus could you tweet about this blog on the Pharo tweeter account ? So many people are waiting for more tutorials on Spec. 2013/11/7 Bahman Movaqar > Hi all, > > I'm writing a series of tutorials for Spec for beginners like myself and > I'd really appreciate a

Re: [Pharo-users] Spec - Nested Layouts

2013-11-07 Thread Clément Bera
Hey, I don't know what you want exactly. You can do: spec ^ SpecLayout composed newRow: [:row | row newColumn: [ :col | col add: #list width: 135; add: #description ] ]; yourself and nest that as many times as you want (but I do

Re: [Pharo-users] Spec - Nested Layouts

2013-11-07 Thread Clément Bera
07 Nov 2013, at 13:22, Bahman Movaqar wrote: > > On 11/07/2013 12:45, Clément Bera wrote: > > Hey, > > I don't know what you want exactly. > > You can do: > > spec > > ^ SpecLayout composed > newRow: [:row | > row >

Re: [Pharo-users] Why won't my Pharo download run?

2013-11-07 Thread Clément Bera
Hey, Yeah it might be as there's Squeak installed that the image tries to be run with the old squeak VM instead of the pharo VM. Then it fails with old VMs. 2013/11/7 Igor Stasenko > > > > On 7 November 2013 14:18, PBK Research wrote: > >> Hello! >> >> I have a problem with running Pharo 2.0

Re: [Pharo-users] Spec - Text alignment in LabelModel

2013-11-07 Thread Clément Bera
I checked it seems that TextAlignment is currently broken. Only other text attributes work. sorry. 2013/11/7 Clément Bera > Hey, > > I'm not sure this is the good way to do it, but you can store in your > labelModel a Text instead of a String: > > myComposableModel

Re: [Pharo-users] Spec - Grid/Table Layout

2013-11-08 Thread Clément Bera
Ben answered in another thread: *About table, I have an example which will be running soon in Pharo (the changes are waiting to be integrated)* *tree := TreeModel new.* *tree openWithSpec.* *tree columns: (Array * * with: (TreeColumnModel new displayBlock: [:node | node content first asString ];

Re: [Pharo-users] ProfStef, Lesson 25 - Unknown selector

2013-11-08 Thread Clément Bera
This bug is fixed and integrated in Pharo 3. 2013/11/9 Stéphane Ducasse > marcus > > did you open an entry? > > Stef > > On Nov 5, 2013, at 9:51 AM, Marcus Denker wrote: > > (Object compiledMethodAt: #halt) valueWithReceiver: nil arguments: #() > > > We should update ProfStef > > Marcus > > >

Re: [Pharo-users] Who uses poolDictionaries? New class template cleanup

2013-11-14 Thread Clément Bera
2013/11/14 jtuc...@objektfabrik.de > Yuri, > > Okay, so why not go one step further and kill PoolDictionaries? > This was done in OOVM / Resilient Smalltalk. And it was clean and worked well. > I mean, if no one uses them and you'd like to hide them from the users, > they obviously are unneces

Re: [Pharo-users] i18n - Where to start?

2013-11-14 Thread Clément Bera
Hello, So there is 2 frameworks to do multi language UI in Pharo (but I don't know if one of them is i18n). One framework is in the image, does not work very well and no one use it seemingly. So I don't recommend it. The other one is the one everyone use, so I recommend it, I'm not sure but I th

Re: [Pharo-users] What is "Primitives"?

2013-11-29 Thread Clément Bera
Well use the generator image you can find on the pharo repo, it is hard to build such an image by hand. This code: Primitives lookupDirectory: encodedPath filename: encodedBasename Should be: FilePluginPrims lookupDirectory: encodedPath filename: encodedBasename Now I don't why this was not corr

Re: [Pharo-users] Loading Cog fails under Windows

2013-12-07 Thread Clément Bera
Hello, answers inlined 2013/12/6 Hernán Morales Durand > Thanks Clement, got it. > > FYI doing the checkout leads to a filename too long > > $ git checkout -f HEAD > error: unable to create file > mc/VMMaker-oscog.package/GeniePlugin.class/instance > > /primSameClassAbsoluteStrokeDistanceMyPoin

Re: [Pharo-users] Loading Cog fails under Windows

2013-12-07 Thread Clément Bera
I have no clue Marcus why it is still there. Probably removing it had some side effect in rare cases so it is still there or no one has ever tried to remove it. 2013/12/7 Marcus Denker > > On 07 Dec 2013, at 09:32, Clément Bera wrote: > > Hello, answers inlined > > 2013/1

Re: [Pharo-users] Is there any fundamental technical barrier to compiling to JVM byte codes?

2013-12-28 Thread Clément Bera
Main problems to compile Smalltalk to java bytecode: - there's no context in java. This means our implementation of continuations and exceptions is not valid anymore. This also means we cannot have a debugger with edit-and-continue as we have now. - there's no become:, which is used to keep the sys

Re: [Pharo-users] NativeBoost callbacks from different threads?

2014-02-02 Thread Clément Bera
Hello, This is still true in Pharo 3 AFAIK. With NativeBoost you need to have the call back in the same thread as the VM. If you want multithreaded callback you can do it through the FFI VM plugin and the Cog Multi threaded VM (you can find the CogMT VM prebuilt for Pharo here: https://ci.inria.f

Re: [Pharo-users] Stupid Question

2014-02-08 Thread Clément Bera
Hello, On Mac, I press Cmd + shift + mouse click and while keeping all these pressed I move the mouse, and it automatically create a rectangle selecting all the morphs inside. It allows to select multiple morphs which is much better in some cases. 2014-02-08 18:22 GMT+01:00 Hernán Morales Durand

Re: [Pharo-users] Stupid Question

2014-02-09 Thread Clément Bera
The halo works on morphs. If you have an athens surface which is not in a morph, the halo does not work. Anyway this is a bug. 2014-02-09 4:27 GMT+01:00 Sean P. DeNigris : > David Harris wrote > > When I use the Move element of the halo, I get "MessageNotUnderstood: > > AthensDemoMorph>>passeng

Re: [Pharo-users] Writing test for the String class

2014-02-17 Thread Clément Bera
Hello, I believe #correctAgainstDictionary: / correctAgainst: / correctAgainstEnumerator: are API for autocorrection in compiler erros / compiler warnings. For ex, when I type '1 hal' in a workspace I get this window: [image: Images intégrées 1] and here all the selector proposed (hasPreambleOfR

Re: [Pharo-users] 64 bit version

2014-04-01 Thread Clément Bera
Hey, For 64 bits Spur is a big step forward. For Christmas you should have at least the stack VM in 64bits. The JIT may take a bit longer to port. Esteban and Eliot will work on that starting from May. There's also the solution to compile the VM in 64bits with a 32bits runtime (I think FFI does n

Re: [Pharo-users] Compiler evaluate: -> Smalltalk evaluate:

2014-04-07 Thread Clément Bera
Hello, I do not like 'Smalltalk evaluate:' either. One solution is to do 'self class compiler evaluate:'. 2014-04-07 5:02 GMT-07:00 Sergi Reyner : > 2014-04-07 11:51 GMT+01:00 Marcus Denker : > > In 4.0, we will remove the old compiler and then we can see how to make >> the API perfect. >> > >

Re: [Pharo-users] glorp

2014-04-23 Thread Clément Bera
Hello, I think Glorp is used with DBXTalk for relational databases by multiple people. Usually, with Pharo, people use as a persistance layer either MongoDB with the frameworks MongoTalk/Voyage. Gemstone is also used quite often for large scale application but Gemstone is not free. Regards. 2

Re: [Pharo-users] Gorgeous

2014-05-13 Thread Clément Bera
Did you notice some performance improvement ? I mean, just by playing with the UI, not by running dozen of benchs. Regards, Clement 2014-05-13 19:05 GMT+02:00 Hilaire Fernandes : > DrGeo canvas with Athens looks really nice. > > Hilaire > > -- > Dr. Geo http://drgeo.eu >

Re: [Pharo-users] Slots

2014-05-18 Thread Clément Bera
Hello, Actually slots are introduced so we can use them the next Pharo iteration (Pharo 4). It is difficult to use as it is, you need to change a bit the compiler so that it asks the class slots for field access byte code generation (a field being typically an instance variable) and you also need

Re: [Pharo-users] Slots

2014-05-18 Thread Clément Bera
VarNamed: and hope that works always? > I guess you will also have to override instVarNamed: and/or instVarAt: if you want to catch reflexive instVar access. But that will never always work this method is only for reflective access. > On May 18, 2014, at 3:50 AM, Clément Bera wrote: >

Re: [Pharo-users] glorp

2014-05-20 Thread Clément Bera
Hello, 2014-05-21 6:15 GMT+02:00 Pablo R. Digonzelli : > Hi all, where can i get updated info about glorp ?. > don't know > Is someone using GLORP in a real business app? > Yes, they are using it with DBXTalk to bind relational databases. People with more knowledge about that can answer you

Re: [Pharo-users] Initializing a class with a Dictionary

2014-05-22 Thread Clément Bera
Hello, I think you should look at the STON framework. STON looks like JSON for smalltalk objects. Basically it does the same as your idea but instead of a dictionary it loads fields of an objects from a STON file which looks like a JSON file (a STON is kind of an extended Dictionary exported as a

Re: [Pharo-users] Initializing a class with a Dictionary

2014-05-22 Thread Clément Bera
2014-05-22 21:11 GMT+02:00 sergio_101 : > great! looking at STON next! thanks! > > You can find it in the configuration browser > > On Thu, May 22, 2014 at 2:26 PM, Clément Bera wrote: > >> Hello, >> >> I think you should look at the STON framework. STON look

Re: [Pharo-users] Block Recursion

2014-05-26 Thread Clément Bera
Hello, Closures were implemented in Squeak/Pharo according to the blue book, so they were not real closures, up to 2008. Then the VM and the compiler were changed to support real closures. The code you showed should work both on latest Squeak and on latest Pharo fine. Old version of Squeak and/or

Re: [Pharo-users] Accessing DLLs in Smalltalk/V

2014-05-29 Thread Clément Bera
Hello, To do what you want, there are 3 options: - using NativeBoost - using FFI from the VM - compiling your dll as part of the vm (VM plugin) NativeBoost is clearly the best option because it is the fastest, it is mostly implemented in the image so you can look at the code and it is by default

Re: [Pharo-users] Xcode's Swift Playground

2014-06-03 Thread Clément Bera
2014-06-03 8:40 GMT+02:00 jtuc...@objektfabrik.de : > I remember seeing a demo of F# at an Eclipse conference a few years ago. > It also very much reminded me of Smalltalk. > > What's interesting about swift is not only that Apple chose an existing > name for their new programming language (intere

Re: [Pharo-users] Slowness question

2014-06-04 Thread Clément Bera
Igor do you have a clue ? (I'm not sure Igor is on pharo-users) Clement 2014-06-04 23:15 GMT+02:00 Hilaire Fernandes : > Hi, > > > Programmed sketch in DrGeo can be animated, for example like the script > bellow. > The "canvas do:" message forks the block so user is not blocked. > At #udpate m

Re: [Pharo-users] Xcode's Swift Playground

2014-06-04 Thread Clément Bera
2014-06-04 11:33 GMT+02:00 Henrik Johansen : > > On 03 Jun 2014, at 6:32 , Camille Teruel wrote: > > > On 3 juin 2014, at 17:34, Johan Fabry wrote: > > > On Jun 3, 2014, at 4:21 AM, Camille Teruel > wrote: > > To what I understand, types are inferred, it is not statically typed. Am I > wrong ?

Re: [Pharo-users] Coding by sending messages

2014-06-11 Thread Clément Bera
Hello, The problem is that in most cases non text editor based IDE are not user-friendly/hard to understand/hard to use. We are moving toward AST based tools software side but it will still be a textEditor for the user interface. I remember there may be something similar to what you are looking f

Re: [Pharo-users] AST method copyInContext:

2014-06-17 Thread Clément Bera
By looking at the senders of #copyInContext:, I believe it is used in RBStringReplaceRule. By looking at this rule class comment, I believe it replaces a matched tree with another tree. So I guess copyInContext: is used to replace a subtree of the AST by another tree. Regards, Clement 2014-06-

Re: [Pharo-users] Pharo by visualization: Adding a title to a Roassal map visualization

2014-06-24 Thread Clément Bera
Hum I use the old version of roassal not the new one but I think you can replace mapa := RTMetricMap new by: mapa := RTMetricMap titled: 'myTitle'. Does it work ? Else perhaps mapa := RTMetricMap new title: 'myTitle' ?? 2014-06-24 19:57 GMT+02:00 Offray Vladimir Luna Cárdenas : > Hi, > >

Re: [Pharo-users] Message Browser: refactoring

2014-07-05 Thread Clément Bera
Is it integrated in the Pharo 3/Pharo 4 image ? That's nice. 2014-07-05 12:12 GMT+02:00 Mark Rizun : > Hi everyone! > > Added a refactoring option in contextual menu in Message Browser. > Fixed: now all refactorings works. > It's described on my blog . > Fee

Re: [Pharo-users] Using FFI

2014-07-09 Thread Clément Bera
Hello, This bug happen both with the old and new compiler. The error tells you that the number of arguments of your smalltalk method does not match the number of argument of the C method you want to call (but it seemsthe number of arguments is correct). This works fine: ^self externalCallFai

Re: [Pharo-users] MNU: RBParser>>ExternalFunctionDeclaration

2014-07-10 Thread Clément Bera
ead (it is the same, after all) > > Esteban > > On 09 Jul 2014, at 17:17, Clément Bera wrote: > > Hello, > > This bug happen both with the old and new compiler. > > The error tells you that the number of arguments of your smalltalk method > does not match the

Re: [Pharo-users] FFI Basic

2014-07-10 Thread Clément Bera
Well the method with the code you give was compiled without any problem in my image (Pharo #30851 with FFI loaded with configuration browser as explained in the other thread). Perhaps this is related to your bug in the other thread where you were (probably) missing a package ? 2014-07-10 18:15

Re: [Pharo-users] I need some explaination about arguements assignment

2014-08-07 Thread Clément Bera
2014-08-07 6:38 GMT+02:00 aria2end : > Hi james, > > Your post not only resolved the issue but also introduced me a new approach > which I was looking for it. > Thank you > > do you know the reason why assigning to a passed-in argument is illegal by > any chance ? > > This is illegal because then

  1   2   >