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

C++ code should be embeddable in another program #822

Open
1 of 2 tasks
andychu opened this issue Sep 2, 2020 · 3 comments
Open
1 of 2 tasks

C++ code should be embeddable in another program #822

andychu opened this issue Sep 2, 2020 · 3 comments

Comments

@andychu
Copy link
Contributor

andychu commented Sep 2, 2020

Anticipated issues:

  • memory allocator hook. Garbage collection.
    • SOLVED with gc_heap::Alloc<T>, not operator new!
  • #undef SIGINT, #undef WUNTRACED, etc. for mycpp translation -- this could make it difficult for other projects since it's global?

Other issues:

  • signal handling is global
@andychu
Copy link
Contributor Author

andychu commented Jan 28, 2021

Related to #704, subinterpreters

@andychu
Copy link
Contributor Author

andychu commented May 15, 2021

I think headless mode makes this less urgent

@andychu
Copy link
Contributor Author

andychu commented Mar 27, 2024

Also we may be more interested in "exterior" composition with sidecar processes than "interior" composition with static linking

https://oilshell.zulipchat.com/#narrow/stream/398896-server-side/topic/Use.20Cases.20for.20.22Sidecar.22.20Processes

It fits shell a bit better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant