#⌨coders-cave
1 messages · Page 19 of 1
discord.net documentation sucks ass
👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍 👍
what are you trying to do?
I go to a school for programming I wouldn't have a passing grade if I didn't know how to code
I just don't ever learn anything worth while, just focus on the really basic stuff they give hs
I think I got the short straw considering the good programming classes were taught by arguably our worse teacher to have ever taught at the time
2 out of I think 72 people who took the certifications test passed when he taught
Maybe I don't know how to code
Thing is you can never learn coding in school. Good teacher doesn't teach you how to write good software because that's something that's always changing so you need to relearn it over and over again. a good progrmming teacher teaches the absolutely basics and then how to learn beyond that point
That's what my teachers did in vocational school and all 20 people in my class are good junior level software developers now
Granted it's been a month I graduated
And you also need to start a project on your free time asap
The single best way to learn
İ go to a school for economics
Do İ know anything about economics?
No İ cheated on 8 of the 10 tests İ took
School is not reliable
Fair
I cheated on all my economics shit
Most of it was easily taught by one Google search or common sense
make sure you go straight to slash commands
and you can look at the sb 2 code
InteractionHandler.cs
I'd preferably want both slash and text based commands that just work identically
I'll check sb2 code tho thanks
text based commands are gonna be obsolute soon
They're technically obsolete already but fuck discord I like them
i mean they did the right thing
text based commands had too many issues
the bot had to read every single message and check if it starts with the prefix
Well yes but when I've fully memorized all the commands it's just faster to use text based
i guess so
I use purely text based when moderating this server
Hmm that's true. Big hit on performance that one
I'm gonna be logging all deletions because moderation bot
But adding reads to the mix is not preferable
Maybe I'll just use only slash commands lol
i would definetly start with the slash commands
and then see how i can make the text commands fit
and you always want the slash commands as backup incase discord comes up with some new shit that makes your text commands not work
and then they tell you that they said they were obsolute
Yeah slash commands are gonna be main way of doing it for sure
It's just funny that discord.net setup your first bot tells you to do text based commands and when you go to the page to do so it tells you to not do text based and do slash command instead lmao
and then you cant find the example code for the interaction handler for the slash commands
Yep
because it gives it to you bit by bit and expects you to know how to piece it together
It's shitty documentation
so you have to go and dig through the github examples to find it
My workplace has better documentation for it's apis and the documentation is garbage
you can copy pasta this from sb 2
Gonna check it out rn
and add this
await _services.GetRequiredService<InteractionHandler>()
.InitializeAsync();
in RunAsync in the Program.cs
doesnt matter where you add it
you can check the RunAsync in sb 2 too i think i added it after the registering the logger
Oh god I have to figure out what service provider does
its kind of like ASP.NET if you used it before
you can add services to it
and it will automatically inject them to your modules
what are you doing
why aer you
manually getting the service
use constructor wtf
Because you have to add it to the services either way
This is different from asp.net
It’s a bit similar but it’s not the same
thats quite the pfp you got there
I hate slash commands. I hate slash commands. I hate slash commands. I hate slash commands. Text commands did the trick, why does everybody want me to switch now? I hate slash commands.
But why
Slash commands have easier arguments.. it's implementation in libraries was horrible but it's better now so
yep yosuga no sora is best anime
Aot peak
İt's the only anime i ever finished
Which means I'm qualified to say it's peak
fax
Y'all must have been half asleep when watching
normie.
all these mainstream shit coming out are just not it bruh
I never watched that much of aot but I definitely got to like season 2s end I think
It was well beyond mid
It was great
Still an anime though and anime culture hasn't hit the same for a while
Don't like it no mo
Damn you didn't get to the best part
Season 3 and 4 are the real peak
The others are set ups for it
if you think aot is great you havent watched great anime
İ don't really watch anime
The only ones İ have watched is one piece until the fight with kaido
When it got boring because the fight was stretched over like 50 episodes
Black clover unfinished
Tokyo ghoul like 20 episodes
And that's it
Ive watched a lot of horror anime
Brother I got just the right stuff for you tho I haven't checked them out yet here Bloodsea /Monster /Shoujo tsubaki /Saki Sanoyabashi /overfiend /euphoria/ metamorphosis
Gotta be honest aot felt like peak anime from what I've watched
Alot of "peak" anime uses weird things like Lolis and all that
From what I know atleast
Also I at the least I know anime is Japanese for animation meaning all animation is classified as being anime meaning, once and for all, sponge Bob square pants is peak anime 🤓
good, stay that way
normie, bandwagon, uncultured, clout chaser
What the fuck is a band wagon
I feel like you're acting more like the kind of person you think we are
We just have opinions and you're being kind of a jerk for it
why so defensive
yeah defensive
Begins verbally attacking someone "Why are you being so defensive? It's not like I insulted you or anything"
but the fact that he denies it is funny lol
Sarcastic chicken of wisdom is pretty funny ngl
It's alright but people sure overate it
I honestly miss wit studio's animation style on aot
The animation was fluid
Now mappa just spams cgi
Read the manga
It's 75 percent faster
id say the same but im just trying not to hurt anyone's feelings rn
I don't really understand
Usually being defensive involves deflecting, changing the subject, and overall stating you are not wrong or giving a point as to why it's not wrong for you to think that
Nevermind you're right I was being defensive
Gosh I need to stop going to bed so late
Hol up now
I have no real response you're 100% right
I barely managed to watch the first season
I don't get where he's coming from
I enjoyed the first season, but I guess that was mostly because the anime did fighting In a way I liked
I was younger when I watched it
Thinking back that really was just it
They ruined mikasa
That's unforgivable
She looks like a man now
Fuck peoples feelings say what you wanna say
If anyone actually is butthurt for it it's their problem they take internet people's opinions so seriously
lmao imagine watching the newest season its goofy af
the comedy is....cringe, like at least on the first season they have some good side comedy but jesus cant bear the 3rd season
It's alright but feels incomplete
i wanna make a language where this would print Hello World
part of a program im writing
File file = new File(target);
while (!file.exists()) {
// just wait ¯\_(ツ)_/¯
}
return target;
java 🤮
I hate that that is what the children my age want to see 😭

