How far can you go with simple logic?

By simple I mean small. Maybe a simple for loop or a state machine with less than 10 states. For example game of life has a pretty simple algorithm and It can probably be made in this manner. What about embedded systems though? Most embedded projects I see use the CPU as a data retriever and sender.

I'm doing a research and I would really appreciate some sources. Articles, videos, books whatever.

reddit.com
u/avestronics — 1 day ago

Bir kod editorunde olmazsa olmaz dediginiz seyler nedir?

C ile bir kod editoru yaziyorum hobi amacli. Bitmesi 1 seneyi bulur diye dusunuyorum cogu seyi sifirdan yaptigim icin. Sizce neler sart bir editorde?

reddit.com
u/avestronics — 3 days ago

Alternatives to ROG Flow Z13?

It should be <= 14 inches.

Should have a really powerful iGPU like 8060S.

Should have 10+ hours of battery life at least.

What are my options?

reddit.com
u/avestronics — 3 days ago

Alternatives to ROG Flow Z13?

It should be <= 14 inches.

Should have a really powerful iGPU like 8060S.

Should have 10+ hours of battery life at least.

What are my options?

reddit.com
u/avestronics — 4 days ago
▲ 1 r/raylib

How can I build a file browser in raygui?

I already implemented logic to select paths, expand them etc. But the issue is creating a user interface. I was thinking of creating a ScrollPanel for this like a regular text editor would. It would have text showing the file/directory name and if it's a directory it will have a '+' icon next to it which can be toggled to expand that directory.

Since I'm just learning about raylib and raygui I don't know most controls. I played around with some of them but still have no idea how to implement this. Any help or direction?

Example

reddit.com
u/avestronics — 4 days ago

Is it bad to use recursive stuff in C

Whenever I'm building anything in C, I try to create some structures to store data. For example I'm building a text editor now and the file browser needs a way to store entries in a given directory. So I came up with this.

typedef enum{

DIRECTORY_ENTRY,

FILE_ENTRY,

END_ENTRY,

OTHER_ENTRY

}entryType;



typedef struct fileBrowserEntry fileBrowserEntry;

struct fileBrowserEntry{

char * name;

entryType type;

bool isExpanded;

fileBrowserEntry * downDirectory;

fileBrowserEntry * upDirectory;

};

The last element in an array of fileBrowserEntry has the type==END_ENTRY so I can loop through the contents. The issue is when I want to free a deeply nested structure like this I have to take care of these:

* The current directory might have a reference in the up directory so I have to make it NULL first.

* Every downDirectory might have its own down directories so we should go as deep as we can recursively.

Every C project I make has something similar to this where I have a recursive struct. Is this a bad pattern? If yes what are the alternatives?

reddit.com
u/avestronics — 6 days ago
▲ 17 r/ClassicUsenet+1 crossposts

Are there any non-reddit C communities for beginners and professionals?

I love this community but contributing to reddit seems immoral to me given the way they support AI development and awful site-wide moderation. Is there a community for programmers to ask and receive answers? Kinda like StackOverflow but it's dead so im looking for alternatives.

reddit.com
u/Parker51MKII — 7 days ago
▲ 6 r/raylib

How does raylib check mouse clicks?

Hi everyone. I just started exploring raylib + raygui because I would like to build an app with it and I have a question.

In raygui.h/GuiCheckBox() the code checks GUI_BUTTON_DOWN. How does this work? I thought raylib buffers the inputs between the frames and then reads/clears them when we call BeginDrawing() but when I drop the FPS to 1 and click my mouse between the frames the checkbox does not trigger. I would really appreciate if you guys can explain to me how exactly it works.

reddit.com
u/avestronics — 8 days ago

Laptobum ne kadar eder?

Asus TUF A15 2023 model.

RTX 4070 ve Ryzen 9 7940HS

2x16GB DDR5 (5200)

1TB+512GB NVME

Icindeki dandik wifi+bt alicisini Intel AX210 ile degistirdim

PTM7950 uyguladim stock macun yerine

reddit.com
u/avestronics — 8 days ago

