#Nyaux

1 messages Β· Page 59 of 1

maiden ridge
#

This gives a 150mb iso

surreal path
#

so something is cooked with my recipes

maiden ridge
#

Do you strip the binaries at the end?

surreal path
#

yes ofc

#

u can see the recipes for themselves in my repo

maiden ridge
#

But I think it's minimal in size

#

So it's around 150mb

surreal path
#

bros recipes are not cooked

maiden ridge
#

Ngl some of my tests are funny

surreal path
#

hi

maiden ridge
#

hi

surreal path
#

most ever

maiden ridge
#

Idk why cpuinfo is in here

#

But I didn't know where else to throw it in

#

So tests

surreal path
#

why are u a hammer tho

maiden ridge
#

dunno

#

Why are you an emo anime character

surreal path
#

ok bro

#

😭 πŸ’€

maiden ridge
surreal path
ebon needle
maiden ridge
#

extract your ramdisk and see what files are the largest

#

At some point I had pkgs inside pkgs by accident

#

Which doubled the ramdisk size

edgy pilot
#

literally nyaux

surreal path
#

ok bro

elder shoal
#

hey emo boy

#

hey hey

#

hey emo boy

surreal path
#

nah nooo πŸ™ 😭

edgy pilot
maiden ridge
surreal path
#

wait with du, how do i sort it from highest mb to lowest

maiden ridge
#

Wait it's John Astral

mossy belfry
#

most serious osdev thread

mossy belfry
elder shoal
maiden ridge
maiden ridge
mossy belfry
#

what does zg mean

surreal path
maiden ridge
mossy belfry
#

real

mossy belfry
edgy pilot
maiden ridge
mossy belfry
#

ur not beating the depressed emo anime boy allegations nyaux

surreal path
#

insane

surreal path
maiden ridge
surreal path
maiden ridge
#

did you at some point

#

Try to get gcc running or something?

surreal path
#

yea gcc runs on nyaux

maiden ridge
#

Ah that is it

bleak cedar
surreal path
#

how

mossy belfry
maiden ridge
#

The headers and libraries add to the size

surreal path
#

right

maiden ridge
#

So your recipes aren't cooked

edgy pilot
#

you are cooked

surreal path
#

is it fine for it to be 400MB tho???

mossy belfry
mossy belfry
#

i failed at that

maiden ridge
surreal path
surreal path
#

makes sense

mossy belfry
#

too frightening

surreal path
#

lmao

bleak cedar
#

too based

surreal path
#

L

mossy belfry
#

i said 'jeepers creepers'

maiden ridge
surreal path
#

yes

bleak cedar
#

if nobody can copy ur code, nobody can copyright infringe your code

surreal path
#

nano runs perfectly ℒ️ on nyaux

#

after some ncurse funnies

maiden ridge
elder shoal
#

if the boot time from loading the ramdisk starts bothering you just start writing a disk driver and ext2

surreal path
#

no as im missing some syscalls to do some shit

elder shoal
#

ideally with a page cache or smth

surreal path
#

like create files lol

#

page cache still cooked my brain

#

do NOT understand how it works

surreal path
#

to load the initramfs

#

ℒ️

maiden ridge
#

I have like

surreal path
#

nyaux just unpacks it into ram

maiden ridge
#

2 copies of the pkgs folder

edgy pilot
surreal path
surreal path
edgy pilot
#

no

surreal path
#

yes

elder shoal
#

I dont remember the last time I tested astral using an initrd ouside of real hardware it is a blessing how fast it is

edgy pilot
#

ok bro

elder shoal
#

actually scrap that I dont remember the last time I tested astral πŸ’€

surreal path
#

yea give me some docs for some decompression algos

#

then we talk and ball

edgy pilot
#

find some library

#

it's not that hard

maiden ridge
#

tinf

#

Or whatever

#

Did you abuse Nyaux yet

elder shoal
#

you have gcc right

#

compile gcc inside nyaux

#

best torture test

mossy belfry
#

"We have gentoo at home"

surreal path
brisk zenith
#

one torture test I like is fork bomb

surreal path
#

ah hell nahhh

edgy pilot
surreal path
#

nahh thats insane

maiden ridge
#

I tried building Polaris under Polaris and it worked

surreal path
elder shoal
maiden ridge
surreal path
#

insane

elder shoal
#

I was gonna do it this weekend but more important stuff appeared

maiden ridge
#

Or continuously call syscalls like fork and execve

surreal path
maiden ridge
#

Yeah what happened to Astral

#

Oh personal life

#

Alright understandable

surreal path
#

factorio cancer caught up with mathew too

#

i can see why cause i just started it

elder shoal
#

I have to juggle time between work, uni, my personal stuff and my bf

edgy pilot
#

wtf is this ui 😭

surreal path
#

holy shit beautiful

maiden ridge
#

ROBLOS

surreal path
maiden ridge
#

What are you doing with Nyaux now

