Re: [racket-users] Create C functions for embedded Racket CS

2020-09-03 Thread Matthew Flatt
At Wed, 2 Sep 2020 14:05:11 -0700 (PDT), dotoscat wrote:
> There are a function such scheme_make_prim_w_arity 
>  _arity%29>
> for the CS version? The idea is to use Racket
> as a scripting language for a C program.

There's currently no support in the C API of Racket CS for constructing
a Scheme procedure that calls a C procedure. You have to work from the
Scheme side using `foreign-procedure` to create a wrapper for a C
function.


Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200903073501.2c2%40sirmail.smtps.cs.utah.edu.


Re: [racket-users] Create C functions for embedded Racket CS

2020-09-02 Thread Hendrik Boom
On Wed, Sep 02, 2020 at 02:05:11PM -0700, dotoscat wrote:
> There are a function such scheme_make_prim_w_arity 
> 
> for the CS version? 

> The idea is to use Racket
> as a scripting language for a C program.

That's what guile was designed for.
How does Racket measure up as a scripting language for C?

-- hendrik

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200902213805.44xhu4mncp7s4wyi%40topoi.pooq.com.