Sign in Join

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

Mailing lists / fpc-devel / 2016-11

Status of dynamic packages

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Sven Barth
to gabor
"gabor" wrote
Hello. What's the status of dynamic packages? Are they usable?

Currently only compile time packages work (meaning you can't load additional packages at runtime). Also currently only i386-win32 and the OS X targets (I did only test powerpc-darwin however) would be supported if packages would be enabled.
Additionally there still needs to be fpmake support for dynamic packages added (so that the ppk is generated based on the fpmake.pp and that it indeed compiles the package).

Regards,
Sven

Reply by email

gabor
to Sven Barth

Thank you for your answer. It seems that it is too early to more questions. Perhaps one: Dynamic packages will be supported like in Delphi (FindClassHInstance, GetPackageInfo...etc)?

Regards, Michał.

W dniu 2016-11-10 o 17:29, Sven Barth pisze:

Show quoted text 23 lines
Am 10.11.2016 15:17 schrieb "gabor" < >: > > Hello. > What's the status of dynamic packages? Are they usable? Currently only compile time packages work (meaning you can't load additional packages at runtime). Also currently only i386-win32 and the OS X targets (I did only test powerpc-darwin however) would be supported if packages would be enabled. Additionally there still needs to be fpmake support for dynamic packages added (so that the ppk is generated based on the fpmake.pp and that it indeed compiles the package). Regards, Sven _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Sven Barth
to gabor
"gabor" wrote
Thank you for your answer. It seems that it is too early to more

questions. Perhaps one: Dynamic packages will be supported like in Delphi (FindClassHInstance, GetPackageInfo...etc)?

I have not yet looked at the APIs in detail, but in essence that should be the case.

Regards,
Sven

Reply by email

gabor
to Sven Barth

Thanks and best regards,
Michał

W dniu 2016-11-16 o 14:35, Sven Barth pisze:

Show quoted text 6 lines
I have not yet looked at the APIs in detail, but in essence that should be the case. Regards, Sven

Reply by email

Mattias Gaertner
to Sven Barth: Currently only compile time packages work (meaning you can't load additional packages at…
Show quoted text 12 lines
Am 10.11.2016 15:17 schrieb "gabor" : > > Hello. > What's the status of dynamic packages? Are they usable? Currently only compile time packages work (meaning you can't load additional packages at runtime). Also currently only i386-win32 and the OS X targets (I did only test powerpc-darwin however) would be supported if packages would be enabled. Additionally there still needs to be fpmake support for dynamic packages added (so that the ppk is generated based on the fpmake.pp and that it indeed compiles the package).

If someone wants to help with it, what skills/knowledge are required and what are the next steps?

Mattias

Reply by email

Sven Barth
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Thu, 10 Nov 2016 17:29:50 +0100 Sven Barth wrote: > Am 10.11.2016 15:17 schrieb "gabor" : >> >> Hello. >> What's the status of dynamic packages? Are they usable? > > Currently only compile time packages work (meaning you can't load > additional packages at runtime). Also currently only i386-win32 and the OS > X targets (I did only test powerpc-darwin however) would be supported if > packages would be enabled. > Additionally there still needs to be fpmake support for dynamic packages > added (so that the ppk is generated based on the fpmake.pp and that it > indeed compiles the package). If someone wants to help with it, what skills/knowledge are required and what are the next steps?

For the compiler/RTL there isn't much that can be done as I'll need to redesign the unit initialization and finalization as well as prepare the RTL for a more dynamic approach regarding various tables.

What could be helped with however would be fpmake since that would need to be able to generate package files and compile them along with the units if the target supports dynamic packages (cause I don't want to maintain a parallel .ppk file). I've already asked Joost on Core whether he'd be inclined to do that, but I haven't received an answer, so I don't know whether he read my mail or even already started working on it...

Regards,
Sven

Reply by email