#Nyaux

1 messages ยท Page 47 of 1

surreal path
#

the code is on github

#

if ur free

#

maybe u could take a look

#

because ive been pulling my hair out with this ๐Ÿ˜ญ

#

@silver yarrow

silver yarrow
#

I'm omw to work but send the actual place where u call these from

surreal path
#

okay

#

@silver yarrow

silver yarrow
#

I will take a look at work if I have spare time

surreal path
#

okay

#

thank you

#

ur really kind

#

ima go and nap for a bit

#

๐Ÿ˜ด

thorny glen
#

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

ebon needle
desert haven
#

Lol, let the man nap

fringe loom
#

imo you should get it working on x86_64 and then worry about porting it to other arches

surreal path
#

hi

#

im awake

#

but still sleepy

surreal path
surreal path
#

๐Ÿ’€

surreal path
surreal path
#

@flat nymph morning

#

u should be friends with me

#

real

flat nymph
#

morning

surreal path
#

i sent bro a fq

#

bcs me and bro are besties now

thorny glen
#

I'm oenguin

surreal path
#

and now will is also my bestie

#

u cant escape me

#

to which was rejected nooo

surreal path
#

i can uhhh

#

uhhhhhhhhhhhhhhhhhhhhhhhhh

#

i got nothing

thorny glen
#

Why do u want my bestiehood

surreal path
#

because bro is cool

thorny glen
#

I am a terrible horrible person just ask @wooden cliff

surreal path
#

idc

#

ur my bestie accept my fq

#

we are all besties now

thorny glen
#

As a hyena i have eaten many baabies

surreal path
#

so

edgy pilot
#

is this how people make friends

thorny glen
#

They are dead now i ate themm they are not alive

surreal path
#

yes

#

me and my gf can make more babies u can eat

thorny glen
#

I ate the babiess due to hyena

#

No

#

Ew

#

Don't say that

surreal path
#

MY BAD

edgy pilot
surreal path
#

2 weeks now

surreal path
#

uhhh

edgy pilot
#

show her that message

surreal path
#

u can eat my little brother

#

hes annoying

surreal path
thorny glen
#

I don't want to

surreal path
edgy pilot
thorny glen
#

You should love and care for your little brother

surreal path
#

i will love and care for my brother

surreal path
thorny glen
#

There is deep meaning to his life beyond his temporary childhood annoyingness

surreal path
#

i talk to her on my alt

thorny glen
#

And your actions now will have consequences for him for decades

edgy pilot
surreal path
#

dont say that

thorny glen
#

You should help your parents raise him to be a happy person

#

A happy and healthy guy

edgy pilot
surreal path
surreal path
#

no

#

never

edgy pilot
#

just because your partner won't know, you shouldn't do something

#

it was an analogy dummy

surreal path
#

i dont understand

#

brain explode

surreal path
#

hows that

#

๐Ÿ˜ค

thorny glen
#

What is my programming language

surreal path
#

jkl

surreal path
wooden cliff
#

what is happening here Whar

thorny glen
#

What's jkl

thorny glen
#

Let nyaux know I am an evil guy

#

I eat babies because I'm a hyena

wooden cliff
#

its true he killed me and im dead rn

thorny glen
#

Thank you for your testimonial

surreal path
thorny glen
#

You are dismissed

surreal path
#

johns kool programming language

thorny glen
#

Huh

wooden cliff
#

@thorny glen hi john !

surreal path
#

thats what jkl means

thorny glen
#

Don't just say stuff man

#

Make sense brother

surreal path
#

uhhhh

edgy pilot
#

wait your name is John but username Will?

surreal path
#

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

edgy pilot
edgy pilot
#

successful launch

surreal path
#

real

#

anyways back to napping

thorny glen
surreal path
#

then i WONT

thorny glen
#

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

thorny glen
surreal path
thorny glen
#

Someone needs to teach this kid some mannas

surreal path
#

okay bro dont kid me

#

๐Ÿ˜ก

#

i am 17 years old

#

thank u very much

#

soon to be 18

#

in like

#

2 months

thorny glen
#

I'm 22 and I'm still a kid

#

People call me kid

