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-04-25 00:00:00Z and 2022-04-26 00:00:00Z
Avatar
Jupstar whenever someone enjoys their frames untorn aquaTriggered
07:47
learath when C is badmouthed blue_rage
07:49
Me trying to justify the existence of UB ^^
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 07:50:49Z
@heinrich5991 nah i had an continue before the recv code :D so it just was never run. It works now. Thanks for checking in with me <3
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 08:10:53Z
Any opinions on having some branch patterns ignored from CI? Like tmp_* or test-* so one can test and still push commits without getting email spammed
Avatar
why do u even get emails from ci
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 08:29:36Z
If one of my pipelines fails i get a email from github. Which is actually nice imo.
Avatar
i dont get why u always push all ur personal config onto upstream
08:41
it feels weird to me xd
08:41
e.g gitignore, u can just use git/info/exclude
Avatar
ChillerDragon: You could set up email rules to instantly move them into trash folder.
08:43
Or maybe branches-ignore: works with *
Avatar
btw the + thing exists on emails
08:44
youremail+something@domain.com
08:44
@Ryozuki that's not standard, I think gmail started it and some other providers copied it
08:45
sounds like a good feature
Avatar
An email address identifies an email box to which messages are delivered. While early messaging systems used a variety of formats for addressing, today, email addresses follow a set of specific rules originally standardized by the Internet Engineering Task Force (IETF) in the 1980s, and updated by RFC 5322 and 6854. The term email address in thi...
Avatar
RFC 5233,[13] refers to this convention as sub-addressing, but it is also known as plus addressing, tagged addressing or mail extensions.
08:46
well looks like most email providers implement it
08:47
postfix too
Avatar
6ffd2ff Add Mexican flag - def- 1b4d34e Fix players cache format - def-
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 09:12:02Z
yes deen it works thats why i am wondering if we should add it
Avatar
Avatar
[quakenet] ChillerDragon
yes deen it works thats why i am wondering if we should add it
Do we have any temporary branches like that? I think we shouldn't use them. Such experiments should be done in private forks, not on the main ddnet/ddnet
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 10:29:31Z
Yes i would use it in a private fork. But i do not want to edit the workflow in my fork for that.
10:29
But its not too dramatic just wondering if we could do it
Avatar
If you find a second person that would use that, ok
10:38
Or use a very speaking name, for example *_noci
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 10:43:51Z
https://github.com/ddnet/ddnet/pull/4986#issuecomment-1099951400 @Jupstar ✪ no idea what that means. Where to put the comment? what even is OpenGL is that OpenGL1 ?
Fixes these memory leaks on my system (default opengl 3.0.3 renderer debian 11) Direct leak of 72 byte(s) in 1 object(s) allocated from: #0 0x4eac0d in operator new(unsigned long) (/home/chille...
10:44
i can not reproduce additional memory leaks when switching to opengl1
Avatar
6fa651b Update teehistorian scripts - def-
Avatar
since no one has ever noticed this bug: https://discord.com/channels/252358080522747904/757720336274948198/967069481279045633 should we just remove cl_predict_ddrace or should I fix the bug? (bug was added in May 2020 see https://discord.com/channels/252358080522747904/293493549758939136/967133955230928986) (edited)
Avatar
I vote for remove
11:45
there are too many options for prediction/antiping
Avatar
I would also prefer to remove cl_predict_ddrace.
Avatar
Reported by Konsti here: https://discord.com/channels/252358080522747904/293493549758939136/967073772836376586 I have tested the change on Justfly with my dummy :D since it is exactly the same interval as before it should not change any Physics.

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
-...
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 12:16:27Z
@Jupstar ✪ I can not reproduce https://github.com/libsdl-org/SDL/issues/5572 on debian 11 with vulkan or opengl i tried all fullscreen settings and tabbing in and out it all worked fine
apparently (git bisected) 8bae343 (1) and 0249df9 (2) (i hope i did the bisect correct, bcs the (1) issue i only discovered while bisecting but not sure if i can reproduce it on the main code) brea...
Avatar
2f4ccb9 fix dummy hammer interval, this became incorrect after a few days - C0D3D3V 1dea02d Merge #5018 - bors[bot]
Avatar
Avatar
[quakenet] ChillerDragon
https://github.com/ddnet/ddnet/pull/4986#issuecomment-1099951400 @Jupstar ✪ no idea what that means. Where to put the comment? what even is OpenGL is that OpenGL1 ?
just put it in shutdown function
15:01
who moved #bugs over #questions FBI!
Avatar
Avatar
[quakenet] ChillerDragon
@Jupstar ✪ I can not reproduce https://github.com/libsdl-org/SDL/issues/5572 on debian 11 with vulkan or opengl i tried all fullscreen settings and tabbing in and out it all worked fine
gnome doesnt seem to be affected as ryan said
15:04
" but I can reproduce the alt-tab issue with Gnome, too." so at least one of the issues is reproducable on gnome
15:04
for him
Avatar
Since most of the predict code is only ddrace relevant anyway, I would suggest removing the cl_predict_ddrace option instead of checking if m_WorldConfig.m_PredictDDRace is set everywhere ddrace stuff is predicted. in case of conflicts with physics from other mods, the check on m_WorldConfig.m_PredictDDRace must however be implemented in the appropriate places (for example for the freeze and unfreeze functions). But since there are currently no conflicts apparently, this is sufficient for...
Avatar
Avatar
Jupstar ✪
who moved #bugs over #questions FBI!
Fixed. This happens super easily, I wish we could lock the channels somehow
Avatar
moving a channel triggers the OCD of everyone
15:29
monkalaugh
Avatar
[2022-04-25 18:13:57][client]: starting... [2022-04-25 18:13:57][sdl]: SDL version 2.0.16 (compiled = 2.0.16) [2022-04-25 18:13:57][gfx]: Created Vulkan 1.0 context. WARNING: radv is not a conformant Vulkan implementation, testing use only. [2022-04-25 18:13:58][assert]: /run/build/ddnet/src/engine/client/backend/vulkan/backend_vulkan.cpp(7077): Either use 1 main thread or at least 2 extra rendering threads. I get this before the game closes by itself after trying to run it. Happens ...
Avatar
@Jupstar ✪ ^^
15:31
lol
Avatar
lol
15:33
how did he do that
Avatar
fixes #5020

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-addresss...
Avatar
Avatar
Ryozuki
moving a channel triggers the OCD of everyone
true xd
Avatar
decltype(m_ThreadCount) returns the type of the variable?
15:44
nice to know
15:44
rust has this thing, where it can infer the type without u needed to type all this
15:44
u just need to use _
15:44
or nothing at all
Avatar
I wonder if Rust can do this one where the types don't match
Avatar
cant u rly not use clamp(m_ThreadCount)
15:46
without having to type the type?
15:46
m_ThreadCount = clamp<decltype(m_ThreadCount)>(m_ThreadCount, 3, std::max<decltype(m_ThreadCount)>(3, std::thread::hardware_concurrency()));
15:46
so verbose
Avatar
Hm, I don't see why the type is needed in clamp
Avatar
m_ThreadCount = m_ThreadCount.clamp(3, m_ThreadCount.max(hardware_concurrency()));
15:48
this would be
15:48
the rust equivalent
15:48
quickly typed
15:49
oh wait
15:49
the max is wrong probs
15:49
xd
Avatar
Avatar
Learath2
Hm, I don't see why the type is needed in clamp
i excplicity added it to make clear that the cast from int to size_t is correct
15:49
we have pretty low compiler warnings
15:49
but with stronger ones it would fail
15:50
also template deduction between int and size_t might fail to compile at all
15:50
3 is int
Avatar
we have low compiler warnings?
Avatar
while the other is size-t
15:51
we have pretty weak warnings yeah
15:51
we cant cast around as we want basically
Avatar
one might thing -Wall means all warnings but c++ is special
15:51
monkalaugh
Avatar
Weverything is best
15:51
just disable the few warnings u dont need
15:52
set(S "${S} -Weverything -stdlib=libc++") set(S "${S} -Wno-c++20-compat -Wno-unused-command-line-argument") set(S "${S} -Wno-cast-align -Wno-reserved-id-macro -Wno-weak-vtables -Wno-padded -Wno-format-nonliteral -Wno-documentation-unknown-command -Wno-extra-semi-stmt -Wno-switch-enum -Wno-missing-prototypes -Wno-covered-switch-default") set(S "${S} -Wc++98-compat-extra-semi -Wnewline-eof -Wdouble-promotion -pedantic -pedantic-errors -Wmissing-variable-declarations -Wextra-semi -Wundef -Wunreachable-code-break") set(S "${S} -Wno-gnu-anonymous-struct -Wno-nested-anon-types -Wno-old-style-cast -Wno-c++98-compat-pedantic") set(S "${S} -Wno-reserved-identifier") (edited)
15:52
this is what i usually use
Avatar
Avatar
Jupstar ✪
also template deduction between int and size_t might fail to compile at all
I actually am not sure about the rules when it comes to template subs here. I've never really looked into the technicalities of metaprogramming-magic
Avatar
yeah if u dont add a template arg it has to deduct it based on the params
15:53
so the mismatch can create errors
15:55
i bet in c++20 u can do like auto(3) xd
15:55
just spam auto everywhere until it breaks xdd
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:02:59Z
awesome i didnt know Weverything is a thing! sounds cool!
16:03
i thought ddnet warnings are as strict as it gets :D
Avatar
yeah u need clang tho
16:03
clang even has wdocument
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:03:57Z
clang masterrace
Avatar
perfect for @Ryozuki
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:04:02Z
wats document
16:04
oh for docs?
Avatar
it can parse doxygen
16:04
yes
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:04:16Z
or format?
16:04
a
16:04
col
16:04
but who needs docs when u got sourcecode?
Avatar
who needs games if u have brain
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:05:05Z
who needs brain if you have drugs
16:05
wat?
Avatar
fix ur pr
16:05
u added a space
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:05:19Z
oh
16:05
wetefek
Avatar
copy & paste magician chillerdragon
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:06:15Z
fakof
16:06
fixxored
Avatar
rust has
16:06
#![deny(missing_docs)]
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:07:02Z
Ouu i love cargo fmt btw xd
16:07
its so hot
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:08:22Z
any daytraders from europe here?
16:09
i need financial advice
Avatar
invest in amd
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:09:45Z
thanks
Avatar
if nvidia really launches gtx 4090 with 700 watts, then its bcs amd does smth similar xd
16:10
rtx
Avatar
don't invest in anything, refuse to take part in this corrupt neolib market structure
Avatar
xd
16:10
tru story
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:11:07Z
wetefek learath
16:11
how to get piss rich then?
Avatar
Avatar
Learath2
don't invest in anything, refuse to take part in this corrupt neolib market structure
and lose money to inflation
Avatar
just stop caring about money and enjoy your life
Avatar
"you gotta play the system to beat it"
16:11
is that a saying?
16:11
xd
Avatar
don't get piss rich, money is not important
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:12:06Z
but i need shelter and food
Avatar
i enjoy rust lang
Avatar
i enjoy ryo os
Avatar
as long as you have enough to enjoy the things you like then you don't need more
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:12:58Z
i do not have enought to buy shelter and food when i quit my job
Avatar
I didn't say quit your job, did I? 😄
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:13:26Z
you sayid enjoy life
16:13
i dont see how working everyday of my life is enjoying life
Avatar
xd
16:13
then quit it if u got the money
16:13
u rich we all know that
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:13:52Z
yes
Avatar
open secret
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:13:59Z
so i need stoks
16:14
to get rich
16:14
then quit job
16:14
-> amd
Avatar
u cant fool me
16:14
im detective
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:14:22Z
?
Avatar
rich af boi
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:14:36Z
i swear im not
Avatar
don't get rich, find work you enjoy, work gives your life meaning
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:14:48Z
ok sure
Avatar
xd
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:14:52Z
where?
Avatar
preferably on earth
Avatar
freeze ur body and wait 100 years
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:15:23Z
i feel like losing money on the stonks market is more fun than applying for jobs
Avatar
then u dont need to work anymore xd
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:15:43Z
i feel like tw wont survive 100 yrs
Avatar
wat?
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:15:53Z
no point in having free time if there is no tw
Avatar
what u talkn bout bro (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:16:11Z
taiwan
16:16
clima crisis will swallow taiwan
16:16
wat u dont get
Avatar
ppl still play all these weird commendore 64 games
16:17
and u tell me tw wont survive 100 years
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:17:19Z
oh ur optemistic
Avatar
ofc
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:17:27Z
nice
Avatar
i will live around 60 years from now on
16:17
so 60 years new backends
16:17
xd
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:17:52Z
nah
16:17
u rq next year
16:18
when clubpenguin source code gets leaked
Avatar
quite possible xd
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:18:17Z
oy will stay for another 20 yrs
Avatar
yes, but will only join 20 times in these 20 years
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:18:29Z
deen gets pregnant this fall
16:18
and china will delete the internet
Avatar
well the chance deen gets a child soon is quite huge actually
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:18:51Z
europa gets stuck in 0.6 for 10 yrs
16:19
and then around year 2080 we have 100 players max
16:19
and those players all use VR gear to play tw
Avatar
do u bet your amd stocks against it?
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:19:52Z
but playing 2d games in VR will be very retro
16:20
yes i would short teeworlds
16:20
eventho it hurts me
Avatar
Not sure if we want to, there are some easy functions like this we could take from stdlib now

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 ...
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:21:08Z
@Learath2 wat if trading stoks is the job i enjoy?
gigachad 2
Avatar
[quakenet] ChillerDragon BOT 2022-04-25 16:27:15Z
xd
Avatar
d364c63 Free some opengl2 pointers - ChillerDragon 9e22700 Merge #4986 - bors[bot]
Avatar
I am not sure if there is a more elegant solution, the problem is that fmod in cpp does not return a positive value. maybe we can just use a mod function that always returns positive values.

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 ...
16:55
428c1ca fix clamp of m_ThreadCount - Jupeyy 6270b1c Merge #5021 - bors[bot]
Avatar
[quakenet] Konsti BOT 2022-04-25 17:38:09Z
@moderator Absolwit blocking on ger2 8308
Avatar
Hey I am learning C++ so that I can stop writing C code in a C++ codebase cause apparently that's bad (and the more I learn the more it seems true). Question is why does the client code use C-style strings? Aren't C++ strings 'better'? Is it just that no one has gotten around to converting C-style strings to C++ strings or is there some other reason? It seems weird to me because C's strings are probably its worst feature
Avatar
Cuz c strings are used everywhere
18:14
So its a lot of effort to port it all
18:14
Not worty, or is it?
18:14
Worth*
18:15
If its for me i would use string and string views
Avatar
I don't think I'm qualified yet to know how worth it is xd
18:16
So there's no problem other than the volume of C-style strings?
18:16
No other catch?
Avatar
For me? No
Avatar
c++ has no flat strings
18:16
so they are heap strings
Avatar
I would even make it utf8 only like rust
Avatar
Don't desktop programs relly heavily on the heap anyway?
Avatar
use boost static string xd
Avatar
@Jupstar ✪ is it possible to make a buffer and string view it?
Avatar
stack is still faster tho
Avatar
Idk i never tried c++
Avatar
Avatar
Ryozuki
@Jupstar ✪ is it possible to make a buffer and string view it?
string views are just for viewing 😄
Avatar
its simply bcs c++ standard is slow af
18:18
we need boost
18:18
just accept it everyone xd
Avatar
what's boost xdd
Avatar
an alternative std
18:20
well
18:20
probs more like a patch over std
18:20
xd
Avatar
So is Bjarne lying to me or what? He talks about std like it's crack cocaine xd
Avatar
well the standard also adds language features
18:25
while boost is basically just advanced STL
18:25
so its not 100% comparable
18:25
but boost adds nice to haves
Avatar
If only it's niceties didn't come at insane compilation times
18:33
@Cipy29 what do you think is bad about C strings that isn't shared by C++?
Avatar
Avatar
Learath2
If only it's niceties didn't come at insane compilation times
where does this information even come from, heinrich said the same
18:34
boost is relativly modular
Avatar
Avatar
Jupstar ✪
where does this information even come from, heinrich said the same
It's what everyone has been saying for the last 2 decades. I haven't verified it myself in almost a decade but it shouldn't be too difficult to find sources on the claim
Avatar
mh ok but pretty much all STL is slow compared to c code
18:35
its simply bcs templates arent the fastest
18:36
all TL*
18:36
when i see how fast SDL2 compiles with 400 files xD
18:37
but templates are best
18:37
xd
Avatar
For now I really like how strings play with vectors, how I can iterate over words in a string easily, or split the string into words more easily (instead of the C way of using the 'not-good way' of strtok), how I can do str1 == str2 instead of strcmp
Avatar
I guess we could look into it if we want a concrete answer, but heinrich mentioned factorio ripped it out aswell and for the same reason. I really doubt anything changed since I last researched a decade ago
Avatar
I'm reading a big C++ book tho and I'm just 100 pages in or so, so I expect I'll discover more good things about std::string
Avatar
Avatar
Cipy29
For now I really like how strings play with vectors, how I can iterate over words in a string easily, or split the string into words more easily (instead of the C way of using the 'not-good way' of strtok), how I can do str1 == str2 instead of strcmp
Ah, the convenience stuff. C++ strings indeed are much more ergonomic than C style strings
18:39
However, they pretty much share all the performance downsides, which is why I was a bit confused
Avatar
And I didn't even mention the null termination of C-style strings xd
Avatar
C++ strings are also null terminated
Avatar
Why? Is it so they fit better to legacy C code?
18:40
they have .size() so I don't see other reason
Avatar
Avatar
Cipy29
Why? Is it so they fit better to legacy C code?
Yep, and they were always like that, C++ almost never breaks backwards compatibility
Avatar
good guy C++ poggers
Avatar
Fwiw I find null terminated strings much easier to work with on the lower level. I'd guess that and the extra space needed to store the length is the reason C ended up with null terminated strings
Avatar
strings on low level? like what kind of application?
Avatar
I think I also read that ritchie was concerned about the size of the length variable limiting future systems ability to handle larger strings
Avatar
Avatar
Cipy29
strings on low level? like what kind of application?
Like actually implementing algorithms that operate on them rather than using primitives made by other people. E.g. writing your own append, or working with unicode without a library
Avatar
well yea but who does that xd
18:49
those things are already written
18:49
you only do them if you want to know how they work
Avatar
They didn't write themselves lol. If everyone thought like that we'd never have new algorithms
18:52
Dragon4 already solved float to string conversion. If everyone just decided that was good enough we'd never have Ryu
Avatar
Avatar
Cipy29
And I didn't even mention the null termination of C-style strings xd
null termination itself is nothing bad, that one byte extra wont make an insane diff, std::string still saves the string size other than c strings
Avatar
well those algorithms such as append or working with unicode aren't new
18:54
and coming up with new ideas doesn't depend on re-creating all old ideas
Avatar
Avatar
Jupstar ✪
null termination itself is nothing bad, that one byte extra wont make an insane diff, std::string still saves the string size other than c strings
saving the size together with the string 'feels' better
Avatar
New ideas are built on top of old ones. There is immense value in doing these things yourself, especially if you are interested in things like embedded programming
Avatar
so you don't need smth like strlen() to run when u need a string
18:55
i know haha, i work in embedded C programming actually xd
18:56
all im saying is that C strings are inferior to C++ strings
18:56
(just started learning C++ tho)
Avatar
Literally any languages strings are probably better equipped than C strings. But heap allocation for every string is very awful for performance
18:58
So awful that even with modern arena allocators, every C++ compiler does small string optimization to keep them in stack
Avatar
so for example switching from C strings to C++ strings in the whole client codebase would have impact performance?
18:59
like noticeably?
Avatar
yes
18:59
heaps
Avatar
like how bad could it be? xd (im asking cause i actually don't know)
Avatar
but static strings are probs faster
19:01
and streaming is faster than printf
Avatar
@Cipy29 learn c++ and then learn rust
19:12
the best way to know rust greatness
19:12
its like eating the least food u like first
19:12
to enjoy some good shit at the end
19:12
BASED
19:12
BASEDDEPT
Avatar
xd so why's Rust better than cpp
Avatar
learn cpp first
Avatar
Bjarne seems to know his shit xd
19:14
@Cipy29 did u learn about pointers yet
19:14
well u should use references
19:14
most of the time
19:14
in c++
Avatar
safe rust has potential
Avatar
I know about pointers yea
Avatar
do you know about allocating memory on the heap
Avatar
in c its malloc in c++ its new
19:15
where are u at
19:15
whats ur progress
Avatar
i know c pretty well, in cpp im reading this huge freaking book Programming Principles and Practice using C++
19:16
and im on page 120/1k+
19:16
chapter 4.smth
Avatar
oh reading a book
19:16
well have fun
Avatar
u have better way?
19:16
xd
Avatar
Do you think its good? I am considering picking up a cpp book
Avatar
i like this book yea
Avatar
Avatar
Cipy29
u have better way?
i find most books boring, i enjoy programming by doing stuff
Avatar
i picked it up for free from google tho
Avatar
ddnet is such stuff
19:17
but each has their own way to learn
Avatar
Oh lol, you're just reading it from the pdf?
Avatar
Avatar
Ryozuki
ddnet is such stuff
i wanna see what's the "most principled cpp" way first before xd
19:18
i also listened to Bjarne's talks on yt and he seemed to know what's up xdd
Avatar
Avatar
Ryozuki
i find most books boring, i enjoy programming by doing stuff
only sane way tbh
19:18
u read books and forget 99%
Avatar
well i'm not only reading
19:19
also doing stuff ofc, only did small programs tho in c++ for now
19:19
like printing out the frequency of each word from stdin
Avatar
@Jupstar ✪ i would only read books for truly complicated stuff
19:20
like cryptography
19:20
A free undergraduate-level textbook that introduces students to the fundamentals of provable security
19:21
i also have another
19:21
about perfomance
19:21
if only i could find it
19:21
this
19:21
this one is a really good source
19:21
for high perfomance computing
Avatar
Avatar
Ryozuki
@Jupstar ✪ i would only read books for truly complicated stuff
ok thats more math than coding imo
19:22
i mean when do u implement a crypto lib yourself xD
Avatar
Avatar
Cipy29
like printing out the frequency of each word from stdin
Coding practice for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages!
19:22
do problems from here
19:22
good website
19:23
user driven
Avatar
Avatar
Jupstar ✪
i mean when do u implement a crypto lib yourself xD
monkalaugh
19:23
feel free to add me as friend https://www.codewars.com/users/Ryozuki
Avatar
Are those different from just leetcode algorithm memorization tests?
Avatar
i guess
19:24
they are made by users
19:24
from that website
Avatar
is this kinda like hackerrank.com idk if you heard of it
Avatar
u can also make problems
19:25
codewars is better than those imho
19:25
more friendly
Avatar
Avatar
Ryozuki
feel free to add me as friend https://www.codewars.com/users/Ryozuki
ah nice
19:25
i love battles
Avatar
also i love the japanese aethetic
Avatar
i liked doing stuff from hackerrank and https://projecteuler.net/
A website dedicated to the fascinating world of mathematics and programming
Avatar
but not today i have headache
Avatar
I find books to be the only way to learn something in-depth. Mostly because other resources are usually very lacking. Especially the case with C and C++
Avatar
projecteuler is more math-y but it's nice
Avatar
Avatar
Learath2
I find books to be the only way to learn something in-depth. Mostly because other resources are usually very lacking. Especially the case with C and C++
yeah u probs can only find the obscure things of c++ in books
Avatar
High quality modern learning resources just don't exist for these dinasaur languages
19:26
Dinosaur*
Avatar
specially c++
19:26
c++ is so complicated
19:26
its insane
19:27
c is simple
19:27
well
19:27
ub makes it not so simple
Avatar
C has few quirks. C++ is just one big quirk
Avatar
tbh i find all languages kinda hard, depends really what u do
Avatar
when i use bind in javascript and have no template placeholders its hard
Avatar
because in programming, simplicity makes things complicated
19:31
nice
19:31
i invented a quote
19:31
ill save it
Avatar
nice
19:31
now get fame
19:31
and ppl will quote u in 200 years
Avatar
but srsly sometimes i find simple library so insanly hard xD bcs they are not always very intuitive even for simple problems
Avatar
sometimes u cant have simple stuff
19:32
because technology is complicated
Avatar
xd
Avatar
thats probs why x86 sucks
19:33
bcs its so bloated and complicated xD
19:33
invent new arch pls
Avatar
yes pls
Avatar
19:35
this is a pretty neat book
19:35
BASED
Avatar
ctrl+T -> ctrl+F "rust" 'no matches' -> ctrl+W
Avatar
or u have java with 10000000000000000000000000000 ways to solve the same problem xd
19:37
just that every new version is 0.0001% faster than the one before
19:37
and gets hyped xD
19:37
@Jupstar ✪ there are some perf improvements
19:38
with new gc research
19:38
better paralelization
Avatar
yeah java is decent
19:38
python or some other stuff is slower, and what do they do to fix it?
19:38
write c libraries
Avatar
and bind them into the langauge xD
Avatar
The Z Garbage Collector (ZGC) is a scalable low latency garbage collector. ZGC performs all expensive work concurrently, without stopping the execution of application threads for more than 10ms, which makes is suitable for applications which require low latency and/or use a very large heap (multi-terabytes).
19:39
10ms tho
19:39
xd
19:39
just use rust 4head
Avatar
technology actually so complicated
19:40
i wanna be in a world without computers feelsbadman
Avatar
@Jupstar ✪ do u think its true cpus are developed with C in mind
Avatar
ofc
Avatar
i mean what purpose would rings have if software is 100% proven
19:41
there is no security issue if there is no untrusty software 😄
Avatar
but tbf i cannot say when the time will come where quality stands over quantity again
19:42
and developing in higher lvl languages is simply often faster
19:42
and making everything a string xdddd i swear when i am in javascript everything suddenly a string
Avatar
Avatar
Jupstar ✪
and making everything a string xdddd i swear when i am in javascript everything suddenly a string
19:45
typeof NaN === 'number' // true Infinity === 1/0 // true 0.1 + 0.2 === 0.3 // false
Avatar
the last one is a classic about floating point
Avatar
the 2nd one is completly logic & true
Avatar
Avatar
Ryozuki
invent new arch pls
RISCV revolution when?
Avatar
it has already begun for small devices in IOT
23:31
+ Linux support
Exported 447 message(s)