Re: [racket-users] Porting embedded app from BC to CS

2021-12-20 Thread Matthew Flatt
At Mon, 20 Dec 2021 11:57:29 -0800 (PST), "thomas_d...@alumni.brown.edu" wrote: > So what happens from the perspective of embedding C code if an exception > occurs in Racket code it calls? It's not defined. In certain cases, control will escape from the C code, I think, but it depends on how the

Re: [racket-users] Porting embedded app from BC to CS

2021-12-20 Thread thomas_d...@alumni.brown.edu
Thanks! A couple follow-up questions inline. On Monday, December 20, 2021 at 2:34:29 PM UTC-5 Matthew Flatt wrote: > There's not really anything you can do to catch exception C-side right > now. If you need to catch exceptions, that has to be done Racket-side, > possibly with a helper created v

Re: [racket-users] Porting embedded app from BC to CS

2021-12-20 Thread Matthew Flatt
At Fri, 5 Nov 2021 08:58:06 -0700 (PDT), "thomas_d...@alumni.brown.edu" wrote: > - What are the preconditions and error-handling setup for calling > `racket_dynamic_require` and/or other `racket_*` functions? There's not really anything you can do to catch exception C-side right now. If you need

[racket-users] Porting embedded app from BC to CS

2021-11-05 Thread thomas_d...@alumni.brown.edu
I have some fairly simple code setting up an embedded Racket BC instance in a C++ coroutine, allowing me to call `scheme_dynamic_require` a module using a custom #lang (supported by an embedded module) and extract a cpointer matching a certain type tag from the exported symbols. It *looks* like