surreal path
#

well im clearly a very mature adult

thorny glen
#

I'm a "college kid"

surreal path
#

real

surreal path
#

im out of offers

#

so if u wanna be my friend accept the fq if not just dont ๐Ÿ˜” i will understand

flat nymph
#

i think the time froze for me when I was about 18

wooden cliff
#

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

surreal path
#

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

wooden cliff
#

actually yeah im sorry too that sounded more harsh than i intended

surreal path
#

its okay dw

flat nymph
#

friends have just been made

thorny glen
surreal path
#

my bad.

#

oh ok

thorny glen
#

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

surreal path
#

oh i see

#

i hope u do

thorny glen
#

Thank you

surreal path
#

u did yes

thorny glen
#

And roblock

surreal path
#

yes and roblock

thorny glen
#

Which they renamed to roblox later

#

Which is dtupid

surreal path
#

exactly

thorny glen
#

And before that i made

surreal path
#

yes

#

u did

thorny glen
#

Yes

surreal path
#

yes

thorny glen
#

And after that I made fortnite

surreal path
#

yes u 100% did

tawdry mirage
#

wtf are you hatsune miku

thorny glen
#

Dude. Not the time or place for a dox fest

surreal path
#

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

#

๐Ÿ˜ด

thorny glen
#

I'm not cool

#

Nobody likes me

#

I am hated

surreal path
#

i see differently

#

i dont hate you

thorny glen
#

And they took roblock from me

tawdry mirage
thorny glen
#

And they're trying to take mintia as well

#

Mintsuki used to be called coolsauceXD

surreal path
#

can i just ask why am i just a fucking loser like this

thorny glen
#

She changed to mintsuki as part of a plan to steal mintia from me

surreal path
#

why cant i just

#

be normal

#

i hate it

#

why am i even venting rn

thorny glen
#

You are seventeen

surreal path
#

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

thorny glen
surreal path
#

i didnt ask to be here ugh

thorny glen
#

It's a good sign you don't take these concerns seriously or sacred enough to keep them to a closer circle

surreal path
#

what does that mean

#

i actually wish i was dead

thorny glen
#

It would be scarier if you weren't announcing it to a public discord basically

#

So I'm glad you are

#

For your sake

surreal path
#

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

flat nymph
flat nymph
#

I also had that thoughts (about mylself)

surreal path
#

i genuinely want to attempt today like fr this time

#

kinda sick of this loop

#

we call "living"

flat nymph
#

it will get better eventually

#

you will not see that better if you end that now

surreal path
#

thats what they told me

#

when i was 14

#

when i was 13

flat nymph
#

bruh

surreal path
#

etc etc

flat nymph
#

you're almost 18

surreal path
#

it never did

#

i feel worse then before

#

worse then when i was 13

#

things never got better

#

they got worse

flat nymph
#

it doesn't mean they won't

surreal path
#

sure

flat nymph
#

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

surreal path
flat nymph
#

just look around you

surreal path
#

with my dumb questions

flat nymph
surreal path
#

i did with will

flat nymph
#

he was clearly joking

surreal path
#

about which statement was he joking about

#

because i dont know

#

i feel like he was serious up to the i made minecraft part

flat nymph
#

@thorny glen

thorny glen
#

I'm will

flat nymph
#

say something

thorny glen
#

About what

#

Idk what's happening

flat nymph
thorny glen
#

What am i supposed to do

flat nymph
#

idk

thorny glen
#

@surreal path you should not

surreal path
#

i annoyed u tho dont u agree

thorny glen
#

No

surreal path
#

oh

thorny glen
#

I did not care particularly one way or the other

surreal path
#

oh

thorny glen
#

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

surreal path
surreal path
surreal path
# thorny glen I forgot what even happened already

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

wooden cliff
#

@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

thorny glen
surreal path
thorny glen
#

Im just a guy

surreal path
#

yea i get that

surreal path
#

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

wooden cliff
#

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

flat nymph
surreal path
#

u seem like a really cool person

surreal path
#

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)

wooden cliff
#

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

surreal path
#

i am diagnosed

wooden cliff
#

oh!!

