#Nyaux
1 messages ยท Page 47 of 1
if ur free
maybe u could take a look
because ive been pulling my hair out with this ๐ญ
@silver yarrow
I'm omw to work but send the actual place where u call these from
okay
@silver yarrow
I will take a look at work if I have spare time
saving to stack is simpler and better
reasons its better include the fact that it saves room in the thread structure for context information that you dont need to put there
and also the fact that the stack is more likely to be exclusive in your L1 already
so it saves space and its faster
Please make your code more readable
Lol, let the man nap
why are there a bunch of #if's for x86_64?
imo you should get it working on x86_64 and then worry about porting it to other arches
honestly fair, i used to do it before but idk someone told me to switch and i said ok
u tell that to a dude who wants to nap
๐
frfr
did ya look at it yet
@flat nymph morning
u should be friends with me
real
morning
I'm oenguin
will what will it take for u to be my bestie
i can uhhh
uhhhhhhhhhhhhhhhhhhhhhhhhh
i got nothing

Why do u want my bestiehood
because bro is cool
I am a terrible horrible person just ask @wooden cliff
As a hyena i have eaten many baabies
so
is this how people make friends
They are dead now i ate themm they are not alive
MY BAD
new gf?
show her that message
NO
I don't want to
what does the hyena want
then don't type it in the first place
You should love and care for your little brother
ok
i will love and care for my brother
she wont see this
There is deep meaning to his life beyond his temporary childhood annoyingness
And your actions now will have consequences for him for decades
should you cheat if she doesn't know?
yeah wtf to you
im joking i dont think hes annoying
just because your partner won't know, you shouldn't do something
it was an analogy dummy
@thorny glen i will learn ur programming language
hows that
๐ค
What is my programming language
jkl
jkl
what is happening here Whar
What's jkl
Tell nyaux I am evil
Let nyaux know I am an evil guy
I eat babies because I'm a hyena
its true he killed me and im dead rn
Thank you for your testimonial
uhhhhhh
You are dismissed
johns kool programming language
Huh
@thorny glen hi john !
thats what jkl means
uhhhh
wait your name is John but username Will?
i dont know what jkl means
but i would like to learn it
so
yea
!
okay @thorny glen so is this a deal, friend in exchange for me learning jkl
(i need friends)
and i will contribute to mintia one day
yes
jet propulsion kerbal laboratory
successful launch
contributing to mintia makes me like someone less
Bc then i can less accurately say i wrote the whole thing
That's why i hate @haughty kite because he contributed some colors for a dark mode console like 2 years ago and i never forgave him
Uh. That's a bit rude to just declare like that
oh im sorry
Someone needs to teach this kid some mannas
okay bro dont kid me
๐ก
i am 17 years old
thank u very much
soon to be 18
in like
2 months
well im clearly a very mature adult
I'm a "college kid"
real
ok wellllll
im out of offers
so if u wanna be my friend accept the fq if not just dont ๐ i will understand
i think the time froze for me when I was about 18
personally i dont think trying to become friends with someone by begging them to accept your friend request will work out very well but maybe thats just me
im sorry
i just
dont know how to make friends very well
i wasnt trying to beg
but if i seemed like that
i apologise
plus like
i dont even have friends irl
actually yeah im sorry too that sounded more harsh than i intended
its okay dw
friends have just been made
I would have been 1 million times more likely (almost certain) to accept a random friend request with zero context than to accept one someone begd me to accept
yea i ruined those chances
my bad.
oh ok
And i made roblock
But they pretend i made nothing
To take my life from me
And my rights
But I will get them back
Thank you
u did yes
And roblock
yes and roblock
exactly
And before that i made
Yes
yes
And after that I made fortnite
yes u 100% did
wtf are you hatsune miku
Dude. Not the time or place for a dox fest
well i may have ruined my chances to be friends with someone really cool because i fucking begged like a stupid fucking loser why am i always like this BUTTTTT its okayyyyy becauseeeeeee im gonna sleep any self hatred thoughts away now night night
๐ด
And they took roblock from me
shit sorry
can i just ask why am i just a fucking loser like this
She changed to mintsuki as part of a plan to steal mintia from me
You are seventeen
yea with no friends
i dont even
go to school anymore
i barely talk to people
and i always find a way to ruin things im like a screwup yk
This is not real i think that is very obvious that im joking but to avoid misunderstandings ill explicitly state that i literally made this up for no reason.
with my code, with talking to people in general with, even just me existing im like a mistake
i didnt ask to be here ugh
It's a good sign you don't take these concerns seriously or sacred enough to keep them to a closer circle
It would be scarier if you weren't announcing it to a public discord basically
So I'm glad you are
For your sake
whats the difference if i say it online or to nobody
i still have those thoughts
and i still just wanna go through with it
maybe i will idk
not like yall would know, id just disappear and yall assume i gave up on nyaux or smt
talking to strangers on the internet kinda makes it easier (?)
but yeah no, that's bad
I also had that thoughts (about mylself)
i genuinely want to attempt today like fr this time
kinda sick of this loop
we call "living"
bruh
etc etc
you're almost 18
it never did
i feel worse then before
worse then when i was 13
things never got better
they got worse
it doesn't mean they won't
sure
you get to be an adult and decide what to do with yourself
not just "do what parrents tell you"
like you're talking to people here
that wouldn't be happening if you were a total screwup as you think
no i annoy people here
just look around you
with my dumb questions
you don't
i did with will
he was clearly joking
about which statement was he joking about
because i dont know
i feel like he was serious up to the i made minecraft part
@thorny glen
I'm will
say something
about this
What am i supposed to do
idk
@surreal path you should not
i annoyed u tho dont u agree
No
oh
I did not care particularly one way or the other
oh
I'm tired so i was just shitposting aimlessly
I forgot what even happened already
Idk if that helps or not
Sry if it doesn't
I hold no ill will
Even though i am will
that made me smile for a second
it does
but did i like ruin my chances to be friends with you yes or no, if i did is there a way to get those chances back. like im not forcing you to be my friend if u dont wanna u dont wanna but like is there a way to improve my chances if thats even possible. i am unsure as to whats going on either
this is the last thing im asking u i promise, i just need to know is all
and im sorry for the mental breakdown
i just
am not feeling great today
like at all
its harder to like
deal with it
yk
and i keep going to the doctors, they up my dose. it didnt help or made me feel worse i come back they give me a different kind of med it doesnt work
@surreal path fwiw, when i was 17 i felt a lot of the same things so i get it. making friends is hard and shit sucks around that age in general i think. of course i dont know you or your situation or anything but stuff does tend to get better
I have literally no opinion on this you are practically a stranger to me
understandable and im sorry for this stupid question
Im just a guy
yea i get that
if u were like experiencing what i was experiencing
it is hell.
and then ur dad is like
promise me ull stay safe promise me ull not do anything
but u just wanna escape the hell
idk if this is a good anaology to
what i felel
felel
feel
but yk
im trying
im going to bed i need to just calm and sleep
ryfox if u have something to say
ill wait for u to finish ur message
before i sleep
its okay i dont really know how to word what i was trying to say anyways. im sorry for getting involved in this, i hope things get better for you <3
This sucks and you don't deserve it
no dont be sorry
u seem like a really cool person
i know
but
we cant control what happens i suppose
well goodnight im going to bed
hopefully wux finds whats going on with the bug if they have time, if not ill post to the osdev forums for help and irc channel too (irc channel people are really weirdos tho ngl)
oh one more thing real quick i want to say, again i dont know the extent of your history but consider looking into a "psychological evaluation" if you can, this was something i wished that i did sooner and was how i found out im autistic and honestly made things a whole lot clearer for me
oh i am autistic
i am diagnosed
oh!!
with clinical depression too
as well as anxiety and emotional regulation issues
my dad has the diagnosis papers
might be more on it idk
anyways night night
goodnight!!
goodnightt
Please don't. People do care about you and would be very sad if you do that. I personally have not felt anything close to what you do now, but things will get better. I can say that as a teenager, it is easy to get worked up about something like this. You're almost an adult. You can make your own decisions about your life very soon.
That isn't saying that you can't already, but you will have more control as an adult.
attempt what
suicide?
Reading the messages around, I'd say that he was talking about that
if you don't have hope for the future, believe me that you'll fail once more and it'll feel worse than before
so don't do it
@edgy pilot let's not get that detailed
yeah maybe don't post that
@surreal path as someone who has absolutely been there, done that before, trust me when I say it will eventually get better
It may feel like it gets worse, but recovery is absolutely not linear, and it will eventually get better ๐ซ ๐
the colors are like 10 lines of code
thats not even copyrightable
sorry been hectic, lmk when ur up and we can debug this
(if its still a problem, haven't read through the thread)
sorry
hmm I'm insufferable sometimes, aren't I
Nah you're not
no chill ๐ญ
hey im up now
thank you
my sleep schedule has been solved i think
i slept most of the night
i js woke up at 6am
so
we have a normal schedule now i think
hello there
hello r4
hows nyaux going these days?
well currently dealing with a bug that has been quite diffiuclt to debug
hopefully we will have it solved soon tho
so we can work on the vfs instead of dealing with dumb scheduler/kmutex bugs
@silver yarrow bug is still there hadn't figured it out yet, since i think my sleep schedule is fixed ish i think we will have no problem now with the time differences between any one of yall being awake
nice, well good luck with the bug (I might take a peek later if I get the time and remember lol)
okay lol
I'm in Finland (EET), off work in like four ish hours so lmk
okok
so 2pm my time
okay ill be ready
it'll probably be closer to 3pm, something came up at work
okok
Let's go nyaux is back
ok was trolling I'm omw home now
alrrrr
reall
vc?
yess
maybe I'll join in ~1h if you don't find the issue
but hopefully it's solved by then
unlikely
its like looking for a needle in a haystack rat nest
I need a therapist after this
what was the issue
Expected it to be -5000 +5000
if there was only one
Changes
lol
thats fixing all the issues
Ah
I fixed AN issue
check the pr
I added a comment to the one line that actually fixed the issue
it is fucking unbelivable it even kind of worked before
xxxxxx peak variable names
lol
that wasn't really meant to be left in
but it does adhere to the strict coding guidelines of Nyaux so its ok
Considering there is a file in the root called on full of binary with the commit oh my god I can believe that
Basically if it doesn't look like u were high on DMT when writing it, you are doing something wrong
There is still a todo comment above code that is complete
Basically if it doesn't look like u were high on DMT when writing it, you are doing something wrong
that is genuinely just how nyauxmaster codes
people tried to get him to use clang format but that CLEARLY did not stick
I never realized itโs nyauxKC, why KC?
everytime I "work on" it I have to take about an hour and a half just deciphering
those functions, of course, are not used anywhere

Also why not do arch specific stuff in like an arch folder?
oh yeah I love the assembly file that is not in arch/
i mean i dont have the best coding style but putting includes between code????
I SAW THIS TOO
honestly my biggest grudge is that he doesnt stick to snake or camel case
If it works it works
but rather mixes them
I guess he has a system
oh also the struct thread_t is gold
If I was doing a code review I have many issues but if it works it works
(and if u are wondering, no its not typedefed)
honestly it is a miracle that it actually does work
Wheremst
it has more features than my operating system
I see
i mean it was running bash before rewrite
pmOS still doesn't
Black magic probably
noone knows, but somehow it was
it is so frustrating that I spent a lot of time implementing stuff for uACPI to work (I was missing blocking lmao) and yet Nyaux doubles my score
tbf I havent actually implemented a proper heap etc
but like
Also what is this random folder with a capital letter called Mutexes, isnโt that what utils is for?
also calling it mutexes is questionable
locks maybe
like I do common/locks
uACPI is passable
though id name it uacpi
Oh god macros
erm actually it's ยตACPI
Same
lol using non-ascii would be par for the course at this point
That would be hell
my
thats because nyaux was fixed by monkuous
who is the top 1 score
I will get up there
I was trying to test on real hw
and surprise surprise I have broken my bootloader at some point
so I am rewriting that
really wishing I hadnt invested so much time into it at this point
you mean your bootloader?
yes
yeah its like the worst thing to do
yup
but I REFUSE to give up now
and im saying this as a person whos invested a year
I mean I program VERY slowly
so with my pace I have prolly worked on this for like 6months ish
mostly cuz I rarely just focus on it and rather multitask
Ultra bootloader dead?
it doesnt exist
I was considering using it for 32 bit memes
yea
(I'm getting bored with disk/filesystems already
)
yooo what was the issue exactly
causing the thread duplication issue thing
also less gooo
nahhh
me and mishakov just went "HUHH???" when we saw that
bro idk how it worked even a little before
at this point
anything can happen
i could see flying pigs from my kernel and id be like
yep normal
real
real
I ended up leaving most of the stuff the same really, just some cleanup I did ig. Tho I don't think the context switch will work long term
why so
It's beyond scuffed
creating an interrupt frame just so another part of ur kernel can discard most of it and consume the parts it needs
doesn't make the most sense
but then again it's ur kernel
lmao
pink floyd mention
just revert to the old context switch function
if you don't do contexts you don't need to do switches 
mornin
Looks employed to me
just put my fries in the bag bro
too much fries
I think it's supposed to be 2/3 of that
maybe even half
my brother js hit me
in the left shoulder blade
nahhh thats crazyyy
bros nearly 20 while im 17
nahhhh
out of curiosity do you use tiktok
yea
so
my kernel mutex works perfectly
which is good
it is now time to proceed
to the next todo list for nyaux
we were all waiting for this
its time for
the vfs
๐ฑ
i will be spending a lot of time writing userspace functions before i put them as to test out and verify things
basically im gonna write the vfs in userspcae to test and verify
then i will put it in the kernel
i will do this from now on for things that can be done like that
as to avoid bugs
:)
@flat nymph haiii
Hi

