This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-07-12
Channels
- # announcements (2)
- # babashka (22)
- # babashka-sci-dev (15)
- # beginners (62)
- # calva (2)
- # cider (8)
- # clj-kondo (33)
- # clojure (52)
- # clojure-europe (46)
- # clojure-losangeles (1)
- # clojure-norway (5)
- # clojure-spec (7)
- # clojurescript (31)
- # conjure (20)
- # data-science (4)
- # datalevin (16)
- # fulcro (28)
- # hyperfiddle (71)
- # introduce-yourself (3)
- # lsp (50)
- # off-topic (16)
- # polylith (8)
- # portal (3)
- # practicalli (1)
- # reitit (1)
- # releases (2)
- # tools-build (22)
- # vim (8)
- # xtdb (17)
https://clojurians.slack.com/archives/CK143P6D7/p1689164433494519 Or maybe a simpler question - can Conjure somehow send data to a tty?
In my case, I have a ESP32 connected to Arduino, and I can use the Serial monitor to send data to it. But that's not a great repl experience. Would be cool if I could integrate Neovim with it
Maybe modifying the scheme stdio client would do the trick. I don't know anything about this env, sorry. I've heard of uLisp but that's all. It requires a whole TTY to run? If so, I have no idea how you talk to another TTY but I'm sure a client could be written that did.
Yes, exactly. uLisp can run on quite a few devices, amongs those, Arduino devices. ESP32 is a microcontroller that is Arduino compatible, so it is pretty simple to get going: • upload the ulisp program via the Arduino IDE • reboot the ESP32 • connect with the serial montor • now you have a repl 🙂
Here's a guy using Emacs for driving everything: https://www.youtube.com/watch?v=lnRgfM7gzSI&ab_channel=AhmetUsal
If you can start a process on your local machine that gives you a repl on the remote machine, then conjure can talk through that
It's essentially starting a sub process and sending text to it on eval. It then reads the output and looks for a repl prompt which indicates that the previous eval is done. It's VERY rudimentary, I have plans to rewrite the stdio support+ create some abstraction layers that'll make this sort of thing so much nicer and easier. It'll just take time.
And I spent my recent time off developing the successor to Aniseed that'll make these larger refactors a lot easier. I'd love to provide more of a toolkit people can use to easily cobble together their own clients.
Wasn't immediately able to get the scheme client modified for uLisp. But uLisp turned out to be pretty limited in terms of what APIs it implemented.
Now I'm looking at https://www.nodemcu.com/index_en.html, which implements Lua! I kind-of understand the protocol needed to send code to the device with NodeMCU, so now I'm thinking of creating a server which will receive fennel code, compile to Lua and send to the device 🎉 Let's see if I have enough summer holiday to get it going 😉
Now I'm looking at https://www.nodemcu.com/index_en.html, which implements Lua! I kind-of understand the protocol needed to send code to the device with NodeMCU, so now I'm thinking of creating a server which will receive fennel code, compile to Lua and send to the device 🎉 Let's see if I have enough summer holiday to get it going 😉