3 ms·
You're catching downvotes (have some goddamned respect people) but I'm facing this choice right now. I have a project that involves a compiler written in Prolo
by carapace 7y ago
You're catching downvotes (have some goddamned respect people) but I'm facing this choice right now.
I have a project that involves a compiler written in Prolog targeting Prof. Wirth's RISC chip (for Project Oberon[1]), and I want to make it easily accessible.
I can use e.g. TCL/Tk/Tkinter/Python+SWI-Prolog, and make a native app that the user has to install... or...
There is a Prolog in JS[2], and an emulator for the chip in JS[3], and rich widget frameworks (I like Knockout[4], but there are literally dozens in JS), so it's pretty easy to make a SPA that shows off the code (literate programming style) along with live compilation and emulation, and you can even let users save their work[5]. "Installation" is just visiting the page.
I keep trying to come up with reasons NOT to go that route (out of some perhaps-misplaced JS prejudice) and I can't.
> There's really no need for X-Windows or Wayland any more.
Indeed!
[1] http://www.projectoberon.com/ http://www.projectoberon.com/
[2] Tau Prolog http://tau-prolog.org/ http://tau-prolog.org/
[3] http://schierlm.github.io/OberonEmulator/ http://schierlm.github.io/OberonEmulator/ https://github.com/schierlm/OberonEmulator https://github.com/schierlm/OberonEmulator
[4] https://knockoutjs.com/ https://knockoutjs.com/
[5] https://calroc.github.io/HulloWurld/Hullo.html https://calroc.github.io/HulloWurld/Hullo.html