Squeak and Tonel

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
39 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

EstebanLM
Hi, 

I’m so not wanting to be part of this discussion, but here I am. 
Just because it was mentioned my name in a way I consider inaccurate. 

On 17 Feb 2019, at 21:27, Eliot Miranda <[hidden email]> wrote:

Hi All, Hi Torsten, Hi Jakob,

On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
Hi,

as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].

In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues
with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).

Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel
repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System)
to Tonel format [3].

So I wonder about adoption of Tonel in Squeak land.

Any status/comments?

Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.

This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.

I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance”.

This is textually my answer (even with the English errors): 
… “Anyway the answer will be no :)
This was considered, and even the first implementation of tonel had it. Now, this was discarded because it does not works with git (or other file backends). It was not even me who complained first (as I said, I implemented it). It was Dale and other people used to work on git. 

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.
So, we drop it… and we add support for  the equivalent using the tool we use (iceberg gives you not just the author that modified last the method but all of them, along the history).

I hope is an understandable reason?”

And then in other mail of same thread I suggested an approach viable for squeak: 

"Now, what I’m sure is that if you are trying of using the 100% of Monticello and to use git just as another repository backend, it will not work (we already tried). It will consume far too much effort and you will finish beating the purpose of use git and a file-based-format, and you will be in the worst of two worlds :)

We started like that, and we ended up implementing Iceberg to take benefit of the tools we are using.

In the middle, there was/is gitfiletree. 
(I think I suggested you to look at it to adapt it for tonel and squeak).

Gitfiletree uses OSProcess to call git as external tool and it makes all the operations needed. “


Now, what I was suggesting was a way to use tonel backed with OSProcess (which works in squeak) instead backing it with libgit2 as us. 
Since they need the blame support, they could use OSProcess and external git for it.

Of course squeak (and any other dialect) are free to take tonel and adapt it to their needs (in fact, Mariano extended Tonel for VA specific things). 
And Pharo can read that format but it will ignore all extensions. 
Now, another problem is to WRITE: Pharo would write those packages in “pharo format” and that information would be lost. And in the case of VMMaker, if the idea is to be able to work on both sides, then Pharo needs to “honour” that format, it cannot just read it and ignore it later. So this creates an incompatibility that needs to be handled. 

Anyway, as you can see my answer was not “not under any circumstances”. Was “no, because is not convenient”.

Esteban



So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.

I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.

Here's the kind of crap people like Ducasse throw at me:

"Eliot 

At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have 
to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world 
of the “open” smalltalk VM. "

I am so over this crap.
_,,,^..^,,,_
best, Eliot



Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Jakob Reschke
In reply to this post by Levente Uzonyi
Yes, it is feasible like that, but not ideal. Not all of these packages are changed with every commit, so you would generate multiple consecutive MCVersions of a package with the unchanged contents in comparison to their immediate ancestor and a log message that does not pertain to the package at all.

Since Squot has already solved this once, the fundamental question is how much effort someone wants to invest to backport features to Monticello and whether the effort is desired and warranted. I've heard multiple voices that do not want to go back to Monticello. And I'm sure there are at least as many on the list that do not want to let it go. ;-) Side note: Squot uses the Monticello model for packages (i. e., MCSnapshot and MCPatch and their contents, and the loader facilities), but it does not use MCVersion or MCRepository.

In any case, you would need something to access the Git history and object database. In Pharo this is the libgit2 binding. In Squot it is FileSystem-Git, which could also be reused to write something for Monticello. But since it is coupled with FileSystem, the next discussion will be whether that should finally be adopted into Trunk, and if so in which form. Again, I've heard multiple proponents to make this move.

After that, the next problem will be that the current MCRepository hierarchy couples file formats and ancestry storage. In the case of Monticello-in-another-VCS, these are orthogonal: you can have FileTree layouts in Git, you can have Tonel layouts in Git, you could have both at the same time, you could have both in a different VCS in the future... So instead of a "FileTree"-Repository and a "Tonel"-Repository, I think there should rather be a "Git"-Repository that picks the correct readers and writers dynamically to process the files and directories in each commit. To make the smell more tangible: I think neither MCFileTreeRepository (or whathever its name actually is) nor TonelRepository should be subclasses of MCFileBasedRepository (they are today), although it sounds crazy.

Am Mo., 18. Feb. 2019 um 11:45 Uhr schrieb Levente Uzonyi <[hidden email]>:
On Mon, 18 Feb 2019, Jakob Reschke wrote:

> Am Mo., 18. Feb. 2019, 01:39 hat Levente Uzonyi <[hidden email]> geschrieben:
>
>       Is it a must to use Metacello to load code in Tonel format?
>       What does Metacello add to the mix?
>       Can't we just map each git commit to an mcz?
>
>       Levente
>
>
> Strictly speaking, Metacello is not required. But you would have to resolve the package dependencies yourself and gather them from external repositories, which is the main benefit of Metacello. So I
> understand that Eliot wants it to work.
>
> There is no mcz to map to. If one were to create a new kind of MCRepository that maps commits to MCVersions, you would have 0..* MCVersions per commit because each commit may touch multiple packages
> or none. Each commit describes a particular configuration of package versions, so one could generate an artificial MCConfiguration for each commit. Note that Squot / the Git Browser already supports
> these scenarios for FileTree repositories, albeit without using Monticello for the version control.

Looking at the repository in question[1], there seem to be multiple
packages stored in it[2]: BaselineOfScorch, Scorching, ScorchingDev,
ScorchingTests, ScorchingVMTests. My impression is that these could be
converted to individual mczs for each commit, which would mean that the
same code would be available as MC packages. Then you could load the code
with MC/Metacello/whatever from the .mczs.

Am I missing something?

Levente

[1] https://github.com/clementbera/Scorch
[2] https://github.com/clementbera/Scorch/tree/master/repository

>
>



Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Ben Coman
In reply to this post by Jakob Reschke


On Mon, 18 Feb 2019 at 05:34, Jakob Reschke <[hidden email]> wrote:

Personally, I am very fond of the use of Git instead of Monticello, but not convinced of Tonel so far. 

The key things that Tonel addressed for me is:
a. Windows FileTree often had problems with "path too long" due to long method names. These occur as semi-random failures when it works for some, and for others located in another path it fails.
b. Windows was very slow for many small files

cheers -ben


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Tobias Pape

> On 18.02.2019, at 14:48, Ben Coman <[hidden email]> wrote:
>
>
>
> On Mon, 18 Feb 2019 at 05:34, Jakob Reschke <[hidden email]> wrote:
>
> Personally, I am very fond of the use of Git instead of Monticello, but not convinced of Tonel so far.
>
> The key things that Tonel addressed for me is:
> a. Windows FileTree often had problems with "path too long" due to long method names. These occur as semi-random failures when it works for some, and for others located in another path it fails.
> b. Windows was very slow for many small files

My fix would be: Don't write to the disk.

Best regards
        -Tobias


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] VMMaker in Pharo [Was: Squeak and Tonel]

Nicolas Cellier
In reply to this post by Eliot Miranda-2
Hi Tudor,
Retrieving author and timestamp from git history is doable.
The question is whether it will be still possible to contribute thru MC or not.
If it is metadataless MC, there's no point, it's unusable.
I think that the minimal metadata we have to maintain is the last MC ancestor. This can be done by convention thru a .last_mc_ancestor file. Of course, there will be conflicts, but easy to (automatically) solve.
That could also lie in commit message, but is somehow a bit more fragile... it would mean scanning thru ancestry for getting such information.
By symmetry, merged agit sha should be in mc commit, either a specific file in mcz, or commit message.

Also note that vmmaker history as proposed in opensmalltalk pr was broken (no respect of branch topology). Maybe retry with Squot? 
There is still a problem of synching commits of other packages (cog, various plugins ...), and if nobody is working on it, we are condemned to a mediocre solution.
IMO, a broken history has not much interest.

The question is whether it is possible to come to acceptable compromise?

Le lun. 18 févr. 2019 à 07:33, Tudor Girba <[hidden email]> a écrit :
 
Hi Eliot,

You raise a few technical concerns related to VMMaker that seem addressable:

1. Rendering technology: Both in Pharo and in GT, there exist in-image canvases, Athens and Sparta respectively, that are backend independent. This allows us to have image-based drawing logic, like BitBlt or even better, the drawing capabilities that Juan Vuletich built in Morphic 3, transparently. In fact, we even started to look at the code from Morphic 3 and we think it’s not much effort to make it work behind Sparta. This would provide a complete solution that would not rely on any external libraries.

