Guild icon
DDraceNetwork
DDraceNetwork / off-topic
Any languages allowed
Between 2025-02-04 00:00 and 2025-02-05 00:00
Avatar
Avatar
Teero
what?
Black bar
Avatar
Avatar
Overlord
Black bar
Bro pls
00:31
pepeW
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Romantic? nah. Romantic? ai al dumnezeu naibii de dreptate
Avatar
Avatar
chillerdragon
@Ryozuki: I was surprised how little English they speak in Japan in the first place.
im in japan, they are pretty ok
02:08
prob cuz i was in ikebukuro
Avatar
Avatar
Overlord
but like 20-25cm of my leg went in
♂S1mple♂ 2025-02-04 05:25
Oddly specific length
Avatar
♂S1mple♂ 2025-02-04 07:20
Avatar
.STD !шастик? 2025-02-04 08:16
научите 1 тайл контрить
Avatar
Avatar
.STD !шастик?
научите 1 тайл контрить
ne
Avatar
im never upgrading my gpu wtf are these prices
Avatar
Avatar
Teero
Click to see attachment 🖼️
Koll Potato 2025-02-04 09:40
hell yeah
Avatar
Avatar
Teero
Click to see attachment 🖼️
Jupstar ✪ 2025-02-04 09:44
Thanks gronkh
Avatar
Avatar
Cammodude
im never upgrading my gpu wtf are these prices
Jupstar ✪ 2025-02-04 09:45
Where the hell are you looking
09:46
Kinda looks like media markt but u aren't German are u
Avatar
media markt is also in spain
Avatar
Avatar
Jupstar ✪
Kinda looks like media markt but u aren't German are u
i only know of arvutitark and klick, arvutitark sells mostly new stuff that is too new for me and klick sells old stuff that is well, overpriced as shit
09:59
used market has either 15-20 year old gpus or broken 2-7 year old gpus
Avatar
Avatar
Cammodude
i only know of arvutitark and klick, arvutitark sells mostly new stuff that is too new for me and klick sells old stuff that is well, overpriced as shit
Jupstar ✪ 2025-02-04 10:21
so you from estland?
10:22
inside the eu you can simply buy from other eu countries. so you could even buy from mindfactory or from amazon from all eu countries
Avatar
Avatar
TsPiggy
Click to see attachment 🖼️
smash
Avatar
Avatar
Jupstar ✪
inside the eu you can simply buy from other eu countries. so you could even buy from mindfactory or from amazon from all eu countries
yeah but I gotta check if item+shipping is cheaper than item locally
Avatar
Avatar
TsPiggy
Click to see attachment 🖼️
Names himself piggy, eats quadruple bacon ramen
Avatar
cannibalism
Avatar
Avatar
Cammodude
im never upgrading my gpu wtf are these prices
cyberfighter 2 2025-02-04 12:24
this is some expensive dumpster diving
Avatar
Avatar
TsPiggy
Click to see attachment 🖼️
*>Maciek<* 2025-02-04 13:29
Good lookin ramen bowl
Avatar
Avatar
Overlord
Names himself piggy, eats quadruple bacon ramen
300yen for 3 piece chashu
13:32
feeling good
Avatar
Avatar
♂S1mple♂
Oddly specific length
Sergonizer 2025-02-04 14:05
Bro knows this length exactly
Avatar
Avatar
TsPiggy
300yen for 3 piece chashu
God i love japanese food prices (cries)
Avatar
Avatar
Overlord
God i love japanese food prices (cries)
*>Maciek<* 2025-02-04 14:43
Ile to jest tak mw z 4zł?
14:43
Chociaż nie bo w sumie 12zl
Avatar
Avatar
*>Maciek<*
Chociaż nie bo w sumie 12zl
1000 yen 26zl
16:08
Z tego jak ja bylem teraz podobno jeszcze taniej, ale bardziej chodzi mi o dam fakt że jedzenie wszędzie jest tam tanie niezależnie jak droga dzielnica
Avatar
♂S1mple♂ 2025-02-04 16:11
bober
Avatar
FyI - i'm sleep deprived.
16:17
glad i didnt sent the message and doublechecked kekw
Avatar
Avatar
Overlord
Z tego jak ja bylem teraz podobno jeszcze taniej, ale bardziej chodzi mi o dam fakt że jedzenie wszędzie jest tam tanie niezależnie jak droga dzielnica
*>Maciek<* 2025-02-04 16:18
Racja, az bym sie przeniosl tam szczerze
16:18
Tylko sam fakt nauczyc sie jeszcze tego jezyku
Avatar
Avatar
meloƞ
glad i didnt sent the message and doublechecked kekw
*>Maciek<* 2025-02-04 16:18
Lmfao get some sleep
Avatar
can't, if i go to sleep now i'll wake up in 6 hours like a truck hit me from 9 sides at once
16:19
and then i'll be eepy for the entire day
Avatar
Avatar
meloƞ
FyI - i'm sleep deprived.
♂S1mple♂ 2025-02-04 16:22
i see some secret channels
16:22
now i will do evil things with those
16:22
don't see any admin chat tho, odd
justatest 1
Avatar
its not in my favourites Clueless (edited)
Avatar
♂S1mple♂ 2025-02-04 16:27
favoriten (edited)
Avatar
Does this gonna lead to a war between America and Europe?
16:53
Because I sure as hell wouldn't like to have these as representatives of any Europian decision
Avatar
Avatar
Cellegen
Does this gonna lead to a war between America and Europe?
♂S1mple♂ 2025-02-04 17:16
question of time considering current americas politics
Avatar
it seems like fixed point multiplication is kinda slow
18:22
in a sense that it seems to take multiple instructions
18:22
hard to tell really
18:22
without testing it
18:22
but
18:22
i see why people use floats lol
18:26
i guess it's two instructions
18:26
multiply and bit shift
Avatar
Fixed point multiplication shouldn't be slow
Avatar
idk
18:45
now i have to implement square root
18:46
to calculate distance
18:47
ChatGPT explains quite well how to do that
18:47
AI progress is really quick
18:47
i don't even have to tell it to think step by step
18:48
because now chain of thought is a part of the training process
18:49
AGI might be close actually
Avatar
okay, fixed point sqrt is just finding the square root of an integer and then multiplying it by 256
18:59
math is so cool
18:59
this doesn't seem like it should work
18:59
but math doesn't lie
Avatar
Avatar
pilonpl
okay, fixed point sqrt is just finding the square root of an integer and then multiplying it by 256
*multiplying it by the power of two appropriate for where you placed the fixed point
19:22
and there's no shame in converting your fixed point to floating point for some calculations if it makes sense to do
19:22
I think the main place where fixed point is clearly superior is global coordinates
Avatar
Avatar
risu
and there's no shame in converting your fixed point to floating point for some calculations if it makes sense to do
i know
20:18
but i want this to be mathematically perfect
20:18
well, within the precision of my fixed point representation
Avatar
i actually use doubles to print the fixed point number
20:26
beacuse it's the easiest way
Avatar
This project is really enjoyable
20:43
And i finally don't feel like my life is meaningless
20:44
I can actually focus on something and enjoy working on it
brownbear 1
20:44
Idk why but sometimes nothing seems interesting to me
20:44
But other times i can spend hours working on one thing
Avatar
Avatar
pilonpl
beacuse it's the easiest way
write your own int to string conversion, actually really easy
20:53
and fun
Avatar
I did write a string to int converter
20:55
Mostly for AoC
Avatar
stdlib does do string to int so idk why you'd need to do that
Avatar
Because it's useful for parsing input
20:57
So basically the function would take in char** as input
20:58
And just consume the whole number
20:58
Which would set the passed pointer to the first char after the number ended
20:58
Really convenient
20:58
Idk if stdlib can do that
Avatar
ohh, ok then I get why you'd do that instead of just using the stdlib version
Avatar
There are also way to many functions in stdlib
21:00
With comments like "this function should never be used" lol
Avatar
You should see languages with actually extensive standard libraries 😏
Avatar
Avatar
pilonpl
With comments like "this function should never be used" lol
oh nvm
Avatar
The naming convention is also somehow bad
21:02
Lack of namespaces is a really big issue with C
21:02
Not because it matter that much in practice
21:02
But because i don't like it lol
21:05
I guess c++ is kinda cool in a sense that it's almost a C superset so you can still use C style with some little additions
21:06
Although it's kinda neat how strict C is (edited)
21:07
There is one way of doing things
21:07
In c++ you don't know what a + operator does
21:07
It might call a very expensive function
21:08
Where in c everything is explicit
Avatar
I kinda like operator overloading but it should be more obvious
Avatar
I mean yeah, it's not that big of a deal
Avatar
maybe don't allow overloading normal operators like + but have special variants like .+ or something so it's still terse but is distinguishable
21:11
and generally it doesn't sound like a bad idea to restrict overloaded operators to pure functions
Avatar
Also what if none of the predefined operations make sense for your use case? It's kinda weird to use a symbol for one operation but a full function call for another
Avatar
some languages allow all sortsa wacky operators
Avatar
Yeah i guess but it's weird
Avatar
Discord?
Avatar
Discord just stopped working for a few minutes
Avatar
Probably not a worldwide issue
Avatar
Avatar
pilonpl
Discord just stopped working for a few minutes
♂S1mple♂ 2025-02-04 21:26
it's like that joke that 1 hour without electricity would bring us to insanity
Avatar
hello guys
Avatar
Avatar
♂S1mple♂
it's like that joke that 1 hour without electricity would bring us to insanity
only for those that only know internet
Avatar
The world's economy would collapse immediately lol
Avatar
Avatar
pilonpl
Yeah i guess but it's weird
ok so now that Discord works again there are actually some languages that allow you to make any binary function an infix operator
21:30
and you can use funny function names like :) (maybe probably idk) (I'm sure there's a language where you can make :) an infix operator)
Avatar
Kotlin mentioned!!!!
Avatar
Avatar
pilonpl
The world's economy would collapse immediately lol
well yes everything electronic will fail
21:31
but the people themselves wouldn't go insane
Avatar
Avatar
meloƞ
Kotlin mentioned!!!!
Can you make :) an operator in Kotlin? I wanna do this now
Avatar
Avatar
Cammodude
but the people themselves wouldn't go insane
Well coding would be much harder without the internet
21:32
And how would i update my archlinux system
Avatar
I don't think you could directly, but you may be able to do it with backticks
Avatar
perfect time to touch grass
Avatar
I just know some of these things from having to use Scala for some classes now wouldn't it be nice if they used Kotlin instead, or maybe if they were a bit more out of touch and used Java instead because at least that's a bit more relevant (edited)
Avatar
Swift is an obvious one that's able to do that
Avatar
think about all the cool stuff you could do
21:33
like building a crossbow with local parts
Avatar
sub postfix:<:)>(Str $foo) or something
Avatar
Avatar
pilonpl
The world's economy would collapse immediately lol
♂S1mple♂ 2025-02-04 21:33
kinda interesting to wonder what the consequences would've been
Avatar
Avatar
♂S1mple♂
kinda interesting to wonder what the consequences would've been
y2k
21:34
or the windows bluescreen
Avatar
Avatar
♂S1mple♂
kinda interesting to wonder what the consequences would've been
Financial collapse within 2 days, crime would rise over 200% within a week, thousands slaughtered
Avatar
me when I write vidya game and write the >:( function for handling attacks
Avatar
Avatar
meloƞ
Financial collapse within 2 days, crime would rise over 200% within a week, thousands slaughtered
♂S1mple♂ 2025-02-04 21:35
i mean that would be just hour, i don't think it's that much for crimes
Avatar
Avatar
risu
me when I write vidya game and write the >:( function for handling attacks
"hurt >:(" function to count damage
Avatar
♂S1mple♂ 2025-02-04 21:35
half the world would sleep at this time
Avatar
Avatar
♂S1mple♂
i mean that would be just hour, i don't think it's that much for crimes
No phones, no cameras, no satellite
Avatar
but what are we talking about
Avatar
Avatar
meloƞ
No phones, no cameras, no satellite
♂S1mple♂ 2025-02-04 21:36
what if power in batteries would last
21:36
just no production etc
Avatar
power plants all fail or electricity no longer exists
Avatar
Maybe instead of operator overloading we just need vector types? That would cover the biggest use case
Avatar
Avatar
pilonpl
Maybe instead of operator overloading we just need vector types? That would cover the biggest use case
Vector types?
Avatar
if it's power plant then plenty of big institutions have backup generators
feelsbadman 1
Avatar
Avatar
meloƞ
Vector types?
vector2 vector3 vector4
Avatar
Avatar
pilonpl
vector2 vector3 vector4
Eh Vector vec3{{0, 0}, {0, 0}, {0, 0}}
21:39
What language doesn't provide that? :o
21:40
You just have a vector of type vector which expects a vector of any type
21:40
Vectorception
Avatar
You can do that but the idea is to use operators to do stuff like adding vectors
21:42
So if it's a built-in type it could just work
21:43
Without overloading
Avatar
We need Vector3<Vector3<float>>
Avatar
Static cast the vector to an array
Avatar
Actually would it be useful to have both position and velocity in one vector?
Avatar
Avatar
pilonpl
Actually would it be useful to have both position and velocity in one vector?
Depends - I don't recommend storing two important datasets in a single vector
21:45
But that's personal preference
21:45
Use hash map greenthing
Avatar
Avatar
pilonpl
Actually would it be useful to have both position and velocity in one vector?
Just make a struct with two vectors, or more like have the two vectors in the one struct that you already have the rest of the stuff in
Avatar
Yeah i know
Avatar
actually it does matter for memory layout reasons, if you're doing 3D
Avatar
Memory layout?
Avatar
I think I would still separate them and control the workflow properly instead of smudging em together
Avatar
Avatar
pilonpl
Memory layout?
like, the way things are laid out in a struct
Avatar
I never quite understood how that works
Avatar
Avatar
meloƞ
I think I would still separate them and control the workflow properly instead of smudging em together
also yeah, having a separate array of velocities and array of positions is often even better
Avatar
I just hope the compiler does sensible stuff
Avatar
Zigs compiler made me go crazy
Avatar
Avatar
pilonpl
I just hope the compiler does sensible stuff
In C the compiler doesn't do anything smart with structs
Avatar
I often write boilerplate and just check for obvious errors by compiling it. Zig doesn't build with unused variables or unchanged variables that aren't marked const feelsbadman
Avatar
so it's on you to make sure you're not wasting memory in goofy ways
Avatar
Avatar
meloƞ
I often write boilerplate and just check for obvious errors by compiling it. Zig doesn't build with unused variables or unchanged variables that aren't marked const feelsbadman
I hate things complaining about unused variables :(
Avatar
Avatar
♂S1mple♂
it's like that joke that 1 hour without electricity would bring us to insanity
it would only bring me to my bed though
🛌 1
Avatar
like, I'll get to it, chill out
Avatar
Avatar
risu
like, I'll get to it, chill out
Ikr hahahaha
Avatar
warnings, sure, but let me compile please
Avatar
Avatar
risu
so it's on you to make sure you're not wasting memory in goofy ways
It probably can reorder elements in a struct and it aligns them properly whatever the proper way is
Avatar
Btw pilonpl when ddnet contribution for mighty dev role?
Avatar
I don't know what do contribute lol
Avatar
Avatar
pilonpl
It probably can reorder elements in a struct and it aligns them properly whatever the proper way is
The standard says that it can not reorder elements in structs, and it is not allowed to pack them back to back
Avatar
Add Haskell bindings
Avatar
And it's complicated to understand how the code works at all
Avatar
so you really should understand how your structs are laid out in memory if you care for performance
Avatar
Avatar
risu
so you really should understand how your structs are laid out in memory if you care for performance
everything under 2000 tasks per ms isn't worth optimizing monkalaugh
Avatar
I won't be reordering elements in a struct because i group them logically
Avatar
Avatar
pilonpl
I won't be reordering elements in a struct because i group them logically
If you order them by size largest first you'll be good
Avatar
I don't care about some standard, the compiler should just do what has to be done lol
Avatar
Based
Avatar
Avatar
pilonpl
I don't care about some standard, the compiler should just do what has to be done lol
If you want that you shouldn't be using C
Avatar
I never trust the compiler
21:58
I only trust it in go - there has to be a reason my 20 loc main.go takes 3 minutes to compile with 0 output.. right? RIGHT???
justatest 1
Avatar
Avatar
risu
If you want that you shouldn't be using C
I wonder what the reason might be for not allowing the compiler to reorder elements in a struct
Avatar
Avatar
pilonpl
I wonder what the reason might be for not allowing the compiler to reorder elements in a struct
calling convention stuff
21:59
You have a struct defined in a header file
Avatar
Wow
21:59
Okay that might be a good reason
Avatar
two .c files include that header file, but don't include each other
22:00
the struct needs to be compatible across those two compilation units even when they're compiled with two separate invocations of the compiler
Avatar
Why do translation units even exist
22:01
Just compile everything as if it was one file
Avatar
Avatar
pilonpl
Just compile everything as if it was one file
Eh
22:02
monkaStop
Avatar
I am pretty sure that's how sqlite is compiled
Avatar
Memory efficiency
Avatar
Avatar
pilonpl
Just compile everything as if it was one file
Go compile Linux without anything omitted and say that again
Avatar
Avatar
risu
Go compile Linux without anything omitted and say that again
xd
Avatar
And like can you inline functions that are defined in a different translation unit?
22:03
Or really do any optimizations
Avatar
because C compilers are still not that fast we do really quite need incremental build support
Avatar
Avatar
pilonpl
Or really do any optimizations
No(t really)
Avatar
Avatar
risu
because C compilers are still not that fast we do really quite need incremental build support
It's called build.zig Clueless
Avatar
Avatar
pilonpl
Or really do any optimizations
LTO my beloved (makes some builds take like way longer)
Avatar
No but fr, compiling c code with zig is actually pretty good
22:04
I had to when testing sdl3 - was fun
Avatar
Why not just use C to compile C?
Avatar
you still need a script to call the compiler to build your build script and then run it, but yeah, some projects do that
Avatar
Just bootstrap the script once
22:06
still better than installing some makes and cmakes
Avatar
Avatar
pilonpl
Just bootstrap the script once
And ship one compiled for every OS and CPU architecture?
22:07
just so people can build your project
Avatar
Well, we expect people to have a C compiler already installed
22:08
So they can compile the build script
Avatar
I guess you can tell the user to manually compile your build script
Avatar
Obviously, if you can tell them to install cmake
Avatar
Avatar
pilonpl
still better than installing some makes and cmakes
If your system doesn't have make idk what to tell you man
Avatar
I do use make actually
22:09
It's kinda bad
22:09
But whatever
Avatar
it's quite... GNU
22:10
GNU software tends to be annoyingly user-unfriendly and have a billion features that are just actively annoying if you aren't doing GNU-esque things
22:11
like how make is really tailored to compiling C
22:11
so the usage is just totally different for C and literally anything else
Avatar
I am not sure if i use GNU software directly
22:12
I don't even know what software is GNU
Avatar
You know you're in a bad place when a software wants you to use info instead of man
Avatar
info?
22:13
I didn't know such thing existed
22:13
I usually do -h, --help or man
Avatar
info is only used by certain things, it's not common
Avatar
Btw using single dash for multi character flags is evil
Avatar
Avatar
pilonpl
Why not just use C to compile C?
That's done tho
22:14
C is written in C
Avatar
Avatar
pilonpl
I don't even know what software is GNU
GCC obviously, and the most commonly used C standard library implementation for example
Avatar
I use clang
22:15
But i guess it's pretty much the same interface
22:15
Just different implementation
Avatar
if you're on Linux you're still probably using glibc
Avatar
Yes
Avatar
Avatar
pilonpl
But i guess it's pretty much the same interface
Hmm, gcc is much more polished
22:16
Clang is llvm bloat
22:16
But it's diagnostic's are great
Avatar
Clang has better performance it seems
Avatar
Yeah I hear clang compiles a bit faster but both produce comparable quality output
Avatar
-Ofast goes brrrrrr
Avatar
And what i mean by that is that i once tested it and it was better in that one specific situation lol
22:17
Very scientific
22:18
In don't know of llvm is bloated
Avatar
Emacs and Nano are GNU software
22:19
as are the common implementations of most common tools
Avatar
I use nano all the time
22:19
It works ok for basic stuff
22:20
I probably just use nvim
Avatar
try pacman -Ql coreutils | grep bin for a list of examples of things that are gnu
Avatar
I guess i can check on the website too
Avatar
GIMP is a piece of GNU software that even normies have heard of!
22:22
(guess what the G stands for)
Avatar
I am still waiting for the undestructive workflow
Avatar
that too has very strong GNU vibes It has nice features but they're annoying to get to, and the defaults make no sense unless you're a nerd
22:23
and even then the defaults aren't actually good for things
Avatar
That's why gimp should hire some people who know how to design a good user experience
Avatar
GIMP is actually not bad at all for digital painting, but you wouldn't know that because support for pen pressure is not enabled by default
Avatar
Avatar
risu
GIMP is actually not bad at all for digital painting, but you wouldn't know that because support for pen pressure is not enabled by default
Krita exists, so Gimp has no reason to invest Also some things are very annoying to do
Avatar
the matrix for tying different values to different inputs is really nice too, once you find it
Avatar
What
22:28
And yeah i guess GNU programs are kinda bad
22:28
Chmod is in coreutils
Avatar
like, you can make different brush attributes change based on things like pressure, velocity, direction, angle, and a couple others
Avatar
And like why would anyone think it's a good idea to specify permissions using numbers?
Avatar
Avatar
pilonpl
And like why would anyone think it's a good idea to specify permissions using numbers?
you don't need to specify numbers, it's just really nice if your brain works in binary already
22:29
I think the numbers are nice
Avatar
I mean yeah i usually to chmod u+x script.sh
22:30
this thing
22:31
and if you want more control you can edit each of those variables as a curve
Avatar
I wonder what the [ program does, apparently it's also included in coreutils
Avatar
I mean, it's not special, other editors have it too, but finding this menu is actual ass
Avatar
Avatar
risu
Click to see attachment 🖼️
I never knew what this thing was for
Avatar
the tick in the top left corner means that the brush opacity is controlled by the pen pressure
22:33
top right means that the opacity also fades over time I'm guessing? Or does fade mean something else?
Avatar
Over time?
22:33
How would that work
Avatar
or over distance?
Avatar
Avatar
pilonpl
How would that work
well, while you're holding the pen down the image editor is real time, no?
22:34
then resets to 0 for the next stroke
Avatar
I guess
Avatar
another thing, the default dynamics are doodoo
22:35
yet after half a minute of tweaking this you can get a really nice feeling brush
Avatar
Anyways it's almost midnight
22:37
And it's not saturday tomorrow
22:37
Unfortunately
22:37
I hope i can make some more progress on my 3D game tomorrow
Avatar
Avatar
pilonpl
Just compile everything as if it was one file
compilation creates one binary at the end, not 2. So for instance, you could end up with different struct layout for ddnet client and ddnet server which means connection would not work properly (or not at all)
Avatar
Avatar
Chairn
compilation creates one binary at the end, not 2. So for instance, you could end up with different struct layout for ddnet client and ddnet server which means connection would not work properly (or not at all)
Well, due to endianness and the varying size of C types there's really no sense of network compatibility with C structs
23:40
they're only really guaranteed to be compatible on a single system
Exported 324 message(s)
Timezone: UTC+0