T
TheIbraDev
Hello there cutie
P
PureAmbrosia
A wild Spiro appeared!
A
akavenge
long time no see young man
T
TheIbraDev
Happy react 19!
T
TheIbraDev
sorry don’t ban me
P
PureAmbrosia
You can watch people LinkedIn?
T
TheIbraDev
Hahaha YES
R
Rei Ayanami
hi how your professional life going?
P
PureAmbrosia
LUL
T
TheIbraDev
How are you allowed to stream to Linkedin with these opinions on React? It’s one big react fest
T
TheIbraDev
Thought they banned dissent
T
TheIbraDev
You have their moms on call. unbannable
I
Imperious
heys back!!!!
I
Imperious
hes*
T
TheIbraDev
nice
I
Imperious
Hope the job outlook is positive
I
Imperious
your evil sister is being to busy it's annoying me
T
TheIbraDev
nice argument bro
B
black_arrow88ehhh
wsp man
I
Imperious
seems legit I don't wanna think lol
T
TheIbraDev
I get alot of flame in Svelte community for saying that this is a bad thing after svelte5 LUL
E
elcob32
I wish I was able to be as dumb as everyone else. That just never worked for me.
T
TheIbraDev
Being dumb is a blessing in modern webdev LUL @elcob32
M
Moldy Apple
oh wow its Spiro
E
elcob32
I still write all my own JS. No frameworks no typescript, just straight ECMA. Keeps what I am distributing to clients as minimum as possible
T
TheIbraDev
Complicating complicated stuff is actually hard. SurprisedPikachu
E
elcob32
He hit the wall so hard he bounced off at 180 degrees
J
JoDim___
look who’s back, are we bullying react?
I
Imperious
Once again youtube gets no love were ignored lol
S
Marco Siedentopf
yoo
S
Marco Siedentopf
it's been a while
S
Marco Siedentopf
we should just put react into the browser spec.
T
TheIbraDev
Not anymore :p
J
JoDim___
100% true and I can confirm because it’s exactly what happening past month to me
T
TheIbraDev
This is what i felt for a svelte project at work lmao
T
TheIbraDev
svelte 4 got good, and then svelte 5 ruined everything for no pragmatic gain at all.
J
JoDim___
yep
S
Marco Siedentopf
Polymer 1+2 and BowerJS were right all the time
S
Marco Siedentopf
I'm actually serious
S
Marco Siedentopf
the polymer+bower part was serious...
S
SneakyFoxtrot
You're Canadian?
S
SneakyFoxtrot
Unfollowed
E
elcob32
Probably Crocodile
E
elcob32
I wouldn't recommend it though
T
TheIbraDev
I’m Norwegian. We don’t talk to people irl
T
TheIbraDev
Just use a library lmao
T
TheIbraDev
Got a drugproblem? here take this other drug
S
Marco Siedentopf
polymer for being html-centric, and Bower for being browser centric, web native - from loading behavior to modularization. Polymer could even be used tool-less.
T
TheIbraDev
harder drug
S
Marco Siedentopf
now i want the signals proposal to go through, and https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Declarative-Custom-Elements-Strawman.md
S
Marco Siedentopf
the declarative custom elements spec is what i REALLY can't live without
J
JoDim___
lol, where is my library in htmx to make a button?
T
TheIbraDev
kill not murder : DDD
V
Vampire Frog
N
V
Vampire Frog
wheel reinvention clown show
Z
zcizzorhandz
DOM has never been slow it's a lie
Z
zcizzorhandz
VDOM is just code to make people feel clever it doesn't actually solve any problems with the DOM
J
JoDim___
“we will kill all the good developers so we will be the good developers”
Z
zcizzorhandz
To be honest there are no problems with the DOM. Rendering problems are due to the CSSOM which nobody ever speaks about.
V
Vampire Frog
I don't think anyone claimed that vanilla js and css is slow, unless they meant slow development
S
Marco Siedentopf
i can just double down ^
S
Marco Siedentopf
declaratively augmenting html is the way to go imo
S
Marco Siedentopf
you'd like it, too, i believe
V
Vampire Frog
gotcha
T
TheIbraDev
wait what
T
TheIbraDev
no way
T
TheIbraDev
I’m just shooketh that it’s this bad
V
Vampire Frog
yeah the SSR stuff is kinda wacky, reactive js is useful for admin sections, not front page stuff
T
TheIbraDev
React
S
Marco Siedentopf
yoo, it swallows links. i was sharing a link to the WebComponents working group proposals
T
TheIbraDev
like crud stuff?
V
Vampire Frog
admins don't need the pages to be indexed
V
Vampire Frog
yeah crud stuff
V
Vampire Frog
have you tried interviewing coders?
A
Ahnzh
sharing it here then, i guess: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/Declarative-Custom-Elements-Strawman.md
V
Vampire Frog
no I mean interviewing for your streams
V
Vampire Frog
maybe a call in show like jimbob does
V
Vampire Frog
yeah I'm up, but you gotta pick a topic
S
Marco Siedentopf
the instantiation part is the important one. you instantiate the template before upgrading, enabling you to essentially do basic server side rendering for web components.
S
Marco Siedentopf
you could limit your js parts to interactivity
S
Marco Siedentopf
right. you can do both together
S
Marco Siedentopf
it's synergetic
V
Vampire Frog
maybe it's good to do a random call in show to begin with and when viewership rises you can do structured interviews
T
TravisVroman
How is the game going?
T
TravisVroman
And how long till you rewrite it in C? LUL
T
TravisVroman
Also strange, my first message didn't show
T
TheIbraDev
I struggle talking english but it would be cool to listen to
T
TravisVroman
Yeah no worries at all. Take your time
T
TravisVroman
Stubborn as an old goat maybe LUL
T
TheIbraDev
Sounds like this Travis guy should be followed
T
TravisVroman
We could do that.
V
Vampire Frog
okay calm down
D
DrLethal_The_Dragon
Ever hear of one of the first indie games?
T
TravisVroman
@TheIbraDev <3 much appreciated
T
TravisVroman
Thank you Spiro, I appreciate that
D
DrLethal_The_Dragon
It's called funny pizza land
D
DrLethal_The_Dragon
It was made back in 2002
D
DrLethal_The_Dragon
I'm not lol
D
DrLethal_The_Dragon
It's just a cool piece of history
T
TravisVroman
As long as it's not that "pizza dude" game... lol
D
DrLethal_The_Dragon
Pizza dude game?
T
TravisVroman
I C what you have done there
T
TravisVroman
LUL
T
TravisVroman
Oh snap
E
elcob32
That looks like real code
T
TravisVroman
handles ftw
D
DrLethal_The_Dragon
Performance issue... From looking at code?
T
TheIbraDev
I stayed awake just for this rant. It’s 01:40am now GriddyGoose
T
TravisVroman
It's a thing of beauty
T
TheIbraDev
cya bedtime
S
Marco Siedentopf
also, Karl released his Odin book.
V
Vampire Frog
doesn't look thread safe
T
TheIbraDev
before i go, that code smells nice
D
DrLethal_The_Dragon
I'm going to try and learn coding. So I can become a game dev
T
TravisVroman
I don't think that's an issue unless you're using webworkers or something
T
TravisVroman
Although I wouldn't use statics
V
Vampire Frog
well if it's wasm you're probably not using multiple threas anyway
T
TravisVroman
Well I guess for wasm it's not as big a deal, but statics also get in the way of things like hot-reloading. Thread safety too, but we've already said that's not an issue here
V
Vampire Frog
why didn't you use structs for npcs
V
Vampire Frog
I don't know if with web workers you have access to the same wasm
T
TravisVroman
Then again though, I dole out all my memory from a custom allocator, so that's another reason I don't do it (because game state for me exists in a BigAss Block of Memory™
T
TravisVroman
All you gotta do now is change back to vim :)
V
Vampire Frog
sounds like early optimization
T
TravisVroman
Yeah. I would just say minimally to pipe it through a macro that you could then replace with calls to a custom allocator if that ever becomes an issue so you don't have to change your entire codebase
V
Vampire Frog
you're overlapping two arguments, one is avoiding the struct overhead and the other one is dynamic allocation
T
TravisVroman
Yes, exactly
V
Vampire Frog
you can still have a big static array of structs
V
Vampire Frog
the benefit would be that it's more readable
S
Marco Siedentopf
React is a backend library
S
Marco Siedentopf
not a frontend library
T
TravisVroman
Depending on what you're doing though, SOA might be more beneficial than AOS for cache line reasons
V
Vampire Frog
I also noticed that you don't use pointers
T
TravisVroman
Yeah, that's the idea - only pull into cache what you need
T
TravisVroman
Lol not trademark of copyright, LUL
T
TravisVroman
*or
T
TravisVroman
lmao it's not fully my idea tho
T
TravisVroman
lol I know what you mean tho
T
TravisVroman
Looking good!
T
TravisVroman
Wait, are you putting _all_ resources into the same array?
T
TravisVroman
Like, all resource types?
T
TravisVroman
oh ok, perfect
T
TravisVroman
I would keep the resource arrays separated
T
TravisVroman
perfect
T
TravisVroman
So I see you're returning 0 - does that mean that none of your resources can have a "handle id" of 0? Meaning the first element of the array never gets used?
T
TravisVroman
Ok, so I would change that. I use something called "invalid id", which for a u32 is really just like MAX_U32. That way the 0 index is actually valid.
T
TravisVroman
Yeah we are, I typed that before you explained it
T
TravisVroman
Yep, because the liklihood that you'd actually have max uint32 is basically zero, so it's an easy way to check if something isn't valid.
T
TravisVroman
yep
T
TravisVroman
I've never even come anywhere close
T
TravisVroman
And if you do, step it up to 64 bit. You'll really never hit that
R
rosesandbesos
Hi
S
Marco Siedentopf
why did you move back to C BTW?
T
TravisVroman
Yeah a string lib is easy to write tho
T
TravisVroman
Feel free to steal any of my functions if you need them
T
TravisVroman
Look for kstring
T
TravisVroman
I have a lot of UTF handling in there too
T
TravisVroman
Admittedly it only handles up to 4-byte UTF-8 characters, so not 5- or 6- byte, but so far that hasn't been an issue
M
Moldy Apple
whoaaa frog man here too
T
TravisVroman
I do have some more work to do to get rid of some things like sprintf, but it's pretty far along
S
Marco Siedentopf
luckily, C is becoming a functional language with the introduction of lambda functions.
T
TravisVroman
Yeah that is weird
T
TravisVroman
I'm cheating there and using vsprintf
T
TravisVroman
But I could be convinced to roll my own
T
TravisVroman
It's been on my list of todos anyway
T
TravisVroman
along with sscanf
T
TravisVroman
etc
T
TravisVroman
I'd actually just implement "vsnprintf" in place in the "string_format" function actually
T
TravisVroman
Eliminating the variadic function bit might be kinda difficult tho - I'd need to look into replacing stdarg
T
TravisVroman
The bit that allows you to do "..." in the function
T
TravisVroman
yep
T
TravisVroman
That's really the reason I haven't done it yet
T
TravisVroman
Admittedly I haven't looked into doing that _at all_ though
T
TravisVroman
How hard could it be? LUL
T
TravisVroman
That's the easy part, but that's gotta be using stdarg somewhere
T
TravisVroman
hence va_list, etc.
T
TravisVroman
yuuuup
T
TravisVroman
I'm not sure, would need to look that up
T
TravisVroman
I think it's implementation specific
T
TravisVroman
If it works, let me know
T
TravisVroman
Honestly for f32_to_string I'd probably just implement it without something like vsnprintf
T
TravisVroman
Yeah you could
T
TravisVroman
Just use the bits directly
T
TravisVroman
Just when I thought my refactor list was shrinking, you've made me want to eliminate all the standard lib stuff from my codebase LUL
T
TravisVroman
Nah it's pretty straightforward logically
T
TravisVroman
This is where comments come in handy LUL
T
TravisVroman
percent escape basically
T
TravisVroman
The standard lib isn't bad, it's just huge
T
TravisVroman
That's technically an extension
T
TravisVroman
you could just memset 0 if you need to
T
TravisVroman
I mean, if you null terminate the result it doesn't matter anyway
T
TravisVroman
That's where I'd change to just doing the conversion inline instead of using the "format"
T
TravisVroman
I would handle both 32 and 64 under "f", that's what the standard does
T
TravisVroman
Can you feature-detect that somehow?
T
TravisVroman
I'm adding these things to my todo list... lol
T
TravisVroman
./sigh... I'm adding these things to my todo list... lol
T
TravisVroman
They should be able to name it 愚かな船 if they want to
T
TravisVroman
Although, if you don't care about decoding it within wasm ever, you could just pass it through as as byte array
T
TravisVroman
If you don't need to encode/decode, then just use a byte array
B
badcop_
i dont know what we're talking about but you actually need 2 floats
T
TravisVroman
I'm talking about strings, for therecord
T
TravisVroman
@badcop_ o/
B
badcop_
just kidding floats should be removed from computers
B
badcop_
@TravisVroman rincsFiveth
T
TravisVroman
0.1 + 0.2 is my favourite float example of float bananery
B
badcop_
mine is -0.0
T
TravisVroman
@badcop_ Also a favourite of mine LUL
B
badcop_
woah bro's looking at the mantissas on stream
B
badcop_
was not ready for that