i didnt take my mood stabilizers today and im being extremely erratic and moodswingy. could this be a withdrawal thing? weird enough depakote didnt actually do anything to stabilize my mood when i was taking them.
>replacing character with string in-place in std::string takes 400ms
>appending to new std::ostringstream instead of replacing in-place takes 100ms
>same thing but with .append() calls to new string takes 15ms
i guess replacing in-place does some iterator invaidation and inserting and probably lots of memory gets copies there
the 100-15ms difference between streams and just a string is because of virtual calls, probably. didnt know it could make this much of a difference
maybe also streams have locales and a bunch of other weird checking stuff so i guess that can be a thing too. i should try making a padded string type this time
@Pawlicker@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) many such cases. i live somewhere in korea but i wont tell anything further than that (you still have a 1 in 50 million chance of finding me)
@Pawlicker@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) i mean its the same context. libsoftiktok was famous on twitter or something for being a terf and obviously she had dogshit opsec and got doxed and journos visited her relatives or some shit. either way anyone around here knows basic opsec so i was excluding such things
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) not sure. you need to have something going around there. i dont even think browsing Kiwi Farms of all things with your bare IP will be something law enforcement will actually care about most of the times unless you're someone like Libs of TikTok. so you get what i mean.
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) depends on the country, but the rule of thumb is the reason they're searching your drive in the first place is because you're a person of interest. if you're just a boring guy with a boring programming job they're not interested in you at all let alone actually actively monitor your internet. most of the paranoia privacy freaks have is redundant unless they're a terrorist (actual terrorists have worse opsec than them most of the times). law enforcement can bend the laws in amazing ways to fuck you over if they're really determined so you probably already know the answer.
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) rust iterators confuse and scare me (c++ brainrot) (i love ranges just being normal objects) (that also induces template hell but whatever)
@cream queen glad you have hobbies. cant bring myself to watch TV shows and stuff :\ i only program random crap to kill time and watch spiders sometimes
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 )@e9ab4887@buy robux today :ROBUX: boost::asio seems pretty useful (its the only boost library i use) but other than that yeah, theyre pretty redundant. but i feel like a lot of the STL headers have the same problem as boost too since a lot of them actually come from boost in the first place and shit like <algorithm> and <numeric> are almost entirely template-based. it's hard to get out of this template jail im in (i would like some tips).
Rust basically mandates this with traits (concepts but :sane:) but that's another story i guess.
https://media.clubcyberia.co/pleroma/f90d933f208ae15b41a92089ee3f0df2b103438c91d5412a94cfb619b8c38c49.png
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 )@e9ab4887@buy robux today :ROBUX: maybe i should change the way i program in c++, 20 seconds for one translation unit is a norm for me because i use a million header-only template libraries. i should probably employ better practices (especially if i want to be employed lmao)
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 )@buy robux today :ROBUX: rust takes the approach of mpsc (something like Go channels) to share resources between threads and the capture clause is something like std::thread t{[<move fucking everything>](args...) {}}; so everything in the thread is local, it sort of forces you a paradigm
@310725c8@:ihavenomouth: it's a dillema with the big I Internet I guess. we can't just decentralize everything that's impossible. we need some kind of pivot of trust but the current ISPs don't seem to be trustworthy enough to be them... but is there a better pivot of trust? not sure. Tor, I2P, Lokinet, and Yggdrasil all still run on top of existing big-I-Internet infrastructure.
@:ihavenomouth: man its been a whole year since the dropkiwifarms thing was going on and they still havent got all their services stabilized. kinda terrifying tbh.
@Fe₂🦀₃⋅H₂🦀 ( 7,600 / 28,000 ) i knew this guy who ran a glasses shop and he was so busy he needed to have a watch constantly remind him of whatever he needed to do. unless you're as busy as him you probably dont need it (especially if its an apple watch)
@ ahem :nigganerd: for a more technical explanation (to the best of my knowledge) windows 11 needs a CPU with SSE4.1 which none of the 32bit CPUs support so it will refuse to boot at all
I just want to close my eyes immersed in the scent of summer, is it selfish to just want to relive memories? Is it selfish to just want to look at the blue sky?
Neither Nietzche nor Freud wrote about how to fill this hole. Is this really all right? Can I go on living like this?
Are you just going to tell me 'only you can answer that' or something?
@Nekobit im thinking of writing a templated DSL for writing HTML directly in C++ and basically reinventing Go’s html/template for {{stuff}} in my template files. i know basically nothing about CGI so im using boost::beast for serving my generated html i guess its super overkill in general but i really have nothing better to do:pleaddeath:
heres a parser for the file config i wrote yesterday, it works like this:
a: b
c: d
---
{{contents}}
becomes
conf["a"] = "b"
conf["c"] = "d"
https://media.clubcyberia.co/pleroma/acb2bfd83545b5153ba9f0a88a7fb134ed1912f11457965266ca158a6ef3d168.png
@Nekobit thanks that looks brilliant why havent i thought of using printf style stuff for simple templating.
btw do you think my code looks okay? havent actually touched code in a while so i fear getting rusty
Notes by loopy pedestrian✍🏿 | export