|
it is a common misconception that async means 'fire and forget'
|
# ? Sep 12, 2023 06:52 |
|
|
# ? May 26, 2024 13:13 |
|
y'all got shaggered for an entire page because he doesnt like a word
|
# ? Sep 12, 2023 07:16 |
|
true but i think we're all bored and posting
|
# ? Sep 12, 2023 07:27 |
|
tef posted:true but i think we're all bored and posting we sure are tef. we sure are.
|
# ? Sep 12, 2023 07:28 |
|
like i hate the term 'dependency injection' but you dont hear me whining about it for pages on end
|
# ? Sep 12, 2023 07:29 |
|
or do you?
|
# ? Sep 12, 2023 07:29 |
|
naw i dont care about programming that much lol
|
# ? Sep 12, 2023 07:30 |
|
I got a dependency you can inject
|
# ? Sep 12, 2023 07:39 |
|
shaggar was wrong ? ?
|
# ? Sep 12, 2023 07:56 |
|
Shaggar was Shaggar
|
# ? Sep 12, 2023 08:00 |
|
Athas posted:shaggar was wrong ? ? litterally
|
# ? Sep 12, 2023 08:45 |
|
yes hello io runtime? id like to report a bug, somehow the async discussion blocked the entire thread
|
# ? Sep 12, 2023 10:23 |
|
please flush any pending posts on the topic
|
# ? Sep 12, 2023 10:40 |
|
so how about that GIL? can’t believe they are going to try and remove it, no way this succeeds…
|
# ? Sep 12, 2023 11:26 |
|
tef posted:it is a common misconception that async means 'fire and forget' 'fire and anxiously hope'
|
# ? Sep 12, 2023 14:27 |
|
tef posted:it is a common misconception that async means 'fire and forget' I wish fire and forget was easier
|
# ? Sep 12, 2023 14:56 |
|
Dijkstracula posted:do you mean “what should i do if it’s time for pthread_exit() but I still have outstanding operations to complete”? you’re still free to block on pending events’s state changes, epoll-style, in a case like that I suppose _exit() and let Ritchie clean it up
|
# ? Sep 12, 2023 14:58 |
|
Subjunctive posted:_exit() and let Ritchie clean it up I mean those iops probably weren't worth completing anyway
|
# ? Sep 12, 2023 15:01 |
|
Dijkstracula posted:I mean those iops probably weren't worth completing anyway if they were important they would have finished already
|
# ? Sep 12, 2023 15:03 |
|
Subjunctive posted:_exit() and let Ritchie clean it up how to find a loop in a linked list: free each item in turn, and if there's a segfault, there's a loop
|
# ? Sep 12, 2023 15:06 |
Vanadium posted:yes hello io runtime? id like to report a bug, somehow the async discussion blocked the entire thread
|
|
# ? Sep 12, 2023 18:16 |
|
tef posted:how to find a loop in a linked list: free each item in turn, and if there's a segfault, there's a loop this reminds me of an old job where they were touting a formally-verified memory allocator, but in order to make the automated proof go through free() had to be a no-op
|
# ? Sep 12, 2023 22:11 |
|
Dijkstracula posted:this reminds me of an old job where they were touting a formally-verified memory allocator, but in order to make the automated proof go through free() had to be a no-op it’s a memory allocator, not a memory deallocator CLOSED WONTFIX
|
# ? Sep 12, 2023 22:48 |
|
Vanadium posted:yes hello io runtime? id like to report a bug, somehow the async discussion blocked the entire thread
|
# ? Sep 13, 2023 08:44 |
|
time to clunk the fids
|
# ? Sep 15, 2023 03:44 |
|
prisoner of waffles posted:time to clunk the fids I'm here to chew bubblegum and clunk fids ... and I'm all outta bubblegum
|
# ? Sep 15, 2023 03:48 |
|
born to queue async is a gently caress 差不多 clunk all fids 2038 i am trash code 2,147,483,647 blocked threads
|
# ? Sep 16, 2023 19:05 |
|
so last time I was trying to make crime committer, I’ve been using nothing but standard js (except for a library that helps me deal with times/dates etc), and I’ve been running up against a wall, because I have a lot of buttons that exist dynamically, and keeping track of what buttons i’ve made and their dom references etc is a bit unwieldy, especially because i’m just i’m figuring out poo poo as I go would it be worthwhile investigating some kind of ui framework like react or vue or something else? will it make it easier for me to manage and keep track of ui elements? or is my problem that I just don’t know what the gently caress I am doing regardless and no frame work will compensate for not knowing poo poo
|
# ? Sep 20, 2023 09:13 |
|
If the problem is having to manually create and delete a lot of elements, a framework like react may make that entirely unnecessary so you don't have to "keep track" of them at all which can be simpler (at the cost of potentially making other things more complicated) It's also possible that you're somehow making things unnecessarily complicated or something though mystes fucked around with this message at 09:30 on Sep 20, 2023 |
# ? Sep 20, 2023 09:26 |
|
mystes posted:
this is entirely possible and also extremely likely it feels like the game logic is intimately mixed with the UI functionality, and I am not sure how to avoid this lol when I’ve made things in unreal engine, the game logic is easy because it’s trivial to make unique objects that by themselves and can communicate with each other but in js I don’t know if you can avoid managing everything from the main loop. which of course the only way I know how to do this is run the main loop and check for changes everywhere on every single frame update, update every ui element every frame. I suspect there has to be a better way
|
# ? Sep 20, 2023 10:53 |
|
Oh if it's a game and there's a main loop I'm not sure a framework like react would work
mystes fucked around with this message at 14:10 on Sep 20, 2023 |
# ? Sep 20, 2023 14:07 |
|
jdk21 is out there, includes "Virtual Threads" if we want to block the thread some more https://openjdk.org/projects/jdk/21/ https://openjdk.org/jeps/444
|
# ? Sep 20, 2023 21:25 |
|
mystes posted:Oh if it's a game and there's a main loop I'm not sure a framework like react would work it’s not an action game, it’s an idle/clicker so theoretically it doesn’t need many resources or to perform stuff every loop, I just update every UI element every frame because I have the coding skills of sundried dogshit
|
# ? Sep 20, 2023 21:38 |
|
Sweeper posted:jdk21 is out there, includes "Virtual Threads" if we want to block the thread some more it’s good, op as usual java gets things later than other languages and takes the time to learn from their mistakes, instead of just rushing to implement the latest fad
|
# ? Sep 20, 2023 22:08 |
|
echinopsis posted:it’s not an action game, it’s an idle/clicker so theoretically it doesn’t need many resources or to perform stuff every loop, I just update every UI element every frame because I have the coding skills of sundried dogshit If you're making a really trivial game like minesweeper where mostly stuff doesn't change until you click somewhere, except maybe for a number counting up once per second, then react might be ok. The more you're trying to do stuff that doesn't fit entirely within the react model (except maybe within individual parts that internally do stuff outside of the react model but can be turned into a component that works within the react model), the less useful react is.
|
# ? Sep 20, 2023 22:30 |
|
well, what I mean, is that there are values in the UI elements that need to be updated. https://crimecommitter.com in some ways I actually like the aesthetic, but I am definitely not competent lol
|
# ? Sep 20, 2023 22:33 |
|
I mean, maybe you’re right, maybe I need to work out a better method to implement it in pure js rather than add frameworks
|
# ? Sep 20, 2023 22:37 |
|
echinopsis posted:well, what I mean, is that there are values in the UI elements that need to be updated. mystes fucked around with this message at 22:41 on Sep 20, 2023 |
# ? Sep 20, 2023 22:38 |
|
Soricidus posted:as usual java gets things later than other languages and takes the time to learn from their mistakes, instead of just rushing to implement the latest fad i kid, java is awesome and java 21 brings a LOT of really cool features
|
# ? Sep 20, 2023 22:38 |
|
|
# ? May 26, 2024 13:13 |
|
echinopsis posted:I mean, maybe you’re right, maybe I need to work out a better method to implement it in pure js rather than add frameworks svelte’s reactive properties might be what you want. tracks all the dependencies and makes things update for you
|
# ? Sep 20, 2023 22:47 |