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

Support network programming #265

Closed
tisonkun opened this issue Jan 19, 2018 · 2 comments
Closed

Support network programming #265

tisonkun opened this issue Jan 19, 2018 · 2 comments

Comments

@tisonkun
Copy link
Contributor

The most nearly stuff I've found is http://cisco.github.io/ChezScheme/csug9.5/foreign.html#./foreign:h9

However, for what reason chez itself does not support procedure on network programming?

@akeep
Copy link
Contributor

akeep commented Jan 23, 2018

This is somewhat philosophical, in that Chez Scheme seeks to provide the tools for building things like a network programming library, not to be a programming environment that includes everything plus the kitchen sink.

The foreign function interface provides the tools needed to write a network programming library, and there is an example of using it to do socket programming in the examples directory (see socket.ss and csocket.c in the example directory).

There are also libraries that have already been written for this including: @arcfide's chez-sockets library, @evilbinary's scheme-lib that supports a wide variety of FFI-based features, and @becls' swish-win and swish which provide a framework for writing Scheme programs with Erlang-style concurrency and supports network programming (amongst other things) for Windows or *nix operating systems.

@tisonkun
Copy link
Contributor Author

OK so I could either write it by myself or use an exist lib. Thank you. I feel good with such philosophy.

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

No branches or pull requests

2 participants