#Astral

1 messages · Page 36 of 1

neon crane
#

man and gram

pure thunder
#

womanagarm

native pollen
#

kilogram

hearty fulcrum
#

managramme

native pollen
#

electroencephalogram

pure thunder
#

alakazam

brazen minnow
#

managarararam

native pollen
tall bluff
#

managerarm

flint condor
#

I keep reading it as mammogram nuke3

brazen minnow
#

tbh this is one of the most impressive os projects just behind managarm

prime mulch
#

mintia has fallen so behind

hearty fulcrum
#

it's over

flint condor
#

it's so joever?

grand shadow
#

joewarida

grand shadow
#

I'm gonna be working on a generic posix psutils

#

since that is one of my goals for astral + zinnia is going to use it because sysctl and no /proc linux brainrot

opal lotus
#

W

grand shadow
#

my ragebait shitpost might reach my wine post I am cryin

mild sentinel
grand shadow
#

nothing beats shrekos

mild sentinel
#

I think you can

#

You just have to believe

willow rapids
#

there ya go

grand shadow
#

@opal lotus larp larp larp sahur

#

that stime a bit fucked ☠️

grand shadow
#

If I can get enough calc studied today I can probably get pgrep or pkill imppemented

#

Why do they make computer science students study calculus when our whole job is to ask ai to make reactslop smh

#

Actually no thats wrong

#

Our job is not to make reactslop its to be an uber driver

grand shadow
#

U dont do cs lil bro

grand shadow
opal lotus
#

but then covid happened

grand shadow
grand shadow
opal lotus
#

1

#

nice

grand shadow
#

Literally just ctrl c ctrl v astrals ans change constants

#

☠️

opal lotus
wild marsh
#

just run c2rust on astral to make zinnia

opal lotus
#

or mrustc to make astral from zinnia

grand shadow
#

Claude, rewrite astral in rust make no mistakes

grand shadow
mild sentinel
#

It did do it for other large projects before

grand shadow
#

I think he didnt push it

mild sentinel
#

Well gotta whip the clanker some more then heh_face

#

C'mon rewrite this shit into rust trl

opal lotus
grand shadow
#

Codex wouldve been like "yes sir I will rewrite this into rust AND zig"

#

Mint isnt even here for me to be throwing anticlaude rage bait like this

#

🥀

gritty shore
grand shadow
gritty shore
#

What kinda calculus are you doing

grand shadow
#

We had multivariable calc this semester and to finish it off we are doing series

gritty shore
#

Ah we did series before

#

multivariable calc is fun tho

grand shadow
#

Yeah it was cool

grand shadow
gritty shore
#

Yeah that's closer to what we did

#

Calc 1 was derivatives, calc 2 integrals and series, calc 3 multivariable calculus

grand shadow
#

Damn you have an entire calc class for derivatives?

#

We had just one that had derivatives, integrals and some analytical geometry stuff

gritty shore
#

And optimization problems using those

#

So kinda like an intro to calc

wild marsh
#

i had a single course that covered derivatives, integrals, infinite series, ordinary diff equations

#

during the first semester

grand shadow
#

Ah that makes more sense

grand shadow
#

I am thinking of taking the diffeq class but its an elective for cs but I know I dont commit to studying until like a few days before the exam so I dont want to suffer more

grand shadow
wild marsh
#

the only thing i remember from the diff eq part is characteristic equations and corn

#

(corn - całka ogólna równania niejednorodnego - general solution of a nonhomogeneous equation)

gritty shore
#

I'd try making an LLM from scratch if you didn't need a gazillion dollars to train one

grand shadow
#

Just buy a h200 5head troll

grand shadow
#

Get vc money say you are making novel llms

grand shadow
mild sentinel
#

They trained an LLM with it on a few GPUs

#

It was dumb

#

Not even dumb

#

But like

#

Moronic even

grand shadow
#

Gonna download my message history over my two accounts and make mathewndLLM

mild sentinel
#

I hope it's like

#

More than 3 million messages

grand shadow
#

Considering I have been on this god forsaken platform for over 10 years

mild sentinel
#

Damn

#

Maybe there is a chance

marsh sparrow
#

shitty = GPT 2 level

gritty shore
#

That's karpathy's thing right?

marsh sparrow
#

yeah

#

i think it can be trained for $<100 on AWS instances

#

i haven't tried it myself

gritty shore
#

That's still expensive if you mess something up meme

opal lotus
#

anything aws is

hearty fulcrum
#

amazon got to him

marsh sparrow
#

you can see how the loss behaves etc even w/o doing that

native pollen
grand shadow
#

bro what the fuck

viscid flame
formal patio
#

did anything happen at that point in time

hearty fulcrum
#

someone's training claude 5

grand shadow
#

Maybe some random ahh guy just had git clone on a loop

formal patio
grand shadow
#

Trvth

willow rapids
#

probs

grand shadow
#

@opal lotus soon

opal lotus
#

huge

grand shadow
#

I'm gonna be able to have my screensavers back

grand shadow
quartz granite
grand shadow
quartz granite
#

sndiod

grand shadow
#

I added ps/pkill/pgrep

quartz granite
#

awesome

#

What's next?

grand shadow
#

xscreensaver

bronze nexus
#

Mat outdoing himself as always

quartz granite
#

Good luck

grand shadow
#

maybe I also port a file manager/editor/whatever to finish the nscde look

#

maybe even port xdm or smth

#

nscde also works under non-root which is nice

