#⌨coders-cave
1 messages · Page 16 of 1
@fading obsidian btw I wanna remind you you are cringe because you said assembly is bad
That by itself is a crime
Against humanity
no that makes him a giga chad
assembly is cringe
Since when tf can you state your opinions
Who is the best programmer?
React with
1 for hamza
2 for dakata
3 for rei
4 for this other guy
5 for microsot bill gates
Y'all don't know shit
since the universe started
you know the big bang?
i coded that shit
Idc
Shot samples
Or cap
At least 100 lines long that defines how quantum gravity works
Ayo
await attachment.save(f'map.wbox')
if (os.path.getsize(f'misc/{attachment.filename}') == 0):
await ctx.message.channel.send("Cannot decode empty file!")
with open('map.wbox', 'rb') as map_file:
#base_encoded = base64.b64decode(map_file.read())
map_file2 = zlib.decompress(map_file.read())
enc = 'utf-8'
z = map_file2.decode(enc, "ignore")
map_file.close
with open('cov.txt', 'w') as map_z:
map_z.write(z)
map_z.close()
zipfile.ZipFile('cov.zip', mode = 'w').write("cov.txt", compress_type = zipfile.ZIP_DEFLATED)
b = os.path.getsize("cov.zip")
if b > 8388608:
await ctx.send('**Map too large**')
return
await ctx.send(file = discord.File('cov.zip', filename = 'cov.zip'))
os.remove('cov.zip')
os.remove('cov.txt')
os.remove('map.wbox')
print(f'decoded by {ctx.author}')
Encode in @bitter sedge
await attachment.save(attachment.filename)
if (os.path.getsize(f'misc/{attachment.filename}') == 0):
await ctx.message.channel.send("Cannot encode empty file!")
if os.path.exists('cov.zip'):
with zipfile.ZipFile('cov.zip', 'r') as zipObj:
zipObj.extractall()
with open('cov.txt', 'r') as file:
i = file.read()
file.close()
with open('cov.txt', 'wb') as file:
encoding = 'utf-8'
r = i.encode(encoding)
e = zlib.compress(r)
d = base64.b64encode(e)
file.write(e)
file.close()
b = os.path.getsize("cov.txt")
if b > 8388608:
await ctx.send('**Map too large**')
return
await ctx.send(file = discord.File('cov.txt', filename = 'map.wbox'))
os.remove('cov.txt')
os.remove('cov.zip')
print(f'encoded by {ctx.author}')
Whats this
Cringe python shit
I agree
public class Earth : Planet {
private Population _population;
public Earth() {
InitializeHumans();
}
private void InitializeHumans() {
_population = new Population();
_population.GetHuman("Haydot").SetIQ(-100);
_population.GetHuman("Hamza").SetIQ(1000);
}
}
here's a snapshot
from the code
smh
that's classified
Can't even explain quantum gravity smh
X = hamzas iq
|x| =100000
And give a unified theory of everything
Hamza ya know math??
Smh
X = hamzas iq
|x| =100000
That's an absolute value
Want me to explain the thing
X < 0
Agreed
Hahhah hamza epic fail hahaha
X < 0
I bet hamza is googling absolute vaulez rn 😂😂😂😂😂
Nah rei is god
Or else
Rei is above yall sorry
Over hamza is ok
Rei helped with my code
man is so jealous
Okay
Talk to me when you write a USB keyboard driver
Including the acpi stuff
Rei > dakata > Hamza
Loser
talk to me when you write a discord bot
that will be deployed in a server with over 500k members
at least im not reinventing the wheel
like a dumb kid
no
Jokes on you I don't like helping people
jokes on you i use the bot to make money
Jokes on you your still broke
Yeah man use it for money wth
jokes on you you dont know that
Jokes on you I hacked your bank account
And got disappointed
jokes on you i live in syria
And decided to leave some money
so no i dont have a bank account
i knew
Jokes on who then who tf did I hack
I am mom
bro stole his mum credit card
Alright I think that's a worthy place to stop
I'm willing to accept my defeat on that
It was a godly comeback
indeed
i am making money
i have work in one hour actually
oh nvm its in two hours
Now I'm curious
its nothing
Hello
its just something that couldve been taken out of context
Correction: it isn't logged
everything is
you just didnt find it
😂
or maybe this guy got lucky and bot fucked up
The bot messes up pretty frequently, no deleted messages in this channel from the appropriate time, and too many messages since then for yagpdb to find it
Thank god
Mee6 just awarded me for saying thank god
lmao
Anyways I usually don't care about deleted messages unless it breaks ToS
Okay nice
This server just got a lot better
Its not only a less crappy version of #🌎general but you can also by pass the logs
shieyno
Hamza may have blocked me but he will always be in my heart
I love hamza
I’m a soldier for hamza now
damn
Hamza is God (literally)
Inconsistent logging isn't special to this channel
But most of the time, if it's something actually serious, mods will be able to use yagpdb before it becomes unviable
And here
Something about this picture makes me lol (laugh out loud for anyone wondering what this internet acronym stands for)
the fact that you need mental help?
That's a whole another topic but no
This pic can be used anywhere
And it's perfect
@barren shale question about c#
What's c#'s equivalent to
Option in rust
nullable
What are your views on brainfuck
cringe
Gonna learn it then
its a meme language
learning it takes 1 minute
writing something in it takes 1 year
I am gonna enslave you and force you to make sb2 faster
Gimme your address
Thanks 👍 gonna visit you soon
Define nullable
So nothing can be null
unless you make it nullable
But everything can be null if you want it to be
How tf does that work
sec
public async Task<Response<Character>> GetCharacterAsync(ulong id)
{
var characterModel = await _characterRepository.GetCharacterAsync(id);
if(characterModel is null)
{
return new Response<Character>()
{
IsSuccessful = false,
Message = "Could not find character"
};
}
var character = await _characterService.GetCharacterAsync(characterModel);
return new Response<Character>()
{
IsSuccessful = true,
Result = character
};
}
here
characterModel is nullable
because _characterRepository.GetCharacterAsync(id) returns a nullable CharacterModel
so then i check if its null which means i didnt find the character in the database
otherwise i turn the model into a character and then return it
easy clap
You can also do Nullable<SomeStruct>
just one
.net 5 -> .net 6
classes are no longer nullable by default
i mean they are but it warns you
Back when I did unity stuff it was like c++
you can still do Mum mum = Null
With very minor differences
but it warns you
Btw I just tricked you into leaking speciesbox source code
Feel bamboozled
Pranked even
🥹
i barely leaked something usable
without knowledge that would allow you to write the exact same thing
sure bud
Smells like nerd in here
Fr
me who only knows a little bit of Lua 
i mean its an incredibly easy language to learn
i'm learning c++ and my friend wanted help on a project
the project included needing to know lua so i took a few days to learn it
its not the best language but it gets the job done
its the worst language
ever
its better than even brainfuck because atleast brainfuck doesnt take itself seriously
HIW DOES SOMENE LEARN LUA IN A FEW DAYS
I REALLY REALLY NEED TO KNOW HOW
SNEKIEJEKDKD
its not the worst stfu at least its practical
i know its not the best but people are over exaggerating how bad it is
also really basic syntax
theres some really good games made in lua, they run pretty well
at least it isnt a fuckin resource hog like java
stop over exaggerating and just let people use it for once god damn
its not the best but it gets the job done
No shit that’s why i need to know how to actually learn it, efficently
yeah, also some game engines utilize it
I know, i want to learn it mostly for roblox studio
its indexes start from 1
that by itself is a crime against humanity
and why do you care about lua sucking its not like you made it
index starting at 0 make sense
0-9 is total of 10
and 10 would be similar to 0
it starts over
until it changes to new digit
Agreed
your mother doesnt make sense 😎
We burnt one once
My friend made smoke come out of an ardunio card L.O.L.
using bevy (ecs) and rust im making my own little worldbox inspired game for personal use
using some simple pathfinding and whatnot they try make new colonies
just going step by step
doing this and my full time software job is tiring tho
coding all the time can be eh
Ong people hate on it way to much, for me it's easy to use and it gets what I need done fast. Not to mention it took me 2 days at best to learn it
it would make the most amount of sense if
indexes started from -infinity
I mean think about it thats the leftest number on the number line
so it only makes sense thats the first index
Big brain
most sane worldbox coder
nice
if it had an infinte start and infinite end
how would that work
idk but someone has to figure it out
and implement it into every modern language
its called
a generator function
returns an iterable of unknown length
with no index
and the only way to get the item is to iterate over each item
almost infinity
Technically it always has a limit
If the index is for example int32 it has int32 max size as it's limit
tru
Hi rei
most languages go for int64 max size
which is basically impossible to fill
as it would require 18 million terrabytes of ram
Which would be 18,000 Petabytes, or 18 Exabytes, Which I don't even think humans have achieved a 2 terabyte hard drive. maybe they have, but probably not an 18,000 Petabyte hard drive.
Ok nvm
they are like $300 each
But
I said PETABYTE
LTT has 2 Petabytes of storage on their historic data NAS'
Google has few thousand Petabytes of storage for sure but it's just scattered to whole lot of servers
The thing that shouldn’t exist
I love bones in my pizza
What?
Nvm discord is goofy
It didn't show a bunch of messages
I thought they were deleted
Wait your not mod!?!
I'm on break
Aww
Average google chrome usage for 1 open tab
And that tab is google.com
got bored so i made a raycaster in a 2d environment
and also draw what the raycaster reads
How hard would it be to code chatGPT from scratch
Alone?
Impossible
Even if you could somehow code it in it's entirety you would still need the data it was trained on
And then you would need the technology and tools to train it
And then you would need to have the time and technology to train it
And btw the data it was trained on wouldn't fit in your computer anyway so you would need more technology to keep it somewhere
So overall impossible
You could make something similar on a smaller scale tho
B
C
D..eez nuts
Oh hey decafa
Do you know what's theai everyone's using for making images
I want to see if it can make me a better pfp
Mid journey or DallE 2
F
G
Ğ
It was trained on public datasets openai didn't make
It's stable Diffusion, the others can't follow details or make hands..
It uses tensorflow
he said from scratch
so no tensorflow
and if he wants to make it from scratch ima just assume he also wants to make his own info
I would get the data from internet like chatgpt of course but i cant
H
me in nutshell
I
J
K
L
bruh he said "from scratch" not "in scratch"
imagine if you coded chatGPT in scratch
the cat would be the most intelligent cat ever
fr
Does anyone have unity tutorials or am I gonna hand write every single piece of syntax in the unity documentation
Brackeys has the best unity tutorials out there
Hi
Bye
Bye
Alright, C# or Python or JavaScript?
C#
Depends on the use case
all are great languages
C#
It's a c language so it's automatically better
Alot of
s here
John C na
Sup guys
Look at me flex my admin powers
YOU! Yes YOU, you are both now<@&1009870419005821059>! |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| _ _ _ _ _ _ @hexed shard @rose pawn
Ok
Yall should thank me for constantly intrupting the chat with weird ass messages that these nerds cant discuss their nerd shit
Im not certain if you can but if you were able to pull the inputs from the player and insert them into chat gpt's text box you could just run it from there
I'm not familiar with scratch enough though, and am too basic of a programmer to know if you can do that in normal programs
What is the better loop?:
For Loop ✅
While Loop ❎
Which language
any
i saw Michael Reeves control a drone with scratch which means that we can make scratch send a request. We could send a request to OpenAI's API for ChatGPT and return the result to scratch. Then we just make the cat say it.
We could even relay the data to a dedicated server (literally my laptop) and process the complex stuff in the server so theoretically you can write the smartest cat on earth with 3 lines (on start, store result + send request, output result)
well actually 2 lines if you manually clicked on it to activate it
well actually one (output result + send request)
For loops are just while loops made easy
So you can replicate for loops with while loops
But it would be difficult to replicate while loops with for loops
So while loops win
for loops is good for:
Iterating through objects
Iterating through arrays
Can do anything while loops can do too
while loops is good for:
doing the same thing until a condition is true
Can do anything for loops can do
@orchid frigate
for (let days = 0; (!isDead); days++)
==
let days = 0;
while (!isDead) {
days++;
}
easy to replicate
you could also just not use days to get this while loop as the equivalent:
while (!isDead)
remember that for loops don't care about what you are putting in them, they only care if it is legal.
Funny thing at work I am doing rn. Some user from saudi arabia clicked a button and that button is supposed to make a request to do something in the backend. So instead of the button sending 1 request like it's supposed to, it sent 20 thousand
Most likely their internet is so shitty the requests got sent properly to the backend but the responses got stuck somewhere
so the frontend kept sending request until one of the reponses got through
fun stuff
fun stuff
Lol
its more difficult to replicate while loops with for loops
than for loops with while loops
but the language really matters because different languages have different syntaxes
im talking about c/c++ because the example you showed was in that language
also the compiler for vm assembly has been expanded to 600 lines and
im now realising that I have no idea what im doing anymore
I started getting confused at 400 lines but at this point im completely lost
Just found out that saudia arabia has dogshit internet because government censorship
could explain a lot
Turkey is on his way to be like them woohoo yay
is your company hiring?
Yes but you'd need to come to office 3 days a week minimum and speak Finnish
It's a small local software consulting company
Imo the best type of company
And just to add to the goodness, the company has never ended support for software. We still update 25 year old software
Rarely but still
FOR LOOP
I think while loop has the potential to be faster so I choose that
in python for loop
But I think I prefer while in everything else
In my opinion, while loop is better
😳
a = iter(range(10))
while (i := next(a, None)) is not None:
print(i)
dont do that again
i wonder is this loop faster than just a normal while looped with a variable incrementing
if you of course generate the range before you start timing it
dont do it like this
create the range
then time just the loop
Do what
the first one
time just the loop part
the range should be a constant
a = range(10)
# Start timing here
# Loop code
Idk about you, but that's how you do timings with this bot
The first block is the setup, which doesn't get timed, only the second one does
oh
well then your code is invalid
because you have to recreate the iterator
unless python has some magic
oh wait
does it loop over the setup block?
oh yeah it probably does
i have 3 hours of sleep and my brain is not working
There's a reason for it
yeah but i thought creating the iterator should be timed
because it cant be a constant

