#charmOS

1 messages ยท Page 6 of 1

inner rover
#

vfork or do the VMS trick

eager yew
inner rover
#

You keep a flag and if after fork something else than exec is called you error

stuck nexus
#

That's not exactly the VMS trick

inner rover
#

What is it then?

stuck nexus
#

Fork just sets an internal flag in libc that says "fork was called" and then returns 0 to pretend the caller is now in the child

#

Then anything you do that changes properties of the child like setting signal masks and stuff is recorded

#

When you do exec it will spawn the child process for real with the image you exec'd and the recorded parameters

#

And in the parent will longjmp back to the original fork call, from which it will return the child PID

#

This worked for almost all occurrences of fork

clear minnow
#

Irish OS ahhhh. Really nice tbh

eager yew
#

will be released in the first version

clear minnow
clear minnow
#

If u add th potato famine command u are a legend

#

Lol

eager yew
# clear minnow If u add th potato famine command u are a legend

that could be an interesting experiment for the memory management system... the potato famine command could take in a certain amount of memory and the kernel would try to reduce the total system physical memory usage to that amount through aggressive page out to disk

eager yew
#

and I could even involve the scheduler and use the potato famine command to migrate everything to, say, the efficiency CPUs on heterogenous processors and maybe downclock everything

#

could be funny

lime wharf
eager yew
clear minnow
#

U make me worry

#

Send 555 if u are in danger

eager yew
#

hi pals I forgot to mention but I have suffered a similar fate as will and won't be as active in the coming months

eager yew
#

oracle bone script was a custom programming language developed by sun microsystems to write solaris

lime wharf
eager yew
#

I might still have reasonable time to work on ts thing

lime wharf
eager yew
lime wharf
#

o thats sweet!!!!
no doubt will be the best startup ever
IPO when trl

lime wharf
#

lies

eager yew
#

we have demand paging soon (kernel only)

#

aka: buzzword buzzword buzzword buzzword buzzword

#

time to larp

eager yew
#

macro overloading in c is such a jolly thing

#

i dont know why more people dont do this already