#

idling also works for the screensavers

#

so yay astral now has screensaver support

#

lmao I got one telling me to install a perl package

#

☠️

grand shadow
#

billions must compile webkit on a shitty 10 dollar vps

opal lotus
grand shadow
#

was in ze fucken

#

startx just works now

#

maybe it was that one socket backlog bug

#

yeah it just works

#

time to migrate my fucked up scripts to just be a wrapper around startx xddddddd

grand shadow
#

Sir, another ai slop pr has hit the astral

fleet osprey
#

oh dear

#

wtf is it doing

prime mulch
#

teeellll me about it

#

tellll me all l abou it

#

tell me about it..............

grand shadow
#

Like WTF

fleet osprey
#

I got one of those too

#

from the same user

prime mulch
#

fuck you hoe

fleet osprey
grand shadow
prime mulch
#

mathew the fucking biych

opal lotus
#

cvnt

hearty fulcrum
native pollen
mild sentinel
hearty fulcrum
#

clanker

gritty shore
#

Can you guys stop, please, they have feelings like us...

brazen minnow
#

tbh i use ai all the time

#

but the useless ones like those yt spam bots those pmo so much

mild sentinel
#

Oh wait

gritty shore
#

It's jar jar

mild sentinel
#

Fuck

#

Ykw close enough

acoustic peak
#

the fuck is this on the gh

mild sentinel
opal lotus
acoustic peak
#

oh really i couldnt tell

acoustic peak
mild sentinel
mild sentinel
acoustic peak
hearty stratus
warped plinth
#

honestly quite close...

#

everyday i'm closer to daily driving astral halfmemeleft halfmememiddle halfmemeright

analog berry
#

accelerate it by contributing patches

grand shadow
#

realistically all thats left is speed and stability

grand shadow
#

I am unsure if I am going to keep xfm as a 90s larp thing though

#

I think I will switch it for xfile

prime mulch
#

would you ever consider making your own window system and userspace

willow rapids
#

Math11 protocol

acoustic peak
# grand shadow Probably not

It's pretty fun if you know what youre doing and can actually style it the way you want, but also makes all Xorg programs not work anymore

#

Though with tools like xbanan I guess that's becoming less of a problem

opal lotus
willow rapids
grand shadow
#

I have an rtl8169 driver

opal lotus
#

etc etc

mild sentinel
tulip zinc
grand shadow
#

lmao the screensaver starts automatically now

#

also wtf why did I type neofetch there and not fastfetch

#

brainrot

acoustic peak
prime juniper
viscid flame
willow rapids
grand shadow
grand shadow
#

I should figure out why unity games don't work on astral

#

and also finish ricing nscde

#

and port xfile instead of xfm

grand shadow
#

They seem to get stuck on mono bullshit

#

Or well, did

#

I havent tested in months and have done a lot of bugfixing since then

analog berry
#

Does c# work?

grand shadow
#

No idea

analog berry
#

Maybe start with that lol

grand shadow
#

Probably lmao

#

It would be fun to play unity games in astral but any unity game would probably run at like seconds per frame if the performance of non unity is anything to compare to

#

☠️

#

I dont remember if I ever profiled wine

marsh sparrow
#

you could try to get nvidia hw accel working

analog berry
#

Yeah tbh that probably relies more on hw accel than older games

grand shadow
robust geyser
#

you also knew nothing about usb and sound stacks yet u did both easily

formal patio
#

it's the spirit of osdev

grand shadow
#

Calc exam done, astraling shall resume soon with a brief pause for another exam

analog berry
prime mulch
#

ass trolling

#

sorry

grand shadow
prime mulch
#

Does astral have a built in kernel debigger

opal lotus
analog berry
#

And he was smart

#

And wrote the greatest os

grand shadow
prime mulch
#

can i work on astral and implement every planned feature for my kernel in astral kernel instead

analog berry
#

Yes

#

Do it

ocean sedge
#

Astral on AMD Ryzen 7530U laptop

#

-# had to enable autologin in getty due to a weird bug in login

marsh sparrow
acoustic peak
grand shadow
grand shadow
#

stop being so dramatic I stg

#

kernel be damned I should rice this to high hell

flint condor
#

he really hates two things:

  • running as root
  • windows
grand shadow
#

I can't believe I am going to say this but in order to make astral look even more retroey I am going to need to...... port qt6??

#

thankfully at least according to blfs I should already have most of the bullshbit needed

willow rapids
grand shadow
#

and the theme generation is what makes gtk3 apps/etc look retroey

willow rapids
#

ah

grand shadow
#

after porting gtk3 I should have almost all of the deps for a qt6 port so

opal lotus
grand shadow
#

I wish bro I wish

#

when I got all the dependencies for webkit ported I genuinely had a headache from how mind numbing it was

#

found a nscde cross compilation bug but the upstream repo seems to be dead for a few years

#

funny

grand shadow
#

I look like this and I say this

#

what the fuck

acoustic peak
carmine swallow
acoustic peak
carmine swallow
#

I kinda doubt that it'd take 47gb tbh considering that I can build qt6 fine using 48gb of ram + tmpfs for the build dir (with no swap), looks like the build dir for qtbase on my gentoo is 244mb

acoustic peak
opal lotus
#

i did a du on my repo dir

#

152GB

#

💀

grand shadow
#

trillions must pyqt6

#

I love porting software but I would never ever ever do it myself

brazen minnow
grand shadow
#

