[Pharo-project] Git API for Pharo

2012-11-07 Thread roberto.mine...@usi.ch
Hello, I need to access a Git repository programmatically from Pharo. Is there any API to work with Git working copies, access and manipulate repositories programmatically? In short I need to checkout each revision of a project and extract some meta-data from each revision. Thanks in advance

Re: [Pharo-project] [Pharo-users] Pharo consortium agreement

2012-11-07 Thread Damien Cassou
On Tue, Nov 6, 2012 at 6:09 PM, Marcus Denker wrote: > These are part of the Pharo User Association. This is ready, too and will > be announced the next days. Is the Association a member of the Consortium? -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-07 Thread Stéphane Ducasse
On Nov 6, 2012, at 11:06 PM, Igor Stasenko wrote: > On 6 November 2012 17:57, Stéphane Ducasse wrote: >> This is clearly something to add to the documentation of NativeBoost. >> Igor can you do it? > > I already have a description of memory management API for NB in docs. > And telling how manag

Re: [Pharo-project] [ANN] Pharo Online Help 1.0

2012-11-07 Thread Stéphane Ducasse
this is cool. No time to fully read now but later for sure. I would like to see how we can integrate the book chapters. This is why we brainstormed with damien c to see how we can use Pier format as a core format for all the doc and so that we can generate the book (like for the seaside book).

Re: [Pharo-project] [ANN] Pharo Online Help 1.0