java
What's wrong with java?
idk mayby it's because it's the beginner language and because im a beginner...
Its
- Old
- Slow
- Shitty
- Monopolized by corp
- Shitty memory management
no
its
- Oracle
Look at #5
it doesnt matter
not all languages need to be very fast
not everyone want speed
otherwise you'd see everything written in rust
That not #5
Performance in general is not needed to this degree unless at very large scale
public static void main(String[] args) {
}
yeah yeah 'java v21 doesn't have this anymore' but really in any actual java codebase the chances of it being java 8 are nearly impossible
Ok
Ok
we should all make a universal program language, extremely fast optimized, easy to learn and understand etc
c# supremacy 💪
That would be far too easy
(and boring)
that... literally the purpose..
asm
That's literally asm
it's not universal, proof i didn't knew it, at least i learned something
boilerplate, oracle's greedy license
I have no idea what that means
yeah sure
with your 10 bazillion lines of code for hello world
i see you talking with haydot about hte millions of things that are not working out 
skill issue
i think that 10 bazillion lines of code is just the print function, needs another 5 trillion lines for declaring the hello world string
Y'all are the embodiment of skill issue
myString: db "Hello world!", 0
i was being sarcastic
okay now check if the first 4 letters are "Your" and if the string contains "mum" and if it does print "Your mum"
the 69 bazillion lines of code shall commence?
in C# it would be
String someString = "something";
if (someString.StartsWith("Your") && someString.Contains("mum")) {
Console.WriteLine("Your mum");
}
oh look easy to write and very readable
now what if it's a collection of strings
you can do it with one line
public IEnumerable<string> ContainsYourMother(IEnumerable<string> strings) =>
strings.Where(x => x.StartsWith("Your", StringComparison.OrdinalIgnoreCase)
&& x.Contains("Mother"));
That's surprisingly easy
In reality the check in c# is probably longer than it would be in assembly because the functions in c# that do this are actually fucking huge
And in assembly you make them and all you really have to do is just go through each byte and check if certain combinations are what you are looking for
That's like 30-40 lines of code if you filter all the useless things
the functions in C# are actually huge because it has all the safety checks needed
if you add all the safety checks needed in assembly it would be big too
and its all about practicality and DX
the DX of C# is way better than assembly 
Is it illegal to nvm you guys would ban me for asking this
Jk you wouldn't (just incase)
bro look at you you are comparing c# and assembly
you have gone completely insane
its like comparing latin to english 💀
but not the roman latin but some very old barely known version of latin that was the demo version of the newer latin
im not the one who started it
E
For the past few days I've been trying to make an env on my grandparents computer to work on my os but it's so fucking slow 2 hours just to clone gcc source
Mostly gits fault for over engineering a download but 💀
I didn't know a lot of packages existed when I first made the makefile, so I haved to change alot of it because I installed cross compilers manually 😦
jfc i dont get that argument, people drop that all the time
everytime i say c# is better than java
some mfker will pop up
and say "you cant compare java and c#" like bruh wtf are you saying
you can compare anything with everything
and in this context, yes, i can compare assembly and c#, why cant i?
That's why I hate building a cross compiler with a passion and why I don't switch distros as often
Because comparing c# to assembly is like comparing Egyptian glyphs with modern English
exactly
egpytian glyphs suck and have no use
yeah, that means c# is better
:)
.
your skill issue is...is.... is you cant write c#!!!!!
- I can I started programming with c# unity
- Your skill issue is you you too much punctuation
guys, im not a coder but pls make a bridge mod
Like it can be like 3 block big bridges, and ships can go under it
i know that 1 block tech but that look gay
ok
Roses are red,
violets are blue;
Unexpected '{',
At line thirty-two.
Yeah 😭 can't some gigachad prebuild every target for every version and publish?
I left it overnight and it's still compiling!
I don't even know if it will compile right
At least everything runs lol
Goddamn how long did you sleep how is it still compiling
For me its done in like
15 mimutes
bro has the intel year 69 jesus christ edition
its made out of 1 core which is made of wood
It's a pentium on latest win10 with a shit ton of bloat and probably under clocked also
you guys give windows a lot more shit than it deserves
yes it takes 50% of ram when your idle
but i've played games that use 90% of ram so windows doesnt really take up your ram when you are actually using it
same thing with cpu usage
its 10%-20% idle but if i use up all of the threads it will probably allow me to go to 95%-98% usage
so yeah it uses more ram and cpu than linux but it is not really that big of a deal
unless youre running a underclocked pentium
That's just task manager
but linux problems are a way bigger downside than having some performance issues
and linux users sugarcoat it so hard
it makes new people think linux is a perfect os
but when you actually use linux and start running into all the problems and compatability issues you will know
and if you critisize linux for the problems it has every linux user starts attacking you
python coders be like: 😔
I made a code to mod the game where you can have triple map size from titanic *
Python is 3 years ago lol
Python is soooo 3.11.4 years ago
On .
linux security bruh
linux is more vulnerable than any windows os right now, it's just not targeted quite often because windows is the most common used os
@oblique dust
ello
dont worry
there are a lot of dumb people like you in this server
you are not alone
What did bro do to you
As a member of dumb, i can confirm
Why coders cave?
Cave for coders
Which coding language is the best for total begginers
I have python but it won't do the commands and stuff
Idk, ask your clone
Dinosaurs:)
Computing can be very stressful right? Anyone want to read a joke???
What commands
Print, etc
do you have python installed
oh yeah this channel exists
print("yes") --to show off lua
That's like 5 other languages too
sure
jus showing off lua
also no offense but " shut up you self destructive weeb who cant even hold a conversation"
***Visual Basic 👽 ***
its basic 👽
Yes
okay
how are you running the commands
are you opening a command line or are you using a .py file
Oh gosh please no
I'm getting flashbacks just hearing that name
I usually wouldn't interfere because that's a good comeback but you are trying to "show off Lua"
Which is illogical
Because people usually try to hide their liking for Lua because of how shit it is
fake hamza
Bro what
Да блять
lua aint shit
where's hamza?
🤣
i aint part of all
Oof Python is pretty much the only language i can sorta do stuff on
Lua is pretty similar though
i dont think it is
Well, I don't know much about Lua, just the mere basics
And the syntax is kinda similar to Python's
Emphasis in the word "similar"
the only similarities I see is having no semicolons at the end of statements and dynamic typing
🥔
Oh well
I'm a beginner after all and know little about lua
You must be banned from ever touching both c and c++ ever again
try c# for a day
cool
I'd like to tbh
I've heard it's a common language for game development
becasue of Unity, which forces you to use it
its not as battle tested or as supported as something like Rust or C.. Its also different from alot of languages and a hassle to learn
Bruh
stop spreading misinformation
C# is very good if you use it the right way
And its way easier to use the right way than things like rust or c
ok
if c# is not battle tested, then python, java and js is half assed
javascript was made in 2 work days, java was made for a remote, python is just python
so..
they very much are half assed
then c# is most reliable language :)
The
chat is offline
Yeah cause C# isn't used in one of the most popular desktop and web application frameworks or anything
JavaScript was a mistake
Yes you just gotta learn every fucking oop rule there is to be able to do half of what rust does with like 6 main rules total
Oop was a mistake
Even the guy who made it admitted it
They also keep updating the language with the most random features that will end up being used a total of 5 times total and noone will even learn about them
i almost use every new feature in C#
Most of them are really good
Oop is very good if you know how to use it
Which is not very hard to do
What's the point of overcomplicating the basics of a language
When you can have simple basics
And actually build more complex systems from there and personalize them
Sometimes time is more valuable than performance
Sometimes you dont care about speed or clean code because sometimes its more worth it to rewrite your apps than expand them
Ill send you a video of someone talking about this when im back home
readability and time to write it, i dont wanna write and scroll down thousands of lines of code just for a simple task
Oop doesn't shorten lines
It expands lines
Because suddenly what you could do in a single rust structure is a done in a class that has some random type that is somehow different from it's other types when it only has one minor change
And it's only readable when you already know oop which wtf is even the point of it then
Hello, ask Maxim to optimize the game. The last update just killed it, not only that culture experience is accrued regardless of whether the game is paused or not, the device itself (in my case, the phone) heats up so much in 10-15 minutes, which then leads to its breakdown. about half an hour of play and the phone needs to be taken in for repair, due to the fact that overheating leads to the fact that the phone constantly thinks that the phone is very hot and does not want to charge.
You are in the wrong place for that, we don't talk about WB here
wdym it does
you have inheritance and reuse the same code many times
Who doesn't reuse lines of code
@orchid frigate https://www.youtube.com/watch?v=2Z4fZtSKlcE&t=875s
The Line Of Prime rant is one I've been thinking about for way too long. I really hope this one is helpful. Move fast, move smart, build great things.
ALL MY VIDEOS ARE POSTED EARLY ON PATREON https://www.patreon.com/t3dotgg
Everything else (Twitch, Twitter, Discord & my blog): https://t3.gg/links
S/O Ph4seOne for the awesome edit 🙏
watch this
well see the difference is you've been programming for 2 years
and both theo and theprimeagen have been programming for over a decade
so if you dont trust them then yeah idk what to tell you
go makek your 5 requests per minute api in rust
oh lmao nodejs moment, 5 request per minute api endpoint 💀
the lack of moderation within clyde bot is just astonishing
it can say someof the most unhinged shit imaginable thay would otherwise be blocked by chatgpt
Yeah it's really fun to use because of that
Without the blocker shit it's very very smart
Probably modeled your entire personality after seeing a sentence you said
And then you trick it and it becomes dumb
Anyone who uses Linux, can they help me partition So I can download windows 10
I can
Basically put all the Linux memory to root
And put very little memory to home
Do I need to use terminal for this?
Generally yes but matters which distro
Also do you know how to use a Linux terminal in general
no
Because if you don't then I advise you to learn the basics before installing because sometimes things go wrong and you need to know what to do
i used an entire youtube tutorial to install windows onto a usb
Oh
i want to game
most games dont run on ubuntu for some reason
i wanna play cycle frontier and shit with my friends
Ok so you want Ubuntu with windows on one system
just windows but if not possible im fine with dual boot
What
i only got ubuntu because i fucked up my first hard drive
So you don't want linux
Then don't install linux
How do you make this mistake 😭
because
Ok so just
i have gparted and shit
Insert USB with windows
already in
the instructions say theres no partition i can use at all
Just install on the entire disk
none of them work
Don't manually partition
You don't need to
Just install on the entire disk
It will wipe it out thi
Tho*
Also you can't really fuck this process up
i choose advanced option or no
The worst thing that can happen is to corrupt the installation in which case you just restart
No just wipe the disk or whatever it says on the new installations
It should have that option
Oh so 11
maybe trying to install windows 10 was the problem
mk ill try it now and see what happens
?
no valuable info no
No Linux yet
when i was it kept saying no partition worked
i had to download windows installation from ubuntu and now i could but
Hold up gimme 1 minute
Ok so do you get to a screen
Where you see all partitions
On your hard drive
Including unallocated memory
Btw do you have any unallocated memory
Yes but it's less than gigabytes I'm pretty sure
Or a similar screen
Doesn't matter
Can you show me all your partitions with the Ubuntu terminal
Actually don't i don't care about them
Sure
So you are ok with wiping all your hard drive data
Yes
Ok
All important shit is on onedrive
Do you have a secondary computer in case you need to install the installation media again
My sister's yes
Ok
Or my brothers 2008 pc
So when you get to this sceeen
Delete all partitions that aren't unallocated
Because you.dont need them anymore
This will wipe all data on them including linux
Bet
Select the unallocated memory
And install windows on it
If you want you could cut it in half
In two partitions
So a C: and D:
But that doesn't matter you can do it any time anyway
Yea
That's what you gotta do
But after deleting partitions there is no going back to Linux so be careful
No matter what?
You will have to reinstall it
K
The hard drive is fine it will just be empty
Do I use custom install windows only
I have done this process a couple of times btw I even have dual boot rn
What
What works
Wait so you are doing it right now
Ok nice
I didn't delete because I was afraid I'd damage or corrupt something
Thanks
Now I know for next time I'm in this situation
Nah when partitioning the only thing you can lose is data
Just gotta figure out where I can buy a windows 10 pro license
I mean do you really need it
So you are gonna buy a 120$ license or however expensive they are
For cosmetics
Wait how does it even look the license doesn't do shit
#include <efi/efi.h>
#include <efi/efilib.h>
EFI_STATUS EFIAPI efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
InitializeLib(ImageHandle, SystemTable);
Print(L"Hi");
UINTN mapSize = 0;
EFI_MEMORY_DESCRIPTOR* memoryMap = NULL;
UINTN mapKey;
UINTN descriptorSize;
UINT32 descriptorVersion;
EFI_STATUS status = SystemTable->BootServices->GetMemoryMap(&mapSize, memoryMap, &mapKey, &descriptorSize, &descriptorVersion);
if (status != EFI_BUFFER_TOO_SMALL) {
Print(L"uefi start, memory map %r\n", status);
return status;
}
Print(L"test");
while (1) {}
return EFI_SUCCESS;
}``` "test" doesnt print 😭
like it gets to SystemTable->BootServices->GetMemoryMap and doesnt want to keep going anymore
whats the point of having error detection and all that if theres an error it completely freezes
that shit is the most useless shit ever
you get nothing for 120$
it is not worth it at all bruh
I have 2 friends that got it and they dont even want to use their computer anymore since they haved to pay for pro
just get windows home
your losing nothing
getting pro doesnt even sound "pro" like it jsut fucking makes you look dumb
I once saw a post of someone manipulating chatgpt into generating windows keys though I'm not sure if its legit lmao
you can buy licenses online for 20 bucks
That's why I stopped using usfi
Sometimes
It just doesn't work
Straight up freezes
No explanation
It’s enderman, their video got deleted
Ooooh disgusted it stinks in here
it doesnt
you have a skill issue
You need a new JS Framework with algorithmic asynchronous smell management
i believe that's called sharding
Yea go get a shower
What was it
2
I see python is the best
You didn't take my answer into consideration
for road start in the PROGRAMMING
2
It's like boot camp
Really tough but gets you well built
But for like 2 months
You will have no idea wtf you are doing
the c++ good language

I don't know what that emoji means
why are ask suck ass
What
sorry for bad english
C++ sucks because it makes C into something it isn't
A modern object oriented language
C is simpler
Less basics so you can build the language on your own
thanks for information
The only thing c++ has over c is better support and structs that aren't annoying to declare
I think c is not the best because he's old virseon
If newest was best python wouldn't be popular
Trust me I have used them both alot
C is better
yeah python is not popular but python is easy to learner
You misunderstood
what I can doing by c
Not alot of modern stuff but
Basically anything if you are willing to write in a lower level
Graphics non os programs
Games if you are insane enough
ok I will learning c
how many time take learner c language
Do you wanna make games
Yeah
Then learn c#
With unity
It will take you like 1-2 months to learn the basics if you do it every day
Or relatively every day
I want make games
wow thanks for all this information
I will learn the c language
I mean, it's got to have some uses at least, right?
No learn c#
With unity
More appropriate for games
It's the exact same as C it literally has the same syntax and the same uses and the same compiler
It's just more modern but in a bad way
Most of what I've heard is that C++ is more likely to be used in professional environments
I should probably do some research on it on my own though
It's because that's the trend
C is old so it must be bad
And c++ is oop so it must be good
But in reality nowadays if you need something that c++ can do companies choose it's successor rust
Rust is superior to both in pretty much every aspect
Even the Linux kernel is currently being rewritten in rust
But it will take a while because it's absolutely huge
How to get better at learning OOP?
most of windows is getting rewritten for rust too
all we need is now is ibm 1401 rust compiler
In a perfect world everything is in rust
But our world.is not perfect😞
Damn this emoji looks goofy discord
Thanks bro, now im gonna git gud
Lol
with how much your glowing up rust I gotta try it again now
I dont have the space
for visual studio
I would delete more files but theres no more files to delete
installers installers installers installers
to build rust I need rust, to get rust I need to build rust
@orchid frigate helppp
I cant install rustup
and the "binarys" is a fucking installer
and its a shitty installer too
cant choose where to install
How.
Don't tell me you did like me and accidentally put a shit ton of memory to /home only to realize that that folder is fucking useless
The entire process takes like 5 clicks how are you struggling
Are you downloading via a package manager or manually
this isnt linux its windows
also why would you make a paritition specifically for home
manually but I dont have the space for vscode
I installed rust in the end though
Because I made the mistake to have someone install Linux for me back when I first started using it
💀
Dw I reinstalled Linux like 15 times since then I learned my lesson
thank god
The idiot at the computer shop though home was the important folder of linux💀
I just put everything in the user folder and hope for the best
What happened to rust
Btw rust and vscode suck
I mean they are a really good combo
But the dependencies are slow af
vscode doesnt manage dependencies wdym
It takes like 10 minutes for the rust dependcy to boot up
I mean for like autocorrect
yeah it allways errored on me when some dumbass plugin installed it for me
it doesnt even check if rust is installed or not
It checks if there is a rust project in the workspace
That alone takes it a full moon
And then it loads up each fucking crate on its own in the background
Which takes 10 minutes
bruhh
In the mean time you can't do shit cuz you don't have autocorrect or error correcction
Or
Nothing
Error highlight
I meant
Nah for rust it's rust analyser and it's good when it works
Really fucking good
It's helpful as fuck
But not fun to boot
Especially if you are using a game engine crate or something of huge size
oof
Oh also in rust you can just have an entire game engine as a crate
sounds fun
Which is pretty cool I currently use one and it's not very fun to use but
which one?
im in a server with a ton of rustaceans and they talked about that alot
It's also kinda weird to write in
It has na ECS structure of coding or whatever
Which sucks ass
i fucking hate it
But I'm.forced to use it
I hate when you haved to use something you dont like
fucking just never use a library ever again level
Most normal looking ECS function
AAAAAAAAAAAAAAA
It's bad but it gets worse
Because if a system requires more components like ten
A single iteration would have to include every fucking one
So imagine the for function and if it used multiple stacked for functions
It's not a good time
That's why I hate it but I'm also weirdly addicted to it
most sane rustacean
I have said it before rust is an addiction or like a cult
Önce you join it
You give your life to it
ok
And it makes you write weird syntax all your life
I used to dream about that too
Until I saw how boring and complex graphics is
And how drawing a triangle with vulkan too like 600-1000 lines
yeah
and thats a fucking static triangle
imagine implementing a function to make a triangle out of thin air from just a few coordinates
I remember quitting Rust purely because of the error checking
@orchid frigate rust is using my mingw ld instead of its own
lmao
so thats why rustup wanted me to install vs.. for gnu.. thats the most pointless shit ive ever seen in my life
oh wow and I need rustup to get this specific library
💀
Bhh
it needs gcc_eh
and I got mad at it a year ago because of error checking
it also allways took a ridiculous ammount of time for me to make simple things
and the optimizer would optimize out code randomly
like I would have 4 loops to iterate and do some math over a four dimensional array and it would optimize out the last loop and never do the math
and that was with the cargo run I cant imagine how much it would optimize out for release
zig's error thing is also fucked up but its actually tolerable
function cannot return an error 
I figured out how to make it go away
on error, trigger an error
stdo.write(bytes) catch unreachable;
unreachable creates error
no way
C ```c
#include <stdio.h>
#include <stdlib.h>
int main() {
char *b = malloc(12);
scanf("%s",b);
printf("%s",b);
}vs Zigconst std = @import("std");
pub fn main() !void {
const stdo = std.io.getStdOut();
const stdi = std.io.getStdIn();
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();
const mem = arena.allocator();
var s:usize = 0;
var bytes:[]u8 = std.mem.Allocator.alloc(mem, u8, 12) catch unreachable;
s = stdi.read(bytes) catch unreachable;
s = stdo.write(bytes) catch unreachable;
return;
}```
why is it so overly complicated in zig
maybe you are not doing it the right way
is this docs?
i dont see why you need the std input
oh you are reading yeah
maybe because C has written functions that do the same work 
from what i've heard zig is very barebones but very enjoyable to program in
it natively supports uefi
just found that out
and theres no need to build cross compiler
all targets... theres alot
bruh targets my smart carpet
yes
theres also alot of stuff included in the actual language that a kernel would have
it has scheduling watchamacallit
Scheduling what
İn the German language is that word
The os dev has a zig bare bones
Well now İ gotta learn this language asap
You can make a builder in it without using makefiles?!?!
İt may rival rust ngl
İt looks fucking awful to write in
Ngl
its like C
It feels like C but has the complexity of C++ and performs like Rust
tasks https://ziglang.org/documentation/0.10.1/#Async-Functions you can have zig do threading for you in the kernel
watchamacallit - watcha ma call it - what do you call it
it also has pageframe allocation too but thats part of std so idk if it would work with legacy booting or even as a uefi app
😭
Buyind laptops is hard. I'd buy a framework for the customisibality but they don't ship to finland yet and probably wont shit here for some years
These specs for so only 1200€ is a fucking steal
no other company allows me to have a lower power cpu, 32gb of ram and 1tb of storage
and the best part would be that if I ever wanted more ram I can just buy a second stick and put it in
64gb so easily
today I learned that this face |= is actually a single pipe equal in C# and has actual purpose
well x |= y is basically x = x | y you can also do &=
bitwise operation can be used to optimize stuff to the limit
never used it before
The whole language feels unfinished
Like it's good and there are some things that are nice
And I like the c feel but it feels empty like idk maybe I'm just not used to this style of coding

dont use C# on everything
i wouldnt use blazor
not ready
nextjs is too hot too
with typescript ofc not javascript
wasm is just not ready
Aight lemme just make my kernel in c# brb
Funny thing is the os dev wiki actually has a bare bones on c#
Also I gave up on zig it's cool but
Noone uses it
So learning it is a nightmare
The docs arent all that helpful either
Kinda a shame tbh I was starting to like the language
Fr
They aren't
Alot of the actually useful stuff is hidden in small text and a lot of it isn't even explained at all
It also encourages bad practices
How would you know its a bad practice
If the makers of the language are telling you this is how to do things
look at memory allocator docs
its also very new like Dakata said, so I dont think even the creators know what the best practices are
SHIT WRONG CHANNEL
lmao
Everything is hidden in small text
And it's explained well but
It's a nightmare if you just want to quickly look at something
Also the std docs are like hidden or smt
I can't find rhem
And because noone uses it I can't use my approach of learning while coding because I have no fucking resources
The reddit is for some reason private
Go to downloads and click on it
There's like 1k subbredits that never came back after the blackout
is there any way to change the zombie infection to not kill units like it used to in older versions?
i mean
just make your own c# compiler
then it will work :)
r/Suomi is in read-only mode. Only reason why I don't use reddit almost at all
There is already a compiler
But no low level Deb actually takes c# seriously
you can only target so much
and C# is one of the most diverse languages
os development is just isnt popular at all for C# to even consider it
Yes it's not made for it
It's not even a compiled language
And low level stuff is kinda difficult to do in it
I doubt it even has ffi
It wouldn't make sense to have it tbh considering it's not compiled
its going to be compiled soon
they are moving from jit compilation to aot compilation
which means you dont need to install .net to run C# apps
you can already do aot compilation but file sizes are huge and its limited
having both jit and aot is a huge advantage though for optimizing your app
jit allows for way better profiling
also allows for better dx since you can do a lot of tricks that cant be done with aot
linq
holy
reflection
imagine the capabilities
c# reflection is the best in the world
maybe even in the galaxy
c# reflection in aot?!?!?!?!??!?!?!?!??!??????
reflection in aot is probably gonna be impossible
but they are making some new things that can be used instead of reflection and work with aot
i mean you can already avoid using reflection almost always but reflection can make your code look so yummy man 😔
Guys I need your opinions. I'm deciding between 2 laptops rn both are exactly 2k€
Choice number one is Lenovo Yoga Slim 7 Pro X i5-12/16/512 14,5"
It has i5-12500H, 16gb of ddr5 ram 512gb ssd, 19:10 120hz 3K monitor so absolutely stunning monitor and great build quality
https://www.gigantti.fi/product/tietokoneet-ja-toimistotarvikkeet/tietokoneet/kannettavat-tietokoneet/lenovo-yoga-slim-7-pro-x-i5-1216512-145-kannettava/455564
Choice number 2 is Acer Aspire 5 i7-12/32/1024 15,6"
It has i7-1260h, 32gb of ddr4 ram, 1tb ssd, crappy 15,6" 1080p monitor with inferior build quality and speakers
https://www.gigantti.fi/product/tietokoneet-ja-toimistotarvikkeet/tietokoneet/kannettavat-tietokoneet/acer-aspire-5-i7-12321024-156-kannettava/616161
It's a hard choice because the first one would look cool, have absolutely banger keyboard for sure and have nice monitor and speakers
but the second choice just has more performance for the same money
and not like a little bit more
the cpu is about 20% better, double the ram and double the ssd space
only problem with the ram is that it's slower but shouldn't matter for my purposes
the lenovo one also has way better battery life
I got a Acer Aspire 7 laptop with all the same specs except it has just 8gb rams
It has a very bad build quality and it's hinges are all loose and I feel really anxious moving it around as it wobbles
After 1.5 years of use, It's a bit choppy and I'm considering expanding the RAM
The battery is 💀, you always need it to be plugged on to the charger and it's won't run for more than 1 hour without the charger
kinda what I expected lol
the price was too good
lol
thanks for the info
I think I am gonna get the lenovo for now and upgrade to a framework when those start shipping to Finland
I would lenovo because they have a reputation of lasting longer in literally every aspect
i5 and 16gb could also run VR and no problem with any games
512gb is tiny though I dont think it could fit anything on there
better battery life or bigger battery?
that lenovo for only 999 sounds like a fucking deal man
Yeah that's why I'm so tempted by it
Uhhh both?
could be a bigger battery but not better battery life because more pixels on the screen
but its i5 vs i7
do you think you need that much performance?
Not really
Yep
if its just for work then yeah the lenovo
it has less ram and smaller ssd but you wont really have big files if you are just using github
you can just delete whatever projects you dont need
and more pixels will make it nicer on the eyes and less straining
I wanna code, maybe have a kali vm to train cyber security because it's cool
also probably has better brightness for outdoor use
the acer probably has a matt screen
the lenovo one will have a glossy one
more clear but also reflective but i think its the cooler option
lenovo laptop monitors are god tier
Ello
Been a while since the last update
So here we go:
Early ver for reference:
is that two sprites on top of each other
one for ground and one for grass
or is it one sprite that contains both the ground and the grass blade thingies
Two sprites
One for the ground, another for the slot
The slot could be a resource (Trees, flowers and etc) or some building
And how would I merge two sprites?
just make them one sprite
That's a little difficult
put the grass on top of the ground and make it a single sprite and start using that
it is the harder way but it shouldnt be that difficult
just keep the origin point where it should be in the middle of the ground in the sprite
and you need to change the logic of your code but that's about it
but that's like at least 70% less sprites
also please tell me you started using a sprite pool 💀
That would mean that I'll have to create every variation possible which is a tedious and time consuming process in addition to changing the flexible system
By sprite pool you mean the possible sprites for the randomisation or just hiding the sprites?
i mean taking sprites that are out of the screen and reusing them
instead of making new ones
if you dont use a sprite pool you would need like an rtx 4090 to run your 2d game man 💀
or actually its not even about the gpu its just very cpu intensive
And yet it runs on my gtx 1060 i5 8400
creating new objects is very very expensive in unity
well its not finished
Object Pooling is a great way to optimize your projects and lower the burden that is placed on the CPU when having to rapidly create and destroy GameObjects. It is a good practice and design pattern to keep in mind to help relieve the processing power of the CPU to handle more important tasks and not become inundated by repetitive create and des...