2. Git history. We used to have the author and timestamp in the metadata of Tonel but because it generated unwanted conflicts it was decided to remove it. I think this is a good decision and one based on the experience of using it. But, why do you think the algorithm of retrieving Git could not be made to work in Squeak? Is there a specific technical reason, or is it more that you do not see the effort being spent in this direction? I am asking to understand what could a possible solution be.


But, let’s take a step back. George and Andrei did move the VMMaker code, including all its history, into Git using (and enhancing) https://github.com/peteruhnak/git-migration.

The code is here:
https://github.com/feenkcom/opensmalltalk-vm/tree/pullrequest5/vmmaker

Our goal was to make the code loadable and runnable in Pharo through Git. We have a reproducible process to produce this history, and this means that we can also synchronize all changes from the Monticello VMMaker repository and produce a history-preserving Git repository.

The current code comes with a BaselineOfVMMaker that loads in Pharo, and the code generation seems to work to a good extent without much effort. There is still work that needs to be done especially on the simulation part, but we think most of it can be addressed through a Pharo-specific package that provides compatibility logic.

I see two benefits for doing this:
1. It allows people in Pharo to play with the VM within the Pharo context and consequently contribute.
2. It allows us to build an environment dedicated for VM development without affecting the current contribution process. We can judge later whether this is useful.

Cheers,
Doru


> On Feb 17, 2019, at 9:27 PM, Eliot Miranda <[hidden email]> wrote:
>
> Hi All, Hi Torsten, Hi Jakob,
>
> On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
> Hi,
>
> as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].
>
> In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues
> with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).
>
> Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel
> repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System)
> to Tonel format [3].
>
> So I wonder about adoption of Tonel in Squeak land.
>
> Any status/comments?
>
> Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.
>
> This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.
>
> I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance".
>
> So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.
>
> I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.
>
> Here's the kind of crap people like Ducasse throw at me:
>
> "Eliot
>
> At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
> because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have
> to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world
> of the “open” smalltalk VM. "
>
> I am so over this crap.
> _,,,^..^,,,_
> best, Eliot

--
www.feenk.com

“Software has no shape. Actually, it has no one shape. It has many."



Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] VMMaker in Pharo [Was: Squeak and Tonel]

Jakob Reschke
Am Mo., 18. Feb. 2019 um 15:12 Uhr schrieb Nicolas Cellier <[hidden email]>:

Also note that vmmaker history as proposed in opensmalltalk pr was broken (no respect of branch topology). Maybe retry with Squot? 

Note that the Tonel adapter for Squot is not finished yet. So you cannot try that "now".


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Levente Uzonyi
In reply to this post by Jakob Reschke
On Mon, 18 Feb 2019, Jakob Reschke wrote:

> Yes, it is feasible like that, but not ideal. Not all of these packages are changed with every commit, so you would generate multiple consecutive MCVersions of a package with the unchanged contents in
> comparison to their immediate ancestor and a log message that does not pertain to the package at all.

Well, that's just the question of writing the tool. It could easily detect
that some commit doesn't modify package X, so there's no need to create a
new version of it.

> Since Squot has already solved this once, the fundamental question is how much effort someone wants to invest to backport features to Monticello and whether the effort is desired and warranted. I've

That is indeed a question. It seemed to me that even if just temporarily,
having .mcz versions would solve Eliot's problem.

> heard multiple voices that do not want to go back to Monticello. And I'm sure there are at least as many on the list that do not want to let it go. ;-) Side note: Squot uses the Monticello model for
> packages (i. e., MCSnapshot and MCPatch and their contents, and the loader facilities), but it does not use MCVersion or MCRepository.

MC is far from perfect. It's a "quick hack". It doesn't scale well. And
there were bad design decisions made. But it still works, and many
toolchains rely on it, e.g. the Trunk or VMMaker.

>
> In any case, you would need something to access the Git history and object database. In Pharo this is the libgit2 binding. In Squot it is FileSystem-Git, which could also be reused to write something

What I had in my mind was a lot simpler: watch a repository for new
commits. When a new commit appears, fetch it, load the tonel code into an
image and create the new .mczs. Store the new .mczs in a repository.
Repeat.

> for Monticello. But since it is coupled with FileSystem, the next discussion will be whether that should finally be adopted into Trunk, and if so in which form. Again, I've heard multiple proponents
> to make this move.

I'm fine with moving to FileSystem, provided it is ready for production.
I see two possible ways to achieve that:
1. create a layer on top of FileSystem which works like FileDirectory,
then release it and deprecate it. :)
2. add FileSystem to the Trunk and gradually migrate all uses of
FileDirectory to it.

> After that, the next problem will be that the current MCRepository hierarchy couples file formats and ancestry storage. In the case of Monticello-in-another-VCS, these are orthogonal: you can have
> FileTree layouts in Git, you can have Tonel layouts in Git, you could have both at the same time, you could have both in a different VCS in the future... So instead of a "FileTree"-Repository and a
> "Tonel"-Repository, I think there should rather be a "Git"-Repository that picks the correct readers and writers dynamically to process the files and directories in each commit. To make the smell more
> tangible: I think neither MCFileTreeRepository (or whathever its name actually is) nor TonelRepository should be subclasses of MCFileBasedRepository (they are today), although it sounds crazy.

I don't think it is a good idea to mix MC and git at all. IMO we only
need tools to safely and reliably migrate from one to the other to start a
change.

Levente

>
> Am Mo., 18. Feb. 2019 um 11:45 Uhr schrieb Levente Uzonyi <[hidden email]>:
>       On Mon, 18 Feb 2019, Jakob Reschke wrote:
>
>       > Am Mo., 18. Feb. 2019, 01:39 hat Levente Uzonyi <[hidden email]> geschrieben:
>       >
>       >       Is it a must to use Metacello to load code in Tonel format?
>       >       What does Metacello add to the mix?
>       >       Can't we just map each git commit to an mcz?
>       >
>       >       Levente
>       >
>       >
>       > Strictly speaking, Metacello is not required. But you would have to resolve the package dependencies yourself and gather them from external repositories, which is the main benefit of
>       Metacello. So I
>       > understand that Eliot wants it to work.
>       >
>       > There is no mcz to map to. If one were to create a new kind of MCRepository that maps commits to MCVersions, you would have 0..* MCVersions per commit because each commit may touch
>       multiple packages
>       > or none. Each commit describes a particular configuration of package versions, so one could generate an artificial MCConfiguration for each commit. Note that Squot / the Git Browser
>       already supports
>       > these scenarios for FileTree repositories, albeit without using Monticello for the version control.
>
>       Looking at the repository in question[1], there seem to be multiple
>       packages stored in it[2]: BaselineOfScorch, Scorching, ScorchingDev,
>       ScorchingTests, ScorchingVMTests. My impression is that these could be
>       converted to individual mczs for each commit, which would mean that the
>       same code would be available as MC packages. Then you could load the code
>       with MC/Metacello/whatever from the .mczs.
>
>       Am I missing something?
>
>       Levente
>
>       [1] https://github.com/clementbera/Scorch
>       [2] https://github.com/clementbera/Scorch/tree/master/repository
>
>       >
>       >
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Eliot Miranda-2
In reply to this post by EstebanLM
Esteban,

On Mon, Feb 18, 2019 at 4:06 AM Esteban Lorenzano <[hidden email]> wrote:
Hi, 

I’m so not wanting to be part of this discussion, but here I am. 
Just because it was mentioned my name in a way I consider inaccurate. 

On 17 Feb 2019, at 21:27, Eliot Miranda <[hidden email]> wrote:

Hi All, Hi Torsten, Hi Jakob,

On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
Hi,

as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].

In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues
with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).

Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel
repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System)
to Tonel format [3].

So I wonder about adoption of Tonel in Squeak land.

Any status/comments?

Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.

This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.

I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance”.

This is textually my answer (even with the English errors): 
… “Anyway the answer will be no :)
This was considered, and even the first implementation of tonel had it. Now, this was discarded because it does not works with git (or other file backends). It was not even me who complained first (as I said, I implemented it). It was Dale and other people used to work on git. 

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.

How can this be true? Since a method's time stamp changes only when it is modified it will only produce a change where a method is changed.  I see no problem with this.

I do see the possibility of a bug in Pharo when it was using Monticello and timestamps though.  There was a time when you, Esteban, were contributing to VMMaker.oscog from Pharo and often there would be many changes where just the timestamp had changed.  SO the problem seems to be not with timestamps but with mismanagement of them.


