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 2021-12-20 00:00:00Z and 2021-12-21 00:00:00Z
Avatar
594b4e3 Add cl_run_on_join to set command to execute when joining a server - def- 62a9884 Merge #4383 - bors[bot]
Avatar
9ef9ee5 README.md: Sort dependencies alphabetically - heinrich5991 7e0ae72 Merge #4480 - bors[bot]
Avatar
I've just found out this old bug in github issues 😄
00:31
didn't even know that was possible
Avatar
baf9b94 Factor CScoreWorker out of CScore, add SaveScore test - def- 9dc08ca True/False don't exist on older SQLite versions - def- 010ecd0 More output in score test - def- aacab81 Use at least SQLite version 3.25 - def- 3a2850b Add comment for true/false - def- 41910ff Add sqliteversion test - def- 436fcbc Ubuntu 20.04 in central tests - def- d9858c2 Add more Score tests, shorten tests - def- 20c9141 Remove gmock dependency - def- e569354 Fix TeamScore tests - def- 9ef5849 Add MySQL test support - def- f5d59e8 Rename CONF_SQL to CONF_MYSQL - def- 0459439 Test MySQL centrally in fancy - def- f464f14 Add explicit -DTEST_MYSQL - def- 6feb1a0 Create connections as unique_ptrs directly - def- 01b1dbf Fix fancy test to use correct build - def- c7fee11 Keep Ubuntu 18.04, but without sql tests - def- 0c759ae Deterministic player order in /top5team name - def- 3f03d8e Get rid of useless semicolon in SQL queries - def- 3013466 Merge #4392 - bors[bot]
Avatar
CC #4463 CC #4465

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [x] 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-...
Avatar
imagine having first class utf8 support, i wonder what language has it bluekitty
Avatar
Python3, Perl and Go? All great languages indeed
07:34
sql tests pog
Avatar
Finally \o/
Avatar
Avatar
Learath2
Python3, Perl and Go? All great languages indeed
you saying python a good language striked me as odd given ur angry against modules
07:35
hehe
Avatar
Avatar
Ryozuki
you saying python a good language striked me as odd given ur angry against modules
Nah they are all meh languages, I just wanted to intentionally omit rust for lulz
Avatar
Perl is the best among those
Avatar
i never used perl monkaS
Avatar
Well I didn't use it much either, I only did very simple things with it. Heard it quickly becomes very annoying as programs grow in size
07:37
Which is to be expected since perl is supposed to be a scripting language
Avatar
what is the advantage of using perl when python exists ?
Avatar
ae99445 Add a function to fix UTF-8 truncation at the end of a string - heinrich5991 27f1882 Fix str_utf8_forward to use the same logic as str_utf8_decode - heinrich5991 58533cd Fix string functions not to truncate in the middle of a UTF-8 character - heinrich5991 ec0d117 Merge #4481 - bors[bot]
Avatar
Avatar
Nagi01 {LAN}
what is the advantage of using perl when python exists ?
The advantage is the ability to use a language that wasn't conceived by a 5yo on crack
Avatar
lmaoo
Avatar
Especially the guy who wrote the module part of python and importlib, belongs in a mental facility
09:36
or maybe a gulag
Avatar
I seriously could fall off a building, hit my head, go to a bar get batshit drunk and still manage to write better scoping and import rules
Avatar
ahah
09:38
y, sometimes import are cringe
Avatar
yet python is the most famous lang
09:38
xd
Avatar
i like python, but sometimes its ankward
Avatar
i agree imports are extremely confusing but i havent had problems with other stuff
Avatar
Avatar
Ryozuki
i agree imports are extremely confusing but i havent had problems with other stuff
same
Avatar
I wonder if there is a parallel universe where perl5 was implemented properly before python took over and if there is what sin have I committed to end up on the wrong side of the branch
Avatar
rust imports are rly good btw
09:40
bluekitty
Avatar
Rust imports are probably the best indeed
Avatar
why are they better ? (edited)
Avatar
@Nagi01 {LAN} learn rust
09:42
do you know c++?
Avatar
y
Avatar
idk they always worked
Avatar
lel, its the essential i guess
Avatar
First of all rust imports perfectly match the folder structure, no funny business, no compiler trying to merge stuff together
Avatar
mmmh
Avatar
https://discord.com/channels/252358080522747904/293493549758939136/700263778599567420 here is my adventure trying to import two things that are similarly named
Avatar
ye i remember
09:46
xd
Avatar
ahhhh
09:46
y it can be a big problem in python to import two different thing with the same name
Avatar
heinrich has the exact same structure in libtw2 which is in rust, it works perfectly, you just import each with different aliases from different folders and everything just works out
Avatar
Avatar
Learath2
"Using slashes for path imports, and dots for global module imports would be just too intuitive. We should aspire to make it as inaccessible as possible to people doing actual work and make it more accessible for my grandmother, 3rd graders and math PhDs"
ahah
09:48
y, __init__.py is bullshit
Avatar
release python 4 with fixed imports
Avatar
python4 will never exist xd
Avatar
I will one day if I have time actually make my own python implementation ripping out importlib
09:50
Just a small CPython fork
09:51
No backwards compatibility to the mess of __init__ from 1980s
Avatar
xd nice idea
09:52
i hope Julia will become the next Python
09:52
it deserves 3_
Avatar
A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.
Avatar
Isn't julia too specific?
Avatar
y maybe its too specific
Avatar
doesnt julia load 100mb of ram for no reason for a hello world
Avatar
but you can do a lot of thing
Avatar
i read it time ago on hn
Avatar
I thought it was mostly for data science people
Avatar
Avatar
Learath2
I thought it was mostly for data science people
in theory, it is
Avatar
Actually maybe if we make it popular enough data science people will fuck off to julia and we can have a nice python for people that are actually programmers
Avatar
Avatar
Learath2
Actually maybe if we make it popular enough data science people will fuck off to julia and we can have a nice python for people that are actually programmers
The Nim programming language is a concise, fast programming language that compiles to C, C++ and JavaScript.
09:54
monkaS
09:54
nimrocks monkalaugh
Avatar
This is probably as close to a nice version of python we'll ever have
Avatar
if only it were more popular
Avatar
there is V lang too
09:55
i heard bad things of it on hn
09:55
but i cant remember what
09:55
xd
Avatar
I heard it's not bad but I never used it
Avatar
ah i think it tried to be safe like rust but wasnt rly? (edited)
09:55
idk
Avatar
i heard V lang stuff from lynn on teehouse discord server (edited)
Avatar
zig is pretty nice too if you are looking for a new language to explore
Avatar
first thing i see on their website homepage is json stuff
09:58
so it has to be good 15
Avatar
why is that so
Avatar

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-addresssanitizer--u...
Avatar
zig is like C from the future 😛
Avatar
because on new langages i tried, like Julia for example, there is no fking JSON parser in the stdlib
Avatar
and there shouldnt be
10:00
imho
Avatar
xd
Avatar
its better for it to be decoupled from stf
10:00
std
Avatar
Hm, it's common enough to be part of std lib imo
Avatar
in 2021, if you write a script langage, it has to contains a JSON parser
Avatar
then u get a non efficient parser like the regex in c++
10:00
cuz u cant update it
10:00
cuz grandpas using it
Avatar
xd
Avatar
zig is not a script language tho
Avatar
Well the problem with C++ is that it has no way to break backwards compat ever
10:01
These newer languages usually have things like editions
10:02
Also since json is actually standard a more performant parser won't be breaking anything really, so might even be possible without a compat break to keep a json parser updated
Avatar
is regex not standard?
10:03
The Day The Standard Library Died (edited)
10:04
Making std::regex faster (it is currently faster to launch PHP to execute a regex than it is to use std::regex
10:04
xdd
10:04
unique_ptr could fit in register with language modifications, which would be needed to make it zero-overhead, compared to a pointer
10:05
Adding UTF-8 support to regex is an ABI break
10:05
lmao
10:05
the list goes on
10:05
c++ is fun
Avatar
Avatar
Ryozuki
Making std::regex faster (it is currently faster to launch PHP to execute a regex than it is to use std::regex
lmaooo
10:06
i hate PHP 12
10:06
i havent used it yet thankfully
Avatar
gg
10:06
only shit startups use PHP i swear
10:07
and Bisqwit
Avatar
Avatar
Nagi01 {LAN}
only shit startups use PHP i swear
lol grumpy ppl always tell php is better than shiny ruby or nodejs
Avatar
WG21 will not promise stability forever
Yet they will block every proposal to ensure stability but they super promise to stop doing that in the future
10:08
Maybe in a decade or 5 they will super duper definitely break abi
Avatar
Avatar
Ryozuki
lol grumpy ppl always tell php is better than shiny ruby or nodejs
classic old bearded man who doesn't want to give up the things he has learned
Avatar
I have a proposal, we create a very good compiler, infiltrate wg21 and wg14, then we form a vanguard party within the committee
Avatar
@Learath2 im amazed google or m$$ havent done that
Avatar
Take back the means of standardisation from the corporate elite
10:10
They already have their claws in these committees, have you ever looked at the voting sheet for proposals
Avatar
not rly
10:10
never looked at that stuff
10:10
xd
Avatar
The proposal to add overflow checked integers and stuff to C was blocked by a NVIDIA and HP coalition
10:12
does integers wrap on overflow in c?
Avatar
unsigned ones do, signed ones cause UB
Avatar
This one is because C refuses to mandate twos complement for some bizarre reason I don't remember.
Avatar
The point of the blocked proposal was to standardize some form of __builtin_add_overflow which returns true if it overflows
Avatar
loolll wtf
Avatar
WG21 wants to keep prioritizing performance over stability.
Therefore they've blocked 2 decades of proposals to make unordered_map even remotely performant
Avatar
Revolutionary idea, this man might be the second coming of einstein
10:24
big brain
Avatar
What do you mean we won't support linking to libraries built with Cfront or Turbo C++ wtf
10:25
if it doesn't have 5 decades of support is it even a real language?
Avatar
xdd
Avatar
I sometimes do actually wonder if these big companies do have internal tooling/libraries they've just lost the source to so they block improvement for everyone else
Avatar
just remember i did this https://wiki.ddnet.tw/docs/
12:06
remembered*
12:06
👀
Avatar
e2084e1 Use temporary file when saving editor file (fixes #4476) - def- 473848a Merge #4482 - bors[bot]
Avatar
lol wtf
13:20
you did everything ? sheesh
13:40
c602375 SDL2 2.0.16 -> 2.0.18 (still with patches) - def- 1fd78f2 Merge pull request #20 from ddnet/pr-sdl218 - def-
13:41

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.com/ddnet/ddnet/#using-addresssanitizer--und...
Avatar
Not sure I prefer it, but now it's done. Any opinions?

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]...
14:06
a373657 Add donation by Cøke - def-
14:12
2fbd0c6 Fix formatting in src/test/score.cpp - heinrich5991 4a93164 Merge #4483 - bors[bot]
14:30
29187b9 Add libarm64, libfat (made with lipo) for testing - def- ed6616c Fix signatures on SDL2 frameworks - def- 1dfa7ab Manually sign all mac arm64/fat shared libs - def- edfdbb6 Use install_name_tool to update id/change/add_rpath in dylibs directly - def- a6a923a Merge pull request #21 from ddnet/pr-libarm - def-
Avatar
28ac939 Support libfat directory for macOS, use arm64 libs (fixes #3250) - def- b91d4bf Support running mac executables from build directory directly - def- 40973df Try to fix darwin toolchain - def- 0ca468f Prefer system SDL2 lib when -DPREFER_BUNDLED_LIBS=OFF - def- 4137811 Update gitignore - def- 266370f Copy SDL2.framework with cp -a - def- 6db743c Don't strip macOS files since it breaks signatures - def- 250a8dc Don't call install_name_tool on existing library files - def- 8c36af9 ffmpeg: Prefer names used by bundled libs - def- 832047f Revert "Copy SDL2.framework with cp -a" - def- 61432c9 Merge #4455 - bors[bot]
Avatar
522c206 Add libfat discord_game_sdk (only contains x86-64 for now) - def-
Avatar
For now only x86-64 is supported by discord sdk, arm64 we ship without discord sdk. So players can choose if they want more performance without discord integration, or less performance with discord integration.

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 p...
Avatar
440baa1 Support building universal binaries with discord - def- 9045f99 Merge #4485 - bors[bot]
15:43
27b45e1 Use remote mac build temporarily - def-
15:45

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.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
819c649 Use remote mac build temporarily - def-
Avatar
Avatar
GitHub
Click to see attachment 🖼️
mods will just unmute their friends while the 50+ server remains muted :P as much as is it annoying, I agree with @deen, not practical solution. might as well invest the effort into building a small portion of an account system to counter this ;)
Avatar
@SPYRES note that I closed it because deen implemented it
Avatar
ah ok, will keep an eye out for mods unmuting anyone other than their friends ;)
Avatar
5450b64 Use remote mac build temporarily - def-
Avatar
Where did deen say it's not practical? @SPYRES
16:10
pretty much screams "not practical" to me
Avatar
No it doesn't? He asked if it is really practical
Avatar
but maybe he changed his mind!
Avatar
Well, it's better than the current state of everyone being muted for 5 min
16:11
We need this to deal with persistent spammers with undetectable vpns
Avatar
TsFreddie also has a issue open regarding sv_chat_initial_delay which could help #3894
Avatar
Allow team chat to ignore chat delay/chat initial delay if the race has started (so, no others can join and spam the team)
Avatar

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.com/ddnet/ddnet/#using-addresssanitizer--u...
16:33
c6f0bf3 Use remote mac build temporarily - def-
16:42
[ddnet/ddnet-web] New branch created: pr-15.8
16:47
DDNet 15.8 is supposed to release in 1 week, assuming no bad bugs are found. Please test the Release Candidate to prevent problems being only discovered after release. Report bugs in the #bugs channel on DDNet Discord or directly on Github:
Avatar

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.com/ddnet/ddnet/#using-addresssanitizer--u...
16:55
e6e71b0 Actually remove gfx_asyncrender_old - def- 4a100e2 Don't overwrite player-set refresh rate - def-
Avatar
a6a0092 Actually remove gfx_asyncrender_old - def- 84ef482 Merge #4487 - bors[bot]
Avatar

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.com/ddnet/ddnet/#using-addresssanitizer--u...
17:21
1261ba4 Don't overwrite player-set refresh rate - def- f6baf78 Merge #4489 - bors[bot]
Avatar
87031f6 Update translation files - def- 77e73f6 Update German translation - def-
17:39
5d53436 Update translation files - def- 3b598f1 Update German translation - def- 3503734 Merge #4490 - bors[bot]
Avatar
ea856e2 7z doesn't support dmgs built on macOS - def-
17:53
In Teeworlds 0.7, accelerate a little faster than walking using the hook, and then press the opposite walking direction. You decelerate fast and emit a little smoke cloud. I think we had that in DDNet/Teeworlds 0.6 as well, but it seems to have been lost?
17:58
Otherwise it's not clear if you can run client commands (f1) or chat commands (/). As reported by cheeser0613

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [x] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • [ ] Tested...
18:00
e8d6a6a Add a hint for "Run on join" - def-
18:02
e118f8b 7z doesn't support dmgs built on macOS - def-
Avatar
d91d20f Add a hint for "Run on join" - def- fe0fb20 Merge #4492 - bors[bot]
Avatar

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.com/ddnet/ddnet/#using-addresssanitizer--u...
18:33
1. Run on join triggered twice after connecting dummy and switching back to the other tee 2. timeout command doesn't work, both tees disconnect immediately after a timeout, probably because both share the same timeout code [2021-12-20 19:28:42][chat]: 'murpine' has left the game (Timeout) [2021-12-20 19:28:42][chat]: 'murpo' has left the game (Timeout)
Avatar
Thanks deen, finally kog players can see their own keypresses without having to look down at their keyboards!
19:49
new video
19:49
for the interested
Avatar
could we have some filter system for maps in the editor ? like date or filesize ( and display that stuff ) I remember some admin saying he already made it but never added it =P
Avatar

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
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
22:20

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.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
@murpi thanks for testing out the new features 🙂
👍 1
Avatar

Checklist

  • [x] Tested the change ingame
  • [x] 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-addresssanitizer--u...
Avatar
To access your database do you use microservices like a rest api ? I think no but i wanted to be sure 🙂 (edited)
Avatar
kk ty
Avatar
``` Program terminated with signal SIGILL, Illegal instruction. #0 dbg_break () at /home/teeworlds/src/master/src/base/system.cpp:124 124 __builtin_trap(); [Current thread is 1 (Thread 0x7f26a34a7700 (LWP 14685))] (gdb) bt #0 dbg_break () at /home/teeworlds/src/master/src/base/system.cpp:124 #1 dbg_assert_imp (filename=, line=, msg=msg@entry=0x55a6ac660ade "error getting int: NULL", test=0) at /home/teeworlds/src/master/src/base/system.cpp:117 #2 0x000055a6ac5a4e67 in d...
Avatar

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.com/ddnet/ddnet/#using-addresssanitizer--u...
23:14
2727c99 Fix crash in GetSaves (fixes #4500) - def- 0073f6c Merge pull request #4501 from def-/pr-crash - def-
Exported 258 message(s)