Multiple changes:

- Move to a Python process for the LanguageLink client [fixes #1, presumably]
- Finish a first rough draft of the booklet [fixes #4]
This commit is contained in:
2022-06-11 18:43:17 +02:00
parent acded68da5
commit 6369d15e93
39 changed files with 3977 additions and 56 deletions

View File

@@ -0,0 +1,17 @@
(load "/Users/veitheller/Documents/Code/Github/carp/archive/socket/sockets.carp")
(use Socket)
(defn main []
(let-do [port (Maybe.from (from-string &(Maybe.from (nth &System.args 1) @"")) 0)]
(IO.println &(fmt "Starting server on localhost, port %d" port))
(Socket.with-server sock "127.0.0.1" port
(if (Socket.valid? &sock)
(Socket.while-connection &sock client
(IO.println &(read &client))
(send &client "hi")
(IO.println "yay"))
(IO.errorln "Server couldnt be started.")))))
(build)
(run)