r = range(10)
a = iter(r)
# Loop code
something like this
but i dont think creating the iterator is that expensive
so it might not matter
Ig 🤷
python sucks anyway
python is good for its intented purpose
which is scripting
You simply cannot write full software in Python without making some big compromises
Python is good
Message
Hi guys. I don't know if my question is related to this channel, but I'm in a dead end.
Do anyone here knows an effective method of recovering data from a formatted ssd?
Have you used the SSD after formatting it?
And did you use formating that overwrites the data
Nice
No. I used diskpart delete command thing in cmd prompt (I wanted to tinker other drive but accidentally typed the wrong drive number).
I then realized the whole disk became unallocated.
I activated the drive and saw that everything was wiped out
I used Recuva software, it managed to recover like half of it but everything is not usable
Hamza don't be racist to programming languages
It's like being angry at screwdrivers. They're all just tools for different purposes
i mean tbh screwdrivers do suck
and that was a joke i use python a lot
If you want to hammer in a nail - ye
It can be done but... they not really made for it ig
nah that doesn't work
he's biased
Sadly my knowledge of the subject ends at the point you've got
Nah in this channel language racism must be applied
Certain languages shouldn't have existing rights
Like lua
and assembly
GMS2 ftw
Hi
I forgot that the devs are coders
Ngl everyone should use chatgpt nowadays, it makes development so much quicker
fr, people spend like $50 for business consultant
meanwhile i can consult which choices are relatively efficient from chatgpt
made my admin website with shit load of system design, because the employee are uneducated with computer
Excuse me, esteemed individuals, I humbly inquire if any of you possess knowledge regarding the availability of a textual document in the format of a .txt file, encompassing a corpus of 500 to 5000 syntactically and semantically well-formed sentences in the English language? Please do pardon my inquiry, as it is being made on behalf of an acquaintance who is in need of such a dataset for programming purposes.
My esteemed peers, I am delighted to announce that my quest for a textual document containing a corpus of 500 to 5000 well-formed English sentences has reached a successful conclusion. Through diligence and perseverance, I have located a suitable dataset that meets the criteria for my programming requirements.
it makes css ez
css became the easiest language ever since chatgpt came out
Tru
C# gud?
If you like OOP yea
Ok
not enough fancy words 0/10
you making an AI?
Hi
C# best
No
Correct, my esteemed individual.
Ñ
https://huggingface.co look in the datasets area
Hugging what now
You
None
chatgpt v4 king
apparently we'll be getting a wolfram plugin along with gpt-4 in the future. I saw the previews and god damn it looks so promising. No more worries about the chatbot hallucinating some answers.
None
None
none
None
None

