#⌨coders-cave
1 messages · Page 80 of 1

It costs like what the school gives me for 3 months
im not implying anything with that wbshy
dont get me wrong

modding rimworld is kinda fun ngl
im very bad at making sprites though
i suppose i could make a mod that alters game behaviour
instead of adding new items
if you look at stuff like combat extended it's pretty big
Player_damage = 69420;
Enemy_damage = 0.6942;
basically
I got an idea but its kinda rough
Maybe you could make extended combat
Like new moves and stuff
Idk how the game works but thats an option
yeah you could
i think its a weapon thing
weapons have combat moves
the game is very moddable
there's a mod that lets you basically make factorio
im mid migration
i fucked up
i accidentally set my shell to /bin/fish
when its actually on /usr/bin/fish
and it was my root user
thankfully i can still use my bot to do shell commands and make a copy of passwd and alter the shell and then replace the original one
syntax highlight go brrr
okay fuck fish
its slow as heck
im going back to zsh
this is not relationship advice

but its fact
fish sucks
its slow resolving the commands and its arguments
one command takes like 5s
to resolve
i think im good with no completion at all
Visual Studio Code suggestion is faster than this one
but hey what you expect
its guessing a script file commands
its bound to be slow without any interface
although some lib has the
libname-fish-completion
complete the fish
so its like an interface
eh-
i will leave the fish incomplete
banned
Where BEANZ cave
WHERE BEANZ CAVE
@knotty root thats not very nice nor allowed
Ah yes... The nerd cave
character development = null
I made as many syntax errors as possible to piss some people off so that this chat lives for once
master plan

back to learning rust
i read more about it and
it is VERY cool

it is gigaspeed
which means i can implement more complex logic
use termux
no
dcoder sucks
it runs your code on a server
not locally
dcoder is not customizable
it requires internet to run
most things don't work
i think so
although the only downside for compiled binary file
is that you can't run them on your storage
only inside the termux storage
that's fine
termux filesystem
not really
its just
its gonna take atleast 500mb
also
install the f-droid version
not the playstore
this is a based day
After calling it amogus it printed mogus 😵 😵 😵 😵
whaaaaaaa
jk but that would be really cool
QEMU devs would have gain a large ammount of respect from me
Ok well I guess its not them that do it
but still
omw to make suslang
Wtf is that character even and why does it exist
Pt

You just gotta make sure it has inline assembly
and can use extern C
and has pointers
and explodes your pc 😳
program.sus
I could integrate that into the filesystem with some funny attributes

attributes:
System file
Sus file (Serious Unemployed system)
When the file is sus (Serious Unemployed System)

Unreadable unwritable
Suspiciously Unpleasant Sysfile
Suspiciously Unpleasant Susfile 😳

Making an OS is great
you can do stuff like this
while writing the most unreadable code ever
I could mark viruses with this attribute
imagine a virus written in amogus memes
Written in SUSlang 😳
vent Maintenance() {
press_red_button("sus");
}
OMG I WILL CALL THE ENTRANCE FILE VENT
When the bootloader and kernel are sus
sad
Lets make a poll
Amogus or vent for entrance file
for amogus
for vent

I would like to see the current AmogOS have this as their main kernel function
I know for a fact they dont
because they are on Linux
Pre made kernel
🤔
you know what too tired to make a kernel rn
understandable
ooh
lol
Im in math class while writing a kernel while reading wiki 
based
ok why tf did I decide to write most of the bootloader completely clamped togther making this fucking unreadable
I was like "Hey this will look cool and complicated" but I never thought about the fact that
its too complex
I cant read 😔
Ok I think I got it
Ok yea I found where to place the shell
Making the shell is pretty easy because BIOS is kind enough to let me use its drivers 
There is so much I could improve on the bootloader but Im so sick of looking at assembly 😔
Its actually starting to get annoying as fuck with its incredible unreadability
hmm
i coded fortnite itself
I mean its useful dont give me wrong and being able to turn hexadecimal to ascii is amazing
no other language has that
but its...so unreadable sometimes
english prolly has it
ion know tho
english has everything
Ok well
I shouldnt have touched the very delicate bootloader code
Its no longer working
Uhhh im pretty sure I can git restore some of it...
ah I can
thanks git
kek
fuck the 16bit shell it doesnt have to exist anyway
the text editor is buggy af and the only other feature is halting the cpu
hating the cpu*
fuckin hate this bich
horrible horrible person
gpu: cries
GPUs are rarely used tho
not if you're a GAMER
My gpu rests for most of the time
or a deep learning enjoyer (read as masochist)
I wonder if my pc will explode if I make a batch file which opens gta 5 constantly at max settings
yea
gg
lmao
safe mode?
0.42069
so 0?
yes
You picked the wrong option again...