So, we drop it… and we add support for  the equivalent using the tool we use (iceberg gives you not just the author that modified last the method but all of them, along the history).

Who is we?  I ask from a different perspective.  I ask not too have Pharo use it but to allow Squeak to use it so that I can have timestamps for Squerask and still use Tonel.  But still "“Anyway the answer will be no :)".

So, your first statement is false.  If things are correct there will *not* be massive generation of conflicts when there is no reason.  Second, I am not asking you to change Tonel in Pharo.  i am only asking you to allow Tonel to support timestamps in systems that want to use it.


I hope is an understandable reason?”

And then in other mail of same thread I suggested an approach viable for squeak: 

"Now, what I’m sure is that if you are trying of using the 100% of Monticello and to use git just as another repository backend, it will not work (we already tried). It will consume far too much effort and you will finish beating the purpose of use git and a file-based-format, and you will be in the worst of two worlds :)

We started like that, and we ended up implementing Iceberg to take benefit of the tools we are using.

In the middle, there was/is gitfiletree. 
(I think I suggested you to look at it to adapt it for tonel and squeak).

Gitfiletree uses OSProcess to call git as external tool and it makes all the operations needed. “


Now, what I was suggesting was a way to use tonel backed with OSProcess (which works in squeak) instead backing it with libgit2 as us. 
Since they need the blame support, they could use OSProcess and external git for it.

Of course squeak (and any other dialect) are free to take tonel and adapt it to their needs (in fact, Mariano extended Tonel for VA specific things). 
And Pharo can read that format but it will ignore all extensions. 
Now, another problem is to WRITE: Pharo would write those packages in “pharo format” and that information would be lost. And in the case of VMMaker, if the idea is to be able to work on both sides, then Pharo needs to “honour” that format, it cannot just read it and ignore it later. So this creates an incompatibility that needs to be handled. 

Anyway, as you can see my answer was not “not under any circumstances”. Was “no, because is not convenient”.

It was still no.  And my request was clear.  I asked if you would allow Tonel to support timestamps, not that Pharo would use timestamps.  This avoids forking Tonel, which I see as essential (it is essential that Tonel *not* fork) for Tonel to be a format that can serve as an interchange between Squeak and Pharo.


Esteban



So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.

I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.

Here's the kind of crap people like Ducasse throw at me:

"Eliot 

At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have 
to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world 
of the “open” smalltalk VM. "

I am so over this crap.
_,,,^..^,,,_
best, Eliot



--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Jakob Reschke
Hi Eliot,

Am Mo., 18. Feb. 2019 um 18:34 Uhr schrieb Eliot Miranda <[hidden email]>:
Esteban,

On Mon, Feb 18, 2019 at 4:06 AM Esteban Lorenzano <[hidden email]> wrote:

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.

How can this be true? Since a method's time stamp changes only when it is modified it will only produce a change where a method is changed.  I see no problem with this.

When two people's changes to the same method are merged with Git (or on GitHub for that matter) there will be a conflict at the line that contains the timestamp. Even if the method source could be merged conflict-free. Moreover, none of the two original timestamps will be accurate for the merged version of the method, so in fact there *must* be a conflict. This is only alleviated by performing the merge in the IDE where a new timestamp could be generated for the merged method. For otherwise clean merges, this is probably unacceptable for people that just want to press the "merge" button on a pull request.
 

And Pharo can read that format but it will ignore all extensions. 
Now, another problem is to WRITE: Pharo would write those packages in “pharo format” and that information would be lost. And in the case of VMMaker, if the idea is to be able to work on both sides, then Pharo needs to “honour” that format, it cannot just read it and ignore it later. So this creates an incompatibility that needs to be handled. 

This is the reason why Pharo cannot just "not use" timestamps and yet support them. Every Pharo user on the team would eliminate the timestamps that the Squeak team members committed. Except if Pharo would allow to carry the existing timestamps around in the code model for Squeak, but it sounds like they are not willing to do that, are they?


Anyway, as you can see my answer was not “not under any circumstances”. Was “no, because is not convenient”.

It was still no.  And my request was clear.  I asked if you would allow Tonel to support timestamps, not that Pharo would use timestamps.  This avoids forking Tonel, which I see as essential (it is essential that Tonel *not* fork) for Tonel to be a format that can serve as an interchange between Squeak and Pharo.

Kind regards,
Jakob

PS. Note that I am not on pharo-dev and do not wish to subscribe for just one thread, so I had to omit them from CC.


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Ben Coman
In reply to this post by Eliot Miranda-2


On Tue, 19 Feb 2019 at 01:34, Eliot Miranda <[hidden email]> wrote:
Esteban,

On Mon, Feb 18, 2019 at 4:06 AM Esteban Lorenzano <[hidden email]> wrote:
Hi, 

I’m so not wanting to be part of this discussion, but here I am. 
Just because it was mentioned my name in a way I consider inaccurate. 

On 17 Feb 2019, at 21:27, Eliot Miranda <[hidden email]> wrote:

Hi All, Hi Torsten, Hi Jakob,

On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
Hi,

as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].

In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues
with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).

Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel
repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System)
to Tonel format [3].

So I wonder about adoption of Tonel in Squeak land.

Any status/comments?

Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.

This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.

I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance”.

This is textually my answer (even with the English errors): 
… “Anyway the answer will be no :)
This was considered, and even the first implementation of tonel had it. Now, this was discarded because it does not works with git (or other file backends). It was not even me who complained first (as I said, I implemented it). It was Dale and other people used to work on git. 

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.

How can this be true? Since a method's time stamp changes only when it is modified it will only produce a change where a method is changed.  I see no problem with this.

This is a case of the difference between theory and practice :)
 

I do see the possibility of a bug in Pharo when it was using Monticello and timestamps though. 

When I heard of this timestamp conflict problem I began with the same belief to do some digging (and you know how I dig deep into things)
with git-only command line experiments and ended up finding its really true.  I'll try to remember some examples.

cheers -ben


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

EstebanLM
In reply to this post by Eliot Miranda-2
Still that’s not the point. 
Not having an agreement is very different that the behaviour you described about me (and that to justify your own actions).
You presented my opposition as it would have been “just because” and I presented you my arguments. Even more, I *was* trying to find a solution.
I can be right or wrong, but I’m not an idiot trying to be more than I am. 
Honestly, discussing with you many times feels like it is “my way or the highway”, and it’s hard to follow you :(

Esteban

On 18 Feb 2019, at 18:34, Eliot Miranda <[hidden email]> wrote:

Esteban,

On Mon, Feb 18, 2019 at 4:06 AM Esteban Lorenzano <[hidden email]> wrote:
Hi, 

I’m so not wanting to be part of this discussion, but here I am. 
Just because it was mentioned my name in a way I consider inaccurate. 

On 17 Feb 2019, at 21:27, Eliot Miranda <[hidden email]> wrote:

Hi All, Hi Torsten, Hi Jakob,

On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
Hi,

as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].

In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues 
with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).

Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel 
repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System) 
to Tonel format [3].

So I wonder about adoption of Tonel in Squeak land. 

Any status/comments?

Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.

This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.

I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance”.

This is textually my answer (even with the English errors): 
… “Anyway the answer will be no :)
This was considered, and even the first implementation of tonel had it. Now, this was discarded because it does not works with git (or other file backends). It was not even me who complained first (as I said, I implemented it). It was Dale and other people used to work on git. 

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.

How can this be true? Since a method's time stamp changes only when it is modified it will only produce a change where a method is changed.  I see no problem with this.

I do see the possibility of a bug in Pharo when it was using Monticello and timestamps though.  There was a time when you, Esteban, were contributing to VMMaker.oscog from Pharo and often there would be many changes where just the timestamp had changed.  SO the problem seems to be not with timestamps but with mismanagement of them.


So, we drop it… and we add support for  the equivalent using the tool we use (iceberg gives you not just the author that modified last the method but all of them, along the history).

Who is we?  I ask from a different perspective.  I ask not too have Pharo use it but to allow Squeak to use it so that I can have timestamps for Squerask and still use Tonel.  But still "“Anyway the answer will be no :)".

So, your first statement is false.  If things are correct there will *not* be massive generation of conflicts when there is no reason.  Second, I am not asking you to change Tonel in Pharo.  i am only asking you to allow Tonel to support timestamps in systems that want to use it.


I hope is an understandable reason?”

