jsoftware / jsource

J engine source mirror
Other
645 stars 91 forks source link

Make socket code event-driven #100

Closed HenryHRich closed 2 years ago

HenryHRich commented 2 years ago

The goal is to allow asynchronous sockets, for which an event (new data or newly able to accept data) generates a call to a J socket handler. This will allow a J program to be fully event-driven, waiting for UI, socket, timer, or user events.

interregna commented 2 years ago

Is "asynchronous" separate and distinct from "event-driven"?

How will 'event-driven' be different from the architecture of the existing JHS server?

There's some previous work on async server code here: https://code.jsoftware.com/mediawiki/images/c/c6/Jbillserver.ijs

HenryHRich commented 2 years ago

I want to get back the asynchronous socket support that was in J6.02 for Windows. This is not about JHS Server, but about having the desktop application get event calls rather than having to poll sockets.

HenryHRich commented 2 years ago

There is a need to use event-driven sockets.

bilam commented 2 years ago

jqt already reimplemented sdasync. Isn't this what you had asked for?

HenryHRich commented 2 years ago

Bill says it's fixed.