« first day (4416 days earlier)      last day (431 days later) » 
00:00 - 21:0021:00 - 00:00

9:01 PM
LDQ: What format should I use for the library module databases?
I'm not sure JSON is the best idea for them q:
 
im not planning to ultimately use json for rol either, json is just easy to read/debug
go with msgpack
 
nah, msgpack is weird
 
i love it
why do u think its weird
 
lemme say that better: msgpack is cool, but this is not a good use-case for it
 
why not
its compact
 
9:07 PM
Use OISB iobin serialization format 1
 
use what
 
A custom binary serialization format we developed for internal communication between the inside and outside of a sandbox :p
 
who's this "we", kemosabe
 
Actually use serialization format 2 it's better
@Ginger Me and AviFS
 
lol
 
9:10 PM
CMP: should i implement a spring based physics engine from scratch or try to make on on top of box2d
 
0
A: Sandbox for Proposed Challenges

EzioMercerTrue random (based on wind speed) code-golf Scientist want to create true random number generator. He already wrote a program which gives him a wind speed based on date and location on Earth and multiply this value to -1 pseudo randomly. Help him to generate a true random number in given range Y...

 
Ooh I remember playing around with that
 
not working
 
jank go brr
 
9:12 PM
nvm i had to add objects
 
@Ginger yep
as it says at the bottom, built in 1:30 at 2 AM so :P
 
@hyper-neutrino I used to code a lot of physics sims in p5 js
 
so what do yall think of my q
 
@mathcat Found it!
@Seggan This is 2D physics, right?
 
yep
 
9:22 PM
I should use CSV for the database
 
I'm pretty sure the latter is easier, but physics engines are fun
 
true, but this is for a "real" application, and i dont wanna waste time
 
oh, then definitely the latter
 
^
 
Feb 28 at 14:56, by Ginger
don't reinvent the wheel!
 
9:26 PM
suppose I were to disregard my own advice and make a custom file format for library databases...
*chuckles* delightfully devilish, Ginger!
 
@Ginger it wouldnt be that hard tbh
its not like ure making a physics engine
 
yeah I guess
oh my god I just had the best idea
I'm going to use 🐇📕 as the "magic bytes"
 
@hyper-neutrino The gravity's too powerful, it turned my softbody rectangle into a pancake lol
 
@Ginger lol
whats the 📕 for
hrm monospace does not work with emoji
 
@Seggan because it's a library file
 
9:35 PM
ah
 
@RydwolfPrograms lmao
 
9:52 PM
okay, I have a format now
 
what is it
(also protobuf?)
 
 
1 hour later…
11:20 PM
3
A: Best of CGCC 2023 - Now Accepting Nominations!

pxegerRookie of the Year - Challenges Repost of 2022, 2021, 2020, 2019, 2018. For the best challenge written by someone who has not written a challenge prior to 2023. SEDE query (modified from 2022) Aira Thunberg nomination by Seggan Aira has done something extremely rare for a new user. As I write thi...

Thanks for this @Seggan
unfortunately, Aira my friend decided to quit the platform as I was sending her these questions (she is really happy) and she merged her account with mine.
I would still thank you for appreciating her as a woman and her being an angel in my life to help me cope with autism
 
11:46 PM
@AitzazImtiaz the questions were yours?
 
@Seggan they were mine, she was posting them for me
 
ah
 
but still, she did have hunger for knowledge
we both wrote a diary of such challenges
 
if you could somehow confirm that id change the nomination
 
see the questions in my profile
those are exact same challenges
 
11:48 PM
ah yes i see
 
I don't want to be nominated personally but thanks for appreciating her, that makes me happy :)
I guess she used to say here that the questions do not belong to her
 
@AitzazImtiaz you have no choice lol
 
@Seggan sorry but I was really emotional for Aira tbh and thats why I just wanted to thank you
thank you so much :,)
you really are unaware of sacrifices she did to maintain my emotional well-being
well, I prefer Sophie Germain over her anyways :D
 
@RydwolfPrograms i think for something especially functional the patterns that make those useful should be better done some other way, but in and of itself it's not a bad idea to have truthiness
though you also get cases where committing to one behavior might be confusing
or rather, you make choices that you don't necessarily want to make
 
IMO it just feels elegant to be able to leave off a == 0 or .is_empty() or .len() == 0 or whatever
 
11:56 PM
like, you could make all optionals truthy if non-empty and falsy if empty
but you might also want optionals of truthy-able types to also be falsy if the value contained is falsy
though i think the first choice does win pretty hard there and you could also just not make a choice
come to think of it that's actually a pretty good opportunity to just have a function for contains-truthy
which could even generalize to other containers as kind of an any analogue
yeah honestly there probably aren't any real cases where you create any weird contradictions
 
There's certainly cases where multiple ways of defining truthiness make sense, but I think we're already kind of used to that from dynamically typed languages, so I think as long as it's consistent within the language and the alternative options are easily available it would be fine
 
Slightly cursed idea: empty containers (lists, strings, etc) are falsey, but 0 is truthy (b/c it's not an empty container)
 
00:00 - 21:0021:00 - 00:00

« first day (4416 days earlier)      last day (431 days later) »