Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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 2024-05-08 00:00:00Z and 2024-05-09 00:00:00Z
Avatar
ws-client BOT 2024-05-08 01:01:33Z
<ChillerDragon> @heinrich5991 fyi i will give editor text typing another go now
01:02
<ChillerDragon> trying to finally clean up that old stale issue of mine https://github.com/ddnet/ddnet/issues/3570
Im 'corneum suggested to add keyboard typing support for font mapres (chillerbot#12) I quickly hacked it together and its somewhat working in my custom client. https://zillyhuhn.com/OpenTube/vi...
Avatar
Follow up to https://github.com/ddnet/ddnet/pull/3602 Press ctrl+t to enter text mode and place font letters based on keyboard presses. The user has to select the letter A and the number 1 manually once for every layer. The selection opens the tile picker and the user has to click with the mouse. This offset is lost when the map is closed. https://github.com/ddnet/ddnet/assets/20344300/a292c99e-3b5a-44d0-b4e8-1ff7df5f7f69 There is a known issue of the rendering not always updat...
Avatar
3a48b8e Revert "Initialize all ghost item member (Closed #8297)" - heinrich5991 8a64fea Remove RGB images from the map file format - heinrich5991 587b545 Merge pull request #8327 from heinrich5991/pr_ddnet_revert_initialize_variables - def- f214c11 Merge pull request #8326 from heinrich5991/pr_ddnet_no_map_image_rgb - def-
Avatar
Avatar
GitHub
Click to see attachment 🖼️
All that and it still broke hahaha
Avatar
Avatar
Sans
How exactly does it go from pink to blue idk, and I've spent 2 hours trying to figure it out I need help ;-;
The hue value is not correct, teeworlds/ddnet color components are in the range 0-255, but the tool you are using uses hue from 0-359. 206 / 255 * 360 = 290
Avatar
Ah yes, diagonal colors
Avatar
Avatar
Robyt3
The hue value is not correct, teeworlds/ddnet color components are in the range 0-255, but the tool you are using uses hue from 0-359. 206 / 255 * 360 = 290
Wait, so the tool just adds the remainer of the number exceeding 255 as the result then?
08:34
Or what that calculation represents? 206 as the value you want, divided by the max value of hue, multiplied by the tool's max hue value?
Avatar
Avatar
Cellegen
Or what that calculation represents? 206 as the value you want, divided by the max value of hue, multiplied by the tool's max hue value?
yes, it's how to get the correct hue value for the tool
08:35
probably this one, given the similarity of the UI: https://hslpicker.com/
08:36
makes sense then owo
08:37
basically percentage convertion between 255 and 360, using the base value.
08:38
Ah, so what the guy wanted, converting the color code to hsl... shit even I had trouble with it sometimes
Avatar
ws-client BOT 2024-05-08 08:59:47Z
<ChillerDragon> > All that and it still broke hahaha
08:59
<ChillerDragon> @fokkonaut all wat? xd
09:00
<ChillerDragon> There isn't even a 0.7 connecting to the server check in the CI it would have caught it.
Avatar
Avatar
ws-client
<ChillerDragon> @fokkonaut all wat? xd
all that work and effort and political discussions
Avatar
ws-client BOT 2024-05-08 09:01:01Z
<ChillerDragon> you mean mine?
Avatar
in order to be broken by a pr which fixes something
Avatar
Avatar
ws-client
<ChillerDragon> you mean mine?
yes for 0.7
09:01
Wait is it even through?
09:01
or why did u create an issue
Avatar
ws-client BOT 2024-05-08 09:01:31Z
<ChillerDragon> no
09:01
<ChillerDragon> i spend most time client side
09:01
<ChillerDragon> only a bit of lobbying which got lerato and timakro to implement the server side
Avatar
Ah this is about 0.7 client not working
Avatar
ws-client BOT 2024-05-08 09:01:57Z
<ChillerDragon> and the server side is what broke
09:02
misunderstood
Avatar
Avatar
Robyt3
The hue value is not correct, teeworlds/ddnet color components are in the range 0-255, but the tool you are using uses hue from 0-359. 206 / 255 * 360 = 290
I didn't even notice the hue is capped at 255
Avatar
ws-client BOT 2024-05-08 09:02:14Z
<ChillerDragon> imagine my pr getting merged xd
Avatar
hi chiller
Avatar
Comic Sans MS
Avatar
ws-client BOT 2024-05-08 09:02:47Z
<ChillerDragon> but ye fokko i tried to lobby a bit for the ddnet server bridge to happen in the first place
Avatar
did u ?
Avatar
ws-client BOT 2024-05-08 09:02:57Z
<ChillerDragon> not sure if my lobbying did help to make it happen tho
Avatar
2 of the greatest ddnet minds, teach me thine ways
Avatar
ws-client BOT 2024-05-08 09:03:15Z
<ChillerDragon> i made some youtube videos and did mention 0.7 on discord
09:03
<ChillerDragon> trying to make it seem relevant
Avatar
Avatar
ws-client
<ChillerDragon> i made some youtube videos and did mention 0.7 on discord
ah ye, the pioneer
Avatar
Avatar
Sans
2 of the greatest ddnet minds, teach me thine ways
😘
Avatar
ws-client BOT 2024-05-08 09:03:37Z
<ChillerDragon> you too
09:03
<ChillerDragon> i would also argue that i also influenced you in trying 0.7
Avatar
yes u did
09:04
kek
Avatar
ws-client BOT 2024-05-08 09:04:13Z
<ChillerDragon> and you then influenced ddnet possibly
09:04
<ChillerDragon> idk
09:04
ddnet7 port
Avatar
ws-client BOT 2024-05-08 09:04:39Z
<ChillerDragon> or maybe it was just timakro in his moms basement chilling in the teeworlds race bubble never having heard of my lobby attempts
Avatar
ws-client BOT 2024-05-08 09:04:49Z
<ChillerDragon> idk
Avatar
@cyberFighter ghost writer
Avatar
ws-client BOT 2024-05-08 09:05:12Z
<ChillerDragon> hi sans
Avatar
uhr uhr uhr uhr
Avatar
ws-client BOT 2024-05-08 09:05:26Z
<ChillerDragon> cyberfig
Avatar
Avatar
fokkonaut
yes u did
get well soon
Avatar
cyberfigger
Avatar
Avatar
cyberFighter
get well soon
hm?
Avatar
ws-client BOT 2024-05-08 09:06:40Z
<ChillerDragon> LNK2019
09:06
<ChillerDragon> windows compiling logs always look so ugly xd
Avatar
Avatar
Robyt3
So uses of cargo would need to be replaced with cargo ndk -t aarch64-linux-android (with the respective arch) (edited)
This fixed the linking errors poggers now it's time for gradle errors pepeW
Avatar
ws-client BOT 2024-05-08 09:07:48Z
<ChillerDragon> android gaming powered by robsti?
09:08
<ChillerDragon> that one dude who has like 90k points on ddnet and does like tripple drag pseudofly without ever having touched a mouse and keyboard in his life will thank you robsti
09:08
<ChillerDragon> he is still stuck in ddnet 6.2.3
Avatar
no one has 90k points
Avatar
ws-client BOT 2024-05-08 09:09:02Z
<ChillerDragon> i may have used the stylistic device hyperbole in that sentence
Avatar
theres someone playing on android?
09:09
like actually playing ?
Avatar
ws-client BOT 2024-05-08 09:09:15Z
<ChillerDragon> yes
Avatar
ws-client BOT 2024-05-08 09:09:20Z
<ChillerDragon> like never tried desktop
Avatar
impossible
Avatar
ws-client BOT 2024-05-08 09:09:29Z
<ChillerDragon> and having more points than me ._.
Avatar
anytime you walk it automatically jumps
Avatar
Avatar
ws-client
<ChillerDragon> and having more points than me ._.
lmao 💀
Avatar
ws-client BOT 2024-05-08 09:09:51Z
<ChillerDragon> and he mentioned once that he would really appreciate an client update
09:09
<ChillerDragon> so its really epic that robsti works on it
09:10
<ChillerDragon> robsti and jopsti androiders
Avatar
chinese players found pc to be too easy KEKW
Avatar
Avatar
fokkonaut
anytime you walk it automatically jumps
hes doing it without the left joystick so it doesnt count in my eyes
09:10
not real mobile ddnet
Avatar
ws-client BOT 2024-05-08 09:10:55Z
<ChillerDragon> what does he use instead?
Avatar
btw maybe cuz chinese people have more time on phones, thats the reason they want android version
Avatar
he uses 3 buttons
Avatar
only 3??
09:12
jump, hook, hammer?
Avatar
ws-client BOT 2024-05-08 09:12:56Z
<ChillerDragon> yea imagine finishing a ddnet map without 20 emote binds
Avatar
no he uses 3 buttons for movement
09:13
the fuck are you smoking
09:13
left jump and right
09:13
instead of the joystick
Avatar
Avatar
cyberFighter
the fuck are you smoking
warning
09:14
inappropiate use of language
Avatar
ok mr fork on these nuts
Avatar
ws-client BOT 2024-05-08 09:15:26Z
<ChillerDragon> forkonaut xd
Avatar
cyberForker 🍴
Avatar
btw i played ddnet on a car multimedia
09:16
it sucked xd
Avatar
There's no vacuum cleaner emoji
09:17
🪠
Avatar
whats up fokkonaut
Avatar
do you know updog?
Avatar
wtf is updog???
Avatar
the sky
09:18
duhh
Avatar
Avatar
Ewan
wtf is updog???
Not much, just chilling
09:19
eating pretzels and watching tv on my way to sleep
Avatar
Nice
09:19
what time is it
Avatar
am ?
Avatar
bruh
09:19
its 1120 here
09:20
am
09:20
maybe tim will respond soon
Avatar
Who?
09:20
need help with unique db
Avatar
usa is disconnected from the race ranks db
09:21
i can technically take auth from can servers but idk if he would want that
09:21
so i wait for response
Avatar
i got 2kg of whey protien
09:21
justatest
Avatar
buying in bulk is always more cheap right
Avatar
usually yea
09:22
depends on where tho
Avatar
about to smoke a legal joint in Germany👍
Avatar
hell yeah
09:22
i used to casually smoke on weekends with friends
Avatar
11:20 AM wednesday weed hits the best
Avatar
but i dont rly like it i think
Avatar
Avatar
Ryozuki
but i dont rly like it i think
thats good
Avatar
it makes me feel like im losing my time
Avatar
cuz u literally become dumb
Avatar
cant be productive
Avatar
yes, if u overdo it
Avatar
i think u become dumb the next day
Avatar
+ dont take so much
Avatar
usually im just happy but usually similarly sharp
09:23
when just idly high
Avatar
dont do it everyday then its fine, like only at a weekend and just if u have time and want to do it
09:23
for relaxation etc
Avatar
ws-client BOT 2024-05-08 09:24:27Z
<ChillerDragon> any windows cmake enjoyer wants to test if my project builds on your machine? :D
09:24
send
Avatar
ws-client BOT 2024-05-08 09:24:41Z
A simple Minecraft clone written in C using modern OpenGL (shaders). - ChillerDragon/Craft
09:24
<ChillerDragon> ty babe
09:24
<ChillerDragon> make sure to clone recursive it builds dependencies from source
09:25
<ChillerDragon> no blobs involved
09:25
<ChillerDragon> whats your favorite build workflow ewan? how do you build ddnet?
Avatar
in ide i press play button
Avatar
ws-client BOT 2024-05-08 09:25:47Z
<ChillerDragon> yes i am hoping that works here as well
Avatar
on cmdline i do cmake -B build && cmake --build build
09:27
i think u should change your submodules to work over https so that i dont need proper auth
09:27
over ssh
Avatar
ws-client BOT 2024-05-08 09:28:44Z
<ChillerDragon> is it different than ddnet?
09:29
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
09:29
<ChillerDragon> oh yes
09:29
<ChillerDragon> ok sure i can do that
Avatar
iadded ssh key anyway
09:32
idk how i didnt have one already
Avatar
Just had a call with my instructor, I might be able to go to france in September
09:33
oh no
Avatar
build fail
Avatar
mine worked 🚬
Avatar
chiller u building glfw from source
09:34
crazy
Avatar
Avatar
Ewan
crazy
joke
Avatar
ws-client BOT 2024-05-08 09:34:22Z
<ChillerDragon> ye ikr xd
Avatar
it wants real msvc windres feelsbadman
Avatar
ws-client BOT 2024-05-08 09:34:31Z
<ChillerDragon> wat
Avatar
gnu windres doesn't have arg it wants
Avatar
ws-client BOT 2024-05-08 09:34:40Z
<ChillerDragon> send erro
Avatar
hey, is it possible to declare variables like dis in nasm? or they all have to be in .data section 😦
Avatar
ws-client BOT 2024-05-08 09:35:04Z
<ChillerDragon> fokko wat instructor
Avatar
apprenticeship
Avatar
ws-client BOT 2024-05-08 09:35:36Z
<ChillerDragon> cool
Avatar
very cool
Avatar
right
Avatar
ws-client BOT 2024-05-08 09:35:40Z
<ChillerDragon> how long?
Avatar
2 weeks
Avatar
im applying for apprenticeship program rn
09:35
tests are intensive
Avatar
ws-client BOT 2024-05-08 09:35:52Z
<ChillerDragon> ewan wats erro
Avatar
Avatar
Ewan
tests are intensive
:D
Avatar
it's cooking
Avatar
ws-client BOT 2024-05-08 09:36:09Z
<ChillerDragon> i thought it failed
09:36
hold on
Avatar
have to parse command line gobbletygook without highlighting
09:36
for whatever reason
Avatar
ws-client BOT 2024-05-08 09:37:01Z
<ChillerDragon> wat xd
09:37
this is all output
09:37
there are a few things here
Avatar
ws-client BOT 2024-05-08 09:37:39Z
<ChillerDragon> This content is no longer available.
09:37
hold on
Avatar
ws-client BOT 2024-05-08 09:37:57Z
<ChillerDragon> irc bullying
Avatar
ws-client BOT 2024-05-08 09:38:27Z
<ChillerDragon> john com xd
Avatar
my boy john
09:38
lets me use his upload server
Avatar
ws-client BOT 2024-05-08 09:38:43Z
<ChillerDragon> those are just warnings no?
09:38
<ChillerDragon> lgtm
09:38
<ChillerDragon> who is john xd
Avatar
my friend
09:38
from another land
09:39
uhh i cut off the last line
09:39
ninja: build stopped: subcommand failed.
09:39
😃
Avatar
ws-client BOT 2024-05-08 09:39:23Z
<ChillerDragon> xd
09:39
<ChillerDragon> maybe its glfw
09:39
<ChillerDragon> D:\msys64\ucrt64\bin\windres.exe: invalid option -- s
Avatar
ws-client BOT 2024-05-08 09:39:44Z
<ChillerDragon> you ran cmake?
Avatar
ws-client BOT 2024-05-08 09:39:49Z
<ChillerDragon> or did you use vs play button?
09:39
windres converts windows .rc into .o
Avatar
chiller u kinda matured as a dev huh ?
Avatar
ws-client BOT 2024-05-08 09:40:08Z
<ChillerDragon> not sure fok
09:40
<ChillerDragon> a bit maybe
Avatar
ill try vs feelsbadman
Avatar
haha, you try
Avatar
Ewans using qt right ?
Avatar
im using terminal
Avatar
but its cool x)
Avatar
msys2 for building
Avatar
ws-client BOT 2024-05-08 09:40:40Z
<ChillerDragon> nah msys2 is chot
09:40
<ChillerDragon> go full windows
09:40
<ChillerDragon> you have vs?
Avatar
yes i have but it sucks
Avatar
ws-client BOT 2024-05-08 09:40:54Z
<ChillerDragon> fok wat makes you think i progressed? xd
Avatar
ok we let it cook now
Avatar
ur very active in this channel, u do many prs etc and u gained a lot of knowledge in several fields i think
Avatar
I'll try it aswell when im Home (approx 4 hours tho) monkaStop
Avatar
chiller are u looking for curl thru find_package?
09:42
ah let me just open it
Avatar
ws-client BOT 2024-05-08 09:42:23Z
<ChillerDragon> ye but find_package should find the local one
Avatar
sun is burning in my neck
Avatar
ws-client BOT 2024-05-08 09:43:41Z
<ChillerDragon> ok beach time
09:43
<ChillerDragon> thanks a lot for testing @Ewan <3
09:43
<ChillerDragon> i will investigate that error message some day
Avatar
u probably want HINTS in ur find_package
Avatar
ws-client BOT 2024-05-08 09:44:25Z
<ChillerDragon> idk wat it is
09:44
<ChillerDragon> but go pr i merge xd
Avatar
ur probably using system curl if it succeeds on ur end
Avatar
ws-client BOT 2024-05-08 09:44:58Z
<ChillerDragon> i made it work with local and system on my machine
09:45
<ChillerDragon> i think xd
09:45
<ChillerDragon> and i made it work with local in the github actions windows CI
09:45
<ChillerDragon> you seem to be failing on glfw not on curl
Avatar
im on vs now
09:46
it succeeded on msys because it was presumably finding system curl
Avatar
ws-client BOT 2024-05-08 09:46:42Z
<ChillerDragon> can you run the craft.exe ?
09:47
build fails on both
09:47
but at least msys finds curl xd
Avatar
ws-client BOT 2024-05-08 09:47:12Z
<ChillerDragon> xd
09:47
<ChillerDragon> sadge
Avatar
so i wonder why u opt to build curl first and then link to it
Avatar
ws-client BOT 2024-05-08 09:47:35Z
<ChillerDragon> i was expecting that getting it to pass in the github CI was only the first step but did not expect it to be that bad
Avatar
instead of just building it in source
Avatar
ws-client BOT 2024-05-08 09:47:57Z
<ChillerDragon> wdym building it in source?
Avatar
include the headers from the source
Avatar
ws-client BOT 2024-05-08 09:48:18Z
<ChillerDragon> i need to compile the lib
09:48
<ChillerDragon> its not a header only thing
09:48
so include curl sources
09:48
in cmake
09:48
lolol not in ur cpp
Avatar
ws-client BOT 2024-05-08 09:49:03Z
<ChillerDragon> it has its own cmakelists.txt
09:49
<ChillerDragon> i dont wanna replicate their whole build settings
09:49
<ChillerDragon> just call it
09:49
<ChillerDragon> i feel like thats how it is supposed to be done
09:49
<ChillerDragon> anyways im getting late for beach bye
09:49
<ChillerDragon> thanks a lot again
Avatar
Now i wanna try aswell, Break me free of my chains, let me Go Home feelsbadman
Avatar
try what
Avatar
Build chillers stuff on windows
09:58
chiller rly
Avatar
it's building libcurl.dll
10:11
and iirc curl can't be built statically through cmake
Avatar
Avatar
Ewan
Click to see attachment 🖼️
set(CMAKE_C_STANDARD 99) set(gcc_like_cxx "$<COMPILE_LANG_AND_ID:C,ARMClang,AppleClang,Clang,GNU>") set(msvc_cxx "$<COMPILE_LANG_AND_ID:C,MSVC>") add_compile_definitions( "$<${gcc_like_cxx}:$<BUILD_INTERFACE:-O3>>" "$<${msvc_cxx}:$<BUILD_INTERFACE:/02>>" ) but here's the portable version of this
10:12
and if ur building it yourself i would just advise foregoing find_package
10:12
just link_libraries
10:12
since you're already including the headers
10:13
im going to bed
10:13
maybe melon can crack it
Avatar
Avatar
Ewan
maybe melon can crack it
I'll try lol
10:15
Gn!
Avatar
[build] cl : befehlszeile warning D9002: Unbekannte Option "-std=c99" wird ignoriert. [C:\Users\Anwender\Projects\Craft\build\craft.vcxproj] [build] cl : befehlszeile warning D9002: Unbekannte Option "-O3" wird ignoriert. [C:\Users\Anwender\Projects\Craft\build\craft.vcxproj] kek also yeah just use precompiled binaries for libcurl i guess. anway CHILLER it works. (edited)
11:02
11:03
good game 11/10 (edited)
Avatar
Msvc really is a Bully for Splitting Up every single build target Up into 20 subdirectories thus Not correctly linking stuff
Avatar
question: if u want to go from u8 to i32, do you sign extend or zero extend
11:55
it should bezero i think right?
Avatar
if I go from 255_u8 to i32, I expect 255_i32
11:56
so zero-extend
Avatar
ok i had a bug xd
Avatar
Avatar
meloƞ
good game 11/10 (edited)
Minetest is better
Avatar
Avatar
Ryozuki
question: if u want to go from u8 to i32, do you sign extend or zero extend
Isn't zero-extend the same as sign-extend on u8, as the only sign is positive, where you would zero-extend?
Avatar
They're also read as big-endian integers now. Thanks to @ChillerDragon for noticing. Fixes #8330.

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] ...
Avatar
in general I'd always expect sign-extend I think
Avatar
Avatar
Patiga
Isn't zero-extend the same as sign-extend on u8, as the only sign is positive, where you would zero-extend?
the CPU doesn't care about u8 vs i8, generally. that means "sign-extend" will extend the highest bit from the u8, effectively treating it like an i8
Avatar
ah, I thought we were talking in the context of a compiler
Avatar
I guessed it was about emitting instructions to the CPU, in a compiler
👍 1
Avatar
hm yea these terms seem to map directly to cpu instructions, so I'll go with your interpretation ^^
12:29
well it was about emitting llvm ir intrustions but yes
12:30
llvm also doesnt care about u8 or i9
12:30
i8
Avatar
Progress. Map rendering still broken though
poggers2 3
Avatar
Avatar
Robyt3
Progress. Map rendering still broken though
amazing, wow 😮
13:09
that seems like half the way already
Avatar
How is GEP different from ptrtoint, arithmetic, and inttoptr? It’s very similar; there are only subtle differences. With ptrtoint, you have to pick an integer type. One approach is to pick i64; this is safe on everything LLVM supports (LLVM internally assumes pointers are never wider than 64 bits in many places), and the optimizer will actually narrow the i64 arithmetic down to the actual pointer size on targets which don’t support 64-bit arithmetic in most cases. However, there are some cases where it doesn’t do this. With GEP you can avoid this problem. Also, GEP carries additional pointer aliasing rules. It’s invalid to take a GEP from one object, address into a different separately allocated object, and dereference it. IR producers (front-ends) must follow this rule, and consumers (optimizers, specifically alias analysis) benefit from being able to rely on it. See the Rules section for more information. And, GEP is more concise in common cases. However, for the underlying integer computation implied, there is no difference.
13:17
interesting
Avatar
c211e87 Fix 0.7 tokens after #8322 - heinrich5991 3887eea Merge pull request #8332 from heinrich5991/pr_ddnet_fix_token_7 - heinrich5991
Avatar
Avatar
Ryozuki
How is GEP different from ptrtoint, arithmetic, and inttoptr? It’s very similar; there are only subtle differences. With ptrtoint, you have to pick an integer type. One approach is to pick i64; this is safe on everything LLVM supports (LLVM internally assumes pointers are never wider than 64 bits in many places), and the optimizer will actually narrow the i64 arithmetic down to the actual pointer size on targets which don’t support 64-bit arithmetic in most cases. However, there are some cases where it doesn’t do this. With GEP you can avoid this problem. Also, GEP carries additional pointer aliasing rules. It’s invalid to take a GEP from one object, address into a different separately allocated object, and dereference it. IR producers (front-ends) must follow this rule, and consumers (optimizers, specifically alias analysis) benefit from being able to rely on it. See the Rules section for more information. And, GEP is more concise in common cases. However, for the underlying integer computation implied, there is no difference.
AFAIK that's the reason for the unsafety of the offset method on raw pointers: https://doc.rust-lang.org/std/primitive.pointer.html#method.offset-1
Raw, unsafe pointers, *const T, and *mut T.
15:16
this is rly some piece of work
Avatar
Avatar
Ryozuki
this is rly some piece of work
what are you making?
Avatar
nothing just found this from reddit
15:18
i just admired the amount of work this probs took
15:18
look the docs detail
15:18
xd
Avatar
I looked at this while trying to figure out whether I can generate an aho corasick automata at compile time
Avatar
A trait describing the interface of a deterministic finite automaton (DFA).
😬 1
15:19
maybe I should write a bot 🤔
15:21
To recap, abi-cafe was created in a feverish mania as I became increasingly obsessed with the disaster that was C’s technically-nonstandard-but-also-literally-used-in-standards __int128. Like sure there’s the whole intmax_t debacle, but that’s understandable. The truly unforgivable thing was that clang and gcc couldn’t reliably pass __int128 between each other. This of course meant that if Rust’s i128 wished to interoperate with them… it would always be wrong, because there was no correct answer. Actually I’m telling this story a bit backward. Initially we definitely knew that Rust and Clang disagreed in at least one case on at least platform. Discussion of this issue was stalled out because people weren’t sure of the scope and nature of the problem. Which cases were broken? Who was right or wrong and needed to be fixed? What needed to be fixed? Did __int128 FFI work right on any platforms? So I made abi-cafe, which let me describe a function signature in the abstract and generate code for the caller and callee, in Rust or C, and compile and link them together. Notably the generated code had both sides “report” the values they saw with callbacks, so the test harness could just run them and compare what each side reported.
Avatar
chillerdragon BOT 2024-05-08 15:22:25Z
lmao I watched that video
Replying to @meloƞ image-2.png
Avatar
chillerdragon BOT 2024-05-08 15:24:23Z
Ah nice it just worked for you? Or did you have to change something? How did you build it?
Replying to @meloƞ ```cmake […]
Avatar
@Learath2 burntsushi is a mastermind and its epic to have him in rust tbh
15:25
totally not famous crates
15:25
justatest
Avatar
Avatar
Robyt3
Progress. Map rendering still broken though
epyc, how did u fix the link errors? what backend does it use? i assume that's an emulator?
Avatar
chillerdragon BOT 2024-05-08 15:29:07Z
Yea it seems to be the most maintained block game. But their visual design is so bad it‘s unplayable for me.
Replying to @EGYT Minetest is better
Avatar
Avatar
chillerdragon
Yea it seems to be the most maintained block game. But their visual design is so bad it‘s unplayable for me.
what part? can it be modded?
Avatar
chillerdragon BOT 2024-05-08 15:31:11Z
All of it is soo ugly. And sadly the project is too big to simply mod everything
Avatar
Avatar
Jupstar ✪
epyc, how did u fix the link errors? what backend does it use? i assume that's an emulator?
1. Using https://github.com/bbqsrc/cargo-ndk, but I can't figure out how to configure its output directory correctly so you need to copy the libraries manually and build twice 2. I tried all backends, Vulkan doesn't work, it reverts back 3. Yeah, it's an emulator. Once you go ingame you are stuck since you can't open the menu because escape doesn't work on the emulator for some reason (edited)
Avatar
Avatar
chillerdragon
All of it is soo ugly. And sadly the project is too big to simply mod everything
An open source voxel game engine. Play one of our many games, mod a game to your liking, make your own game, or play on a multiplayer server.
Avatar
chillerdragon BOT 2024-05-08 15:32:03Z
There have been mods that tried to mimic the exact look of Minecraft. But even for those you have to go through the ugly launcher. And the mods them self look still way worse than Craft
Avatar
Avatar
Robyt3
1. Using https://github.com/bbqsrc/cargo-ndk, but I can't figure out how to configure its output directory correctly so you need to copy the libraries manually and build twice 2. I tried all backends, Vulkan doesn't work, it reverts back 3. Yeah, it's an emulator. Once you go ingame you are stuck since you can't open the menu because escape doesn't work on the emulator for some reason (edited)
send me apk, i can test on my phone 😄
15:32
i want vulkan
15:32
last i tested it still worked
Avatar
Is it x86? I only have that apk ready
Avatar
Avatar
chillerdragon
Ah nice it just worked for you? Or did you have to change something? How did you build it?
i built it just using cmake build -G "Visual Studio 17 2022" && cmake --build . apart from having to move the glfw and libcurl headers aswell as the .exe manually, it kind of worked straight out of the box, having to move those files is a msvc issue (or im just to bad to set it up correctly)
Avatar
chillerdragon BOT 2024-05-08 15:32:33Z
Every single screenshots makes me wanna puke
Replying to @heinrich5991 https://www.minetest.net/#gallery doesn't look so bad
alarm 1
Avatar
i think the emulators have no vk support
Avatar
Avatar
Robyt3
Is it x86? I only have that apk ready
oh no it's arm
Avatar
do you know the OG of minecraft is no one else but Zachtronics
Avatar
chillerdragon BOT 2024-05-08 15:32:44Z
It’s just not my style
Avatar
arm64
Avatar
maker of TIS-100 and exapunks
15:32
Zachtronics was founded by Zach Barth in 2000, who serves as its lead designer. Some of their games include SpaceChem, Infinifactory, TIS-100, and Shenzhen I/O. Infiniminer (2009) inspired the creation of Minecraft.
15:33
Infiniminer is a first-person competitive mining game that takes place in a procedurally generated block world allowing players to mine, build, and explore. Sound familiar? That’s because Infiniminer is the game that started the “block genre” that everyone knows and loves! It’s also quite buggy and old, and is listed here purely for historical reasons.
15:33
xd
Avatar
chillerdragon BOT 2024-05-08 15:35:29Z
But yes if minetest would have a design I like and physics that feel good it would be amazing. But bending everything to my needs seems to be more effort than starting from Craft which seems to have enough features to function as a good game engine.
Avatar
Talking about aho-corasick again reminded me that I had one more string search algorithm I wanted to share with youse. Has anyone heard of Rabin-Karp algorithm?
15:39
It basically uses a rolling windowed hash over the haystack, quite a clever idea
Avatar
Avatar
Jupstar ✪
arm64
Untested, it's signed with the debug key
poggers2 1
15:40
Supposing you can connect keyboard and mouse it should be playable if Vulkan works
Avatar
i use scrcpy
Avatar
chillerdragon BOT 2024-05-08 15:40:43Z
What did you have to move from where to where? To build it? Or to run it?
Replying to @meloƞ i built it just using `cmake build -G "Visual Studio 17 2022" && cmake -…
Avatar
#03 pc 0000000000b4f4e0 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (io_write(void*, void const*, unsigned int)+148) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) 05-08 17:41:27.458 22528 22528 F DEBUG : #04 pc 0000000000d9a590 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (InitAndroid+448) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) 05-08 17:41:27.458 22528 22528 F DEBUG : #05 pc 0000000000cac3c8 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (SDL_main+204) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) 05-08 17:41:27.458 22528 22528 F DEBUG : #06 pc 000000000122d314 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+712) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) crashes in InitAndroid io_write
15:45
15:45
i still have an apk of that version
Avatar
this expects all systems to correctly handle int64_t from heinrich:
Simply changing the return type and places where it's used to int64_t should work. Most systems today will have 64-bit time_t.

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null ...
Avatar
that works
Avatar
pog i can render spritesheets xd
Avatar
Avatar
Jupstar ✪
#03 pc 0000000000b4f4e0 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (io_write(void*, void const*, unsigned int)+148) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) 05-08 17:41:27.458 22528 22528 F DEBUG : #04 pc 0000000000d9a590 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (InitAndroid+448) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) 05-08 17:41:27.458 22528 22528 F DEBUG : #05 pc 0000000000cac3c8 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (SDL_main+204) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) 05-08 17:41:27.458 22528 22528 F DEBUG : #06 pc 000000000122d314 /data/app/~~CB3gJmYnDypE7Tt0GeY6pg==/tw.ddnet-ZaQHILJQjp03xFlIOoioFQ==/lib/arm64/libDDNet.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+712) (BuildId: 87efde8ff66ec7895f494b893a16f33dd0813378) crashes in InitAndroid io_write
Try giving it all permissions before launching. Maybe it can't ask for storage permissions.
15:46
In the app settings
Avatar
opengl works in that old version btw
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
screenshot here is with opengl
15:47
lol now it works
15:48
but cant open f1 console in that version
15:48
ah nice, ingame it works
15:49
poggers 1
15:49
with vulkan
15:49
epyc
Avatar
Avatar
Robyt3
Try giving it all permissions before launching. Maybe it can't ask for storage permissions.
theoretically, it shouldn't need storage permissions, right?
Avatar
600 FPS
15:50
epyc
15:50
xd
15:50
better than most intel laptops
15:50
lol
Avatar
I see @Fussel
Avatar
Avatar
Jupstar ✪
better than most intel laptops
my too xd
Avatar
Avatar
Jupstar ✪
600 FPS
nice 🙂
Avatar
Avatar
Jupstar ✪
600 FPS
poggers2 very cool
Avatar
Avatar
heinrich5991
theoretically, it shouldn't need storage permissions, right?
If an android app only accesses its own files it shouldn't need it, but I don't know how this storage system interacts with native code, maybe the permissions are also required because of SDL (edited)
Avatar
i wonder if it works now bsc i started the old version
Avatar
ah, didn't think of SDL
Avatar
It currently uses <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.INTERNET" />
Avatar
GLES 3 also works without problems
15:53
from a quick look, everything renders without bugs
Avatar
nice, so only the emulators that's pretty broken, it also had ~5 FPS only pepeW
Avatar
weird
15:53
u can enable angle on the emulator
15:54
i think i tested it and it gave me performance equal to desktop pc
Avatar
Avatar
Robyt3
nice, so only the emulators that's pretty broken, it also had ~5 FPS only pepeW
you're a wizard, @Robyt3 ^^
Avatar
@Robyt3 do you use WSL?
15:56
can u send me x86_64 version?
Avatar
I used my Ubuntu VM, and I should have expanded the storage beforehand 😄
Avatar
then i can test on android emulator
Avatar
I can send you x86, I don't have x86_64 prepared
Avatar
i can try if that works
Avatar
Avatar
Jupstar ✪
i can try if that works
but 32 is less than 64, I think you should wait
Avatar
nah CI is a damn troll macOS wants a long long int to be %lld while ubuntu wants his long long int to be %ld mac: /Users/runner/work/ddnet/ddnet/src/engine/shared/netban.h:236:64: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat] str_format(pBuf, BuffSize, "%s for %ld minutes (%s)", aBuf, Mins, pBan->m_Info.m_aReason); ~~~ ^~~~ %lld ubuntu: /home/runner/work/ddnet/ddnet/src/engine/shared/netban.h:236:63: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t’ {aka ‘long int’} [-Werror=format=] 236 | str_format(pBuf, BuffSize, "%s for %lld minutes (%s)", aBuf, Mins, pBan->m_Info.m_aReason); | ~~~^ ~~~~ | | | | long long int int64_t {aka long int} | %ld angy
Avatar
Avatar
Learath2
but 32 is less than 64, I think you should wait
i'm entering a dangerous path here
Avatar
lmao
15:58
we have some limit?
Avatar
Yeah, discord didn't want the whole thing
Avatar
Avatar
meloƞ
nah CI is a damn troll macOS wants a long long int to be %lld while ubuntu wants his long long int to be %ld mac: /Users/runner/work/ddnet/ddnet/src/engine/shared/netban.h:236:64: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat] str_format(pBuf, BuffSize, "%s for %ld minutes (%s)", aBuf, Mins, pBan->m_Info.m_aReason); ~~~ ^~~~ %lld ubuntu: /home/runner/work/ddnet/ddnet/src/engine/shared/netban.h:236:63: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t’ {aka ‘long int’} [-Werror=format=] 236 | str_format(pBuf, BuffSize, "%s for %lld minutes (%s)", aBuf, Mins, pBan->m_Info.m_aReason); | ~~~^ ~~~~ | | | | long long int int64_t {aka long int} | %ld angy
Neither are the correct way to print an int64_t that's the issue there
Avatar
Avatar
Robyt3
Click to see attachment 🖼️
roby casually spreading malware greenthing
Avatar
Avatar
Learath2
Neither are the correct way to print an int64_t that's the issue there
MonkaS
Avatar
I guess I didn't need to split it, 7z did pretty well
15:59
Got down to the size of the arm64
Avatar
Avatar
meloƞ
MonkaS
You are looking for PRId64
16:00
"%s for " PRId64 " minutes (%s)"
Avatar
You need another percent, it's not included in the macro "%s for %" PRId64 " minutes (%s)"
Avatar
i only have andriod 8 with x86, let's see
Avatar
Ah missed it
Avatar
sometimes i wonder if i even understand anything
16:01
thanks
Avatar
Oh since this is C++ you need to define something iirc
16:02
Oh, nvm I checked and that was removed after C99
16:02
So you can just use it and it should exist in any compliant implementation just fine
Avatar
@Robyt3 tile maps are not rendering at all, and for some reason my emulator crashes when i want to access the device emulation settings xD
16:04
i try to update android studio
16:04
but i'd not say i have few fps
16:05
felt quite fast in the ui
Avatar
The emulator was never very fast for me, maybe a Windows limitation
16:06
But I didn't update it or Android Studio in a while either
Avatar
Avatar
Robyt3
The emulator was never very fast for me, maybe a Windows limitation
so the emulator itself was native on windows?
16:08
(not in VM)
Avatar
Avatar
Jupstar ✪
so the emulator itself was native on windows?
yeah, I compiled everything in the Ubuntu VM but I already had the emulator on my Windows host (edited)
Avatar
Avatar
Robyt3
yeah, I compiled everything in the Ubuntu VM but I already had the emulator on my Windows host (edited)
is iommu activated in your UEFI?
16:09
16:09
does it want me to login or what
16:09
i hate java
Avatar
can you copy the link?
Avatar
ah, it's just a link to create an issue…
Avatar
i'll just try a stable version
Avatar
Windows PowerToys are pretty handy for grabbing links from screenshots
Avatar
well guess it's broken now lol
Avatar
Avatar
Jupstar ✪
is iommu activated in your UEFI?
intel virtualization should be enabled, yeah
Avatar
ah nice i just deleted everything related to android studio now it works
16:15
well i still can't access the fugging settings lmao
16:15
who coded that
Avatar
Avatar
Jupstar ✪
well i still can't access the fugging settings lmao
Do you need to login to use it now? pepeW
Avatar
Avatar
Jupstar ✪
ah nice i just deleted everything related to android studio now it works
That solved several temporary issues I had fixing the Android build
Avatar
no, i mean the settings where i could tell the emulator to use GLES 3.2 from graphics vendor etc.
16:17
maybe that can help xd
16:17
it works
16:17
epyc gamer moment
16:17
@Robyt3
16:17
these are the settings i meant
16:18
there u can enable native opengl etc
Avatar
#[doc(hidden)] pub mod ඞ { pub use ::regex_automata; pub use ::regex_syntax; }
16:20
Pair your compilers up at The ABI Café! Contribute to Gankra/abi-cafe development by creating an account on GitHub.
Avatar
well dunno doesn't work
Avatar
Avatar
Jupstar ✪
@Robyt3
Looks better already. Is it possible to disable the keyboard shortcuts of the emulator?
Avatar
but @Robyt3 x86_64 would be nice.. i don't trust my 32bit drivers
16:21
i am relatively sure i never had trouble with x64
Avatar
Avatar
Robyt3
Looks better already. Is it possible to disable the keyboard shortcuts of the emulator?
i dunno
Avatar
Avatar
Jupstar ✪
i dunno
Seems like it catches Escape, so you can't open the menu ingame
Avatar
true
Avatar
Avatar
Jupstar ✪
but @Robyt3 x86_64 would be nice.. i don't trust my 32bit drivers
I'll build it later
Avatar
arrows keys also dont work
16:23
console is also bit broken lmao
Avatar
@Learath2 do u know about https://github.com/libuv/libuv
Cross-platform asynchronous I/O. Contribute to libuv/libuv development by creating an account on GitHub.
Avatar
Yes. Never used it, though I considered it for ddnet once upon a time
16:26
Some others you might want to look at are libev and libevent
Avatar
some tools, that you can make with the ddnet repository, aren't in the default download, like map_create_pixelart for example. Can I download it somewhere?
Avatar
isnt it part of the editor
Avatar
is that tool behind "Add tileart"? lol
Avatar
i dunno
16:33
sounds a bit like that
Avatar
oh wow, thank you
16:34
it doesn't convert it into a row of quads as I expected
16:37
@Jupstar ✪ there are apperently 2 pixelart tools, one that adds a pixelart as tileset, group and tilelayer, and one that adds it as quads: https://github.com/ddnet/ddnet/pull/5766 the secondary isn't available in any compiled form
works as shown in screenshot below: Usage: map_create_pixelart <image.png> <img_pixelsize> <input_map> <layergroup_id> <layer_id> <pos_x> <pos_y> <quad...
Avatar
u have to ping deen then, i think he uploads tools manually
Avatar
The main difference between C and C++ is that C++ is going nowhere while C is not going anywhere.
Avatar
Avatar
Jupstar ✪
u have to ping deen then, i think he uploads tools manually
@deen manually 🤷‍♂️ the map_create_pixelart tool is missing from downloads
Avatar
hmm, goto somewhere (edited)
Avatar
Avatar
AssassinTee
@deen manually 🤷‍♂️ the map_create_pixelart tool is missing from downloads
why don't u simply builds yourself xd
Avatar
working on it, but building on windows is always ...
Avatar
oh yeah
16:44
i bet patiga has the same tool
16:44
xdd
Avatar
I am using all of patigas tools, never had it so easy to build and install anything, guess rust made it easier
Avatar
Avatar
Jupstar ✪
i bet patiga has the same tool
justatest
16:45
mine works differently
Avatar
omg, next time I ask you directly if you have YET ANOTHER tool for me
16:47
holy shit, that's 3 in a row patiga
16:48
its a different approach with other upsides/downsides
Avatar
Avatar
AssassinTee
@deen manually 🤷‍♂️ the map_create_pixelart tool is missing from downloads
add where?
Avatar
there was a tool download once
16:49
but it's gone xd
Avatar
@deen anywhere, there are no releases on github and there is no download for it in the ddnet download section. Also it's not part of the default or nightly download
Avatar
Avatar
Patiga
its a different approach with other upsides/downsides
most significantly, it always does the pixelart with 3 tiles layers. the upside is that it can create nearly every single color value. however, if you have a image with very few colors (< 255 * 3), the other tool's approach is objectively better
16:53
the blog explains the math behind it, it was a nice puzzle :)
Avatar
@Patiga the tool I linked uses quads, while the other tool that jupestar meant, and your python script, use tiles, is that right? Because I need quads, because I need smaller pixelarts
Avatar
yup, I use tiles
Avatar
what's wrong with tiles?
16:54
do u need to scale it?
Avatar
my very very specific usecase @Jupstar ✪ xD
16:54
16:54
my pixelsize is basically 1/8th of a tile
Avatar
cough would be a relatively easy script with cough (edited)
Avatar
what even is the use case of using it with quads instead of just embedding the image itself?
Avatar
twmap-py
16:58
I'd whip up vim rn, but I'm ingame ^^
Avatar
Avatar
Jupstar ✪
what even is the use case of using it with quads instead of just embedding the image itself?
If I use a true size pixel art image, scaling it up will create artifacts, otherwise the filesize will explode with uninterpolated upscaling, because every pixel takes 8x8 pixels
Avatar
ah right we have no texture wrap modes for quads
17:05
that sucks
17:05
sampler modes
Avatar
here is an example, guess where the pixelart is
17:08
Avatar
Avatar
Jupstar ✪
but @Robyt3 x86_64 would be nice.. i don't trust my 32bit drivers
Avatar
Avatar
Robyt3
Click to see attachment 🖼️
works without problems
17:48
lmao have to use scrcpy to the emulator to use my keyboard
17:48
so stupid
17:48
17:49
renders fine.. fps are also okish
17:49
300 fps for emulator, quite ok i guess
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
Looks like you could use the Android Accelerometer gamecontroller for left and right controls kek
Avatar
left and right works but arrow keys, esc etc not
Avatar
I need to find some C++ portfolio thing to do. I want to do some library work, anyone have any libraries they wish they had in C++?
18:01
Currently I'm thinking maybe a state machine generalization, maybe with coroutines
18:02
Maybe something with more algo work would be nice too. I need lots of algorithms practice too but I couldn't come up with anything
Avatar
task scheduler, like these AI advertisements you see everywhere
Avatar
Or maybe I should do some golang portfolio projects. Japanese developers love go and a job in japan would be cool
Avatar
Avatar
meloƞ
task scheduler, like these AI advertisements you see everywhere
Task as in asynchronous programming?
18:05
I do have a coroutine scheduler that I was messing around with, maybe I can clean that up and publish it
Avatar
like a coroutine-based scheduler - like task scheduling etc
Avatar
AI coroutine scheduler. Uses reinforcement learning to schedule tasks thinkW
Avatar
or write yabl (yet another benchmark library) - this should require quite a lot of algorithms ig (edited)
Avatar
Avatar
Learath2
AI coroutine scheduler. Uses reinforcement learning to schedule tasks thinkW
I doubt it beats the algorithms humans developed though 😄
Avatar
the future is weeb ais
Avatar
i read web ai's and thought you meant like online picture generators, until i reread what you wrote... weebsout (edited)
Avatar
Mh training ai is just legwork. This is why I never dabbled in it
Avatar
You just feed data into a library and it trains models. The interesting work in that niche is in developing algorithms and libraries. I'm not smart enough for either
Avatar
something neat simd accelerated maybe ^^
Avatar
Avatar
Learath2
You just feed data into a library and it trains models. The interesting work in that niche is in developing algorithms and libraries. I'm not smart enough for either
the interesting work is also MLIR
18:14
compilers for AI stuff
Avatar
Simd accelerated bans handling in teeworlds 😄
Avatar
icould make a teeworlds mlir dialect
18:14
ok that makes 0 sense but its funny
Avatar
teeworlds variable int parsing with simd is something I already put some thought into but couldn't find a satisfying solution
Avatar
Avatar
Learath2
Simd accelerated bans handling in teeworlds 😄
give it a single: ban all racist slurs and dude rips away 50% of the playerbase in an instance
Avatar
I actually have a simd accelerated ban check for ddnet. It didn't improve anything so I never pr'd it 😄
Avatar
ban is a rare thing xd
Avatar
though some bigger use-case is probably more interesting anyways ^^
Avatar
wouldnt it be better SIMD packet parsing or smth
18:15
or decoding*
Avatar
Avatar
Learath2
I actually have a simd accelerated ban check for ddnet. It didn't improve anything so I never pr'd it 😄
do.. you mind.. sharing.. if you have it? this is something blockworlds could use kek
Avatar
Avatar
Ryozuki
ban is a rare thing xd
The ban table is large, looking up ips in it is getting slower and slower since it's linear
Avatar
i have avx512 but idk what to do
Avatar
I'm just brainstorming here :p
Avatar
i never did simd stuff
Avatar
I did some simd stuff for a c project in university
18:16
where there was a competition with speed
18:16
but in the end my simd parser was slower in practice
Avatar
Avatar
meloƞ
do.. you mind.. sharing.. if you have it? this is something blockworlds could use kek
Just put the ips in a btree instead. I got better performance out of that and simd lookup in the btree added no value
18:17
it explains why algorithms are great af
18:17
100x faster matrix multiplication (compared to “for-for-for”)
Avatar
Avatar
Patiga
but in the end my simd parser was slower in practice
It's really hard to get this right yeah. Simd instructions are slow, so you need to fully utilize them for it to be worth it
Avatar
+ you need to worry about error handling :c
Avatar
always expected Simd was developed for the sole purpose of enhancing speed :D
Avatar
PSHUFB is an amazing instruction for lookups
18:20
(Not for longer than a byte though)
Avatar
hm yea that is neat :)
Avatar
Avatar
Learath2
I need to find some C++ portfolio thing to do. I want to do some library work, anyone have any libraries they wish they had in C++?
i have many that u could port from c to rust
18:33
if that is also an option
Avatar
Avatar
Learath2
Simd accelerated bans handling in teeworlds 😄
a better data structure would already do lot
18:35
the data structure sucks so hard
18:35
what even is it, a normal linked list lmao
Avatar
It wasn't much of an issue with our older policies, but nowadays mods go hard with longer and longer bans
18:37
works quite good i think
18:37
only did smaller testing
18:39
uses a radix tree.. makes sense i guess
Avatar
Just putting the banned ips in an actual contiguous array actually helps a lot already. The simple linear search gets vectorized easily by the dumbest of compilers
18:42
And it plays very well with prefetch
18:42
However, our n kinda has surpassed the limits of linear searches, so a tree like structure is nice
Avatar
Attached: 2 images Stack Overflow announced that they are partnering with OpenAI, so I tried to delete my highest-rated answers. Stack Overflow does not let you delete questions that have accepted answers and many upvotes because it would remove knowledge from the community. So instead I changed my highest-rated answers to a protest message. ...
Avatar
I have a friend that treats me like I'm insane because I don't like AI. Whenever I think about it more carefully, I notice the people who support this kind of thing never contribute to the common wealth of knowledge. They only know how to take, so for them this is a positive. It makes copying code from stackoverflow easier
Avatar
Avatar
Learath2
I have a friend that treats me like I'm insane because I don't like AI. Whenever I think about it more carefully, I notice the people who support this kind of thing never contribute to the common wealth of knowledge. They only know how to take, so for them this is a positive. It makes copying code from stackoverflow easier
uff that is a bit naive tbh. Our goal is to automate stuff, and AI will be a required tool
Avatar
i like AI tech wise but moral wise ppl find the wrong thing to do always xd
Avatar
if u dont like OpenAI fine
Avatar
Avatar
Jupstar ✪
uff that is a bit naive tbh. Our goal is to automate stuff, and AI will be a required tool
Our goal is to automate stuff for ourselves. Not for "Open"AI Inc. to automate it for a huge profit off the backs of our free labour
19:00
By all means train your ai on your own proprietary codebases, hire people to write code for you to train your ai on. You don't just get to train it on millions of stackoverflow users contributions and sell it back to them
Avatar
Avatar
Learath2
By all means train your ai on your own proprietary codebases, hire people to write code for you to train your ai on. You don't just get to train it on millions of stackoverflow users contributions and sell it back to them
fine, it sounded more like u generally like the idea of what AIs will do in future
Avatar
No that part is unavoidable. I just don't like the transfer of knowledge from the open to closed
19:03
If it was an open model, training on open data for all of us, I wouldn't care that much
19:04
Same reason I never really had an issue with what stable diffusion did
20:29
i love this game
20:32
as far as AI goes
20:33
i think it's something that we should rely on our governments to regulate
20:33
but in the interest of money it will never happen
20:37
something keeps changing but i can't tell what
20:37
who's deleting shit xd
Avatar
hmmm. it seems my message is getting autodeleted
Avatar
base64: YW55b25lIHdhbnRzIHRvIHJlYWQgc29tZSBwcm9wZXIgRlVEPyBodHRwczovL3QubWUvZHVyb3YvMjc0
Avatar
i bet t.me is filtered automatically
20:41
because of such high scam likelihood
Avatar
Avatar
Ewan
but in the interest of money it will never happen
Nothing with such a high level of significance ever gets regulated properly
20:42
The lobbying forces are strong
20:42
Democracy isn't real
Avatar
are lobbying forces something that brought us the GDPR?
20:42
I would not think so
20:43
t.me
20:43
t.me/durov/274
20:43
goodbye
20:44
haha yep
Avatar
anyone wants to read some proper FUD? hxxps://t.me/durov/274
20:45
perfect. now I only need to find out why t.me links are blocked
Avatar
Avatar
heinrich5991
are lobbying forces something that brought us the GDPR?
why not? US corps are clearly the world leaders, so why should EU corps not have an interest to give them less power?
Avatar
is that related to US vs EU in some way?
Avatar
i think yes
Avatar
both EU and US companies have to adhere to the GDPR when offering services to EU citizens
Avatar
if EU would have google and co, GDPR would probs not exist
Avatar
california passed laws similar to the GDPR IIRC
20:50
or there is https://de.wikipedia.org/wiki/Lieferkettensorgfaltspflichtengesetz, which doesn't seem to be motivated by the kind of lobbying @Peter0x44 referred to, either
Avatar
i mean putting together huge models without charging somehow would be p difficult
20:55
unlesss there are open/free projects out there to pool compute for open models
Avatar
Avatar
heinrich5991
or there is https://de.wikipedia.org/wiki/Lieferkettensorgfaltspflichtengesetz, which doesn't seem to be motivated by the kind of lobbying @Peter0x44 referred to, either
mh yeah. hard topic, u can always read it from two sides. if there is no lobby against smth then there might not be a high economical power for such stuff in first place or the law is does only benefit bigger corps anyway (e.g. Lieferkettengesetz might be harder for small corps). For example could you explain why the EU decided to shift the combustion engine to a later date then planned?
20:55
the end of*
Avatar
Lieferkettengesetz does not apply to small companies, only 1000 employees and larger
20:55
the ICE thing is because of the german car industry (edited)
20:56
and because of the fdp IIRC
Avatar
Avatar
heinrich5991
Lieferkettengesetz does not apply to small companies, only 1000 employees and larger
Well I don't know what's involved with that but there's the usual carbon credits and such like that (which are obviously problematic) In practice a fine is just a cost of doing business
Avatar
not related to carbon credits
21:05
The Supply Chain Act (German: Lieferkettensorgfaltspflichtengesetz, literally Obligation to Exercise Due Diligence in the Supply Chain Act or German: Lieferkettengesetz (LkSG) in short) is a German law requiring companies to monitor human rights and environmental risks in their supply chains.
Avatar
Avatar
heinrich5991
A fine of 2% is nothing
21:06
That's not enforcement If it grows revenues by more, then it's worth it
21:07
A threat of forced nationalization, or something that actually has teeth...
Avatar
2% of revenue
21:08
that's a lot
Avatar
If violating it can cause growth more than that, it's worth it
21:08
It really isn't
Avatar
do you believe that this would cause companies today to have losses rather than wins, if a 2% fine was applied? (edited)
Avatar
I don't know
Avatar
then you're oddly sure about that this isn't "having teeth"
Avatar
i guess u'd need to ask nestles secret stats for that lol is it worth hiding their shady activities in order to stay market leader
Avatar
In practice fines aren't enough when things go wrong
Avatar
[citation needed]
Avatar
If BP was "punished" properly for deepwater horizon it wouldn't exist today
Avatar
EU is defs an interesting experiment
21:11
the only thing that could kill us is our aging society
Avatar
Avatar
Peter0x44
If BP was "punished" properly for deepwater horizon it wouldn't exist today
completely unrelated to the point
Avatar
3M putting pfas in water
Avatar
completely unrelated
Avatar
It isn't
Avatar
you're talking about incidents that are bad, as an argument that completely unrelated laws are useless
Avatar
I didn't call them useless, they just aren't enough
Avatar
@Peter0x44 i guess you are more refering to "big companies seem to be punished less when something unfair happens" which could always be true, independent of the type of law
Avatar
This fixes the Android build, which involves
  • adding Rust support to Android compilation,
  • upgrading Gradle and fixing Android deprecation errors,
  • fixing minor warnings in Android-specific C++ code, and
  • various minor fixes to the Android build scripts.

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 (especially base/) or added c...
poggers2 1
Avatar
Here's the debug build for all architectures
Avatar
Also works on my phone poggers
poggers2 1
owo 1
Avatar
just imagine the hype, that after 9 versions android download is back
Avatar
It still needs UI touch input and ingame input in general though
21:49
The weird relative mouse input hack we have for android is terrible to use
Avatar
Avatar
Robyt3
It still needs UI touch input and ingame input in general though
yeah it's really about this xD
21:57
we already had android builds a few versions ago
21:57
but nobody cared. if that doesn't change, then this won't help in this case either
21:58
tbh relative mouse mode sucks for UI anyway
Avatar
SDL supports touch events so the UI should be doable
21:59
change my mind
Avatar
For ingame controls we need to think about something
Avatar
it uses relative for ingame
21:59
and absolute for ui
21:59
i improved on that and consequently use that for dd-pg
21:59
sadly with SDL it made problems on i3 and other half finished WMs
22:00
i wonder if winit handles it better, they seems to use a different way to clamp the mouse inside the window 😄
22:00
oh wow already next day, cya
Avatar
I am trying to cross compile right now and get the following error message: "could not find ssp paths" a quick google search couldn't help me, I guess a dependency is missing?
22:17
cmake .. -D...
Avatar
try searching the source code for "could not find ssp paths"
22:21
have you downloaded the git submodule?
Avatar
argh thank you I should go to bed
Avatar
ws-client BOT 2024-05-08 22:38:48Z
<ChillerDragon> We should ask the active mobile gamers how they like the old controls. We should not break their workflow with a new release that has different controls.
Avatar
cross compiling with mingw, needed to install rust first, needed to set mingw to posix, all in order to compile for windows. STILL EASIER THEN USING VISUAL STUDIO
Avatar
ws-client BOT 2024-05-08 22:48:29Z
<ChillerDragon> cross compile from windows to windows? xd
22:48
<ChillerDragon> what are you crossing then?
Avatar
cross compile from ubuntu to windows
Exported 739 message(s)