#charmOS
1 messages ยท Page 6 of 1
what vms trick
You keep a flag and if after fork something else than exec is called you error
That's not exactly the VMS trick
What is it then?
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
Irish OS ahhhh. Really nice tbh
potato famine coming soon
will be released in the first version
Lol
Nice
If u add th potato famine command u are a legend
Lol
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
Wow
Nice idea
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
man made famine
ts a war crime
Dude
mao zedong core
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
oracle bone script was a custom programming language developed by sun microsystems to write solaris
it's not as bad as u think because I'm not just someone's worker bee
I might still have reasonable time to work on ts thing
ah nice
u mind disclose what type of job u r doing :3
haskell curry's famous fixed point combinator was so gracious as to grant me and some other people fifty millions pennies to build a company
o thats sweet!!!!
no doubt will be the best startup ever
IPO when 
i promise i am not will's employer
lies
we have demand paging soon (kernel only)
aka: buzzword buzzword buzzword buzzword buzzword
time to larp
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
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 โ๏ธ
Lol is this true?
unfortunately math functions cannot fund startups in the Real World
I am only referring to the y combinator startup accelerator
ya
500 big ones
and then more as time passes
pretty fun stuff
what's the startup?
but also job time
Also aren't you like 16?
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)
yerp
a littlun
the other people arent but they're not too old
wtf
whwat about it
VC backed startup at 16
number just a age is
Education is probably pretty hard to penetrate
does this not happen around here
i feel like this server is prime location for such shenanigans
I've never seen anyone with a YC startup here lol
But then again not many people are in SF?
Are you in SF?
nope
shiny hunters did it
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
Why are all YC startup founders indian
If you go on the launch YC page
so woke
It's all indians
so progress
sam altman is indian?
i thought he was born in the us
chicago or something
https://www.ycombinator.com/launches oh this page?
Yeah
It seems they have AI in the name and they get funded lol
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
tbh a lot of the startups there seem dogshit
Thought YC was supposed to be the elite
wdym
these startups
nothing here really seems notable
it's all just buzzword buzzword buzzword
Yea
besides the strike drones
Which surprises me, since I thought YC was like super hard to get into and was only high quality
Holy buzzwords
the thing with a lot of startups (our advisor said this) is that they get in for their first idea, but then oftentimes the yc people say "your idea is bad, here is a better one" and so they end up doing what yc tells them
so i suppose "what yc tells them" is the driver of the slop frenzy
yeah I heard YC was more about investing in the people rather than the idea
this really bothers me because of the maintenance implications
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
Well, idk if you saw what Garry tan was posting
He's like the world's biggest vibecoder
he was boasting that be was writing like 1M line/week or something
And his website was entirely vibecoded and was like 30kloc lol
and wasn't it architected poorly too
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
I've tried Claude a bit and it wasn't that bad
But I didn't try vibecoding an entire app or something
i really dont like how much yap it adds to code
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
dude implemented the famine?
yea
Why are people calling their startups AI-native OSes, when they're not OSes
it's kind of old and will probably change around
i need to steal... ehm take for a bit... an ATA driver
there are many that are way better than mine
i advise you steal theirs
nice question
freebsd's should be solid
e.g. i don't handle ANY error cases in there (laziness, i wrote it almost a year ago), and ATA is kind of famous for being problematic
not as bad as floppy i guess
I need to move to SF and start a VC backed startup
are you in the big chicago
oh well error management is for dummies, and i am pretty dummie, so i dont need it
famous last words
good luck
I'm in Canada lol
CANADAAA
one might even say you're on tario
the land of the beaver
Not even ontario
alberta?
quebec
nice
would be my next guess
C compile times are so awesome sauce
it's a blessing to have my code compile so fast
house music is real osdev beats
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
doe a deer
is there a bot forking my repo?
some account with 2.1k random odd repos forked forked my thing
its cia
everyone wants a bite from charmos smh
larpmaxxer in my PRs
ai slopper code
[x] LLM code review passed
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
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
why da website so barren
lazy
i'm working on memory management infra and then i'll shift to filesystem land and then other stuff
fair
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
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
https://www.youtube.com/watch?v=pO0VsFB1Dp8 important announcement
It's a madagascar hissing cockroach running and walking in a hamster wheel
invasion
I started this field 1 month ago.i Wana to study more about it
https://osdev.wiki/ and books
Ok bro.
but bro i am confused .
i am searching osdev but confused from which tutorial shouldi start from
You should not really rely on tutorials for osdev
Can you tell me what should I do.i am improving my c language
If you aren't confident about the language you're using then you shouldn't even be starting now
Learn the language first then come back to this
Ok
what is bro doing in this channel
no marvin put the beer back in the fridge I'm unfortunately not implementing DAG based dynamic initialization
it is merely showing references to structures and types in the docs/reference
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
https://docs.charmos.dev/ anyways slop till you drop is back
now with more larp than ever and a tolerable code browsing interface
had to use up those 20 shekels somehow
not using duck, opinion rejected
did you change the name
yes
for what reason
https://docs.charmos.dev/reference/nightmare_test/ what is this
cppdoc is boring, duck is funni
you quack me up
unfinished
what was it supposed to be? stress test?
I started a long time ago and never needed it
something like linux torture test framework
ah i see
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
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
idk seems like the guy just moaned until someone spoonfed him
https://github.com/wrmsr do you know this person
idr much
evil twin
what os is this?
zinnia
ooo
๐ฅ
code browser is up on the site
wait what is the base domain of ur site???
docs.charmos.dev
no but charmos.dev is the base domain
yes
why is the base domain some indonesian gambling site ๐ญ
wait I just noticed that rn ๐ญ ๐ญ ๐ญ ๐ญ
I never actually tried visiting it b4
๐ญ
@eager yew is vro running an Indonesian casino as a side business 
that's so strange
indeed
good ๐ญ
the mysteries

