Skip to content

Add support for saving and restoring procedures #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
slayoo opened this issue Apr 9, 2018 · 8 comments
Open

Add support for saving and restoring procedures #116

slayoo opened this issue Apr 9, 2018 · 8 comments
Labels
enhancement New feature or request good first issue Good for newcomers save-files

Comments

@slayoo
Copy link
Member

slayoo commented Apr 9, 2018

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 slayoo added the enhancement New feature or request label Apr 9, 2018
@GillesDuvert
Copy link
Contributor

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

@ramueller11
Copy link

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.

@slayoo slayoo added the good first issue Good for newcomers label Jun 27, 2019
@brandy125
Copy link

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

#126 (comment)

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.

@slayoo
Copy link
Member Author

slayoo commented Apr 21, 2021

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

@GillesDuvert
Copy link
Contributor

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

@brandy125
Copy link

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

@GillesDuvert
Copy link
Contributor

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

@GillesDuvert
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers save-files
Projects
None yet
Development

No branches or pull requests

4 participants