Authentication-Results: mail-b.sr.ht; dkim=pass header.d=aarsen.me header.i=@aarsen.me Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) by mail-b.sr.ht (Postfix) with ESMTPS id 6E90911EFF8 for <~sircmpwn/public-inbox@lists.sr.ht>; Tue, 23 Feb 2021 08:38:56 +0000 (UTC) Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4DlCBl1Lc3zQlRp; Tue, 23 Feb 2021 09:38:55 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1614069533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=idqbxv3tfHAWlToP0YdWylOjpQB/N//czWrTrnkb5QY=; b=2JraG7lkNuBm4qYuZzCvDTiBlfDp9g5kzVfNBUT1OHLFOyVZKeGKjzluZK9CbQ0q/hu89u HrtwS2Lrq1FkDAYsMyz4nF3q+oVknV4zJ2XrQxInx87JGVYeiK/IPIY8v+NCBA9SduCCZe UeWno2g6d4bVyUrNElGBFMuTxBGFyarF4HUypt/syO1I++y7ADW4tz0Dldq4NMCJt8nwiu IjC8pz6fd/6p5kqAzO7HOLRRYQCzdK9K1TBLtx0gfX/VrwE6sFijnlRHkSr3feVrij79ag eW0owq9oHfL42o0h2TpE7V1ECYcz+jzObtO9q51SvFaFAGB4XvED5XPqwLyAJQ== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id UdKxjzBrpUfD; Tue, 23 Feb 2021 09:38:47 +0100 (CET) Date: Tue, 23 Feb 2021 09:38:45 +0100 From: Arsen =?utf-8?Q?Arsenovi=C4=87?= To: Timmy Douglas Cc: ~sircmpwn/public-inbox@lists.sr.ht Subject: Re: electron alternatives: wayland-like widget toolkits/GUI frameworks Message-ID: <20210223083845.iarzrth4yx746k7y@bstg> Mail-Followup-To: Timmy Douglas , ~sircmpwn/public-inbox@lists.sr.ht References: <871rd7icvp.fsf@timmydouglas.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wpem2rvndll6nmqo" Content-Disposition: inline In-Reply-To: <871rd7icvp.fsf@timmydouglas.com> X-MBO-SPAM-Probability: X-Rspamd-Score: -5.40 / 15.00 / 15.00 X-Rspamd-Queue-Id: 25BC7184F X-Rspamd-UID: 07af41 --wpem2rvndll6nmqo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > 1. Has anyone created a realistic alternative to HTML/CSS--maybe a > binary DOM that has a reasonable API for manipulation? I supposed it'd > also need some sort of rendering engine No, and there's no real need for one. Existing GUI frameworks (none of whic= h are small enough, but they work well enough) already are very mutable from APIs; such a DOM would be no improvement, in fact, the only reason DOM manipulati= on is so needed in the Electron world is because HTML is *not* a UI language, = and it shows; it's a markup language unfit for program UIs. In that regard, Qt is not terrible, it produces good GUIs, even though it a= cts like a bit of a virus in any codebase, and sadly exposes a C++ API instead = of a C one. > 2. Has anyone created a Wayland-like protocol for #1 so that you may > create an app that communicates through a socket to manipulate the DOM > and receive events? Basically you could use any programming language you > like, and you would speak the binary protocol to create windows, > manipulate the DOM, handle events, etc. A "binary web view" could be a > separate executable that just connects back to a socket specified as an > argument to the program. This binary web view just renders the DOM and > handles events and would be reusable across applications. Then your > widget toolkit SDK speaks the binary format over the wire and is written > in your programming language of choice. This sounds massively over engineered, just link a library, let it render y= our bitmaps and blit them on the screen for you, and that's it, which is how it worked for the last three or so decades. --=20 Arsen Arsenovi=C4=87 --wpem2rvndll6nmqo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEN603JsCUe+6MiEcuSj/KZcFT9D4FAmA0vxMACgkQSj/KZcFT 9D5jywf+I4eIJmJrGlF1H8UJtGiCngQ7Kh/U7OLaHQOh18L0BvRE7juJ3gUMFYdg FofmZxoY4333fXPlOFIsKUmdwsLQF9KFfZdFPUB2yH1qrH0xBI8bi13WqENg+4Yy N91knJS48e+AicfmXBgE5RHeu0HBWzXX++QJcLfl7pbAoA0iJMABOJ78iLQc9xWi i92EWbvBg0KlvVMKkiolbJfEXg9BQZMtZ26v5aADBJ0DpZE78W1bYEieKegvwyLR QjiS2C25eqve3W+neaAG7FUqXylKGj7suz8JcgXkFVYthd4r1nzGM4zp9bGnEVyM Xd4cjWzSr6mF2f2On0T113OLM22u7A== =7c1M -----END PGP SIGNATURE----- --wpem2rvndll6nmqo--