And then in other mail of same thread I suggested an approach viable for squeak: 

"Now, what I’m sure is that if you are trying of using the 100% of Monticello and to use git just as another repository backend, it will not work (we already tried). It will consume far too much effort and you will finish beating the purpose of use git and a file-based-format, and you will be in the worst of two worlds :)

We started like that, and we ended up implementing Iceberg to take benefit of the tools we are using.

In the middle, there was/is gitfiletree. 
(I think I suggested you to look at it to adapt it for tonel and squeak).

Gitfiletree uses OSProcess to call git as external tool and it makes all the operations needed. “


Now, what I was suggesting was a way to use tonel backed with OSProcess (which works in squeak) instead backing it with libgit2 as us. 
Since they need the blame support, they could use OSProcess and external git for it.

Of course squeak (and any other dialect) are free to take tonel and adapt it to their needs (in fact, Mariano extended Tonel for VA specific things). 
And Pharo can read that format but it will ignore all extensions. 
Now, another problem is to WRITE: Pharo would write those packages in “pharo format” and that information would be lost. And in the case of VMMaker, if the idea is to be able to work on both sides, then Pharo needs to “honour” that format, it cannot just read it and ignore it later. So this creates an incompatibility that needs to be handled. 

Anyway, as you can see my answer was not “not under any circumstances”. Was “no, because is not convenient”.

It was still no.  And my request was clear.  I asked if you would allow Tonel to support timestamps, not that Pharo would use timestamps.  This avoids forking Tonel, which I see as essential (it is essential that Tonel *not* fork) for Tonel to be a format that can serve as an interchange between Squeak and Pharo.


Esteban



So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.

I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.

Here's the kind of crap people like Ducasse throw at me:

"Eliot 

At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have 
to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world 
of the “open” smalltalk VM. "

I am so over this crap.
_,,,^..^,,,_
best, Eliot



-- 
_,,,^..^,,,_
best, Eliot



Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Chris Muller-3
In reply to this post by Levente Uzonyi
> > In any case, you would need something to access the Git history and object database. In Pharo this is the libgit2 binding. In Squot it is FileSystem-Git, which could also be reused to write something
>
> What I had in my mind was a lot simpler: watch a repository for new
> commits. When a new commit appears, fetch it, load the tonel code into an
> image and create the new .mczs. Store the new .mczs in a repository.
> Repeat.
>
> > for Monticello. But since it is coupled with FileSystem, the next discussion will be whether that should finally be adopted into Trunk, and if so in which form. Again, I've heard multiple proponents
> > to make this move.
>
> I'm fine with moving to FileSystem, provided it is ready for production.
> I see two possible ways to achieve that:
> 1. create a layer on top of FileSystem which works like FileDirectory,
> then release it and deprecate it. :)

That's backwards.  FileDirectory is the smaller, faster, lower-level,
more-utilitarian framework.  FileSystem is a "boutique" domain and
framework with powerful high-level capabilities, but suffers from a
performance-killing design issue.  So it'd probably make more sense
for FileSystem use FileDirectory as its "primitive", and then we can
simply keep FileDirectory around as-is for legacy apps.

> 2. add FileSystem to the Trunk and gradually migrate all uses of
> FileDirectory to it.

This would be asking virtually every app to do a similar migration.
All because of Squot?

3.  Port Squot to use FileDirectory.

4.  Don't port anything.  Side-by-side existence.  People who need
Squot simply load Filesystem too.

> > After that, the next problem will be that the current MCRepository hierarchy couples file formats and ancestry storage. In the case of Monticello-in-another-VCS, these are orthogonal: you can have
> > FileTree layouts in Git, you can have Tonel layouts in Git, you could have both at the same time, you could have both in a different VCS in the future... So instead of a "FileTree"-Repository and a
> > "Tonel"-Repository, I think there should rather be a "Git"-Repository that picks the correct readers and writers dynamically to process the files and directories in each commit. To make the smell more
> > tangible: I think neither MCFileTreeRepository (or whathever its name actually is) nor TonelRepository should be subclasses of MCFileBasedRepository (they are today), although it sounds crazy.
>
> I don't think it is a good idea to mix MC and git at all. IMO we only
> need tools to safely and reliably migrate from one to the other to start a
> change.
>
> Levente
>
> >
> > Am Mo., 18. Feb. 2019 um 11:45 Uhr schrieb Levente Uzonyi <[hidden email]>:
> >       On Mon, 18 Feb 2019, Jakob Reschke wrote:
> >
> >       > Am Mo., 18. Feb. 2019, 01:39 hat Levente Uzonyi <[hidden email]> geschrieben:
> >       >
> >       >       Is it a must to use Metacello to load code in Tonel format?
> >       >       What does Metacello add to the mix?
> >       >       Can't we just map each git commit to an mcz?
> >       >
> >       >       Levente
> >       >
> >       >
> >       > Strictly speaking, Metacello is not required. But you would have to resolve the package dependencies yourself and gather them from external repositories, which is the main benefit of
> >       Metacello. So I
> >       > understand that Eliot wants it to work.
> >       >
> >       > There is no mcz to map to. If one were to create a new kind of MCRepository that maps commits to MCVersions, you would have 0..* MCVersions per commit because each commit may touch
> >       multiple packages
> >       > or none. Each commit describes a particular configuration of package versions, so one could generate an artificial MCConfiguration for each commit. Note that Squot / the Git Browser
> >       already supports
> >       > these scenarios for FileTree repositories, albeit without using Monticello for the version control.
> >
> >       Looking at the repository in question[1], there seem to be multiple
> >       packages stored in it[2]: BaselineOfScorch, Scorching, ScorchingDev,
> >       ScorchingTests, ScorchingVMTests. My impression is that these could be
> >       converted to individual mczs for each commit, which would mean that the
> >       same code would be available as MC packages. Then you could load the code
> >       with MC/Metacello/whatever from the .mczs.
> >
> >       Am I missing something?
> >
> >       Levente
> >
> >       [1] https://github.com/clementbera/Scorch
> >       [2] https://github.com/clementbera/Scorch/tree/master/repository
> >
> >       >
> >       >
> >
> >
> >

Reply | Threaded
Open this post in threaded view
|

Re: VMMaker in Pharo [Was: Squeak and Tonel]

Eliot Miranda-2
In reply to this post by Eliot Miranda-2
Doru,

On Sun, Feb 17, 2019 at 10:33 PM Tudor Girba <[hidden email]> wrote:
Hi Eliot,

You raise a few technical concerns related to VMMaker that seem addressable:

1. Rendering technology: Both in Pharo and in GT, there exist in-image canvases, Athens and Sparta respectively, that are backend independent. This allows us to have image-based drawing logic, like BitBlt or even better, the drawing capabilities that Juan Vuletich built in Morphic 3, transparently. In fact, we even started to look at the code from Morphic 3 and we think it’s not much effort to make it work behind Sparta. This would provide a complete solution that would not rely on any external libraries.

2. Git history. We used to have the author and timestamp in the metadata of Tonel but because it generated unwanted conflicts it was decided to remove it. I think this is a good decision and one based on the experience of using it. But, why do you think the algorithm of retrieving Git could not be made to work in Squeak? Is there a specific technical reason, or is it more that you do not see the effort being spent in this direction? I am asking to understand what could a possible solution be.


But, let’s take a step back. George and Andrei did move the VMMaker code, including all its history, into Git using (and enhancing) https://github.com/peteruhnak/git-migration.

The code is here:
https://github.com/feenkcom/opensmalltalk-vm/tree/pullrequest5/vmmaker

Our goal was to make the code loadable and runnable in Pharo through Git. We have a reproducible process to produce this history, and this means that we can also synchronize all changes from the Monticello VMMaker repository and produce a history-preserving Git repository.

The current code comes with a BaselineOfVMMaker that loads in Pharo, and the code generation seems to work to a good extent without much effort. There is still work that needs to be done especially on the simulation part, but we think most of it can be addressed through a Pharo-specific package that provides compatibility logic.

I see two benefits for doing this:
1. It allows people in Pharo to play with the VM within the Pharo context and consequently contribute.
2. It allows us to build an environment dedicated for VM development without affecting the current contribution process. We can judge later whether this is useful.

