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-10-23 00:00:00Z and 2022-10-24 00:00:00Z
06:57
neovim 0.8 poggers
06:59
06:59
there is this variant
Avatar
nice, perfect IDE to do some rust coding for ddnet ;9
Avatar
chillerdragon BOT 2022-10-23 08:37:59Z
ddnet-rs
Avatar
Avatar
Jupstar ✪
nice, perfect IDE to do some rust coding for ddnet ;9
Still not an ide
Avatar
looks a lot like an IDE to me
08:52
if u code and compile in that tool its an IDE
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
does ur text editor provide syntax checking? or pure text editor?
Avatar
Avatar
Jupstar ✪
if u code and compile in that tool its an IDE
An IDE comes with pre-installed tools to build, debug etc.., same for vscode it's not an IDE, but you can still achieve the same if you pass 30min configuring it
Avatar
yes and as soon as you done that its an ide
08:57
what disqualifies it as an IDE then?
08:57
As I said
08:58
An IDE is: install and it works
08:58
Vscode for example you have to take forever to config
Avatar
Avatar
Jupstar ✪
does ur text editor provide syntax checking? or pure text editor?
i dont compile in nvim
Avatar
he installed and it works
Avatar
It's a code editor, that's all
Avatar
nvim comes with lsp support tho
08:58
and lsp checks errors
08:58
such as syntax
08:58
and provides autocomplete
Avatar
i think you are too focused about splitting IDE from text editor if u code, have code syntax etc. its an IDE
Avatar
its an enviroment
08:59
environment
09:00
you can achieve as you want to
09:00
it*
Avatar
But well ig many people has different approach about that, It is never mentioned that vscode is an ide but a code editor etc.., same for sublime, same for vim, etc..
Avatar
yes
09:00
vscode is a text editor
Avatar
pure vscode != ide
09:00
configured vscode == ide
Avatar
and vscode with c++ extensions gives me everything an IDE gives
Avatar
Still not an IDE, but it is similar, an IDE still is different as you install it with all the tools required, that's all, it's integrated
Avatar
the problem is, its simply not well defined
Avatar
You press the install button
09:02
Everything is already set
Avatar
wikipedia: "One aim of the IDE is to reduce the configuration necessary to piece together multiple development utilities." now does VSCode provide you that? I'd say yes, u install c++ extension and give it a go
09:03
except you call installing a simple extension a configuration
Avatar
Your point of view, for me it is still not, for Microsoft too
Avatar
As _control87 doesn't seem to be available for some MinGW compilers. Closes #5969.

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
  • [ ] Tested the chang...
