Fork me on GitHub
#off-topic
<
2022-05-19
>
mauricio.szabo03:05:47

Someone here knows WASM with emscripten? The trouble - I'm interfacing via stdin with a library, but emscripten API for it is synchronous, and the input I need to send to it is async 😞

Ulises MC09:05:14

Hi all! Somebody knows how to build a REPL on top of a compiled language? Can you recommend me a simple tutorial or a book to achieve it? I'm curious on how to build a Clojure-like REPL, i mean, you have a running program and a file with some definitions, then connect a REPL, switch to that namespace, redefine an existing value/fn and the current running program didn't stopped but executes the new definition given. Thanks!

borkdude09:05:26

The language runtime has to support something like a var indirection to make this work properly

πŸ‘ 1
❀️ 1
p-himik09:05:00

Somewhat related - there's something like it for C++ but of course they had to implement their own runtime: https://root.cern/cling/

πŸ‘ 1
Ulises MC09:05:37

Sounds harder than I expected. I thought that someone without a lot of effort could create a simple REPL in any compiled language (C, C#, Rust, etc). Thanks, I'll read more about it

folcon12:05:56

Is this what you're looking for @U02TF2JU3M4? https://buildyourownlisp.com/

πŸŽ‰ 1
Ulises MC12:05:17

@U02N27RK69K pretty interesting πŸ‘

Ulises MC12:05:47

@U0JUM502E That is exactly what I was looking for! Thanks!! πŸ™‚

borkdude12:05:14

@U02TF2JU3M4 That wasn't obvious to me at all, that you wanted to write an embedded Lisp, but now it makes sense ;)

πŸ˜… 2
respatialized13:05:34

https://github.com/kanaka/mal not sure how many of these have REPLs, but there's a wide range of implementations here

πŸ‘ 1
Ulises MC16:05:01

@UFTRLDZEW oh wow! There are a lot of them. Definitely helps, thanks!