=== ANCHOR POEM ===
═══════════════════════════════════════════════────────────────────────────────────
@user-883
graphics isn't too bad in C if you use Raylib. Here's my template project:
If you ever want to do something with a GUI or a game or something then I
definitely recommend that library. It's soooooo nice as a C programmer
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
=== SIMILARITY RANKED ===
--- #1 fediverse/3034 ---
═══════════════════════════════════════════════════════────────────────────────────
@user-570
I've messed around with Bevy and the library most similar in C is Raylib. in
Lua it'd be Love2D I think.
I love the idea of those systems. I haven't built a full game using them but I
can conceptualize operations within them easier using a framework like that
versus a game engine like Godot.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #2 fediverse/4474 ---
════════════════════════════════════════════════════════════───────────────────────
@user-1268
if you know how to program in C this is a good resource for building
networking applications:
https://beej.us/guide/bgnet/
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════──────────────────────┘
--- #3 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 │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #4 messages/1129 ---
═══════════════════════════════════════════════════════════════════════════════────
ai-stuff - this is how to program a society. (or software project) there are
lots of other implementations
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════════════════════════───┘
--- #5 fediverse/1614 ---
════════════════════════════════════════════════════───────────────────────────────
wondering if anyone's ever made a computer that could only run programs
written in interpreted languages. Like, no binaries allowed. Would probably be
slower, but if my iphone is good enough for NASA to get to the moon then odds
are it's good enough for me.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════──────────────────────────────┘
--- #6 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 │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #7 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 │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #8 fediverse/1248 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-883
did you open any ports on your router to do this streaming? Setting up my
laptop so I can test...
I loved assembly when I took a course on it in college - it just made sense to
me. I love C because it feels like, a more powerful version of assembly.
Everything higher level just feels like layers of abstraction on C, or like...
LISP, which hurts my brain. >.>
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #9 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 │
╘═════════╧╧══════════════════════════════════════─────────────────────────────────────┘
--- #10 fediverse/4123 ---
═══════════════════════════════════════════════════════════────────────────────────
@user-883
you're right
but I think your first impulse should be to think about how to do it in a
multithreaded way
If the result is that single-threading would be better, great! It'll be easier!
But thinking about multithreading first will give you crucial insights into
the structure of the program.
depending on what kinds of programming you do...!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #11 fediverse/3544 ---
════════════════════════════════════════════════════════───────────────────────────
┌───────────────────────────┐
│ CW: programming-mentioned │
└───────────────────────────┘
"I wish there was a language that was as simple as C but had [insert complex
language feature here]"
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #12 fediverse/345 ---
════════════════════════════════════════════───────────────────────────────────────
If you want to write object oriented C, just make one file per class and use
static functions for private methods.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════──────────────────────────────────────┘
--- #13 fediverse/2913 ---
══════════════════════════════════════════════════════─────────────────────────────
@user-570 @user-246
I'll make a game if you do! I promise mine will be worse than yours so you can
feel better about your progress!
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═══════════════════════════════════════════════────────────────────────────┘
--- #14 fediverse/3542 ---
════════════════════════════════════════════════════════───────────────────────────
https://cdecl.org/
for the C programmers
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #15 messages/488 ---
═══════════════════════════════════════════════════════────────────────────────────
Look at the unique patterns in a programming language, and you will find
within them a usecase.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════───────────────────────────┘
--- #16 fediverse/4900 ---
════════════════════════════════════════════════════════════════───────────────────
if you wanna trick systems administrators just put a bunch of sleeps in your
code so your computer programs don't use up all the mainframe's resources all
at once
[statements dreamed up by the practically deranged]
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════════════──────────────────┘
--- #17 fediverse/940 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-652
just made a game for GGJ in Godot and I have to agree. Godot is so
frustrating, but one thing I have to concede is that once you get your head
around it the GUI part is actually incredibly powerful.
My next game I'm going to make in Raylib, and if the UI bit proves too
difficult I'll probably end up back at Godot.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
--- #18 fediverse/4119 ---
═══════════════════════════════════════════════════════════────────────────────────
what if you wanted to build a project from source
but god saidCMake Error at CMakeLists.txt:
By not providing a "foo.cmake" in CMAKE_MODULE_PATH this project has asked
CMake to find a package configuration file provided by "bar", but CMake did
not find one.
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════════════════───────────────────────┘
--- #19 fediverse/3748 ---
════════════════════════════════════════════════════════───────────────────────────
@user-203
I've been trying to get it to work with raylib but I'm having difficulties
with the C interoperability T.T
https://www.raylib.com
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧═════════════════════════════════════════════════──────────────────────────┘
--- #20 fediverse/933 ---
═══════════════════════════════════════════════────────────────────────────────────
@user-643
virtual machines are cool. betcha can't write one using bytecode
https://gameprogrammingpatterns.com/bytecode.html
┌─────────┐ ┌───────────┐
│ similar │ chronological │ different │
╘═════════╧╧════════════════════════════════════════───────────────────────────────────┘
|