edgy pilot
surreal path
#

input shit soon

maiden ridge
#

Like what do you plan to implement/fix next

#

Implement pipes no

surreal path
#

pipes soon too

maiden ridge
#

And ptys

surreal path
#

input tho first

maiden ridge
#

Drop the kernel console

surreal path
#

yea that

#

too

elder shoal
#

wait do you not have pipes already

surreal path
#

no lol

elder shoal
#

damn

edgy pilot
#

damn

surreal path
#

damn

ebon needle
#

hi

maiden ridge
#

damn

surreal path
#

this video screams 2018 humor https://www.youtube.com/watch?v=msV582x7gXU

part 1: https://youtu.be/IDbCNFdOc24

give me some ideas to put in part 3 and I'll maybe make it.

if you hate roblos... - ALL ENDINGS (part 2)

guys, thank you so much for over 3000 subscribers! the first part blew up and got over 500,000 views which is unreal to me! enjoy watching this video!
I didn't add some of good ideas you guys gave me be...

β–Ά Play video
worldly condor
#

not beating the allegations

surreal path
#

its not an LGBT server 😭

worldly condor
#

why does it have the progress pride flag then?

surreal path
#

no idea

#

pride mo nth lol

maiden ridge
surreal path
#

insane

maiden ridge
#

Whatever the fuck was the name of that dude

surreal path
#

yes

maiden ridge
#

LMAO 😭

#

The last time I saw that dude was 2021

surreal path
#

also mathew, get back to cooking in ultrakill

#

😑

surreal path
#

i forgot im in that server

maiden ridge
#

Call that talent hunting /s

worldly condor
maiden ridge
#

Happy gay

worldly condor
#

so you're not beating the being woke allegations /s

maiden ridge
#

Wtf Nyaux woke?!?!

elder shoal
surreal path
maiden ridge
#

Barbecue Bacon Burger

surreal path
#

Barbecue bacon burger

elder shoal
surreal path
ebon needle
bleak cedar
maiden ridge
#

WHAT

surreal path
#

im not

#

thats a joke

worldly condor
#

why are you outing him like that

surreal path
#

im not

worldly condor
#

in public

surreal path
#

bro

bleak cedar
surreal path
#

😭 😭

#

the allegations are crazy

worldly condor
#

that's not true

#

and if it were true

#

it would be unethical to out me like that

maiden ridge
#

True

surreal path
#

im shedding hair all over the bed like a kitty

#

insane

maiden ridge
#

Brother that's called hair loss

surreal path
#

my hair long af tho

#

how

bleak cedar
maiden ridge
worldly condor
surreal path
#

i think bros speaking hammer

maiden ridge
surreal path
#

crazy

maiden ridge
#

Nyaux xorg port when

surreal path
#

when i get sockets

maiden ridge
#

Damn

#

Final destination ass

bleak cedar
mossy belfry
bleak cedar
bleak cedar
worldly condor
#

CGA color palette

molten grotto
#

bluetooth on nyaux when

surreal path
#

when i get network card drivers

surreal path
mossy belfry
surreal path
#

qui qui qui

surreal path
mossy belfry
#

theyre not hard dont worry

surreal path
#

do u have NVMe

mossy belfry
#

yea

surreal path
#

damn

#

insane

molten grotto
surreal path
#

i saw that

mossy belfry
#

i dont have virtio because i am a Certfied Bum so i never felt like doing it

#

so no opinion on virtio

surreal path
mossy belfry
#

fr*nch ppl....

surreal path
#

"people"

maiden ridge
#

Bonjour

mossy belfry
#

jumpscare!!!

#

censor this fr*nchness

surreal path
#

oki i go nap now then we cook with ps2

mossy belfry
#

playstation 3 support when

maiden ridge
#

IBM Power support when

bleak cedar
#

̢:̢.̢|̢:̢·̢̢͟

bleak cedar
maiden ridge
#

No

surreal path
#

hold on before i nap

#

i gotta show yall mmy epic factorio base

molten grotto
# surreal path when i get network card drivers

there are really 2 options for bt, either over usb for which you need an usb hci driver or alternatively on eg. my phone it is bluetooth over SDIO (which means that you need an sd card driver)

molten grotto
surreal path
#

would be baller

#

im too good

#

look at this pro gamer base

daring juniper
#

nice!

bleak cedar
surreal path
#

is my thread

bleak cedar
#

I meant, more exposure

surreal path
#

right

worldly condor
surreal path
#

yea but

#

again i say a lot of off topic things in my thread either way

surreal path
#

i woke up

frigid cliff
#

Gm

surreal path
#

not really morning

#

but

#

good morning

#

lol

bleak cedar
#

here

#

now it's on-topic

surreal path
#

^^

frigid cliff
surreal path
#

real

#

reason i havent done anything today for nyaux is the same reason as monkuous

#

its TOO fucking hot

surreal path
#

maybe i can do something small for nyaux for now

#

