3 ms·
Ask HN: What's a good basic online REPL other than Repl.it?
I used to love repl.it for throwing together quick ideas (code "sketching" as I call it), providing example code to users, etc. But over the years they've "expanded" the platform so much that nowadays you can't even use a REPL without first signing up/logging in and then waiting ~20s for a REPL to load. The wide language support is what pulled me into repl.it, as well as support for each language's package manager.
These roadblocks knock me out of my "flow" and I've resorted just using a .sketch/ directory with various language entry points with an easy way to run each of them when needed. But I miss the shareability that repl.it had.
What's a good, simple alternative to repl.it these days?
- dexwiz 4y agoFor Javascript, Chrome's devtool console has always worked for me. You can even debug with the `debugger` keyword.
- sargstuff 4y agoWASM opens up a lot of possibilities: ?? https://www.tutorialspoint.com/execute_lisp_online.php https://www.tutorialspoint.com/execute_lisp_online.php ?? https://www.fermyon.com/wasm-languages/lisp https://www.fermyon.com/wasm-languages/lisp ?? https://www.jdoodle.com/execute-clisp-online/ https://www.jdoodle.com/execute-clisp-online/
- kazinator 4y agoIt looks like when JDoodle evaluates the CLISP, it feeds it to some back-end which evaluates it in a brand new environment. If you define a variable, then erase that and evaluate code which refers to the variable, the variable is gone. From the behavior I can't tell whether it's some WASM in the browser, or sent to a server where it could be in a native VM. The API documentation shows that you can submit programs via JSON to their back-end, so that's probably what the UI is doing. Try running this: (print (machine-instance)) (print (machine-type)) (print (software-type)) (print (user-homedir-pathname))