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-16 00:00:00Z and 2022-04-17 00:00:00Z
Avatar
does anyone here know what file is used for the weapon switch sound effect?
Avatar
wp_switch-0x.wv
Avatar
ah thanks didnt know how i didnt see it
Avatar
wtf is wrong with the cloud in the bottom xD we really need some mappers to make better default themes
Avatar
Avatar
Jupstar ✪
wtf is wrong with the cloud in the bottom xD we really need some mappers to make better default themes
It is depressed
Avatar
chillerdragon BOT 2022-04-16 08:47:51Z
Sad cloud
Avatar
I remember I asked someone to fix the cloud movements back when we added it
09:05
I guess my request still stands, they also shouldn‘t jump around
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 09:16:52Z
@Jupstar ✪ getting a headless gfx backend to compile was astonishingly easy. Its still opening a black window lets see how hard that will be to remove.
09:17
Any opinions on the name of the headless backend should it be backend_headless or backend_null ?
Avatar
backend_null
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 09:25:50Z
:c
09:25
oke
Avatar
aight, so didnt touched the ddnet source since 2021 june, im not a big developer but tryna do something, when i want to build, or any interaction with the source code i got this;
10:31
any idea?
Avatar
Thanks to @Jupeyy for the idea. Replacing graphics_threaded_null.h with a null backend makes code maintenance and memory cleanup easier. Fixes these memory leaks in headless client (https://github.com/ddnet/ddnet/pull/4970) ``` Direct leak of 1048576 byte(s) in 1 object(s) allocated from: #0 0x4b6f6d in malloc (/home/runner/work/ddnet/ddnet/san/DDNet+0x4b6f6d) #1 0xd92ffb in CTextRender::InitTextures(int, int, IGraphics::CTextureHandle (&) [2], unsigned char* (&) [2]) /ho...
Avatar
Avatar
mate
aight, so didnt touched the ddnet source since 2021 june, im not a big developer but tryna do something, when i want to build, or any interaction with the source code i got this;
looks like just warnings
10:38
just ignore
Avatar
Avatar
Jupstar ✪
just ignore
10:42
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 10:43:27Z
how can something with 0 errors even fail?
10:43
Visual Studio is so scuffed
Avatar
idk, i can build the ddnet-server.exe & others
10:45
i just cant build, or run the ddnet.exe
Avatar
looks like vs is wrongly configured, just try a clean build
10:47
too much trouble finding out what went wrong xd
Avatar
Avatar
Jupstar ✪
looks like vs is wrongly configured, just try a clean build
tried, same
Avatar
use cmake directly
10:58
cmake gui
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:00:38Z
G U I
11:00
just do cmake ..
11:01
@Jupstar ✪ teach me how to write renderers xd
Avatar
the smallest geometry is a triangle
11:02
build many triangles
11:02
do some math
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:02:18Z
11:02
its soooo broken
11:02
that is multimap spawn haha
Avatar
c'mon the gl 1.x way is ez af
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:03:36Z
ncursesw > opengl
11:03
change my mind
Avatar
>opengl 1.x indeed xd
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:04:14Z
xd
11:04
it looks like some abstract art
Avatar
chillerbot PNG
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:06:13Z
da
11:07
Who can guess which map that is? :p
11:07
Avatar
chillerdragon 18
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:08:24Z
dafak
11:08
no it Copy Love Box
11:08
obviously
Avatar
too bad kinda looked like a gores map
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 11:09:17Z
the unprintable characters are unhook :D
11:10
11:10
i see no difference
12:19
rip
12:19
someone know how to solve this? (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 12:23:07Z
Try running this
12:23
sudo apt install build-essential cmake git google-mock libcurl4-openssl-dev libssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpnglite-dev libsdl2-dev libsqlite3-dev libwavpack-dev python libx264-dev libavfilter-dev libavdevice-dev libavformat-dev libavcodec-extra libavutil-dev libvulkan-dev glslang-tools spirv-tools
Avatar
Avatar
[quakenet] ChillerDragon
Click to see attachment 🖼️
clb
12:39
ah you answered it
12:39
anyways xd
12:39
did you make console tw map renderer? lolz
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 12:48:46Z
@Ryozuki i saw you starred HTTPie their loss of 54k stars makes me sad what a mood killer. Weekend ruined.
12:49
@gerdoe wait you guessed it? o.O pro
12:49
because console is the best platform!
12:49
^ that statement sounds weird
Avatar
what happened that they lost 54k stars xD
12:56
went to paid version?
12:56
ah they tell on the github page
12:56
xD
12:56
they made it private
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 12:59:02Z
yes its very dramatic
Avatar
but why should this ever happen xD
13:00
kinda sounds like they did it on purpose
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:00:06Z
read the blog
13:00
its very detailed drama
13:00
but be warned its a very sad story!
13:00
Tbh I can totally relate I also accidentally even deleted repos I didnt want to delete
Avatar
like github doesnt say smth like "Do you really want to make ur repo private"
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:01:13Z
it does
Avatar
see
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:01:18Z
and it makes you type in the repo path
13:01
doesnt help
13:01
i manually typed out every letter on my phone :D still was the wrong repo haha
13:01
c'mon
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:02:16Z
its about the missing alter that those repos have different value
13:02
one is empty and one is fakin superstar famouse
Avatar
but even then
13:02
not like you dont double read doing stuff like that
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:02:48Z
you dont if its about an unimportant repo :D
Avatar
yes, on your private account
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:03:18Z
well its an unimportant repo on a org
Avatar
ok i still find it kinda weird
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:03:49Z
wow shame on you
Avatar
lmao
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:04:21Z
Think about all the stargazers that died or acedentally deleted their internet permanently... those stars will never come back
13:04
10fakin yrs
Avatar
but i agree github should show what damage you cause
13:04
like 50k stars gonna be lost
13:04
oh ok, lets do it anyway
13:04
its just a random repo
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:05:13Z
I can't anymore
13:05
thinking about it is downspilaling me
13:05
DOWNSPILALING
13:05
yes
Avatar
they already have 10k back
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:05:56Z
So it was all a marketing move?
13:06
To wipe out old zombie stargazers
Avatar
yes sopon they have 70k
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:06:10Z
and get github to tweet from their official acc
13:06
and ryo the nob got baited axaxaxaxax
Avatar
ez af
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:06:52Z
ryo stoopid sheep got scammed by the 1% repteloid masterminds running the world and working on httpie
Avatar
u dont need to scam ryo
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:07:28Z
cringe who stars a python project anyways
Avatar
just put random rust code into your repo
13:07
so it shows in first place
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:07:42Z
xd
Avatar
even if it doesnt use that code
13:07
he sees he clicks
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:08:31Z
Make the whole codebases filenames end in .rs and in the Makefile you have like mv foo.rs foo.py xd
13:08
and yes... python devs are big on Makefiles! they even use bam and autoconf!
13:10
@Jupstar ✪ now that ddnet has a vulkan renderer will you promote ddnet as one of the best game engines?
13:10
I see big potential in ddnet replacing unreal engine and godot
Avatar
yeah what the fuck is unreal engine
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:11:23Z
Its cross platform. Low level. High abstraction. Light weight. Network enabled. Multi renderer.
Avatar
this is REAL LIFE ENGINE
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:11:27Z
ddnet is op
13:11
and its free to use and modify
13:11
no fees
Avatar
ddnet engine, spearheaded by soapy sandwich
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:11:50Z
no ads
13:11
no backdoors
13:12
im half joking and half hyped xd
13:12
who needs 3d anyways
13:12
oh and it even compiles to android haha
13:12
and web
Avatar
and runs with 1k fps
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:12:57Z
holy shit
13:13
its literally better than blender
Avatar
xd
13:13
blender game engine is so nieche somehow
Avatar
blender does 3d? big whoop, we got acq by louis
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:14:07Z
xd
13:14
13:14
had to look it up but thats exactly what i expected
Avatar
next step is writing own GPU driver for teeworlds
13:15
then own os
Avatar
Avatar
Voxel
blender does 3d? big whoop, we got acq by louis
i mean blender is a 3d tool
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:15:33Z
hi ryo
Avatar
then death star sized computer
13:15
then 1trillion fps
13:15
roadmap
Avatar
actually the best open source 3d computer graphics software
Avatar
2023
Avatar
and trend setter
13:15
BASED
13:15
aPES3_ChadShirtRip
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:16:09Z
dont get me wrong blender is op and also used. But not their video editor and their game engine
Avatar
the game engine got removed iirc
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:16:21Z
Seems like nobody uses those
Avatar
its not the goal
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:16:26Z
oh wow it did
Avatar
the video editor is getting lots of improvements
13:16
whats the last version u used?
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:16:37Z
kdenlive > blender
13:16
change my mind
Avatar
blender is at 3.1 right now
13:16
they getting updates out like crazy
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:16:52Z
last time i used video editor was the old ui from 1998
13:17
then dont say stuff
Avatar
i am still waiting for amd path tracing support
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:17:09Z
xd
Avatar
opencl never worked
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 13:17:13Z
ok i quiet
Avatar
for me
13:17
@Jupstar ✪ u mean AMD own cuda thing?
13:17
i hope they make open source good stuff
Avatar
rocm
13:17
its amd
13:17
they always trend setter
13:17
nvidia virgin follower
13:17
amd chad trend setter
Avatar
yeah ez
Avatar
nvidia wants to move to opensource i read?
Avatar
linus knows it
Avatar
Days after new open-source kernel driver code appeared in a Tegra code drop, NVIDIA happens today to have published signed firmware images for their RTX 30 'Ampere' graphics processors for finally allowing open-source driver support to proceed for these latest-generation GPUs.
13:19
i hope they finally go open source, bcs then i can decide between 2 manifactures
13:19
thats luxus xd
13:19
i will stay with amd for now
13:19
nvidia is more shady
13:20
they rly are greedy af
13:20
locking ur gpu not allowing u full freedom on what u can use
13:20
etc
Avatar
xd
13:20
amd also still uses closed source firmware
13:20
when do we finally get open hardware
13:20
good ones
13:20
high end
13:21
someone gift this to me
13:21
ty
Avatar
its around intel 12000k level right?=
13:22
quite impressive
13:22
they made this specifically cuz intel showed 12900
13:22
or smth
Avatar
considering intel uses like 1 gigawatt/h and has 10000ghz clock
Avatar
it uses the 3d cache stuff
13:22
xd
Avatar
i cannot believe intel sucks so hard
Avatar
i think my keyboard is dieying
Avatar
i just wonder if they hold back
Avatar
it registers double keypresses sometimes
13:23
sad
Avatar
they still at smth around as good as 7nm
13:23
its not dieying
13:23
it needs chemicals to remove oxidated copper
13:24
i tell ya
13:24
i spray this shit into my mouse and it works again
13:24
monkaS
Avatar
i always had trouble with logitech mice
Avatar
@Jupstar ✪
13:25
look the massive cache
13:25
it has
13:25
GIGACHAD
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
see, when u next revolt against spain, you also have good grenate
Avatar
Avatar
Ryozuki
@Jupstar ✪
yeah insane 😄
13:26
i still want to see a soc from amd or intel tho
13:26
x86 vs arm
13:26
BATTLE
Avatar
Avatar
Ryozuki
@Jupstar ✪
but here again, what happens if intel just does it
13:27
they should stop holding back
13:27
i want minecraft modded 60fps finally
Avatar
Avatar
Jupstar ✪
i want minecraft modded 60fps finally
lol i play mc modded at 120 with shaders
13:27
144 without
13:27
the key is to use fabricmc with sodium
13:27
instead of forge
Avatar
xd
Avatar
and minecraft 1.18
13:28
which uses java 117
13:28
17
13:28
which has a way better GC
13:28
parallel
Avatar
the mods i played didnt work on new versions last time i checked
Avatar
1.8 java rly is behind in perf
13:28
i tell you
Avatar
in fact they had to use java 8
13:28
yeah
13:28
i know
Avatar
well with modern mc u can play mods at high fps
13:28
i did it
Avatar
i believe u
13:28
but fact is i play with friends and everyone has the mod he likes
13:28
but i also didnt look last 3 years
Avatar
maybe it changed xd
13:29
but i also want mc modded 240 fps
Avatar
lots of mods are updated and available for fabric too
Avatar
so im still fine with intel hurry up
Avatar
well i think if u buy this cpu
13:29
5800x3d
13:29
u can do it
Avatar
xd
13:29
its max like 10% faster than intel isnt it
13:29
i've seen benchmarks, and it was around same level
13:30
just at much lower energy
13:30
hmm
13:30
it might not be better
13:30
xd
Avatar
funny enough intel CPUs arent so overpriced anymore still overpriced, but much less than before ryzen
Avatar
the ks is the best
13:31
sadge
Avatar
but depends on the task
Avatar
the ks msrp is 739
13:31
amd one is 499€
13:31
thats a lot of value
13:31
per €
13:31
well change both for $
13:31
xd
Avatar
but the 129000 has 8 cores more doesnt it
13:32
8 energy saving cores
Avatar
16 (8P+8E)
13:32
ah ye
13:32
the 5800x3d has 8 real cores
Avatar
i am not really against these energy cores, but they'd need to put much more of them
13:33
like 24 or smth
13:33
for compiling source code xd
Avatar
also the 5800x3d uses half power
13:33
than ks
Avatar
yeah thats nice
13:34
13:34
when 5950x3d
Avatar
i wonder if amds cpu can scale up
13:35
next gen could be really good
13:35
at like 200w xd
Avatar
moores law
13:35
amd can
13:35
BASED
Avatar
but single threaded moores law is basically dead
Avatar
m1 has good perf single threaded, but sadly apple & you never know how good the chip really is xD
Avatar
apple does lot of stuff
13:36
specially with the ssd
13:36
they disabled like flushing or smth
13:36
xd
Avatar
yeah its in macos generally
13:37
but yeah unfair comparission if u dont use the same OS
Avatar
Chillerdragon: the blender game engine was removed on the blender 2.8 rls, they advised to move to other game engines and gave godot as an example https://www.blender.org/download/releases/2-80/
Avatar
@Patiga yo found anything?
Avatar
@Jupstar ✪ nothing more fun that a rust on linux thread on hackernews
14:50
and c developers justifying null terminated strings
Avatar
are strings not 0 terminated on rust?=
14:51
a String keeps track of the length
14:51
this allows for optimizations in some places btw
Avatar
yes quite possible
Avatar
In my previous blog post on pointer provenance, I have shown that not thinking carefully about pointers can lead to a compiler that is internally inconsistent: programs that are intended to...
Avatar
[quakenet] ChillerDragon BOT 2022-04-16 14:53:04Z
wait :fuckyousnail: is a thing?
Avatar
i need to take some time to read this blog series
14:53
Manually manage memory through raw pointers.
14:54
(but talks about c too ofc)
Avatar
i'd like to see a pure safe rust impl of the vulkan backend, best is with similar behavior
14:54
wanna see how well it would work out 😄
Avatar
@Jupstar ✪ i mean sometimes u may need to use unsafe
14:55
for addresses u know exist in a hardware
14:55
and stuff
14:55
the point of unsafe is to isolate those parts
Avatar
yes but i wanna see the difference in safe vs unsafe for "normal" software
Avatar
idk about implementations, i only know wrappers
14:56
Safe and rich Rust wrapper around the Vulkan API. Contribute to vulkano-rs/vulkano development by creating an account on GitHub.
Avatar
e.g. pure safe software can maybe get the few % boost by alolwing directly reading from kernel space
14:56
so maybe its worth it
14:57
honestly it loosk cool
Avatar
but its just a wrapper
Avatar
Plans to prevent all invalid API usages, even the most obscure ones. The purpose of Vulkano is not to simply let you draw a teapot, but to cover all possible usages of Vulkan and detect all the possible problems in order to write robust programs. Invalid API usage is prevented thanks to both compile-time checks and runtime checks.
14:57
but it tries to do this
14:58
Can handle synchronization on the GPU side for you (unless you choose do that yourself), as this aspect of Vulkan is both annoying to handle and error-prone. Dependencies between submissions are automatically detected, and semaphores are managed automatically. The behavior of the library can be customized thanks to unsafe trait implementations.
14:58
this sounds cool too
Avatar
yeah sounds interesting
14:59
so its not just a wrapper
Avatar
iirc vulkano is used by most higher level libraries in rust
14:59
that use vulkan
Avatar
but rather smth like opengl
Avatar
u can go wrong with opengl
14:59
theorically its better than that
14:59
BASED
Avatar
opengl is pretty robust
15:00
but yeah it offers better features inbuild
15:00
not required to use debug stuff from drivers or external tools
15:03
just wait for first tripple A game in rust
15:03
gonna be interesting
15:04
@Ryozuki when do you learn driver coding, so you can contribute to the new linux rust code
15:04
when they add it finally
15:04
for now t hey just testing stuff
15:05
Basic template for an out-of-tree Linux kernel module written in Rust. - GitHub - Rust-for-Linux/rust-out-of-tree-module: Basic template for an out-of-tree Linux kernel module written in Rust.
15:05
well
15:05
i may be able to use this
Avatar
lets see if it really attracts more ppl i've often read that rust makes it easier to join coding but i kinda doubt that tbh, logic errors in drivers sound harder since its very low level anyway 😄
Avatar
what do u think a ez module can do
15:06
The kernel that the module is built against needs to be Rust-enabled
15:06
ah rip
15:06
im 2 lazy to change my kernel
Avatar
xd
Avatar
@Jupstar ✪ imagine if c had first class support for docs
15:10
and u could go to 1 web with all the docs for all libraries
15:10
BASED
Avatar
u dont need docs for c
Avatar
Avatar
Jupstar ✪
u dont need docs for c
hisnail
gsaasstgqrawerthwrqarqahhrsafrhs 2
Avatar
i am not a c fan if you think that xD
15:12
without templates any language sucks xd
Avatar
well rust has generics
Avatar
yeah rust is pretty i think
15:13
only OOP sucks with rust
Avatar
actually
15:14
what would be the equivalent of a template?
Avatar
C is the supreme language of gods, stop insulting it
Avatar
is template more like a macro?
15:14
or just a fancy name for generics
Avatar
c is small af, so i kinda understand it survived so long
15:14
its very basic
Avatar
Avatar
Ryozuki
is template more like a macro?
c++ templates
Avatar
Avatar
Learath2
C is the supreme language of gods, stop insulting it
that would be HolyC sir
Avatar
Avatar
Jupstar ✪
c++ templates
yes we talking about that
Avatar
i use templates for all kind of shit tbh xD
Avatar
Avatar
Ryozuki
what would be the equivalent of a template?
I don't think rust really has what C++ would call templates, generics are the closest I guess but no sfinae means very different sort of behaviour and capability
Avatar
bcs they are way too powerful and overloaded and it kinda feels like they is more to learn about them than to learn from c++ itself xD (edited)
Avatar
i feel like with rust ast macros u can do pretty much anything templates can
15:16
+ generics
15:16
templates are turing complete
15:16
and so are rust macros
Avatar
@Ryozuki you can indeed, but macros in rust I feel are more cumbersome to work with
Avatar
only thing i still miss is some logic to completly replace C preprocessor makros
Avatar
Avatar
Learath2
@Ryozuki you can indeed, but macros in rust I feel are more cumbersome to work with
they are definitly a language on their own u have to learn
15:17
ppl want to make it easier
Avatar
i often come across still using them even if i try not to
Avatar
exporting/importing macros is weird, their namespacing is weird, proc_macros even weirder
15:18
But they are extremely powerful indeed, having the entire AST to work with is great
Avatar
Avatar
Learath2
exporting/importing macros is weird, their namespacing is weird, proc_macros even weirder
yeah the limitation with proc macros is they need to be in a separate crate
15:18
cuz some constraints
15:18
they need to be parsed before or smth
15:18
but honestly
15:18
proc macros are the most powerful
Avatar
Avatar
Jupstar ✪
@Patiga yo found anything?
sadly no, yesterday I tried to give up on webgl and just use webgpu and enable that testing-feature in my browser but without success, wasn't even able to load webgpu test sites happy
Avatar
dont ask me why, but long time ago i made a macro to turn a struct into a form
Avatar
xd
Avatar
Avatar
Patiga
sadly no, yesterday I tried to give up on webgl and just use webgpu and enable that testing-feature in my browser but without success, wasn't even able to load webgpu test sites happy
webgpu is defs cooler anyway
15:20
chrome and firefox might adopt it soon™️
15:20
but safari and opera are always 5 years behind
Avatar
whats the problem with webgl?
Avatar
yeah, though I'm not sure if I will have to wait 1 year or 3 for adoption :d
Avatar
and webgl2?
Avatar
at least with wgpu it doesn't allow me to use the normal linear color space
Avatar
only srgb
Avatar
Use a webkit 0day to achieve RCE and run the ddnet client directly
justatest 1
Avatar
Avatar
Learath2
Use a webkit 0day to achieve RCE and run the ddnet client directly
seems like chrome has lot of 0days lately
15:22
if u seen the news
15:22
BASED
Avatar
webgl is fine, but his rust library acts weird xd
Avatar
The shortcoming, tracked CVE-2022-0609, is described as a use-after-free vulnerability in the Animation component that, if successfully exploited, could lead to corruption of valid data and the execution of arbitrary code on affected systems.
15:22
oh
15:22
use after free
15:22
i wonder what rust would have done here
🦀 2
15:22
BASED
Avatar
panic
Avatar
chrome devs must be rly bad
15:23
cuz good c devs cant get errrors
Avatar
tru xd
Avatar
bannana: "just dont write bugs"
15:23
thanks sir
Avatar
u mean that russian dev?
Avatar
yeah
Avatar
sadly i cannot find his quote anymore xD
Avatar
our game code is trash
Avatar
but he was legend
Avatar
he said that a lot
Avatar
Avatar
Ryozuki
chrome devs must be rly bad
They use filthy C++, that's why it's broken all the time
Avatar
upgrade to C
Avatar
Impure
Avatar
but tbf, i have more crashes with firefox than chrome xD
Avatar
what do u do
Avatar
tbh i never really had a crash in chrome since a long time
Avatar
my firefox doesnt crash
Avatar
i dunno normally use it
15:25
but firefox is better for debugging
Avatar
get more ram
15:25
64gb should be enough
Avatar
128gb per tab
Avatar
i wish minecraft was made in rust
15:25
i would have so much fun modding it
15:26
sadly there isnt games made in rust with rust modding
15:26
they all use shit lua
15:26
which is a pain in the ass
15:26
to write
Avatar
xd
15:26
lua really sucks even more than java
Avatar
its like javascript but instead it uses stupid looking tables
Avatar
ngl using a compiled language that's not C for modding sounds like an absolute PITA
15:27
version breakings
15:27
every day
Avatar
Dynamic loading issues, function signature mess
Avatar
SAVE THE ABI!!!
Avatar
can suck, but we all learned one thing
15:28
c is a protocol
15:28
just use c as protocol
Avatar
to communicate between ur rust game and lib xD
Avatar
c is the lingua franca
15:28
it was put in place by the romans
15:28
inquisition
15:28
all hail #[repr(C)]
15:29
the holy C layout
Avatar
why arent there rust or c++ script languages
15:29
would be nice
Avatar
there is
15:29
a rusty script lang
Avatar
and they work completly?
15:29
i just want to start ddnet
Avatar
Rhai - An embedded scripting language for Rust. Contribute to rhaiscript/rhai development by creating an account on GitHub.
Avatar
no compile but bad performance
Avatar
if i made a game
15:29
i would use this
Avatar
would be fine for debugging and coding
Avatar
so its a script language?
Avatar
I think my favourite language for modding would probably have to be typescript
Avatar
but i want a compiler that acts like a interpreter
Avatar
its an embedded scripting lang
15:31
u can evend extend it
Avatar
mhh k
15:31
but anyway i want an on fly c++ interpreter
15:32
i am also ok with rust, but since rust has harder requirements i dunno if that can work out
Avatar
Avatar
Jupstar ✪
but anyway i want an on fly c++ interpreter
Might perform awfully for no apparent reason
Avatar
yes
Avatar
Avatar
Jupstar ✪
but anyway i want an on fly c++ interpreter
not a JIT?
Avatar
i only want it for fast debugging/rewrite of specific code
Avatar
Avatar
Jupstar ✪
i only want it for fast debugging/rewrite of specific code
This might be interesting actually
Avatar
Avatar
Ryozuki
not a JIT?
idc tbh, but i basically want it like javascript debugging in browsers
15:33
just change one line of code to test simple stuff
Avatar
in java some operations can be done
15:33
while the program is running
15:33
e.g if u dont add a function but modify it
15:33
u can apply that change
15:33
the power of the VM
Avatar
visual studio also has onfly recompiling but it was annoying when i tested it
15:34
like 5 years ago xd
Avatar
Avatar
Ryozuki
the power of the VM
Objective-C can do that and is not interpreted, big magic
Avatar
magick
15:34
magitech
Avatar
Dark magick even
15:34
I monkeypatched SDL while trying to figure out the crash we had on mac
Avatar
Avatar
Ryozuki
u can apply that change
i learnt this modding mc btw
15:35
@Learath2 i see how u can use rust for modding
15:35
quill, our work-in-progress plugin API. Quill plugins are written in Rust and compiled to WebAssembly. Feather runs them in a sandboxed WebAssembly VM.
Avatar
all closed source stuff should be done in java... ez to reverse engenering
Avatar
u compile it to webasm
15:35
A Minecraft server implementation in Rust. Contribute to feather-rs/feather development by creating an account on GitHub.
15:35
this minecraft clone does it
Avatar
wasm is cute, maybe I'd take it over ts for modding
Avatar
i mean with wasm ur not bound to a language
15:36
thats the best feature
Avatar
but wasm still has many drawbacks
15:37
its still not c
15:37
xd
Avatar
no but like pthreads and dynamic memory allocations stuff like that doesnt really work as you'd expect from a language like c
Avatar
Avatar
Jupstar ✪
its still not c
truly not c indeed
Avatar
they often use javascript code then
15:37
(at least emscripten does that)
15:38
from my understanding u need js to manipulate the dom (edited)
15:38
but thats it
15:38
but i think in the future that wont be the case
Avatar
Optionally, pass the linker flag -s PTHREAD_POOL_SIZE=<expression> to specify a predefined pool of web workers to populate at page preRun time before application main() is called. This is important because if the workers do not already exist then we may need to wait for the next browser event iteration for certain things, see below.
Avatar
WebAssembly cannot currently directly access the DOM; it can only call JavaScript, passing in integer and floating point primitive data types. Thus, to access any Web API, WebAssembly needs to call out to JavaScript, which then makes the Web API call.
Avatar
this is basically a dead lock everytime u wait for a thread
Avatar
Avatar
Jupstar ✪
Optionally, pass the linker flag -s PTHREAD_POOL_SIZE=<expression> to specify a predefined pool of web workers to populate at page preRun time before application main() is called. This is important because if the workers do not already exist then we may need to wait for the next browser event iteration for certain things, see below.
for pthreads
15:39
this is a huge drawback imo
15:39
no dynamic threads, or u cannot use threads on fly
15:40
have to make ur code run in a waiting state again
15:41
also wasm is still 32bit iirc
15:41
"Memory Growth Building with -sALLOW_MEMORY_GROWTH allows the total amount of memory used to change depending on the demands of the application. This is useful for apps that don’t know ahead of time how much they will need." this calls javascript code
15:41
else u need a pre defined memory pool
Avatar
there is wasm64
Avatar
yeah ok its not really a wasm limitation
15:43
more like browsers supporting it
Avatar
as always
Avatar
yeah
15:48
8d9b717 Skeith stepped down & Corpse joined as mod - murpii e9b0a99 Merge pull request #186 from murpii/patch-7 - edg-l
Avatar
xD will be fun to merge with my changes https://github.com/C0D3D3V/ddnet/blob/New_HUD/src/game/client/components/menus_settings_assets.cpp But will not be hard... I just cleand it up and created some enums
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/menus_settings_assets.cpp at New_HUD · C0D3D3V/ddnet
Avatar
Avatar
Jupstar ✪
wtf is wrong with the cloud in the bottom xD we really need some mappers to make better default themes
0 speed
Avatar
@Jupstar ✪ does ddnet do spatial sound?
15:59
xd
16:00
i think it only makes it go lower the further it is
Avatar
not in a 3d way if u mean that
Avatar
time to use openal
Avatar
xD why would we need surround sound
Avatar
yeah
16:01
i used openal, really ez to use
16:01
and works great
Avatar
idk it may be cool
Avatar
one day we will have 3d maps for teeworlds
Avatar
we can hear tee cries on ur right ear
Avatar
i think u cannot hear if a tee comes from above or below u
16:02
but last time i tested in ear headphones is long ago
Avatar
But our voices have coordinates isn't that converted to stereo ?
Avatar
stereo is the problem xd
Avatar
mh i haven't really looked into it yet, but 3d sound would be cool.
16:05
you would only have to look at how to convert the coordinates into the 3d space. You don't necessarily want to hear something behind you.
Avatar
just use a fixed pos
16:10
for the front back
Avatar
hemisphere would also be cool
16:11
but yes a flat plane would be a start
Avatar
we need to use hrtf on openal then
16:12
pin this message
16:12
and lets implement it
16:12
OpenAL Soft is a software implementation of the OpenAL 3D audio API. - openal-soft/hrtf.txt at master · kcat/openal-soft
Avatar
i mean it would be a cool enhancement
16:13
just nobody uses in ear headphones probably xD
16:13
dunno how well it can work on normal ones, but probs not that great
Avatar
chillerdragon BOT 2022-04-16 16:14:02Z
I use in ear phones for foot steps on Kobra 4
Avatar
xd
16:14
behind u bro
16:14
rush a
Avatar
chillerdragon BOT 2022-04-16 16:14:23Z
Axaxxaxa
16:14
Yes but pls add 3d sound and then voice chat
Avatar
xd
16:15
asmr ddnet
Avatar
I would work on the voice chat 😄
Avatar
chillerdragon BOT 2022-04-16 16:16:15Z
City servers will become full vr Chat
16:16
Wait how is this weird 3d vr game called
16:16
Yes VRChat
Avatar
openal soft is lgpl btw, that kinda sucks
Avatar
chillerdragon BOT 2022-04-16 16:17:12Z
As long as it’s lib nobody cares
16:17
Or do you wanna edit openal code
Avatar
no, but it increases APK size on android
Avatar
chillerdragon BOT 2022-04-16 16:17:45Z
Why
Avatar
bcs its all code, but u never need all code
16:18
u need to ship as shared object
16:18
instead of static linking
16:18
ok maybe we could ship it with MIT license
Avatar
chillerdragon BOT 2022-04-16 16:18:23Z
LICENSE.txt is 4gib in lgpl? Xd
Avatar
no
16:18
but openal-soft is huge
16:18
bigger than ddnet itself probs
16:18
the executable
Avatar
chillerdragon BOT 2022-04-16 16:19:11Z
Wait so static linking is not fine on lgpl?
Avatar
i think it is under some cercumstances
16:19
not too much into all this license stuff
Avatar
chillerdragon BOT 2022-04-16 16:19:34Z
Wetefek
Avatar
e.g. since we fully open source it might be fine
Avatar
chillerdragon BOT 2022-04-16 16:19:40Z
Lawyer jupstar
16:20
But then KRX client also has to go open source :D
Avatar
no
16:20
they just also need to ship openal as shared lib
16:20
its not related to ddnet's license
16:20
its really just about adding 4MBytes to android apk xd
16:20
its not ciritical
16:20
its just me thinking, just ignore
Avatar
chillerdragon BOT 2022-04-16 16:20:58Z
Who used android anyways
Avatar
yeah
16:21
thats why u should ignore xd
Avatar
"LGPL License Lesser General Public License Version 3GNU LGPL (Lesser General Public License) covers around 10% of the free software projects and is mainly used by libraries. It is also a copyleft license and modified versions must be released under the same license. But contrary to GPL, programs linked against a library under the LGPL do not need to be released under the LGPL and can be kept proprietary. It must be linked dynamically, not statically as the user must keep the ability to update the library independently from the program. LGPL is used in many libraries, including the C libraries and ffmpeg."
Avatar
chillerdragon BOT 2022-04-16 16:21:35Z
F F M P E G
16:21
ffmpog
Avatar
Non-judgmental guidance on choosing a license for your open source project
Avatar
chillerdragon BOT 2022-04-16 16:22:05Z
tldr legal is bae
Avatar
wikipedia only mentions it for prorietery software: " For proprietary software, code under the LGPL is usually used in the form of a shared library, so that there is a clear separation between the proprietary and LGPL components. "
16:22
sounds like its fine for open source xd
Avatar
chillerdragon BOT 2022-04-16 16:22:56Z
KRX is not open source
Avatar
Avatar
Jupstar ✪
sounds like its fine for open source xd
I think so too
Avatar
chillerdragon BOT 2022-04-16 16:23:20Z
And baumalein
Avatar
xd
16:23
stop posting these
Avatar
chillerdragon BOT 2022-04-16 16:23:35Z
@heinrich pls not ban
Avatar
or murpi bans u away
Avatar
chillerdragon BOT 2022-04-16 16:23:42Z
SOS
16:24
chillerbot-zx is also closed source -.-
Avatar
our licence is also very soft, I think we only have a License and copyright notice condition, nothing else. I think we can import stuff with lgpl
Avatar
chillerdragon BOT 2022-04-16 16:24:34Z
F-DDRace is too. -.-
Avatar
yeah for me its about static linking, i dunno, can we static link GPL stuff?
16:24
probably yes
16:24
but not sure
Avatar
chillerdragon BOT 2022-04-16 16:24:49Z
Yes
16:24
Legal advice
Avatar
lmao humans in 200 years laugh about our weird license shit
Avatar
chillerdragon BOT 2022-04-16 16:25:38Z
Sure
Avatar
i bet atleast 40% of all software that isnt open source does something illegal without even noticinig anyway xD
Avatar
chillerdragon BOT 2022-04-16 16:26:06Z
Also opennsource
Avatar
not like i never just copied stackoverflow code
16:26
without credits xd
Avatar
chillerdragon BOT 2022-04-16 16:26:26Z
Heck there are projects that have 2 licenses and let you pick one
16:26
I like to credit stackoverflow ppl tbh
16:26
Do it quite often
Avatar
it depends really
16:27
if its a 2liner idc
16:27
except its really clever
Avatar
chillerdragon BOT 2022-04-16 16:27:34Z
Wow there are some 2liners you can’t really claim copy right on
Avatar
i also couldnt even tell if its allowed to talk about rights with such small code
16:27
its like naming ur company apple and sue ppl that say apple xd
Avatar
chillerdragon BOT 2022-04-16 16:28:04Z
If I look up how to get size of array in js I don’t email the dude on SO and ask for permissions
Avatar
xD
16:28
but 2 lines or 3 lines
16:28
or maybe 4
16:28
or 5
16:28
ok lets say 6
16:28
u know
16:28
thats the problem
Avatar
chillerdragon BOT 2022-04-16 16:28:55Z
If it’s unique
Avatar
im a code comunist, all code should be open
Avatar
chillerdragon BOT 2022-04-16 16:29:27Z
I’d say most 6liners are unique unless its common boilerplate code
Avatar
Avatar
Jupstar ✪
yeah for me its about static linking, i dunno, can we static link GPL stuff?
there is a complete guide for when its allowed and how to static link for I think all gnu licenses. https://copyleft.org/guide/ But as far as I know, we do not want to modify the lib so we can include it how we want and add the license note in our license, that the lib has that license... (edited)
Avatar
now convince deen to add more libs
16:31
hardest part
Avatar
chillerdragon BOT 2022-04-16 16:31:36Z
Define open
Avatar
i also want boost
16:31
bcs c++ standard is so slow
16:32
best copyright is no copyright
16:32
cc0
Avatar
lets add boost
Avatar
or is cc0 the "biggest" copyright
Avatar
chillerdragon BOT 2022-04-16 16:32:35Z
Open as in free to do whatever you want with the code and also use it in closed project. Or open as in being forced to disclose edits
Avatar
+100 mb
Avatar
bcs it gives you the right to copy 😄
Avatar
Avatar
Ryozuki
+100 mb
static link ofc
16:33
there is no reason not to static link c++ libs either
16:33
if there is a bug there, then u doomed anyway
16:33
@Jupstar ✪ dynamic links for security libs is good i think
16:34
openssl
Avatar
yeah generally its not bad, but i also dont see a huge gain in it
16:34
would u update openssl on an old ddnet client?
Avatar
@Jupstar ✪ nice, so u agree with rust defaults
Avatar
or just use a new one
Avatar
rust statically links by default
Avatar
yes
16:34
thats good
Avatar
open source stuff has wildcard to static link form me xd
Avatar
@Jupstar ✪ but distro maintainers are in love with dynamic linking
16:35
they would marry it
Avatar
i swear would love to see a static linked debian as much as possible
16:35
ofc it wont work everywhere
16:35
but alot
16:35
imagine static linking your GPU driver
16:35
would be amazing
16:36
static link the kernel
16:36
into the app
Avatar
xd
16:36
teeworlds os
Avatar
@Jupstar ✪ there should be a easily tunable universal minikernel (edited)
16:36
where u run ur only app
16:36
max perf
16:37
multitasking is for nobos
Avatar
xd
Avatar
/sbin/init -c "./DDNet"
Avatar
linux kernel is bloated
16:37
greenthing
Avatar
true
16:37
drop old hardware
Avatar
keep old hardware
Avatar
nono we gotta support ur hobby hardware architecture from the 60s
Avatar
where is the sweetspot is the real question
Avatar
just stop making new hardware
Avatar
drop x86
Avatar
when does it make sense to drop old hardware, bcs more energy consumption, or more work on drivers etc
Avatar
Avatar
Tater
just stop making new hardware
most ecological solution ^^
Avatar
invent something more efficient
16:38
with today knowledge
16:39
and no limitations from the past bagage
Avatar
Avatar
Chairn
most ecological solution ^^
here too, where is the sweet spot
16:39
its so hard to think about it
Avatar
Avatar
Jupstar ✪
when does it make sense to drop old hardware, bcs more energy consumption, or more work on drivers etc
which energy consumption?
Avatar
if u need to run your computer longer
16:39
to run the same task
16:39
its more energy
Avatar
doesn't matter
Avatar
lmao
Avatar
cost of fabrication of a new one is way more important than running the computer
Avatar
yes but its not just running
16:40
its also about maintaining etc
Avatar
rust and c are the most energy efficient
Avatar
tru xd
16:40
except u do a gentoo like rust distro
16:40
then RIP
16:41
but science advancement also depends A LOT by the resources used
16:42
so its really hard to say what is the best way to handle this
16:42
probs to not waste energy for stuff like bitcoin xd
16:43
or does buying GPUs result in more fabs and we need more fabs in 2 years and bitcoin had a sense after all
16:43
hard to say 😉
Avatar

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
  • [ ] 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-addresssanitizer--u...
Avatar
Avatar
c0d3d3v
xD will be fun to merge with my changes https://github.com/C0D3D3V/ddnet/blob/New_HUD/src/game/client/components/menus_settings_assets.cpp But will not be hard... I just cleand it up and created some enums
you have a custom hud? nice. i see how far i get with the soundpack asset
Avatar
Avatar
cauldron
you have a custom hud? nice. i see how far i get with the soundpack asset
no its the new upcoming hud for ddnet, by me and Ravie
Avatar
Avatar
c0d3d3v
no its the new upcoming hud for ddnet, by me and Ravie
ahh, wow, didn't know that
Avatar
482d454 fix gun sounds for blockworlds servers - NouaaTW 2825ceb Merge #4990 - bors[bot]
Avatar
9ee3534 Add null backend - ChillerDragon d4dcaa2 Merge #4989 - bors[bot]
Avatar
@Jupstar ✪ just saw this and I suppose that should work for me https://github.com/ruffle-rs/ruffle/pull/6710
Exported 793 message(s)