Is it bad to use Flatpaks too much?

I prefer flatpaks whenever possible. I feel like it's cleaner. Are there any downside to doing this? I have 1.5TBs of storage and I mainly use Fedora Workstation.

reddit.com
u/avestronics — 8 days ago
▲ 42 r/antiai

Antis are straying away from the actual issues too much

I see so many antis turning this into a pointless internet drama rather than actually doing something. Some of the issues with this type of people is as follows:

1- They always talk about water usage.
I do agree water is an extremely important resource and we should use it sparingly. But this point is really easy to debunk. Almost all industries use water and data centers existed way before AI. Even though i hate that water is wasted for this stupid product it's still not the main issue.

2- They fight with internet trolls about "ai art".
Why did some of you have turned this into a gang war. Everyone knows human made art is better. People posting stuff like "pencil slop" or "this is why AI art is better" are clearly trolls. How can you not see this and act like little children fighting over which Power Ranger is better.

3- They ignore vibe-coding.
Most antis don't really view vibe-coding as a bad thing but it's the one thing that makes everything worse for us. So many engineering jobs disappear, so many services and websites fall victim to enshittification, trust for open source projects decreases etc. You can't just ignore an entire branch of AI Slop.

The real issues with AI are much more complicated than many think. It's a multi phase plan to turn the most basic human ability(intelligence) into an asset people can sell and buy. Academia is dying, school system is dying, new graduates are just a bunch of AI addicted idiots without any ability to think or do anything except writing commands in plain English and entering their credit card info on Claude subscription page. All AI companies are the enemy of the human race. Not because of AGI not because of water or not because of the RAM prices but because they threaten the meaning of life itself.

What do you think will be left when everything is about money, optimized and automatized? Even thought and emotions...

reddit.com
u/avestronics — 22 days ago
▲ 11 r/FPGA

Open Source and Free Vivado alternatives for Fedora?

Hi everyone. I own a basic Basys3 (Artix-7) FPGA and I'm using it to learn more about FPGA's. In the past I used Vivado on Ubuntu but the software is really picky. It won't run on openSUSE Leap, MX Linux and Fedora (might be skill issue on my end tho). It also needs X11.

Recently I decided to switch to Fedora44 from Ubuntu since Ubuntu was giving me problems. I need a way to synthesize and flash (idk if its the right term here) my SystemVerilog projects into my board. Since my board is old and popular I thought there might be some open source alternatives to do the same thing. Any advice?

reddit.com
u/avestronics — 24 days ago

Black bar at the bottom of native CS2

The issue never happened to me before. All the other games I tried (not many) seems to work fine. This sometimes happens and sometimes doesn't. Also the game does not let me turn around in game with my mouse. Mouse works perfectly fine in the menus though.

  • Fedora 44 (GNOME w Wayland)
  • CS2 is Native on Steam Flatpak
  • Hybrid Graphics Laptop with RTX 4070 and Ryzen 9 7940HS
  • 32GB DDR5
  • System is fully up to date
u/avestronics — 27 days ago
▲ 111 r/trsaat

Ilk saatim

21 yasindayim ve hep saatlere ilgim oldu. Hosuma giden saatler 20 30kdan basladigi icin ogrenci olarak alma sansim olmadi hic ama gecenlerde bir Casio magazasinda bu model cok ilgimi cektigi icin aldim. Kolay cizilecek ve ucuz bir model oldugunun farkindayim ama bence şık duruyor. ILLUMINATOR modeli oldugu icin de geceleri cok islevli. Ne dusunuyorsunuz?

u/avestronics — 1 month ago

AI Boom made me lose faith in my field and I don't know what to do.

Hi everyone. I'm a 3rd year Computer Engineering (which is just CS with 2 3 hardware courses in my uni) student and I have my doubts about the future. I always loved working with computers and tech and everyone kinda knew I'd go down this path to become a CS guy. I could've picked many fields with way better pay and more job security(like medicine for example) with my college entrance exam results yet I picked CE because I thought it would be as I imagined, full of exciting new tech and people with passion for their work. But it's not.

