gdl icon indicating copy to clipboard operation
gdl copied to clipboard

Add support for saving and restoring procedures

Open slayoo opened this issue 7 years ago • 8 comments

As reported by @swrh and discussed with @ebknudsen on SF.net back in 2011 (https://sourceforge.net/p/gnudatalanguage/feature-requests/100/):

The current implementation of SAVE and RESTORE procedures supports saving variables only. IDL allows to save also procedures.

To summarise the discussion (also the one with Marc during the GDL workshop in Paris):

  • binary compatibility with IDL is not attainable by design, and is not an aim,
  • the key rationale is the potential speed gain due to the option of skipping lengthy compilation of large codebases (effectively, this could be a similar mechanism as the one in Python that produces .pyc files),
  • it would be needed to serialise the ProgNode instances.

slayoo avatar Apr 09 '18 20:04 slayoo

Esay as a breeze as soon as ... serializing Prognodes instances is done! Please open a dedicated enhancement issue on this serialization need.

GillesDuvert avatar Apr 10 '18 12:04 GillesDuvert

I also share the desire of this request. Some legacy applications that I work with utilize .sav files as essentially .dll files with respect to IDL. Looking briefly at the code, it appears that the gdl interpreter internally converts the source into bytecode. If we could dump this memory to a file and restore to memory that would be all I would be interested in - even if this requires the same machine / architecture to read in.

ramueller11 avatar Jun 27 '19 13:06 ramueller11

Hi @GillesDuvert and @slayoo, I saw that @swrh wants to work on saving and restoring procedures:

https://github.com/gnudatalanguage/gdl/issues/126#issuecomment-819871174

Who could answer his questions so that he can try working on this issue?

I am asking because it would be a very nice feature to have.

brandy125 avatar Apr 21 '21 16:04 brandy125

I've just pointed out the HACKING file, but I guess it will be of very limitted help...

slayoo avatar Apr 21 '21 17:04 slayoo

strange, I was sure I wrote a rather long topic on this to answer @ramueller11 . GH seems to have swallowed it.

GillesDuvert avatar Apr 21 '21 17:04 GillesDuvert

Hi guys, is there any news on saving and restoring procedures? How complicated is this to implement? Who could work on this?

brandy125 avatar Aug 09 '21 19:08 brandy125

I have this in mind so it's going to arrive... eventually. Any help will be warmly welcome of course.

GillesDuvert avatar Aug 09 '21 19:08 GillesDuvert

#1681 goes a long way into solving this. Stay tuned.

GillesDuvert avatar Dec 05 '23 18:12 GillesDuvert