2012-11-07 Thread Camillo Bruni
Awesome!! BTW how do you deal with text formatting? For NativeBoost we used MarkDown to add sourceCode / method / class and section links to the documentation. With the formatting and the webserver the documentation would be almost perfect in my eyes! On 2012-11-06, at 23:13, Torsten Bergmann

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Stéphane Ducasse
On Nov 7, 2012, at 9:08 AM, roberto.mine...@usi.ch wrote: > Hello, > > I need to access a Git repository programmatically from Pharo. > > Is there any API to work with Git working copies, access and manipulate > repositories programmatically? if you find it we need that too :) Stef > > In

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Max Leske
Hi Roberto Yes, there is, but it is work in progress. Try this in Pharo 1.4 or 2.0: Gofer new repository: 'http://ss3.gemstone.com/ss/FileSystem-Git'; package: 'FileSystem-Git'; package: 'System-Hashing'; load. If you need any help, there's a dedicated mailing list: smalltalk-..

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Camillo Bruni
We have a almost 100% working git library for the low-level api. We have the git:// and dumb http:// protocol almost fully defined, we still miss smart http://. The only thing we cannot do yet properly is cloning a repository, but that can be easily scripted with OSProcess. The latest sources wit

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-07 Thread Camillo Bruni
Just copy paste the thing you posted in the NBBasicExamples and we're done. A couple of examples which show common problems will help certainly help people to understand. Plus we should convert the examples into tests so they are always run! On 2012-11-07, at 09:28, Stéphane Ducasse wrote: > >

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Max Leske
There is also no support for working copies (i.e. we track changes in the image at the moment but command-line Git won't know about it). That's the wrong repo Camillo :) Use the Filesystem-Git repository I pointed you to. Max On 07.11.2012, at 09:36, Camillo Bruni wrote: > We have a almost 1

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Camillo Bruni
On 2012-11-07, at 09:45, Max Leske wrote: > There is also no support for working copies (i.e. we track changes in the > image at the moment but command-line Git won't know about it). > > That's the wrong repo Camillo :) dammit! :D we should delete the old ones then, it's such a mess I never k

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Max Leske
Agreed. But we should make sure that we keep the old packages. Just to be sure. On 07.11.2012, at 09:46, Camillo Bruni wrote: > > On 2012-11-07, at 09:45, Max Leske wrote: > >> There is also no support for working copies (i.e. we track changes in the >> image at the moment but command-line

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread roberto.mine...@usi.ch
Hi Max, Thanks for pointing me in this direction. I tried to install what you proposed in a clean Pharo 1.4 image, but I got a MessageNotUnderstood: ByteString>>golferReferences. Any hint? Cheers, Roberto On Nov 7, 2012, at 9:35 AM, Max Leske wrote: > Hi Roberto > > Yes, there is, but it

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Damien Cassou
On Wed, Nov 7, 2012 at 10:08 AM, roberto.mine...@usi.ch wrote: > I tried to install what you proposed in a clean Pharo 1.4 image, > but I got a MessageNotUnderstood: ByteString>>golferReferences. you may try changing golferReferences to goferReferences -- Damien Cassou http://damiencassou.seasid

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Frank Shearar
On 7 November 2012 08:08, roberto.mine...@usi.ch wrote: > Hello, > > I need to access a Git repository programmatically from Pharo. > > Is there any API to work with Git working copies, access and manipulate > repositories programmatically? > > In short I need to checkout each revision of a proje

Re: [Pharo-project] Manifest integration update failing

2012-11-07 Thread Esteban Lorenzano
which issue are you trying to integrate? On Nov 7, 2012, at 12:00 AM, Camillo Bruni wrote: > how did the 20382 update work on the build server? > > If I try to update an older image I get a warning when > > ((Smalltalk at: #ConfigurationOfManifest) project version: #stable) > load. >

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Max Leske
Weird typo… Otherwise you can try this: 1. create a new Monticello repo with the following: MCHttpRepository location: 'http://ss3.gemstone.com/ss/FileSystem-Git' user: '' password: '' 2. open this repository and load the latest versions of F

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread roberto.mine...@usi.ch
Thanks Max, this worked. Now I'll look at the tutorial in the help page. Cheers, Roberto On Nov 7, 2012, at 10:59 AM, Max Leske wrote: > Weird typo… > > Otherwise you can try this: > 1. create a new Monticello repo with the following: > MCHttpRepository > location: 'http

Re: [Pharo-project] [Pharo-users] Pharo consortium agreement

2012-11-07 Thread Stéphane Ducasse
> >> These are part of the Pharo User Association. This is ready, too and will >> be announced the next days. > > Is the Association a member of the Consortium? It may if it decides to want it. But we will have to do all the work so that I'm not the president on the association anymore. And thi

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-07 Thread Stéphane Ducasse
+ 1 On Nov 7, 2012, at 9:43 AM, Camillo Bruni wrote: > Just copy paste the thing you posted in the NBBasicExamples and we're > done. A couple of examples which show common problems will help > certainly help people to understand. > > Plus we should convert the examples into tests so they are alw

Re: [Pharo-project] Manifest integration update failing

2012-11-07 Thread Stéphane Ducasse
On Nov 7, 2012, at 12:00 AM, Camillo Bruni wrote: > how did the 20382 update work on the build server? > > If I try to update an older image I get a warning when > > ((Smalltalk at: #ConfigurationOfManifest) project version: #stable) > load. probably it does not refer to the new locat

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Camillo Bruni
Another nice example is the GitFSCK reimplementation we did. Albeit a bit more complex it will show you how to traverse a repository and extract certain information. (so maybe look at that a bit later ;) On 2012-11-07, at 11:12, roberto.mine...@usi.ch wrote: > Thanks Max, this worked. > > Now

[Pharo-project] [update 2.0] #20383

2012-11-07 Thread Esteban Lorenzano
20383 - Issue 6921: Better handling of smart characters http://code.google.com/p/pharo/issues/detail?id=6921 Issue 6914: cleanUpForProduction is not unloading Metacello inf http://code.google.com/p/pharo/issues/detail?id=6914 Issue 6910: Nautilus e

[Pharo-project] SqueakSource Mails

2012-11-07 Thread Sven Van Caekenberghe
Guys, I am receiving hundreds of old commit emails from SqueakSource since the latest restart. This happened before as well. Is anybody else seeing this as well ? And can something be done about this ? Sven -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill

[Pharo-project] Cheating NB FFI ByteArray size

2012-11-07 Thread Mariano Martinez Peck
Hi Igor. I wonder if I can do the following. I have to pass a ByteArray to a function that expects an already malloced char*. So far it is working fine. Now...what I would like is from the image side to allocate a ByteArray of size + 4. I need to reserve the first 4 bytes of the ByteArray for somet

Re: [Pharo-project] Cheating NB FFI ByteArray size

2012-11-07 Thread Camillo Bruni
just never forget that we have a moving GC! ;) so directly passing references to native function can be quite dangerous! Otherwise you could first manually adjust the start address by writing the corresponding ASM code ;) then run the C callout. I should check if we already have a proper helper me

Re: [Pharo-project] Replace ByteArray with a smaller one

2012-11-07 Thread Camillo Bruni
if the chunks you wan to cut off are big enough you could potentially allocate a new object there which get's gc-ed. But I have no clue how to do that without VM / NB support ;) On 2012-11-07, at 14:39, Mariano Martinez Peck wrote: > Hi guys. I have a ByteArray of size N. > And I want now only

Re: [Pharo-project] [Pharo-consortium] Pharo consortium agreement

2012-11-07 Thread Norbert Hartl
So, what's best. Wait to finalize the form or print and send? Norbert Am 06.11.2012 um 17:24 schrieb Stéphane Ducasse : > Dear Pharoers > > Here is the result of the work we did around the consortium for Pharo for > about 2 years. We took into account all your remarks over the years > and we t

Re: [Pharo-project] SqueakSource Mails

2012-11-07 Thread Fabrizio Perin
Hi Sven, it happened to me too. not sure what the right solution is. It will eventually stop. what you can do is to unregister yourself from receiveing commit email notifications. Cheers, Fabrizio 2012/11/7 Sven Van Caekenberghe : > Guys, > > I am receiving hundreds of old commit emails from Squ

Re: [Pharo-project] SqueakSource Mails

2012-11-07 Thread Tobias Pape
Am 07.11.2012 um 14:03 schrieb Sven Van Caekenberghe: > Guys, > > I am receiving hundreds of old commit emails from SqueakSource since the > latest restart. This happened before as well. Is anybody else seeing this as > well ? And can something be done about this ? > > Sven I see them as wel

[Pharo-project] [Jenkins] Failing tests 2.0

2012-11-07 Thread Marcus Denker
Issue 6929: Undeclared ManifestManifestResourcesTests http://code.google.com/p/pharo/issues/detail?id=6929 Issue 6927: Failing test for Manifest http://code.google.com/p/pharo/issues/detail?id=6927 Issue 6928: Obsolete class after running all tests http://code

Re: [Pharo-project] [Pharo-consortium] Pharo consortium agreement

2012-11-07 Thread Stéphane Ducasse
> So, what's best. Wait to finalize the form or print and send? so far it will only be c instead of C so wait 2 more days and this is ok Stef > > Norbert > > Am 06.11.2012 um 17:24 schrieb Stéphane Ducasse : > >> Dear Pharoers >> >> Here is the result of the work we did around the consortium

[Pharo-project] Opening a serial Port with Pharo on Linux

2012-11-07 Thread Friedrich Dominicus
I'm stuck. I try to open a serial Port on Linux using Pharo. The code is as simple as: port := SerialPort new. portName := '/dev/ttyUSB0'. port openPort: portName. Now this opening fails for "whatever" reason. Anyway in the console I got the following "messages": PluggableTextMorph>>handleEdit

Re: [Pharo-project] Opening a serial Port with Pharo on Linux

2012-11-07 Thread Esteban Lorenzano
we fixed that with Luc in the sprint last friday :) problem was: 1) for linux, primitive openByName: was never implemented. 2) for OSX, all the plugin was never implemented, there was just a stub. So well, we implemented all of that, now... you need the latest VM build. but I'm afraid right no