Avatar
Nothing about these vscode or nvim setups are well integrated enough to be called an IDE. Sure it got better but these are all plugins made by different authors. They break they can be misconfigured in a way that they dont interact properly
09:17
Atleast imo, you are free to define IDE however you like I suppose. If for you having a build button makes it an IDE, so be it 😛
Avatar
well the c++ extensions from microsoft are automatically activated
09:18
i'd call it an IDE yes
Avatar
But does it come with a compiler?
Avatar
does eclipse come with one?
Avatar
in fact setting up eclipse is harder imo
Avatar
Eclipse for java does iirc
Avatar
Eclipse is all plugins, so it's not an IDE troll
Avatar
i see ^^
Avatar
CLion doesn't come with a compiler either but I'd still call it an IDE. It's an out of the box experience, integrated by a company to be a certain way
Avatar
my points is really more about complexity than if its important if its an IDE or text editor if i need 5 clicks to have a great debugging/coding etc. experience with vscode (clangd e.g. installs the clang server itself if not found in path) then i'd not call it a text editor anymore sure the base is an highly extensible text editor
Avatar
Honestly, never been that easy for me. Some part of that setup just keeps breaking for me, never really got the debugging working at all
Avatar
i had this experience more with eclipse actually
09:22
which didnt have a good cmake plugin
09:22
couldnt do outer source build
Avatar
Avatar
Learath2
Honestly, never been that easy for me. Some part of that setup just keeps breaking for me, never really got the debugging working at all
I personally don't care. But if I'm told something is an IDE I really just expect to click build or debug and it just works
Avatar
I'd agree if a compiler would be a must have
Avatar
Fwiw everything I would classify as an IDE does bundle a compiler in some way. Just not all as integrated as eclipse
09:25
I think CLion installs a compiler to use
Avatar
so visual studio is the only real IDE? 😄
09:25
comes with everything preinstalled
09:25
just takes 20 years to install
Avatar
Well eclipse also bundles a java compiler in some way
Avatar
i bet vscode bundles lot of javascript tools too
09:26
bcs thats their main target group still
Avatar
it doesnt come with nodejs
Avatar
Eclipse, Netbeans, VS, CLion, DevC++
09:27
These are what I'd call ide's. Highly integrated out of the box experiences
09:27
XCode
Avatar
stackoverflow gives a shit in their surveys.. are they now considered unreliable? https://survey.stackoverflow.co/2022/#integrated-development-environment some ppl could have not answered it bcs they dont use vim or vscode as IDE 😉 (edited)
In May 2022 over 70,000 developers told us how they learn and level up, which tools they’re using, and what they want.
Avatar
@Jupstar ✪ do u use kate?
Avatar
Avatar
Ryozuki
@Jupstar ✪ do u use kate?
only as text editor, but yeah sometimes 😄
Avatar
this might be the future: https://lapce.dev/
Lightning-fast and Powerful Code Editor
09:28
its like vscode but it uses rust
09:28
so its rly fast
09:28
and it doesnt compile to webasm
Avatar
i've already used it
Avatar
its native
09:29
Native GUI with GPU acceleration in Rust, no more waiting on launching the editor, and any lag on your keystroke will be treated as a bug and get fixed.
Avatar
its fast, but still too unfinished
Avatar
I gueess maybe you could argue that what Ryozuki ended up configuring became an IDE. As he took the time to make it a robust experience
Avatar
anyway for me its also really not about the word
09:29
but more how he uses it
09:29
i dont want to call it text editor
09:29
bcs then i think of notepad
Avatar
Avatar
Jupstar ✪
bcs then i think of notepad
ur a linux user
09:29
say "leafpad"
09:29
or stallman will bonk u
Avatar
Avatar
Jupstar ✪
stackoverflow gives a shit in their surveys.. are they now considered unreliable? https://survey.stackoverflow.co/2022/#integrated-development-environment some ppl could have not answered it bcs they dont use vim or vscode as IDE 😉 (edited)
You must know by now that I don't believe in appeals to authority. If a definition is not concrete, it's up to debate
Avatar
ee best text editor
Avatar
@Learath2 dm
Avatar
ex best editor
09:30
idk how to use it even
Avatar
cat <<< best text editor
Avatar
ex, short for EXtended, is a line editor for Unix systems originally written by Bill Joy in 1976, beginning with an earlier program written by Charles Haley. Multiple implementations of the program exist; they are standardized by POSIX.
Avatar
i use micro in terminal
09:30
better than nano and vi 😉
Avatar
Initial release March 9, 1978; 44 years ago (as part of 1BSD)
Avatar
A modern and intuitive terminal-based text editor. Contribute to zyedidia/micro development by creating an account on GitHub.
Avatar
I only use dd to edit text
Avatar
I'll attempt to switch from vim to helix
Avatar
eww go software
09:31
BASED
Avatar
@Learath2 do you look private
Avatar
@rammstein we have an important discussion
Avatar
yes this is more important than any other problem
Avatar
I'm scared to look
Avatar
@Learath2 that question is a bit weird, what does it mean for you to look "private"?
09:32
BASED
Avatar
fear
Avatar
@Jupstar ✪ best tool for benchmarking
09:33
A command-line benchmarking tool. Contribute to sharkdp/hyperfine development by creating an account on GitHub.
09:34
obviously made in rust
Avatar
it'd be better with 0% python (edited)
Avatar
they are scripts for smth idk what
09:34
>
"""This program shows hyperfine benchmark results in a sequential way in order to debug possible background interference, caching effects, thermal throttling and similar effects. """
Avatar
Avatar
Ryozuki
eww go software
I'm starting to like Go. Definitely not because the Go society at my uni has an absurd women to men ratio
Avatar
lol
09:35
i never read or write go code xD
Avatar
go is like the compiled python
Avatar
and i'm not really planning to either xD
Avatar
so easy, and also so easy to fuck up
09:35
the lang itself is badly made
Avatar
Go is compiled python made with parallel processing in mind. It is a cute idea
09:37
xd
09:37
some golang devs ddosed this blog
Avatar
someday i want to see a "One day in the life of Ryo" to understand how he finds all these sources always so fast he the rust warrior against any coding language xD
Avatar
cuz angery
09:37
xd
Avatar
Avatar
Jupstar ✪
someday i want to see a "One day in the life of Ryo" to understand how he finds all these sources always so fast he the rust warrior against any coding language xD
lmao
09:38
its cuz i remember em
Avatar
Ryo has a blogpost for everything just like I have a talk for everything 😛
Avatar
Avatar
Learath2
Go is compiled python made with parallel processing in mind. It is a cute idea
but python most strength is from being preinstalled on all linux systems
09:41
and not compiled
Avatar
God I hate doing ban appeals in the morning 😭
Avatar
Avatar
Ryozuki
but python most strength is from being preinstalled on all linux systems
if u compile stuff u dont need an intepreter pre installed 😉
Avatar
when ddnet programming language
Avatar
there is
09:43
Language for generating DDNet's automapper rules. Contribute to Aerll/rpp development by creating an account on GitHub.
Avatar
that's defs the most tryhard project i've seen yet xDD
Avatar
thats pog
09:44
time to rewrite it in rust troll
Avatar
rusty-rules
Avatar
rustynet
09:45
nah buts its cool
09:45
idk how worth it is to learn vs writing the rules directly tho xd
Avatar
Language for generating ddnet automapper rules that is very nested ;D
09:45
Why not just a better automapper language
Avatar
or a GUI for automapping
09:46
bcs most ppl are potatos like me
Avatar
oh wait
09:46
this is not a automapper for the rules on ddnet
09:46
its a map generator language
09:46
i think
Avatar
rules++ is a simple language written in C++, which allows you to create the most complex automappers.
Avatar
so yeah
09:47
dunno
Avatar
ok got confused
Avatar
"an executable, which translates rules++ code to rules"
09:47
guess it should say most complex automapper rules
09:47
to be less confusable
Avatar
tf call of duty is a real movie, these devs etc.. are fucking tryharders
Avatar
DDNet > CoD
Avatar
there's no cinematics on ddnet
Avatar
@cinematicGuy
Avatar
yes important, the story
Avatar
DDNet has the best (D)DoS story out here
09:51
teeworlds should support rtx & dlss
09:51
has potential
Avatar
lmao wtff
Avatar
Cinematic from DDNet would be cool tho
Avatar
we have that too
Avatar
The video against the bots?
09:53
Ah
Avatar
That's really nice
09:54
patiga is best
09:54
real water physics
Avatar
yea I've seen that, that's so cool blender is capable of that
Avatar
u want it ingame?
Avatar
issou why not
Avatar
2 fps on potato PC, but i like it 😄
Avatar
same fluid physics
09:55
xD
Avatar
at least raytracing
Avatar
dlss for frame generation
09:56
then u ask nvidia to do a video about ddnet
09:56
no dlss + dlss 3 comparison
09:56
800fps up to 1600
09:57
dunno how much fps u can achieve with a 4090 on ddnet
Avatar
ill test soon
Avatar
You need to achieve the psu for it first justatest
Avatar
Anime.pdf BOT 2022-10-23 10:16:24Z
Send 0.8 water, i saw it few times but never can't find it 😩 (@Jupstar ✪)
10:16
Where guy shooting water and it renders physics properly
Avatar
chillerdragon BOT 2022-10-23 10:21:40Z
You know that 0.8 probably will actually contain water?
Avatar
Anime.pdf BOT 2022-10-23 10:24:51Z
I doubt i will see 0.8, my children probably
Avatar
Avatar
ReiTW
dunno how much fps u can achieve with a 4090 on ddnet
cpu is bottleneck sadly friend only got ~7-8k on windows
12:25
lol
12:25
24/7 solar panel
12:26
12:26
Space-based solar power is getting serious—can it solve Earth’s energy woes?
Avatar
5c11937 Use fegetenv/fesetenv instead of _control87 on Windows - Robyt3 b4b9cb1 Merge #5971 - bors[bot]
Avatar
Avatar
Jupstar ✪
or a GUI for automapping
id love that but idk how itd work
Avatar
i know bcs i already did it for a different game xd
Avatar
oh coool
Avatar
Both codes have the result, right?
Avatar
you can do lot of things multiple ways in sql
14:34
and some rdbms have stuff others dont
14:34
but there is a standard
Avatar
sql scares me LOL
Avatar
SQL!!!!! @Voxel
14:36
boo
Avatar
select * from USERS where NAME = 'A';
14:37
troll
Avatar
SELECT * from * YEP
Avatar
my gentoo uses 360mb ram without anything
14:40
well, the terminal is open
14:40
and postgresql actually
14:44
14:44
BASED
Avatar
JetBrainsMono Nerd 🤓
Avatar
Avatar
Learath2
JetBrainsMono Nerd 🤓
its so i can show powerline icons
14:45
my neovim improved form this morning
Avatar
Such a nerd
14:45
Nerdge
14:45
look at the bottom var
14:45
bar
14:45
much wow
14:45
i got a tux
14:45
cuz LF line endings
14:46
i get warnings too
14:46
@Jupstar ✪
14:48
@Learath2 do u know if its possible to show warnings always when e.g rerunning ninja
14:48
it often only shows warnings from clean builds
14:48
and afterwards not
14:48
but i prefer the behaviour where it shows the warns always
14:48
like cargo does
Avatar
Avatar
Ryozuki
@Jupstar ✪
yes what do u want to tell me ?
Avatar
Avatar
Jupstar ✪
yes what do u want to tell me ?
my neovim is ide like
14:49
gigachad
Avatar
ah 😄
Avatar
Doubt it, incremental builds don’t ever touch the same files. Idk if there is an option to pretend warned files changed
Avatar
ninja should save the warnings
14:49
and output them again if the file didnt change
14:51
@Learath2 are you using pipeware on gentoo?
14:51
or pulse
14:51
i went with pulse for now
Avatar
Pulse, I wanted pipewire but didn’t really feel like messing around with it while I was setting up
Avatar
the life of a gentooer
15:06
1 minute not bad
Avatar
Avatar
Ryozuki
ninja should save the warnings
don't think this functionality exists. you could compile with -Werror to make it stop on warnings
Avatar
discord is much more snappier on my self compiled firefox
15:41
than running the app
15:42
also for some reason the app is locked to low fps
15:42
i can scroll smoothly 144hz here
15:42
the only problem is sometimes typing fast on discord web kinda freezes it for some reason
Avatar
r u using a stable firefox build?
16:08
the dev build is often pretty buggy for me. sometimes the complete instance just hangs
Avatar
105.0.2 (64-bit) rn, but i know 106 is out im just not updating yet
Avatar
mysql -u teeworlds -p'PW2' teeworlds < ddnet-sql/record_*.sql bash: ddnet-sql/record_*.sql: ambiguous redirect
16:37
guess the readme was not made for bash
Avatar
deen uses zsh
Avatar
how would i fix this?
Avatar
cat ddnet-sql/record_*.sql | mysql -u …
16:38
you can PR it if you want 🙂
Avatar
what was the progress pipe program called
16:38
cuz this will take a while and im curious
Avatar
pv
16:38
you can also use progress
16:38
it works on programs that use files as input (it doesn't do anything with pipes)
16:40
i wanna try making a fancy data oriented stats page
16:40
if i have the willpower to finish another project
16:40
kek
Avatar
Avatar
Ryozuki
mysql -u teeworlds -p'PW2' teeworlds < ddnet-sql/record_*.sql bash: ddnet-sql/record_*.sql: ambiguous redirect
funny, this should work
16:40
I use bash and I do it this way too
Avatar
hmm idk why
16:44
stupid single core import
16:44
it runs at 300kb
Avatar
33 mins in
17:12
still going
17:12
maybe ill surrender
17:14
does this has the same?
17:14
and is it updated xD
Avatar
i had to do some projects and exercises right now, yes i used my cheatsheet for some, but most of it was lightwork.. the only thing i struggled with was "rename multiple columns" because i've never done it before, but now i know :)
Avatar
tf did you guys do to ddmax (edited)
Avatar
they nerfed them trollge
Avatar
to be honest, i think it's less intuitive now for new comers
Avatar
because of this change, everybody will be confused, but we'll get used to it as usual
18:20
clueless
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 (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
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
18:26

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
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
SELECT category, SUM(downloads) FROM fake_apps WHERE downloads < 10000 GROUP by category;
19:01
why does it show downloads greater than 10000?
19:01
even tho the clause is "less than" ?
Avatar
because of your sum ig
f3 1
19:08
you have to do
19:08
SUM(downloads) < 10000
Avatar
The computer is dumb
Avatar
or you can just rename SUM(downloads) as blabla
19:09
ig, kinda forgot how to use sql
Avatar
Avatar
pilonpl
The computer is dumb
But that's actually a good thing
Avatar
it is not dumb
19:09
this is logical
Avatar
Ctrl + c from rcon & local console sometimes isn't work. Windows 10 OS build: 19043.2130 Game version: 16040 At least, noticed, if I spam: "language switch, then ctrl + C", it's copy sometimes. So, it's annoying.
Avatar
It totally is logical
Avatar
Avatar
ReiTW
SUM(downloads) < 10000
meh this doesnt work
19:11
i mean it's just an exercise for myself if im being honest. i've already done the part the course is asking for but i was like... "what if i wanna see only download BELOW 10000" and group them by the category
Avatar
Avatar
Meekrioz
meh this doesnt work
What you are looking for is a having clause. If you do HAVING SUM(downloads) < 10000 at the end it should work. Problem you are having is that WHERE clauses always happen before GROUP BY. At that point SUM(downloads) doesn’t even make sense
Avatar
ok well, i'm not at "having" clauses yet so i guess i'll wait for that :D
19:37
but i dont know why SUM(downloads) doesnt make sense when i use WHERE and GROUP BY
Avatar
Because WHEN happens at the very start of execution. When you do a query, the SQL engine comes up with an execution plan. A series of steps (very specific, down to the specific method used to filter stuff) to perform on the rows to get you your results. WHEN is step 1 where everything gets filtered
19:39
WHERE*
19:39
So when you are at the start of execution. How is the sql engine supposed to know the SUM of downloads? It hasn’t done anything yet
Avatar
ahhhhhhhhhhhhh
19:40
so i cant use SUM() and WHERE in the same execution?
Avatar
You can’t use any aggregate function in WHERE. No SUM, No AVG etc.
19:41
Your WHERE clause can not involve an aggregate
Avatar
i'm writing that down lol
Avatar
HAVING is the opposite. It happens at the end of execution. So we already have our rows and we’ve calculated our aggregates for the groups. Now we can filter using the aggregates
19:42
Hope that makes some sort of sense, I tried to keep it accurate enough while keeping it simple. There is ofc more to it, but thinking like this should have no harm
Avatar
yea i get that, WHERE is bad for aggregations and HAVING is good for them YEP (edited)
19:43
for now, that is more than enough to know
19:43
thank you
Avatar
I gave a little more context because it might matter later on in your journey. So it’s good to know why aswell, even just in the corner of your mind
Avatar
it's weird that they haven't mentioned it in the course
19:46
or maybe it's just simple and you should know that
Avatar
Well if you are just learning GROUP BY. HAVING is probably next 😄
19:48
You should have read the manga guide to databases. It has a good teaching order 😛
Avatar
Avatar
Learath2
Well if you are just learning GROUP BY. HAVING is probably next 😄
i'm at GROUP BY 2 now and i can't wrap my head around it LUL
Avatar
Avatar
Learath2
You should have read the manga guide to databases. It has a good teaching order 😛
manga guide? PauseChamp
19:49
It is surprisingly decent for what looks like a meme
Avatar
i will look into it tomorrow :D
19:49
thanks
Avatar
Don’t confuse yourself if you are already following sth
Avatar
maybe ill check it after i'm done with my course, i'm at 28%
19:51
but....the hardest modules are infront of me lol
Avatar
Fwiw, most of the time you use a small subset of SQL. But there are some complex things in there incase you need them
Avatar
yeaaa, one of the exercises i took..it was only WHERE and BETWEEN and some LIKE, OR and AND even tho i learned DISTINCT, LIKE, IS NOT NULL etc.
Avatar
Avatar
Meekrioz
i'm at GROUP BY 2 now and i can't wrap my head around it LUL
nvm.
Avatar
Avatar
Learath2
Well if you are just learning GROUP BY. HAVING is probably next 😄
lmao HAVING was right after GROUP BY 2 OMEGADANCE
20:25
When we want to limit the results of a query based on values of the individual rows, use WHERE. When we want to limit the results of a query based on an aggregate property, use HAVING. (edited)
20:26
^there is the explanation
Avatar
9d56aa3 Update simplified_chinese.txt - Cheeser0613 c7565eb Update traditional_chinese.txt - Cheeser0613 2330a85 Merge #5972 #5973 - bors[bot]
Avatar
Avatar
Meekrioz
lmao HAVING was right after GROUP BY 2 OMEGADANCE
Well, HAVING has no sense without GROUP BY, so it makes sense 🤓 (edited)
Avatar
SELECT first_name, COUNT(*) AS 'count' FROM users GROUP BY first_name ORDER BY 2 DESC; to what exactly is the 2 referring to?
Avatar
Each number represents a position in the field list
Avatar
those are the collumns, so 2 should be "first_name" right?
21:22
Its referencing your selected fields (edited)
21:23
(maybe)?
21:23
Never saw that syntax before
21:23
Tbh
Avatar
but with COUNT(*) i selected all rows (edited)
Avatar
Avatar
Meekrioz
but with COUNT(*) i selected all rows (edited)
You selected number of all rows justatest
Avatar
i'm still unsure what the fucking "2" is referring to
21:27
OHHH is it referring to the second column in my SELECT statement so to the "COUNT(*) AS 'count'?
Avatar
i just gave up with aggregations, i can't wrap my head around coding them. Maybe i'm too tired but it really is frustrating rn..
Avatar
0dcd708 Tournament #62 - def- 1f35b38 Further ddnet.tw -> ddnet.org - def-
Exported 400 message(s)