oh yeah @kind root told me to update uacpi
for nyaux
lets do that rqrqr
okay all updated
ohhhh
this is bad
it seems as if
the kmutex doesnt work

time to pull out gdb
seemingly sometimes it works
sometimes it hangs
seems like a race condition
thing is
it works most of the time
it only breaks 1% of the time

nope i cant recreate it anymore
guess theres no bug 
i ran qemu 15 times
no bug
seems to be working fineeee
ill tell u when to update
can i see the pr at least
its public
yea
this?
yup
the vote
Let me find the poll for you
#polls message
not based mint and streaks and fadanoid and pitust and david and monkuos and avery and friends
๐ก
Avery
what about her
good morning chat
good afternoon
@surreal path uacpi 1.0 is out
okok
will update
my bad was dealing with the hell hole that was my moms house
okay
@kind root updated
anyways i go write userspace vfs program to verify things, first a parser for this /test/test/meow
sysret, roblox, eat 4:15, the man
nah at this point
im asking mr gpt for something that converts /home/blah/w to ["home", "blah", "w"]
cry at me skill issue all u want but i absolutely hate c strings
i hate writing code for it
strtok?
yea
Just copy implementation from some libc source code
not sure this would be any easier with strings with size
where
wdym
thanks
i don't think the difficulty from doing this comes from the way c strings work specifically
then whats the difficulty from
working with strings is just generally annoying
agreed
thanks chat
@tawdry mirage especially you qookie
i took it from the musl impl
it might not be as fast as the glibc impl but glibc impl is like crazy
fucking long
๐ญ
plus the license on glibc
not pro
yooo wuxx my man @silver yarrow
how u doinnnn
that first string is killing me
no thats good
i can use that
to do logic
to go back to the parent vnode
๐
i would do char str[] for things like that
its good man
i might need something like nixstrap or jinx now
wait nvm
i need to do a FEW things first
it gets decayed to a pointer immediately when he passes it into strtok anyway
chariot supremacy 
Same
i mean
a C string is a regular string with a zero byte to mark where it ends
so, really, you just hate strings..?
Yes
Ok now handle trailing slashes 
the annoying part is memory handling for strings in C
in a language with garbage collection or RAII or something it's fairly simple
strtok handles it :)
Nobody is stopping you from making a string struct which tracks the length and whatnot
chat
i slept
and now
im awake
wtf
not again i thought i fixed my sleep schedule

