Guild icon
DDraceNetwork
DDraceNetwork / off-topic
Any languages allowed
Between 2024-11-12 00:00 and 2024-11-13 00:00
Avatar
Avatar
Learath2
Ah yes the linux
they really blame it to linux? XD
Avatar
Avatar
Cellegen
they really blame it to linux? XD
3.5M people saw that horseshit tweet
Avatar
insane shit
00:33
those guys really lost it after the election
Avatar
Last election trump lost was like this too with the trump people claiming biden paid the vote counting machine company to rig it for him
Avatar
lol, that tweets prolly just ragebait or schizo (edited)
👍 1
Avatar
Avatar
Cellegen
those guys really lost it after the election
who's 'those guys' 🤔
Avatar
the CIA, who else bro
Avatar
Avatar
louis
lol, that tweets prolly just ragebait or schizo (edited)
cyberfighter 2 2024-11-12 00:43
bait used to be believable
Avatar
Avatar
cyberfighter 2
bait used to be believable
yeah its prolly just schizo cuz i could even make better ragebait
Avatar
why, of all people in the world, the fucking CIA would need rage bait
Avatar
okay now cellegen is ragebaiting
Avatar
cyberfighter 2 2024-11-12 00:44
lmao oops
Avatar
Avatar
louis
okay now cellegen is ragebaiting
cyberfighter 2 2024-11-12 00:44
true
Avatar
Avatar
louis
lol, that tweets prolly just ragebait or schizo (edited)
it all started with a tiktok from a girl that called herself a "networker" and "computer software developer"
00:50
She started the mess about linux being unable to "split", and Starlink being a tier 6 ipv4 ipv6
00:50
"Starlink is an IPv4 / IPv6 which is a satellite link up system" (edited)
Avatar
Avatar
TsFreddie
china is blocking hard today. 90% of my proxy nodes are down. 10x more players asking about empty server list in ddnet too
Peeps like U make the world bearable, U no longer play, yet still maintain, which costs $$ and time, I tip my hat to You freddie
02:36
Also gn everyone
Avatar
Avatar
Overlord
Peeps like U make the world bearable, U no longer play, yet still maintain, which costs $$ and time, I tip my hat to You freddie
i don't maintain anything anymore tho
02:51
justatest
Avatar
Avatar
TsFreddie
i don't maintain anything anymore tho
Im semi sure U still do? Who is the china bridge nowdays then?
03:01
Also sleep time
Avatar
S&box is a game engine and a platform. It allows anyone to create games in Source 2 using an intuitive Scene/GameObject/Component system and c#.
Release Date
To be announced
10:12
@TsFreddie u might be interested
Avatar
this shi is so unoptimized
10:52
ive got about 15 fps on the grass map
10:54
may be driver issue idk
Avatar
MilkeeyCat 2024-11-12 11:31
My YouTube mobile app has been bugged for 2 weeks and mfs still didn't fix it feelsbadman
Avatar
Avatar
MilkeeyCat
My YouTube mobile app has been bugged for 2 weeks and mfs still didn't fix it feelsbadman
revanced ftw
Avatar
MilkeeyCat 2024-11-12 11:34
And the new floating video thingy is also bad :/
Avatar
Avatar
Ryozuki
@TsFreddie u might be interested
not really. i don't play gmod
Avatar
its agame engine
Avatar
i guess source 2 is cool and all, but you can get source 2 just by asking valve for it
Avatar
Avatar
Teero
revanced ftw
i have youtube premium but my stupid phone does not have youtube music in its music player whitelist. so my media control just doesn't work.
11:53
then revanced saved me
11:53
since it allows renaming the package, so i just renamed youtube music to a random chinese music app and it worked
11:53
lol
Avatar
Avatar
Ryozuki
its agame engine
i mean calling s&box a game engine is kinda like calling roblox a game engine
11:54
nouis
11:55
although to be fair they are, it's just a bit too dumb for my taste
11:56
idk it feels way more game engine oriented
11:56
than a game
11:56
like gmod
Avatar
ye, but roblox also has programming and developer tools. in their own language and VM no less.
11:58
anyway i tried it on linux and doesnt work
11:58
so its winshit only
11:58
bad
11:58
source 2 is linux native
11:58
so idk what they cookin
Avatar
C# probably
Avatar
c# works on linux
11:58
net core is cross platform
11:59
Free downloads for building and running .NET apps on Linux, macOS, and Windows. Runtimes, SDKs, and developer packs for .NET Framework, .NET, and ASP.NET.
Avatar
ye, but s&box comes way before net core
11:59
they could be migrating all their shit rn i guess
11:59
still
11:59
if you want source 2
11:59
just ask for source 2
Avatar
does it have royaltes?
Avatar
no
Avatar
can i ask for source 2 as a noname?
Avatar
if you have a project in mind, they are happy to listen afaik
12:03
also i doubt s&box will just be a free thing that exists for some reason. it gotta be a platform or have some other strategies
Avatar
if they made it to the level of killing roblox, it'd be huge for them
12:05
nouis
12:14
i miss pebble so much
12:14
this just doesn't hit the same
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
Да все уже пизда часам
14:03
Avatar
Avatar
Kenbay.05
Да все уже пизда часам
он другую прошивку наказывает
Avatar
Avatar
zhn
он другую прошивку наказывает
Настолько крутая прошивка что стекает начальный код?
14:48
Хлопаю стоя
14:48
14:49
Начинаю дрочить стоя
Avatar
Avatar
Kenbay.05
Настолько крутая прошивка что стекает начальный код?
всм стекает, оно данные о прошивке высрало и все
Avatar
Avatar
zhn
всм стекает, оно данные о прошивке высрало и все
Ну если мой суждение верны 0002
Avatar
Avatar
Kenbay.05
Ну если мой суждение верны 0002
Стерание заводских данных
14:50
Тоесть делая из часов пустышку
14:50
Не похоже что он заново полностью написал код
14:51
Ну или написал на фотке этого не понять
Avatar
Avatar
Kenbay.05
Ну или написал на фотке этого не понять
можно спросить
Avatar
Я не хочу с любителями фурри разговаривать
14:52
В пизду его
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
what u doing with your watches
Avatar
Avatar
manikoo
what u doing with your watches
Маму твою тарабанит на часах не видишь?
Avatar
greenthing updating firmware
14:53
nice
Avatar
Avatar
TsFreddie
Click to see attachment 🖼️
so what's happening on this photo, halp
Avatar
Avatar
TsFreddie
greenthing updating firmware
You delete first code?
Avatar
ah too slow troll
Avatar
Бля я же правильно написал?
14:54
Я баклажан в Английском
Avatar
kinda want to add unifont to the firmware but i don't think i can compress the thing down to a sensible size
Avatar
Avatar
Kenbay.05
Ну если мой суждение верны 0002
ну а что есть 0002 по твоему
Avatar
Avatar
zhn
ну а что есть 0002 по твоему
Ну может быть несколько вариантов стерание исходного кода замена кода и фикс
Avatar
Avatar
Kenbay.05
Ну может быть несколько вариантов стерание исходного кода замена кода и фикс
нет конкретно имею ввиду что есть 0002
14:55
адрес?
Avatar
i mean 208kb for the entire unifont is probably not bad, but idk it'll get accepted into the firmware if it is that huge
Avatar
0002 это так сказать язык программирования
14:56
Не видел всякую хуету по типу 000111101010
Avatar
Avatar
Kenbay.05
0002 это так сказать язык программирования
ты какую то хрень несешь
Avatar
Avatar
zhn
ты какую то хрень несешь
Блять
14:56
Щяз пк включу
14:56
И объясню
Avatar
Avatar
Kenbay.05
0002 это так сказать язык программирования
Avatar
это не код команды, это просто адрес судя по фото
Avatar
Avatar
zhn
это не код команды, это просто адрес судя по фото
Что блять
14:57
Да хуй с вами ждите
Avatar
"различие в 0x00026004 0x0000004d v 0x000000f..." (edited)
Avatar
Да ладно забейте тут уже я не в силах
Avatar
бреин иссуе сюда
15:00
да прост можно было у него спросить че происходит вместо гадания на гуще
Avatar
Я не знаю англ епта
15:01
Мне сложно разбирать слоги
Avatar
Avatar
TsFreddie
i mean 208kb for the entire unifont is probably not bad, but idk it'll get accepted into the firmware if it is that huge
and flash memory max size is?
Avatar
Avatar
Kenbay.05
Мне сложно разбирать слоги
$deepl
Avatar
Avatar
Kenbay.05
Мне сложно разбирать слоги
Hi! Most of us communicate in English. If you’re having trouble with English, use https://www.deepl.com/en/translator to help you out.
Avatar
Avatar
zhn
and flash memory max size is?
8mb it's plentiful (edited)
Avatar
Avatar
Kenbay.05
Мне сложно разбирать слоги
ну как тогда ты понял что происходит на картинке если даже английского не знаешь
Avatar
Avatar
TsFreddie
8mb it's plentiful (edited)
oh, so there's no actual problem, i guess
Avatar
it's just that the current firmware is 502kb total
15:02
kekw
Avatar
imagine adding 50% just to show some chinese
Avatar
you can fill it with some spongebob series ngl
15:02
but you need decoder ig
15:02
justatest
Avatar
i mean the watch shows chinese just fine for now. it actually let's the phone app convert the message to bitmap before showing it on the watch
Avatar
Avatar
TsFreddie
i mean the watch shows chinese just fine for now. it actually let's the phone app convert the message to bitmap before showing it on the watch
so every message is just an image for this watches?
Avatar
nouis but i kinda want to do it without that. since that only works for messages, not general app UIs
Avatar
Avatar
zhn
so every message is just an image for this watches?
ye, if you toggle the bitmap feature on
Avatar
yeah, sounds hackish
Avatar
if it works it works
Avatar
have you already test it?
15:04
unifont i mean
Avatar
no
15:04
i only tried to compress it
15:05
haven't done anything with the firmware yet
15:05
i don't want to do anything C++ before i'm sure i can make it super small
Avatar
chanchitoooo
15:05
Avatar
nouis too be fair, huffman coded unifont is probably already optimal. being huffman and all
Avatar
Avatar
manikoo
Click to see attachment 🖼️
Avatar
but i am trying some other ways
Avatar
Avatar
TsFreddie
i don't want to do anything C++ before i'm sure i can make it super small
so what you are testing now
15:07
zlib compression?
Avatar
Avatar
TsFreddie
nouis too be fair, huffman coded unifont is probably already optimal. being huffman and all
ah, good catch
15:07
probably ye, smallest one
Avatar
the end goal is probably always huffman, but i am trying to split the font into 4x4 kernels (2 bytes each). and have a kernel table and huffman the table indexes
Avatar
Avatar
zhn
ну как тогда ты понял что происходит на картинке если даже английского не знаешь
3 года работал в техническом отделе 😾
15:09
Сомневаешься в моих способностях
Avatar
Avatar
Kenbay.05
Сомневаешься в моих способностях
не в способностях
Avatar
currently the kernel table itself and the huffman codes is around 52kb, if the huffman indexes is less than 150k then we are golden. haven't done that yet
Avatar
Avatar
TsFreddie
currently the kernel table itself and the huffman codes is around 52kb, if the huffman indexes is less than 150k then we are golden. haven't done that yet
🤞
Avatar
Avatar
manikoo
Click to see attachment 🖼️
cool scene
15:10
rewatched cafe part for like 15 times
Avatar
Avatar
zhn
🤞
34k what? it doesn't seems right
15:19
nouis but it is bedtime. i'll continue another time
Avatar
Avatar
TsFreddie
nouis but it is bedtime. i'll continue another time
gn big boy
Avatar
big
16:03
Old memes best memes
16:03
Avatar
Avatar
meloƞ
Click to see attachment 🖼️
uganda
16:14
do you know de wey
Avatar
why is ~/.config/Code - OSS so huge omg
16:20
its supposed to be onyl config (edited)
16:20
and i see caches there
16:21
i am installing the actual vscode
16:21
and not oss btw
16:22
open source vscode
16:22
but it kinda causes issues so
16:22
whatever
Avatar
wouldnt it be osvs
16:25
thonk
Avatar
idk
16:26
i dont care about names (edited)
Avatar
my name is mugi
16:28
16:28
манико пошли чото игратьб
16:28
делать нехуй
16:28
да не колобки
16:29
игра кал
Avatar
Original message was deleted or could not be loaded.
не знаю в стиме у тебя какие игры
16:29
ты у меня в друзьях есть еблан
16:29
эта че такое (edited)
16:30
у меня лучши
16:31
саси
16:31
Avatar
c++ is such a great language (edited)
16:32
idk i am an average printf enjoyer
Avatar
streams using the shift operators is quite cursed
Avatar
Avatar
pilonpl
c++ is such a great language (edited)
no \n ... unneccessary return... 4 space indent.... 5/10
16:33
fun fact -> the main function doesnt have to return anything even tho it's of type int (edited)
Avatar
Avatar
risu
streams using the shift operators is quite cursed
C++ and it's overloads have created some insane abominations
Avatar
Avatar
meloƞ
fun fact -> the main function doesnt have to return anything even tho it's of type int (edited)
also funfact we can return 1 to specify that something went wrong
16:34
so explicitly returning 0 does technically make sense
Avatar
Avatar
pilonpl
also funfact we can return 1 to specify that something went wrong
if the main function returns... nothing went wrong - doesnt matter what it returns or if any return value is given (edited)
Avatar
we can return any int to specify that something went some way or other
Avatar
Avatar
meloƞ
fun fact -> the main function doesnt have to return anything even tho it's of type int (edited)
wym?
Avatar
Avatar
pilonpl
also funfact we can return 1 to specify that something went wrong
You know what's peak humour? The manpages for true and false
Avatar
There is no implicit return in C++ from any function including main, iirc
Avatar
Avatar
Learath2
There is no implicit return in C++ from any function including main, iirc
Main is special, no?
Avatar
Oh wait, there probably is
16:36
They inherit that stuff from C
Avatar
int main() { std::cout << "hi\n"; }
16:36
the rest screams
Avatar
Yeah it's fine
Avatar
Avatar
meloƞ
int main() { std::cout << "hi\n"; }
1 space indent monkaS
Avatar
4 spaces is the only correct way btw
Avatar
Avatar
risu
1 space indent monkaS
can't tab indent on discord
Avatar
you dont want more than like 4 indentation level anyways
Avatar
Avatar
meloƞ
can't tab indent on discord
pressing tab inside a multiline code block inserts two spaces :)
16:38
though I do think two space indenting is going too far already
Avatar
Avatar
pilonpl
4 spaces is the only correct way btw
I find tab indents acceptable, they've got that cozy oldschool vibe
Avatar
main.cpp:8:49: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion [-Wreturn-type] 8 | int do_func() { std::cout << "Hello, World!\n"; }; ah okay it merely gives a -Wreturn-type
16:39
but it doesnt throw an error
Avatar
btw what libraries to use for an app to display an image and do something with it?
Avatar
Avatar
pilonpl
btw what libraries to use for an app to display an image and do something with it?
what lang
Avatar
imgui is pretty cool
16:39
c++ lol
16:39
i guess
Avatar
SDL2 ._.
Avatar
Avatar
meloƞ
main.cpp:8:49: Warnung: keine return-Anweisung in nicht void zurückgebender Funktion [-Wreturn-type] 8 | int do_func() { std::cout << "Hello, World!\n"; }; ah okay it merely gives a -Wreturn-type
it warns but it is completely legal and defined behaviour
Avatar
Avatar
risu
I find tab indents acceptable, they've got that cozy oldschool vibe
if you set tabstop to 4 you almost won't even notice it
Avatar
idk c++ seems like a standard for this type of stuff
Avatar
Avatar
Learath2
it warns but it is completely legal and defined behaviour
ye
Avatar
Avatar
pilonpl
idk c++ seems like a standard for this type of stuff
i find languages like Go or Rust to be much easier for GUI applications - idk maybe preference?
16:40
egui is goated af
Avatar
rust ☠
Avatar
imgui is usually used for overlay's, not as a standalone GUI IIRC
Avatar
yeah i guess
16:41
but its supposed to be an utilitarian app if it makes sense
16:41
idk how to describe it
Avatar
Avatar
meloƞ
imgui is usually used for overlay's, not as a standalone GUI IIRC
imgui is hot
Avatar
i feel like c++ should be pretty good at doing binary data stuff and its also very popular for some reason so why not try it
Avatar
Avatar
Learath2
imgui is hot
i played around with fyne in go was a fun ride ngl
Avatar
btw its annoying how most big projects use cmake
Avatar
why is it annoying :o
Avatar
i just want build.sh and my app works lol
16:45
cmake .. && make
Avatar
and why do we use a script to generate a script to build a project
16:46
overcomplicated
Avatar
Because people don't want to write shell scripts? I don't know
Avatar
write C?
16:47
its a fully functional programming language
16:47
so much better than some cmake
Avatar
A build script in C? Now that's based But then you need a build script that builds your build script and then runs it to actually build your project
Avatar
yeah but it can build itself after that
Avatar
cmake is so much more tho
Avatar
cmake is a lot more
Avatar
Supposedly Zig is good not only as its own language but also as a build system for C
Avatar
Avatar
Teero
cmake is a lot more
especially cuz crossplatform
Avatar
Avatar
risu
Supposedly Zig is good not only as its own language but also as a build system for C
meh, you need to write zig to compile C
16:49
its fun that it can do that for sure - but i dont see that as a big +
Avatar
Well yes but you get to use a language that doesn't suck for your build
Avatar
oh god risu said something bad about C
Avatar
writing cmake does kind of suck i agree
Avatar
quick delete before learath see's it
Avatar
Avatar
pilonpl
and why do we use a script to generate a script to build a project
go ahead and rewrite all cmake into shell, you'll go crazy in 5 mins troll
KEKW 1
Avatar
Avatar
meloƞ
oh god risu said something bad about C
No I said something bad about build tools
16:50
The languages used by most build tools suck, Zig doesn't suck, so using Zig as a build tool should be comfier
Avatar
Avatar
pilonpl
write C?
C
Avatar
i suppose you will even introduce your own kind of build tool, just like cmake, just on top of shell (called smake troll)
KEKW 1
Avatar
i have sdl installed on my system
16:52
so why cant include it
16:52
i thought it was supposed to just work
Avatar
i wish it were that easy
Avatar
raylib just works
Avatar
ive heard many good things about bazel, but it's too strange for me (for now)
Avatar
i installed it and it works
Avatar
Avatar
pilonpl
so why cant include it
Which OS?
Avatar
arch
Avatar
Avatar
pilonpl
raylib just works
use raylib then, what's your problem troll
Avatar
huh I thought that was supposed to just work lol
16:55
on like Ubuntu and stuff you need to install -dev packages but Arch doesn't do those
Avatar
Avatar
zhn
use raylib then, what's your problem troll
nah i am a serious software hobbyist
16:56
or something
Avatar
Avatar
pilonpl
nah i am a serious software hobbyist
write your own gfx/sound/input backend then
16:56
\s
Avatar
why do tutorials want me to use IDEs
16:57
i hate IDEs
Avatar
What's the include path you're using? I'd guess "SDL2/SDL.h" should be it
Avatar
i just want a simple command to compile my app
Avatar
Avatar
risu
What's the include path you're using? I'd guess "SDL2/SDL.h" should be it
ohhhh
16:57
the tutorial had a different path lol
Avatar
assuming /usr/include is in the compiler's include path by default
Avatar
what tutorial ur using?
Avatar
Avatar
pilonpl
the tutorial had a different path lol
Yeah you can check these with pacman -Ql <name of package>
16:58
or just checking /usr/include
Avatar
yeah
16:58
thats the simplest way
Avatar
Avatar
zhn
what tutorial ur using?
some random i found to steal some code
Avatar
send link
16:59
i had list of good sdl tutorials, i wonder if i still have em
Avatar
actually that code is shit
16:59
it uses system("pause")
17:00
pause doesnt even exist
17:00
Windows thing?
Avatar
probably
17:01
chatgpt generated a working app tho
Avatar
how about just read SDL docs lol
Avatar
chatgpt is unironically useful
Avatar
stop you are using chatgpt to learn sdl?
Avatar
why not
17:03
its great tbh
justatest 1
Avatar
I have genuinely not even tried it a single time
17:03
its rly helpful if u use it responsibly
Avatar
use rust
Avatar
Do I have to?
Avatar
btw idk why but i dont like this kind of formatting
Avatar
Avatar
pilonpl
btw idk why but i dont like this kind of formatting
yeah that shit's on you mate wtf
17:06
thats not how my stuff is formatted atleast kekw
Avatar
yeah
17:07
but i see it often
17:07
and chatgpt even does it
Avatar
I do it but not with perfect alignment like that, instead I just give it one extra indent
Avatar
Avatar
louis
its rly helpful if u use it responsibly
could never get any help from it nor in russian nor in english
Avatar
Avatar
pilonpl
btw idk why but i dont like this kind of formatting
i can invite u to my c little engine (never finished) that utilizes basic sdl2 stuff
17:09
just send ur github username
Avatar
i feel like this is the best way
Avatar
Avatar
zhn
just send ur github username
pilonpl i guess
17:11
it would be great to contribute to someone elses code but i am kinda bad at that so
Avatar
Avatar
pilonpl
i feel like this is the best way
I'd probably write this as // Create a window SDL_Window* window = SDL_CreateWindow("Simple SDL2 App", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN); Just split it enough to avoid long lines, not caring for perfect alignment Or if I want to be a bit prettier I might go for // Create a window SDL_Window* window = SDL_CreateWindow("Simple SDL2 App", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN); (edited)
Avatar
those styles are fine too i guess
Avatar
1st one is just barely splitting the line enough to make it short enough while avoiding the splitting of pairs of related arguments, the 2nd one is grouping the related arguments up by line
17:14
Why am I seriously explaining my motivations for whitespace? What is this conversation? Are we all just insane?
Avatar
Avatar
pilonpl
i feel like this is the best way
I personally don't like the closing parenthesis on a separate line because it reminds me of JS lol
17:15
I only put it there if it's after a } or something else that usually goes on its own line
Avatar
btw i somehow survived this long without knowing what a const pointer is
17:16
i am sure its not that important
Avatar
Avatar
pilonpl
it would be great to contribute to someone elses code but i am kinda bad at that so
my code sucks and is just a very very basic fundament (edited)
17:29
lol
17:30
just use malloc idk
Avatar
Avatar
risu
I'd probably write this as // Create a window SDL_Window* window = SDL_CreateWindow("Simple SDL2 App", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN); Just split it enough to avoid long lines, not caring for perfect alignment Or if I want to be a bit prettier I might go for // Create a window SDL_Window* window = SDL_CreateWindow("Simple SDL2 App", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 640, 480, SDL_WINDOW_SHOWN); (edited)
now do SDL_CreateWindow("AW YEAH BABY", 0, 0, 0, 0,SDL_WINDOW_FULLSCREEN | SDL_WINDOW_VULKAN
17:36
trust
Avatar
i guess i might have to use some build system
Avatar
you can sweep cmakelists.txt from logibox
Avatar
cmake is so complicated
17:43
i dont even want to understand it
Avatar
Koll Potato 2024-11-12 17:51
same bro
17:51
same
17:52
cmake must burn
Avatar
MilkeeyCat 2024-11-12 17:52
I don't want to write build scripts scripts for each platform, thanks
17:53
Not that I even write a lot of C/C++ lol
Avatar
Avatar
pilonpl
cmake is so complicated
just tell AI what you want. - cmake is literally just cmake version cpp version project name source
Avatar
ok chatgtpt helped so much with the cmake (edited)
Avatar
the syntax is humanly readable aswell
Avatar
idk what cpp version i want
17:55
probably doesnt matter for me
17:58
ai is actually so useful
17:58
idk why people say its bad
17:58
i use it all the time
17:59
i mean i guess it is bad but still there are many uses
Avatar
its good for "pseudo code" or suggestions
18:00
i would never copy paste code it gives me tho - way to many issues
Avatar
software development is actually so easy
18:06
sdl2 + imgui just works
18:06
why did it seem impossible when i started programming
Avatar
Once you know how things work they tend to just work
18:07
They were designed to make your life easier after all
Avatar
why would you do something manually that takes 1 minute if you could automate it within 5 hours???
Avatar
Koll Potato 2024-11-12 18:10
exactly
18:10
i spent 30 minutes debugging chatgpt's code instead of reading documentation for 5 minutes
18:11
nouis
Avatar
i dont quite understand why i need opengl to use imgui
18:15
Or why does sdl have gl functions
Avatar
Koll Potato 2024-11-12 18:18
because they are abstractions that describe how to render, and the rendering backend like vulkan/opengl does the actual rendering
Avatar
Some gl functions dont compile ._.
Avatar
Idk
18:20
Some issue with linking maybe
18:20
Not maybe
18:20
Definitely
Avatar
Koll Potato 2024-11-12 18:20
i use rust btw
18:21
no linking issues
18:21
almost
Avatar
btw why does linking happen after compilation?
18:43
shouldnt it happen while compiling so the compiler can optimize?
18:44
and how can that work at all, i treat functions as something tied to a specific programming language
18:45
not as something that exists outside of source code
Avatar
ok actually i dont understand shit about how this works
19:05
i somehow created something that just refuses to show on a screenshot
19:05
its like zfighting kinda
19:07
how can i draw something below the gui
19:10
or should i use some imgui window
Avatar
MilkeeyCat 2024-11-12 19:12
clang-tidy says to use a function which I don't even have in string.h :\
Avatar
btw is it possible to capture full terminal output
19:14
add something like "You are using free Rust ™️ compiler. 420 free remaining compiler errors remaining"
19:14
and ouptut it to the terminal
19:14
and screenshot it
19:14
and post on reddit
19:14
and get karma
Avatar
Avatar
MilkeeyCat
clang-tidy says to use a function which I don't even have in string.h :\
MilkeeyCat 2024-11-12 19:16
2796 warnings generated. pepeH
pepeH 1
Avatar
why cant this work
Avatar
i dont want it to work thats why
Avatar
Avatar
pilonpl
and how can that work at all, i treat functions as something tied to a specific programming language
ok so a function in machine code is really just a bunch of instructions that ends with a jump back to the return address set by the caller The way you pass arguments is that people have agreed what to place in each register and then the function being called can use the values in those registers as arguments And a function call in machine code is really just setting up the registers correctly, putting the return address where it's supposed to go, and jumping to the beginning of that block of instructions that consistutes the function
19:40
In computer software, an application binary interface (ABI) is an interface between two binary program modules. Often, one of these modules is a library or operating system facility, and the other is a program that is being run by a user. An ABI defines how data structures or computational routines are accessed in machine code, which is a low-le...
Avatar
what if there are so many arguments they cant fit into registers?
Avatar
MilkeeyCat 2024-11-12 19:41
they are put on stack
Avatar
you pass them through the stack
Avatar
that actually makes a lot of sense
19:42
but it still feels weird that functions are so close to what they are on low level
19:43
you can do basically anything
19:43
but it is almost 1:1
Avatar
funny that i had lab work on exactly this today 🙂
19:43
too bad that the students didn't seem to understand...
Avatar
Then for some magic tricks you can set the return address to something other than the address from which the function was called
19:44
When you do that maliciously it's called return oriented programming
19:44
which is just so funny to me
Avatar
Avatar
risu
When you do that maliciously it's called return oriented programming
i call that segfault | infinite recursion
Avatar
Avatar
MilkeeyCat
they are put on stack
depends a lot on the type of argument
Avatar
MilkeeyCat 2024-11-12 19:51
floats suck
Avatar
True
19:52
check page 19
Avatar
Why do we use floats for represeting the position of objects in games
Avatar
.2.3 Parameter Passing After the argument values have been computed, they are placed either in registers or pushed on the stack. The way how values are passed is described in the following sec- tions. Definitions We first define a number of classes to classify arguments. The classes are corresponding to AMD64 register classes and defined as: INTEGER This class consists of integral types that fit into one of the general purpose registers. SSE The class consists of types that fit into a vector register. SSEUP The class consists of types that fit into a vector register and can be passed and returned in the upper bytes of it. X87, X87UP These classes consists of types that will be returned via the x87 FPU. COMPLEX_X87 This class consists of types that will be returned via the x87 FPU. NO_CLASS This class is used as initializer in the algorithms. It will be used for padding and empty structures and unions. MEMORY This class consists of types that will be passed and returned in memory via the stack. Classification The size of each argument gets rounded up to eightbytes.11 The basic types are assigned their natural classes: • Arguments of types (signed and unsigned) _Bool, char, short, int, long, long long, and pointers are in the INTEGER class.
Avatar
Especially in something like minecraft that doesn't make any sense at all
19:53
You want to have the same precision everywhere
19:53
Just use long
Avatar
f the size of an object is larger than eight eightbytes, or it contains unaligned fields, it has class MEMORY 1
Avatar
MilkeeyCat 2024-11-12 19:53
I saw that page many times and didn't look at anything other than INTEGER and MEMORY lol
Avatar
If the class is MEMORY, pass the argument on the stack. 2. If the class is INTEGER, the next available register of the sequence %rdi, %rsi, %rdx, %rcx, %r8 and %r9 is used15. 3. If the class is SSE, the next available vector register is used, the registers are taken in the order from %xmm0 to %xmm7. 4. If the class is SSEUP, the eightbyte is passed in the next available eightbyte chunk of the last used vector register. 5. If the class is X87, X87UP or COMPLEX_X87, it is passed in memory.
Avatar
Avatar
pilonpl
You want to have the same precision everywhere
REAL Fixed point is underrated Fixed point my beloved but the reason people don't do it is because it takes a bit of extra effort
19:55
floating point also is super convenient for multiplying and adding very small values that might run into precision problems with fixed point
19:56
but just imagine let's say we want micrometer precision for entity coordinates in our fantasy fixed point Minecraft
19:57
that's already quite excessively precise (edited)
19:58
with 64 bits we could represent entity positions in a range of 9.2 billion kilometers (edited)
Avatar
Minecraft already uses 64 bits i guess as doubles but it only works up to 30 million blocks
20:00
Or does it use 32 bits
Avatar
It uses doubles, they made the change because floats got too jittery at long distances from the origin
Avatar
Btw doesn't the gpu use floats for everything?
20:02
Can you use fixed point with gpus
20:02
Without much effort that is
Avatar
For reference, the furthest point Pluto reaches from the sun during its orbit is 7.4 billion kilometers
Avatar
Avatar
pilonpl
Btw doesn't the gpu use floats for everything?
Yeah basically
20:03
You can do int math with them but I don't know if you can really use that for graphics...
20:04
Actually now that I think of it yeah you could totally just send fixed point to the GPU and let it convert that to floats
20:04
parallelism yay
20:06
since GPUs already store some textures in memory as ints you know they're necessarily pretty good at converting them but then again that might be a separate bit of hardware from the shader cores...
20:06
I don't think int to float conversion will ever be your bottleneck though lol
20:07
And the great thing is that for rendering you can truncate your fixed point numbers for almost zero cost since you don't need to render at full precision anyways
Avatar
In minecraft there are at most thousands of entities
20:07
So i guess it would be free
Avatar
and you'll have to cut off some of the more significant bits anyways and shift about the origin used for rendering because otherwise you'd be hitting your float precision issues that we just avoided by using fixed point
Avatar
Avatar
risu
And the great thing is that for rendering you can truncate your fixed point numbers for almost zero cost since you don't need to render at full precision anyways
(the point of this is not only to shift the origin but to reduce bandwidth required to move things to the GPU)
20:10
zero sense in sending over 64 bit coordinates when the GPU is working with 32 bit floats at most
Avatar
You could achive infinite world of you shift the origin when close to the edge
20:16
It's so convenient that every bit doubles the number of states
Avatar
Avatar
risu
It uses doubles, they made the change because floats got too jittery at long distances from the origin
are you sure about that ? floats have 6 digits precision, this is in line with game being messed around 16M blocks
Avatar
Avatar
Chairn
are you sure about that ? floats have 6 digits precision, this is in line with game being messed around 16M blocks
public abstract class Entity implements ICommandSender { // ... public World world; public double prevPosX; public double prevPosY; public double prevPosZ; public double posX; public double posY; public double posZ; // ... } Opened up an old modding project just to be sure :P
Avatar
but then why game is broken after 16M blocks ?
Avatar
idk ask Mojank
Avatar
maybne they fixed it
Avatar
I finished watching TWD Daryl Dixon
21:16
And i'd say it's decent
21:17
Daryl is definitely my favourite character
Avatar
Avatar
pilonpl
I finished watching TWD Daryl Dixon
Season 1 that is
21:18
I see a lot of videos about downfall of the walking dead
21:19
But idk, for me it seems like a decent show pretty much always
21:23
And intros are so good
21:23
Especially season 9 of the main show
Avatar
Siema kurde
21:50
Murzynki bambi
21:50
Bambo*
Avatar
Good i slept 19h without even a toilet break and im pretty sure i could sleep 5h more if it wasnt so damn cold rn
👍 1
Exported 486 message(s)
Timezone: UTC+0