All this is great work.  But I cannot use it until I can also function in Squeak.  I know you want me to move to Pharo, but I am not convinced that it is a safe place for me to land.  I have voiced my concerns before (stability, moving away from support I need (e.g. Pharo dropping read./write file streams is the latest example).  Let me simply restate that "t6he devil you know is better than the devil you don't", and that I know I am productive with VMMaker in Squeak, but I *do not* know that I can be productive in Pharo (in fact, I have lots of experience of the contrary).  So I will not move to Pharo any time soon and so, until there is a solution to git/tonel/squeak integration I cannot join the unified repository, must as I would like to.

I'm sorry for the frustration this causes other.  I am radical in some things, but deeply conservative in others.  And my ability to be productive is obviously foundational.


Cheers,
Doru


> On Feb 17, 2019, at 9:27 PM, Eliot Miranda <[hidden email]> wrote:
>
> Hi All, Hi Torsten, Hi Jakob,
>
> On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
> Hi,
>
> as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].
>
> In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues
> with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).
>
> Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel
> repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System)
> to Tonel format [3].
>
> So I wonder about adoption of Tonel in Squeak land.
>
> Any status/comments?
>
> Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.
>
> This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.
>
> I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance".
>
> So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.
>
> I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.
>
> Here's the kind of crap people like Ducasse throw at me:
>
> "Eliot
>
> At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
> because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have
> to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world
> of the “open” smalltalk VM. "
>
> I am so over this crap.
> _,,,^..^,,,_
> best, Eliot

--
www.feenk.com

“Software has no shape. Actually, it has no one shape. It has many."



--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Eliot Miranda-2
In reply to this post by Chris Muller-3
Hi Chris,

On Mon, Feb 18, 2019 at 10:53 AM Chris Muller <[hidden email]> wrote:
> > In any case, you would need something to access the Git history and object database. In Pharo this is the libgit2 binding. In Squot it is FileSystem-Git, which could also be reused to write something
>
> What I had in my mind was a lot simpler: watch a repository for new
> commits. When a new commit appears, fetch it, load the tonel code into an
> image and create the new .mczs. Store the new .mczs in a repository.
> Repeat.
>
> > for Monticello. But since it is coupled with FileSystem, the next discussion will be whether that should finally be adopted into Trunk, and if so in which form. Again, I've heard multiple proponents
> > to make this move.
>
> I'm fine with moving to FileSystem, provided it is ready for production.
> I see two possible ways to achieve that:
> 1. create a layer on top of FileSystem which works like FileDirectory,
> then release it and deprecate it. :)

That's backwards.  FileDirectory is the smaller, faster, lower-level,
more-utilitarian framework.  FileSystem is a "boutique" domain and
framework with powerful high-level capabilities, but suffers from a
performance-killing design issue.  So it'd probably make more sense
for FileSystem use FileDirectory as its "primitive", and then we can
simply keep FileDirectory around as-is for legacy apps.

I disagree. FIleDirectory is an obsolete mess.  FileSystem is a well designed, modern alternative, designed by a Squeaker (Colin).  I would much rather see FileSystem as the foundation.
 

> 2. add FileSystem to the Trunk and gradually migrate all uses of
> FileDirectory to it.

This would be asking virtually every app to do a similar migration.
All because of Squot?

3.  Port Squot to use FileDirectory.

4.  Don't port anything.  Side-by-side existence.  People who need
Squot simply load Filesystem too.

> > After that, the next problem will be that the current MCRepository hierarchy couples file formats and ancestry storage. In the case of Monticello-in-another-VCS, these are orthogonal: you can have
> > FileTree layouts in Git, you can have Tonel layouts in Git, you could have both at the same time, you could have both in a different VCS in the future... So instead of a "FileTree"-Repository and a
> > "Tonel"-Repository, I think there should rather be a "Git"-Repository that picks the correct readers and writers dynamically to process the files and directories in each commit. To make the smell more
> > tangible: I think neither MCFileTreeRepository (or whathever its name actually is) nor TonelRepository should be subclasses of MCFileBasedRepository (they are today), although it sounds crazy.
>
> I don't think it is a good idea to mix MC and git at all. IMO we only
> need tools to safely and reliably migrate from one to the other to start a
> change.
>
> Levente
>
> >
> > Am Mo., 18. Feb. 2019 um 11:45 Uhr schrieb Levente Uzonyi <[hidden email]>:
> >       On Mon, 18 Feb 2019, Jakob Reschke wrote:
> >
> >       > Am Mo., 18. Feb. 2019, 01:39 hat Levente Uzonyi <[hidden email]> geschrieben:
> >       >
> >       >       Is it a must to use Metacello to load code in Tonel format?
> >       >       What does Metacello add to the mix?
> >       >       Can't we just map each git commit to an mcz?
> >       >
> >       >       Levente
> >       >
> >       >
> >       > Strictly speaking, Metacello is not required. But you would have to resolve the package dependencies yourself and gather them from external repositories, which is the main benefit of
> >       Metacello. So I
> >       > understand that Eliot wants it to work.
> >       >
> >       > There is no mcz to map to. If one were to create a new kind of MCRepository that maps commits to MCVersions, you would have 0..* MCVersions per commit because each commit may touch
> >       multiple packages
> >       > or none. Each commit describes a particular configuration of package versions, so one could generate an artificial MCConfiguration for each commit. Note that Squot / the Git Browser
> >       already supports
> >       > these scenarios for FileTree repositories, albeit without using Monticello for the version control.
> >
> >       Looking at the repository in question[1], there seem to be multiple
> >       packages stored in it[2]: BaselineOfScorch, Scorching, ScorchingDev,
> >       ScorchingTests, ScorchingVMTests. My impression is that these could be
> >       converted to individual mczs for each commit, which would mean that the
> >       same code would be available as MC packages. Then you could load the code
> >       with MC/Metacello/whatever from the .mczs.
> >
> >       Am I missing something?
> >
> >       Levente
> >
> >       [1] https://github.com/clementbera/Scorch
> >       [2] https://github.com/clementbera/Scorch/tree/master/repository
> >
> >       >
> >       >
> >
> >
> >



--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

EstebanLM
In reply to this post by EstebanLM
Fair enough. 
I should not have step in this discussion.

Esteban

On 18 Feb 2019, at 19:48, Eliot Miranda <[hidden email]> wrote:

Esteban,

On Mon, Feb 18, 2019 at 10:37 AM Esteban Lorenzano <[hidden email]> wrote:
Still that’s not the point. 
Not having an agreement is very different that the behaviour you described about me (and that to justify your own actions).
You presented my opposition as it would have been “just because” and I presented you my arguments. Even more, I *was* trying to find a solution.
I can be right or wrong, but I’m not an idiot trying to be more than I am. 
Honestly, discussing with you many times feels like it is “my way or the highway”, and it’s hard to follow you :(

I am not trying to force my way.  I am trying to find a way that works for me.  I asked you to support an option in Tonel.  I did not ask you8 to change they way Pharo uses Tonel. You can choose to read my request as some kind of threat, or you can choose to read it as a straightforward request.  I am not trying to get you to follow me.

I am frustrated at being mistrusted.  I have not asked you to follow me.  I have tried to work with you.  But you don't trust me.

I have done everything I can in the VM (let's ignore source code control and building for now) to support Pharo.  I have done *nothing* to interfere with Pharo's use of the VM in the code base itself.  have I?  Point to actions I have taken, code I have written to try and harm you.

We now have a situation where we support differences in the code base (FilePlugin API, command line argument parsing, version printing) that extend *those I put in at the beginning to support differences* (such as plugins.ext and plugins.int to allow builders to configure the VM as they choose).  Where have I tried to block Pharo?

But you left vm-dev.  You decided to stop communicating.  And now you continue to describe a straight-forward request to allow an optional behavior in  Tonel with a flat refusal, plus some BS about me trying to insist that you follow me.

I don't understand Esteban.  You and I do not communicate.  I feel that you top not want to work with me, that you dislike and distrust me.  I cannot work with you.  I have tried for years and we are still in difference and disagreement.


Esteban

On 18 Feb 2019, at 18:34, Eliot Miranda <[hidden email]> wrote:

Esteban,

On Mon, Feb 18, 2019 at 4:06 AM Esteban Lorenzano <[hidden email]> wrote:
Hi, 

I’m so not wanting to be part of this discussion, but here I am. 
Just because it was mentioned my name in a way I consider inaccurate. 

On 17 Feb 2019, at 21:27, Eliot Miranda <[hidden email]> wrote:

Hi All, Hi Torsten, Hi Jakob,

On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
Hi,

as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].

In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues 
with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).

Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel 
repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System) 
to Tonel format [3].