pub fn main(){
println!("Rust be hard");
}
I would say its harder than C
Because of how many features there are
C is more... cramped together
So using it and remembering is easier
Ah so you are learning fast
I had to start making an OS and implementing macros myself to know that
I always wondered why it had to have a ! at the end
no it just said so in the tutorial
the tutorial just
goes over increasingly more difficult scripts
while breakig them down
eh I dont recommend watching tutorials to learn it
they usually drag things out too much
Plus experience in the language will make you better
So just set yourself a goal and try to finsih it, or atleast thats what I recommend
i like knowing the absolute basics of a language
also a lil tip for rust strings
There is one basic rule for both strings
if the one doesnt work, just use the other
There is String and &str
String is the implemented one
while &str is the system one
system as in
I personally hate Strings so I recommend using &str
Built into the language
oH
the other is implemented by the std
2nd rule
dont ask questions like that unless you need em to finish your code
Otherwise you will overload on rust's questinable design
basically how rust works if this doesnt work, either try something else or use 10 different crates
Its pretty good and easy to use but complicated under the hood
isnt that most languages
its much worse rust
Its already efficient
MORE
it has a garbage collector

also
please
please
dont try to understand traits
just use crates made by people who understand them
I have to at least attempt
they are complex as all hell
Its like decorators early on with python
i tried
i didnt understand but i had to try
well good luck with em
also also also
The rust compiler is amazing
because it tells you EXACTLY what went wrong WHERE it went wrong and how to FIX it
Unless you do no std stuff
in that case it will just die itself or smt
nice
you can start with the random crate and see documantation
you can generate random everything
LMAO
nice name
and ints
are not ints
but is
i16, i32, i64, i128
TOML is used in a number of software projects, and is implemented in many programming languages. The name "TOML" is an acronym for "Tom's Obvious, Minimal Language" referring to its creator, Tom Preston-Werner.
and you can take their max and min values from
fn main(){
let num = i128::MAX;
println!("{}", num);
}
or min
thats epicc
see what you will get
i cant do it rn but
ok well
i know its a long number
also prints are weird
because you cant say
println!(var);
//no
println!("{}", var); //yes
ok the second one is correct the first isnt
does it always stringify
Its good at doing that
or does it print it as int if the value is an int
Everything in low level languages is unreliable
The thing is thats not entirely true
Print is reliable
But if you put some random data type that was never supposed to be a string as an argument
The compiler will ask you if you are drunk
lol
Also there is like
1000 different data types
Wait no
More than that
Around 10k built in ones
Because rust has something called
Result
Idk what it means or how to use it
But its there
Pretty sure the compiler handles all the hard work on it
🤔
isnt result like
succeeded / not succeeded
Result<T, E> is the type used for returning and propagating errors. It is an enum with the variants, Ok(T) , representing success and containing a value, and Err(E) , representing error and containing an error value. ... In the std crate, Result is most prominently used for I/O.
@orchid frigate
Probably idk
I never decided to learn it
Also those triangle brackets
No idea what they are either
They are like cpp pointers for me
I only use them when a crate asks me to use them

which makes it awesome
ye
nice
use core::panic::PanicInfo;
#[panic_handler]
pub fn panic(info: PanicInfo) -> !{
println!("Failed to run the program because: {}", info);
loop{}
}
Thats it
the enitre code
actually
you can ignore the things on top
oh wait
jmp isnt a rust thing
lmao
actually in all reality
this can really be compressed more
hMmm
Wath da hel
I'm no computer expert
Im so confused as to why people come here and say that they cant code for no reason
like you dont have to come here if thats the case
ay so I wanna call the kernel loop something kooler so do any of yall got any ideas
I would be happy to steal them from you
and not credit you anywhere
thanks
susloop
sussierloop
wbshyloop
call it FINLAND
already used that in the assembly code
web game engine

I swear I didnt know that was a thing
a game
Resnse?
resnse
i had an idea about modular production
like
youd build a factory
and factory would have x module slots
and you would install, remove and swap modules
Alox
Creative idea unlike 80% of steam games nowdays
and the battle system would be uhh
I swear I had money I wanted to spend a few days ago on a new game but I barely found a game thats worth
individual units
building into a row several lines thick
and attacking other units based on their range etc