#

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
 Language              Files        Lines  
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
 AWK                       1           17  
 Assembly                  4          226  
 C                       216        42239  
 C Header                194        18252  
 CMake                     4          432  
 Dockerfile                1            8  
 LD Script                 1          147  
 Markdown                  5          646  
 Python                    3          628  
 Shell                     3          252  
 SVG                       1          120  
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
 Total                   433        63356  
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”```


every day we get closer to the big 67
eager yew
#

memory larpagement

#

next we need to do some stress test and i forgot a few lines of code to avoid leaking here

#

demand larpaging

#

afterwards we can do landlord larp and evict pages

#

larplord โ‰๏ธ

eager yew
#

I am only referring to the y combinator startup accelerator

inner rover
#

Y Combinator tho

#

Yeah I know

#

But did you really get funded by them

eager yew
#

500 big ones

#

and then more as time passes

#

pretty fun stuff

inner rover
#

what's the startup?

eager yew
#

but also job time

inner rover
#

Also aren't you like 16?

eager yew
# inner rover what's the startup?

that's the funny part, we went in with an idea of b2c education software but they said that was a Bad Idea but they "see potential in us" so we're discussing better ideas (i.e. we have no idea)

eager yew
#

a littlun

#

the other people arent but they're not too old

inner rover
#

wtf

eager yew
#

whwat about it

inner rover
#

VC backed startup at 16

eager yew
#

number just a age is

inner rover
eager yew
#

i feel like this server is prime location for such shenanigans

inner rover
#

I've never seen anyone with a YC startup here lol

#

But then again not many people are in SF?

#

Are you in SF?

eager yew
eager yew
#

and yea that's what they said too

#

the Buzzword2Buzzword model is seen as a better option in their eyes

#

claude code is so good at being an overcomplicated regex machine

#

gosh i've probably saved hours just by giving it instructions on a find and replace that was too complicated to do through python/perl

inner rover
#

Why are all YC startup founders indian

eager yew
#

i'm not

#

no one on my team is

#

we out here breaking stereotypes

inner rover
#

If you go on the launch YC page

eager yew
#

so woke

inner rover
#

It's all indians

eager yew
#

so progress

eager yew
#

i thought he was born in the us

#

chicago or something

inner rover
#

Yeah

eager yew
#

i suppose

#

gosh it's all AI slop

inner rover
#

It seems they have AI in the name and they get funded lol

eager yew
#

palantir invasion

#

i can't believe you can just openly list that as your product

#

how does a tech startup even do this

#

world war 3 is going to be backed by ycombinator

inner rover
#

tbh a lot of the startups there seem dogshit

#

Thought YC was supposed to be the elite

eager yew
#

i'm up against the final boss of larping

inner rover
#

wdym

eager yew
#

nothing here really seems notable

#

it's all just buzzword buzzword buzzword

inner rover
#

Yea

eager yew
#

besides the strike drones

inner rover
#

Which surprises me, since I thought YC was like super hard to get into and was only high quality

#

Holy buzzwords

eager yew
eager yew
inner rover
#

yeah I heard YC was more about investing in the people rather than the idea

eager yew
#

i've tried vibecoding in the truest sense of the word and i just get disasters

#

i even tried doing the whole Prompt Engineering bit too

#

but claude will produce a working program at ridiculous expense in terms of code quality/architecture and maintenance

#

like for web apps it sometimes just uses an error code returned to say "This is Normal, let's just adjust what we sent and send it again"

#

it's just duct tape and sticks again and again

inner rover
#

Well, idk if you saw what Garry tan was posting

#

He's like the world's biggest vibecoder

eager yew
#

oh boy

#

i dont keep up with that scene

#

what has he been posting?

inner rover
#

he was boasting that be was writing like 1M line/week or something

#

And his website was entirely vibecoded and was like 30kloc lol

eager yew
#

i remember i saw some critique of some website, maybe his

#

i remember one criticism of an AI generated site was that it would load two copies of the site, mobile and desktop, even though it would only need one

#

on every load

#

claude spouts baloney less often than chat gippity but it's still a big problem that it has

inner rover
#

I've tried Claude a bit and it wasn't that bad

#

But I didn't try vibecoding an entire app or something

eager yew
#

the commenting and documentation is annoyingly written and overly verbose

#

for example when it makes changes it will yap all about the change and then forget why that code is important to begin with

#

and it talks a lot about how things work and not nearly as much about why they're relevant

clear minnow
eager yew
#

not yet

#

Soonโ„ข

clear minnow
#

do u have an ATA driver?

eager yew
#

yea

inner rover
#

Why are people calling their startups AI-native OSes, when they're not OSes

eager yew
#

it's kind of old and will probably change around

clear minnow
#

i need to steal... ehm take for a bit... an ATA driver

eager yew
#

i advise you steal theirs

eager yew
#

freebsd's should be solid

clear minnow
#

thx

eager yew
#

not as bad as floppy i guess

inner rover
#

I need to move to SF and start a VC backed startup

eager yew
clear minnow
inner rover
clear minnow
eager yew
#

one might even say you're on tario

clear minnow
#

the land of the beaver

inner rover
#

Not even ontario

clear minnow
inner rover
#

quebec

clear minnow
eager yew
#

C compile times are so awesome sauce

#

it's a blessing to have my code compile so fast

#

house music is real osdev beats

eager yew
#

the stupidest bug i've had in a while

#

sometimes i have these things and just wonder how i missed it when writing the code at the start

#

nvm that bug still exists

#

thank goodness it wasn't THAT dumb

eager yew
#

doe a deer

#

is there a bot forking my repo?

#

some account with 2.1k random odd repos forked forked my thing

lime wharf
#

its cia
everyone wants a bite from charmos smh

eager yew
#

larpmaxxer in my PRs

tribal maple
placid vessel
#

[x] LLM code review passed

eager yew
#

btw we're getting clang support

#

I just have to fix a couple of bugs that I'm having with clang

#

this is mainly for asan

#

don't get your hopes up llvm stans

tribal maple
#

does orbisai randomly target os'

#

cuz i dont want it coming for my os too

eager yew
#

js make it proprietary ๐Ÿ™

#

or you can be like me and waste hundreds of dollars of microsoft's precious compute in hours spent running github actions

#

that might be more aura

clever gale
#

why da website so barren

eager yew
#

i'm working on memory management infra and then i'll shift to filesystem land and then other stuff

clever gale
#

fair

eager yew
#

i'm almost at the big 67,000 line mark for this project

#

i think it's at 65,000 lines and i'll be in tooling land for a minute or two so there will be quite a bit of code additions to facilitate that

#

got bored

eager yew
eager yew
#

zero pager work rn

stuck nexus
eager yew
# stuck nexus Did u google that bc i mentions it

ya it brought it to mind but i had a tab open since i was working on it separately (a day ago) and i hit the back button and realized the first page was full of coloring pages and thought it was a bit funny

#

i don't quite know if i'm interested in implementing it though

#

i could add it on as an extra doohickey, prob with a comptime flag

#

mintia will get a few lines when the credits roll

stuck nexus
eager yew
#

invasion

sour scaffold
#

I started this field 1 month ago.i Wana to study more about it

sour scaffold
#

Ok bro.

sour scaffold
#

i am searching osdev but confused from which tutorial shouldi start from

pearl kindle
sour scaffold
short lichen
#

Learn the language first then come back to this

eager yew
#

what is bro doing in this channel

eager yew
#

it is merely showing references to structures and types in the docs/reference

placid vessel
#

did you see apple silicon boot

#

it's peam

eager yew
#

what's the plan after that tho

#

will you port asahi code over

placid vessel
#

already started

#

this is using the AIC

eager yew
#

it's peam

#

why is this even a permitted occurrence

#

github pages failing with an EAGAIN is never something I thought could happen

#

I used to see it just try try again but now it just gives up???

#

mfw github deployment just isn't motivated today

#

what am I even supposed to do about this if I don't catch it manually

#

this is like software nightmare fuel

#

when your deployment Had a Bad Day at Work and you don't know about it and you thought you pushed the latest version of the software but it never left github actions

#

now with more larp than ever and a tolerable code browsing interface

#

had to use up those 20 shekels somehow

inner rover
#

not using duck, opinion rejected

eager yew
inner rover
#

yes

eager yew
inner rover
inner rover
eager yew
inner rover
#

what was it supposed to be? stress test?

eager yew
#

I started a long time ago and never needed it

eager yew
inner rover
#

ah i see

eager yew
#

torture sounded a little too bdsm for me

#

needed to keep the codebase rated g for general audiences

#

unlike a certain rayan

#

man I miss that guy

#

that nyaux thing was a hoot

#

the life of the party even

inner rover
#

why

eager yew
# inner rover why

it was chaotic and unpredictable and there was always some new crash out every week or two

#

keeps things lively

#

what did you think of it

inner rover
#

idk seems like the guy just moaned until someone spoonfed him

eager yew
inner rover
#

idr much

inner rover
clever gale
placid vessel
clever gale
#

ooo

eager yew
#

๐Ÿ’ฅ

eager yew
#

code browser is up on the site

runic pine
#

wait what is the base domain of ur site???

lime wharf
runic pine
#

no but charmos.dev is the base domain

lime wharf
#

yes

runic pine
#

why is the base domain some indonesian gambling site ๐Ÿ˜ญ

lime wharf
#

wait I just noticed that rn ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ ๐Ÿ˜ญ

#

I never actually tried visiting it b4

runic pine
#

๐Ÿ˜ญ

lime wharf
#

@eager yew is vro running an Indonesian casino as a side business fleshed

eager yew
#

that's so strange

lime wharf
#

indeed

eager yew
#

I'll check with porkbun

#

ok it's gone

runic pine
#

good ๐Ÿ˜ญ

eager yew
#

this was a certified Doobie Scoot Canoe

#

DNS Strange Coincidences

lime wharf
lime wharf
placid vessel
eager yew
#

checkmate germans

eager yew
eager yew
#

average foster parent polycule:

clever gale
#

is the documentation in latin

#

D:

vagrant cedar
#

no

#

That's called lipsum

#

Or lorem ipsum

#

Which is placeholder text made to look real at a glance, but contains no actual information.

inner rover
#

there was a video on this recently where they found out where it came from

#

it's pretty interesting

vagrant cedar
#

yeah

placid vessel
#

lorem ipsum dolor sit amet

clear minnow
#

Really intrestinf

eager yew
#

SIX SEVEN!!!!

#

ok back to sleep

eager yew
#

hello chat, I have went to go build a dsl-based retargetable assembler

#

no more charmos work for a bit while i build a compiler or two

#

a tragedy

#

another one bites the dust

eager yew
#

should i add exceptions to my high level assembler

#

-famous last words

#

maybe i could explore.......

#

i wonder at what point this will eventually just become reinvented C

#

when u add local keyword to ur asm dialect (like masm) and now you have to graph color to solve register allocation problems in an assembler

#

actually... hmm i wonder if that would even be possible

#

perhaps a procedure could declare a set of registers available for use by the assembler so it could do this

#

breaking news local man reinvents register keyword

eager yew
#

when the assembler needs IR

placid vessel
#

when the impostor is sus

eager yew
#

my assembler is using the wimmer mรถssenbรถck linear scan register allocation optimization, i hope will does not eat me for this because his jackal compiler, from what I understand, uses the poletto-sarkar linear scan algorithm

#

can't believe compiler engineers copied will

#

smh my head

#

how dare they copy the mintia ceo

eager yew
lime wharf
#

honestly this's really cool

tribal maple
eager yew
#

bro has never seen llvm ir

tribal maple
tribal maple
eager yew
#

it means signed

#

breaking: local person who has not interacted with compiler IR before tries to read compiler IR, struggles

#

he made it into the big leagues

#

I wonder why more people don't write syntax highlighting that is more featureful for their custom programming languages

#

with the advent of llms getting a lot better at regex I think it's pretty easy to just generate it too

eager yew
# runic pine by more featureful

as in I see syntax highlighting that just highlights keywords and stuff but not as much to the extent of detecting constants, function invocations, variables, etc

#

perhaps this is just small dataset

#

I've only seen a dozen or so highlighted custom languages

runic pine
#

generally highlighting doesnt actually understand anything beyond syntax

runic pine
#

LSPs have a way to tell the editor to highligh specific tokens

eager yew
#

like if you use constants in all uppercase a lot

#

you can guess that

eager yew
#

lsps don't add much

runic pine
runic pine
#

that is the base

eager yew
runic pine
#

then LSPs can add highlighting

runic pine
eager yew
runic pine
#

syntax highlighting needs to be instant

eager yew
eager yew
runic pine
runic pine
eager yew
runic pine
#

its treesitter

runic pine
runic pine
eager yew
runic pine
# eager yew

you just made an argument over something I didnt disagree with lol

#

my point was that LSPs are too slow to provide syntax highlighting

#

which is why things like treesitter do that part

eager yew
runic pine
#

or textmate in vscode ๐Ÿคฎ

eager yew
#

it's a bit like saying programs "have a way" to be written at ring 0 but everyone uses operating systems anywyas

#

it just doesn't follow in that order

runic pine
#

it wasnt meant to follow

#

the point was the capability exists

#

but LSPs are too slow

#

so generally its not used

eager yew
#

I also don't get your point about lsp slow

#

even in large rust codebases my pc does just fine

runic pine
#

highlighting is applied in the rendering pass

eager yew
#

idk how yours is so slow

runic pine
#

if you sit and wait for an LSP to respond in the rendering pass

#

you are fucked

eager yew
#

I don't need to sit and wait though

#

treesitter is slow on my intel core 2 duo laptop

#

anything can be fast or slow for anyone

#

๐Ÿ’ฅ

runic pine
#

sigh

#

LSP response times

#

are too slow

eager yew
#

not really

runic pine
#

yes really

eager yew
#

what are your computer specs

runic pine
#

the computer specs doesnt matter

#

just the way LSPs generally work

eager yew
#

I agree that computer specs have no impact on application performance

#

this is why I enjoy playing GTA 5 on my N64

runic pine
#

why do u think people use treesitter instead of providing highlighting via LSP

#

just for fun?

#

LSPs can often take up to 10s to 100s of milliseconds to respond

#

treesitter parsers do the same in under a millisecond

#

that plus the way LSPs are architected it doesnt make sense to use them for highlighting

vagrant cedar
#

Doesn't appear to be LLVM IR?

#

Oh it's a custom thing?

vagrant cedar
eager yew
#

I thought fasm was cool and wanted to make something a little similar but retargetable

#

block parameter SSA ๐Ÿค“