surreal path
#

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

wooden cliff
#

goodnight!!

surreal path
#

goodnightt

plush hearth
# surreal path i genuinely want to attempt today like fr this time

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.

edgy pilot
#

suicide?

plush hearth
#

Reading the messages around, I'd say that he was talking about that

edgy pilot
#

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

tender gorge
#

@edgy pilot let's not get that detailed

steady flume
#

yeah maybe don't post that

tender gorge
#

@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 ๐Ÿซ‚ ๐Ÿ’™

haughty kite
#

thats not even copyrightable

silver yarrow
#

sorry been hectic, lmk when ur up and we can debug this

#

(if its still a problem, haven't read through the thread)

edgy pilot
#

hmm I'm insufferable sometimes, aren't I

tender gorge
coral dove
surreal path
surreal path
#

i slept most of the night

#

i js woke up at 6am

#

so

#

we have a normal schedule now i think

desert haven
#

hello there

surreal path
#

hello r4

desert haven
#

hows nyaux going these days?

surreal path
#

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

surreal path
# surreal path hey im up now

@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

desert haven
#

nice, well good luck with the bug (I might take a peek later if I get the time and remember lol)

silver yarrow
surreal path
#

so 2pm my time

#

okay ill be ready

silver yarrow
#

it'll probably be closer to 3pm, something came up at work

finite summit
#

Let's go nyaux is back

silver yarrow
#

ok was trolling I'm omw home now

surreal path
surreal path
silver yarrow
#

@surreal path

#

im home

surreal path
#

yoo

#

hii

silver yarrow
#

vc?

surreal path
#

yess

fringe loom
#

maybe I'll join in ~1h if you don't find the issue

#

but hopefully it's solved by then

silver yarrow
#

unlikely

#

its like looking for a needle in a haystack rat nest

#

I need a therapist after this

fringe loom
#

what was the issue

finite summit
#

Expected it to be -5000 +5000

fringe loom
#

if there was only one

finite summit
#

Changes

fringe loom
silver yarrow
finite summit
#

Ah

silver yarrow
#

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

frigid cliff
silver yarrow
#

lol

#

that wasn't really meant to be left in

#

but it does adhere to the strict coding guidelines of Nyaux so its ok

frigid cliff
#

Considering there is a file in the root called on full of binary with the commit oh my god I can believe that

silver yarrow
#

Basically if it doesn't look like u were high on DMT when writing it, you are doing something wrong

frigid cliff
#

Most of my old code is kinda ok

#

I think I want to get back into osdev

rich trellis
#

okay what

#

im seeing the code

#

why

frigid cliff
frigid cliff
# rich trellis why

Basically if it doesn't look like u were high on DMT when writing it, you are doing something wrong

silver yarrow
#

people tried to get him to use clang format but that CLEARLY did not stick

frigid cliff
#

I never realized itโ€™s nyauxKC, why KC?

silver yarrow
#

idk he had a kernel called nyaux thats archived

#

lol

frigid cliff
#

Oh god what is this

#

Ive never looked at nyaux code either lol

silver yarrow
#

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

frigid cliff
#

And theyโ€™re

#

Just empty

silver yarrow
frigid cliff
#

Also why not do arch specific stuff in like an arch folder?

silver yarrow
#

oh yeah I love the assembly file that is not in arch/

rich trellis
silver yarrow
#

it is a perfect chaos

#

lol

silver yarrow
#

honestly my biggest grudge is that he doesnt stick to snake or camel case

frigid cliff
#

If it works it works

silver yarrow
#

but rather mixes them

frigid cliff
#

I guess he has a system

silver yarrow
#

oh also the struct thread_t is gold

frigid cliff
silver yarrow
#

(and if u are wondering, no its not typedefed)

silver yarrow
frigid cliff
silver yarrow
#

it has more features than my operating system

frigid cliff
#

I see

flat nymph
#

pmOS still doesn't

silver yarrow
#

WHAT

#

HOW

frigid cliff
#

Black magic probably

flat nymph
#

noone knows, but somehow it was

silver yarrow
#

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

frigid cliff
#

Also what is this random folder with a capital letter called Mutexes, isnโ€™t that what utils is for?

silver yarrow
#

lol

#

the capital letter

frigid cliff
#

It irked me

#

Because every else is all lowercase, minus uACPI

silver yarrow
#

also calling it mutexes is questionable

#

locks maybe

#

like I do common/locks

#

uACPI is passable

#

though id name it uacpi

frigid cliff
#

Oh god macros

supple robin
#

erm actually it's ยตACPI

frigid cliff
silver yarrow
frigid cliff
#

That would be hell

hollow goblet
#

also PR LGTM let's get this merged

supple robin
#

my

hollow goblet
#

no mรผรผ acpi

#

cuz that is the greek letter mรผ

kind root
#

who is the top 1 score

silver yarrow
#

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

kind root
#

you mean your bootloader?

silver yarrow
#

yes

kind root
#

yeah its like the worst thing to do

silver yarrow
#

it is

#

so fucking

#

boring

kind root
#

yup

silver yarrow
#

but I REFUSE to give up now

kind root
#

and im saying this as a person whos invested a year

silver yarrow
#

I mean I program VERY slowly

#

so with my pace I have prolly worked on this for like 6months ish

silver yarrow
flat nymph
kind root
#

it doesnt exist

flat nymph
#

I was considering using it for 32 bit memes

kind root
#

hyper is not dead, no

#

i will be using it for my kernel

flat nymph
#

Hyper bootloader Ultra protocol

#

that

kind root
#

yea

flat nymph
#

(I'm getting bored with disk/filesystems already sadmeme)

surreal path
#

im back

#

i slept

#

my bad

surreal path
#

causing the thread duplication issue thing

#

also less gooo

silver yarrow
#

its in the pr @surreal path

surreal path
#

nahhh

silver yarrow
#

me and mishakov just went "HUHH???" when we saw that

#

bro idk how it worked even a little before

surreal path
#

anything can happen

#

i could see flying pigs from my kernel and id be like

#

yep normal

silver yarrow
#

real

surreal path
#

real

silver yarrow
#

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

surreal path
#

why so

silver yarrow
#

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

surreal path
#

understandable

#

but

#

my reaction to ur information

silver yarrow
#

lmao

cinder plinth
flat nymph
#

just revert to the old context switch function

snow wolf
#

if you don't do contexts you don't need to do switches troll

surreal path
#

morning my beautiful peeps

#

i want mcdonald

#

๐Ÿ˜ก

silver yarrow
#

mornin

surreal path
#

no nyaux work until my dad get me mcdonald

#

๐Ÿ˜ก ๐Ÿ˜ก

surreal path
#

nahhh

#

trump unemployed real

#

trump just put my fries in the bag bro

thorny glen
surreal path
silver yarrow
#

he got fired

#

cuz no fries in the bag

surreal path
#

exactly

#

๐Ÿ˜ก

edgy pilot
#

I think it's supposed to be 2/3 of that

#

maybe even half

surreal path
#

my brother js hit me

#

in the left shoulder blade

#

nahhh thats crazyyy

#

bros nearly 20 while im 17

#

nahhhh

thorny glen
surreal path
surreal path
#

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

flat nymph
#

Hi

surreal path
#

haiii

#

sorry @brazen crater for the ping idk why i pinged u

surreal path
surreal path
#

oh yeah @kind root told me to update uacpi

#

for nyaux

#

lets do that rqrqr

#

okay all updated

kind root
#

Well not update

#

Its not merged yet

#

But test rather

surreal path
#

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 trl

#

i ran qemu 15 times

#

no bug

#

seems to be working fineeee

surreal path
#

what do u mean

#

@kind root

kind root
#

ill tell u when to update

surreal path
#

can i see the pr at least

kind root
#

its public

surreal path
#

which pr is it

#

oh i see

kind root
#

yea

surreal path
kind root
#

yup

surreal path
#

okayokay

#

not this garbage

#

@kind root who told u this was a good idea

kind root
#

the vote

finite summit
#

Let me find the poll for you

surreal path
#

like bro

#

how do u like this better

finite summit
#

#polls message

surreal path
#

not based mint and streaks and fadanoid and pitust and david and monkuos and avery and friends

#

๐Ÿ˜ก

flat nymph
#

Avery

surreal path
#

what about her

flat nymph
#

I thought you misspelled every

#

I need to get checked for dyslexia

surreal path
#

good morning chat

edgy pilot
#

good afternoon

kind root
#

@surreal path uacpi 1.0 is out

surreal path
#

will update

#

my bad was dealing with the hell hole that was my moms house

surreal path
#

okay

#

@kind root updated

#

anyways i go write userspace vfs program to verify things, first a parser for this /test/test/meow

surreal path
#

c strings are pain

rich trellis
#

c strings are goated wdym???

#

pure flawless design

surreal path
#

bru

#

goated indian women this time

ebon needle
#

sysret, roblox, eat 4:15, the man

surreal path
#

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

surreal path
#

yea

ebon needle
tawdry mirage
#

not sure this would be any easier with strings with size

surreal path
#

thanks

tawdry mirage
# surreal path wdym

i don't think the difficulty from doing this comes from the way c strings work specifically

surreal path
tawdry mirage
#

working with strings is just generally annoying

surreal path
#

agreed

surreal path
#

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

rich trellis
surreal path
#

i can use that

#

to do logic

#

to go back to the parent vnode

#

๐Ÿ˜Ž

rich trellis
#

i would do char str[] for things like that

surreal path
#

its good man

#

i might need something like nixstrap or jinx now

#

wait nvm

#

i need to do a FEW things first

silver yarrow
#

morning

silver yarrow
silver yarrow
thorn bramble
#

i mean

#

a C string is a regular string with a zero byte to mark where it ends

#

so, really, you just hate strings..?

finite summit
#

Yes

thorn bramble
#

that is fair

#

strings can be annoying

cinder plinth
silver yarrow
#

the annoying part is memory handling for strings in C

#

in a language with garbage collection or RAII or something it's fairly simple

surreal path
flat nymph
silver yarrow
#

I know

#

still annoying though

surreal path
#

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

surreal path
#

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

tawdry mirage
#

regular/directory/symlink/chardev/blockdev/fifo/socket/etc?

surreal path
#

but shouldnt that be abstracted away

#

thats bad vfs design

#

?

#

@tawdry mirage

tawdry mirage
#

i mean you somehow need to figure out whether you can readdir on the vnode and such

surreal path
#

yea ur kinda right

#

but what does regular mean exactly?

tawdry mirage
#

a regular file

surreal path
#

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 ๐Ÿ˜ญ

surreal path
#

everyone has different impls

thorny glen
#

there are many ways to do it

surreal path
#

and on lookup checking ur vnode

tawdry mirage
#

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

surreal path
#

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 ?

tawdry mirage
#

in managarm what we do for tmpfs is ```cpp
struct DirectoryNode : Node {
...
std::set<std::shared_ptr<Link>> entries;
}

surreal path
tawdry mirage
#

where a Link is just an (pointer to owner node, name, pointer to target node) tuple essentially

surreal path
#

i just need to know

surreal path
#

i just wanna know to improve

tawdry mirage
#

i mean a linked list is gonna suck when you're looking for a file by name in a directory

surreal path
#

yea perfomance wise i guess but

surreal path
#

cause i wanna impl this now

tawdry mirage
#

i mean, you can always change this later

#

it's not like you're carving a stone tablet

surreal path
#

i dont wanna change it later

#

cause

#

ill be lazy to

#

i think its fine anyway

surreal path
#

nyaux can now get the time from the cmos

#

which is nice

silver yarrow
#

but also I woudnt vouch for my vfs design

#

I mean it works fine but

ebon needle
#

flashbacks from 2016

silver yarrow
#

jesus lmao

desert haven
#

its a real piece of code

silver yarrow
#

never heard of linked lists or dynamic arrays huh

#

lmao

desert haven
#

but think of the speed of a raw array thonk

silver yarrow
#

lmao

#
> delete at index 1
> ...
> rip
edgy pilot
#

profit

frigid cliff
silver yarrow
#

I mean in reality u just change the data structure

surreal path
#

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

rich trellis
#

maybe a more specific name๐Ÿฅบ

#

like vfs_create

surreal path
#

what

rich trellis
#

i mean if you define it like that it will just be create

#

and its kinda bad for a function pointer name

surreal path
#

dude

#

vnode

#

->

#

create

#

vnode->create

rich trellis
#

but like isn't the typedef global?

surreal path
#

jno?

#

wtf

#

theres no typedef

#

this is a function pointer

rich trellis
#

ohh wait

#

srry

surreal path
#

is fine

rich trellis
#

i thought it was a typedef

surreal path
#

that would be stupid

rich trellis
#

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?

surreal path
#

i made the function now

#

so

#

now i need to

#

parse ustar or tmpfs first?

#

i think ill do tmpfs first

desert haven
#

yeah do tmpfs first, so you can unpack the tar into something ๐Ÿ™‚

surreal path
#

whats ur github account name

#

i need to look at reference code

#

for tmpfs

#

in terms of design

desert haven
#

I don't have anything fs right now meme

surreal path
#

yea i see that

#

its hard to read

#

cause i have zero c++

#

knowledge

desert haven
#

fair enough, tbh it wont be the greatest reference anyway

#

its pretty meh as far as implementations go anyway

surreal path
#

lemme check cynix

desert haven
#

ah yeah cynix ๐Ÿ™‚

#

any specific questions about the tmpfs?

surreal path
#

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

surreal path
#

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

desert haven
#

haha it happens

surreal path
#

yea

#

haha

desert haven
#

well create() is quite simple, its allocating and initializing whatever metadata your tmpfs needs for keeping track of a file.

surreal path
#

do u think i need to make a change to any of my data structures though or do they look fine

desert haven
#

that would get you started, assuming struct vnode is how you expose your fs-specific structs to your vfs?

surreal path
#

vnode contains a data field

#

so yes

desert haven
#

my advice is start with that for now, and then you can add things as you need them

surreal path
#

start with create() yes?

desert haven
#

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()

surreal path
#

ill do create()

desert haven
#

ok ๐Ÿ™‚

surreal path
#

@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

#

??

unkempt relic
surreal path
#

its okay me and wux are figuring it out

#

i nearly got it to create a directory

unkempt relic
#

the vattr parameter contains the needful information

surreal path
#

so close

#

less goooo

surreal path
#

offset works

#

as well

#

less gooo

#

feintayl ๐Ÿ˜‹

#

works fine

#

:)

#

@kind root lets go?

kind root
#

idk, context?

surreal path
#

they both work flawlessly

kind root
#

letsgo

surreal path
#

letsgooo

flat nymph
ebon needle
silver yarrow
thorny glen
coral dove
#

Nt is actually so bad

#

Why are the system calls so damn dumb too

#

read() vs ReadFile() ๐Ÿ’€

thorny glen
#

ikr'

#

like whyd they change the name for no reason

coral dove
surreal path
#

ustar devices how?

#

??

#

๐Ÿ˜ญ

tawdry mirage
#

if you wanted you could create a second node for your hdd by using mknod to create a device with the right numbers

thorny glen
#

you're awesome sauce bro

desert haven
#

seems like you got it working though, congrats

surreal path
#

i keep eepying

surreal path
#

!

ebon needle
haughty kite
surreal path
#

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

supple robin
surreal path
#

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

supple robin
surreal path
#

or not processed

#

WHAT MAKES IT PROCESS

#

๐Ÿ˜ญ

supple robin
edgy pilot
supple robin
#

no modules
not processed

edgy pilot
#

hmmmm I don't think I pass any modules but it's still initialised for me

#

nyaux might be doing some skill issue

supple robin
#

@surreal path what version of limine do you have

supple robin
#

are you dumb

surreal path
supple robin
#

you could've just ran it ๐Ÿ˜ญ

surreal path
#

its latest

surreal path
#

its on github anyway check if ur also getting the skill issue

surreal path
supple robin
edgy pilot
edgy pilot
supple robin
edgy pilot
#

hmmm should you be setting revision? I don't think that's an issue but isn't that set by the bootloader

supple robin
#

no

#

it's set by the executable