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-04-17 00:00:00Z and 2024-04-18 00:00:00Z
Avatar
36db1e6 Fix freeze not working during first 50 server ticks - Robyt3 e142b2d Merge pull request #8224 from Robyt3/Server-Freeze-Initial-Fix - def-
Avatar
is it common practice to have a backend always return HTTP 200 plus a status code to indicate errors rather than using other HTTP codes.
01:03
our java backend devs seems to prefer 200 always
Avatar
I haven't seen that. Errors should return an error code. Just because your library makes handling those annoying is not an excuse to not use error codes.
Avatar
owo cool
01:43
i'm guessing they want the confidence to say it is not their fault for anything non-200 and pass the problem as faults of load balancers and such to SAs (server administrators)
01:44
still weird tho
Avatar
Avatar
deen
I haven't seen that. Errors should return an error code. Just because your library makes handling those annoying is not an excuse to not use error codes.
Google does for example
06:08
200 the call was a success but their lib was returning an error
Avatar
This class of status codes indicates the action requested by the client was received, understood, and accepted
06:28
Which means 200 is on the http level, the body response can contain an error about the processed data for some reason
Avatar
web dev is a free warzone
07:38
everybody does what they want
Avatar
You can't even shoot yourself properly ;(
Avatar
imagine web
10:36
remember aho corasick?
Avatar
Avatar
Ryozuki
remember aho corasick?
Is it from this journal volume?
10:39
but this is a algo related to search
10:39
String search is a classic problem. Given a string, the pattern, determine if it occurs in a longer string, the text. String search can be solved in O(n+m) time and O(m) space, where n is the size of the text and m is the size of the pattern. Unfortunately, the algorithm that does so, Knuth–Morris–Pratt (KMP) (Knuth et al., Reference Knuth, Morris and Pratt1977), is hard to understand. Its pseudocode is short, but most explanations of it are not.
12:19
^ mipmap debugging going on, found the image oddly appealing
Avatar
Looks funny
Avatar
Have any of you heard of "Durable Execution"? It's quite an interesting concept
Avatar
It's like a distributed job queue that is very tolerant to failure by way of having the ability to just resume any job at any point
Avatar
Dones anyoye give deep fly code? pls
Avatar
Avatar
EmRe
Dones anyoye give deep fly code? pls
DDNet client has a multitude of commands and settings that can be bound to nearly any key or mouse button. You can enter commands into the console, which by default is accessed by pressing F1.
Avatar
is it possible to save logs to $CURRENTDIR/filename not $USERDIR/filename
Avatar
Avatar
Patiga
Click to see attachment 🖼️
that gives the phrase MIP a completely new interpretation 😄 "The letters MIP in the name are an acronym of the Latin phrase multum in parvo, meaning "much in little"."
16:16
why the fucking hell does gitlab require a phone number to register
16:17
instant cancel
Avatar
biggest bullshit i've ever seen
16:18
and they advertise with privacy
Avatar
btw is there a good irc chat nvim plugin?
Avatar
so when you normally register to gitlab u dont need phone number
16:24
but if you register over github they want it
16:24
now jupeyy is taken by an account that will never exist lol 😭
Avatar
Avatar
MilkeeyCat
is it possible to save logs to $CURRENTDIR/filename not $USERDIR/filename
Put add_path $CURRENTDIR at the top of storage.cfg I think
Avatar
Avatar
MilkeeyCat
is it possible to save logs to $CURRENTDIR/filename not $USERDIR/filename
You could specify the logfile with an absolute path. If you change the first storage location then everything will be saved there
17:20
1. One man's constant is another man's variable. 2. Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process. 3. Syntactic sugar causes cancer of the semicolon. 4. Every program is a part of some other program and rarely fits. 5. If a program manipulates a large amount of data, it does so in a small number of ways. 6. Symmetry is a complexity-reducing concept (co-routines include subroutines); seek it everywhere. 7. It is easier to write an incorrect program than understand a correct one. 8. A programming language is low level when its programs require attention to the irrelevant. 9. It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. 10. Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list - not the size of his vocabulary. 11. If you have a procedure with ten parameters, you probably missed some. 12. Recursion is the root of computation since it trades description for time. ....
Avatar
tl;dr?
Avatar
read them
17:21
its quotes
17:21
fun
Avatar
man egui shots out major updates so often lol
17:24
almost as often as robster
17:24
but just almost
17:24
😏
17:25
@Robyt3 how would you rate your current rust skill from 0-100?
Avatar
0.1 maybe, I successfully installed and configured rust, and I wrote maybe 5 lines of tests for a console function once because it apparently exists in our rust code
Avatar
perfect. anything >0 is scalable
17:27
end of year you must be rust expert i believe in you
Avatar
Rewriting ddnet ui in rust justatest
Avatar
xdd
Avatar
Ill probably work with Rust on my job 😏
Avatar
Avatar
MilkeeyCat
Ill probably work with Rust on my job 😏
cheater
17:44
i'd love to have a job that has nothing to do with databases. i envy ryo so much 😂
Avatar
Avatar
Jupstar ✪
cheater
My first project will be just to play around with wasm and tell em if it's a good shit
17:47
greenthing
Avatar
spoiler: it's good if you need plugin system
Avatar
I saw someone was making a game with wasm
17:48
And it had much less fps 😬 (edited)
17:49
it runs at pretty good speed indeed only problem is sharing memory, that's not very cheap
17:49
between host & guest i mean
Avatar
Ayyo, I have a problem that i keep timing out and idk the reason why. I timeout quicker / more on populated servers
17:53
I need help
Avatar
restart router
Avatar
set cl_port in f1
17:53
was serious
Avatar
i have the issue since 2 months
Avatar
and have u restarted router in 2months?=
17:54
it was even turned off for 2 weeks
Avatar
call ISP
Avatar
if it's on all servers especially
Avatar
they dont block anything they told me
Avatar
Avatar
Jupstar ✪
if it's on all servers especially
i mean yes
Avatar
not blocking but apparently selling you shit lol
Avatar
what cl_port shall i set?
Avatar
u can try 13000 then restart
Avatar
42069
Avatar
that does not tell me a lot
Avatar
but if u have it since 2 months.. i assume it wont help
17:56
it forces the client on a specific port
17:56
which SOMETIMES helps
17:56
esp for ppl that use dummy too
Avatar
ill chill a bit on an another server to confirm i time out there aswell
Avatar
alright
Avatar
but ger10 multeasy i timeout quick
Avatar
mh on ger10 it might also be the filter
17:57
but better confirm on other servers first
Avatar
nope i still timed out
17:59
i tried RUS
Avatar
GetConsoleMode can fail with ERROR_INVALID_HANDLE when redirecting output to nul, which is considered a character file but cannot be used as a console.

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
  • [ ...
Avatar
Avatar
Jupstar ✪
u can try 13000 then restart
i didnt time out for 20 mins, it looks good
18:23
and i timed out 😦
18:52
true programmer
18:52
wizard
Avatar
@Jupstar ✪ and other suggestions?
Avatar
Avatar
Bota
@Jupstar ✪ and other suggestions?
do you use latest client?
Avatar
i have steam
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
these dudes explain shit the best fr
Avatar
Avatar
Bota
i have steam
have u tried a different lan cable? maybe other port in router
19:08
maybe a shorter cable
Avatar
i have powerline
Avatar
if you have multiple computers in your house, try if u also time out there
Avatar
but tw only game with problems
Avatar
Avatar
Bota
but tw only game with problems
mh ok. well dunno if anything helps here tbh i'd say it's the routing between you and the servers but why it results in timeout is unclear to me that kinda sounds like the port gets closed after a while for an unknown reason
19:12
testing on a different computer would eliminate all problems that are caused by potential malfunctional software
19:12
then you could concentrate on hardware
Avatar
Avatar
Bota
i have powerline
yikes ☹
Avatar
Avatar
Jupstar ✪
mh ok. well dunno if anything helps here tbh i'd say it's the routing between you and the servers but why it results in timeout is unclear to me that kinda sounds like the port gets closed after a while for an unknown reason
his problem is probably the powerline adapter
19:28
they have a substantially higher baseline latency than most wifi
19:28
and it’ll fluctuate a lot
19:29
especially if the gateway end adapter is not on the same circuit as the computer end adapter
Avatar
mh yeah
19:30
better try lan cable directly in router
19:30
i dont trust any other tech xd
19:30
i exposed pre-drilled holes from tenants past to run my Ethernet
Avatar
foo!( "foo", "{x}", "bar", "{y}" "baz", x = 69 y = 72 ); is it possible in theory to write such a macro in rust? justatest
20:10
and it will return a formatted & concatenated string
Avatar
Also require that practice mode is disabled for /load to reduce possible side effects. Follow up on #8220

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
Avatar
Ryozuki
Click to see attachment 🖼️
is he programming in a parking lot? xDD
Avatar
Avatar
MilkeeyCat
and it will return a formatted & concatenated string
i would be surprised if it isn’t
Avatar
Avatar
MilkeeyCat
foo!( "foo", "{x}", "bar", "{y}" "baz", x = 69 y = 72 ); is it possible in theory to write such a macro in rust? justatest
macro_rules! foo { ($x:expr, $y:expr) => { println!("foo: {}, bar: {}", $x, $y); }; } fn main() { foo!(69, 72); } output: foo: 69, bar: 72 or do you want smth like: fn main() { let result = format!( "{foo} {x} {bar} {y} {baz}", foo = "foo", x = 69, bar = "bar", y = 72, baz = "baz" ); println!("{}", result); } ouput: foo 69 bar 72 baz (edited)
Avatar
Avatar
Teero
is he programming in a parking lot? xDD
hey you never talk bad about a man's crib!
🤣 1
Avatar
Avatar
meloƞ
macro_rules! foo { ($x:expr, $y:expr) => { println!("foo: {}, bar: {}", $x, $y); }; } fn main() { foo!(69, 72); } output: foo: 69, bar: 72 or do you want smth like: fn main() { let result = format!( "{foo} {x} {bar} {y} {baz}", foo = "foo", x = 69, bar = "bar", y = 72, baz = "baz" ); println!("{}", result); } ouput: foo 69 bar 72 baz (edited)
i think he is looking for a variadic approach
21:48
btw i think this would be very easy with a proc macro
21:48
because you can just build the format string directly
Avatar
Avatar
Ewan
because you can just build the format string directly
ah, just have it iterate over to build the string?
Avatar
no LLDB frontend - booooooh
Avatar
Avatar
MilkeeyCat
foo!( "foo", "{x}", "bar", "{y}" "baz", x = 69 y = 72 ); is it possible in theory to write such a macro in rust? justatest
i think yup
Avatar
Avatar
meloƞ
macro_rules! foo { ($x:expr, $y:expr) => { println!("foo: {}, bar: {}", $x, $y); }; } fn main() { foo!(69, 72); } output: foo: 69, bar: 72 or do you want smth like: fn main() { let result = format!( "{foo} {x} {bar} {y} {baz}", foo = "foo", x = 69, bar = "bar", y = 72, baz = "baz" ); println!("{}", result); } ouput: foo 69 bar 72 baz (edited)
he wants to concat asm lines without using r# for whatever reason
Avatar
Avatar
zhn
he wants to concat asm lines without using r# for whatever reason
justatest
Exported 148 message(s)