like make a python script to automatically attach to qemu and load shit

#

makes things easier then manually typing in those commands

surreal path
#

how to get dynamic loading working into the kernel actually

mossy belfry
mossy belfry
#

perhaps

surreal path
surreal path
mossy belfry
surreal path
#

ill fix that

mossy belfry
#

like we don't need allat ykwim

#

thank πŸ‘

surreal path
#

@brisk zenith hows the heat today

surreal path
#

im suspecting not good

tender gorge
#

its warm even here

#

so likely

flat nymph
#

wait, where do they live?

surreal path
#

netherlands

supple robin
#

all goated people are dutch

ebon needle
#

🐐

surreal path
#

insane

mossy belfry
#

i like how this place is more off topic than #lounge-0

#

average day in osdev server

surreal path
#

uhh not rlly

mossy belfry
#

sometimz tho

broken depot
#

2025 year of the Nyaux desktop

surreal path
#

real

ebon needle
surreal path
#

you lit just did

ebon needle
#

its attachment

surreal path
#

press create

brisk zenith
#

hoping I'll have time tomorrow

surreal path
#

that is understandable

surreal path
surreal path
#

im not rlly doing much for nyaux today as i said i wouldnt be doing anything today but i decided i will do something small

mossy belfry
#

maybe make the readme more interesting

#

write a style guide

#

make it look cooler

surreal path
#

good point

mossy belfry
#

yes πŸ‘ try it out if u want

surreal path
#

tell me how to get rid of kernel/.cache

#

first

mossy belfry
#

it's that shrimple

cinder plinth
#

add to gitignore too

mossy belfry
#

ya

surreal path
#

done

mossy belfry
#

πŸ’₯

mossy belfry
#

maybe a roadmap

surreal path
#

sure

mossy belfry
#

or an overview or whatever

surreal path
#

mhm sure

mossy belfry
#

awesome sauce πŸ˜€

cinder plinth
surreal path
#

bru

mossy belfry
#

@surreal path what is ur commandline format

surreal path
#

option=value

mossy belfry
#

the complexity is unparalleled!

#

neat

mossy belfry
#

forking leads to children πŸ’₯

surreal path
#

cool

ebon needle
#

nyaux on tenor

mossy belfry
#

new york ax register

mossy belfry
#

they brought sed to discord πŸ’₯

surreal path
#

crazy

surreal path
brisk zenith
#

still half asleep but other than that I'm fine

#

probably gonna be able to get to it later today

surreal path
surreal path
surreal path
#

i just woke up btw

#

😭

brisk zenith
#

how do i trigger the issue?

surreal path
#

epicc

surreal path
#

its very inconsisent so sometimes youll get in on the second time

brisk zenith
#

how do i exit doomgeneric

surreal path
#

sometimes the 15th

#

u can

#

just dont provide the arg

#

for doom.wad

brisk zenith
#

ah right

mossy belfry
#

very professional osdev

#

good luck guys

brisk zenith
#

i can't reproduce the issue

#

spamming doomgeneric just results in an oom panic

surreal path
#

try running with tcg

brisk zenith
#

this is on tcg

surreal path
#

kvm then

brisk zenith
surreal path
#

i think oom happens on tcg only

surreal path
#

i can get it to reproduce on kvm but not tcg

brisk zenith
#

this is the issue right

surreal path
#

mhm

#

its very inconsisent which what error it is

brisk zenith
#

alr just making sure i'm not gonna be debugging something unrelated

surreal path
brisk zenith
#

@surreal path is remove_from_parent_process just meant to remove the process from the parent's child list, or is it also meant to additionally transfer the process's children to the parent?

#

i guess in general i'm confused on what data structure process_t->children is supposed to be

#

like is it a circular linked list? but then how do you represent a multi-level tree, since you don't have a separate node pointer?

ebon needle
#

Isn't it easier to put id of parent process to child process instead of having child process list in parent process ?

surreal path
#

sorry leo is helping me make nyaux use meson

brisk zenith
#

nah dw

surreal path
#

getting progress towards meson on nyaux

surreal path
brisk zenith
# surreal path any news?

The page faults are gone now and instead I only get OOM panics even on KVM, but I'm not sure whether that means it's fixed or, if so, what exactly the issue was

#

Going to bed now and continuing tomorrow

surreal path
#

to fix the page faults??

brisk zenith
#

I literally have no idea which of the changes I made fixed them

surreal path
#

fair

#

maybe do a git diff

#

anyways u should go to sleep

brisk zenith
#

Yeah

mossy belfry
#

is monokuous just the resident contributor to small osdev projects

kind root
#

Nah they help nyaux because he's stuck

surreal path
#

(which is a lot as im very very stupid)

surreal path
#

i lost all my changes cause i didnt commit my meson shit

#

why am i suck a fucking useless piece of shit

#

i even lost all my cmdline shit

mossy belfry
#

do you have a btrfs subvolume backup

#

or no

surreal path
#

no

