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 2022-09-14 00:00:00Z and 2022-09-15 00:00:00Z
Avatar
Avatar
heinrich5991
sure 🙂 I'm interested in getting it to run on your computer
Sounds fair happy, sending it when I'm home again (around 2-4pm German timezone for you)
Avatar
Avatar
Ravie Senpai
Sounds fair happy, sending it when I'm home again (around 2-4pm German timezone for you)
Kinda sux, we checked yesterday and can't find out why
Avatar
Avatar
ReiTW
Kinda sux, we checked yesterday and can't find out why
So it's time to install some Linux distribution... zzzz
Avatar
@Ravie Senpai yes, windows only for gaming
08:17
overwise would have been on linux
08:17
@Ryozuki If you want to work on interesting problems using Rust professionally, you should consider working here at Discord.
08:17
damn
08:17
u have a certified Discord job
08:18
most rust jobs want senior devs
08:18
with years of c++ background
Avatar
Avatar
heinrich5991
(as wireshark is a cross-platform app, it's also a windows app. but you shouldn't install the wireshark windows app on linux)
Not sure if it was years ago, thats when I tried installing it on ubuntu
08:29
now i honestly not care for wireshark (edited)
Avatar
Avatar
Ryozuki
with years of c++ background
yes, like companies
09:14
who wants people with 3+ years of Carbon language experience justatest
Avatar
Idk why so much buzz about carbon
09:14
Rust is better
09:15
but one good reason to use Carbon over C++ ig
Avatar
Carbon has no mem safety just good interop (edited)
Avatar
is only that Carbon might have a package/lib manager
Avatar
Even they recommend using rust
Avatar
instead of messing with ur CMakeList etc..
09:15
for me that's the only good reason
Avatar
Avatar
ReiTW
yes, like companies
C++ experience working* what you done in ur free time / open source work doesnt matter
09:16
greenthing
Avatar
so in which company can u work with C++ without being rejected
09:16
cuz of 0 years in a company
Avatar
Proba none
Avatar
They require a degree too often
09:16
Well i never tried applying to any c++ job
Avatar
imagine finding a job asking for HolyC years of experience
09:19
I could just put that i worked at the company ddnet.org for 5 years with c++
09:19
BASED
09:19
"charity work"
Avatar
ig u could just do an internship in a company
09:20
prove your skills
09:20
& then easily apply
Avatar
I like money
09:20
They never pay good
09:20
xd
09:21
deletin, this can invoke some people
09:23
Anyway i use rust for internal tools rn
09:23
And i made a complete web app in rust that the boss didnt know how to market in my prev small company
09:23
So i already got some "real" xp with rust
09:24
greenthing
Avatar
I try to convince someone to use Rust
09:27
he likes python & fastapi
09:27
well fastapi is good aswell & also creates a documentation
Avatar
Avatar
ReiTW
@Ravie Senpai yes, windows only for gaming
I don't know which Linux distribution could fit to my work, I need to dig deep into it
Avatar
Avatar
Ryozuki
They never pay good
That's a lie, at least it depends
Avatar
Avatar
Ravie Senpai
So it's time to install some Linux distribution... zzzz
I want to get it to run on windows 🙂
11:43
I'll try it in a VM next
Avatar
Avatar
heinrich5991
I want to get it to run on windows 🙂
Okay, can't wait to test it then, please keep me up to date brownbear
Avatar
Is there a way in discord so that I can skip to all messages in that I was taged?
Avatar
@c0d3d3v mentions:c0d3d3v
♥️ 1
Avatar
if you want that across all servers there's also the inbox in the top right
Avatar
@heinrich5991
13:38
this also allows u to check for messages
Avatar
ah nice, that also includes role mentions
Avatar
The LAN port
Avatar
Hello guys @Dev, I am currently finishing my PhD and i thought you might be interested in the very first chapter which is about context on semiconductor industry, memory technologies, etc. It should be easily understandable (if i did my job correctly 🙂 ) for non technical people. Im taking any review you might have on the content but also on orthograph. Thanks (edited)
Avatar
I can't proofread french 😄
14:34
but the second page starts with english
Avatar
yeah, it's all in english obviously, its just that the doctoral school demand a french resume along with the abstract
Avatar
remerciment is intended to be french?
Avatar
comments here or in DM? DM probably to not spam this channel?
Avatar
as you wish 🙂
Avatar
I think memory is uncountable, but you use it in plural many times
Avatar
because it denotes a chip in general
14:39
so there may be several memories
14:40
with different technologies, integration, etc.
14:41
https://en.wiktionary.org/wiki/memory
memory (countable and uncountable, plural memories)
Avatar
that is a bit misleading because memory also means something else in english
14:41
but on https://en.wikipedia.org/wiki/Flash_memory, I do find a couple of "memories", so I retract my point
14:43
idk maybe we have a computer science student who natively speaks english in here?
14:43
But he is not active
Avatar
i still have to run it trhough advanced spell checker, especially for conjugation and some plural
Avatar
@Chairn thesis for which school lol
Avatar
Aix-Marseille University, not Grenoble
Avatar
i anonymised the file i sent 🙂
Avatar
@ChillerDragon do you remember the minecraft within minecraft with redstone? It was executed under a custom mc server implemented in rust that does redstone 10000x faster
15:04
BASED
15:05
the juice:
15:05
A multithreaded Minecraft server built for redstone. - GitHub - MCHPR/MCHPRS: A multithreaded Minecraft server built for redstone.
Avatar
-A; I am a programmer. -B; Cool me too and in what you programm? -A; In mc redstone
Avatar
Avatar
Mr.Gh0s7
-A; I am a programmer. -B; Cool me too and in what you programm? -A; In mc redstone
i mean you the biggest minecraft pro i know actually xDDD
Avatar
A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
15:32
a dissasembler made with imgui (edited)
Avatar
chillerdragon BOT 2022-09-14 15:37:42Z
Yes I know. I looked into all the rust Mc projects (@Ryozuki)
@ChillerDragon do you remember the minecraft within minecraft with redstone? It was executed under a custom mc server implemented in rust that does redstone 10000x faster
Avatar
chillerdragon BOT 2022-09-14 15:38:03Z
They all have cool ideas but sadly nothing feature complete enough for a survival server
Avatar
Imagine playing the game smh
Avatar
chillerdragon BOT 2022-09-14 15:40:26Z
I do
Avatar
do you also know what exactly they parallelized? just redstone? minecraft is tick based right, so it has to start somewhere and end somewhere xd
Avatar
Read the repo
Avatar
if u post it i assume u read it xd
Avatar
Each 256x256 plot runs on a thread
15:46
There is also the Redpiler
15:47
The redstone compiler
Avatar
ok but they especially focus on redstone for computers xD
15:48
The sv doesnt have many vanilla things
Avatar
too bad
15:48
i'd love to have redstone working well
15:48
that always kills the server xD
Avatar
Well not using java is a step
15:48
Xd
Avatar
there is another c++ server as far as i know
15:49
A lightweight, fast and extensible game server for Minecraft - GitHub - cuberite/cuberite: A lightweight, fast and extensible game server for Minecraft
15:49
ah yeah this
Avatar
Mc these days has lot of content
Avatar
mc has infinitife content, such a tryhard community
Avatar
chillerdragon BOT 2022-09-14 16:18:25Z
There are a lot of cool things. But I have yet to come across a usable client or server reimplementation. Last time I tried cuberite the incompleteness and bugs felt way worse than a slow javaI feel like all the good content is all written in Java (@Jupstar ✪)
mc has infinitife content, such a tryhard community
Avatar
Does anyone know of a pattern when exposing shared_ptr's to C APIs?
Avatar
The pattern is probs not using c
16:30
BASED
Avatar
I'm thinking just malloc a piece of memory, store the shared_ptr there and expose the new piece of memory to the C API instead
Avatar
Avatar
Ryozuki
The pattern is probs not using c
Oh, how did I not think of that. I'll do a quick rewrite of libcurl in C
16:30
c++
Avatar
Skip c++
16:30
Rust
Avatar
expose the raw pointer?
Avatar
Ah true, I'll also rewrite ddnet in rust too along the way, thanks ryo
Avatar
Avatar
Chairn
expose the raw pointer?
The library will keep the raw pointer around for a while, I need to ensure the pointer given to the lib is also counted as a ref in the ref count
Avatar
I usually see this way around, wrap the c api pointer in a shared ptr or unique ptr with the free function
Avatar
Avatar
Learath2
The library will keep the raw pointer around for a while, I need to ensure the pointer given to the lib is also counted as a ref in the ref count
hmm, expose raw pointer, store a ref in another struct?
Avatar
Ye but im not home rn
Avatar
Oh, I'd missed it. I'll take a look
Avatar
And 63 pages
16:32
justatest
Avatar
nah, only 25
16:33
+ half of it is figures (maybe a little less)
Avatar
Avatar
Chairn
hmm, expose raw pointer, store a ref in another struct?
Yeah, about what I had in mind. I guess that's what I'll go for
Avatar
yeah, i'd make a struct with the raw pointer and a shared_ptr to keep the ref, and just pass the raw pointer to the C api
Avatar
@Learath2 r u modifying libcurl?
Avatar
so that way, they should be kept in sync
Avatar
Avatar
Ryozuki
@Learath2 r u modifying libcurl?
I'm passing a context variable to libcurl that'll be returned to me. I need to pass a shared_ptr
Avatar
Avatar
Chairn
yeah, i'd make a struct with the raw pointer and a shared_ptr to keep the ref, and just pass the raw pointer to the C api
The C api doesn't use the data, it's just context I'll get later. So I can just pass a pointer to the struct with the shared_ptr
Avatar
Is libcurl just modifying the context or allocating smth?
Avatar
It's not touching that at all. It's just user context. You pass it a void *, it'll give it back to you on a callback
Avatar
I'd put the shared_ptr behind another pointer
Avatar
Avatar
heinrich5991
I'd put the shared_ptr behind another pointer
Yep, I ended with std::shared_ptr<CHttpRunnable> *ppRunnable = malloc(sizeof *ppRunnable); *ppRunnable = pRunnable;
Avatar
what are you doing? 🙂
Avatar
I'm redoing the curl-multi pr
Avatar
you're amazing 🙂
Avatar
heinrich the positive
16:48
😀
Avatar
I don't remember the problems with the old one anymore
Avatar
I just cant see the smiles as other than sarcastic for some reason (not saying yours are)
Avatar
these are standard :) smilies
Avatar
Avatar
heinrich5991
I don't remember the problems with the old one anymore
It had a very small issue, but I just didn't like it for whatever reason
Avatar
Avatar
Ryozuki
I just cant see the smiles as other than sarcastic for some reason (not saying yours are)
this one 😀 is 99% sarcastic
Avatar
and I learned that 😉 can be seen as sexual in the US?
Avatar
this totally blew my mind. I've never seen that before ^^
Avatar
well not really by itself but otherwise it could be
Avatar
Avatar
heinrich5991
and I learned that 😉 can be seen as sexual in the US?
wanna play ddrace ? 😉
Avatar
I mean I would play ddrace, but I think it's a joke on the smiley ^^
Avatar
Wait what? So I should stop using 😉 at work all the time? 😉
😳 1
Avatar
do you interact with US americans at work?
Avatar
Yes, US company
Avatar
Eating a banana is also highly sexual 😉
Avatar
Avatar
deen
Wait what? So I should stop using 😉 at work all the time? 😉
let's fix some bugs 😉 lmao
Avatar
for some reason, this hasn't happened in europe so far
Avatar
wow, i use 😉 all the time
Avatar
I'll continue using it until europeans find it weird ^^
Avatar
what i don't like in emails and chatting however is three little dots...
Avatar
I don't think it's true, I see ~1000 matches for 😉 on work slack
16:58
I don't think everyone is flirting secretly 😄
Avatar
i always over interpret them
Avatar
ah good to know 🙂
Avatar
... is mean in my opinion, or like it shows the writer doesn't say everything he wants
17:00
oh god, i killed the conversation...
Avatar
😉 is only sexual if you make it sexual in the context, normally it's fine
Avatar
@heinrich5991 thanks for going through open PRs
Avatar
The 256th day of every year is also known as Programmer's Day. To celebrate this event, we've rounded up a party of games that are not only fun to play, but can teach you to think like a true engineer and feel like a tech wizard! Welcome to Programmer's Day Sale. Hello, world!
Avatar
Does anyone know if you can bind a socket to itself?
17:19
a datagram socket to be exact
Avatar
Avatar
deen
@heinrich5991 thanks for going through open PRs
should be done every once in a while; it's been a long time since I last did it. you're welcome 🙂
Avatar
Avatar
Learath2
Does anyone know if you can bind a socket to itself?
wdym, binding a socket to itself?
17:20
are we talking about bind or connect?
Avatar
An UDP socket, when you write to it, you receive the message you send on that socket
Avatar
ah, sending a message to yourself?
17:21
no, I don't know if that's possible. let me try
17:25
yea, works @Learath2
17:25
use std::net::UdpSocket; fn main() -> std::io::Result<()> { let socket = UdpSocket::bind("0.0.0.0:0")?; let addr = socket.local_addr()?; socket.send_to(b"Hello world?\n", &addr)?; let mut buf = [0; 128]; let (read, addr) = socket.recv_from(&mut buf)?; println!("{}: {}", addr, String::from_utf8_lossy(&buf[..read])); Ok(()) }
Avatar
I mean a socket is just a fd
17:29
You can send to it directly
Avatar
Avatar
heinrich5991
use std::net::UdpSocket; fn main() -> std::io::Result<()> { let socket = UdpSocket::bind("0.0.0.0:0")?; let addr = socket.local_addr()?; socket.send_to(b"Hello world?\n", &addr)?; let mut buf = [0; 128]; let (read, addr) = socket.recv_from(&mut buf)?; println!("{}: {}", addr, String::from_utf8_lossy(&buf[..read])); Ok(()) }
Stop!!! People think they can harm DDNet with it!!!
Avatar
Hopefully it'll wake up select just fine
Avatar
Avatar
Ravie Senpai
Stop!!! People think they can harm DDNet with it!!!
what do you mean?
17:46
it's a small rust program. it has nothing to do with ddnet
Avatar
isnt this the loopback or smth
Avatar
Avatar
Ryozuki
I just cant see the smiles as other than sarcastic for some reason (not saying yours are)
🙂 gives off a very passive aggressive vibe to me
Avatar
9b4371f Change log format - heinrich5991 0e211f1 Merge #5036 - bors[bot]
Avatar
chillerdragon BOT 2022-09-14 18:00:24Z
@heinrich5991: if my stale 0.7 skins pr bothers you we can close it no problemo
Avatar
i literally do not know whats the problem here, by the way.
18:00
do .cpp files not need an #include [file].h?
Avatar
you don't have access to clang-format?
Avatar
I do, it's just I don't know what violation it's causing.
Avatar
if you do, you can simply run python scripts/fix_style.py and it'll do it for you
Avatar
Avatar
Voxel
I do, it's just I don't know what violation it's causing.
probably alphabetically sorting
Avatar
perhaps it wants to sort it
18:01
yea
18:02
chillerdragon: I'll get back to you if it annoys me. I just wanted to check all the pull request's statuses
Avatar
chillerdragon BOT 2022-09-14 18:03:17Z
Oke
Avatar
how's the 0.7 thing going btw?
Avatar
chillerdragon BOT 2022-09-14 18:03:39Z
You can close without warning. I can reopen if needed
18:03
Im going minecraft all day
18:03
Didn’t Code shit in my freetime since weeks
18:03
:(
Avatar
okay 🙂
18:04
minecraft is also fun!
Avatar
chillerdragon BOT 2022-09-14 18:04:09Z
!
18:04
You also watch liveoverflow right?
Avatar
I met liveoverflow before I watched videos of him 😛
18:05
but I also watched a couple of videos from him 😉
Avatar
chillerdragon BOT 2022-09-14 18:05:32Z
I play on his server
18:05
Oh
18:05
Where?
Avatar
his minecraft server?
Avatar
chillerdragon BOT 2022-09-14 18:05:49Z
Go leak
Avatar
hm, sounds like doxxing myself as well. no leaks today
Avatar
chillerdragon BOT 2022-09-14 18:06:10Z
Where did you meet him
18:06
No
18:06
How
18:06
Hehe
18:06
So it was irl?
Avatar
yes
Avatar
chillerdragon BOT 2022-09-14 18:06:37Z
Ah
18:06
Did you know he was a yter back then?
18:07
Ok I stop -.-
Avatar
hah, went through all PRs 🙂
18:08
now I'm going to make some dinner
Avatar
So to clarify, to merge commits in git bash I type git rebase -i master? (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-09-14 18:13:16Z
i always go git reset --soft HEAD^^^^^^^^^^^^^^^^^^ xd
18:13
but wat do i know
18:13
always found rebasing a bit intimitadting
18:13
but ye rebase -i looks good
18:13
then you can edit the thingy
Avatar
depends what you want to do
Avatar
[quakenet] ChillerDragon BOT 2022-09-14 18:14:05Z
and kick out commits you dont like or soemthing like that
Avatar
git merge upstream/master is fine as well
Avatar
[quakenet] ChillerDragon BOT 2022-09-14 18:14:34Z
i think he wants to "merge commits" as in combine multiple in one
18:14
not merge branches
Avatar
you would know chairn
Avatar
if you want to rebase a pull request, then use your command git rebase master or with -i flag if you need to change commits
Avatar
im so close to just closing the entire multicolored lasers branch LOL
Avatar
[quakenet] ChillerDragon BOT 2022-09-14 18:15:06Z
oof
Avatar
its so messy
Avatar
if you just want to merge and add a merge commit, then git merge master
Avatar
[quakenet] ChillerDragon BOT 2022-09-14 18:15:32Z
rm -rf .git && git init && git add . && git commit -m fml
18:15
^ dont do this xd
18:17
also gj @heinrich5991 on going through all prs. I should do that too sometimes to get a dopamine kick. Its the fulltime github influencer equivalent of writing "hi" to all whatsapp contacts :D
Avatar
yeah HOPEFULLY once i squash some commits my thing will be ready (edited)
18:19
then again this was my first time ever coding so uhhh monkalaugh
18:20
FUCK. YOU
18:21
what does it want from me??? (edited)
18:22
I clang formatted it
Avatar
what clang-format version?
Avatar
i dont know
18:23
im using some unreliable VSCode extension to clang format it (edited)
Avatar
don't bother with that, we can clang-format it for yoyu
Avatar
well can i at least squash some commits first
Avatar
okayyyy id be more open to work on this but i have like, 2 boring therapy meetings in a row
justatest 1
Avatar
Avatar
Voxel
what does it want from me??? (edited)
Remove the empty lines you added after the includes, there should only be one empty line after the includes
Avatar
yea i figured that out already
18:51
god my lack of coding skills back then are rly biting me now its so stressful
Avatar
Avatar
Voxel
im using some unreliable VSCode extension to clang format it (edited)
i use clang-format from xaver and it never failed me ^^
18:53
but u need to use clang-format-10
18:53
also u need to tell vscode explicitly to use a formater
18:53
in the settings
Avatar
Avatar
Jupstar ✪
i use clang-format from xaver and it never failed me ^^
well it failed ME
18:54
it had NO reason to add an extra line
Avatar
its not the computer that is buggy, its the user in front that uses it wrong 😉
18:56
no but i dunno, maybe newer clang-formats do that, but i honestly doubt that
Avatar
i dont know. all i know is that im completely unmotivated for this pull request in this state
18:57
i cant even squash commits because other ppl's are in the way
Avatar
what does that mean
Avatar
Avatar
Voxel
i cant even squash commits because other ppl's are in the way
u can literally move the commits around
Avatar
Avatar
heinrich5991
I met liveoverflow before I watched videos of him 😛
I had a theory that you were liveoverflow 😄
19:00
I can't tell apart people with similar accents
Avatar
im tempted to just cheat and close the PR to completely make a new branch and copy all the clean code from this into the new branch
Avatar
Avatar
Ryozuki
isnt this the loopback or smth
it'd use the loopback tho
19:16
ig
19:16
good place to learn rev eng
Avatar
Avatar
Voxel
im tempted to just cheat and close the PR to completely make a new branch and copy all the clean code from this into the new branch
idek if this is even allowed tbh
Avatar
Avatar
heinrich5991
I met liveoverflow before I watched videos of him 😛
nice where?
Avatar
Why is there no method to loop through the easy handles in a curl multi handle? 😦
Avatar
@Voxel if it boils down to tooling such as clang-format and git rebase, I can also do it for you
21:12
(in general, please don't do git merges in feature branches btw)
Avatar
Avatar
heinrich5991
@Voxel if it boils down to tooling such as clang-format and git rebase, I can also do it for you
that would be appreciated... sorry if the entire PR is a mess feelsbadman
Avatar
alright, link it and I'll do it after the game
Avatar
Since we're doing a push to assist newer players, I think it would be a good idea to differentiate the different types of lasers, so that non-moving laser entities aren't confused with door...
Avatar
I was so close to getting rid of that unordered_map, now I need it back because curl can't spit the easy handles back out 😦
Avatar
put it into the multi_handle? ^^
21:32
into the userdata of the multihandle?
Avatar
put what in htere?
Avatar
the easy handles
Avatar
Why bother, might aswell store it myself in the unordered_map if I'll have to double store it either way
21:33
libcurl already internally has a list, it just won't let me access it 😦
Avatar
ah
Avatar
I only need it during cleanup too, soooo close 😦
Avatar
what do you need to do during cleanup?
Avatar
All the remaining easy handles inside the multi
21:42
I checked some examples they had in the curl sourcecode and they also keep an array of easy handles so they can cleanup
21:42
it's just shit api design 😦
21:45
That rewrite was going so well too. Now I'm not in the mood to continue 😄
Avatar
maybe ignore the cleanup? 🙂
Avatar
df91c28 Some release settings for rust attempts - def-
Avatar
Ah btw maybe my question in #mapping is maybe a question for this channel 🙂
Exported 341 message(s)