Ok also
put a giant glowing tree
in the background
its gonna make the game beatiful
- different dmg types + airplanes!!! + actions the player can take + epic retreating if you die
hi
Let’s focus more on the cave part, caves are very echoey would you say so?
Hi
yes yes
What is that
ez
programming in a nutshell
sees thing
damn this should be easy and simple
3 weeks later
AAAAAAAAAAAAAAAAAAAAAA
Uno que está bien vrg
english only here
?
easy you say...
we not gonna talk about the countless hours of development and the amazing marketing skills you must have to make any money on it?
I mean that could mean anythin
for a more sarcastic approach I would have chosen this
or this 
Making money with a game requires shit ton of luck and time atleast
Good marketing skills help too
yes
also not falling into a game loop
where the game will be more p2p/p2w
and it'll make the community quite toxic
who
yeah i dont think you can really call those production ready games
i mean
you can
but its like
indie af
Os devs: fuck no
Stack overflow as the website has near to none stuff about os development
And in its actually meaning
Which is literally the stack overflowing
Its quite dangerous
And can cause triple fault/permanent damage to system
set it close to the edge so the motherboard isnt affected too much

But wait wouldn't it overflow in the hard disk/ssd
Because memory adresses are there
What will happen to my ssd 🧐
it will become soggy state drive
liquid state drive even
LSD? depends 


the people who invented the word stack overflow
were boring
why didnt they name it
unexpected stack detonation
It means too much stuff is pushed to it so everything pushed to it overflows
Which idk what happens afterwords
Death
I think i read somewhere the cpu triple faults immediately
Yea
Triple faults suck tho
Cuz like when the cpu triple faults it reboots the same os
that has no payload except triple faulting the cpu each time windows gets an update

forced update
Well still fixable but annoying
Cuz you can tell bios "ay please dont like boot this os its bad"
it's bas(ed)
The thing is triple faults are pretty useless because no code can be executed after an imposible task is given
So its literally just the cpu killing itself so that it doesnt have to try diving by 0
But now I wonder
If triple faults didnt exist
What would it do when it actually tried dividing by 0
Or accessing 0xfortnite
I cant
Triple faults are integrated into cpu

Oh
yeah but like
why restart when can just
if divide by zero:
no
no
why dont cpu manufacturers do this
and what would happen if by pure miracle triple fault didnt happen and cpu tried to divide by zero
Because when the cpu is booting its in 8bits at first which has a stupidly little annount of space
Then it goes to 16 bit
Then the kernel takes control

Plus cpus can't really that much without integrated programs
Such as BIOS so the real question is why BIOS or uefi not deal with triple fault
And i got the answer
256
With 8 bits, the maximum number of values is 256 or 0 through 255.
sucks being a cpu
The reason they dont deal with triple faults is that they cant
When os takes control and kernel does its stuff its in complete control over the system even if running on bios
Meaning BIOS doesn't know what tasks are running
So it has no way of stopping anything
And thus everything goes straight to cpu
sus
so basically
triple faults were made as a failsafe for everything to save space
But like its quite funny because the os is literally one giant loop
Yes
yeah makes sense
everything's a giant loop 
And the bios is calling that loop
Ok well I think I know what happens when a triple fault accurs
Whatever code handles the cpu it has this command
on_triple_fault:
hlt
Just written in binary or hexa
Probably
hlt is hardwired to nuke everything?
Yep
ebin
It completely shuts down the cpu
computer kaput
I use it
or does it emergency shutdown
It halts
i gotcha
So no reboot
Its basically telling the cpu "Either the user is turning off his computer or something went really fucking wrong so you gotta...stop yourself from living"
Yea
switch to windows 4 rust
for the time being
debian is way too uhh
slow to work with??
Wait
im not used to it so it make sense

Compiling does take a while
yeah that makes sense
On windows hello world takes 2-3 seconds first time ran and around 0.25 seconds afterwords
wait
Test feature of rust sucks btw
Everyone loves it but I hate it
Its too complicated for something that is easy
uhhb haven't used it but im guessing what it does is it only checks the code and doesn't make an object file or whatever it compiles to
Probably very fast
0.25-0.50
Because the thing that takes the most time is making the object/whatever file
yeah it does not make an executable
It might be the .lock file but I doubt
either way
Also pro tip
that should b good
If you hate warnings
Yea they are all high level languages
instead of being like python

im fine with warnings
No more compiler telling you some random function isnt using snake case
Or some random crate emitting a random warning about something random
hmm
Btw the ! Marks this as global
Basically you can write the same without it
But it will only count for the thing below it
Now it will do it globally
i did it everyone
i found out a way to format a coloured output
with python logging

after fucking around for like 5 hours
finally found how
after frustration
wh y
Me who it takes 5 hours to make 10 working lines
https://c.tenor.com/i10mO84qRUQAAAAM/congratulations-cheers.gif
i swear everything microsoft makes is just cancer to set up

You can download em from visual studio or the website
Руский
and the wording is completely different 
so i ended up installing useless stuff
just to realize rust still didnt compile
Are you following a tutorial
all of em
i found one with an image
of what i have to download
so now it should b good
🍞 🍞 🍞 🍞 🍞 🍞 🍞

