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 2023-04-18 00:00:00Z and 2023-04-19 00:00:00Z
Avatar
Avatar
Robyt3
I'll probably just make the PR when I'm finished. I don't want to wait forever for SDL to get fixed. Without the SDL update, we just don't get the candidate window yet, but all the text input improvements and IME text composition are already good enough for now.
Does the candidate window imply they can use it in Fullscreen if it is rendered by us?
Avatar
I don't think rendering the candidate window would ever be possible
06:01
tons of third-party IMEs just draw their own windows with however methods they want anyway.
Avatar
Avatar
Robyt3
We can only use SDL 2.0.18 or 2.0.20 for IME though, because later version introduce another bug
what did they do to SDL again
Avatar
Avatar
TsFreddie
tons of third-party IMEs just draw their own windows with however methods they want anyway.
But isn't that better for us
06:08
Drawing our own
Avatar
we have to draw our own
06:08
yes
06:09
I thought you mean drawing their window in our own renderer
06:10
there is no way to get the IME's candidate window as a texture AFAIK
06:10
also some IME uses the number differently. but that's pretty rare I suppose.
Avatar
ChillerDragon BOT 2023-04-18 06:35:45Z
there is no logrottate or max txt file size code i could reuse in ddnet code base right?
Avatar
hi chiller
Avatar
ChillerDragon BOT 2023-04-18 06:40:18Z
o/
Avatar
Avatar
Robyt3
I'll probably just make the PR when I'm finished. I don't want to wait forever for SDL to get fixed. Without the SDL update, we just don't get the candidate window yet, but all the text input improvements and IME text composition are already good enough for now.
cool!!!!!
Avatar
Avatar
ChillerDragon
there is no logrottate or max txt file size code i could reuse in ddnet code base right?
I don't think so, we just restart servers daily
Avatar
ChillerDragon BOT 2023-04-18 07:42:03Z
yea took a similar approach for it :) im working on history for my client and instead of append on command i just overwrite on shutdown that also works as a cap
Avatar
Want to follow along with Rust development? Curious how you might get involved? Take a look!
09:05
69 nice
09:10
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
when do they implement raw sockets
Avatar
In Unix-like systems, everything is a file, including sockets, so the way to get raw access to a socket would be to convert it to a file descriptor with AsRawFd 18. From what I understand, Windows distinguishes files and sockets, so there are separate AsRawHandle 2 and AsRawSocket 13 traits for Windows. In both cases the interface is fairly low-level, but Rust is fairly conservative about what goes in its standard library, so higher level abstractions are likely to be in other crates. I suppose raw sockets are also somewhat less commonly used than TCP or UDP sockets, so that may be a factor in why they haven't been given standard library wrappers.
09:22
A trait to extract the raw file descriptor from an underlying object.
Avatar
Avatar
ReiTW
when do they implement raw sockets
use a crate
09:24
i dont see many libs actually
09:24
so this must be not rly useful
Avatar
it is when u want to do lower level stuff
Avatar
i doubt
09:25
a udp or a tcp socket work
09:25
what is it u want to do
Avatar
what if I wanna work with layer2, eg doing arp stuff
09:25
one thing for example I did in C that I wanted to reproduce in Rust is WoL
Avatar
oh there exists a library
09:26
80M downloads
Avatar
obv I could do a udp socket but in C I only had a layer2 header then the magic packet
Avatar
there u go
Avatar
This crate provides as direct as possible access to the system's functionality for sockets, this means little effort to provide cross-platform utilities. It is up to the user to know how to use sockets when using this crate. If you don't know how to create a socket using libc/system calls then this crate is not for you. Most, if not all, functions directly relate to the equivalent system call with no error handling applied, so no handling errors such as EINTR. As a result using this crate can be a little wordy, but it should give you maximal flexibility over configuration of sockets.
09:27
wtf
09:27
is github down
09:28
i get 500
Avatar
M$
Avatar
ah it lags af
09:28
anyway u have the library
Avatar
yes github is ded
Avatar
I also have more trouble with it lately
09:29
Working for me
09:29
Nobos (edited)
Avatar
yes it's fixed now
Avatar
Xd
Avatar
Welcome to GitHub's home for real-time and historical data on system performance.
Avatar
Avatar
Ryozuki
69 nice
if you like numbers, you forgot that it's releasing on 4-20
Avatar
At 11:44
Avatar
hmmm, maybe I shouldn't force pull from my repo when this is outaged troll (edited)
Avatar
Noob filters remain a frequently encountered feature at the moment. This often requires players to repeatedly to do the noobfilter after a failed run, which can be frustrating and time-consuming on certain maps. I've personally experienced this just yesterday after playing through the entire Wonderfully map series. To improve this, I propose introducing a new tile that allows players to bypass the noobfilter section after completing it successfully once. This will enable players to progress t...
Avatar
7c2c5ae Add OnNewSnapshot to component hooks - ChillerDragon 391c127 Merge #6515 - bors[bot]
Avatar
any LUKS user?
12:03
PSA: upgrade your LUKS key derivation function
Avatar
my takeaway was: use a secure password
12:04
Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator. For each word in the passphrase, five rolls of a six-sided die are required. The numbers from 1 to 6 that come up in the rolls are assembled as a five-digit number, e.g. 43146. That number is then...
Avatar
Avatar
heinrich5991
my takeaway was: use a secure password
in the blog it says this tho "His encryption password was supposedly greater than 20 characters and included a mixture of cases, numbers, and punctuation, so in the absence of any sort of opsec failures this implies that even relatively complex passwords can now be brute forced, and we should be transitioning to even more secure passphrases."
12:56
Last October Google engineers decided they would deprecate JPEG-XL support in Chrome over some debated rationale for the move
Avatar
what the hell is jpeg-xl
12:58
and why are these guys acting like a human right was broken
12:58
its hilarious u dont see the issue
12:59
jpeg-xl is a new format, like avif
Avatar
wait what
12:59
@Voxel jpeg itself is a image format optimized for web images
12:59
webs want images to compress efficiently, even if not lossly
13:00
jpeg-xl is an improvement
13:00
like avif
13:00
but avif is patented by google
13:00
google supported jpeg-xl and avif
13:00
google removed jpeg-xl support
Avatar
But avif has hot marketing material
Avatar
I wonder if browsers will ever drop support for anything or will just bloat more and more
Avatar
AVIF encoders need about 100 times as much time to obtain comparable compression to JPEG XL; at a more practical encode speed (say 2-3 times slower than JPEG XL at default effort), AVIF obtains 10 to 15% worse compression than JPEG XL; at the same encode speed, AVIF is not better or even somewhat worse than MozJPEG
Avatar
But google likes it
Avatar
Avatar
Learath2
But google likes it
yeah
13:03
@Voxel the problem here is google has massive power in steering the web
13:03
and they dont let users choose
13:03
read the fsf article
Avatar
Avatar
Ryozuki
AVIF encoders need about 100 times as much time to obtain comparable compression to JPEG XL; at a more practical encode speed (say 2-3 times slower than JPEG XL at default effort), AVIF obtains 10 to 15% worse compression than JPEG XL; at the same encode speed, AVIF is not better or even somewhat worse than MozJPEG
Why would encode speed matter
13:04
Only decompress matters
Avatar
Avatar
Jupstar ✪
Why would encode speed matter
for non-static images
Avatar
Avatar
heinrich5991
for non-static images
Why would it matter for them
13:10
U mean when u built a image on server?
Avatar
Google literally killed off edge by spam breaking youtube to the point where microsoft didn’t feel like investing anymore, absolute demon behaviour
Avatar
Avatar
Jupstar ✪
U mean when u built a image on server?
yes
Avatar
Mh ok
Avatar
Avatar
Jupstar ✪
Why would encode speed matter
Why not? I regularly export hundreds of jpegs at a time when I return from vacations, just because it’s O(1) doesn’t mean it’s not annoying
Avatar
Avatar
Learath2
Why not? I regularly export hundreds of jpegs at a time when I return from vacations, just because it’s O(1) doesn’t mean it’s not annoying
Because 99% of the time u decode images
13:12
The encoded somehow cached
13:12
Esp browsers
Avatar
And at that 1 percent of time when I encode them I’d like them to be snappy too, if it doesn’t cost decode performance
Avatar
Yes that's why decode is the main benchmark here
13:13
If it's 10% faster. Then 15% slower decode sounds sane to me
Avatar
Assuming decode speeds are the same, (because if they weren’t people would be using that argument instead) I’ll take improvements in encode speed as positives
Avatar
I found the property of being able to losslessly compress JPGs furtherly cool
Avatar
The progressive loading also sounded enjoyable
Avatar
Avatar
Learath2
Assuming decode speeds are the same, (because if they weren’t people would be using that argument instead) I’ll take improvements in encode speed as positives
Then for sure
Avatar
Avatar
heinrich5991
I found the property of being able to losslessly compress JPGs furtherly cool
Is cool indeed. But even there it has to compare against a fast lossless format I'd say
13:15
Or does it simply implement 2 algorithms
Avatar
We looked at six aspects of JPEG XL where it brings significant benefits over existing image formats:
>
Lossless JPEG recompression Progressive decoding Lossless compression performance Lossy compression performance Deployable encoder Works across the workflow
Avatar
lmao i forgot to say
13:25
first thing i did when i woke up and before going to work was debug my code (edited)
13:25
heinrich saw it live
Avatar
Are u a pair with him?
13:26
use free software
13:26
La célèbre chanson des hackers libres interprétée pour la énième fois par Richard Stallman, ici en Equateur (décembre 2006).
Avatar
lol my bad
Avatar
Lmao
Avatar
Avatar
Jupstar ✪
Are u a pair with him?
greenthing
Avatar
peertube is agpl-3 licensed (edited)
13:29
chads (edited)
Avatar
https://avif.io/blog/comparisons/avif-vs-jpegxl/ Is this a troll? It sounds like jpegxl is better in anything and their conclusion is that they have more marketing, or what? XD
An in-depth guide on how the brand-new file format AVIF stacks up against its competitor JPEGXL.
Avatar
@Jupstar ✪ its google marketing
13:34
i hope
13:34
firefox keeps support
13:34
and it fragments the web
13:35
the thing is
Avatar
It's just weird that they are like "the competitor is much better, please buy our product" xD
Avatar
mozilla depends a lot on google for funding
13:35
google pays mozzila to have google as primary search engine
Avatar
Yeah
13:36
But tbf most other search engines are still light-years away xd
Avatar
Phoronix: Mozilla Comes Out Neutral On JPEG-XL Image Format Support While JPEG-XL image support has been available opt-in within Firefox Nightly builds for testing, Mozilla has finally weighed in on the JPEG-XL debate and has come out "neutral" on the matter for this modern raster image file format... https://www
13:36
Translating marketing speech to human language: "Our market share is so low whatever we decide is unlikely to change the status of JPEG-XL on the web".
(edited)
13:36
XD
Avatar
JPEG XL doesn't perform well with its appeal, with low-fidelity images looking worse, with more noticeable artifacts in heavily compressed images.
it's not better in everything, according to the linked page
13:38
(seems to be better in most mentioned things though)
Avatar
Yeah also I'd say lofi isn't the most often use case xd
Avatar
the most often use case is blog banners
13:39
xd
13:39
or twitter images
Avatar
Instagram
Avatar
@Jupstar ✪ lmao
14:48
they updated github
Avatar
Design ?
14:50
i guess space is better used
Avatar
not visible to me yet
Avatar
this is how gh may look in the future
Avatar
Looks like mobile
14:52
But maybe cool once u get used to it
Avatar
if u set on the global redesign preview mode
Avatar
Avatar
Ryozuki
if u set on the global redesign preview mode
i dont have it
15:19
i only have navigation redesign preview
15:19
the change is gradual i guess
Avatar
ah
15:20
in combination with "New Code Search and Code View"
15:20
now it looks like in urs
Avatar
not sure if important but the gores map https://heinrich5991.de/teeworlds/maps/maps/Fly_to_the_PlaneTees_66c057ee141263014d02a88b734645fa64a6c2d3a56596cc33513ce8d8ead594.map crashes in editor on planet 1, if u go down a bit /or zoom out enough to see the spot. seems like map is from 2014, u cant open it with "load current map" [(idk anything about the map)] PS: had that problem before some time ago.
Avatar
since color is being talked about in #general , i've been meaning to ask about how colors work
23:45
23:46
what is that color format up top? I thought for a while it was just decimal but it isn't
23:46
also for some reason I used to think you could enter in hex values by doing player_color_body &E01F1F but that actually doesn't give you the right color
Avatar
he said it worked for RGB idk
Avatar
what works for RGB
Avatar
The &e01f1f
Avatar
so &2043030 to get #E01F1F?
23:48
that doesn't work
Avatar
Isn't it just hex to int
23:55
Like you can represent hex color codes like this in micropython: 0xFFFFFF
23:55
And if you write it like that. You can convert it into a number easily.
Exported 182 message(s)