=== ANCHOR POEM ===
═════════════════════════════════════════════════════──────────────────────────────
The design is simple: Have an array of function pointers that need to be
assigned to a thread. Then, have a manager thread read through that array, and
for every non-zero value put it into a thread-specific array. Those threads
will read through their personal array and execute whichever function is
pointed to by the function pointer placed in their todo-list by the manager
function.
... I'm too stupid to make it happen though. Writing code is hard.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
=== SIMILARITY RANKED ===
--- #1 fediverse/3680 ---
════════════════════════════════════════════════════════───────────────────────────
it's probably a good idea to write pseudocode, then real code, instead of
starting with real code, and bugfixing something incomplete and more difficult
to reason with.
unless you write real code easier than pseudocode. idk do what works for you.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #2 fediverse/4718 ---
═══════════════════════════════════════════════════════════════────────────────────
the fact that you have to configure your router in order to do any sort of
web-hosting at all is one of the fundamental reasons why the internet looks so
lame and corporate.
if anyone could download a program and start a gallery style file-server with
all their wedding pictures then why the fuck would you need to upload them to
imgur?
alas, people are too dumb to open ports. plus, every router has a different UI
design, so it's not like you can write a guide. What happened to making things
as easy as possible for the user?
"technical limitations" are failures of imagination. we can do better than
gatekeeping.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════───────────────────┘
--- #3 fediverse/5689 ---
═══════════════════════════════════════════════════════════════════════────────────
why don't we make large arrays of vram that are slightly slower because
they're farther on the circuit-board from their host and their reception at
the processing section has to be gated such that they all enter to be
processed at once.
like that one infinite scrolling XKCD cartoon where the things move from one
screen to the other simultaneously assembly line style.
[fail safes. https://xkcd.com/2916/#xt=7&yt=35 ]
if we all feel like we're doing nothing, we'll all grow tired of it and decide
to do some prevailing. gosh I wish I wasn't so useless is code for
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════───────────┘
--- #4 fediverse/6437 ---
══════════════════════════════════════════════════════════════════════════════─────
if I was writing a programming language, I'd name it C just to fuck with people
(great, now others can decide how it's known)
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════════────┘
--- #5 messages/425 ---
═════════════════════════════════════════════════════──────────────────────────────
Here's an open source replacement idea for the "friendfinder" functionality in
Facebook:
Everyone has a secret code, and a public code. The secret code is kept locked
away on their hard drive and is probably automatically encrypted itself. The
public code is known by Facebook (or whichever mutual hosting platform people
want to use) but in order to connect with someone you send them a public
friend request and then they'll send you a second, auto-generated public code
which is their real username. Essentially obfuscating the connection process
by using a public middleman as an intermediary before exchanging more secure
connection protocols. Like giving someone your phone number that you met in a
bar, or your telegram handle if you met online.
Then, from that point on, every message includes a hidden portion at the
bottom which is the new address you should send the next message to. This is
all TCP style btw, not UDP.
These "addresses" could literally be ipv6 addresses and port numbers. There's
enough such that every message sent for the next thousand years would fit in
the allowable address space.
Why do we even need middle-men again for messaging applications? Oh right
because users are too dumb to install said application. Well... Tough shit,
stop being lazy. Computers are easy if you have a good teacher.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #6 messages/412 ---
════════════════════════════════════════════════════───────────────────────────────
Coding superpower:
Start thread
While(true):
Run();
Then, whenever you want it to run something else, change the function pointer
that run() uses to call a function
At the end of the run() function, set the function pointer in the while loop
to the next one. That way you don't stack overflow from the recursion.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘
--- #7 fediverse/633 ---
═════════════════════════════════════════════──────────────────────────────────────
@user-192
the neat thing about BASH is that it's the glue that holds all your other code
together. Write libraries in C and call them with BASH - accomplish broader
tasks that are easier to co-create. That's why I like it - it's not the most
important, but it's quite beneficial I think _^
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #8 fediverse/4615 ---
═════════════════════════════════════════════════════════════──────────────────────
┌────────────────────────────────────────────┐
│ CW: capitalism-mentioned-history-mentioned │
└────────────────────────────────────────────┘
the worst part about learning history is that I feel compelled to play video
games about that era instead of reading more.
stupid dopamine addiction. stupid capitalism, getting us hooked on mental
drugs. stupid Paradox Interactive, making really addictive dopamine generators.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════════─────────────────────┘
--- #9 messages/526 ---
═════════════════════════════════════════════════════════──────────────────────────
what if we got together and adopted a new open source project every month and
just collectively worked around the clock to learn and work through the
important problems facing it
or even like, cleared out the backlog of stupid pointless boring tasks that
would allow the developers to work on something better
call it the wandering parade of development
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════════─────────────────────────┘
--- #10 fediverse/1034 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-192
be careful, recursion can cause stack overflows.
better to run function pointers from a loop. That way you can operate as long
as necessary. Just make sure you don't get in an infinite loop...
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #11 fediverse/2879 ---
══════════════════════════════════════════════════════─────────────────────────────
┌────────────────────────┐
│ CW: re: tech info-dump │
└────────────────────────┘
@user-1370
I love this a lot! I want to put function pointers in a "matrix architecture
array" and make them point to different functions at different points in the
program. I bet you could even point them at each other, so like if M and Y
then point at N, A, Y or something.
this is really cool I like stuff like this tomorrow I'll take pictures of
something similar I'm working on! I abandoned it tho hehe anyway remind me if
I forget!!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #12 fediverse/3482 ---
════════════════════════════════════════════════════════───────────────────────────
┌───────────────────────┐
│ CW: cursing-mentioned │
└───────────────────────┘
"Alright I'm not great with syntax so I'm going to write it in pseudocode
first, and then if you'd like I can show you how I work through implementing
the syntax.
But first - do you want a robust solution, a quick solution, or a rapidly
deployed and cheap solution?"
using this trick you can pretend to be competent in any programming language,
except maybe ancient ones like Fortran or strange ones like lisps or Haskell
if they ask you to use a framework or something tho you're kinda boned because
you need to know which functions to call and how to initialize context and
such. When using a framework, the boilerplate is the code, which is why
frameworks suck
"don't call yourself a programmer" fuck off
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #13 messages/550 ---
══════════════════════════════════════════════════════════─────────────────────────
There's nothing that says your dual booted windows partition can't reach over
into your Linux files and mess around with them. Even writing programs that
execute whenever you're running Linux to do nefarious things like... Stream
your desktop to Microsoft? Send files to wherever? Mine bitcoins? Doxx your
friends? Anything's possible when you install Microsoft's software on your
computer. You might not even have to run it, because it can write a program
into the Linux memory which runs in the background. It's literally just bits,
and all the information to explain which bits do what is just... On the
internet, ready for Microsoft engineers to use as they will. Seriously, you
think they're working on *features*? For the users? Fucking get real, dumbass.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════────────────────────────┘
--- #14 fediverse/1225 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-883
don't worry I can sift through junk. I'll write my own using yours as a
reference to debug why mine isn't working. "oh probably because I didn't do
this part here"
also, bad news. Guess I'm doing C programming. What should I make? I'm
thinking Tic Tac Toe or maybe a really basic Asteroids or something
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #15 fediverse/775 ---
══════════════════════════════════════════════─────────────────────────────────────
@user-192
It's totally simple! It's just structs, void pointers, function pointers,
arrays, mallocs, and oh boy I think I see what you mean
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════────────────────────────────────────┘
--- #16 fediverse/1892 ---
═════════════════════════════════════════════════════──────────────────────────────
┌─────────────────────────────────────────┐
│ CW: C-programming-and-alcohol-mentioned │
└─────────────────────────────────────────┘
I want to write C programs with threads and manual memory management and
function pointers and lots and lots of arrays and I'm not even kidding
... wait a minute I literally don't have a job, why am I not writing C
programs right now?
BRB I got something important to do, where's my vodka --> pkill firefox
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧══════════════════════════════════════════════─────────────────────────────┘
--- #17 fediverse/6397 ---
══════════════════════════════════════════════════════════════════════════════─────
literally anyone can create a website.
just write what you want to say and general instructions for how to present
it, and feed your text file to a computer and it'll spit out a website.
"HOW" scream the masses
oh, easy, you gotta know which specific program to use or what to google, and
you have to trust that the search results presented to experts (the ones who
would know thedifference) are different than the ones presented to vile
simpletons who only ask inane and stupid questions that could have been solved
if they had just READ THE FUCKING MANUAL PAGES ugh so many words I think I'll
just tweet about it
(the answer is claude-code btw if anyone's reading this in 2025 with the exact
same internet as mine, which is definitely real and not silo'd and isolated,
nay, personalized, for my viewing pleisure
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════════════════════════════────┘
--- #18 fediverse/169 ---
══════════════════════════════════════════─────────────────────────────────────────
@user-95 one of the most empathetic people I ever met on VR chat was consoling
me with their mic off while I was oversharing about some stupid things people
did to me in the past. things that stupid me thought were okay and actively
encouraged because I was stupid. anyway when their mic was off their body
language spoke for them. I'll try that next time.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════────────────────────────────────────────┘
--- #19 fediverse/2922 ---
══════════════════════════════════════════════════════─────────────────────────────
@user-192
now I want to re-implement strings as structs in C! I don't know why I never
thought of them that way.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #20 fediverse/3272 ---
═══════════════════════════════════════════════════════────────────────────────────
Dear Windows: making your software difficult to interface with (like, putting
spaces in filenames) is rude. It harms our connected productivity. It's
selfish, and it's petulant. We need to agree on common standards if we want
any type of cooperatibility between our two approaches.
... oh and there's mac too, but they get it, they can run Bash,
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
|