by untog · 6y ago · 0 comments
But a) it's a commercial product and b) uses it's own scripting language instead of JavaScript. But from some initial noodling around with it the browser engine is very capable and the footprint small.
a) Is anyone brave here to finance transition of Sciter to OpenSource? Please contact me if yes.
b) Sciter's script is a JavaScript++:
It uses JS syntax and runtime like `arr.concat(a,b)`.
Grammar and syntax was extended to better support UI cases. Like `const width = 12px;` is valid construct as Sciter has Length data type.
React and JSX are implemented natively.
function render() {
return <p>{this.greeting}</p>;
}
is a valid construct as JSX (SSX in Sciter) is a part of script grammar : https://sciter.com/developers/sciter-docs/reactor-and-ssx/But I want to give you credit for an absolutely phenomenal project! If I had the cash lying around to finance it as an open source concern I would, but alas.
WHY do these projects insist on doing this? What is it about UI that leads people to think this is a good idea? Do not make me learn yet another language just to use your UI library.
It's not that FreePascal or Dart are bad languages. It's that they're another language to consume yet more precious attention and head space, and there's nothing compelling enough about them vs. C++, Rust, Go, Python, JS/TypeScript, etc. to make it worthwhile.
What do you mean by "write GUI"?
If to declare DOM structure then HTML is for that.
If to initialize DOM structure from code at runtime then this (C++ here):
use namespace sciter;
element root = window.get_root();
element div = element::create("div", L"Hello world");
root.append(div);
div.attach_event_handler(my_controller);
Or do you mean something else?