[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: DPG.jpg (47 KB, 934x1000)
47 KB JPG
What are working on /g/?
Last thread: >>108840292
>>
Wrong last thread, but the real last one wasn't any better.
>>
>>108872435
>complains about maids
>posts a school girl
This is like arguing if someone is a crossdresser or transgender... Does it really matter if they wear the same thing?
>>
File: pepe-snail-python.jpg (48 KB, 719x504)
48 KB JPG
>>108872449
School girls tend not to have penises.

Anyway who here /python/?
>>
>>108872449
an anime with a programming book as the OP image is just that, an image. no one is pretending to be the anime
meanwhile maidniggers obnoxiously force their maidniggery on everyone else
>>
malloc.
>>
>>108872590
Wtf, I love malloc.
>>
>>108872604
You shouldn't.
>>
>>108872590
>>108872604
>>108872622
You don't need memory when everything is a text stream.
>>
>>108872636
Where is the stream stored, you discounter genius? The ether?
>>
File: IMG_8668.png (1.04 MB, 1661x2227)
1.04 MB PNG
>>108872586
>>
I'm wondering if I should go for classic SICP or its Python equivalent Composing Programs.
I already know/am familiar with Python basics (for reference, OOP, DSs, data streams, abstract classes, polymorphism, package control), however Composing Programs does seem to be half the length of SICP, according to the pdf someone made out of it.
anyone have anything to say about it?
>>
The funny thing about last thread is that no one noticed that Factorio passed the fully qualified path to the kernel every single fucking time. THAT is how retarded this autistic general is, like, holy shit, this cattle needs culling.
>>
>>108872972
moo
>>
File: Anandara.png (131 KB, 1000x690)
131 KB PNG
I don't feel like coding, but I also feel bad when I don't code.
I am neet, so I could watch movies all day like a normie. Why do I not enjoy that crap?
I wish i could just be normal
>>
File: skeletonizing.png (11 KB, 1512x459)
11 KB PNG
Writing a forum. Working on the skeleton of the UI. I want users to be able to use custom CSS, or for anyone to fork my project and easily add their own CSS, so I'm trying to keep things simple right now. Just doing layout for the most part.
>>
>>108872817
yeah learn C first and understand how computer works, even if you spend just a couple of weeks on it
>>
>>108873336
Why would they need to add their own CSS when that looks perfect?

I don't like this feature. Get rid of it.
>>
>>108873030
It's time to become food.
>>
File: 1758460907261790.jpg (145 KB, 1000x555)
145 KB JPG
What do you guys even program anymore when AI can just go "ding" and create the same shit program you won’t even use
>>
>>108873463
I mostly RE these days. It's why I can constantly dunk on these autists.
>>
>>108873463
just write your own fucking compiler, bitch
>>
>>108872817
SICP is genuinely not useful outside of memeposting.
>>
File: youvazpah2wf1.jpg (101 KB, 720x801)
101 KB JPG
My code is way worse than AI code
>>
>>108873513
but at least you put love in it, right?
>>
There's absolutely nothing wrong with malloc
>b-b-but...
No, you don't need more.
No, you're not smarter than the provided C standard library implementation.
No, you should not learn what mmap is or what it does, this wasn't made for you.
And if you have a problem with malloc then it was because you used it wrong, simple as.


This post was sponsored by the WG14.
>>
>>108873533
>he is STILL!!!!!!!!!!!!! confusing implementation with interface
Holy shit, at this point it's an official diagnosis.
>>
Working on a script to count the words I write per day in a folder full of .txt and .odt files. Looking into what I need to do, but I am leaning toward using powershell to gather files modified per day and pipe them to the script to count the words and then save the word count to a .csv with the date. Going to start with text files first and then add .odts after I look into how they work. Pretty sure I can just use powershell for the whole thing. But, I am going to use powershell and python as well as write it in another 2-3 languages for fun.
>>
>>108873513
clever defensive strategy to avoid being replaced by AI
>>
why are all my unaligned memory tests returning faster than my aligned memory tests? i was lied to.
>>
zoomers: why would you do mathematics when you can just use a calculator?
>>
File: movs.png (619 KB, 1896x6812)
619 KB PNG
>>108873780
Do you think it's fun, to lie like that?
>>
File: 374105237033211.png (346 KB, 685x874)
346 KB PNG
How do design a big program in a modular way in C (no OOP pls)? As an example, let's say I want to create a simple game with 4 states, these are: main menu, settings menu, game playing and game paused.
How should for example I go about organizing these states? should I put each state in a separate function? or should I handle them all in the game loop using a switch? or should I create separate game loops in separate threads to manage each state?
These kinds of high level decisions are the things I struggle most with, is there any kind of resource for learning how to design software on a high level?
>>
>>108872817
>Python basics (for reference, OOP, DSs, data streams, abstract classes, polymorphism, package control)
Jesus, this is what people think are "Python Basics?" This is exactly the bullshit that OOP critics are talking about. Abstract classes and polymorphism are both OOP concepts. Not even sure what you mean by "package control".

Python is good for learning when you know absolutely nothing about what programming even is and you need to get the feel for the concept of writing down concrete instructions for the computer to execute. Use python to learn the actual basic programming concepts like syntax, data types and data structures, and how to instantiate objects from predefined classes and such. Python can also be a good tool for exploring Operating System stuff like filesystem, processes and networking using the rich standard library and REPL.

But once you've done that you should move on, ideally to C. Implement your own abstract data types using structs and fuctions. Practice pointer syntax until you know it cold and can pass-by-reference at will. Learn to debug a segfault. Don't fuck up your semicolons. Understand the difference between C's array type and use of array syntax in an expression, and why the people who say "C arrays are just a pointer" aren't telling you the whole story. Learn about the heap and the stack and how memory is allocated.

When you want to build your own apps, you pick whatever language is most appropriate (whether Python or Go or whatever)
>>
>>108873840
=(
>>
>>108873953
this book was made for you
https://gameprogrammingpatterns.com/
>>
>>108873840
>>108873955
I didn't run the tests
>>
>>108873955
I don't know what you're doing or what your instructions are, so ...
>>
File: :D.png (93 KB, 254x299)
93 KB PNG
>>108873961
Thank you
>>
>>108873955
Actually, have you primed your CPU - i.e. letting it run bullshit instructions for a couple seconds? I used to have a similar problem where later benchmarks would consistently run better than earlier ones because the code itself was highly CPU-bound (possibly yours as well), and the CPU was collecting performance statistics about the process until it realized that no one cared and stopped doing that. After six or seven seconds (pun intended) the benchmarks would be consistent.
>>
File: akane.jpg (475 KB, 850x1518)
475 KB JPG
>>108872435
I changed my game so the user can select the difficulty level, instead of having the AI get stronger as you beat more opponents. This way, casual players don't run into a strong boss. The boss's cards are still strong, but you can basically lobotomize her by using the lowest difficulty setting. I am going to spend all day generating fanservice art of all the characters for the unlockable gallery. Then I have to generate more VN content.
>>
>uses LLMs to generate game assets
>for a fucking VN
Don't bother.
>>
File: ellen joe.jpg (141 KB, 1103x1103)
141 KB JPG
>>108874069
Do LLMs generate art? I for sure used an LLM to generate the code for the engine, but I am not sure what kind of AI made the music and the art. I could not have gotten the art or music otherwise. I don't have millions of dollars to hire artists, designers and project managers. I'm not Sony. I could have coded the engine, but why spend 100+ hours doing that by hand when AI could do it in 90 minutes? Also, it isn't a VN. It has VN components to explain the story and show fanservice images of the characters. It is a card game/waifu collector. I am using the VN components as cut scenes between matches.

I understand the resistance to AI replacing corporate wagies, but no wagies were harmed in the making of my game. It would have just been impossible to make without AI.
>>
>>108874193
Yeah, yeah, yeah, bla bla bla, don't care, I want to see numbers go up in my fucking games that have an effect on the gameplay. Go do that instead of making a VN.
>>
>>108874060
have you played card city nights? the gameplay is basically ff8 triple triad with pretty minor vn content. it might be good for inspiration. are you designing each boss with their own deck and stuff? I was doing some basic command line poker game stuff and was thinking about tcgs again. yugioh legacy of the duelist was one of the most fun switch games I ever played. its basically an abridge story mode of each episode of yugioh and the difficulty and complexity ramps up each time. The gameplay isn't really balanced. They give you a story mode deck and a build your own deck. Yugioh is busted af so you could buiild super strong deckspretty early. I'm just rambling really. I think TCGs are fun to think about. Hearthstone, Yugioh, Pokemon, Magic, One Piece are all pretty different and modeling an engine for them programatically would be hard. Magic and Yugioh with instants / handtraps are probably hardest because every action would require a response window.
>>
File: cat maid.jpg (390 KB, 850x1202)
390 KB JPG
>>108874206
I already balanced the game. Every character can beat every other character, even with max CPU skill. I had AI write a gameplay sim to guarantee balance by having every combination of characters play a match, both going first and going second and used that to adjust the decks to make sure nobody gets shut out against max level CPU.

All that's left is filling in the art with boobs and butts.
>>
>>108874240
Just tell me the name so that I can avoid it forever then.
>>
>writing documentation (that nobody will ever read anyway)
>pedantically obsess over human language details
>get distracted from implementing the rest of the actual solution
>>
File: corin.jpg (242 KB, 850x1127)
242 KB JPG
>>108874238
I have never played this, but my game setup is basically the same. VN for the story, Triple Triad for the gameplay. I started working on it after I suggested another maid (possibly you?) make Triple Triad because it sounded fun and I wanted to experiment with vibecoding.

Right now there is only one boss, who becomes unlockable as a playable character after you beat the game. I also took storytelling inspiration from Evil Zone. Each character has their own story and motivations for playing, and unique interactions with every opponent. I am going to try to use the engine for 3-5 games and publish them to Steam, since all I really have to do to make another game is generate more art and new stories, then I will make something else. I am hoping that by then there will be a good AI for making and animating 3D models which doesn't fight me when I tell it I want someone with H cup boobs.
>>
>>108874323
ah cool concept good luck! also you might be able to do and record the animations yourself depending on the type of 3d models you use.

https://3d.kalidoface.com/
>>
>>108873361
I already know C (better than Python for the record)
>>
>>108873954
I already know C. and nothing else in your pointless post really is relevant to my question. thanks for nothing
>>
>>108873361
>learn C first and understand how computer works
Your computer is not a fast PDP11.
>>
>I already know C
You don't know C until you understand
*(uint64_t*)ptr = *(uint64_t*)"intelsux";
>>
File: 4234234.jpg (166 KB, 1280x720)
166 KB JPG
How do I deal with the fact that everyone at work is pushing AI non stop? I never cared about the product my company built but at least I enjoyed programming, now I don't even have that. Reading plans and writing md files all day is absolutely dreadful.
>>
>>108874518
autistic pedantry
low and high level are relative
c is high level compared to assembly
but c is low level compared java
java is low level compared to python
python is low level... compared to excel
it's not a competition, you don't get points for being "more low level"
>>
>>108874548
>Reading plans and writing md files all day is absolutely dreadful.
You won't have to do this much longer. Within a year or two, AI will no longer need human babysitters. Instead of fighting AI, get really good at using it and make your own products.
>>
>>108874532
Fails the basic test:
>if it's too hard for a junior developer to understand, it's bad code

Dorks spend time learning the ins and outs for obscure syntax, when they should say NO, I refuse to work with such obfuscations.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.