I still don't know why there isn't a df bist gut genug ๐คจ
checkmate germans
df -h
average foster parent polycule:
no
That's called lipsum
Or lorem ipsum
Which is placeholder text made to look real at a glance, but contains no actual information.
there was a video on this recently where they found out where it came from
it's pretty interesting
yeah
lorem ipsum dolor sit amet
Yeah i love that video
Really intrestinf
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
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
when the impostor is sus
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
honestly this's really cool
unreadable final boss

i read it like this
entry:
i add %a %b to %t
neg:
i negative %t
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
wdym
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
generally highlighting doesnt actually understand anything beyond syntax
yes but you can guess
LSPs have a way to tell the editor to highligh specific tokens
usually that's just treesitter
lsps don't add much
but the problem is you dont want to do this because it is slow as shit
what slow lsps are you using
then LSPs can add highlighting
any
no, you add syntax highlighting in treesitter
syntax highlighting needs to be instant
are you on a Pentium 3
it is
yes no shit\
yes because its not going through the LSP
you just said this
its treesitter
yes but they generally dont
in zed the rust highlighter does this
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
I just didn't understand your line of reasoning with first saying lsps can add highlighting and then immediately saying treesitter is what everyone uses because almost no one uses their lsp to provide syntax highlighting capabilities
or textmate in vscode ๐คฎ
just two facts
xd
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
it wasnt meant to follow
the point was the capability exists
but LSPs are too slow
so generally its not used
I also don't get your point about lsp slow
even in large rust codebases my pc does just fine
highlighting is applied in the rendering pass
idk how yours is so slow
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
๐ฅ
not really
yes really
what are your computer specs
I agree that computer specs have no impact on application performance
this is why I enjoy playing GTA 5 on my N64
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
what compiler's IR is this
Doesn't appear to be LLVM IR?
Oh it's a custom thing?
In which case, what's with the labels having parameters? Is this how you implement phi-nodes?
yes I'll revise it to just use phi nodes like a normal person soon
I thought fasm was cool and wanted to make something a little similar but retargetable
block parameter SSA ๐ค