Re: [Pharo-project] Opening a serial Port with Pharo on Linux

2012-11-07 Thread Luc Fabresse
Hi Friedrich, I did not test myself but I will soon. Since the Jenkins is down, you can found the latest VM (with the SerialPlugin modifications that Esteban did) in my dropbox: https://www.dropbox.com/sh/flx2cc8mjszhckg/uZ8sTxSB1k Luc #Luc 2012/11/7 Esteban Lorenzano > we fixed that wit

Re: [Pharo-project] [Pharo-consortium] Pharo consortium agreement

2012-11-07 Thread Stéphane Ducasse
Norbert after discussing with sophie, we will collect all details and produce a new version by beginning of new week. Stef On Nov 7, 2012, at 3:15 PM, Norbert Hartl wrote: > So, what's best. Wait to finalize the form or print and send? > > Norbert > > Am 06.11.2012 um 17:24 schrieb Stéphane

Re: [Pharo-project] Opening a serial Port with Pharo on Linux

2012-11-07 Thread Pavel Krivanek
Old workaround is to create symlink from /dev/ttyUSB0 to /dev/ttySx and open the port by number (x), not by the name. But use the fixed VM ;-) -- Pavel On Wed, Nov 7, 2012 at 3:54 PM, Friedrich Dominicus wrote: > I'm stuck. I try to open a serial Port on Linux using Pharo. > > The code is as sim

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread roberto.mine...@usi.ch
Hi Max, At the end of the day I managed to install and use FileSystem-Git. I was not able to run the quick start guide in the help browser, but i managed to run the ** Working with repositories ** guide. However, I encountered a weird error. Here are the steps to reproduce: 1. Clone an existin

