been having a bit of a frustrating time with the GUI stuff... for God only knows what reason, the wasm gio script with the current version of gogio, which generates builds for other platforms (including ios and android) doesn't play nice with my brave browser... probably some crap in the script that brave blocks
well, thankfully i have another one that works: https://images.mleku.dev/birb/ which was the beginnings of a chat app i was going to build
and because using the web-file-serving standard functions didn't seem to actually serve properly, i wrote handlers that just serve up the relevant files that have been embedded in the binary
this also meant i am able to save the working index.html and wasm.js files it needs in different names, and load them instead of the crap ones that the stupid gogio tool creates, and i just set them to ignore on git, point the embeds at the ones that work, and voila
so, 3 hours later, i'm finally in a position to start working on the actual GUI i decided to start working on
thank the Lord i was able to find a path through this abysmal nonsense
presumably once again because gio has such a small, very part time dev group working on it, they are always cocking things up
but i've now got all the latest of everything, without the limitations that made me decide to rage quit the gio slack, after giving them a piece of my mind (this isn't the first time i've complained about their infernal encapsulated but essential parts of their widget toolkit) and it doesn't matter now, i have a path through and i can now build a web app in pure go to interact with #realy
lol, just rewriting one of the functions and he chooses to use two slices, one of strings, one of a structure, and has all this rigmerole for searching the two slices using a fancy new binary search function
fiatjaf, my dude, there's this thing called a map, it does binary searches, you mutex it anyway so you might as well use this funny little data structure that is usually a string and an arbitrary data type, it's called a fucking map
literally 40 lines of code to do what only takes 15, it's such awkward code i got lulled into a trance at first and then snapped out of it when i realised what it was actually doing
doin nothin to change my poor opinion of your ability to write code, this is an abomination
Showing page 1 of
1 pages