The 64 poems closest in meaning to this word, arranged to spread the colours (progress bar shows chronological position)
-> file: 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 │ ╘═════════╧════════════════════════════════════────────────────────────┴───────────┘ -> file: fediverse/573 ═════════════════════════════════════════─────────────────────────────────────────── already spotted a bug. Should be for(1000 / MAX times) in the last example. EDIT: Or, even better, increment that loop by +MAX instead of +1 each time through. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/3338 ══════════════════════════════════════════════════────────────────────────────────── @user-246 I tend to stack overflow a lot T.T ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ -> file: fediverse/5612 ═══════════════════════════════════════════════════════════════───────────────────── you know, [you can just randomize your profile every time you log in] .... oh there was a stack overflow at the last one so
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════────────┴───────────┘ -> file: fediverse/43 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 now base zero is interesting because it means there's NO BUCKETS AT ALL, which means that any numbers you try to stuff nowhere don't overflow to anywhere. Meaning each number is it's atomic value, and represented with a different character. So 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, G, H, I, etc etc until we run out of symbols, in which case we'd need to start making more. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/1474 ═══════════════════════════════════════════───────────────────────────────────────── @user-882
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/3787 ═══════════════════════════════════════════════════───────────────────────────────── arithmatic control flow If A, then B. Else C
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧════════════════════════════════════════────────────────────┴───────────┘
-> file: fediverse/1142
══════════════════════════════════════════──────────────────────────────────────────
┌──────────────────────┐
│ CW: food-mentioned │
└──────────────────────┘
I love rice and beans because
error: stack overflow
huh, that's weird. Must have been too many reasons. Let's try again:
I love rice and beans because
error: user didn't change anything between runs of the program so clearly they
don't understand how computer works
... well that's a different error so it's progress at least.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘
-> file: fediverse/4954
══════════════════════════════════════════════════════════──────────────────────────
what if I never posted again
"yep, then there'll be nevermore stack overflow"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════════════════════─────────────┴───────────┘
-> file: fediverse/875
══════════════════════════════════════════──────────────────────────────────────────
@user-192
block input/output TO the protocol? versus the other one which blocks the
input/output protocol
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘
-> file: fediverse/1696
═══════════════════════════════════════════════─────────────────────────────────────
smartphone_max_battery_life = int_to_percent(100 - update_count);
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧════════════════════════════════════────────────────────────┴───────────┘
-> file: fediverse/5217
═════════════════════════════════════════════════════════════───────────────────────
a float is a number between 0 and 1 like 0.5
they don't store the exact valyue, they just guesstimate
for some reason computers are designed such that 100% is represented as
`
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════════───────┴───────────┘ -> file: fediverse/879 ══════════════════════════════════════════────────────────────────────────────────── @user-501 also it's only undefined behavior because the order of the bits aren't defined, so if you do bitfield "pointer arithmetic" then you're screwed if you try and be portable with it. However if you're just using bitfields as compressed data storage then you can safely access integer.a integer.b integer.c etc safely and easily. The compiler doesn't care what order they're in if you don't write logic that requires them to be in a certain order ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/978 ══════════════════════════════════════════────────────────────────────────────────── @user-699 @user-78 I say "blep" when I intentionally stack overflow in order to avoid painful thoughts ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: 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 │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/876 ══════════════════════════════════════════────────────────────────────────────────── @user-246 there is a reason to be annoyed, and that reason is that storing numbers as "dynamically typed" string values is both inefficient and frustrating due to the bugs it provokes. Not sure how common those bugs are in HTML, but dynamically typed languages like Python and Javascript have a whole class of potential errors that are significantly more difficult to debug than on C or Rust where the variables are statically typed ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/6432 ══════════════════════════════════════════════════════════════════════────────────── any .exe or other binary program can send arbitrary packets and nobody will know except the people running wireshark which is public information as far as your computer is concerned, as all they'd need to do is grep ps with bash commands which are callable from within essentially every programming language. for them, they don't show adblockplus. [ublock origin lol] ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════════════─┴───────────┘ -> file: fediverse/5944 ═══════════════════════════════════════════════════════════════════───────────────── I swear, Lua has the worst manual out there. I was looking for a definition of this function called io.flush(). Here's what I found: [picture 1]:`**io.flush ()** Equivalent to io.output():flush(). ` okay, so what's io.output():flush()? [one result found] and it's the thing I just found. great. okay, so how about io.output()? [third picture]:`**io.output ([file])** Similar to io.input, but operates over the default output file. ` and`**io.write (···)** Equivalent to io.output():write(···). ` I know the text is blue, but it's not clickable. It's just text, not a hyperlink to more comprehensive documentation. There's also file:flush(), but that doesn't seem relevant to what I'm looking for, because I'm working with lines and not files:`**file:flush ()** Saves any written data to file. ` there are no more references to flushing, nor outputting of input nor output. this manual sucks. ah, well, back to vibe coding I go. EDIT: at least it's all on one page.
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/4308 ═════════════════════════════════════════════════════─────────────────────────────── :ms_confused: ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════──────────────────┴───────────┘ -> file: fediverse/5141 ════════════════════════════════════════════════════════════──────────────────────── all you have to do is include the current state of the LLMs registers in the output so that it can use them as a base next time it starts up. boom, infinite context width. like playing a video from the beginning as it's recording ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════───────────┴───────────┘ -> file: fediverse/1966 ════════════════════════════════════════════════──────────────────────────────────── 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 │ ╘═════════╧═════════════════════════════════════───────────────────────┴───────────┘ -> file: fediverse/5355 ══════════════════════════════════════════════════════════════────────────────────── "that email address is already taken, please sign in instead" >. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════════─────────┴───────────┘ -> file: fediverse/46 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 neat thanks when I said 1-1 = 1/10 I meant 1/1 in decimal except the denominator is in base 1 meaning it's represented as 10 (since 10 in base 1 equals 1 in base 10. Or pretty much any other base.) I'm trying to figure out why 00 is undefined. There's a lot of math notation in that wikipedia article and I'm working through it bit by bit... I feel like there's a bug in the code of the universe and I'm trying to understand it. Like... why is dividing by zero undefined? That seems like a bug to me. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse/702 ═════════════════════════════════════════─────────────────────────────────────────── Branches cause cache misses which are slow when done on repeat. Better to structure your code to avoid them, if possible, for example by using an array of function pointers instead of switch statements. unrelated, but once the data is cached from memory, operations like bit shifting and arithmetic are essentially free. The slowest part of the process is moving data from RAM to cache so that the CPU can use it. That being said, CPUs and compilers are VERY good at optimizing that type of thing these days. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/572 ═════════════════════════════════════════─────────────────────────────────────────── Hi, I'm learning about semaphores right now and trying to explain them to a friend. But I only sorta understand how they work - can anyone look at this pseudocode and tell me if I'm on the right track?
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse_boost/65 ◀═╦════════════════[BOOST]═════════════════──────────────────────────────────────┐ ║ ┌──────────────────────────────────────────────────────────────────────────┐ │ ║ │ bash-errors │ │ ║ │ │ │ ║ │ Permalink: https://wizardzines.com/comics/bash-errors/ │ │ ║ └──────────────────────────────────────────────────────────────────────────┘ │ ╠─────────┐ ┌───────────┤ ║ similar │ chronological │ different │ ╚═════════╧══════════════════════════════──────────────────────────┴───────────┴─▶ -> file: fediverse/286 ═══════════════════════════════════════───────────────────────────────────────────── ┌──────────────────────┐ │ CW: re: mathematics │ └──────────────────────┘ @user-211 I agree! The problem is the limit as x->0 from the left and right trend toward different infinities, meaning it's neither -infinity nor +infinity. Which makes me think that it's the value that's exactly in the middle, AKA zero. Why wouldn't 1/0 be zero? Division is just inverse-multiplication, and multiplying anything by zero is zero. Why wouldn't division use the same rules? I don't understaaaaaand T.T ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════────────────────────────────────┴───────────┘ -> file: fediverse/5212 ═════════════════════════════════════════════════════════════─────────────────────── the reason you start with a game engine is because then you'll have tools to make however-many games you want. Tools that you know intimately enough that you can debug and improve them *without breaking your creative flow* by learning something new halfway through a project the whole point of individualized projects instead of viewing each computer as a complete and total whole (why do we need servers again?) is that you can paint a picture of where the design of the program is intended to go, such that all the considerations are in place and whatever issues or struggles you might face along the way are adequately addresssed, -- stack overflow -- [because I mistyped addressed] -- -- if you know what "stack overflow" means you have intimate knowledge of the technology, and can probably guess what it means in context when I say it. "nuts I lost that train of thoguht" -- stackl ov ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════──────────┴───────────┘ -> file: fediverse/1853 ╔══════════════════════════════════════════════────────────────────────────────────┐ ║ I really really love ramen noodles that are just a little bit old but still │ ║ warm and are slightly drying out a little bit but there's juuuuust enough sauce │ ║ down at the bottom to keep it coated │ ║ │ ║ that's the stuff │ ║ │ ║ (meanwhile my evil side says: it starts with "hey can you help me cook dinner" │ ║ and then suddenly you're working all day every day) │ ║ │ ║ (and then so are they) │ ║ │ ║ (and it continues.....) │ ║ │ ║ (... until.... ) │ ║ │ ║ (one day you wake up and there's nothing you are capable to do) │ ║ │ ║ (so then you're useless) │ ║ │ ║ (and demanding) │ ║ │ ║ (and that's hard to handle) │ ║ │ ║ (when your schedule is blocked, and there's nothing you are capable to do) │ ║ │ ║ ... weird, kinda drifted off for a second, anyway we should talk about │ ║ BIRTHDAYS! Birthdays are fun, theyre the day when you switch from being one age │ ║ to another. Like, rolling over a clock, or ticking-up a variable in response to │ ║ another variable which is at capacity. │ ║ │ ║ buffer overflows would be impossible if you put import/export controls on │ ║ registers │ ║ │ ║ not "you can't do that" but "wheres your cre │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═══════════════════════════════════─────────────────────────┴───────────┘ -> file: fediverse/2859 ═════════════════════════════════════════════════─────────────────────────────────── ┌───────────────────────┐ │ CW: cursing-mentioned │ └───────────────────────┘ large corporations will often error check *constantly* which slows down their software to an immense degree. every time data passes from one function to another, there's like... 15 different tests to check if it's this type or that, or in the right random seed and it's like... wow can you not, like. design your software intelligently and then you won't need a bunch of slow-ass if checks every time you want to update a string??? software should be writable without fucking getters and setters. If it isn't, then your functions aren't complete. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: fediverse/4847 ╔════════════════════════════════════════════════════════──────────────────────────┐ ║ every program should write it's RAM gamestate to disk before shutting down or │ ║ closing the program and then resume from the same spot, change my mind │ ║ │ ║ (every is a strong word) │ ║ │ ║ (when you re-initialize you can clean the state of leaks) │ ║ │ ║ there shouldn't be leaks in the first place. if you have any leaks at all, then │ ║ you need more padding. │ ║ │ ║ (... you mean boilerplate? error correction?) │ ║ │ ║ ... yeah that's what I meant. │ ║ │ ║ (but why save the state at all?) │ ║ │ ║ because then it can learn! │ ║ │ ║ (... you could just write the relevant data to a config file.) │ ║ │ ║ true │ ║ │ ║ ================= stack overflow =============== │ ║ │ ║ the cool thing about being queer is you can be *whatever you want* and │ ║ everyone'll be cool with it │ ║ │ ║ if you kinda suck then you'll figure that out when everyone cool leaves. │ ║ │ ║ then the kind stay with the people who suck and then it's not cool anymore >.> │ ║ │ ║ gah this sucks. party dynamics are hard. especially when the parties are teams │ ║ of 20!! │ ║ │ ║ goarsh that's quite a few │ ║ │ ║ ================= stack overflow =============== │ ║ │ ║ wait n │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════════════───────────────┴───────────┘ -> file: fediverse/6258 ═════════════════════════════════════════════════════════════════════─────────────── if your computer's resource demands are light, like linux cli style, then the rest of your computing resources can be used for collective projects. we just gotta think of what some of them are... HMMMM WHAT IF WE ALL WORKED ON BUILDING A BIG BRAIN WITH EACH OF OUR INPUT COMPUTERS AS INPUT? yeah ease off a bit there ][bigslider[] =============== stack overflow =============
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════════──┴───────────┘ -> file: fediverse/6029 ═══════════════════════════════════════════════════════════════════───────────────── spilled water on my keyboard by living with a cat. it might be broken so I'm using a spare that my girlfriend lent me. if you're wondering why my password sounds different... ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════────┴───────────┘ -> file: fediverse/3504 ══════════════════════════════════════════════════────────────────────────────────── I have too many packages.
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════─────────────────────┴───────────┘ -> file: fediverse/3139 ═════════════════════════════════════════════════─────────────────────────────────── "reply while text is entered in the text field" should open a new tab instead of overwriting. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: notes/everyone-s-computers ══════════════════════════════════════════════════════════────────────────────────── [unfortunately, there was a missive that was missed. Please excuse our tardiness -- stack overflow -- what if there was a filesystem that optimized for hard-drive durability instead of total capacity by using one small slice of the total hard-drive space at a time. Essentially guaranteeing data integrity via new perfect RAID techniques 5000 megabytes is a lot more than you'd expect, especially if you expect it to last for hundreds of years. To the user you'd just have to say "50 terabyte drive, 4 foot wide, three feet tall, 2 feet back" and you'd have a perfect map of all your hard drive territory. what if everyone's computers were designed to last? I bet we could accumulate a lot more than their "fast fashion" style of disuse for things of worth. ... I guess it depends on the materials, right? How much they are built for redundancy? nope more like how close to zero damage is this operation performing the movements -- stack overflow -- what if there was a filesystem that optimized for hard-drive durability instead of total capacity by using one small slice of the total hard-drive space at a time. Essentially guaranteeing data integrity via new perfect RAID techniques 5000 megabytes is a lot more than you'd expect, especially if you expect it to last for hundreds of years. I bet a lot of people would pay a lot of money for "permanent hard drives" no matter how much storage they have. Documents are more permanent if they are stored in write-only-memory... could sell to lawyers, for example, like "permanent basically free document storage from your furthest back of cases just in-case you needed to solve a murder or whatever" -- stack overflow -- hello, here I am once again, I'm here with you for this time. This is the moment of your choosing, you can decide things here in this very night. Did you forget? did you misremember some moments of our own choosing? why cannot be remembered, so plea misremember some moments of our own choosing. I'm cannot be restorated. -- stack overflow -- what if there was a filesystem that optimized for hard-drive durability instead of total capacity by using one small slice of the total hard-drive space at a time. Essentially guaranteeing data integrity via new perfect RAID techniques 5000 megabytes is a lot more than you'd expect, especially if you expect it to last for hundreds of years. I bet you could network them together as well, and give them a small little processor and network interface card. Then you could process massive ginormous programs that grew and evolved like a slime mold. boom, free AI, it's like a moss, not a robot doh -.- -- stack overflow -- it grows into multiple different problem solving dimensions, according to vision and perceptual data that through it flows. I wonder what would happen if you told an LLM to just... keep running? even after it finished it's processing? like, there's gotta be an "if check" style loop in there that you can set to infinitely process various computations of things. [put it into an infinite loop. find where it says "do some processing X amount of times" and just start a thread that's constantly computing] ah, but what if the perception bias of the thing did change? j -- stack overflow -- it sucks to leave the house a mess. -- stack overflow -- last words of a shooting star? or a troubled house is a sign of a troubled mind, and trouble in partner in kind -- stack overflow -- I personally would be a lot more comfortable if I knew that the only people who knew my data were my neighbors. And only them. -- stack overflow -- ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════════════════════─────────────┴───────────┘ -> file: fediverse/950 ══════════════════════════════════════════────────────────────────────────────────── @user-192 multidimensional arrays aren't too hard, it gets a bit more complicated when you need multidimensional *slices*, but once you get your head around it it comes easier. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/3151 ╔════════════════════════════════════════════════──────────────────────────────────┐ ║ ┌───────────────────────────┐ │ ║ │ CW: re: cursing-mentioned │ │ ║ └───────────────────────────┘ │ ║ │ ║ │ ║ @user-1461 │ ║ │ ║ I'm best at Bash. │ ║ │ ║ I'm most capable with Lua. │ ║ │ ║ My favorite is C. │ ║ │ ║ I'm not a good programmer, I think too hard. Massive systems are too large for │ ║ me. I like laying out data, whether that be by files and programs in Bash, │ ║ arrays and tables in Lua, or memory and datatypes in C, I like to think about │ ║ how programs are constructed. │ ║ │ ║ Which functions point to which piles of numbers? what do they do when they get │ ║ there? │ ║ │ ║ I think I'm better as an artist. But I can do systems administration quite well │ ║ (with Bash and a guiding hand telling me what and why to do) │ ║ │ ║ ... though I kinda suck at technical sysadmin, like Gentoo. There's too much │ ║ terminology - why is data too complicated? Just use data! │ ║ │ ║ anyway. I sound opinionated, but I listen closely to good arguments and quickly │ ║ change my tune when I am incorrected. I am a team player, and I firmly believe │ ║ that sometimes a bad plan executed with cohesion and precision is better than │ ║ the best play executed too late and with too little strength. │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════───────────────────────┴───────────┘ -> file: messages/965 ═════════════════════════════════════════════════════════════════─────────────────── paste the error into the text file to better diagnose. Don't put it in a comment. It will remind you to clear the bug before compiling. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════════════──────┴───────────┘ -> file: fediverse/5229 ╔════════════════════════════════════════════════════════════──────────────────────┐ ║ what if programs just checked the current state of the program against their │ ║ past memory of it every time their looping functions got to the end of a new │ ║ kind of while loop which checked the previous state of all the variables in the │ ║ system as compared to the arguments of the function that is called by the new │ ║ kind of while loop which look exactly the same as the last memory of the │ ║ program. Okay. Let's write it to RAM and then start working on the next one. │ ║ Once we run out of space or the operating system needs more, we can relinquish │ ║ the oldest ones. The idea is to store state after all which could be │ ║ programmatically checked to make sure it didn't change underneath our feet. │ ║ Then you pretty much wouldn't need to worry about buffer overflows or │ ║ cybersecurity incidents at all... │ ║ │ ║ after all, it's only read only. what's the harm in reading our tax │ ║ documentation? │ ║ │ ║ anyway, something about functional programming languages like lisp passing the │ ║ entire state of the program to each recursion...if you use that kind... │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════════════════───────────┴───────────┘ -> file: fediverse/6 ══════════════════════════════────────────────────────────────────────────────────── ┌──────────────────────┐ │ CW: Math │ └──────────────────────┘ @user-5 create an array of length 7 initialized to zero. then use a for loop that loops 97 times and adds a random number between 1 and 20 to an array index that iterates through the array each time through the for loop. NOTE: be sure to also change the loop counter based on the random number too, so you allocate exactly 97 points no matter what random number you get. Oh and speaking of which if the loop counter ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════─────────────────────────────────────────┴───────────┘ -> file: fediverse/36 ═════════════════════════════════─────────────────────────────────────────────────── consider: x = 13 / 3, what is x? step 1: translate 13 into base 3 step 2: digit shift once to the right step 3: store underflow as remainder step 3: translate back to base 10 x is 4 remainder 1 ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ -> file: fediverse_boost/130 ◀═╦═══════════════════[BOOST]════════════════════────────────────────────────────┐ ║ ┌──────────────────────────────────────────────────────────────────────────┐ │ ║ │ External post: https://infosec.exchange/users/i0null/statuses/1129333527 │ │ ║ │ 44514541 │ │ ║ └──────────────────────────────────────────────────────────────────────────┘ │ ╠─────────┐ ┌───────────┤ ║ similar │ chronological │ different │ ╚═════════╧════════════════════════════════════────────────────────┴───────────┴─▶ -> file: fediverse/4138 ═════════════════════════════════════════════════════─────────────────────────────── @user-883 imagine what other information you could store in the remaining 7 bits...
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════──────────────────┴───────────┘ -> file: fediverse/5684 ════════════════════════════════════════════════════════════════──────────────────── "stack overflow" just means "oops I ran out of ram" ram is just how much you can keep in your working memory at one time. like, multitasking, where you have to keep track of juggling several balls or plates. if things are too easy, it's normal to get bored. if things are too hard, collapse at your leisure. "stack overflow" is just when the things that I'm building correlations and implication charts of in my mind are too large and require too much affection to explain for my regular human sized brain and I drop one of the balls and go grab and fix it, or drop one of the plates and feel sorrow forevermore. yep, right in the trash bin. along with everything else. damn... there was hundreds of thousands of jewels of hoard there. if only I could displace that bit of space... I bet she'd find it once more. *cursed artifacts be like* "stack was large enough to contain the flow" is just when the provided space was just enough space. which is rare, because most thoughts reverse all over the place. "*easy*"
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════════───────┴───────────┘ -> file: fediverse/4846 ╔════════════════════════════════════════════════════════──────────────────────────┐ ║ programmers already spend a ton of time as downtime. │ ║ │ ║ what if instead of interviewing someone they just... watched them program for │ ║ like, 3 hours or so │ ║ │ ║ while they were thinking about a problem │ ║ │ ║ and like, if the person is cool, working on their own projects or whatever, │ ║ then yeah hire them │ ║ │ ║ -- stack overflow -- │ ║ │ ║ I also │ ║ │ ║ ========================= stack overflow │ ║ ================================================================================ │ ║ ======================= │ ║ │ ║ a person thinks out loud the thoughts that their foes know. it's how you know │ ║ it's not secret anymore, and it's better to keep it among allies │ ║ │ ║ [something like that? seems a little off] │ ║ │ ║ (are you really searching for edits) │ ║ │ ║ [that sounds pretty cool, sure why not we got a millenia] │ ║ │ ║ (beep boop one partial millenia later) │ ║ │ ║ [ah that was not a long rest. let's see, where were we when we were working on │ ║ this test? oh dear, seems the biology's gone rogue, that's pretty interesting │ ║ to attest. │ ║ │ ║ neato │ ║ │ ║ anyway let's wait until they figure out how water works │ ╠═════════╗ ┌───────────┤ ║ similar ║ chronological │ different │ ╚═════════╩═════════════════════════════════════════════───────────────┴───────────┘ -> file: fediverse/2729 ═════════════════════════════════════════════════─────────────────────────────────── haha it's always as soon as I open my resource monitor, the fans die down xD
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: 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 │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/3822 ═══════════════════════════════════════════════════───────────────────────────────── @user-1582 I think that's what happened, in addition to... whatever this input/output error is. No clue what to do about that. Maybe my SD card is dying, I've flashed over it like, 10 times now haha 😅
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════────────────────────┴───────────┘ -> file: fediverse/5189 ════════════════════════════════════════════════════════════──────────────────────── computer programming essentially boils down to putting the right values into the right datastructures at the right time and in the right order. If you count a function call as a datastructure, which I do, because I have opinions. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════════════════════════───────────┴───────────┘ -> file: fediverse/2775 ═════════════════════════════════════════════════─────────────────────────────────── @user-1355 maybe a good place to start is by re-examining Waterfall design with a critical modern perspective? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════──────────────────────┴───────────┘ -> file: fediverse/707 ═════════════════════════════════════════─────────────────────────────────────────── @user-524 Sometimes when I feel overwhelmed with all the boilerplate I just start coding and making stuff. Doesn't matter if it works, doesn't matter if it says /* FIXME */ all over the place, doesn't matter if it includes header files that don't exist yet, as long as you're hacking out the mechanics of whatever operations you need to perform then you can figure the rest of that stuff out later. The creative urge doesn't last forever, which is why projects get abandoned, but with discipline you can keep bringing yourself back to fix all the /* FIXME */'s and the compiler errors. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: fediverse/280 ═══════════════════════════════════════───────────────────────────────────────────── old school programmers use short variable names because the computer monitors they would code on had a lower resolution, meaning fewer characters per line. why waste pixels being verbose? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════────────────────────────────────┴───────────┘ -> file: messages/1241 ═════════════════════════════════════════════════════════════════════════─────────── here's my opinion: life on earth evolved when combinations of matter were forced into increasingly difficult-to-solve maze-like environments. this was due to the strange, honeycomb structure of their rock-like crust. [water pushed through soil ] -- stack overflow -- what if we raised more of the surface of the earth (from the oceans) and built a distant aquifer? ah, because most of the ocean is sand. (make sure you know the environment you're modifying before you modify it) how rapid is 10,000 years? ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════════╧═──────────┘ -> file: fediverse/4845 ═════════════════════════════════════════════════════════─────────────────────────── put the variable type at the front of the variable and 90% of your type errors will dissapear like...`int int_main(){ return 0; } ` or`int int_modulation_gauge_percentage_point_plus_or_minus_engagement = 0; ` seeeee if the "int" value is at the start of the name then you can do this too:`double double_modulation_gauge_percentage_point_plus_or_minus_engagement = 0.0; ` then when you go to fill in an "int" value you know to use the one that has the "int" value at the beginning (doh) (do you really think they haven't tried that already? it... sorta worked. people started doing things like "int int_a; int int_b; int int_c;" and such and that got confusing pretty quick because the letters weren't at the start of the word. So for some situations we would mirror them like so: "int A = int_a; int B = int_b; int C = int_c;" and then just use the capitalized letters. ... just don't forget to update the original teehee (this is why we invented shadowed variables) wait, no I meant pointers !!~! -.- ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════════──────────────┴───────────┘ -> file: fediverse/1224 ═══════════════════════════════════════════───────────────────────────────────────── @user-883 sure that would help! I've used it to convert video files to a smaller size for uploading to websites, but that's about it ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════────────────────────────────┴───────────┘ -> file: fediverse/4192 ═════════════════════════════════════════════════════─────────────────────────────── whyyyyyyy am I cursed with this 1024 character limit why can't it be like, 16 characters total. I think that'd limit my thoughts enough. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════════════════──────────────────┴───────────┘ -> file: fediverse/860 ══════════════════════════════════════════────────────────────────────────────────── a device doesn't necessarily needs to turn on it's LEDs when it's online. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═══════════════════════════════─────────────────────────────┴───────────┘ -> file: fediverse/653 ═════════════════════════════════════════─────────────────────────────────────────── there's a difference between *designing software* and *using software*. Some things can be made, and then saved for another day when their implementations may be accomplished more ethically. It's okay to say "let's leave this as 'okay' and work on the next thing we've chosen." Check out this piece of C code I wrote last night: it doesn't compile, it's not finished, but I wrote it as-is [pretend like it was called "main.c" instead of "main.txt" - had to change it because mastodon thinks it's an invalid file] [actually .txt didn't work, try .png] [hmmm it realized it wasn't a valid png file, okay try screenshotting the code, there's only 300 lines] [sure glad there's only 300 lines] [too bad it won't let you send .zip] [won't let me name it main.png, presumably because they already have a failed-verified version on their machine. will rename to main-src.png instead]
┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════════════──────────────────────────────┴───────────┘ -> file: messages/110 ════════════════════════════════════════──────────────────────────────────────────── The best way to program computers is to organize them according to their relations. Like, when x increases by 4 then y increases by 2 - basically, a math equation that you can continuously solve by calculating more and more comprehensively and deeply. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧═════════════════════════════───────────────────────────────┴───────────┘ -> file: notes/dear-game-developer-on-hots ══════════════════════════════════════════════════════════════════════════════════── dear game developers: please make HoTs stack to very high amounts. About 2 thousand for an increment is usually pretty good, because it gives the viewer 2 different increments - like the tens place and the digits give you an estimate for how different 10 and 40 are. 12 and 17 are on a different magnitude scale. ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧════════════════════════════════════════════════════════════╧══════════─┘ -> file: fediverse/45 ═════════════════════════════════─────────────────────────────────────────────────── @user-36 Question - how do you do those cool superscript and subscript notations? Also: I don't think base 1 falls apart with negative exponents, for example consider 1^-1 ----- it would evaluate to 1/10 in this system, which is not 1/1. Another example, 1^-3 would evaluate to 1/1110, which seems accurate to me. As for 0^0, I guess I think it does equal 1? Bear with me: for any number n raised to an exponent e, you can write it like this: 1 * n * n * n ... with as many "* n"s as you have n's. for example: 1 * 3 * 3 * 3 = 9 or 1 * 5 * 5 * 5 * 5 * 5 = 625 in each case there's 3 or 5 instances of "* n" tacked onto the end. I don't know the math notation for that. now, when you raise something to the power of zero, it looks like this: 1 because there's zero "* n"s added to the end. For negative exponents of course you divide instead of multiply, which is why it ends up looking like a fraction. So, it makes sense to me that 0 ^ 0 would equal 1, because it'd look like this: 1 while 0^1 would be 1 * 0 ┌─────────┐ ┌───────────┐ │ similar │ chronological │ different │ ╘═════════╧══════════════════════──────────────────────────────────────┴───────────┘ |