about summary refs log tree commit diff stats
path: root/gmi/mmhd8m.txt
blob: 8f1cf005246ca38fe1d778a57e3d838522af6178 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; 
ID: mmhd8m
Date: 2022-03-27T11:31:56Z
Title: Golang and desktop wrappers to web apps
Authors: Aoi Koizumi <novaburst@dimension.sh>
Topics: Computing > Programming > Golang

I've been experimenting with the webview[1] library in Golang to test a
couple things yesterday, and because I had nothing good else to do, or
something. The whole thing at least on *nix systems is that it seems to
use webkit2gtk, while on macOS it's safari's webkit, and that it's
mostly written in C/C++ with bindings for other languages, instead of
only JavaScript like Electron.js does, sort of. So far here's what I did
yesterday.

## Cinny (yet another web client for Matrix)
Did not crash or get disconnected as far I kept it running for a couple
hours.

Code: https://git.envs.net/novaburst/cinny-desktop-webkit

## SchildiChat (element-based client)
This is a rather heavy thing, which of course it works perfectly on say,
G**gle Chrom|e|ium obviously, and I even expected it to crash the
webview, but to my surprise, it only ran a little slow, but otherwise
worked fine.

## Telegram Web X
I get instantly disconnected from it, and runs slow-ish as well, because
it's too fancy (i'd say extremely) and I don't really like fancy stuff
if it is hardly useful.

[1]: <https://github.com/webview/webview>
lass="bp">self): ansi_string = "X" self.assertEqual(ansi.char_len(ansi_string), 1) def test_char_len2(self): ansi_string = "XY" self.assertEqual(ansi.char_len(ansi_string), 2) def test_char_len3(self): ansi_string = "XY" self.assertEqual(ansi.char_len(ansi_string), 2) def test_char_slice(self): ansi_string = "XY" expected = "X" self.assertEqual(ansi.char_slice(ansi_string, 0, 1), expected) if __name__ == '__main__': unittest.main()