#

do u think im smart

#

im a retard

#

i lost EVERY fucking change related to the cmdline as well

#

not just th meson shit

#

i genuinely wanna do things to myself which i cannot say on this server as that would be TOS breaking (and for TOS reasons this is a joke)

daring juniper
#

😭

surreal path
#

i annoyed the living shit out of everyone today and i just made it even worse but losing all my fucking changes

edgy pilot
#

unless you did rm -rf on .git it's probably recoverable

surreal path
#

thats the exact list of commands i had done

#

i.e. nuked my shit

hexed sluice
#

hm

edgy pilot
#

idk switch to cmdline

#

I'm not a git expert

hexed sluice
#

do you have the hash of the commit you created called "meson shit"?

surreal path
#

no

edgy pilot
#

scroll up in the terminal

surreal path
#

terminal was cleared

hexed sluice
#

do git reflog, it should tell you

surreal path
#

2f3149a HEAD@{14}: commit: move to meson

#

found it

hexed sluice
#

sure

#

do git status, what does it say?

surreal path
#

[rayan@athena NyauxKC]$ git status
On branch cmdline
Untracked files:
(use "git add <file>..." to include in what will be committed)
kernel/subprojects/

nothing added to commit but untracked files present (use "git add" to track)

hexed sluice
#

if you want you can do git checkout 2f3149a and that should have your meson shit

surreal path
#

that fixed it

#

thanks

hexed sluice
#

well it's not a fix

#

you're on a detached head now

surreal path
#

it got my shit back

#

so its a fix-ish

hexed sluice
#

but you can cherry pick it into a branch if you want

#

you want it added onto master?

#

what is the state of master? what are the last commits?

surreal path
#

i cherry picked it onto branch cmdline

hexed sluice
#

alright

#

is cmdline ahead of master?

#

like

surreal path
#

yea

#

well no

#

there is some merge conflicts

hexed sluice
#

where

surreal path
#
[rayan@athena NyauxKC]$ git cherry-pick 2f3149a
Auto-merging build-support/limine.conf
CONFLICT (content): Merge conflict in build-support/limine.conf
Auto-merging jinx-config
Auto-merging kernel/src/arch/x86_64/syscalls/syscall.c
CONFLICT (content): Merge conflict in kernel/src/arch/x86_64/syscalls/syscall.c
Auto-merging kernel/src/cppglue/glue.hpp
CONFLICT (content): Merge conflict in kernel/src/cppglue/glue.hpp
Auto-merging kernel/src/main.c
Auto-merging kernel/src/mem/pmm.c
Auto-merging kernel/src/timers/timer.cpp
Auto-merging kernel/src/timers/timer.hpp
CONFLICT (content): Merge conflict in kernel/src/timers/timer.hpp
Auto-merging kernel/src/utils/basic.h
CONFLICT (content): Merge conflict in kernel/src/utils/basic.h
CONFLICT (modify/delete): kernel/src/utils/cmdline.cpp deleted in HEAD and modified in 2f3149a (move to meson).  Version 2f3149a (move to meson) of kernel/src/utils/cmdline.cpp left in tree.
CONFLICT (modify/delete): kernel/src/utils/cmdline.hpp deleted in HEAD and modified in 2f3149a (move to meson).  Version 2f3149a (move to meson) of kernel/src/utils/cmdline.hpp left in tree.
error: could not apply 2f3149a... move to meson
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
[rayan@athena NyauxKC]$ git cherry-pick ^C3149a
#

i just wanna force it onto the branch

hexed sluice
#

ok so

#

do this

#

git cherry-pick --abort

#

then go to master with git checkout master

surreal path
#

mhm

hexed sluice
#

then cherry pick it there

surreal path
#

okay

#

yea that worked

hexed sluice
#

if there are conflicts just resolve them

surreal path
#

ill just delete the cmdline branch as that is useless now

hexed sluice
#

you said you lost your cmdline stuff

#

how is that?

surreal path
#

no its back

hexed sluice
#

in master?

surreal path
#

it was commited along with meson shit

#

yea

hexed sluice
#

oh it was a single commit?

surreal path
#

mhm

hexed sluice
#

alright then

#

please don't do things to yourself that cannot be stated due to ToS

surreal path
#

im just a little on edge today after a few things that happened ℒ️

#

ill try not to

#

thanks for the help <3

hexed sluice
#

np <3

surreal path
#

<3

surreal path
#

@brisk zenith when you discover the oom issue as well, please send a patch over <3

surreal path
ebon needle
#

you exiting

surreal path
#

doomgeneric

ebon needle
#

and after opening ?

surreal path
#

run the command without providing the doom wad file

#

muti times

ebon needle
#

a

surreal path
#

anyways while we are waiting on monkuous to look into the funny painful issues ive been working on the cmdline line shit and now it successfully parses the shit, i can just load it into a funny array and im done

#

whats next for nyaux is ps2

#

@elder shoal worst nightmare

