From Egon Elbre to ~eliasnaur/gio
Added. It'll take a few minutes to update. On Mon, May 6, 2024 at 10:55 AM Elias Naur <mail@eliasnaur.com> wrote: > > On Sun, 21 Apr 2024 at 15:52, Jeff Williams <kanobe@gmail.com> wrote: > > > > Hi all, I've written a text editor named Anvil that uses GIO. I was > > wondering if you could add it to the showcase section of the gioui.org > > website? > > > > The Anvil website is here: > > > > http://anvil-editor.net/ > >
From Egon Elbre to ~eliasnaur/gio
Added, short appear shortly. + Egon On Sun, Jan 21, 2024 at 3:10 PM Elias Naur <mail@eliasnaur.com> wrote: > > On Thu, 18 Jan 2024 at 04:51, Kennedy Izuegbu <kennedy@dreacotgroup.com> wrote: > > > > Hi Elias, > > > > I think the Cryptopower Wallet is mature enough to add to showcase on the gio landing page > > > > Hi Egon,
From Egon Elbre to ~eliasnaur/gio-patches
One thing that is useful to check is whether `GOEXPERIMENT=newinliner go1.22rc1 build ...` already fixes this specific case. On Tue, Jan 9, 2024 at 5:46 PM Elias Naur <mail@eliasnaur.com> wrote: > > On Tue, 9 Jan 2024 at 10:42, Elias Naur <mail@eliasnaur.com> wrote: > > > > On Tue, 9 Jan 2024 at 10:27, Dominik Honnef <dominik@honnef.co> wrote: > > > > > > Elias Naur <mail@eliasnaur.com> writes: > > > > > > > On Sat, 6 Jan 2024 at 21:14, Dominik Honnef <dominik@honnef.co> wrote: > > > >> > > > >> By avoiding the call to byteslice.Uint32 and doing a direct unsafe cast,
From Egon Elbre to ~eliasnaur/gio-patches
I was looking, but unfortunately my hack-job for adding that implementation doesn't exist anymore. But, my change was pretty much changing `internal/ops.data` to `[]uint32` and fixing all the related code. Egon On Tue, Jan 9, 2024 at 5:13 PM Elias Naur <mail@eliasnaur.com> wrote: > > On Sat, 6 Jan 2024 at 21:14, Dominik Honnef <dominik@honnef.co> wrote: > > > > By avoiding the call to byteslice.Uint32 and doing a direct unsafe cast, > > we can reduce the complexity of EncodeCommand - as seen by the inliner -
From Egon Elbre to ~eliasnaur/gio
Btw. It's possible to pipes for IPC, which is also more cross-platform and doesn't require integrating with the windowing framework. Also, there are other approaches https://learn.microsoft.com/en-us/windows/win32/ipc/interprocess-communications On Thu, Nov 30, 2023 at 10:41 AM Jack Mordaunt <jackmordaunt@gmail.com> wrote: > > I would like to propose that we export a means for a Gio application > to handle IPC data events. > > I have a prototype that works for Windows, and I'm not sure whether > this generalizes to macOS or Linux - but maybe it does. >
From Egon Elbre to ~eliasnaur/gio
The changes have been merged to main. PS: main requires some changes to your code. On Tue, Oct 24, 2023 at 5:47 PM <fgergo@gmail.com> wrote: > > Thanks for the patches! I'll rerun all tests as soon as they are merged. > > fwiw: I ran the benchmarks with the same fonts with bigger n on 2 > android phones (>100% and ~40%) > termux, go1.21.3 and again on the old linux machine (~12%) and with > different fonts on linux (~20%) > > The linux benchmarks show that on linux 7% of slowdown I experienced
From Egon Elbre to ~eliasnaur/gio-patches
After experimenting a bit, I wasn't able to figure out an API for NextGlyph that seemed nice. So feel free to merge everything except the `NextGlyph` change. There definitely seems to be some significant performance improvements available when doing glyph advancing and layouting in batches rather than one at a time; but I don't have sufficient internal knowledge at the moment to make it happen. + Egon On Tue, Oct 24, 2023 at 12:17 AM Egon Elbre <egonelbre@gmail.com> wrote: > > maphash is indeed fast, however only if you write sufficient amounts
From Egon Elbre to ~eliasnaur/gio
So, I sent a few patches that should improve this. https://lists.sr.ht/~eliasnaur/gio-patches/patches/45986 They haven't been merged yet. I'm looking where it can be further optimized. + Egon On Tue, Oct 24, 2023 at 12:07 PM <fgergo@gmail.com> wrote: >
From Egon Elbre to ~eliasnaur/gio-patches
maphash is indeed fast, however only if you write sufficient amounts of data all at once. Currently there was significant overhead to calling, internal buffering and then hashing that ate up all the benefits of the fast hashing itself. Of course, the new hashing function isn't as good as the maphash implementation either, but should be good enough for this purpose. Skip merging NextGlyph for the time being in that case; taking a slice does seem like a better idea.
From Egon Elbre to ~eliasnaur/gio
Ah, sorry, I made a typo while writing the code directly in email editor, this should work now: ``` func BenchmarkLayout(b *testing.B) { // uncomment to use with commit 43c47f0 t := material.NewTheme() t.Shaper = text.NewShaper(text.WithCollection(gofont.Collection())) // uncomment to use with commit babe7a2 // t := material.NewTheme(gofont.Collection()) ops := &op.Ops{} b.ResetTimer()