libera/#shirakumo - IRC Chatlog
Search
15:53:05
Colleen
<|3b|> i suspect it is generating invalid bmfont files, and probably should be doing some coercing to floats before saving (or not generating non-integer values in general)
15:53:43
Colleen
<shinmera> how do you feel about the other glyph fields? should they stay integers or should they all just be single-floats?
15:53:45
Colleen
<|3b|> though if bmfont is suppose to be integer only, i do want the ability to have float offsets and sizes eventually anyway
15:54:29
Colleen
<shinmera> I doubt there'll be any ints so large that we'd run into precision issues
15:55:10
Colleen
<|3b|> though possibly places where we generate rationals should be generating larger ints and using another field as a global divisor
15:56:43
Colleen
<|3b|> plenty of fraction bits left in 24 bits if we want to do subtexel positions in a 4k texture for example
15:57:55
Colleen
<|3b|> ACTION should find whatever is generating x/10 and make it generate x/8 or x/16 either way :p
16:23:02
Colleen
<|3b|> hmm, all the ones i looked at had floats for the x,y offsets, so possibly something already fixed in generation code
16:26:36
Colleen
<shinmera> I'm guessing it didn't want to depend on a proper float parser and doing the naive tenner division is easy to implement
16:27:29
Colleen
<shinmera> Not sure there's a point to that at all given that no other consumer would even represent or produce numbers that aren't also IEEE floats.
16:28:25
Colleen
<|3b|> well, it would probably be making doubles if it did parse them as floats, so still would need converted :)
17:16:01
Colleen
<|3b|> nah, dev mentions "speed and precision" in an issue comment, so seems somewhat intentional, just has some issues :p
17:16:52
Colleen
<|3b|> and it is a somewhat reasonable choice, as json doesn't specify precision so it could in theory have more bits
17:17:35
Colleen
<|3b|> ACTION isn't sure it is a good default, and in particular the handling of tiny/huge numbers somewhat defeats the speed' part
17:19:30
Colleen
<shinmera> Again, practically zero % of json out there is produced from anything but IEEE floats.
17:19:45
Colleen
<|3b|> coercing ratio input to float when writing also makes the 'precision' argument a lot less convincing
17:20:43
Colleen
<|3b|> ACTION could somewhat see json data having data intended as decimal floats for money, though most of that should probably be using integers anyway
17:26:04
Colleen
<selwyn> the neural network data interchange format has loads of details about precision of floats
19:32:55
Bike
https://github.com/s-expressionists/Cleavir/blob/main/.github/workflows/docs.yml i wrote a little GH workflow to automatically generate a documentation website on push. it's stupid enough that i wouldn't want to generalize/release it as its own thing without some more work, but it functions. and it means you don't have to check the html into the repository, so that's nice.
20:18:37
Colleen
<shinmera> I tend to check in html because I want local copies of the source (such as through ql) to retain the doc
20:19:00
Colleen
<shinmera> But for other sites like portability I used this: https://github.com/Shinmera/portability/blob/master/.github/workflows/rebuild-index.yml
20:20:06
Colleen
<shinmera> For Kandria, which also has the website in a docs/ dir I just have a webhoock on gitea, which calls a specific URL, which then in turn pulls the repo that nginx serves from.
20:41:28
Colleen
<shinmera> Yeah, you need to futz about with tokens for that and every time I have to I have to figure out how to do that
20:41:47
Colleen
<shinmera> iirc the token you have to make has global account access, which is... insane? I don't know why you can't make a token for a single repo
20:44:44
Colleen
<shinmera> yeah. I mean, once you config the token in the repo settings you can't retrieve it anymore, so it's fine
20:44:53
Bike
Github has some new thing for per-repo access in the settings, to replace the PATs, but I've yet to figure it out
20:45:11
Colleen
<shinmera> it honestly annoys me more because every time I'm confused, since I automatically first look on the repo itself