ebon needle
surreal path
#

i want to know how other hobby oses do it in a sane and proper way

#

astral especially, which @elder shoal can answer if he wants to when hes done being in his fur suit or wtv furries do

ebon needle
#

the last time i tested astral ps2 keyboard just dont wanted to work on my laptop

surreal path
#

that is not mathew's fault

#

more of the funny quriks with ps2 real hardware

#

@kind root give us ups2 already

#

okay thats 3 pings in one convo

#

whoops

elder shoal
surreal path
#

also funny thing, nyaux does not have "sleeping threads" yet β„’ reason for this is, its just kinda easier to spin and sched yield manually to execute other threads until your done "sleeping"

#

nyaux HAS the ability to sleep threads

#

i just

#

never tested it

#

nor do i plan to until required

surreal path
#

no thanks

elder shoal
surreal path
#

cool

mossy belfry
#
unsigned char keyboard_map[128] = {
    '\0', '\e', '1',  '2',  '3',  '4',  '5',  '6',  '7',  '8',  '9',  '0',
    '-',  '=',  '\b', '\t', 'q',  'w',  'e',  'r',  't',  'y',  'u',  'i',
    'o',  'p',  '[',  ']',  '\n', '\0', 'a',  's',  'd',  'f',  'g',  'h',
    'j',  'k',  'l',  ';',  '\'', '`',  '\0', '\\', 'z',  'x',  'c',  'v',
    'b',  'n',  'm',  ',',  '.',  '/',  '\0', '*',  '\0', ' ',  '\0', '\0',
    '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '7',
    '8',  '9',  '-',  '4',  '5',  '6',  '+',  '1',  '2',  '3',  '0',  '.',
    '\0', '\0', '\0', '\0', '\0'};
#

it's that shrimple

#

huh wait what

surreal path
#

its just that, astral is more well tested and id rather look at its code as mathew has already gone through ps2 hell

#

nothing againist you or anything lol

#

i see astral uses a ring buffer, nice

elder shoal
#

Brother Ive gone to ps2 hell and Im still with lava to my neck

surreal path
#

fair

mossy belfry
#

PS2 is trivial you won't struggle with it

surreal path
#

thats not the issue

#

the issue is real hw quirks

mossy belfry
#

I did it like day 4 of osdev and later deleted most of it to do usb kb

#

oh ok

ebon needle
mossy belfry
#

literally just that

elder shoal
#

I still need to do usb stuff one day

#

But that woild imply I work on astral which is a contradiction

surreal path
#

he has xhci

surreal path
#

keep playing ultrakill, be gay, do furry things and uhh

#

idk

mossy belfry
#

when will we get web browser ported to nyaux and networking stack so you can message us from nyaux

surreal path
#

when we get a network stack

mossy belfry
#

doing that is Very Fun and Not Painful, trust

elder shoal
#

A crap tcp impl isnt that hard

surreal path
#

a good one is hard tho β„’

#

udp is ez tho i think

#

from what i know from how oberrow got udp working

surreal path
#

im still super proud of you for somehow getting xhci

#

thats really fucking hard

#

good job

#

oh yeah random thought, ive been looking at the spec for igpus for intel

#

it would be funny if we implemented it in nyaux

#

or well tigerlake igpus

ebon needle
#

i got xhci for 14 days

surreal path
#

yea

#

thats still fuckin impressive

elder shoal
#

Tcp is a few.thousand

mossy belfry
#

hmmm I kinda want xhci since I wanna be able to make a usb installer

but also my thinkpad is ancient so maybe it won't be supported

it ok tho I started on xhci today thank for motivation

elder shoal
#

And my tcp impl has really bad tx

#

I did properish rx tho

mossy belfry
#

The Callisto Protocol

brisk zenith
surreal path
brisk zenith
#

From what I gathered yesterday I think the oom issue might be separate? I'm not entirely sure

brisk zenith
#

Like a separate issue that happens to be triggered by the same situation

surreal path
#

could it be related to the pmm in general?

#

considering its new code

#

relatively

brisk zenith
#

Maybe? I wouldn't rule it out but I don't think it's the most likely contender

#

In any case the page fault thing was caused by parent processes being freed before their children

surreal path
#

yes, did you figure out how you solved that or is that still a mystery lol

brisk zenith
#

Well yes but it's a bandaid fix that results in behavior that doesn't match what's specified by POSIX and the like

#

I made remove_process_from_parent add all the children to the parent's list

surreal path
#

yea that is wrong POSIX wise

brisk zenith
#

The issue with this is that you're supposed to make pid 1 adopt them

surreal path
#

i thought killing a process kills its children?

elder shoal
#

No

surreal path
#

oh

#

so does its children just go to pid 1???

#

in that case the fix is easy

#

just have the children for a process get put into pid 1

surreal path
brisk zenith
#

Well the parent exits before the child

#

And it seems like the existence of a child does not add to the parent ref count

surreal path
#