[Pharo-project] MongoTalk public API changes

2012-11-07 Thread Francois Stephany
I've commited some changes to MongoTalk that change the public interface and the behavior of the driver. The queries are now made with a MongoQuery object. This simplifies the interaction between Mongo, MongoDatabase and MongoCollection. I've added support for ordering, limit and offset. There

Re: [Pharo-project] MongoTalk public API changes

2012-11-07 Thread Francois Stephany
I'd also like to move the repository from Squeaksource to http://ss3.gemstone.com, is that a problem for someone? -- http://tulipemoutarde.be +32 65 709 131 On 07/11/12 18:28, Francois Stephany wrote: I've commited some changes to MongoTalk that change the public interface and the behavior of

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Max Leske
I'll move this thread to the smalltalk-git mailing list and respond there. On 07.11.2012, at 17:35, roberto.mine...@usi.ch wrote: > Hi Max, > > At the end of the day I managed to install and use FileSystem-Git. > > I was not able to run the quick start guide in the help browser, but i > manag

[Pharo-project] Fixing the cmd+" with smart character => '

2012-11-07 Thread Stéphane Ducasse
Yes Ben I'm trying to fix this really strange behavior of smart characters :) Yes I want to be more productive so I'm fixing the glitches. Now this is funny without smartCharacter cmd+"+ shift + selection produces "selection" cmd+' + selection produces 'selection' so far

Re: [Pharo-project] Fixing the cmd+" with smart character => '

2012-11-07 Thread Stéphane Ducasse
On Nov 7, 2012, at 8:20 PM, Stéphane Ducasse wrote: > Yes Ben > I'm trying to fix this really strange behavior of smart characters :) > Yes I want to be more productive so I'm fixing the glitches. > > Now this is funny > without smartCharacter > > cmd+"+ shift + selection produces "

[Pharo-project] [update 2.0] #20384

2012-11-07 Thread Marcus Denker
20384 - Issue 6931: Command Line: load image update http://code.google.com/p/pharo/issues/detail?id=6931 Issue 6932: Repository not added to some packages http://code.google.com/p/pharo/issues/detail?id=6932 Diff information: http://ss3.gemstone.com/ss/Pharo2

[Pharo-project] [Jenkins] about Pharo ci infrastructure...