So I wonder about adoption of Tonel in Squeak land. 

Any status/comments?

Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.

This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.

I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance”.

This is textually my answer (even with the English errors): 
… “Anyway the answer will be no :)
This was considered, and even the first implementation of tonel had it. Now, this was discarded because it does not works with git (or other file backends). It was not even me who complained first (as I said, I implemented it). It was Dale and other people used to work on git. 

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.

How can this be true? Since a method's time stamp changes only when it is modified it will only produce a change where a method is changed.  I see no problem with this.

I do see the possibility of a bug in Pharo when it was using Monticello and timestamps though.  There was a time when you, Esteban, were contributing to VMMaker.oscog from Pharo and often there would be many changes where just the timestamp had changed.  SO the problem seems to be not with timestamps but with mismanagement of them.


So, we drop it… and we add support for  the equivalent using the tool we use (iceberg gives you not just the author that modified last the method but all of them, along the history).

Who is we?  I ask from a different perspective.  I ask not too have Pharo use it but to allow Squeak to use it so that I can have timestamps for Squerask and still use Tonel.  But still "“Anyway the answer will be no :)".

So, your first statement is false.  If things are correct there will *not* be massive generation of conflicts when there is no reason.  Second, I am not asking you to change Tonel in Pharo.  i am only asking you to allow Tonel to support timestamps in systems that want to use it.


I hope is an understandable reason?”

And then in other mail of same thread I suggested an approach viable for squeak: 

"Now, what I’m sure is that if you are trying of using the 100% of Monticello and to use git just as another repository backend, it will not work (we already tried). It will consume far too much effort and you will finish beating the purpose of use git and a file-based-format, and you will be in the worst of two worlds :)

We started like that, and we ended up implementing Iceberg to take benefit of the tools we are using.

In the middle, there was/is gitfiletree. 
(I think I suggested you to look at it to adapt it for tonel and squeak).

Gitfiletree uses OSProcess to call git as external tool and it makes all the operations needed. “


Now, what I was suggesting was a way to use tonel backed with OSProcess (which works in squeak) instead backing it with libgit2 as us. 
Since they need the blame support, they could use OSProcess and external git for it.

Of course squeak (and any other dialect) are free to take tonel and adapt it to their needs (in fact, Mariano extended Tonel for VA specific things). 
And Pharo can read that format but it will ignore all extensions. 
Now, another problem is to WRITE: Pharo would write those packages in “pharo format” and that information would be lost. And in the case of VMMaker, if the idea is to be able to work on both sides, then Pharo needs to “honour” that format, it cannot just read it and ignore it later. So this creates an incompatibility that needs to be handled. 

Anyway, as you can see my answer was not “not under any circumstances”. Was “no, because is not convenient”.

It was still no.  And my request was clear.  I asked if you would allow Tonel to support timestamps, not that Pharo would use timestamps.  This avoids forking Tonel, which I see as essential (it is essential that Tonel *not* fork) for Tonel to be a format that can serve as an interchange between Squeak and Pharo.


Esteban



So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.

I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.

Here's the kind of crap people like Ducasse throw at me:

"Eliot 

At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have 
to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world 
of the “open” smalltalk VM. "

I am so over this crap.
_,,,^..^,,,_
best, Eliot



-- 
_,,,^..^,,,_
best, Eliot



-- 
_,,,^..^,,,_
best, Eliot



Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Eliot Miranda-2


On Mon, Feb 18, 2019 at 11:02 AM Esteban Lorenzano <[hidden email]> wrote:
Fair enough. 
I should not have step in this discussion.

Again, your response is to withdraw and not to engage.  I am trying too be honest about my feelings and about the issues.  Why don't you try and do the same?  Why do you always try and withdraw?
 

Why do you top post emotionally and run away from a real problem that affects both of us?  I do not understand this pattern Esteban.  I am not trying to hurt you.


Esteban

On 18 Feb 2019, at 19:48, Eliot Miranda <[hidden email]> wrote:

Esteban,

On Mon, Feb 18, 2019 at 10:37 AM Esteban Lorenzano <[hidden email]> wrote:
Still that’s not the point. 
Not having an agreement is very different that the behaviour you described about me (and that to justify your own actions).
You presented my opposition as it would have been “just because” and I presented you my arguments. Even more, I *was* trying to find a solution.
I can be right or wrong, but I’m not an idiot trying to be more than I am. 
Honestly, discussing with you many times feels like it is “my way or the highway”, and it’s hard to follow you :(

I am not trying to force my way.  I am trying to find a way that works for me.  I asked you to support an option in Tonel.  I did not ask you8 to change they way Pharo uses Tonel. You can choose to read my request as some kind of threat, or you can choose to read it as a straightforward request.  I am not trying to get you to follow me.

I am frustrated at being mistrusted.  I have not asked you to follow me.  I have tried to work with you.  But you don't trust me.

I have done everything I can in the VM (let's ignore source code control and building for now) to support Pharo.  I have done *nothing* to interfere with Pharo's use of the VM in the code base itself.  have I?  Point to actions I have taken, code I have written to try and harm you.

We now have a situation where we support differences in the code base (FilePlugin API, command line argument parsing, version printing) that extend *those I put in at the beginning to support differences* (such as plugins.ext and plugins.int to allow builders to configure the VM as they choose).  Where have I tried to block Pharo?

But you left vm-dev.  You decided to stop communicating.  And now you continue to describe a straight-forward request to allow an optional behavior in  Tonel with a flat refusal, plus some BS about me trying to insist that you follow me.

I don't understand Esteban.  You and I do not communicate.  I feel that you top not want to work with me, that you dislike and distrust me.  I cannot work with you.  I have tried for years and we are still in difference and disagreement.


Esteban

On 18 Feb 2019, at 18:34, Eliot Miranda <[hidden email]> wrote:

Esteban,

On Mon, Feb 18, 2019 at 4:06 AM Esteban Lorenzano <[hidden email]> wrote:
Hi, 

I’m so not wanting to be part of this discussion, but here I am. 
Just because it was mentioned my name in a way I consider inaccurate. 

On 17 Feb 2019, at 21:27, Eliot Miranda <[hidden email]> wrote:

Hi All, Hi Torsten, Hi Jakob,

On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
Hi,

as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].

In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues 
with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).

Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel 
repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System) 
to Tonel format [3].

So I wonder about adoption of Tonel in Squeak land. 

Any status/comments?

Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.

This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.

I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance”.

This is textually my answer (even with the English errors): 
… “Anyway the answer will be no :)
This was considered, and even the first implementation of tonel had it. Now, this was discarded because it does not works with git (or other file backends). It was not even me who complained first (as I said, I implemented it). It was Dale and other people used to work on git. 

Thing is,  putting timestamps it will generate conflicts massively when there is no reason to it.

How can this be true? Since a method's time stamp changes only when it is modified it will only produce a change where a method is changed.  I see no problem with this.

I do see the possibility of a bug in Pharo when it was using Monticello and timestamps though.  There was a time when you, Esteban, were contributing to VMMaker.oscog from Pharo and often there would be many changes where just the timestamp had changed.  SO the problem seems to be not with timestamps but with mismanagement of them.


So, we drop it… and we add support for  the equivalent using the tool we use (iceberg gives you not just the author that modified last the method but all of them, along the history).

Who is we?  I ask from a different perspective.  I ask not too have Pharo use it but to allow Squeak to use it so that I can have timestamps for Squerask and still use Tonel.  But still "“Anyway the answer will be no :)".

So, your first statement is false.  If things are correct there will *not* be massive generation of conflicts when there is no reason.  Second, I am not asking you to change Tonel in Pharo.  i am only asking you to allow Tonel to support timestamps in systems that want to use it.


I hope is an understandable reason?”

And then in other mail of same thread I suggested an approach viable for squeak: 

"Now, what I’m sure is that if you are trying of using the 100% of Monticello and to use git just as another repository backend, it will not work (we already tried). It will consume far too much effort and you will finish beating the purpose of use git and a file-based-format, and you will be in the worst of two worlds :)

We started like that, and we ended up implementing Iceberg to take benefit of the tools we are using.

In the middle, there was/is gitfiletree. 
(I think I suggested you to look at it to adapt it for tonel and squeak).

Gitfiletree uses OSProcess to call git as external tool and it makes all the operations needed. “


Now, what I was suggesting was a way to use tonel backed with OSProcess (which works in squeak) instead backing it with libgit2 as us. 
Since they need the blame support, they could use OSProcess and external git for it.

