Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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 2024-02-07 00:00:00Z and 2024-02-08 00:00:00Z
Avatar
should I use underscores or hyphens in crates.io crate names for libtw2: libtw2-gamenet-ddnet vs libtw2_gamenet_ddnet (https://github.com/heinrich5991/libtw2/issues/53#issuecomment-1930996865)
It would be helpful to me if you could upload the gamenet crates to crates.io to ease including them (not urgent, because there is a way to specify git dependencies in Cargo.toml, but would be nice...
Avatar
seems to be inconsistent across existing crates so i would just go with whatever you're using internally
Avatar
chillerdragon BOT 2024-02-07 00:19:24Z
I am trying to reach 0 open issues by ChillerDragon on ddnet/ddnet
Replying to @Jupstar ✪ Chillerdragon ah nice, you also editor coder now
00:22
Trolling on gh is underrated. I feel I’m the only one who uses memes in prs. Even full time employees do that in Vulkan repos.
Replying to @Jupstar ✪ MilkeeyCat why u troll on gh bro. no spam no mail
00:26
Use the same style you used for libtw2 Huffman release. So if one wants to install something from libtw2 it’s always the same schema. Also matching the python package
Replying to @heinrich5991 should I use underscores or hyphens in crates.io crate names for libtw2:…
Avatar
Consider adding a license to know what others can and can't do with the code.
Avatar
ws-client BOT 2024-02-07 04:41:02Z
Improvement of #7873 Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configuration options Written a unit test (es...
04:41
<ChillerDragon> ah you mean gfx_fullscreen and gfx_borderless got it
08:09
<ChillerDragon> finally got some kind of try and error ui setup
Avatar
Ahgg i thought youre a terminal enjoyers
08:10
unfriends
Avatar
ws-client BOT 2024-02-07 08:11:16Z
<ChillerDragon> the clip contains a terminal no? I have been procrastinating to learn tw ui code for too long already i need to learn how to align fakin buttons in the editor
Avatar
Nice, what did u use?
08:20
Or is that just a very fast closing and starting client on ur super fast NASA pc
Avatar
ws-client BOT 2024-02-07 08:20:16Z
<ChillerDragon> no dis ma laptop
08:20
<ChillerDragon> i use dlopen
Avatar
Pro
08:21
<ChillerDragon> here da code if some1 cares
Avatar
That looks surprisingly easy
Avatar
ws-client BOT 2024-02-07 08:34:54Z
<ChillerDragon> Yes
08:35
<ChillerDragon> come to C @Jupstar ✪
Avatar
omg is it live DDNet UI editing ?!
Avatar
ws-client BOT 2024-02-07 08:36:50Z
<ChillerDragon> yes
Avatar
is it public or something ?
Avatar
Avatar
ws-client
<ChillerDragon> come to C @Jupstar ✪
Sadly I'm not as genius as you
Avatar
ws-client BOT 2024-02-07 08:43:22Z
<ChillerDragon> @Vexar here u go https://github.com/ChillerDragon/ddnet_hotui
Snippets of code of me playing with ddnet CUIRects - GitHub - ChillerDragon/ddnet_hotui: Snippets of code of me playing with ddnet CUIRects
Avatar
Avatar
ws-client
<ChillerDragon> @Vexar here u go https://github.com/ChillerDragon/ddnet_hotui
❤️ ❤️ ❤️
Avatar
Run scripts/fix_style.py --dry-run src/engine/client/client.cpp:3894:50: error: code should be clang-formatted [-Wclang-format-violations] Graphics()->GetCurrentVideoMode(s_aMode, Index);
08:54
is it because of that little space at end of line right ?
Avatar
ws-client BOT 2024-02-07 08:54:39Z
<ChillerDragon> scripts/fix_style.py && git diff
08:54
<ChillerDragon> tells you what changed
Avatar
scripts/fix_style.py && git diff Found no clang-format 10
Avatar
gotta install it
Avatar
oh got it
Avatar
ws-client BOT 2024-02-07 09:03:43Z
<ChillerDragon> what distro are you on @Vexar ?
Avatar
I noticed that it's not for windows
Avatar
ws-client BOT 2024-02-07 09:04:07Z
<ChillerDragon> oh windows user
Avatar
Avatar
ws-client
<ChillerDragon> what distro are you on @Vexar ?
windows 11 64 bit's distro 😄
Avatar
ws-client BOT 2024-02-07 09:04:17Z
<ChillerDragon> then my ui hotreloading does not work for you either i guess
Avatar
yeah i should test that on my ubuntu
Avatar
Avatar
ws-client
<ChillerDragon> @Vexar here u go https://github.com/ChillerDragon/ddnet_hotui
bro can you rename it to ddnet_hui ?
Avatar
ws-client BOT 2024-02-07 09:26:38Z
<ChillerDragon> -.-
Avatar
dont ask why kek
Avatar
ws-client BOT 2024-02-07 09:27:33Z
<ChillerDragon> are you hungarian?
Avatar
ws-client BOT 2024-02-07 09:27:38Z
<ChillerDragon> ah wait no
09:27
<ChillerDragon> russian
09:27
<ChillerDragon> confused langs
09:27
<ChillerDragon> thats DICK in russian
09:27
<ChillerDragon> axaxaxax
09:27
<ChillerDragon> idi nahui
🥺 1
gigachad 1
Avatar
ws-client BOT 2024-02-07 09:28:08Z
<ChillerDragon> csgo russian 101
09:28
<ChillerDragon> in hungarian its kuki
09:28
<ChillerDragon> pronounced "cookie"
09:28
<ChillerDragon> also troll
Avatar
chillerspammer
10:31
Sus
Avatar
good morning
Avatar
Guten Morgen
Avatar
one of those days
Avatar
U on phone?
Avatar
not personally
Avatar
go to mobile discord and answer to a message, dont release the animation but instead go left and right a few times, the arrow will spin :o
Avatar
probably them knowing the animation for replying is pretty cool and when people check it out in detail they wanna let people know "we're watching you"
Avatar
Avatar
Ewan
android?
yea but its probably the same on ios
Avatar
i cant get it to work
11:06
unless i misunderstood
Avatar
Just swipe left and right on a message 3 times without releasing
Avatar
cant do it
Avatar
Apple sux
Avatar
ws-client BOT 2024-02-07 11:25:26Z
<ChillerDragon> @Ryozuki you closed this as completed but linked no pr how do i use the tele tracer? https://github.com/ddnet/ddnet/issues/2415
Can we have a command to be able to see a connection between teleport in and out. Can we draw a small trace lines from any instance of TELEFROM to TELETO and CHECKPOINT to CHECKTO if their numbers ...
Avatar
so funny
Avatar
ws-client BOT 2024-02-07 11:26:38Z
<ChillerDragon> ?
Avatar
its from the merge to discussions
Avatar
ws-client BOT 2024-02-07 11:26:54Z
<ChillerDragon> how should i know that?
11:27
<ChillerDragon> because its locked?
Avatar
and before closing a issue had no distinction from done or closed
Avatar
ws-client BOT 2024-02-07 11:27:09Z
<ChillerDragon> is the discussion still open?
11:27
im busy
Avatar
ws-client BOT 2024-02-07 11:27:21Z
<ChillerDragon> so the feature does not exist?
11:28
<ChillerDragon> So from what i understood i think https://github.com/ddnet/ddnet/issues/2415 should be reopend
Can we have a command to be able to see a connection between teleport in and out. Can we draw a small trace lines from any instance of TELEFROM to TELETO and CHECKPOINT to CHECKTO if their numbers ...
Avatar
Clicking and hovering tiles is nice imo. That is why I added a feature already that involves clicking tiles. And I am planning to add more. Maybe even some that hover tiles. Now this issue is a proposal of adding a central piece of code that gets called on mouse move. And iterates on all tiles that are currently under the cursor. So from all groups and layers. And then it calls a callback with those tiles. And now a bunch of editor components can register their callback there. Pseudo code ...
12:07
love you guys
Avatar
love you too fred no homo
Avatar
Avatar
TsFreddie
love you guys
owo
Avatar
Avatar
TsFreddie
love you guys
owo
Avatar
what happened to my custom things in ddnet??? after the update my custom cursor in menu is not showing nor is my custom hammer sound?
Avatar
Avatar
Nooback
what happened to my custom things in ddnet??? after the update my custom cursor in menu is not showing nor is my custom hammer sound?
Did you put then into config directory?
Avatar
Avatar
Nooback
what happened to my custom things in ddnet??? after the update my custom cursor in menu is not showing nor is my custom hammer sound?
Did you replace files? (edited)
Avatar
I replaced the sound and the cursor is in \AppData\Roaming\Teeworlds\assets
Avatar
Did you select them ingame? (edited)
Avatar
Then they should still be there
Avatar
the cursor is default and the sound is back to default
Avatar
yo for all
Avatar
Look if the files are still in appdata
Avatar
the cursor is still there
Avatar
who know where my kog?
Avatar
Then select it in game
Avatar
Avatar
Muuurr
who know where my kog?
Next update adds it back
13:20
Then u can have community tabs
Avatar
like kog was removed?
Avatar
Avatar
Jupstar ✪
Then select it in game
select it in game?
Avatar
Avatar
Nooback
select it in game?
In settings assets
13:21
In client
Avatar
Avatar
Muuurr
like kog was removed?
Check the filters on the right
Avatar
should it be in extras?
Avatar
Avatar
Teero
Check the filters on the right
i try but nothing
Avatar
Avatar
Muuurr
like kog was removed?
Look at communities on the right side
Avatar
Avatar
Nooback
should it be in extras?
In appdata is there a ddnet Dir too?
Avatar
Avatar
Muuurr
i try but nothing
if you are on steam use the nightly build beta
Avatar
Avatar
Jupstar ✪
In appdata is there a ddnet Dir too?
only teeworlds
Avatar
Avatar
wook
if you are on steam use the nightly build beta
yep i used steam
Avatar
Avatar
Nooback
I replaced the sound and the cursor is in \AppData\Roaming\Teeworlds\assets
Then this should be correct. There should be a game directory
13:23
Inside that u put ur cursor game png
Avatar
Avatar
Muuurr
yep i used steam
right click ddnet in library -> properties -> betas -> select nightly
Avatar
Avatar
Jupstar ✪
Then this should be correct. There should be a game directory
I'm confused it should not be in assets?
Avatar
Avatar
wook
right click ddnet in library -> properties -> betas -> select nightly
love u
Avatar
Avatar
Muuurr
love u
13:25
then favorite the kog community and it will show up on top again
Avatar
Avatar
Nooback
I'm confused it should not be in assets?
Inside assets there is game. But do it that way: go on client-> settings-> assets and press on game then press open directory
Avatar
yes I'm there
Avatar
Then the client opens the correct directory for you
Avatar
GUI cursor must not be in assets
Avatar
so that has changed
Avatar
No
Avatar
Example SQL Table: Map Name Time Timestamp Stronghold cauldron 2203.8 2022-11-19 22:17:01 Actually like the race table in the ddnet.sqlite dump. Columns explained:
  • Map: Name of the map.
  • Name: Name of the player.
  • Time: Time spent on the server until disconnect.
  • Timestamp: Timestamp of disconnect from server.
Assuming you always reconnect to the server when the map changes. With this data you could see how much time you've spent on a certai...
Avatar
then where do I need to put it if not assets? before it was in assets and it worked
Avatar
It always has been in config Dir directly
Avatar
Avatar
Nooback
then where do I need to put it if not assets? before it was in assets and it worked
That's not true
13:27
Then u overwritten the one in data Dir or smth
13:27
Just put in appdata/teeworlss
13:27
Directly
Avatar
yeah that doesn't work either
13:28
or do I need to restart game for it to work?
Avatar
Yes
13:28
For GUI cursor yes
Avatar
what about the sound?
Avatar
Sound must be appdata/teeworlds/audio
13:29
Also restart
Avatar
that may be the problem
13:30
there is no audio file
13:33
audio file is in steam folder if I move it into appdata it won't get replaced again?
Avatar
Yes
Avatar
It's actually seriously annoying that you can't have templates outside headers. How do larger modern C++ projects even handle this? Just mix implementation and interface?
Avatar
Yes
14:26
One of the many reasons templates suck xd
14:26
U can also predefine which template types u support
14:26
Then u can't implement them in a cpp file
Avatar
Okay, so the options are still the same as they were since C++03, excellent
Avatar
ill keep my mouth shut
14:28
owo
Avatar
Avatar
Learath2
Okay, so the options are still the same as they were since C++03, excellent
Use modules
Avatar
Avatar
Ryozuki
ill keep my mouth shut
You should, made Voxel disappear
monkalaugh 1
Avatar
Avatar
Jupstar ✪
Use modules
That still mixes the implementation and the interface
14:30
What a nasty language, the more of it's supposed good features you use the less elegant it becomes
Avatar
Avatar
Learath2
That still mixes the implementation and the interface
How it should be
14:31
As*
Avatar
Avatar
Jupstar ✪
How it should be
I respectfully disagree but refrain from debating as you get way too heated
Avatar
Writing more code sucks
14:32
We see us again after u written a big project
Avatar
No comment
Avatar
I have the feeling you heating up right now lol
Avatar
No comment
Avatar
Avatar
Learath2
What a nasty language, the more of it's supposed good features you use the less elegant it becomes
ferrisBased
14:33
just found out these ferris emotes
Avatar
Avatar
Ryozuki
ferrisBased
Rust suffers from the same issue of mixing implementation and interface
Avatar
Avatar
Learath2
Rust suffers from the same issue of mixing implementation and interface
i like it
14:34
c++ headers is double work
14:34
also mismatched sigs give bad compile errors
Avatar
Avatar
Ryozuki
i like it
I don't, I won't say my reasons though
Avatar
i wanna try more zig
14:34
can be a good lang to take ideas for edlang
Avatar
Avatar
Ryozuki
also mismatched sigs give bad compile errors
This is a compiler shortcoming, due to the way C/C++ standards define TUs
Avatar
@Learath2 tell me a feature u wanna see in edlang
14:36
that is not C style strings
Avatar
Avatar
Ryozuki
@Learath2 tell me a feature u wanna see in edlang
No global variables
Avatar
and if possible reasonably easy xD
Avatar
That includes memory allocators
Avatar
Avatar
Jupstar ✪
No global variables
kek
Avatar
Avatar
Ryozuki
and if possible reasonably easy xD
std::future troll
Avatar
Hm, reasonably easy kinda shoots down most of what I would want from a language, but I guess Result/Option would be nice to have
Avatar
Avatar
Learath2
Hm, reasonably easy kinda shoots down most of what I would want from a language, but I guess Result/Option would be nice to have
ok tell me it anyway
Avatar
Forced hierarchy
Avatar
result option is a thing for sure because i will add ADTs
Avatar
Avatar
Ryozuki
ok tell me it anyway
Coroutines
Avatar
Breaking it requires unsafe
14:38
Const eval
Avatar
Avatar
Learath2
Coroutines
what does it entail
14:38
tokio? xD
14:38
a runtime in the lang?
14:38
like go?
Avatar
No, keep it simple, let the user handle that part. You just need to provide a pretty interface through which one can suspend and resume execution
Avatar
well im too in the start to do coroutines
Avatar
Avatar
Ryozuki
also mismatched sigs give bad compile errors
erorrs in question are just function does not match definition
Avatar
i dont even have allocation or strings
Avatar
Avatar
Ewan
erorrs in question are just function does not match definition
pretty straightforward
14:40
declaration
14:40
aame
Avatar
r u drunk?
Avatar
Hm, how about first class functions instead?
Avatar
function definition signature doesn’t match its declaration.
Avatar
Avatar
Ewan
erorrs in question are just function does not match definition
idk man, for some reason i always feel c++ errors are so verbose its insane
14:41
i say this from experience
14:41
my experience
14:41
specially coding in llvm
Avatar
Avatar
Ryozuki
idk man, for some reason i always feel c++ errors are so verbose its insane
If you wanna see truely insane errors, you need templates
Avatar
yea u just gotta get used to them
Avatar
rust errors are so nicely formatted
Avatar
it sux when u go to another compiler and it gives u a different error for the same thing tho
14:42
msvc will phrase things outlandishly differently
14:42
and then ur like oohhhh that’s what it meant xd
Avatar
vk/core.hpp:26:14: note: candidate: ‘template<class R> requires (range<R>) && (is_convertible_v<typename std::__detail::__iter_traits_impl<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type, std::indirectly_readable_traits<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type> >::__iter_traits<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type, std::indirectly_readable_traits<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type> >::value_type, const char*>) bool lvkge::vk::CCore::CheckValidationLayers(R)’ 26 | bool CheckValidationLayers(R WantedLayers) Look at this mess, if only it went back to the original declaration and returned that to me this would be readable
Avatar
Avatar
Learath2
If you wanna see truely insane errors, you need templates
these are the real ones
Avatar
Avatar
Learath2
vk/core.hpp:26:14: note: candidate: ‘template<class R> requires (range<R>) && (is_convertible_v<typename std::__detail::__iter_traits_impl<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type, std::indirectly_readable_traits<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type> >::__iter_traits<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type, std::indirectly_readable_traits<typename std::remove_cvref<decltype(std::ranges::__cust_access::__begin((declval<_Container&>)()))>::type> >::value_type, const char*>) bool lvkge::vk::CCore::CheckValidationLayers(R)’ 26 | bool CheckValidationLayers(R WantedLayers) Look at this mess, if only it went back to the original declaration and returned that to me this would be readable
xdd
Avatar
or when it tells you T is ineligible and you actually have to find T across 20 lines of error output
Avatar
this is clearly a rust win and u cant tell me otherwise
Avatar
template <std::ranges::range R> requires(std::is_convertible_v<std::ranges::range_value_t<R>, const char *>) like this is the real template declaration
Avatar
ez lex tbh
Avatar
It just had to remember the pre-evaluation version and return that
Avatar
cpp is what happens in my brain.
Avatar
@Learath2 does the standard force to use __ for names?
14:44
even if namespaced?
Avatar
reserved keywords
Avatar
std::__detail
14:44
why __
14:45
it polutes names so much
Avatar
I don't even remember anymore
Avatar
std::ranges::__cust_access
Avatar
implementation details
14:45
not api
Avatar
it doesnt matter
14:45
oh wait
14:45
i guess u cant hide it nicely like rust pub, pub(crate) ?
Avatar
Back in my day __ guaranteed that no one would overwrite it, but you aren't even supposed to put stuff in the std:: namespace
Avatar
Avatar
Ryozuki
i guess u cant hide it nicely like rust pub, pub(crate) ?
not really
14:46
just private members and headers for private api
Avatar
Avatar
Ryozuki
i guess u cant hide it nicely like rust pub, pub(crate) ?
I guess it's that yeah, just used as a way to scare people so they don't use the STL internals 😄
Avatar
Avatar
Ewan
just private members and headers for private api
yes, thats exactly what pub and pub(crate) do!!
14:47
xd
Avatar
congratulations
Avatar
thanks
14:48
next time dont say "not really"
14:48
if u dont know rust
Avatar
not really was in agreement with you
Avatar
i guess you cant __ not really
Avatar
ok double negation sux
14:48
its confusing xd
Avatar
english L
Avatar
Avatar
Avolicious
If you add fokkonaut & blockwords can you mention me? Then we can remove them from the KoG announced serverlist 😄
Blockworlds is there. fokko not yet
Avatar
Avatar
Teero
Blockworlds is there. fokko not yet
they already contacted me 😄 (edited)
Avatar
Avatar
Learath2
No, keep it simple, let the user handle that part. You just need to provide a pretty interface through which one can suspend and resume execution
via state machine transform?
Avatar
Avatar
heinrich5991
via state machine transform?
yes, not many other ways to handle this anyway
Avatar
@Learath2 did u search for jobs yet
Avatar
Avatar
Ryozuki
@Learath2 did u search for jobs yet
I've been keeping an eye out but honestly nothing really seems to excite me
Avatar
come to barcelona and i can recommend u to a rust job maybe
16:35
kek
Avatar
let's found a startup
Avatar
auto AvailableExtensions = UTIL_VK_ENUMERATE_HELPER([](auto c, auto d){ return vkEnumerateInstanceExtensionProperties(nullptr, c, d); }, VkExtensionProperties); I think there is something in this line that offends every single one of you
Avatar
no
Avatar
I guess it lacks nasty nested namespaces everywhere
Avatar
i am happy you code vk
Avatar
Avatar
Jupstar ✪
let's found a startup
when
Avatar
Avatar
Ryozuki
when
i dunno, today?
Avatar
Avatar
Jupstar ✪
no
Reconsider your stance, that's a macro that wraps a template
Avatar
the world of startsups is more about charisma than technical skill to secure funding
Avatar
Avatar
Learath2
Reconsider your stance, that's a macro that wraps a template
mh ok, c macros suck, true
Avatar
we all socially inept
Avatar
but the fact it's vulkan overweights it (edited)
Avatar
Avatar
Ryozuki
we all socially inept
I can pretend to not be completely inept for 30 minutes at a time, up to 4 times a day
Avatar
Avatar
Learath2
auto AvailableExtensions = UTIL_VK_ENUMERATE_HELPER([](auto c, auto d){ return vkEnumerateInstanceExtensionProperties(nullptr, c, d); }, VkExtensionProperties); I think there is something in this line that offends every single one of you
i utterly dislike lambdas syntax in c++
16:38
or closures
16:38
whathever u call that
Avatar
Avatar
Avolicious
they already contacted me 😄 (edited)
kk
Avatar
also auto
Avatar
Avatar
Ryozuki
the world of startsups is more about charisma than technical skill to secure funding
well startups are certainly slaves work. but if u have good skill it's probably the only way to work with ppl on a equal level
Avatar
i think using auto therei s bad practice
Avatar
in companies u always low hierarchy slave
16:39
😬 (edited)
Avatar
it should be used only on left side of assigments of a cast
16:39
imho
Avatar
Avatar
Ryozuki
it should be used only on left side of assigments of a cast
I did not want to write std::vector<VkExtensionProperties> 😛
Avatar
Avatar
Ryozuki
i utterly dislike lambdas syntax in c++
it's the opposite of rust always xd
16:39
explicit binds vs implicit
Avatar
Oh, I could just write std::vector
Avatar
Avatar
Ryozuki
i think using auto therei s bad practice
auto is like let in 90% of all cases
16:40
or do u often type the type of the var in rust?
Avatar
I'm a type enjoyer but C++ types get insane :/
Avatar
Avatar
Jupstar ✪
auto is like let in 90% of all cases
yeah but the auto in the closure hides the arg type
16:40
so idk the arg type
16:41
but i guess ur right idk
Avatar
Avatar
Learath2
I'm a type enjoyer but C++ types get insane :/
yeah, and somehow they name things extra large
Avatar
Avatar
Ryozuki
yeah but the auto in the closure hides the arg type
don't rust closures also hide this?
Avatar
well true, in rust u'd not need to write auto in this case
16:41
it would simply know the type from usage of the closure
Avatar
hello i got a bump buffer c++ hold my beer: std::pmr::monotonic_buffer_resource
Avatar
Avatar
Learath2
auto AvailableExtensions = UTIL_VK_ENUMERATE_HELPER([](auto c, auto d){ return vkEnumerateInstanceExtensionProperties(nullptr, c, d); }, VkExtensionProperties); I think there is something in this line that offends every single one of you
auto kinda implies that this closure is a template? what happens if u pass two different typed arguments to the same parameter?
16:42
does it create 2 different lambdas?
16:43
or does it simply not compile
Avatar
if it doesnt compile => it's basically like rust if it compiles => wtf xD
Avatar
@Learath2 i want a anime where the MC codes in rust and the evil is a c++ coder
16:46
and the c++ coder uses windows with visual studio
16:46
and promotoes closed source
16:46
it would be a best seller
16:46
the MC uses programming socks
16:47
justatest
Avatar
Avatar
Jupstar ✪
auto kinda implies that this closure is a template? what happens if u pass two different typed arguments to the same parameter?
It compiles, it'll create a new lambda
Avatar
Avatar
Learath2
It compiles, it'll create a new lambda
interesting 😄 (edited)
Avatar
tis time to pick a physical device
Avatar
Avatar
Learath2
tis time to pick a physical device
since when r u even coding vk
16:51
that's beyond epic
Avatar
Avatar
Jupstar ✪
since when r u even coding vk
I started a couple days ago, I was messing around with C++20, and thought what better way to learn modern C++ than to also learn vk with it 😄
Avatar
do u use the cpp headers?
16:52
i guess not (edited)
Avatar
I'm just using the C API
Avatar
vk has a C++ API?
Avatar
It wraps the C one iirc, but yeah
Avatar
it also has a rust api a.k.a ash
Avatar
uh, nice
16:55
official?
Avatar
no
16:55
the cpp headers might be official tho
16:55
i mean what does official mean
Avatar
The cpp ones are official indeed, from Khronos 😄
Avatar
the spec exists only for c api
16:57
vulkan is royalty free, everyone can create their own headers and call it official xddd
Avatar
I'm veeery roughly following vulkan-tutorial.com
Avatar
"namespace vk::raii There is an additional header named vulkan_raii.hpp generated. That header holds raii-compliant wrapper classes for the handle types. That is, for e.g. the handle type VkInstance, there's a raii-compliant wrapper vk::raii::Instance. Please have a look at the samples using those classes in the directory RAII_Samples."
16:57
this sounds interesating
16:57
i do that too in ddpg, esp for memory management it's nice
16:58
ez
Avatar
Avatar
Jupstar ✪
VkInstanceCreateInfo CreateInfo{ .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO, .pApplicationInfo = &AppInfo, .enabledLayerCount = static_cast<uint32_t>(WantedLayers.size()), .ppEnabledLayerNames = WantedLayers.size() ? WantedLayers.data() : nullptr, .enabledExtensionCount = GLFWRequiredExtensionCount, .ppEnabledExtensionNames = GLFWRequiredExtensions, }; metoo
Avatar
ez
Avatar
C had designated initializers since 99 wechat_cool_guy
Avatar
elitest but the . before the name kinda sucks xd
17:01
does it collide with other language features else?
Avatar
Yes, otherwise it'd be an assigment expression iirc
Avatar
ah i c
17:02
well in rust it's nicer, since u can also leave the assignment away, if the name of the local var matches the one of the struct member but in rust u always have to type the name of the struct, that's smth that annoys me too
17:03
typescript wins in this case xd
Avatar
An open source Python 3 (CPython >= 3.11.0) interpreter written in Rust 🐍 😱 🤘
19:52
this allows pyson on wasm
Avatar
do they have a story for C extension modules written for cpython?
Avatar
it doesnt strive to be compatible with cpython
19:53
Full Python 3 environment entirely in Rust (not CPython bindings), with a clean implementation and no compatiblity hacks.
Avatar
most of python's usefulness stems from its wide array of third-party libraries
19:54
like numpy etc.
Avatar
idk tbh
19:54
i just shared the project
19:54
xD
19:54
i never used it
Avatar
^^
19:54
pypy got a bigger boost when numpy compatibility was done IIRC
Avatar
nice, pysoron interpreter to wasm to have pysthoun plugin system inside wasm inside rust
Avatar
Instead of preventing the client from quitting/restarting while a warning is shown in the menus, add warnings that should be shown after quitting/restarting (i.e. the warning when the config could not be saved) to a separate list and show these warnings using an OS message box after the client has been closed. Otherwise, the client is prevented from closing if a warning is shown without being automatically hidden, which causes the client to hang indefinitely in the CI. The message boxes fo...
22:41
272c809 Show warnings after client close instead of preventing quitting - Robyt3 1e012af Merge pull request #7945 from Robyt3/Client-Config-Error-Popup - def-
Avatar
python on wasm on js? gotta be slower than BF kek
Exported 378 message(s)