2012-11-07 Thread Marcus Denker
Hello, We are experiencing some stability issues with https://ci.lille.inria.fr/pharo/ But the good news is: people here have been busy, and there will be a completely new ci infrastructure soon. https://ci.inria.fr This is right now in Beta, so please do not yet request accounts witho

Re: [Pharo-project] unpacking cairo.tgz fails during VM build

2012-11-07 Thread Igor Stasenko
On 7 November 2012 14:26, Ciprian Teodorov wrote: > Hi guys, > > While trying to compile the NBCog vm on my MacOS machine I have found a > strange issue... I do not know if it comes from my machine configuration or > if it is more general than that... > Mainly after loading the cairo package the c

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Igor Stasenko
On 7 November 2012 06:23, Damien Cassou wrote: > On Wed, Nov 7, 2012 at 10:08 AM, roberto.mine...@usi.ch > wrote: >> I tried to install what you proposed in a clean Pharo 1.4 image, >> but I got a MessageNotUnderstood: ByteString>>golferReferences. > > you may try changing golferReferences to gof

Re: [Pharo-project] Git API for Pharo

2012-11-07 Thread Esteban A. Maringolo
Igor Stasenko wrote >> you may try changing golferReferences to goferReferences > n! keep golfer! i like the name :) +1 :) -- View this message in context: http://forum.world.st/Git-API-for-Pharo-tp4654219p4654383.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Re: [Pharo-project] [Jenkins] about Pharo ci infrastructure...

2012-11-07 Thread Igor Stasenko
This is really good news! I really like that INRIA pays attention to issues we having and takes into account our experience and input. This is, of course, what anyone would expect from any reasonable organization :) On 7 November 2012 17:02, Marcus Denker wrote: > Hello, > > We are experiencing s

Re: [Pharo-project] [Pharo-users] Pharo consortium agreement

2012-11-07 Thread Igor Stasenko
On 6 November 2012 15:36, Sven Van Caekenberghe wrote: > Very good that there is progress on this front ! > > Even better news about Igor ;-) > i always asking myself, if this horse worth its bets. Thank you, Stephane & others for putting trust in me more than i do :) > Indeed: thank you INRIA fo

Re: [Pharo-project] Replace ByteArray with a smaller one

2012-11-07 Thread Igor Stasenko
On 7 November 2012 11:11, Camillo Bruni wrote: > if the chunks you wan to cut off are big enough you could > potentially allocate a new object there which get's gc-ed. > yes.. actually you can 'crop' the existing object by modifying its size field (so VM will know it) and then for the rest bytes,

Re: [Pharo-project] NB integration

2012-11-07 Thread Igor Stasenko
On 2 November 2012 10:07, Esteban Lorenzano wrote: > pharo 2.0 will be "athens ready"... that means NB ready too :) > well, i actually thought that we ship "athens-ready" VMs first.. But as long as we want to put an Athens preview into image.. that will also mean having NB loaded into image. (he

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-07 Thread Igor Stasenko
sure sure.. but guys... i really doubt that i would want to see people poking with NB who don't even have a basic understanding of malloc(ed) memory management and working with memory buffers & pointers. For such sort of people, best what i can offer is "go back when you will learn basics first".

Re: [Pharo-project] Cheating NB FFI ByteArray size

2012-11-07 Thread Igor Stasenko
On 7 November 2012 11:09, Camillo Bruni wrote: > just never forget that we have a moving GC! ;) so directly passing references > to native function can be quite dangerous! > i hope LZ4 written in a good way, which doesn't requires you to keep a valid pointer to a buffer once it return(s) from LZ4

Re: [Pharo-project] Tips for efficient multi-serial handling

2012-11-07 Thread Igor Stasenko
Sorry, Udo, for quick response. I think you can do that with Pharo without polling. You just use semaphores (which directly signaled by OS+VM). I am not sure about if everything in VM (usb/midi /etc) uses non-blocking i/o out of the box, but if you really really want to hake it and ready to pay fo