so the proper fix i suppose would be that a child process adds to a parents ref count

brisk zenith
#

Ehhh

#

The proper fix is process orphaning

surreal path
#

what would the proper fix be then

brisk zenith
#

Aka sending shit to pid 1

surreal path
#

process orphaning?

#

oh

#

so just send all children to pid 1

#

when a process is killed

brisk zenith
#

Implicit refs due to parent child relationships would fix the issue but it's not strictly correct

#

Or well I guess it would be depending on how your waitpid works

surreal path
#

okay so implicit refs + sending all parents children to pid 1

#

should fix it then

brisk zenith
#

Either of those would fix it, doing both is pointless

surreal path
#

why?

brisk zenith
#

Implicit refs would inherently ensure that the parent doesn't get freed before its children
Sending all children to pid 1 would ensure that the children have a different parent by the time the original gets freed

#

Either one is sufficient, no need to do both

surreal path
#

yea but if a process has a refcount

#

it should be increased by its children

#

that just makes sense

#

not really for the fix

#

but rather for it actually making sense

brisk zenith
#

Conceptually, sure, but is it convenient? I'd argue not, because not incrementing the ref count makes it so there's a clear point where you reparent the children: during free

#

If you do increase the ref count, you need to reparent the children at some earlier time, because it won't get freed until those children are gone

surreal path
#

right

#

then we'll just do the proper posix fix

#

let init deal with it

#

i wonder what init system nyaux will use

#

tbf

#

probs systemd

cinder plinth
#

aaaaaaaaaaaaaaaaa

#

no

#

pls

surreal path
#

why

#

whats wrong with systemd

cinder plinth
#

it'll be a pain to port first of all

surreal path
#

menix has the recipes

#

its a good test of linux APIs nyaux needs

cinder plinth
#

yes but you lack the apis

surreal path
#

for now β„’ i mean later on

edgy pilot
cinder plinth
#

lol

surreal path
#

lol

#

ah yes

#

get monkuous to write my kernel

#

real

cinder plinth
#

@brisk zenith do you freelance

#

i will hire you

surreal path
#

😭

brisk zenith
cinder plinth
#

(no i wont but come work on dufay)

#

I was kidding

surreal path
#

okay but seriously tho ill just steal menix recipes for systemd@magic kernel did when i have the APIs needed β„’

cinder plinth
#

but come work on the superior kernel

#

rn its bad but eventually it'll be not mediocre I think

surreal path
#

insane

elder shoal
cinder plinth
#

openrc is cool

surreal path
#

is it hard to port?

cinder plinth
#

its the best in-between between something like runit and systemd

surreal path
#

what things do i lose if i dont use systemd

cinder plinth
#

aka it doesnt suck ass and is actually usable

#

runit isnt very user friendly but it's good

#

ok I kinda wanna install gentoo now

surreal path
cinder plinth
#

systemd is boring and will be a pain to port

surreal path
#

the recipes are already done

#

for menix

#

and it compiles

cinder plinth
#

it'll just make nyaux have to implement linux stuff

surreal path
#

and how is it boring?

cinder plinth
#

which sucks

surreal path
cinder plinth
#

are you happy with implementing shitty interfaces to get systemd to run

surreal path
#

yes

cinder plinth
#

imo it's much cooler if you do your own thing and not just be "shitty linux clone #298392832"

#

you could port initware

#

it's systemd but runs on bsd

#

it's fadanoid's

surreal path
#

its cooler if nyaux was actually able to do things 99% of hobby kernels cannot do (excluding managarm), weston with fuckin minibrowser

surreal path
#

i might just make it configurable if you wanna roll what init system u'd like

#

somehow

#

which involves porting mutiple but

cinder plinth
surreal path
#

like what?

cinder plinth
#

swap and good memory management, actually good scheduling

elder shoal
#

I want to try my hand at porting openrc again, last time I tried I didnt go very far and got lazy

surreal path
#

β„’

cinder plinth
elder shoal
cinder plinth
#

think about it

#

most hobby kernels dont even get to that point, or just straight up dont do them (like vinix)

surreal path
#

see Mutexes/KMutex.c

cinder plinth
surreal path
elder shoal
surreal path
#

when i figure that out

elder shoal
#

Walk before you run

surreal path
#

for some odd ball reason??

#

yk what fuck it we ball lets test it

cinder plinth
#

overall the average quality is higher than before

surreal path
#

page cache soon as that is required for mmaping tmpfs files

elder shoal
#

I still need to do a dentry cache

#

Shouldnt be too difficult I think

elder shoal
surreal path
#

wdym

#

i dont have page cache

#

so thats not gonna work

elder shoal
#

Oops forgot to remove reply

surreal path
#

i am SUPER confused with how it works, so id rather put it off for later

mossy belfry
#

do you guys also sometimes all of a sudden discover bugs when you switch to -M q35 lol

surreal path
#

i should keep a todo list of things to be done with nyaux