tonight in: python packaging is kanker

grand shadow
# brazen minnow why

nscde gtk pixmap generation for themeing depends on pyqt4/5 apis for some reason

#

but qt4 and qt5 are aids to port

#

so I will liekly have to patch it to use qt6

grand shadow
grand shadow
#

python bindings take longer to compile than the fucking library itself award

grand shadow
#

oh my GOD

viscid flame
grand shadow
#

TONIGHT WE LARP IN HELL

#

gtk3 theme generation is now working

#

at last

#

the xscreensaver thing finally looks right too

#

its just a giant gtk app 😭

grand shadow
#

Might port a dm later

#

For keeping up the larp it will either be xdm or something that I can use to larp xdm troll

grand shadow
#

😭 @acoustic peak

#

though tbf I am likely much much farteher away from the server than u are

#

idk where u are from

flint condor
#

what TCP stack is it

grand shadow
#

my own

flint condor
#

it's not slow

sharp carbon
#

if you're trying to test your TCP stack performance you should probably only be doing LAN stuff

acoustic peak
#

im in the US

opal lotus
#

okay YIKES

#

💀 i shouldn't have said anything

acoustic peak
#

yikes

#

💀

opal lotus
#

this is over a real nic

#

this could be anything though

acoustic peak
#

If it makes you guys feel better my E1000 process is using 300% CPU time since I fucked itu p

willow rapids
#

how many threads does it have

acoustic peak
willow rapids
#

oh

#

lmao

acoustic peak
#

yeah the server is located in Washington DC so wouldn't be surprised about conn issues

flint condor
acoustic peak
#

looks fine to me

flint condor
#

you check that tcbsocket->tcb is null and if it is you goto cleanup, but immediately after cleanup label you deref the null

acoustic peak
#

whats wrong with it

#

oh that's it

#

i was focused on the ringbuffer part kekw

grand shadow
#

xdm might be too limited but dtlogin brings in the fill cde stuff

#

I have no mouth and I must scream

acoustic peak
opal lotus
#

1 sec

sharp carbon
#

or the de ones

opal lotus
#

fsn is de

#

(yes my internet is slow)

acoustic peak
#

whats host speed

opal lotus
#

100Mbit

acoustic peak
#

ok not bad

opal lotus
#

let me curl from my lan

acoustic peak
#

yeah ethereal lags behind my host, it averages 8-10Mbps while my host hits around 60 Mbps

opal lotus
#

my host does 12MB/s

#

let me python webserve

sharp carbon
opal lotus
#

this is pulling with a roundtrip from my other pc over my router back into my pc on linux

hearty fulcrum
acoustic peak
#

i gave him a better server that was closer

#

for a fairer comparison

opal lotus
#

server that's actually close to me + i forgot to ACK and reopen the recv window for the peer

#

small detail

acoustic peak
#

oh yeah no wonder your speeds were so slow

opal lotus
acoustic peak
opal lotus
#

yeah

grand shadow
#

it just works

mild sentinel
#

You gonna get an old UNIX server and make a sleeper server out of it?

#

And use astral on it?

#

Port something like nginx and run some infra off it and shit

willow rapids
grand shadow
#

it runs nscde under the astral user but still runs X under root, damn

grand shadow
#

Im not marvin I dont get paid 10 tirllion euros a month to buy computers

mild sentinel
#

If you ever get money and find a cheap broken one

mild sentinel
grand shadow
#

Marvin already spent it all

willow rapids
grand shadow
#

He gets his paycheck and in 2 days its all in ebay orders

willow rapids
mild sentinel
willow rapids
#

oh wait but astral is x86-64 nooo

mild sentinel
#

And slap a mini PC inside of a Unix workstation

willow rapids
#

oh yea right

brazen minnow
blazing atlas
#

installing fvwm on my main pc lmao

#

just for the fun of it

opal lotus
grand shadow
#

its time to take the metaphorical L and add an xorg-server os-support astral implementation

#

so I don't have to use hacky shell wrapper scripts around X anymore

#

mostly for xf86OpenConsole and xf86CloseConsole

grand shadow
#

sysctl me this

grand shadow
#

okay this should satisfy having permission checks while allowing non root xorg

grand shadow
#

yeah that works

#

I guess all I gotta do is now change the behaviour of the console while its locked

#

also funny webkitgtk works rootless neat

mild sentinel
#

What do you think you will do with astral once you have it fully stable and other shit?

grand shadow
#

the sky is the limit

#

maybe 3d accel

#

that sounds fun

mild sentinel
#

You could join in on the AMD GPU thingy some people are working on

grand shadow
#

I know exactly 0 about writing gpu drivers

#

closest I've done is some opengl programming

#

☠️

mild sentinel
#

Well if you want 3d accel on real hardware that would probably be the best bet

#

I think somebody mentioned wanting to do it for RDNA2

grand shadow
#

I would probably try nvidia-open first since both my laptop and desktop have nvidia gpus

#

and lil if that ever gets support for that

mild sentinel
#

I think there were plans for that on lil

#

For like more flexible backend support or whatever

grand shadow
#

though nvidia-open seems to still need closed userland stuff

#

as it seems like, at least according to leo, the open userland stuff is completely broken with it?

mild sentinel
#

😭

#

If you do ever want to experience the hell of amdgpu do let me know

#

And if you have some ROM dumps of AMD cards they could be of use

grand shadow
#

I've never owned an amd gpu

#

its always been either integrated only or an nvidia gpu

