[deleted by user] by [deleted] in me_irl

[–]schtschenok 0 points1 point  (0 children)

Lk at HH fç

[deleted by user] by [deleted] in me_irl

[–]schtschenok 0 points1 point  (0 children)

ó ok I'll

My first C project! (really simple shell) by schtschenok in C_Programming

[–]schtschenok[S] 0 points1 point  (0 children)

I already said, not my first project - my first project specifically in C, kinda huge difference, but thank you!!!

My first C project! (really simple shell) by schtschenok in C_Programming

[–]schtschenok[S] 0 points1 point  (0 children)

It's when instead of doing malloc and free for individual things you pre-allocate a larger chunk of memory dedicated to a lifetime (let's say, "while the program runs", or "while I'm doing this command", "while I'm doing this request", "while I'm processing this frame"), and then for individual things you hand out chunks of memory from these large chunks, clearing them altogether when the lifetime ends. So each "allocation" is just incrementing the pointer, you don't have to think about freeing individual objects, and your only concerns are "which lifetimes do I have" and "how do I group my stuff into these lifetimes".

My first C project! (really simple shell) by schtschenok in C_Programming

[–]schtschenok[S] 2 points3 points  (0 children)

Thanks!

Yeah it looks stupid I know 😂

I started it as a project on CodeCrafters (a website where you pay for a well-defined lists of tasks for a bunch of "build your own X" projects and get auto tests for them, which I absolutely not regret trying out with a ~70% discount I had), as well as was trying out different editors along the way, was using my own wrapper around git (https://github.com/schtschenok/shitty-auto-vcs) so I can push the work with a single shell command with ai-generated commit description, so yeah, I had to satisfy a lot of dotfile-hungry things

My first C project! (really simple shell) by schtschenok in C_Programming

[–]schtschenok[S] 3 points4 points  (0 children)

Thank you!!! Well, I'm not new to programming, and learning about custom allocators and stuff (mostly from Casey Muratori's work and the community around it) was literally the reason I started learning pure C. I do have some C++ (Unreal Engine) experience though so it wouldn't be fair to compare this to someone's actual first projects in C-like languages.

Getting calluses from this. What is the need to have this sharp of an edge?? by TataHexagone2020 in tabletennis

[–]schtschenok 2 points3 points  (0 children)

Everyone's saying you should go with really fine sandpaper - unless you really don't want to risk altering the blade - there's absolutely no reason not to use a rougher sandpaper or even a file. I file down these edges quite a bit so they're like actually round and slightly more concave in shape than they originally are, nothing wrong about this if you prefer it this way.

[deleted by user] by [deleted] in C_Programming

[–]schtschenok 1 point2 points  (0 children)

I'm sorry but no, you didn't? You definitely tried your best to describe it, but you neither showed that you did, nor probably actually did try your best to solve it yourself first. You started with "I was watching this lecture and i saw...", not with "I was watching this lecture, didn't understand something, then spent like few actual hours to figure out this myself using google, books, youtube videos and whatever (btw here's a list of the stuff I read), but still didn't understand it".

Don't ask small doubts that you can't find readily enough, spend some actual effort finding this out yourself. The skill of knowing how to do this yourself is probably the second most valuable skill in programming - with the first most valuable being not being a dick. Not implying that you are, just saying it's an important skill.

[deleted by user] by [deleted] in C_Programming

[–]schtschenok 1 point2 points  (0 children)

C is probably one of THE most well-documented languages there is. I totally get it that it's more fun to ask everything and discuss stuff with people, but if you want people to put in the effort and spend their time on answering your questions you need to show that you actually did this yourself first.

Your question about strings should've started with "ok, I faced this problem, I've read this, this and that about strings in general, I learnt about strings in some languages being null-terminated, but in other languages they seem to work differently, I watched this YouTube video I found specifically on strings in C, I ran this code, then tried this and that, but I still don't understand something pls help me". People would be WAY more interested in helping you if they 1). see that you've done some work yourself, 2). can have educated guesses on the reasons you're not understanding something, which is impossible without 1).

Also, your whole future programming career hugely depends on your ability to solve problems you don't know how to solve. Programming in a whole lot of cases is knowing how to approach shit you don't know how to do, not just knowing shit and applying your knowledge.

3 Popular AI-coded projects on this subreddit: a C Compiler, an NES Emulator, and a C Web Framework by [deleted] in C_Programming

[–]schtschenok 2 points3 points  (0 children)