Of course squeak (and any other dialect) are free to take tonel and adapt it to their needs (in fact, Mariano extended Tonel for VA specific things). 
And Pharo can read that format but it will ignore all extensions. 
Now, another problem is to WRITE: Pharo would write those packages in “pharo format” and that information would be lost. And in the case of VMMaker, if the idea is to be able to work on both sides, then Pharo needs to “honour” that format, it cannot just read it and ignore it later. So this creates an incompatibility that needs to be handled. 

Anyway, as you can see my answer was not “not under any circumstances”. Was “no, because is not convenient”.

It was still no.  And my request was clear.  I asked if you would allow Tonel to support timestamps, not that Pharo would use timestamps.  This avoids forking Tonel, which I see as essential (it is essential that Tonel *not* fork) for Tonel to be a format that can serve as an interchange between Squeak and Pharo.


Esteban



So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.

I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.

Here's the kind of crap people like Ducasse throw at me:

"Eliot 

At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have 
to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world 
of the “open” smalltalk VM. "

I am so over this crap.
_,,,^..^,,,_
best, Eliot



-- 
_,,,^..^,,,_
best, Eliot



-- 
_,,,^..^,,,_
best, Eliot



--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: Squeak and Tonel

Jakob Reschke
In reply to this post by Chris Muller-3
Am Mo., 18. Feb. 2019 um 19:53 Uhr schrieb Chris Muller <[hidden email]>:

3.  Port Squot to use FileDirectory.


Part of the fun is that one of its components writes the serialized forms of objects (packages in FileTree format being the almost exclusively used "special" case) to a directory, not even knowing that it is in fact constructing a Git tree in the process. One can try to reimplement that abstraction and call it GitDirectory, or throw over this part of the architecture, of course. Any volunteers? ;-)

On the other hand, this abstraction is one of the parts that will make it quite hard to integrate the Git history in the IDE (that is in the System Browser, for method versions, timestamps, ...) because you would have the cross this barrier to extract any history subsets efficiently. Esteban's mail sounds to me like Iceberg intentionally does not have this abstraction, but I didn't check. One argument in favor of the abstraction is that (in theory) you can swap out Git for something else without touching the file-in and file-out components (in practice, implementing the VCS adapter is the hardest part and even the Git Browser reaches down into the Git layers to accomplish some things, but so it at least deserves its name).


Reply | Threaded
Open this post in threaded view
|

Re: VMMaker in Pharo [Was: Squeak and Tonel]

Eliot Miranda-2
In reply to this post by Eliot Miranda-2
Hi Doru,

On Mon, Feb 18, 2019 at 8:14 PM Tudor Girba <[hidden email]> wrote:
Hi Eliot,

Please, let me clarify the current direction: I am not trying to get you to Pharo at this point. I only want to reach a point where the VMMaker code runs in Pharo. This will allow us to bootstrap an environment that can later be evaluated.

Having the sources in Git is secondary at this point. With the current infrastructure, we get those sources in Git while preserving the history from the Squeaksource repo automatically. The code will be loadable from either Git or Squeaksource, but the commit repository is still the Squeaksource one. So, nothing would change from the  workflow of the current committers. What we gain with the Git repository is a test ground and an easier ability to load the code in Pharo, all at no extra cost and without affecting your flow.

Let me emphasize this again: the Git support should not be the main issue at this point. Now we would only need to get the code to run in Pharo. For this, we would need to introduce a few support methods. One key method that Andrei and I would like to propose, and that we used before in other porting projects, is:
Object>>vmMakerForSqueak: aBlockToBeExecutedOnlyInSqueak forPharo: aBlockToBeExecutedOnlyInPharo

I am doing things on a case-by-case basis.  Currently I use classNamed:, e.g.

