emscripten support? #2692
Replies: 1 comment 2 replies
-
so first off, i know essentially nothing about web development--i'm not even certain what "emscripten" is. its own language? an umbrella term for javascript and similar technologies? when this mail hit my box, i thought this was going to be an emacs question, lol. ...looks it up..."Emscripten is a complete compiler toolchain to WebAssembly, using LLVM" ok, well that sounds reasonable enough; i know all those words. ...looks up imtui...stops reading at "256 ANSI colors" alright so i've done no deep dive into imtui, and i'm sure the authors are fine people, but this looks like yet another early-aughts-style NCURSES alternative. so i can't answer your question about which would be better for web deployment, as i'm simply too ignorant to do so. if imlib can be made to run in a web browser, i'm sure notcurses can, as well (one or both might require some small changes, but i'd be happy to do them if brought to my attention). if you're able to supply a Terminfo database and render terminfo-augmented lexemes to a web page, notcurses can roll, and you'd surely need these two capabilities for any such library to operate. as for notcurses vs imlib: i'm something of a maximalist developer, yet fanatical about minutiae, and when writing a library also generalism in my APIs. i'm very hesitant to do special cases and one-offs, even if they might be the most approachable API for a new user, if there's a reasonable and performant generalization. maximalism means i'm going to try and discover the entire space (as a result, Notcurses development led to bugs being found and fixed in every terminal I've tested it against), and covering a large, diverse space requires fairly abstract generalizations. at the same time, facilitating peak performance requires specializations, departures from the general. in designing Notcurses, i strove to be general, even at the expense of simplicity, except for when performance mandated otherwise--and performance is never simple. i agree that it is intimidating on first approach (a fact not helped by my aggressively formal and axiomatic documentation). most libraries lead with friendly "getting started" guides (something @joseluis has requested from me more than once); i point you at page-length comments in tl;dr: no answer to your question, but i'm the best [citation needed] hack on, and i hope notcurses proves useful to you! |
Beta Was this translation helpful? Give feedback.
-
i haven't been in a position to push further with my experiments with either notcurses or emscripten, so if it turns out this is already supported and somehow there's simply nothing in the issues, pull requests, discussions, or repo about it, i apologize in advance.
i'm still plotting some of the stuff for my app, but "as much cross platform as i can squeeze out of not having to bother with platform-specific code" is one of my goals, and having a competent tui that just works on a few platforms would really help a bunch. right now i'm more or less waffling between notcurses, which is awesome, and imtui, which looks a fair bit more approachable in some ways, and explicitly has some emscripten support, but lacks a lot of things notcurses can do (including more competent windows terminal support).
what would go into using notcurses to work for a web deployment?
Beta Was this translation helpful? Give feedback.
All reactions