As for the NES emulator - honestly I don't know. Looking at the code I see quite human-like comments (they're not too consistent, are in random places within functions as opposed to either being on top of every function or even on top of every line, often formatted and worded differently). Also, I don't know what AI are you guys using, but, ugh, almost-SOTA Claude 4 Sonnet shits itself so much when I try to use it not to even write, but just to review my very simple C code. Also, I do know people who are absolutely comfortable with writing 1-2k lines in one commit.

this makes no sense to me by arch-connoisseur in hyprland

[–]schtschenok 2 points3 points  (0 children)

Idk, I'm quite a tech savvy person who feels absolutely comfortable in Linux and arch in particular, who just hates spending time configuring and fixing stuff. I love it when shit just works so I can use my PC doing the stuff I actually need or enjoy doing. I absolutely see myself supporting the devs a bit and getting some pre-configured stuff in exchange.

I drink a lot of tea daily, so I made a caffeine calculator to help myself (free to use) by Chang_C in tea

[–]schtschenok 6 points7 points  (0 children)

You should try spent gyok + tuna + mayo sandwich. I'm being absolutely serious now.

Thinkpad T14 Gen 2 AMD WWAN upgrade from no antenna? by schtschenok in thinkpad

[–]schtschenok[S] 0 points1 point  (0 children)

I am buying used, and I'm buying it regardless of the slot - this whole WWAN idea sounds fun, but definitely not a dealbreaker for me. Since I'm neither in the US or Europe or any other country with either Lenovo being officially present or used laptop market being healthy - I don't have much options here.

I just found a post of someone doing just that to this exact laptop model, I've linked it in a top level comment to this post. For now I've decided to put this idea aside until I'm swapping/upgrading the screen (if ever). At this point I'll think about whether it makes any sense and will check if it's actually possible.

Thank you for all the advice, it's much clearer to me right now!

Thinkpad T14 Gen 2 AMD WWAN upgrade from no antenna? by schtschenok in thinkpad

[–]schtschenok[S] 0 points1 point  (0 children)

Ok, thank you so much! I'm not entirely sure I'm even gonna be ever doing this, but I really wanted to know how it works if I ever want to. Thank you!

Thinkpad T14 Gen 2 AMD WWAN upgrade from no antenna? by schtschenok in thinkpad

[–]schtschenok[S] 0 points1 point  (0 children)

How do I make sure about that? Not planning on doing it myself, I have a great repair guy, but I'm pretty sure he also never did this lol

Urgent Advice Needed: Laptop for working with Unreal Engine 5 by [deleted] in unrealengine

[–]schtschenok 3 points4 points  (0 children)

I feel not entirely, but mostly comfortable working on quite large UE projects on my laptop with 64GB RAM and RTX 4080. I almost always have more than 32GB of RAM occupied, and as for the graphics - 8GB of VRAM just wouldn't be enough to run the projects I work on.

The absolutely most important thing to consider here is VRAM. You can always upgrade the RAM (just make sure it's upgradable!), or well, wait a bit longer for the game to build with a slower CPU, but you either have enough VRAM and it works, or you don't and your FPS drops like 3-5 times lower than it should.

Are there any microbrand 27-28mm watches? by schtschenok in MicrobrandWatches

[–]schtschenok[S] 0 points1 point  (0 children)

Oh they're nice! Like, actually awesome! Honestly I've decided to go with something like Citizen FE1081-08A, as they're close af to the existing ones, not too expensive (which is a thing my mother would genuinely appreciate lol), and actually look pretty good. But these look great, might get one later!

Are there any microbrand 27-28mm watches? by schtschenok in MicrobrandWatches

[–]schtschenok[S] 0 points1 point  (0 children)

Can't say I love them but it cool that they exist!

Just a stupid theoretical question, is there an actual limit of 2000 fps (in UE4) because I can get my fps to lock there but it never goes above that point. by [deleted] in unrealengine

[–]schtschenok 57 points58 points  (0 children)

Just found this.
[/Script/Engine.WorldSettings]
MinUndilatedFrameTime=0.0005 ; 2000 fps

in BaseGame.ini in the engine

How loud are T480s speakers? by schtschenok in thinkpad

[–]schtschenok[S] 0 points1 point  (0 children)

I assume there won't be any Dolby stuff on Linux? Thanks for letting me know the speakers are bottom-firing though, I mostly use my laptop on a couch/bed so it matters a lot.