OnlineGo icon indicating copy to clipboard operation
OnlineGo copied to clipboard

Embed Katago

Open bqv opened this issue 1 year ago • 6 comments

This, at best, is my vague attempt at adding katago to the build process, because I had a need to update the binaries bundled in this repository. I've added a module :engines:katago which does build and drop outputs into engines/katago/build/intermediates/cxx/.../..., but I cannot for the life of me figure out yet how to convince gradle to put those into the right place.

It also makes the AI use flows rather than rxjava, and enables the "duringSearch" mechanism now available so the response waits are less jarring for all the AI operations except for makeMove, because that would maybe serve as an unrequested hint.

Goes well nicely with #171

bqv avatar Oct 14 '23 21:10 bqv

Not sure what you're trying to achieve, is it building katago from source? That would be great, but keep in mind that whatever that guy did that created this binary makes katago very fast on mobile. Any attempt at building from source yielded a binary that was 10 times slower. Sadly, that guy is really annoying and refuses to publish his project open-source, even though he's basically milking katago (which IS open-source).

acristescu avatar Nov 13 '23 13:11 acristescu

Interesting. Where did you get the binary, out of interest? I haven't noticed much performance penalty unless I use bigger nets, but my phone is quite powerful I guess

bqv avatar Nov 13 '23 14:11 bqv

Interesting. Where did you get the binary, out of interest? I haven't noticed much performance penalty unless I use bigger nets, but my phone is quite powerful I guess

@bqv see here: https://github.com/lightvector/KataGo/issues/321

The repo itself is https://github.com/aki65/aki65.github.io the guy is charging $15 for taking an existing open-source Android app (LazyBaduk) and baking open-source Katago into it without even making the build script open-source. At some point he changed something in the protocol so I couldn't get recent versions to work at all.

acristescu avatar Nov 15 '23 15:11 acristescu

Interesting. Where did you get the binary, out of interest? I haven't noticed much performance penalty unless I use bigger nets, but my phone is quite powerful I guess

@bqv see here: lightvector/KataGo#321

The repo itself is https://github.com/aki65/aki65.github.io the guy is charging $15 for taking an existing open-source Android app (LazyBaduk) and baking open-source Katago into it without even making the build script open-source. At some point he changed something in the protocol so I couldn't get recent versions to work at all.

There is no android katago executable in there.

francogrex avatar Jan 07 '24 18:01 francogrex

Interesting. Where did you get the binary, out of interest? I haven't noticed much performance penalty unless I use bigger nets, but my phone is quite powerful I guess

@bqv see here: lightvector/KataGo#321 The repo itself is https://github.com/aki65/aki65.github.io the guy is charging $15 for taking an existing open-source Android app (LazyBaduk) and baking open-source Katago into it without even making the build script open-source. At some point he changed something in the protocol so I couldn't get recent versions to work at all.

There is no android katago executable in there.

Oh, yes there is, but the guy renamed it private.mp3. Of course he did, he's basically stealing. Just go to releases, grab the APK, unzip it, and look into assets. Yeah, that's totally an MP3 he got there, definitely not a stolen copy of katago. 🙄

acristescu avatar Jan 08 '24 10:01 acristescu

Interesting. Where did you get the binary, out of interest? I haven't noticed much performance penalty unless I use bigger nets, but my phone is quite powerful I guess

@bqv see here: lightvector/KataGo#321 The repo itself is https://github.com/aki65/aki65.github.io the guy is charging $15 for taking an existing open-source Android app (LazyBaduk) and baking open-source Katago into it without even making the build script open-source. At some point he changed something in the protocol so I couldn't get recent versions to work at all.

There is no android katago executable in there.

Oh, yes there is, but the guy renamed it private.mp3. Of course he did, he's basically stealing. Just go to releases, grab the APK, unzip it, and look into assets. Yeah, that's totally an MP3 he got there, definitely not a stolen copy of katago. 🙄

yes I know that the .mp3 is a tgz file but even when you unzip there is no katago in the archive that i can see

francogrex avatar Jan 08 '24 15:01 francogrex