surreal path
#

☠️

mossy belfry
#

oops

#

i should do that too

cinder plinth
#

q35 shouldnt change much

mossy belfry
#

qemu's q35 ahci likes to lie about things btw, it will create a disk that doesnt actually have anything so make sure that you check its signature and verify that it is a valid one of an actual disk

surreal path
#

real hw does this all the time iirc

mossy belfry
#

i had a dumb bug where i didnt do that and a disk with 0xffffffff as its signature popped up and my driver tried to read it like it exists

#

yes

cinder plinth
surreal path
#

mhm

cinder plinth
#

whats minibrowser

surreal path
#

webkit

cinder plinth
#

ahh

cinder plinth
#

yeah

#

I found it

#

minibrowser is a test browser

#

in the webkit repo

surreal path
elder shoal
# surreal path i am SUPER confused with how it works, so id rather put it off for later

super basic page cache:
thread: Hi can I have page 10 of file 0xffff800012345678
pagecache: Hold on lemme check if I have it somewhere
pagecache: I do not, let me get a free page from free memory or if theres none then one from the page cache that is not being used
pagecache: now I will ask the filesystem to read a page from the file into the page
pagecache: here is the page with refcount 1
thread: Thank you I am now mapping it
thread: I am now unmapping it and no longer need it, it has refcount = 0
pagecache: I will have it back and leave it stored in case I will need it later for another operation

cinder plinth
#

and when refcnt = 0 put it on the "not being used list"?

elder shoal
#

Yeah

surreal path
#

wrong reply

#

meant for @elder shoal

elder shoal
#

I mean rustc knows how that stuff works too so

surreal path
#

guess both ways lol

brisk zenith
#

Another possible scheme that isn't susceptible to this involves keeping track where the pages are mapped, preventing eviction during mapping (locking until the pte has been written, potentially through rcu) and unmapping a page everywhere upon eviction

surreal path
#

nyaux now parses command args just fine

#

pretty cool

mossy belfry
#

nyaux ci/cd has now officially been failing for one month straight

surreal path
#

ok

mossy belfry
#

nice

ebon needle
surreal path
#

new one

elder shoal
#

from emo twink to twink robot

surreal path
#

okay bro 😭

mossy belfry
#

he's just a pretty boi :3 it's no problem

daring juniper
#

Ooh, new pfp

ebon needle
#

😑

surreal path
#

insane

ebon needle
surreal path
#

i was eeping with the game on

edgy pilot
surreal path
#

hello chat

elder shoal
surreal path
#

is that V1 for hit indie game ultrakil

ebon needle
surreal path
surreal path
ebon needle
surreal path
#

ur cooked

surreal path
#

lol

surreal path
#

okay we ball implementing ps2

kind root
#

nyaux ups2 LETSFUCKINGGOOOOOO

surreal path
#

real

surreal path
#

also hi lol

forest blaze
#

yo great progress in yo kernel

surreal path
# surreal path also hi lol

ive implemented a fix so any process killed gets it children sent to pid 1 but we are still fucking dying with the oom issue nooo hopefully you get to that soon when ur able to

kind root
#

yess

surreal path
#

indeed

kind root
#

nyuax is cooking

surreal path
#

reall

forest blaze
#

"children killed" the average person seeing this:

brisk zenith
surreal path
#

theres an eviction list?

brisk zenith
#

Eviction list = the list of pages with ref count 0

surreal path
#

currenetly pages arent exactly represented in nyaux with a ref count nor struct

brisk zenith
#

Which pages you unmap affects performance quite a bit, but for just making it work any non-anonymous page will work

surreal path
#

so im guessing im gonna need that

brisk zenith
#

Well yeah but you asked how you'd handle that with the really basic page cache scheme

#

Which does have ref counts

surreal path
#

fair

surreal path
brisk zenith
#

Yeah I haven't found anything

surreal path
#

damn

#

its okay tho, it might turn up soon maybe i hope

#

i rlly dont know

#

weird ass issue

#

after i implement ps2 for nyaux and get doom input going ill try to investigate it myself more in depth

#

it could be doomgeneric itself leaking memory somehow considering no other program really does it

#

idk

forest blaze
#

why does EVERYONE need doom (i will do it tho)

surreal path
#

its a good test of your kernels shit

forest blaze
#

graphics at peak

surreal path
#

like your syscall interface, fbdev shit, keyboard input, allocation etc etc

forest blaze
#

run crysis

#

πŸ™‚

#

btw i can make my own syscalls or is there a norm

surreal path
#

sure lets just fuckin get @next sedge 's nvidia driver port going, implement drm and weston in one hour. somehow get steam running and probs systemd ah yes

#

one day implementation

#

ez

forest blaze
#

ahh yesrome WAS built in a day

surreal path
#

okay nvm even my laptop is overheating, might need to wait til 8pm as its too hot atm

#

usually where i live, 8pm it gets cooler enough

forest blaze
#

