Skip to content
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

Remove library mode option from ponyc #3975

Merged
merged 2 commits into from
Jan 29, 2022
Merged

Remove library mode option from ponyc #3975

merged 2 commits into from
Jan 29, 2022

Conversation

SeanTAllen
Copy link
Member

From the very early days of the Pony runtime, a "library mode" has been around that allows you to compile a Pony program to a C compatible library that you can then start up using various runtime APIs to do things like initialize the runtime, create actors, send messages and more. We've made extensive changes to the runtime over the years and have no faith that library mode and its related functionality work.

Our lack of faith extends back many years and we've stated as the Pony core team that we don't consider library mode to be supported; until now, we haven't done anything about what "not supported" means. This commit is the first move in removing support for using the Pony runtime via the various untested C API functions.

Additional changes will be made to take various PONY_API methods that we consider to be "internal only" and rename them to be ponyint_ to clarify that they aren't intended for calling from external source and to remove PONY_API methods that aren't used internally by the runtime or the standard library.

Closes #3464
Closes #1882

@SeanTAllen SeanTAllen changed the title Remove library mode Remove library mode option from ponyc Jan 29, 2022
@SeanTAllen SeanTAllen added the changelog - changed Automatically add "Changed" CHANGELOG entry on merge label Jan 29, 2022
@SeanTAllen
Copy link
Member Author

When this is squashed for merging, the commit comment body should be the first PR comment body.

@SeanTAllen SeanTAllen requested a review from a team January 29, 2022 14:28
@SeanTAllen SeanTAllen marked this pull request as ready for review January 29, 2022 14:28
@SeanTAllen SeanTAllen merged commit 956c9d9 into main Jan 29, 2022
@SeanTAllen SeanTAllen deleted the library-mode branch January 29, 2022 17:39
ergl pushed a commit to ergl/ponyc that referenced this pull request Jan 31, 2022
ergl pushed a commit to ergl/ponyc that referenced this pull request Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - changed Automatically add "Changed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undefined reference to `Main_runtime_override_defaults_oo' None is missing in library mode
2 participants