(Smalltalk classNamed: #FileSystem)
ifNotNil: [:fileSystem| fileSystem disk delimiter asInteger]
ifNil: [FileDirectory pathNameDelimiter asInteger]

(Smalltalk classNamed: #CurrentReadOnlySourceFiles)
ifNil: syncAction
ifNotNil: [:crosf| crosf cacheDuring: syncAction]

(Smalltalk classNamed: #Project)
ifNotNil: [:project| Project uiProcess] "Squeak"
ifNil: [UIManager default uiProcess] "Pharo"

 ((Smalltalk classNamed: #FillInTheBlankMorph)
ifNotNil: "Squeak"
[:fITBM|
fITBM
request: 'Input please!'
initialAnswer: ''
centerAt: ActiveHand cursorPoint
inWorld: ActiveWorld
onCancelReturn: nil
acceptOnCR: true]
ifNil: "Pharo; onCancelReturn: nil is the default here"
[UIManager default 
request: 'Input please!' 
initialAnswer: '']).

this at least allows Squeak to migrate to FileSystem without having to rewrite.  Using the above I was already able to get most of VMMaker working in Pharo6.  Things broke for Pharo7, which indicates that the vmMakerForSqueak:forPharo: approach has vulnerabilities.


Andrei will propose a commit in VMMaker Inbox this week.

What do you say?

Cheers,
Doru


> On Feb 18, 2019, at 7:55 PM, Eliot Miranda <[hidden email]> wrote:
>
> Doru,
>
> On Sun, Feb 17, 2019 at 10:33 PM Tudor Girba <[hidden email]> wrote:
> Hi Eliot,
>
> You raise a few technical concerns related to VMMaker that seem addressable:
>
> 1. Rendering technology: Both in Pharo and in GT, there exist in-image canvases, Athens and Sparta respectively, that are backend independent. This allows us to have image-based drawing logic, like BitBlt or even better, the drawing capabilities that Juan Vuletich built in Morphic 3, transparently. In fact, we even started to look at the code from Morphic 3 and we think it’s not much effort to make it work behind Sparta. This would provide a complete solution that would not rely on any external libraries.
>
> 2. Git history. We used to have the author and timestamp in the metadata of Tonel but because it generated unwanted conflicts it was decided to remove it. I think this is a good decision and one based on the experience of using it. But, why do you think the algorithm of retrieving Git could not be made to work in Squeak? Is there a specific technical reason, or is it more that you do not see the effort being spent in this direction? I am asking to understand what could a possible solution be.
>
>
> But, let’s take a step back. George and Andrei did move the VMMaker code, including all its history, into Git using (and enhancing) https://github.com/peteruhnak/git-migration.
>
> The code is here:
> https://github.com/feenkcom/opensmalltalk-vm/tree/pullrequest5/vmmaker
>
> Our goal was to make the code loadable and runnable in Pharo through Git. We have a reproducible process to produce this history, and this means that we can also synchronize all changes from the Monticello VMMaker repository and produce a history-preserving Git repository.
>
> The current code comes with a BaselineOfVMMaker that loads in Pharo, and the code generation seems to work to a good extent without much effort. There is still work that needs to be done especially on the simulation part, but we think most of it can be addressed through a Pharo-specific package that provides compatibility logic.
>
> I see two benefits for doing this:
> 1. It allows people in Pharo to play with the VM within the Pharo context and consequently contribute.
> 2. It allows us to build an environment dedicated for VM development without affecting the current contribution process. We can judge later whether this is useful.
>
> All this is great work.  But I cannot use it until I can also function in Squeak.  I know you want me to move to Pharo, but I am not convinced that it is a safe place for me to land.  I have voiced my concerns before (stability, moving away from support I need (e.g. Pharo dropping read./write file streams is the latest example).  Let me simply restate that "t6he devil you know is better than the devil you don't", and that I know I am productive with VMMaker in Squeak, but I *do not* know that I can be productive in Pharo (in fact, I have lots of experience of the contrary).  So I will not move to Pharo any time soon and so, until there is a solution to git/tonel/squeak integration I cannot join the unified repository, must as I would like to.
>
> I'm sorry for the frustration this causes other.  I am radical in some things, but deeply conservative in others.  And my ability to be productive is obviously foundational.
>
>
> Cheers,
> Doru
>
>
> > On Feb 17, 2019, at 9:27 PM, Eliot Miranda <[hidden email]> wrote:
> >
> > Hi All, Hi Torsten, Hi Jakob,
> >
> > On Thu, Feb 14, 2019 at 6:17 AM Torsten Bergmann <[hidden email]> wrote:
> > Hi,
> >
> > as some of you might already know "Tonel" is a file-per-class format for monticello repositories [1].
> >
> > In Pharo land many projects are already converted to it - as regular "file tree" solution faces issues
> > with git handling due to very long file names / deep file hierarchy (often leading to trouble on Windows).
> >
> > Dales's Rowan (a new project/package manager for Smalltalk) supports FileTree and also Tonel
> > repositories [2]. There is also a tool to convert from STORE (VisualWorks Source-Code Versioning System)
> > to Tonel format [3].
> >
> > So I wonder about adoption of Tonel in Squeak land.
> >
> > Any status/comments?
> >
> > Last year I was given contract employment by Tudor Girba's feenk which in part was to involve me porting VMMaker.oscog to Pharo in order to reap the productivity benefits of the Glamorous Toolkit when applied to VMMaker.  The major direction was to unify the opensmalltalk-vm repository with a Toned-Format repository holding the Smalltalk code.
> >
> > This project, though no fault of feenk's did not go well.  A big part of it was my own emotional attachment to Squeak, my "muscle memory" with Squeak and my long experience with Smalltalk-80 derived meta programming which I make extensive use of in VMMaker.oscog.  But a key issue was that I was not prepared to *move* VMMaker.oscog to Pharo; for me it is key that it can live in both places.  In particular I will not risk VMMaker.oscog being stranded on Pharo as it moves away from the "image-based rendering model".  This is not because I don't believe in pixel-independent rendering models, but because productivity in VMMaker depends much more than on GToolkit inspection on the key architectural feature of being completely, safely simulateable (not a real English word; but meaning capable of being simulated).  As Pharo moves towards external libraries to implement its UI so the degree to which VMMaker is simulated is reduced.  Thus crashes in external code cannot be handled with the same power as with errors presented within the Smalltalk environment itself, and this (as harsh experience over thirty five years has taught me) is far more important for overall productivity than having powerful tailorable inspectors.
> >
> > I therefore wanted a Tonel that could both function for Squeak's Monticello and for Pharo's Iceberg.  I had modified the Tonel serialization a little to provide well-formatted support for method timestamps, which are still a key and extremely useful part of Squeak Monticello's "blame" equivalent.  Until git author attribution can be imported into Squeak's Monticello (something I don't see happening) I wanted merely to be able to have a variant of Tonel, enabled for example by a class variable, and hence /not/ present in Pharo, that would allow VMMaker.oscog to use Tonel but still be functional inside Squeak.  I asked Esteban and was met by a flat no.  Not "OK, but this is an option only you will use", but a flat "not under any circumstance".
> >
> > So here I am joining in this thread reluctantly.  I'm extremely frustrated by the state of Tonel in Squeak and between the two dialects.  Clément had moved his Scorch optimizer to Tonel/git and I tried to use Metacello and Jakob's Tonel code to at least allow me to load that code and try and push forward on Sista/Scorch.  The port *does not work*.  Metacello fails to load Scorch.  Neither Jakob nor Fabio, after putting in some effort, were able to fix the problem, and it is well beyond me.  So I have accepted the fact that I will have to use the Monticello repository for Scorch/Sista.
> >
> > I had deep concerns that the pursuit of git integration would end up splitting the Pharo and Squeak communities and indeed this is now in progress.  I am utterly unmotivated by the lack of cooperation, the sheer arrogance and bullying of those that say "you will move to git/tonel or else", and considering leaving VMMaker altogether.  The only things that are keeping me interested are Ron Teitelbaum's Terf and me pursuing a PhD on register allocation in the context of Sista/Scorch with Robert Hirshfeld's group at HPI.
> >
> > Here's the kind of crap people like Ducasse throw at me:
> >
> > "Eliot
> >
> > At the end of the day I will probably ask the two phds that should work on language design to use truffle or pypy
> > because let us face it we cannot work with the Pharo VM. Else we will simply have to fork it (because we do not want to have
> > to jump over cuis, newspeak, squeak code constraints and I do not what) and it will be another drama is in the pico world
> > of the “open” smalltalk VM. "
> >
> > I am so over this crap.
> > _,,,^..^,,,_
> > best, Eliot
>
> --
> www.feenk.com
>
> “Software has no shape. Actually, it has no one shape. It has many."
>
>
>
> --
> _,,,^..^,,,_
> best, Eliot

--
www.feenk.com

"Sometimes the best solution is not the best solution."



--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] VMMaker in Pharo [Was: Squeak and Tonel]

Giorgio Ferraris
Hi, 
sorry to jump in the middle of a discussion, and also sorry if this will be only noise (i don't know about VMMaker), but I had to fight with compatibility for long time, so, here is what I did and still do (I had to support and still supporting  some business framework on VASmalltalk, VSESmalltalk and VisualWorks)

What we did was to define a common layer of services, represented by the classes needing compatibility work, and replicate that common classes on every dialect .
The end result was that my code was working against the same classes and same methods, but every dialect had the specific set of compatibility classes preloaded. 
So, if for example File is the chosen class name, the compatibility package will include File for the dialect(s) where it is missing, and the differences will be inside this class, but exposed using a common interface valid for all of the dialects.
This way we have no if in the code for testing which dialect we are in, and all of the differences are kept on a single place we load on every different dialect.
It was pretty easy to add VW when I started working in it after VSE and VA (just look at all of the compatibility classes/methods and replicate them for VW) , and I'll use same approach for moving to Pharo, when needed. 
It's also easy to increment; As we find a different case, we add methods or classes. Note that we have also compatibility for things like showing the user a directory dialog for choosing file, or yes no dialog , etch. it's a complex business framework....

I don't  know if this can helps, probably it's too late... or is just not useful based on your taste or your point of view or the problems in hand.
 Hope not bothering the list too much. ( I'm noticing that lately the Smalltalk community  gets upset easily ... long time passed since everything resolved in front of a beer or two ...)

long life Smalltalk :) and thank you all for the work done (all of you...)

giorgio

BTW,  I have to say that I really don't understand sometime the continuous jumping to different names also when it does'n seems needed (but probably it's my problem... I'm getting old and lazy ). Stay compatible seems for me a target, we are such a small community... but i'm surely wrong.




On Wed, Feb 20, 2019 at 2:18 PM David T. Lewis <[hidden email]> wrote:
On Wed, Feb 20, 2019 at 09:23:55AM +0100, Tudor Girba wrote:

> Hi,
>
> I have seen that code, and the issue I wanted to address is to have the
> decision about which dialect a piece of code is ran on in one single place.
> This should make it easier to find statically.
>
> Indeed, this will not necessarily be guaranteed to work when moving from
> one version of Pharo to another. But, that problem can be addressed by
> tracing releases in a reproducible fashion. And in the VMMaker case, the
> scenario is about a development environment not a production system. So,
> it should be reasonable to point developers to a working configuration
> that pairs the Pharo/Squeak version and the VMMaker version.
>
> What do you think?
>
> Cheers,
> Doru
>

Hi Doru and Eliiot,

The approach that I have been using to address this in OSProcess is
to put the compatibility methods in one place, in the 'compatibility'
category in class OSProcess. This allows support for the different
file system interfaces in Cuis, Pharo and Squeak.

For example, one of the compatibility methods is:

OSProcess class>>directoryExists: path
        "Answer true if a directory of the given name exists. The given name may
        be either a full path name or a local directory within this directory."

        ^ self useFileMan
                ifTrue: [((Smalltalk at: #DirectoryEntry) perform: #withPathName: with: path) exists]
                ifFalse: [self useFileSystem
                        ifTrue: [ (path perform: #asFileReference) exists ]
                        ifFalse: [ (Smalltalk at: #FileDirectory) default directoryExists: path ]]


And the tests for Cuis/Pharo/Squeak are in these two methods:

OSProcess class>>useFileSystem
        "If true use FileSystem, otherwise use traditional FileDirectory. See senders
        for methods with file system dependencies."

        ^ Smalltalk hasClassNamed: #FileReference

OSProcess class>>useFileMan
        "If true use FileMan for directory and file access. See senders for methods with file
        system dependencies."

        ^ Smalltalk hasClassNamed: #FileIOAccessor


This is ugly but it does work, and I been able to maintain OSProcess and
CommandShell for the Squeak diaspora over a number of years in this manner.
It also means that I do not need to worry if Squeak moves to FileMan(*) or
FileSystem at some point in the future.

I don't think that VMMaker should have a hard dependency on OSProcess,
but as a practical matter you probably have OSProcess loaded in the VM
development image anyway, so you could try using these methods directly
and see how ugly things get.

HTH,
Dave

* Personally I like the FileMan approach in Cuis best, but that is
another topic entirely ;-)





12