i have a 2011 thinkpad be lucky

surreal path
#

even this fuckin fan cannot keep up with ze heat

forest blaze
#

i have a fan disappeared in dust

surreal path
#

also considering it doesnt have a protective case over it im scared to run it on higher speeds do to the possiblity of it slicing my arm off β„’

forest blaze
#

why no case

surreal path
#

cause its broken

forest blaze
#

same hee i hotglued it

#

my display has 360deg rotation

#

(one hinge disappeared one fine day)

surreal path
forest blaze
#

its india

surreal path
#

what

forest blaze
#

and 10 pm

surreal path
#

monkuous is not from india

#

???

#

😭 ??

brisk zenith
#

Yeah it's been fine the past few days

surreal path
#

thats good to hear!

forest blaze
#

yay

surreal path
#

have you ever played factorio btw?

#

if so check out this fuckin banger shit

#

im getting better

#

im getting the funny green liquid

forest blaze
#

need it

#

but

surreal path
forest blaze
#

my HD 3000 will conk out

brisk zenith
surreal path
#

i just started so

forest blaze
#

lol

surreal path
#

i got only 8 hours in

brisk zenith
#

I honestly don't know how I have 550 hours in factorio without ever launching a rocket

surreal path
forest blaze
#

time to gain more knowledge on the differences between FAT32 and a fish tank ig so yeah see ya

brisk zenith
#

Oh I usually just play with biters off

surreal path
#

honestly fair

brisk zenith
#

Or with pollution spreading off if I don't want to disable biter related achievements

surreal path
#

but i want the full factorio experience β„’

surreal path
#

im assuming

brisk zenith
#

I actually don't

tawdry mirage
#

😭

surreal path
#

oh damn

surreal path
brisk zenith
#

I don't remember which ones I've never had given I've reset them a bunch of times but I know I've never had them all at once

surreal path
#

fair fair

tawdry mirage
#

i had all achievements pre 2.0 and now i'm missing 14

#

also i have 183h in my single space age save and i still haven't beaten it

#

welp ig now i'm playing factorio

surreal path
tawdry mirage
#

nah first i need better bases on all the planets trl (another 300h)

surreal path
#

thats 300h?????????

#

damnn

tawdry mirage
#

i mean if i wanted to i could just do it today probably

#

i just need some research and to build a new ship

#

but i require more spm

#

i decided i will move all the base science production to vulcanus

surreal path
#

fair fair

elder shoal
#

Im playing the real factorio (gregtech nh

surreal path
#

it looks rlly fun

tawdry mirage
#

i have a monifactory save that i should maybe get back to sometime

#

although there's some big updates coming so i'm waiting

surreal path
#

interestinggg

#

alr 2 hours til we ball with ps2

surreal path
#

1 hour

kind root
#

what tier are u atm

surreal path
#

infy plays gregtech???

#

infy based???

kind root
#

i had the gtnh tag for like

#

multiple months

surreal path
#

i didnt realize lol

kind root
#

bruh

#

do u play also?

surreal path
#

i want to

#

i havent yet

#

i played a little ME and that other mod

#

i cant remember whats its called

#

but i played it a little as a kid

#

i remember shrinking a chunk into a me card thingy

#

and going inside it

#

coolest shit ever

#

idk if you know what that mod was @kind root

#

it has a bunch of connectors

#

i also played opencomputers 2

#

based mod

kind root
#

AE2?

surreal path
#

yea that

#

fun as balls

kind root
#

its basically the backbone of mid-late game gtnh

surreal path
#

oh damn really??/

kind root
#

no other way to get billions of resources with multiblock spam

surreal path
#

damn

kind root
#

and gtnh is basically microcrafting shit

#

without ae2 its really really painful

surreal path
#

minecraft factorio

kind root
#

so up to the HV tier u constantly microcraft

#

or EV even

kind root
surreal path
#

oh yeah i checked the leatherboard

kind root
#

in factorio u put one generator and that can feed tons of machines forever

surreal path
#

didnt realize you updated it

#

baller

tawdry mirage
kind root
surreal path
#

automation my beloved

kind root
surreal path
#

damn

mossy belfry
elder shoal
kind root
#

ah

#

gl

kind root
surreal path
#

ok we ball

#

mb got distracted playing factorio

#

that thing is a time stealer

surreal path
#

typo pid 0

#

@brisk zenith if ur still here, can i have the patches you did around waitpid

#

if you did any

brisk zenith
#

Didn't do any

surreal path
#

right

#

im trying to get the proper fix working

#

it is trlling me

#

waitpid is hanging somewhere

#

time to add more prints

#

okay so

#

the way i do process->children is kinda wrong

#

reason being

#

say we have process x

process xs children is this
process |
proc 2 <|

#

but what if a process has MUTIPLE children

#

this is not supported in nyaux

#

process x with muti children, what nyaux does when it encounters this

process x
process |
proc 2 <|
proc 3 <|

#

this is wrong