yes
Why have you bought me to this headache plaza
Python is decent first language but the lack of "{}" and ";" make it harder to transition to other languages that have wider use cases than python. It's also missing some features due to simplification that I think are good for beginners to learn
Yeah that is true
NO NOOOO
i figured you'd bring up the simplicity of it as an argument against it
double edged sword indeed
C# is just amazing because it can be used for pretty much anything, is easy to learn and has ease to transition to other languages
What
just kidding
yep, I love the simplicity for when I use it but the use cases are quite narrow if you're working by best practices
Shit
Almost posted 1940s Europe thing
What the print command🗿
C#
system.writeln();
yes that
writeln is newline yes?
ye
Phew

Thought it would be like java
java is a nightmare lol
java is horrifying spooky and scary
Anyway should I spend another 100 bucks on another set of classes for c#🗿
coming back to this
o
wait
not really
you don't exactly need them to learn but
if they do make you pick things up quickly
learning free is easier and cheaper
How🗿
you can just google "how to learn C#" follow some random course and learn it
alternatively you can do what haydot does and just google solutions to every problem you come across when making something
just make sure you don't copypaste and forget
Then again only reason I got through middle school is becuase khan academy🗿
That's very effective tho. If you're a good at learning you'll never make the same mistake twice and you'll remember how to do it
It is
that's how i learn stuff usually
i just dive into docs or a tutorial to get the basics
yep
then off to making a project and looking things up on SO
I usually start a project and read docs while I'm doing the project lol
that too
though
im usually focusing on 1 thing
so im either writing code or reading docs
cant really multitask very well
Same
eh
tbf
im like
almost failing high school
Relatable
cuz i just can't learn like that
being forced to remember formulas etc
Hopping straight to way different topic tho, I have classes about installing Windows on a vm tomorrow and as I've done it like a 100 times I was thinking of asking my teacher to let my try installing arch
If I listen in class, I will remember it. That's just how my brain works somehow
so we don't fuck up the existing windows on the computers
kinda have to listen
print("Hello world")
That's just creating a window in Java, quite simple really
agreed
yes
there is no more permanent solution than a temporary one

(but the slowdown is also permanent)
If amongus == sus then
imposter:KickPlayer()
end
I remember when we post hacka memes here
Fuckin luau, I get nightmares from it
oh god thays lua?
wot u talking about its great 
the Roblox version of lua
Lol
Sus
Everyone asks “who’s the imposter?” but never “how’s the imposter?”
Luau is arguably the worst first language
the imposter is Unexpected EOF
if Jojo == Good then
IsJoJoSus = false
End
is it called luau?
no logic from it can be used anywhere else
what does the u stand for
Anyway
Should I do python or c#🗿
C# tbh
no idea, but that's what Roblox engine uses
I got my credit card ready
Its much more similar to other languages
I agree
do not overpay for courses
yeah for sure
First thing I see is Udemy
it takes time to start but the speed goes brrrrrrr
i forgot what site has good c#
uhhh
i only remember lutz python book and docs sites
ig you can do documentation
Theres
Udemy
Code Academy

What🗿
okay hold on
@barren shale
we found
a recruit for you
hmm
om wait
ok*
im not confident abt sites
sooo
try youtube?
im really not experienced in csharp
Time to search up java toturial and die
I'll dm him🗿
that works
for python if you ever wanna do it i can recommend realpython + python official docs
pretty good stuff
🗿
i heard smth about a subscription with realpython or whatever
don't bother. the good shit is free
also learnpythonthehardway
Is the."~remove "color" a thing? because it should be. For Map Conversion
@knotty root if you need help with specific stuff hmu
otherwise as i said
go google and youtube
and when you program
do it with a purpose
have a thing that you want to do in your mind
Here is a challenge for whoever is interested
try to write hello world in all languages you know
Ah yes... The nerd cave
Ah yes.. The nerd cave

hello world
print("hello world")
println!("hello world"); i think this one is correct
привет мир
aight lemme try
Console.WriteLine("Hello world!");
cout << "Hello world!" << endl;
print("Hello world")
println!("Hello world!");
printf("Hello world!");
and finally
Booting this into a machine wouldnt work but I didnt wanna flood char with useless code
well its not like this is the most active chat anyway but still
im bored ima add comments
the rust one is correct
haydot definetly didnt do that to show us that assembly code is long
but that basically proved that assembly is bad
once again a trash comment by hamza
I did that because I want this cave to live a little bit man noone wants to show and review code
you know what hamza fine lets say I did do it for that because im sure if I dont say it you will make another stupid argument
how is the game going
YAY
you're wrong
stopped working on it
assembly code is long ≈ assembly code is the most customizable ever
college eats up time
hi
i should flex my storage again
249G

also
@wet girder i managed to make coloured log output
its completely built in
so when you do
logger.info("hi")
it format itself for you
i just subclass the Formatter and add colours to it


rust is a bit hard to learn
