Re: [dev] Suckless CMatrix clone

2022-06-18 Thread LM
On Fri, Jun 17, 2022 at 3:00 AM Laslo Hunhold wrote: > I pushed line-break-detection[0][1] just yesterday. The functions > > size_t grapheme_next_line_break(const uint_least32_t *, size_t); > > and > > size_t grapheme_next_line_break_utf8(const char *, size_t); > > should be just

Re: [dev] Suckless CMatrix clone

2022-06-17 Thread Laslo Hunhold
On Tue, 31 May 2022 08:35:11 -0400 LM wrote: Dear LM, > On Mon, May 30, 2022 at 11:33 AM Laslo Hunhold wrote: > > What functions do you need in the context of Tuxmath? > > From what I remember, it just needs to figure out where to do a clean > break for text wrapping with internationalized

Re: [dev] Suckless CMatrix clone

2022-05-31 Thread LM
On Mon, May 30, 2022 at 11:33 AM Laslo Hunhold wrote: > What functions do you need in the context of Tuxmath? >From what I remember, it just needs to figure out where to do a clean break for text wrapping with internationalized strings. Don't believe it uses the other features of libunistring.

Re: [dev] Suckless CMatrix clone

2022-05-30 Thread Laslo Hunhold
On Mon, 30 May 2022 07:33:24 -0400 LM wrote: Dear LM, > Thanks for the reviews. That's really helpful to know. As mentioned, > I haven't tried them myself. you're welcome! > That looks really useful. I noticed the break testing in libgrapheme. > Is it possible to use this as a replacement

Re: [dev] Suckless CMatrix clone

2022-05-30 Thread LM
On Mon, May 30, 2022 at 4:56 AM Laslo Hunhold wrote: > having dove deep into UTF-8 and Unicode, I can at least say that > libutf8proc has an unsafe UTF-8-decoder, as it doesn't catch overlong > encodings. There are also multiple other pitfalls. Thanks for the reviews. That's really helpful to

Re: [dev] Suckless CMatrix clone

2022-05-30 Thread Laslo Hunhold
On Sun, 29 May 2022 13:48:49 -0400 LM wrote: Dear LM, > I like that point. Not a fan of glib and I try to avoid software > that uses it. > > Don't know how good they are, but I've run across several lighter > utf-8 C libraries: > https://github.com/cls/libutf >

Re: [dev] Suckless CMatrix clone

2022-05-29 Thread LM
On Sun, May 29, 2022 at 12:34 PM Kyryl Melekhin wrote: > Cool, but why use Glib? You can come up with some random utf-8 character > generator function, it's pretty trivial and there are plently of examples > in many suckless programs on how to do utf-8 validation. I like that point. Not a fan

Re: [dev] Suckless CMatrix clone

2022-05-29 Thread Kyryl Melekhin
Hello Ryan, Ryan Raymond wrote: > Hello all. I'm working on a suckless cmatrix clone. > It's not done yet, and it still suffers from constant memory leakage, but > I'm having fun working on it. > It already shows 50% reduced cpu/ram usage vs cmatrix, despite greatly > improved fps.

Re: [dev] Suckless CMatrix clone

2022-05-29 Thread Hiltjo Posthuma
Hi Ryan, On Sun, May 29, 2022 at 03:04:00AM -0400, Ryan Raymond wrote: > Hello all. I'm working on a suckless cmatrix clone. > It's not done yet, and it still suffers from constant memory leakage, but > I'm having fun working on it. > It already shows 50% reduced cpu/ram usage vs cmatrix, despite