Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2021-10

pas2js development trees

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Wayne Sherman

There are currently two development trees for pas2js:

Source Tree "fpc/pas2js":
https://gitlab.com/freepascal.org/fpc/pas2js

Source Tree "fpc/source"
https://gitlab.com/freepascal.org/fpc/source/-/tree/main/utils/pas2js https://gitlab.com/freepascal.org/fpc/source/-/tree/main/packages/pastojs

With respect to pas2js, these source trees have different directory structures. Some pas2js files in one tree do not exist in the other. In some cases, pas2js files within these trees have the same name, but have different changes and commit histories.

I have been considering creating a pas2js "how-to" installation walk thru for Linux. I am trying to decide which tree to use, or if I should show both trees and explain why to use one tree or the other depending on the intent.

Some questions please:
1) How are these two pas2js trees related and what is the intent of each tree?
2) Which tree receives new pas2js features first?
3) Is the intent to unify these into a single tree at some point?

Thanks

Reply by email

Michael Van Canneyt
to Wayne Sherman
Wayne Sherman wrote
There are currently two development trees for pas2js: Source Tree "fpc/pas2js": https://gitlab.com/freepascal.org/fpc/pas2js

This tree contains the pas2js RTL and packages.

It contains the below tree as a submodule, however we're thinking to remove that. Git submodules are a little awkward to work with - to say the least.

This tree contains the compiler sources. They are part of Free Pascal: the scanner/parser/AST is also used in the documentation generator of FPC.

Show quoted text 5 lines
With respect to pas2js, these source trees have different directory structures. Some pas2js files in one tree do not exist in the other. In some cases, pas2js files within these trees have the same name, but have different changes and commit histories.

Some of the pas2js rtl/package units have a history in FPC, they have been ported to pas2JS.

Show quoted text 5 lines
I have been considering creating a pas2js "how-to" installation walk thru for Linux. I am trying to decide which tree to use, or if I should show both trees and explain why to use one tree or the other depending on the intent.

You will always need both trees.

Some questions please: 1) How are these two pas2js trees related and what is the intent of each tree?

See above.

2) Which tree receives new pas2js features first?

The compiler features always go to the "fpc/source" tree.

RTL/Package features always go to the "fpc/pas2js" tree.

3) Is the intent to unify these into a single tree at some point?

No.

Although that was my original intent, but
a) the rtl/packages differ too much.
b) the FPC team itself prefers to keep things separate, so it will remain separate.

Michael.

Reply by email