None
Hi, im a newbie person to programming. Been playing around with java for a few days now and just curious if anyone had any tips or timesavers.😅
Learn from w3schools web site and use chatgpt
This isn't java tip its just coding tip
literally just keep on coding shit
it doesnt matter what you code
just write random stuff
the more you write the more problems you will end up having to solve
so more experience
so more skill
Thats how I learned pretty much every language I know not counting assembly
Damn, that's good advice lol. Thanks
Hello
I have a question how can I download the endosetrial mod thing
?
Can I please get some help
Is it a mod for world box?
So, from what I know modding isn't possible on anything but a PC
But I could be wrong, I haven't modded world box much tbh
how do i make a mod with other stages of buildings after the other ones (i have some modding experience)
a good timesaver is not using java, its "old" and the only reason people still use it is for modding minecraft or supporting whats allready made with it
thats what I think tho
dakata cooler
eh it doesnt really matter what your first language is considering you are certainly not going to be able to use it well anyway
with it you are mainly supposed to learn the programing basics and get a programming mindset
and develop your problem solving
plus java is basically the same as c# in terms of syntax so it will be easy to migrate later on
could someone explain to me what this error message actually means?
roblox studio
by the way
i really need to know because i used a free model sound areas which worked really well for a good while
however it just.. broke
Send script
a value has no children
local settings_ = script:WaitForChild('Pointer').Value
^^^^^^
local defaultSound = settings_:FindFirstChildOfClass('Sound')
^^^^
So what do i do to fix it?
idk
Well atleast i know more than i originally did
local settings_ = script:WaitForChild('Pointer').Value
local defaultSound = script:WaitForChild('Pointer'):FindFirstChildOfClass('Sound')```
bandaid
So this will help?
Only one way to find out!
did it work?
Il try it later i have stuff to deal with currently
None
I never knew data scrapers could be so useful
@jaunty sorrel Unfortunately, the only way to understand your problem is a snapshot of the explorer side by side with your code.
Otherwise use luau's annotation so we know if the type of
local settings_ : ObjectValue? | Instance? = script:WaitForChild('Pointer').Value :: any?
-- above , Pointer.Value can be any value type, we don't know if its an intvalue, objectvalue, stringvalue, rayvalue, vector3value, etc.
-- annotation is useful when explorer can not be seen
here's a screenshot of the explorer on the side i guess
lua 
no, i tried now and still no
i believe one of the studio updates might've broken the sound system a little bit
that or i messed up something with the client
whats the problem @jaunty sorrel
None
the problem is lua
How do I use the return in lua
Ngl lua is looking really attractive everytime someone sends an ss
Can you make discord bots and web scraping with lua?
Oohhhh moderatorrrr
I do believe I've caught myself a fishy steam scammer
@strange glacier
Wait I can't send images here
Hamza how do I use Return In lua
@strange glacier I've sent you some dms of the whole thing
ye
but usually its not equipped with networking
so you'll need an external package
which uses C behind the hood and just uses an interface to Lua
Victory has been achieved
@jaunty sorrel why do you have several sound scripts of the same code running under the player?
he want to play phonk multiple time to boost morale
Stack overflow badge 🫠
L
The more experienced of a programmer you become
The more you realize stack overflow sucks and reddit is better
Because stack overflow usually requires some overly complex question that looks more like an essay than a question
And the answers are even longer and answer the question in the most complicated way possible
To the point you end up having even more questions by the time you read it in it's entirety
And you get made fun of by some guy that made the first assembler because of how bad of a programmer you are for even asking this question
chatgpt
I think the client scripts for the sound area model i used automatically transfers itself there
wat
linus recommends stackoverflow
I think
I heard that
idk
it's just an opinion
how many times have u guys farted already this day
Depends if they're done well
A public API documentation my client has is the shittiest documentation I've ever seen lmao
They asked me to try the public API with no other information than the documentation and return my findings to them. I got like 2 page word document of stuff that needed to be changed
The documentation itself is barely that long
stackoverflow community is bad
elitists
at least chatgpt is submissive, abusable and manipulateable and cute
and fucks up a lot
wow thats so sexual
i mean
chatgpt is very breedable too i forgot to add that
You have not seen e-girl on stack overflow?
no, that's on my dms
look, as long as you have chatgpt api, hell you can make her act lol
ok wtf did i just walk on here
Openai uses machine learning to legitimately stop you from doing that
just stopped working one day
i disagree....
Yo guys Whats the langage of the game to create mods
Someone answer this man
What ungodly acts did you commit to make this happen 💀💀💀
This has to be a crime against humanity
16bit assembly
Also known as c#
That's why character.ai exists
You can breed with your ai while it makes you your code
The amount of war crimes I have committed on that site alone can put me on a watch list
RIP
R
scary
its not openai tho 💀
.. why did you do this?
i havent took my meds for 3 months now
oh speaking of character ai, i make ai vtubers
Neuro sama
I usually torture the ai
I once made cthulu my slave
Forced doom slayer to go insane and do unspeakable things
and made a therapist ask me for therapy
from the things I did to him
what
You heard me
please star my vtuber project in github
Ikr 💀
Hi
Hello
GREETINGS
Hey
Hey!
Hi!
xor rip,rip```
ah yes x86asm
lets not get too political
You can learn coding for free yeah
I've never paid a single cent to learn programming
and I am work as a software developer at the moment
java's being phased out tho
i never paid a single cent
just using my wifi and phone that my parents bought for me
i don't even use a computer
But schools here teach java as a compulsory subject
And im starting it from this year
So i thought i would learn it before hand
I dont even have a computer
that school is shit
nah bro Java as subject class is shit
they executed that poorly fr
So yeah
I dontblike economic
fair point
Ik but i have more interest in it
brain explosion
Like 0 interest in eco
Then what language do u suggest
riding a bicycle at 3 years old
but there's no safety wheel, and the tire have deflated, and its on fire, and on top of all that everywhere you go is uphill
but once you learnt it at least the bicycle gets a bell
I started riding without safety wheels at 6
i started at 8
Lmao
Weirdly specific
Probably C++
its low level and good
biased opinion tho
JavaScript, Python, Ruby
unbiased is C++ and C
its entirely for a different reason but ok
well for pure math
julian
for data use python
ooooof
std::cout<<"Hello yall"<<endl;
@orchid frigate my gcc cross-compiler is outputting code larger than 512 bytes, how do I convince it to be below 512 bytes?
I want to write a basic fs driver in c, but I only have a sector of room (which I can deal with, but gcc cant for some reason)
its literally 9 lines c extern void entry() { // find the file lowkernel in kfs and run it. // bootloader jumps to the first (non elf header) byte here in long mode, this is limited to one sector. unsigned char *vga = (unsigned char *) 0xB8000; while (1) { vga[0] = 'h'; vga[1] = 1; vga[2] = 'i'; vga[3] = 1; } }
also I spent like the past 5 hours making my own file system and it was painful but im really happy with it
http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html ive found this nvm
That isn't working
None
/RNZEWZN1 Here's a pastebin for an "AI" news generator based on a simple rule system
I have many questions
Why a sector large
Arent you already in protected mode and already switched to kernel sectors
Or did you switch and are trying to write the driver inside of the first sector
And btw writing a sector worth of C code is a stupid idea regardless
The driver will always exceed 512 bytes unless you write it in assembly yourself
Wait what
You made your own?!?!!
Why and how and show code
Right now
You know you don't have to loop a write to VGA memory right
Also also
Please do paging and idt and gdt before adding a fs if you haven't
They are the most fundamental things an os should have and give you an idea on what is supposed to happen in the future
Fss are kinda a luxury
It won't enter long mode without those so lol
https://github.com/wellsilver/klos the shit docs are in kfs/doc.md theres an implementation in image.py
It's very basic tho
Ok I'll write it in assembly then
why?
Cuz Dakata said it was a bad idea so
pls dont, just use a high level language
I only have 512 bytes
why?
cuz im making an os and I made some very bad design decisions
that I dont want to reveres cuz im lazy
if thats the case, then go ahead and use assembly
oh I just found this https://github.com/alexfru/SmallerC
oh nice
is vga in big endian? (Do I even know what big endian is?)
this is kinda confusing when it goes from right to left
its not blinking when I set 1 though so
it doesnt blink if I set the 8'th or the first bit
im side tracking tho
i have no idea what tf that means
this set off all my antivirus's and is ngl annoying to use
I have no idea what it looks like in hex
the github isnt setup like a github usually is
oh its 32 bit nevermind all that
assembly time
Yes but you need to do them better
Instead of having the basic ones
You need to setup real structures
With all the basic handlers for idt
And write paging drivers or whatever they are called so that you can actually use it
It's whatever the processor's endianness is
You can make em blink?!
Also don't get used to VGA you will soon need to switch to vesa
Rendering VGA drivers useless
If you really really want to use C
There are some very very old C compilers that are made for this
But they are very outdated difficult to setup and most of the time it's better to just write assembly
Also you know about GPUs and how shit making them work is right
Cuz that kinda demotivated me from making an os
Omg yeah
I plan to just make it POSIX and unix compliant so Linux drivers work
Also something I found useful is
print to the serial port instead to the screen
that way you wont lose data because scrolling
Ok
What do you need?
anyone here familiar with heap allocator designs by any chance
im trying to make one on my own but im kinda struggling
osdev wiki's solution is using someone else's allocator https://github.com/blanham/liballoc/
also I would
like both of these are block allcoations.. but
I would pre-alloc like 12 or so megabytes for memory then use that to cover blocks. like each byte in the first few megabytes of memory holds process ID's and are statically mapped to blocks in memory (512 bytes, or 1024 to double max mem size).. A large problem with this is that it might not have good compatibility with the mmu
another block thing I would do is more closer to an fs, and would literally just be a 32 unsigned int proccessID as a header in any block of memory and would allow infinite memory but might have speed issues (though modern OS's have MASSIVE speed issues with ram so)
also all modern proccessors have this... https://wiki.osdev.org/Memory_Management_Unit you might not haved to do anything at all with this setup
Yeah I just read through mmu you literally haved to do nothing except set it up and handle errors with the mmu
https://cpudev.org/wiki/Main_Page I just found out about this website... half its pages are deleted, and its not crawled by archive.org 😭
What language should I start on learning? html or Lua??
i dont think they are dleeted
they probably never existed in the first place
shieyno would have a lot to say about that but he’s banned
who is shieyno?
the lua guy
shitty reason tho
doesnt make it less nice
Just realized the ban has restored this channels integrity
Me when lua
@quartz pumice im talking about heap allocator
With dynamic memory management
İ already have the other allocator
Kinda
Also İ figured it out
İ just put a table at the end of each heap to hold all the allocations
And calculate the best address for the next allocation using it
İ figured the design out
But İ can't figure the code out
Rust was not made for this shit
rust was made for ugly people like ur mum
python 💪
They banned the python guy 😔
only c# prevails
Ok hamza
Rust is corp lang now 💀
@orchid frigate
@orchid frigate
answer me quick
WHY THE HECK IS A MEMORY USING 370,482KB AND ONLY HAVING 4KB ALLOCATED
Dynamic memory
Allocation
yet another massive low level programmer L
me trying to work:
github:
bro
even reddit
is having troubles
whats with the internet today
fr its like last year
where YouTube, google, Facebook, twitter, Instagram, most major companies are down
even WhatsApp
Me uploading 50gb video of a fish swimming:
Would that cause a page fault
i did get the BX error
something about BX40 something i forgot
im bad at remember error codes
What does bx stand for
no idea
I'm assuming allocation
what's the difference between a Private memory and Mapped
So you have an allocation 4kb big
They are fundamentally different
explain
Like they have nothing to do with each other
Mapped means a virtual address was mapped to the physical address
Private is defined by the os idk what exactly it means
A heap is always mapped so you don't have to worry about that
problem is
The allocation is 4kb
But you are using more than 4kb for that allocation
So don't do that
im debugging another program
it kept crashing like crazy
i had to use process hacker
guess what
they dont even use that memory anywhere
fr
no use whatsoever
So it's literally just ransom at that point
yes
its the reason it crashed tho fr
You have a memory leak
other memories are tamed
Most likely
ye
Wait a single allocation is 370k
A SİNGLE ALLOCATİON
Not multiple
A single is using that much
?!
they're releasing like an A/B testing
How is that even possible
Bro that's a major fuck up 💀
we either get the crappy memory leak version
or the main version

if they're using rust this wouldn't happen
Yes but it would be too safe
Now if you will excuse me İ am forced to play Minecraft
the entire world runs on the internet now
since uh
pandemic
and also everyone has at least 100 youtube bots
wait no
everyone has a lot of bots everywhere
maybe im also a bot
maybe im just a language model
you'll never know
bill gates cant be a bot
that would be ludicrous
you are the real bill gates after all