People are so so so so hungry for money and they care about nothing else. Everything has to be optimized, everything has to be productive, everything is fine as long as we make money. You might say this is an issue about capitalism and not CS. I would agree to that but CS is a whole another breed when it comes to that and AI boom really proved this.

First of all AI is an awful technology no matter what anyone says. It rots our brain, damages education, ruins the thinking abilities of the new generation, damages art and sciences, steals our data and makes reality foggy. AI generated art is something no one needed yet they spend billions on improving it. More than half of the internet is AI generated nowadays and you know how these things tend to repeat the same ideas. What will happen to our perception of reality and ability to do research and think for ourselves when this technology improves even further?

Field of CS is the one field where AI is insanely normalized and celebrated even. People used to be ashamed of being called vibe "coders" but nowadays they proudly say "I made this with Claude Code in a weekend :DDD". AI code editors exist and they produce garbage code yet most companies and programmers use it because you don't have to think. Students use it because obviously student assignments are simpler so AI can solve it and this makes them think AI is a miracle. What will happen to the same students when they realize they are not engineers or scientists and just operators that has to pay money to an American company to do anything. Most companies force people to use AI too even if they don't want to because it more "efficient". I know people that got fired from their jobs because they wanted to use their own brain instead of a hallucination machine. I have taken courses from some professors who praised AI and recommended it to us IN A PLACE OF EDUCATION.

But even after all this I don't see enough backlash. Even Anti-AI people seem to defend vibe "coding". Whenever I mention this to anyone they say "I'll get left behind" or "we can't stop it might as well use it" or "use it responsibly". Where will the world left me if I continue like this? In a place with actual people and actual thoughts? Also what is this "we can't stop it" bullshit. No one should protest then. Government is much more powerful right guys? No one should save water because the water a single person uses is nothing when compared to the world right? We people have the power to do anything. Why do we bend over for these tech billionaires that wants nothing but money. They will kill, poison or ruin anything if need comes to be. Everyone is nothing but a productivity cow in their eyes. They can make 10 gazillion dollars in a year but if they find a way to make even more money they will do that. This includes tracking workers, firing them, forcing them to use AI, sell any data that they can etc.

All this makes me feel like I picked the most evil career in the current world. I know there are amazing people in this field but they are a minority. I have no idea what to do since I refuse to use AI and any company I see or talk to enforces it. I can't go and become and academic because that is ruined too. I am considering becoming a watch maker lol. I'm lost.

Sorry for the long post. If you read all this thank you. Feel free to share your opinions and recommendations. Have a nice summer.

reddit.com
u/avestronics — 1 month ago

Some tech companies alignment chart

I despise most tech firms. It took time to find ethical(relatively) tech companies lmao.

Row 1: Valve, Proton AG, Mozilla, CERN

Row 2: Apple, Canonical, Samsung, NVIDIA

Row 3: Anthropic, OpenAI, Microsoft, IBM

Row 4: Google, Amazon, Meta, Palantir

u/avestronics — 1 month ago

please please please

Pixel is not sold here I can't afford to smuggle another phone in :(

u/avestronics — 2 months ago
▲ 2 r/timex

Any known issues with Expedition Field Post Titanium Automatic?

I've been searching for a watch to buy as my first watch. I found this thing for around 300 Euros where I live. (It's usually double that brand new) It's second hand but just a year old and the guy has all the box, papers and proof of purchase. He even said he is open to negotiate. Since I'm just a student I need this watch to be robust and reliable. Some questions:

How reliable is the movement inside it?
Any QC issues with the watch?
I have a small to mid size wrist. How would it look on it?
Any other known problems?

Thanks.

(I also included the photos from the seller)

https://preview.redd.it/ycj8329nty1h1.png?width=787&format=png&auto=webp&s=ebea169edad3160d594329ec9288bfb4e5c61225

https://preview.redd.it/mdcnq7poty1h1.png?width=787&format=png&auto=webp&s=6a1880b2ef779324a3d2d428181e256a71b0f3c4

reddit.com
u/avestronics — 2 months ago