Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2022-07-04 00:00:00Z and 2022-07-05 00:00:00Z
Avatar
rephrase old translation to match new patch

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github...
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@deen hope you can merge it before release 16.2, just realise i uploaded wrong translate file which have 1 translation error
Avatar
Avatar
Patiga
@Jupstar ✪ its this time of the month again!
^^ very hard mystery solved
Avatar
f469c43 Update simplified_chinese.txt - Cheeser0613 7dc0c98 Merge #5552 - bors[bot]
Avatar
If you have been for (or against) Rust in the Linux kernel, get ready for a Linux kernel module written in… Scratch. That’s right. Scratch, the MIT-developed language with blocks popula…
10:06
sueur
10:07
U can now teach ur boy to make kernel modules
Avatar
Avatar
deen
And someone is still redirecting http://ddrace.info/ to us
I do
10:22
@Jupstar ✪ the one definition rule also applies to non-member static stuff?
Avatar
Avatar
louis
in case there are large skips in a map
I guess the only reason for this is if parts of a map can be done out of order. But skips would normally only lead to checkpoints with higher number but not to lower, then higher again. But if nobody has concerns about it I can implement it. (edited)
10:41
That would also help, if mappers accidentally placed the checkpoints in wrong order.
Avatar
that's probably mitigated by the testing process
10:41
but yes, I also see no concerns to allow checkpoints out of order
Avatar
Does anyone know if pdfs can be encoded with anything else than utf8
11:15
Implementing a parser in rust with nom atm
Avatar
wdym, utf8 encoding in pdfs?
11:29
the text parts?
11:30
the pdf objects themselves can be compressed and definitely aren't valid utf-8 anymore in that case
Avatar
Avatar
heinrich5991
@Jupstar ✪ the one definition rule also applies to non-member static stuff?
Only if u do jumbo builds
Avatar
I mean the strings for example
11:41
Ik streams can be anything
Avatar
haven't found a good source; it seems you can have encodings different from utf-8, I haven't found that you can actually use utf-8
11:45
"MacRomanEncoding", "WinAnsiEncoding"
Avatar
Avatar
cheeser0613
@deen hope you can merge it before release 16.2, just realise i uploaded wrong translate file which have 1 translation error
sure
12:48
PDF supports one fundamental string object (see 7.3.4, "String Objects"). The string object shall be further qualified as a text string, a PDFDocEncoded string, ASCII string, or byte string. The further qualification reflects the encoding used to represent the characters or glyphs described by the string
12:48
all encodings should burn in hell and only utf8 exist thanks for coming to my ted talk
12:49
Sadge
Avatar
Quickly delete it or someone will come tell you about the benefits of utf32 and how ram is cheap
Avatar
The #server-bridge channel on my server contains over 5 million messages, and if I try to search anything in there, it wont show newer results than 06.06.2022 :D
13:25
It seems to be very broken, lol
13:27
Even without any filter, it does only show messages up to 06.06.
Avatar
the internet forgets
Avatar
fixes #5551

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresss...
Avatar
edc79e4 Fix skindownload by only allowing move assignments - Jupeyy b955d68 Merge #5553 - bors[bot]
Avatar
ive been using scratch since forever, so thats like, my only fluent coding language
Avatar
Avatar
GitHub
Click to see attachment 🖼️
Rule of Three, learned something new. Thanks for the fix. @Jupstar ✪ (edited)
Avatar
Avatar
ReiTW
sueur
is that Manuel Valls?
Avatar
i gave up on making a pdf parser
19:12
too much work and too little time
19:13
but nom the library is rly gud
Avatar
Avatar
Chairn
is that Manuel Valls?
YES
Avatar
Avatar
Learath2
Quickly delete it or someone will come tell you about the benefits of utf32 and how ram is cheap
utf8 & utf16 are best, #5490 & #4348 & #4111 & #3938 & #3331 & #3285 & #2742 & #2724 & #2534 & #1423 & #1396 & #231 agree sry for github spam, you can ban me now
19:22
nice github ignores
19:23
lets just force english only
19:23
and do no encoding
Avatar
"no encoding"
19:23
you mean ascii
19:23
that's pretty widely supported, yes
Avatar
My initial message actually had s/someone/jupstar/
Avatar
and I think those issues rather speak volumes to the bad encoding support of C/C++, not UTF-8
Avatar
I know my audience
Avatar
i only saw it bcs ryozuki talked about a PDF parser
19:24
well variable lengthed stuff simply sucks to deal with
Avatar
utf-32 doesn't help you with that
19:25
you have combining accents etc.
Avatar
yeah if you pro enough to respect it xD
19:25
we dont do it
Avatar
But not using a billion tb of ram simply rocks
Avatar
our game still works
Avatar
Avatar
Jupstar ✪
yeah if you pro enough to respect it xD
I think you still need to atleast skip that
Avatar
Avatar
Learath2
But not using a billion tb of ram simply rocks
xDDD
Avatar
Avatar
Learath2
I think you still need to atleast skip that
not really
19:26
its one by one codepoints
Avatar
what do you gain from that?
Avatar
from what
Avatar
having codepoints one by one in an array
Avatar
its fixed length
Avatar
you say that like it's some directly desirable goal
19:27
I don't see that
Avatar
You can't even index into that properly either, no? Chopping utf32 at the end accidentally still breaks strings too
Avatar
rust also cannot handle grapheme clusters, i dunno what we talk about rn
Avatar
@Jupstar ✪ there's a grapheme clusters crate
Avatar
Avatar
Learath2
You can't even index into that properly either, no? Chopping utf32 at the end accidentally still breaks strings too
but why also dont support it rn
Avatar
yes, but why is utf-32 beneficial?
Avatar
bcs u know the str length directly
19:29
u can access code points directly
Avatar
string length doesn't exist, unless you specify what you mean by it
Avatar
Do you? I think accents break that too
Avatar
I don't know a single use case for 'direct code point access'
Avatar
only grapheme clusters
19:29
we dont use them
19:30
the characters also exists as "normal" character
19:30
single code point
Avatar
only those that were also present in legacy encodings
19:30
AFAIK
Avatar
i mean if we want smiley support maybe 😄
Avatar
but you haven't told us yet what access to 'number of codepoints' helps
Avatar
[9:28 PM] heinrich5991: yes, but why is utf-32 beneficial? [9:29 PM] Jupstar: bcs u know the str length directly [9:29 PM] Jupstar: u can access code points directly
Avatar
yes
Avatar
these don't sound like end goals, so what do they enable? (edited)
Avatar
performance ez
Avatar
okay, tell me a thing where they enable more performance
Avatar
u dont need to decode
19:32
just pass to freetype
Avatar
you need to decode at some point. why is 'string rendering' a bad place for it?
Avatar
freetype accepts utf32 codepoints
Avatar
yes. you need to encode your string into utf32 at some point
19:33
why is 'string rendering' a bad place for that?
Avatar
what do you want to encode?, our rendering still doesnt support multiple characters
Avatar
you said you need to encode your string into utf32 to pass it to freetype
19:34
so at some point in the program that needs to happen
19:34
why is 'string rendering' a bad place for it?
Avatar
well but we only support single codepoints and they fit into utf32 without encoding
19:34
have u seen utf32 code in our code?
Avatar
we seem to be talking massively past each other
19:35
freetype accepts strings as utf-32, according to you, right?
Avatar
yes and our utf8 decode results in exactly the same value
Avatar
okay, so we need to perform the string conversion into utf-32 (that we currently also perform) at some point in our program
Avatar
no
Avatar
do we currently perform a string conversion into utf-32?
Avatar
well only once at IO level
Avatar
so yes
Avatar
if we dont make the IO also use utf32
19:36
yeah but whats faster, once or every frame?
Avatar
I don't actually know
Avatar
RAM is free af xd
Avatar
depends on the cache effects of strings being 4 times as large
Avatar
well cache, what cache, L3?
19:37
l1 wont fit most strings anyway
19:37
also not utf8
Avatar
but it'll fit up to 4 times as many strings
Avatar
yeah, but teeworlds is no text editor
19:38
take 1000 chat msg
19:39
and u are still around 1MByte only
Avatar
but you just claimed that using more cache for strings makes the program faster than decoding them on-the-fly
19:39
how is 'teeworlds is no text editor' a retort to this?
Avatar
i mean with that, its not using like 3000000 lines of code or smth
19:40
u know its not an hard edge case
Avatar
yes
Avatar
but go ahead do benchmarks, i bet against utf8 😄
Avatar
great, then we'll just do what most programs do and use utf-8
19:40
since we're not an edge case
Avatar
so we do what most programs do and use a software renderer?
19:41
or console rendering? xd
19:42
well anyway, i only trust benchmarks, and discussing such topics is annoying.
Avatar
you started it ^^
19:42
you proclaimed that using utf-32 would be faster
Avatar
and safer
19:43
yes
Avatar
(I haven't seen a benchmark, but I'm googling)
Avatar
Avatar
Jupstar ✪
and safer
"i only strust benchmarks"
19:43
where's your benchmark?
Avatar
the issues i posted
Avatar
where does it say that utf-8 is slower?
Avatar
slower in coding right stuff
19:43
and concentrate into improving vulkan afterwards
Avatar
okay, so you didn't intend to make a call about runtime performance
Avatar
for more fps
Avatar
fine
Avatar
well i did obviously, code correctness is always top prio
19:44
without that your performance is not worth it
Avatar
I don't understand
19:44
are you making a claim about runtime performance?
Avatar
yeah sure
Avatar
if so, where's the benchmark?
Avatar
i bet its faster for us
Avatar
you claimed you only trust benchmarks
Avatar
yes, have i implemented utf32 yet?
Avatar
okay, so that's a claim without a benchmark
19:45
I see
Avatar
i have no benchmarks, i say i bet against utf8
19:45
no
19:45
i said that
Avatar
Avatar
Jupstar ✪
but go ahead do benchmarks, i bet against utf8 😄
here
19:46
bet != proof
Avatar
[9:42 PM] Jupstar: well anyway, i only trust benchmarks, and discussing such topics is annoying. [9:42 PM] heinrich5991: you started it ^^ [9:42 PM] heinrich5991: you proclaimed that using utf-32 would be faster [9:42 PM] Jupstar: and safer
Avatar
yeah i still claim it, but i cannot proof the claim
19:47
i am not saying it's a MUST
Avatar
okay 🙂
19:53
I was probably too confrontative. sorry @Jupstar ✪ 😦
Avatar
utf8 is the best
20:03
>
The number of code units per Unicode character is variable, because not all characters are in the BMP. Until emoji became popular, this didn't affect many apps in day-to-day use. These days, certainly for messaging apps and the like, developers using UTF-16 really need to know about surrogate pairs.
>
For plain ASCII (which a lot of text is, at least in the west) it takes twice the space of the equivalent UTF-8 encoded text.
Avatar
when utf-64 ?
21:05
is that even enough for all diacritic combination ?
21:05
not even sure 😄
Avatar
utf128 we can use vector instructions
Avatar
have you already forgotten about the blessed mmx instruction set 😄
Exported 186 message(s)