#

my first desktop when I was a kid had a nvidia 9600 gt or whatever it was

grand shadow
#

console lock... ok

grand shadow
#

year of the astral desktop (real) ((its slow because I am running a gtnh server in the background 💀))

grand shadow
#

astral 4 years ago

willow rapids
#

in function dup library function fails to missing sysdep 💀

#

tbf, bentobox 4 years ago:

#

(wasn't a thing)

opal lotus
opal lotus
opal lotus
willow rapids
#

seeing rtdl instead of rtld is so weird to me

#

feels like a typo i would make but nope

marsh sparrow
#

I think we're renamed it to rtld by now to match convention

grand shadow
#

Deadnaming rtld

acoustic peak
grand shadow
#

like, "can be speedrunned in a week" level

acoustic peak
#

yeah it is i didnt realize it could function so limited tho

grand shadow
#

xterm skips the first line of /etc/shells award

viscid flame
grand shadow
viscid flame
#

just

#

port

#

st

grand shadow
#

suckless? more like sucksmore

gritty shore
viscid flame
#

also dont forget about note in xterm src

opal lotus
potent kayak
#

Shitless Terminal.

grand shadow
#

been a pretty productive day of distro work

acoustic peak
grand shadow
#

I'll get to it soon 😭

grand shadow
#

ok so the path to building astral in astral from a fresh git clone is to just

#

source the astral source-recipe

#

prepare

#

git submodule update --init

#

gg ez

#

and then fuck off to build it somewhere

#

I probably should add a native build command

grand shadow
#

compiling the kernel in astral:
with 6 cores, -j7 takes 51 seconds
with 6 cores, -j1 takes 1m29s
with 1 core, -j1 takes 1m12s

compared to linux, which takes 8 seconds for -j6 and 31 seconds on -j1

💀 astral suuucks bro

#

profile profile profile sahur

willow rapids
#

i get similar jumps in compile time in my kernel too iirc

sharp carbon
#

is that host linux or linux in vm?

grand shadow
#

wsl linux, I am running astral under kvm in wsl

gritty shore
grand shadow
#

Nothing I havent done it

#

💀

#

Yet

gritty shore
#

what do you think is the issue

#

at least it shows scaling a bit

mild sentinel
#

I wonder how much paravirt could help? And I wonder how much slower it is on bare metal

gritty shore
#

wouldnt help that much

grand shadow
#

Multicore is probably some bullshit like thrashing a cache or something I really dont know

acoustic peak
#

when Astral NUMA 😔

acoustic peak
#

if you have that system call

grand shadow
#

lets see

grand shadow
acoustic peak
grand shadow
#

wait

#

.

acoustic peak
grand shadow
#

if I disable e9 logging

#

its like linux speeds

#

kanker

#

I forgot to disable that

acoustic peak
acoustic peak
grand shadow
acoustic peak
#

it seems to be spending a lot of time in sys

#

just a hunch

grand shadow
#

yeah I need to optinmize that

#

time to actually test it for real now lol

acoustic peak
#

maybe you should consider tracking the amount of PFs per process

#

for smaller allocations if the system isnt under memory pressure just back them immediately instead of demand paging them in

grand shadow
#

I plan to eventually cut down on the amount of page faults by clustering

#

but that will come when I rewrite my page cache to support clustering

#

6 cores

#

6 cores -j1 💀

acoustic peak
#

at least for a bit of pressure relief

grand shadow
#

ehhh

acoustic peak
#

cant hurt to try but

#

id say 36s for j6 is very good

willow rapids
#

oh wait right

#

your host is windows

grand shadow
willow rapids
#

b-but-

grand shadow
#

that was someone else running it

willow rapids
#

ah

grand shadow
#

its running on an i5-10300h bro

willow rapids
#

oh yea 😭

#

nvm then

grand shadow
#

single core j1 is not that much different from multicore j1

#

just like 20 seconds diff

#

so there is still some overhead but not that much

gritty shore
acoustic peak
gritty shore
grand shadow
grand shadow
# gritty shore Shootdowns?

thats like almost entirely optimized for unless I completely redo half my memory subsystem do do async shootdowns

acoustic peak
#

try j32 the more threads the better trust

grand shadow
#

but yeah, smp is actually scaling now at last for compilation tasks

#

which is cool

fleet osprey
grand shadow
#

smh

fleet osprey
#

anyways still cool shit

grand shadow
#

I should try to do a multicore gcc build at some point

gritty shore
grand shadow
# gritty shore do you only do shootdowns on the cores the process ran on?
    bool do_shootdown = // do shootdown if
        current_thread() // scheduler is up
        && arch_smp_cpusawake >= 2 // and there are multiple cpus in the system
        && (page >= KERNELSPACE_START // and its either in the kernel
        || ((page == NULL || user_shootdown) // or in userspace...
            && thread->proc && thread->proc->runningthreadcount > 1)); // in a process which has multiple threads running

// .........
        for (int i = 0; i < arch_smp_cpusawake; ++i) {
            if (smp_cpus[i] == current_cpu() || (user_shootdown && smp_cpus[i]->vmmctx != current_thread()->vmmctx))
                continue

this is what I do rn

gritty shore
#

uhh what

#

so you do do it on all cores?

#

you do know you have to do shootdowns if it's still only one thread right?

grand shadow
gritty shore
gritty shore
grand shadow
#

what other thread will be doing the shootdown on the vm space its not running on?

grand shadow
gritty shore
#

you need to check if it ran

#

not if it' srunning on the cpu

grand shadow
#

if its not running on the cpu wouldn't it already have done a context switch

gritty shore
#

the point of TLB invalidation is to prevent stale TLB entries, if a thread ran on another CPU but is not running anymore, then gets scheduled back in its tlb entries will still exist

#

fuck im an idiot i think

analog berry
#

reloading cr3 flushes the tlb

mild sentinel
#

Dosnt changing an address space flush the TLB?

analog berry
#

yes

gritty shore
#

yeah right nvm me im stupid

#

this is a problem with asids tho

#

I think

grand shadow
mild sentinel
#

I presume it's like that on most architectures anyways

grand shadow
#

good thing I don't implement aids or whatever that is

mild sentinel
gritty shore
#

actual 🧠 💨

grand shadow
gritty shore
#

yeah the vmmctx check is iffy but that's best effort anyway

grand shadow
#

yeah

#

if it transitions to the space during it it will have the new entry anyways, and if it transitions out of it it does not matter

gritty shore
#

ah it's to check if scheduler is up

#

weird

grand shadow
acoustic peak
#

sched isnt up at start and TLB invalidations have to happen before sched

#

on multicore

gritty shore
#

if you did it would be racy

#

because preemption is enabled

grand shadow
#

are you confusing it with current_cpu

gritty shore
#

holy shit wow i am making so many mistakes stop listening to me

acoustic peak
# gritty shore no

current_thread is NULL at ap initialization and you do an invalidate on the ranges for kVMM alloc/dealloc

grand shadow
#

😭

acoustic peak
#

lmao it happens

grand shadow
acoustic peak
#

at least he does iirc

gritty shore
#

why would you invalidate memory for ap startup

#

you only allocate

acoustic peak
#

no like

#

i meant during vmm_map and vmm_unmap

#

you invalidate ranges

#

and before the APs have had their scheduling initted they are allocating memory for other bs soo

gritty shore
#

yeah but you dont do vmm_unmap there

acoustic peak
#

i shouldve clarified

grand shadow
#

I don't actually even hit a shootdown on this anyways anymore

gritty shore
#

also if you're cool you start the scheduler and setup current thread as teh first thing

grand shadow
#

like I could remove this check and be fine but whatever

gritty shore
#

in my kernel APs' current threads are set up before they start

acoustic peak
#

that's not what i meant but wtv

gritty shore
#

anyway @grand shadow what are the next plans for astral

#

run chromium

grand shadow
#

so true

#

I really want to be fully self hosting already

#

so probably work towards that

#

I need to finish page locking for dma so that I can dma directly into user pages for O_DIRECT

#

and then rewrite some part of my filesystem drivers to properly handle multi sector reads/writes

gritty shore
#

does it run on anything !amd64 yet

grand shadow
#

and then rewrite the page cache, and then implement page clustering

grand shadow
#

I don't really have any non x86 hardware to test it on anwyays

gritty shore
#

port to 32 bit when

grand shadow
gritty shore
grand shadow
#

probably never halfmemeright

mild sentinel
#

They can be found pretty cheap relatively if you did want to ever do that

acoustic peak
gritty shore
acoustic peak
#

ye i have arch_mmu_remap_physical and arch_mmu_unmap_physical but it still sounds annoying as fuck to implement some pool system

fleet osprey
acoustic peak
#

his kernel only supports x86_64

fleet osprey
#

I'm aware

#

I'm just saying

acoustic peak
#

cool

grand shadow
fleet osprey
#

not having x86 hardware should not be a blocker

mild sentinel
grand shadow
acoustic peak
# gritty shore pool?

the method i would do is take a chunk out of my memory map and make a small HHDM pool

gritty shore
#

what NT does for temporary mappings is you have 64 pages of VA per CPU, and you cycle through each page until the 64th is hit, then you do a whole (local) tlb flush on that

acoustic peak
#

wdym tlb flush on that what does that do

#

like if you need more than 64 pages of mapped on a CPU then what

gritty shore
#

you dont

fleet osprey
# fleet osprey send builds, I have everything

mobile ARM (32-bit), embedded ARM (32-bit), game console ARM (32-bit), mobile ARM (64-bit), embedded ARM (64-bit), game console ARM (64-bit), laptop ARM (64-bit), embedded PowerPC (32-bit), game console PowerPC (32-bit), laptop PowerPC (32-bit), desktop PowerPC (32-bit), game console PowerPC (64-bit), desktop PowerPC (64-bit), embedded MIPS (64-bit), laptop x86 (32-bit), desktop x86 (32-bit), desktop x86 (64-bit)

acoustic peak
#

i see

gritty shore
#

temporary mappings are page-sized only

fleet osprey
gritty shore
#

you have 64 to avoid a tlb flush every time you unmap it

mild sentinel
grand shadow
#

holy shit its loongarch64

grand shadow
fleet osprey
grand shadow
#

(leo will veto any sparc64 mlibc ports lmao)

mild sentinel
acoustic peak
acoustic peak
#

itanium better

gritty shore
#

real NT larp is MIPS

fleet osprey
#

or the Xbox 360 which just runs NT natively trl

fleet osprey
#

PPC slander is fucking insane

#

best architecture, PPC 🔛 🔝 ‼️

gritty shore
#

PPC page tables 💀

fleet osprey
grand shadow
#

I should port whatever the fucking perl module is for that one screensaver that sometimes just jumpscares me with a "acme::whatever::whavetever not found. your perl is broken whatever" white screen

gritty shore
#

🦇

acoustic peak
#

best architecture is armv5 minus the mmu

fleet osprey
#

mmuless is crazy shit

#

I could never

acoustic peak
#

i never said go mmuless i just mean the MMU impl is shit

#

at least the page tables

fleet osprey
#

from what I've seen the ARMv5 MMU is alright

grand shadow
#

best architecture is that one fucking risc machine we studied at uni that had 256 bytes of ram, and only {add, load, store, and, or, not, halt, jmp, jz} or whatever the instruction set was

acoustic peak
#

well its certainly reduced

fleet osprey
acoustic peak
#

i mean it works its just annoying to remember all of ARM's stupid bits

acoustic peak
#

my favorite console security mechanism

grand shadow
#

tomorrow I think I will pick back up on working on bettering the vmm

#

starting by splitting up the file

mystic plank
hearty fulcrum
#

holy shit it's loongarch64

#

dam

#

just saw what you replied to

neon crane
#

you have 4 sets of permissions bits for "subpages", which naturally means you get less control on permissions

#

for example, akin to the original 386, you can't prevent the kernel from writing to any mapped pages

#

on armv6 there is an extra APX bit which allows you to specify that kind of permission

#

it shares the same flaw as armv6 with regards to the unbalanced page tables as well. the top-level page table is 16 kilobytes instead of 4 kilobytes, and page tables themselves are 1 kilobyte long

#

oh, and on armv5 you also have less control over the cache policy of a page

#

you only have the C and B bits, whereas on armv6 you have 3 extra "TEX" bits

#

then there is armv7 which added a different page table layout which is better, using 4kb pages for both levels

grand shadow
#

I am partaking in the school of will and completely removing the name "pmm" from my kernel

elfin turtle
#

W school

#

how much is tuition

grand shadow
#

2 jackal pics a month

grand shadow
grand shadow
#

I really regret not writing astral with taking page faults in the kernel in mind but I can't really do that without rewriting like half the memory manager and redoing the entire design

robust bobcat
#

💔

gritty shore
#

Why do you want to take page faults? Paged kernel heap?

grand shadow
gritty shore
#

paged kernel heap when

grand shadow
#

I kind of want to implement swap at some point but I have never done it nor barely read any theory up on it

opal lotus
#

armv8 my beloved

gritty shore
#

mhm?

gritty shore
#

atp

#

it's the kinda stuff you have to design from the beginning

#

and it's not really useful

grand shadow
#

yeah plus I don't really think I will target memory constrained architectures

gritty shore
#

no kernel does paged kernel heap apart from NT afaik

#

maybe xnu does it idk

grand shadow
#

I was talking more about like user side swap

gritty shore
#

yeah that's worth it meme

opal lotus
opal lotus
#

c23 microkernel

opal lotus
#

huh

#

who is doing that

gritty shore
#

everyone

opal lotus
#

trust

brazen minnow
gritty shore
opal lotus
#

who is brutal

gritty shore
#

c23 microkernel

opal lotus
#

by who

gritty shore
opal lotus
#

dead project smh

grand shadow
#

brutal, nothing is left for the beta

opal lotus
#

idk i want to write a microkernel but in a much smaller scope

#

like, just being able to boot off of an nvme maybe and go to bash

grand shadow
#

thor compatible c23 microkernel

opal lotus
#

lol

earnest willow
#

it's not late to be the first os that uses bragi and is not managarm

opal lotus
#

i want to come up with a cool ipc algorithm

#

to prove my brain hasn't rotted away from clanker

gritty shore
#

i told you one

#

many times

#

that should be very good

#

or decent ig

opal lotus
#

i forgor

#

also you came up with one

#

not me

#

so I'm stupid and you're not

gritty shore
#

well, I stole it from existing microkernels mostly meme

grand shadow
#

in this world nothing is created, all is stolen and sold for more

gritty shore
#

something something newton standing on the shoulders of giants

opal lotus
#

but yeah

flat copper
#

it's probably worthwhile to design it with readahead and journaling in mind

grand shadow
#

journaling is one of the things I have been itching to add to astral

#

can't stand filesystem corruption anymore

cyan junco
grand shadow
#

extra handling that smp might need

cyan junco
willow rapids
gritty shore
cyan junco
grand shadow
willow rapids
#

imagine not using the latest and greatest kde plasma 6.7.2

grand shadow
#

I have done some light refactoring

#

now back onto page locking work

grand shadow
#

I should experiment with adding clustered anonymous page in for the lols

grand shadow
#

I do remember that in my old profiling for graphical programs like meincraft the page fault isr had a lot of hits

grand shadow
#

though also there kernel time is like less than 25% of overall time meme

grand shadow
#

Time to try to build gcc in astral again but with 6 cores

grand shadow
#

go go gadget make all-gcc all-target-libgcc all-target-libstdc++-v3 -j7

#

It survived running 7 configures at the same time in smp, cool lmao

grand shadow
#

hm, took like 3h10m to build it

#

crazy that it didn't crash

#

there is still a lot of work to be done

#

I think last time it took 5 hours, so thats still an improvement over one job meme

#
  • xscreensaver running
brazen minnow
#

why is user and sys so big

#

😭

viscid flame
#

literally unusabl

willow rapids
marsh sparrow
#

are you implementing journaling?

grand shadow
#

I was looking into how it works to see how I would fit it into my new page cache design

grand shadow
grand shadow
#

damn

#

I'll fix the stuff they brought up

gritty shore
#

(ignoring the AI and bullshit issues)

willow rapids
#

2026 is actually the year of the astral desktop :p

marsh sparrow
#

@carmine swallow wants to do it for nlnet (?)

grand shadow
#

been working on that unix socket stuff

#

so far I have managed to get to 0-2 failures on junixsocket-common (apparently there is some race in my localsocket code that causes it to randomly hang?)

#

FAIL junixsocket-common 144/181 (32 skipped) failures: 2/149
PASS junixsocket-tipc 0/89 (89 skipped)
PASS junixsocket-vsock 1/76 (75 skipped)
SKIP junixsocket-rmi (skipped by user request)
FAIL junixsocket-ssl 471/472 failures: 1/472
PASS junixsocket-darwin 0/2 (2 skipped)

#

these 2 common failures are on some throughput test

#

the ssl one also times out for some reason, maybe its the same issue. who knows

acoustic peak
cyan junco
fleet osprey
#

"talk is cheap, patches already sent"

#

anyways, bored, trying to build Astral from my M3 Pro MBP

#

can't build from macOS (lame), but I'm trying from my Debian aarch64 VM

grand shadow
fleet osprey
#
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/build_dir/host-builds/xbinutils':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [Makefile:77: kernel] Error 77
make[1]: Leaving directory '/home/techflash/src/Astral'
make: *** [Makefile:38: all] Error 2
#
configure:4532: checking whether the C compiler works
configure:4554: gcc -O2 -march=x86-64 -pipe -mtune=generic   conftest.c  >&5
gcc: error: unknown value 'x86-64' for '-march'
gcc: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a armv8.7-a armv8.8-a armv8.9-a armv8-r armv9-a armv9.1-a armv9.2-a armv9.3-a armv9.4-a armv9.5-a native
cc1: error: unknown value 'x86-64' for '-march'
cc1: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a armv8.7-a armv8.8-a armv8.9-a armv8-r armv9-a armv9.1-a armv9.2-a armv9.3-a armv9.4-a armv9.5-a native
configure:4558: $? = 1
configure:4596: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:4601: error: in `/build_dir/host-builds/xbinutils':
configure:4603: error: C compiler cannot create executables
See `config.log' for more details
#

hardcoded x86_64 host assumptions

#

cringe

#

I wonder if I can fix it

fleet osprey
#

yeah I see the problem

#

Jinxfile sets CFLAGS to have -march=x86-64 globally

#

this also affects host recipes

#

currently testing a fix for that

#

the real fix is probably to separate host vs target cflags but I don't know how to do that properly

#

gets past xbinutils now at least

#

🥀 I don't think that's right

formal patio
fleet osprey
formal patio
#

yeah what's wrong with that

fleet osprey
#

this is an aarch64 host

#

oh wait I'm blind

formal patio
#

yeah, so what's wrong

fleet osprey
#

nvm I thought it was building some host tool

#

no that was it building mlibc lol

grand shadow
#

Heres a nickel kid.... Go buy yourself a real computer halfmemeright

formal patio
#

mlibc-headers only

fleet osprey
#

seems to be getting pretty far actually

formal patio
#

which should be pretty much just be copying a bunch of headers meme

fleet osprey
#

failed and it wasn't even an aarch64 problem smh

grand shadow
formal patio
#

the real challenge will be shit that doesn't separate build time tooling targets vs host targets (e.g. a lot of cmake projects)

#

and g-o-i meme

grand shadow
#

Inb4 changed upstream

#

Either that or freestnd c hdrs is gone

#

Or I accifentally used the master link

#

😭

#

Well I did not

#

The sha of the commit magically changed

#

Someone is doing something spooky

fleet osprey
#

inb4 it's always been broken and you just happened to save the sha512sum of a corrupted download

mild sentinel
#

I mean if thats an archive

#

GitHub can change those on you

fleet osprey
#

oh yeah that is true

#

I'll just change it locally for now to get it building but I won't send that up

#

lol freestnd-cxx-hdrs has the same problem

#
/usr/bin/install -c -s tic     /build_dir/pkgs/ncurses/usr/bin/`echo tic|       sed 's/$//'|sed 's,x,x,'|sed 's/$//'`
strip: Unable to recognise the architecture of the input file `/build_dir/pkgs/ncurses/usr/bin/tic'
install: strip process terminated abnormally
make[1]: *** [Makefile:219: install.progs] Error 1
make[1]: Leaving directory '/build_dir/builds/ncurses/progs'
make: *** [Makefile:134: install] Error 2
make[1]: *** [Makefile:83: distro-minimal] Error 2
make[1]: Leaving directory '/home/techflash/src/Astral'
make: *** [Makefile:39: all] Error 2
#

🥀

grand shadow
#

💀

fleet osprey
#

ah

#

it's trying to strip the target binaries with the host toolchain

fast gorge
fleet osprey
#

merging is cheap, talk about patches

grand shadow
#

I just wrote

#

in some code

#

and I quote

#

"EFAIL"

#

😭

grand shadow
#

or I can also just commit it under your name

#

whatever you prefer

#

anyways

#
Selftest results:
DONE    junixsocket-common      146/181 (32 skipped)
PASS    junixsocket-tipc        0/89 (89 skipped)
PASS    junixsocket-vsock       1/76 (75 skipped)
PASS    junixsocket-rmi 6/12 (6 skipped)
PASS    junixsocket-ssl 472/472
PASS    junixsocket-darwin      0/2 (2 skipped)

IMPORTANT: Could not set socket timeout via Socket.setSoTimeout (AF_UNIX); this is a known limitation of your operating system; junixsocket-common: SoTimeoutTest.testSocketTimeoutExceptionWrite()
IMPORTANT: "With issues": Please carefully check the output above; the software may not be able to do what you want.

Supported capabilities:   [CAPABILITY_PEER_CREDENTIALS, CAPABILITY_NATIVE_SOCKETPAIR, CAPABILITY_FD_AS_REDIRECT, CAPABILITY_UNIX_DOMAIN, CAPABILITY_UNSAFE, CAPABILITY_LARGE_PORTS]
Unsupported capabilities: [CAPABILITY_ANCILLARY_MESSAGES, CAPABILITY_FILE_DESCRIPTORS, CAPABILITY_ABSTRACT_NAMESPACE, CAPABILITY_UNIX_DATAGRAMS, CAPABILITY_TIPC, CAPABILITY_VSOCK, CAPABILITY_VSOCK_DGRAM, CAPABILITY_ZERO_LENGTH_SEND, CAPABILITY_DARWIN, CAPABILITY_SEND_RECV_TIMEOUT]

Selftest PASSED WITH ISSUES
acoustic peak
grand shadow
#

alright

fleet osprey
#

patches have been created

grand shadow
#

if you open a pr I probably will merge it, since this is a good to have when I eventually port it to another architecture

fleet osprey
#

well this doesn't actually touch any of the actual kernel source, it doesn't get it even close to compiling targetting aarch64

#

doesn't even add infra for doing so

#

just fixes various build-time bugs that only surface when host != target

grand shadow
#

yeah its still a good to have

#

less work for when I do it

fleet osprey
#

lol it's fucked but I can't see it because my Linux VM has too small of a display

#

😭

#

wait it tried to boot from NVMe

#

I'm stupid

opal lotus
#

when aarch64

fleet osprey
#

idk ask @grand shadow

#

I just wanted to get it building

grand shadow
#

I don't have aarch hardware

fleet osprey
#

#1061407633745125397 message

#

I have all of the hardware trl

#

talk is cheap, send builds

#

this does not touch freestnd-{c,cxx}-hdrs

#

since how you want to actually fix that is up to you

grand shadow
#

@acoustic peak @fleet osprey talk was cheap patches were merged

analog berry
#

I actually get charged a lot for my talk by clankers

#

But patches are cheap trl

fast gorge
grand shadow
#

i should try running steam again

fleet osprey
#

old firefox logo jumpscare

cyan junco
fleet osprey
#

oh yeah speaking of, firefox when ultrameme

cyan junco
#

And ask them how do you run youtube

grand shadow
cyan junco
#

And you just tell them you cannot update your browser

grand shadow
#

"heres a nickel kid, go buy yourself a real computer" and google sends you 1k usd

mild sentinel
grand shadow
#

augh time to download steam

#

hopefully my localsocket fixes magically fixed steam

#

its fun that htis actually works

fleet osprey
#

no native port of Steam sadmeme

viscid flame
#

linux larp when

grand shadow
mild sentinel
hearty fulcrum
carmine swallow
analog berry
#

Get Marvin to share his 10k dollars aarch64 Thinkpadtrl

earnest willow
#

get marvin to do an osdev fund

hearty fulcrum
#

get marvin

analog berry
opal lotus
#

well

analog berry
#

What are the specs

opal lotus
#

32gb ram, 1tb ssd

#

gen 4

#

touchscreen

mild sentinel
#

damn thats a good deal

#

😭

opal lotus
#

other than that it's a T14s

opal lotus
#

tho idk if it's better now

#

thinkpads with touchscreen are weird as fuck

#

also thinkpad T series displays are ass

#

1080p type shit

analog berry
opal lotus
#

12 iirc

analog berry
#

How is it so cheap wtf

opal lotus
#

it was b-stock

#

but looks brand new

mild sentinel
analog berry
#

What is b stock?

acoustic peak
#

back stock

opal lotus
#

no

acoustic peak
#

oh?

analog berry
#

Refurbished?

opal lotus
#

not really

grand shadow
#

back-of-the-alley-found stock

opal lotus
#

more like A-stock and B-stock

acoustic peak
#

oh lesser quality then

opal lotus
#

where B stock is not 100% brand new

#

maybe returned or something

#

or opened box

analog berry
#

Still cheap af

opal lotus
#

it's an X1E78100

analog berry
#

Especially for Qualcomm

opal lotus
#

i really wish this firmware wasn't hopelessly fucked

mild sentinel
#

Btw how's that FRED laptop coming along

opal lotus
#

otherwise it's a really nice laptop

opal lotus
mild sentinel
#

Thank you

analog berry
opal lotus
#

they haven't asked me to pay my pre order yet

#

bro everything

#

you needed grub workarounds for the 64gb ram version where it would just hard reset if you didn't cutmem the upper 32gigs

analog berry
#

Grub supports aarch64??

opal lotus
#

bro grub supports s390x

analog berry
#

Damn

opal lotus
#

the software dev experience for this laptop feels more like an SBC with display

opal lotus
#

firmware bug

gritty shore
#

grub is such a shitty name i just realized

opal lotus
#

also sometimes it refuses to exit bootservices

analog berry
#

Doesn't it make sense?