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 2023-09-29 00:00:00Z and 2023-09-30 00:00:00Z
Avatar
ddracenetwork
Avatar
friday rust
poggers2 2
Avatar
I missed Thursday gentoo night. Fucking hell
Avatar
Avatar
MilkeeyCat
I missed Thursday gentoo night. Fucking hell
β˜•
Avatar
Avatar
Teero
β˜•
🍡
Avatar
its llvm 17 time
08:38
good morning
08:44
oof
08:44
Sadge
Avatar
hope he push all code before he leaves
Avatar
Richard Stallman has cancer. Fortunately it is slow-growing and manageable follicular lymphona, so he will probably live many more years nonetheless. But he now has to be even more careful not to catch Covid-19.
08:50
he is already 70y old btw
Avatar
time flies
Avatar
discord mostly down via app? website still works for me
Avatar
App works for me
10:49
At least on android
Avatar
might only be desktop(?)
10:52
almost only posts about discord not working
Avatar
Both website and the app didn't work for me. Had to connect to a VPN first before I could access Discord.
Avatar
γ‚’γƒͺヂン 2023-09-29 12:07:56Z
its not a discord prpblem, its a misconfigured cloudflare problem
Avatar
source?
Avatar
What automapper is used for? (edited)
Avatar
Avatar
heinrich5991
source?
γ‚’γƒͺヂン 2023-09-29 12:12:40Z
just look at full image, it says that user triggered security something
Avatar
Avatar
γ‚’γƒͺヂン
just look at full image, it says that user triggered security something
from that image it might be anything from discord's fault to cloudflare's fault IMO. it only affects discord for me though
Avatar
γ‚’γƒͺヂン 2023-09-29 12:18:08Z
ye it might be discord's fault, i thought you meant that the servers are down
Avatar
Avatar
MilkeeyCat
What automapper is used for? (edited)
automatically generate a tiles layers tilemap depending from physics layers tiles
Avatar
Sounds fun pepeW, thanks
Avatar
Avatar
murpi
Both website and the app didn't work for me. Had to connect to a VPN first before I could access Discord.
works for me again
Avatar
@Ryozuki do you know a rustfmt that doesn't shy away from sorting derives, adding trailing commas in macros?
Avatar
Avatar
heinrich5991
works for me again
γ‚’γƒͺヂン 2023-09-29 13:37:25Z
its just a temporary block, ive got blocked 7 times today justatest
Avatar
oh
Avatar
Avatar
heinrich5991
@Ryozuki do you know a rustfmt that doesn't shy away from sorting derives, adding trailing commas in macros?
γ‚’γƒͺヂン 2023-09-29 13:38:14Z
you probably just have to configure it?
Avatar
no, explicitly out of scope for rustfmt
13:39
because it might (in a very theoretical way) break code
Avatar
Avatar
heinrich5991
@Ryozuki do you know a rustfmt that doesn't shy away from sorting derives, adding trailing commas in macros?
hm idk, but as u say i seen rustfmt not touch much macro code
13:39
my only grip with rustfmt is big arrays how it formats them in a column
13:39
otherwise it would be perfect
13:44
7b58b77 QoL ; Made it so f2 cmd 'tele' resets speed and unfreezes the tee upon teleporting - Steinchen99 c5ab791 Merge pull request #7264 from Steinchen99/qol-rcon-tele - heinrich5991
Avatar
when ddnet 18
13:45
ddnet no longer underage
Avatar
The age of majority is the threshold of legal adulthood as recognized or declared in law. It is the moment when a person ceases to be considered a minor and assumes legal control over their person, actions, and decisions, thus terminating the control and legal responsibilities of their parents or guardian over them. Most countries set the age of...
13:47
hmm. the US is marked as 18, yet you can only drink from 21 onwards
Avatar
18 is age of consent
Avatar
i consent
Avatar
Avatar
Voxel
18 is age of consent
In the United States, each state and territory sets the age of consent either by statute or the common law applies, and there are several federal statutes related to protecting minors from sexual predators. Depending on the jurisdiction, the legal age of consent is between 16 and 18. In some places, civil and criminal laws within the same state ...
Avatar
Avatar
heinrich5991
hmm. the US is marked as 18, yet you can only drink from 21 onwards
it might have something to do with their driving age πŸ˜„
Avatar
Avatar
Learath2
it might have something to do with their driving age πŸ˜„
doubt it, I once heardβ„’ that you can drive with 14 in parts of the US
14:33
In some jurisdictions in the United States and Canada, drivers can be as young as 14 (with parental supervision).[citation needed]
14:33
In the United States, driver's licenses are issued by each individual state, territory, and the District of Columbia rather than by the federal government due to federalism. Drivers are normally required to obtain a license from their state of residence. All states of the United States and provinces and territories of Canada recognize each other...
Avatar
Avatar
heinrich5991
doubt it, I once heardβ„’ that you can drive with 14 in parts of the US
so the older they start drinking at the better πŸ˜„
Avatar
aah
Avatar
its funny it states the height and weight
14:49
and eyes
Avatar
Avatar
Ryozuki
and eyes
I wonder what they write to people with heterochromia
Avatar
Heterochromia is a variation in coloration most often used to describe color differences of the iris, but can also be applied to color variation of hair[1] or skin.
15:49
(press y to generate it)
Avatar
@MilkeeyCat what u tryna do
15:56
here u can see simple usage
15:56
of the lib
15:57
if u want to make a map like the default in editor, this is my best effort: https://github.com/edg-l/ddnet-map-gen/blob/83dc864d3a25e1c3e7d57524ef65beacc44c7f5e/src/generators/mod.rs#L46
Avatar
Avatar
Ryozuki
@MilkeeyCat what u tryna do
im trying to understand 500iq rust code
15:59
my grug brain rejects it
16:00
impl<T: ItemParseErrorTrait + Default> ItemParseErrorTraitSingle for T {}
Avatar
Avatar
heinrich5991
(press y to generate it)
thanks, its my 2nd time being on getlab
Avatar
u want to understand this
Avatar
yea
Avatar
this implements a trait for a generic type T
16:00
it implements this trait for any type T that implements ItemParseErrorTrait + Default
16:01
ItemParseErrorTrait and Default are traits to
16:01
thanks
Avatar
so if a struct implements
16:01
ItemParseErrorTrait
16:01
and implements Default
16:01
it will implement ItemParseErrorTraitSingle
16:01
and since this trait has no body as you can see
16:01
its used as a marker trait
16:02
unless it has a impl somewhere else
16:02
Marker traits are used to mark types as having some property. They usually don't have any associated types and methods and are used to tell the compiler about some property of a type. Note that some of those traits are auto traits, which means that the compiler will automatically implement them for types, if it reasons it is safe to do so (you can still implement them manually, but it may require unsafe keyword). Currently (rustc 1.70.0) there are 5 stable traits in std::marker module. They have the following meaning. If type T implements: Copy it means that it can be Cloned by using bitwise copy Send it means that value of type T can be send across thread boundary Sync it means that value of type T can be shared between threads (that is &T is Send) Sized means that size of type T is known at compile time Unpin means that value of type T can be moved after it was pinned
Avatar
do i have to install anything else except rust-analyzer to make it work
16:02
its kinda broken now
16:02
and idk why pepeW
16:02
u shouldnt need anything else than rust
16:03
how are u using rust analyzeR?
16:03
what editor are u using
Avatar
mf is clueless
Avatar
u dont use rust-analyzer directly
Avatar
Avatar
Ryozuki
what editor are u using
neovim
16:03
and mason
16:03
it worked before
16:03
but doesnt now pepeW
16:04
hmm odd
16:04
whats ur rust version btw
16:04
i recommend u use rustup regardless of gentoo rust
16:04
and use rust-analyzer from rustup
16:04
which is more up to date too
16:04
let mut map_old: TwMap // size = 224 (0xE0), align = 0x8
16:04
my RA tells me this
16:05
so it works for me
16:05
let mut map_old = TwMap::parse_file(map_old)?;
16:05
for this line
16:05
@MilkeeyCat ah
Avatar
Avatar
Ryozuki
and use rust-analyzer from rustup
i use mason plugin and it uses this version
Avatar
does it compile
16:05
with rust?
16:06
❯ rust-analyzer --version rust-analyzer 1.72.1 (d5c2e9c 2023-09-13)
16:06
xd
Avatar
Why does the version of rust-analyzer matter? Something this simple has been deduced properly since rust-analyzer was first created πŸ˜„
Avatar
ye idk
16:06
just wondering maybe he had ancient ra
Avatar
aren't there logs or sth with neovim?
Avatar
:LspLog or smth
16:07
let me check
Avatar
with vscode I'd check the extension logs, they usually tell you what went wrong
16:07
i forgot how to trigger a hover in neovim
16:07
xdd
16:08
Avatar
i have it on shift+k
Avatar
what does :LspInfo do
16:08
say
16:08
*
Avatar
hi alex
Avatar
he edgar
16:09
ive already sent screenshots with my name
Avatar
:LspLog
16:09
and press shift g
16:09
what does it say
Avatar
[ERROR][2023-09-29 21:41:44] .../vim/lsp/rpc.lua:734 "rpc" "/home/alex/.local/share/nvim/mason/bin/rust-analyzer" "stderr" "[ERROR rust_analyzer::main_loop] flycheck 0: File with cargo diagnostic not found in VFS: file not found: /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panic.rs\n"
16:10
btw are u in a cargo "project!"
16:10
aka
16:10
u have cargo.toml and all
Avatar
yea
16:11
i just yoinked patiga's code
16:11
and place dbg's
16:11
nothing more
Avatar
does autocomplete work?
Avatar
nuh uh
16:12
Avatar
Avatar
MilkeeyCat
[ERROR][2023-09-29 21:41:44] .../vim/lsp/rpc.lua:734 "rpc" "/home/alex/.local/share/nvim/mason/bin/rust-analyzer" "stderr" "[ERROR rust_analyzer::main_loop] flycheck 0: File with cargo diagnostic not found in VFS: file not found: /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panic.rs\n"
this error cant be date doesnt match
Avatar
it does xd
Avatar
oh u have snippets first xd
Avatar
I wonder if somehow it's just not aware of twmap
Avatar
just in case
Avatar
but it doesnt show return type for some funtions
Avatar
exit neovim
16:13
cargo clean
16:13
cargo b
16:13
enter
Avatar
The rust gods just don't like you, you'll not have autocomplete, sorry
Avatar
im going back to grug languages
16:16
gonna learn go
Avatar
Should have used a language that doesn't require an entire IDE to code
16:16
I suggest C Gigachad
Avatar
Avatar
Learath2
Should have used a language that doesn't require an entire IDE to code
im checking twmap like this for 2 days
16:18
at least it shows me structs
16:18
otherwise just use telescope pepeW
Avatar
Avatar
Learath2
Should have used a language that doesn't require an entire IDE to code
I'm using vim to code rust ^^ (edited)
Avatar
I hate these people with a passion
Avatar
old tho
Avatar
I want a client side database, I didn't ask your opinion on whether it's a good idea. I asked for a database, that works on the client
Avatar
link for context?
Avatar
I'm creating a web site that I think must have a client side database. The other option would be to stick everything on the server at the expense of increased complexity and decreased scalability....
Avatar
Avatar
Learath2
I want a client side database, I didn't ask your opinion on whether it's a good idea. I asked for a database, that works on the client
nowadays browsers support this
16:42
i think its called indexdb or smth
16:42
it supports sqlite like queries iirc
16:42
otherwise wasm to the rescue
16:43
IndexedDB is a low-level API for client-side storage of significant amounts of structured data, including files/blobs. This API uses indexes to enable high-performance searches of this data. While Web Storage is useful for storing smaller amounts of data, it is less useful for storing larger amounts of structured data. IndexedDB provides a solut...
16:43
not sure if existed in 2011
16:44
there are libs built on top of thos
16:44
to make it easier
16:44
cuz this is fairly low lvl
Avatar
Avatar
Ryozuki
nowadays browsers support this
My usecase was a little different. I don't need it stored at all. I was thinking of shipping a blob db and abusing sqlite or something similar for querying
Avatar
client.cpp sry, im bread
Avatar
Avatar
Sedonya
client.cpp sry, im bread
@Robyt3 gigachad
Avatar
Avatar
Sedonya
client.cpp sry, im bread
use pSelf instead of Client()
Avatar
i cant
Avatar
why not?
17:28
idk
Avatar
instead
17:29
pSelf->LatestVersion() (edited)
17:29
17:29
I'm the real bread.
Avatar
Avatar
Sedonya
poggers2
no { } near if statement justatest
Avatar
1 action is performed; why use {}?
Avatar
idk, i always use {}
Avatar
Can be used, but not necessarily if it is followed by 1 line
Avatar
i usually forget about {}, add more lines and everything is fukced
17:35
How do I change the name and icon of the exe being compiled?
Avatar
Avatar
Sedonya
Can be used, but not necessarily if it is followed by 1 line
history has shown that omitting these can lead to bugs because of what @MilkeeyCat said
17:36
so I just always use them
Avatar
I've never had any errors kek
Avatar
Avatar
heinrich5991
hmm. the US is marked as 18, yet you can only drink from 21 onwards
and smoke
Avatar
Avatar
heinrich5991
doubt it, I once heardβ„’ that you can drive with 14 in parts of the US
indeed unrelated, you can drive with a permit if accompanied by someone 21 or older with a license. a federal minimum time of 1 year with the permit is required before you can take your driving test & actually get your license. sometimes you can get the permit earlier (still can't get the license until 16) if there's driving school involved
Avatar
i have to fix this error somehow. any ideas? owo [ERROR rust_analyzer::main_loop] flycheck 0: File with cargo diagnostic not found in VFS: file not found: /rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panic.rs\n
Avatar
why do you need to fix this error?
18:57
it seems harmless from first glance
Avatar
coz my rust-analyzer doesnt work
18:58
:D
Avatar
that seems unrelated to this error
18:58
theres nothing else in logs
18:58
pepeW
18:59
akshually i always knew i wouldnt use rust. golang is the way to go (edited)
Avatar
both are interesting languages πŸ™‚
Avatar
better than js on servers pepeW
Avatar
you can try intellij+rust plugin for rust btw
19:01
that's what I use when I want to have an IDE
Avatar
they are making a rust ide
Avatar
yep, that too
Avatar
@MilkeeyCat look at date of the log
Avatar
im pretty happy with neovim
Avatar
its unrelated
Avatar
Avatar
Ryozuki
its unrelated
it is. i just have wrong time xD
Avatar
and i dont want to read 40 horus manual how to set it correctly
19:02
but one day i will
19:02
and i need different keyboard layouts pepeW
Avatar
Avatar
MilkeeyCat
and i dont want to read 40 horus manual how to set it correctly
that's what intellij+rust plugin gives you; no 40 hours manual
19:02
you can even have somewhat accurate vim keys inside, there's an extension
Avatar
Avatar
MilkeeyCat
and i dont want to read 40 horus manual how to set it correctly
and here u are using gentoo
Avatar
How do I change the name and icon of the exe being compiled?
Avatar
change the project name in cmake
19:02
iifc
Avatar
Avatar
heinrich5991
that's what intellij+rust plugin gives you; no 40 hours manual
easy way aint fun pepeW
19:03
or target name
Avatar
Thx <3
Avatar
Avatar
MilkeeyCat
easy way aint fun pepeW
why not? πŸ™‚
19:04
things being hard is not good in itself
Avatar
i was talking about time btw
Avatar
Avatar
MilkeeyCat
they are making a rust ide
rust ide?
Avatar
Avatar
Voxel
rust ide?
yes?
Avatar
Avatar
Voxel
rust ide?
Try the new Rust IDE from JetBrains with a debugger, on-the-fly analysis, and quick-fixes.
19:05
first
19:05
ez
19:05
ez
πŸ₯± 1
Avatar
Avatar
Ryozuki
@MilkeeyCat look at date of the log
so is that thing related to rust-analyzer being dumb?
Avatar
oh yea i forgot jetbrains was a thing LOL
Avatar
Avatar
Ryozuki
change the project name in cmake
line number pls justatest
Avatar
set(CLIENT_EXECUTABLE …)
❀️ 1
Avatar
Avatar
MilkeeyCat
so is that thing related to rust-analyzer being dumb?
no its not, i opened another project and it doesnt show that message. and still doesnt work
Avatar
chillerdragon: hi
Avatar
chillerdragon BOT 2023-09-29 21:19:57Z
hi
Replying to @solayer chillerdragon: hi
Avatar
that is just implemented for all types that inplement the other trait, like ryo said. its purpose is just to implement the concept of item types which expect only a single item generally (so dor example it errors if there are 2 item of the type, and it also provides a clean return value). that file actually had the most refactors of them all, like 3 iirc. I hope I didn't go too abstract with it, to the point where its not comprehensible
Avatar
Hello! The code refactor of rails presented last week is great, but the motivation for such a task wasn't quite just some shape changes for rails. As explained last week, we can now define any kind of rail shape, and we had some very specific shapes in mind all along...
wtf 1
22:53
insane
Avatar
good evening
Avatar
I missed the fact that the world does not stay nullptr should have tested more thoroughly.

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 (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
  • [ ] Teste...
Exported 274 message(s)