Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

chez scheme node.js framework

62 views
Skip to first unread message

Jonas Fredriksson

unread,
Feb 14, 2023, 6:10:36 PM2/14/23
to chez-scheme
Would it be possible to create a framework based on node.js with chezscheme as the main language bringing the power of the repl and macros to it?
A framework based on node.js would be a real benefit to chezscheme.

or is this just impossible?

Philip McGrath

unread,
Feb 14, 2023, 6:44:35 PM2/14/23
to Jonas Fredriksson, chez-scheme
Hi,
I'm not sure what a "framework based on node.js" would be, exactly. What would you want to do with it? Embed Chez Scheme in a Node.js application?

One fact that might me relevant is that Racket's branch of Chez Scheme can be compiled for WebAssembly via Emscripten. (Instructions here: <https://github.com/racket/ChezScheme/blob/1a5532700a6302b7c03468256f32ad7407cd243c/BUILDING#L497-L544>.) However, Chez built this way lacks the full power the compiler, which is a notable downside. There are details in the documentation. Targeting WebAssembly as a backend directly would certainly be interesting.

Of course, you could also run `scheme` in a separate process and communicate it via IO, or you could embed Chez Scheme as a Node.js extension using their respective C APIs.

-Philip

Jonas Fredriksson

unread,
Feb 15, 2023, 1:23:59 AM2/15/23
to chez-scheme
I mean that it would be a webframework written in chezscheme using node.js as the underlying language. As far as I know, chezscheme lacks a decent webframework. I've seen igrophyr but that one is not supported anymore and not well documented.
Reply all
Reply to author
Forward
0 new messages