i fell asleep watching this chat
well no i was watching a bunch of videos but when i woke up this was playing
i lost the code for the nyauxkt
the vfs shit
so i cannot reference that
^dunno what these are yet i forgoten but first things first is to impl a vnode
um excuse me
why does the vnode need a type
type what
regular/directory/symlink/chardev/blockdev/fifo/socket/etc?
i mean you somehow need to figure out whether you can readdir on the vnode and such
regular can be file right?
yea ur kinda right
but what does regular mean exactly?
a regular file
but people told me ages ago thats horrible vfs design and u should just use lookup instead and the underlying file system should figure out that instead
^
okay wtf is this
what is a direntry
in wux's impl he doesnt have direntrys
@silver yarrow if im correct
reading ur code
now i dont even know whats good and bad vfs design rn ๐ญ
im so confused whats good and bad vfs design at this point
everyone has different impls
there are many ways to do it
would having the vnode have types like this be ok
and on lookup checking ur vnode
i don't see how having the type in the vnode fucks with hardlinks
a hardlink just means that readdir returns the same vnode twice
or well, it can mean that
doesn't have to
it does not
is this okay? the tmpfsdir could look like
struct tmpfsnode {
struct vnode *node;
char *name;
void *data; // dir entry would be stored here if it was a directory
}
i think its starting to make sense now
and then
struct direntry {
struct tmpfsnode *siblings // dir -> file -> dir -> file
}
is this a good design
????
anyone know?
@tawdry mirage ?
in managarm what we do for tmpfs is ```cpp
struct DirectoryNode : Node {
...
std::set<std::shared_ptr<Link>> entries;
}
but my design for C is okay right? it wont be "bad" or anything
where a Link is just an (pointer to owner node, name, pointer to target node) tuple essentially
i just need to know
you can tell me its bad dw
i just wanna know to improve
i mean a linked list is gonna suck when you're looking for a file by name in a directory
yea perfomance wise i guess but
other then that its decent?
cause i wanna impl this now
i mean, you can always change this later
it's not like you're carving a stone tablet
I do not yeah
but also I woudnt vouch for my vfs design
I mean it works fine but
jesus lmao
its a real piece of code
but think of the speed of a raw array 
profit
Perfect file system code
You just need to add is_allocated to the File structure and youโll be good
I mean in reality u just change the data structure
yo wassupp
HEY OLD RAYAN
WHAT TF DOES
CREATE DO
HOW DOES THE VNODE KNOW
IF WE ARE CREATING A FILE OR DIRECTORY
SIR
๐ก
also i finished the path_absolute() function
using funny strtok
but i need to add more ops
hold on @silver yarrow
ima look at ur code for reference to ur design
oh makes sense
what
i mean if you define it like that it will just be create
and its kinda bad for a function pointer name
but like isn't the typedef global?
is fine
i thought it was a typedef
that would be stupid
i got the EFI syndrome(everything is typedef)
i got a file that is like just 200 function typedefs
i could have just used the EFI headers
but what is the fun in that?
well
i made the function now
so
now i need to
parse ustar or tmpfs first?
i think ill do tmpfs first
yeah do tmpfs first, so you can unpack the tar into something ๐
if its okay to ask
whats ur github account name
i need to look at reference code
for tmpfs
in terms of design
I don't have anything fs right now 
But it's deanoburrito: my previous tmpfs is here https://github.com/DeanoBurrito/northport/blob/master/kernel/filesystem/TempFs.cpp if you're curious.
fair enough, tbh it wont be the greatest reference anyway
its pretty meh as far as implementations go anyway
lemme check cynix
well i have a bunch but just wait for a bit
@wicked loom it seems that cynix doesnt have a vfs??? i went through every source directory and i couldnt find anything related to fs
yea i guess ill have to look at my old shitty impl instead
wait
waitwaiwait
nvm
@desert haven okay so these are my data structres right
the problem is that i dont know how to do the create function
for the tmpfs
ive completely forgot
like
i forgot at this point you know
haha it happens
well create() is quite simple, its allocating and initializing whatever metadata your tmpfs needs for keeping track of a file.
do u think i need to make a change to any of my data structures though or do they look fine
that would get you started, assuming struct vnode is how you expose your fs-specific structs to your vfs?
my advice is start with that for now, and then you can add things as you need them
start with create() yes?
maybe look at the big operations first, like looking up a node from a path
thats how I would approach it, but you could also start with create()
ill do create()
ok ๐
@desert haven for create() is it okay to create file if the vnode vtype is reg
or no
?
also do directorys have size
im so confused rn
??
the vnode op should take parameters to say
https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/fs/tmpfs/tmp_vnops.c#L941-L951 here is how it looks in solaris
the vattr parameter contains the needful information
offset works
as well
less gooo
feint
feintayl ๐
works fine
:)
@kind root lets go?

idk, context?
i finished working on the vfs and tmpfs
they both work flawlessly
letsgo



Windows NT code fr
so true ๐คฃ it is truly disgusting and barely even works ๐คฃ
Nt is actually so bad
Why are the system calls so damn dumb too
read() vs ReadFile() ๐
Because they knew they couldnโt be better than *nix so they just decided fck it letโs make our own thingโ
because devices are just special files with a special device minor major numbers
if you wanted you could create a second node for your hdd by using mknod to create a device with the right numbers
๐คฃ ๐คฃ
you're awesome sauce bro
sorry for my absence, was sleeping and working ๐ด
seems like you got it working though, congrats
i keep eepying
๐ท
the name isnt important tho?
yooo
limine
where is my fucking
response
im gonna end u
anyone know whats going on
im following spec in creating a request
and im externing from the request to get the response
where is the response
why it no exist
what's the config look like
but lit
just this chat
i didnt pass a module
but i should get a response
at least
spec didnt mention me NOT getting a response so
bro?
pass a module and check if it gets initialised
no modules
not processed
hmmmm I don't think I pass any modules but it's still initialised for me
nyaux might be doing some skill issue
@surreal path what version of limine do you have
like
lemme check
dude
is 2025
git says its latest
are you dumb
you could've just ran it ๐ญ
e
its on github anyway check if ur also getting the skill issue
how mr minecraft man
i'm not because i check responses for presence 

can you show me the definition of the request
here
hmmm should you be setting revision? I don't think that's an issue but isn't that set by the bootloader