Show HN: JavaScript+Tcl Remote REPL

6 points by rkeene2 ↗ HN
I was recently working in extending the Tcl Duktape extension to support calling Tcl procedures from the JavaScript side -- the result is the unholy amalgamation of Tcl+JavaScript which actually turned out to work quite well. I slapped a REPL and then a WebSocket-based access layer onto it and it can be accessed remotely at:

https://rkeene.dev/js-repl/

All the Tcl commands are in the "runtime" object.

    js> runtime.package.require('sha1')
    => 2.0.3
    js> runtime.sha1.sha1('Hello World')
    => 0a4d55a8d778e5022fab701977c5d840bbc486d0

0 comments

[ 5.8 ms ] story [ 26.3 ms ] thread

No comments yet.