klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
<bslsk05> ​lore.kernel.org: Re: [PATCH v8 0/4] Introduce mseal - Linus Torvalds
<heat> "Heh. I've enjoyed seeing your argumentative style that made you so famous back in the days. Maybe it's always been there, but I haven't seen the BSD people in so long that I'd forgotten all about it."
<heat> GAME RECOGNIZES GAME
<heat> geist, do you know of any PDP -> VAX cross compiler?
<heat> or did the VAX PDP-11 backwards compat Just Work(tm)?
<geist> good question. initial binary compat i think was only on a few models before they dropped it
<geist> there was a PDP-11 bit in the PSR
<heat> basically i'm very curious as to what's the most straightforward C bootstrapping path from the original C compiler (in asm)
<geist> well, at least for DEC i dont think a lot of stuff was written in C back then
<geist> they wrote a lot of code in various macro assemblers, which itself would have probably allowed you to reassemble to vax
<geist> BLISS i think was a major thing
<geist> VMS itself was written in assembly
<heat> at some point you need to cross from the PDP-11 to something else, and VAX is probably the best bet
<heat> then... i guess you could rely on the PDP-11 backwards compat, if UNIX ever supported that
<heat> then build the first gcc, and everything else should be a really straightforward bootstrap through gccs
core-ix has joined #osdev
<geist> yah though in the case of gcc, it was clear that stalman was using existing compilers to compile it
<geist> since there were C compilers long before gcc
<heat> yep
<heat> given a solid enough bootstrap path, i wonder how long that would take
<heat> jumping to gcc would be great, because then at some point you could cross-compile yourself into modern hardware
<zid> I think the neatest part of bootstrapping is the beginning
<zid> like, what's the *simplest* target, like, pretending you've pre-written everything ahead of time, but you lost all computers, except an x86 machine with nothing on its storage or whatever
<zid> like, you start with something like wozmon inputted via toggle switches
<zid> then use wozmon to write a bunch of 6502
<zid> all the way up to compiling linux
<zid> if you can get smoke signals in there at some point, bonus points
<zid> or a loom
<heat> >manually encoding x86 instructions
<heat> i'll take caveman tyvm
<zid> writing a limited nasm into wozmon
<zid> so that you can assemble a nasm bootstrap for x86
<zid> which you then assemble the nasm that provides macros with
<zid> then you assemble a shitty C compiler with that, then compile a less shitty C compiler with that, then compile gcc 2
<geist> also even within that, Woz wrote Sweet-16 that he then wrote some amount of stuff in, like integer basic
<heat> gosh i need to write a shit C compiler one of these days
<heat> when i finish my lexer
<heat> C89 is probably not too hard to implement, i imagine
<geist> yeah, and i've seen some tiny ones. there's a C compiler for PDP-8 that i've fiddled with
<geist> fits in 4K, since that's the address space of it (12 bit machine)
<heat> C is probably one of the only languages you can translate most lines to assembly directly
<heat> wow 4K is nuts
<zid> int NAM;
<zid> /* 8.3 support coming in v2 */
<zid> int FIRST_NAM; /* v2 support finally here! */
<zid> My mouse needs charging, now how do I play factorio? :
<heat> get a wired mouse
<zid> my pc is on my left and I am right handed, and I keep using my PC from bed
<zid> it kills the wires
<zid> but I never remember to charge the mouse except every 3 weeks when it stops working :D
<core-ix> heat: ... or if not for educational purposes, just use pcc/tcc/wcc ...
[itchyjunk] has joined #osdev
<heat> why else would i write a compiler
<zid> To dethrone llvm
<core-ix> :D
<heat> i will write worse, slower to compile C++
<zid> (as the least user-friendly compiler)
<heat> ok i need some help figuring this out
<heat> the linux test project has a lot of tests that were contributed in the early 00s by IBM and "ported" from some unnamed system
<heat> what system could this be?
<heat> literally IBM AIX?
<core-ix> z/OS ?
<heat> they make vague references to internal things in test descriptions sometimes, but a quick search doesn't really return anything
<bslsk05> ​github.com: ltp/testcases/kernel/mem/mmapstress/mmapstress08.c at master · linux-test-project/ltp · GitHub
<heat> where they refer to "as_anon_get", which has 0 good hits on google
<heat> (apart from the ltp code itself)
<zid> secret ibm code
<heat> it could be testing z/OS, it could be AIX
<core-ix> ... or whoever knows what supervisor runs on some of the mainframes ...
<heat> oh, i found ones that mention AIX
<CompanionCube> core-ix: z/VM? PR/SM?
nyah has quit [Quit: leaving]
<core-ix> possible, IBM mainframes are not my forte :D
goliath has quit [Quit: SIGSEGV]
navi has quit [Quit: WeeChat 4.1.2]
<kof123> internet says that but.....> The first C compiler was written in B
<kof123> the nice thing is you seem to only need one type to do that :)
<kof123> > the B language, for which Ken Thompson developed an interpreter. Ritchie used it for the very first stages [...]
gog has quit [Quit: byee]
\Test_User has quit [Quit: .]
\Test_User has joined #osdev
Vercas9 has quit [Quit: Ping timeout (120 seconds)]
Vercas9 has joined #osdev
heat has quit [Ping timeout: 260 seconds]
Vercas9 has quit [Ping timeout: 255 seconds]
Vercas9 has joined #osdev
edr has quit [Quit: Leaving]
orthoplex64 has joined #osdev
Arthuria has joined #osdev
Arthuria has quit [Ping timeout: 256 seconds]
Starfoxxes has quit [Ping timeout: 264 seconds]
SGautam has joined #osdev
gbowne1 has quit [Remote host closed the connection]
gbowne1 has joined #osdev
rcvalle has joined #osdev
<kazinsal> of course when I need a can of duster I don't seem to have one with any pressure in it
<kazinsal> sigh
<kazinsal> pretty sure this drive isn't working because it's so full of dust the heads won't move
sbalmos has quit [Ping timeout: 256 seconds]
sbalmos has joined #osdev
Starfoxxes has joined #osdev
<kazinsal> ha. nope. blown tantalum on the riser board. fml
stolen has joined #osdev
gbowne1 has quit [Read error: Connection reset by peer]
core-ix has quit [Ping timeout: 264 seconds]
bliminse has joined #osdev
<gorgonical> Extremely unfortunate tidings
<gorgonical> I am experiencing weird crashes with sqlite only when it runs without --explain
<gorgonical> That is, if it goes too fast some weird shit happens
<gorgonical> Which makes me very nervous that I have some wack-ass tlb stuff
Matt|home has joined #osdev
[itchyjunk] has quit [Remote host closed the connection]
zetef has joined #osdev
zetef has quit [Read error: Connection reset by peer]
zxrom has quit [Quit: Leaving]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
SGautam has quit [Quit: Connection closed for inactivity]
netbsduser has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
mahk has quit [Ping timeout: 264 seconds]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
netbsduser has quit [Ping timeout: 260 seconds]
xvmt has quit [Read error: Connection reset by peer]
xvmt_ has joined #osdev
xvmt_ is now known as xvmt
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
suqdiq has quit [Read error: Connection reset by peer]
GeDaMo has joined #osdev
suqdiq has joined #osdev
zetef has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv_ has joined #osdev
xvmt has quit [Read error: Connection reset by peer]
xvmt has joined #osdev
valerius_ has quit [Ping timeout: 256 seconds]
Matt|home has quit [Quit: Leaving]
xenos1984 has quit [Read error: Connection reset by peer]
valerius_ has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
zetef has quit [Remote host closed the connection]
xenos1984 has joined #osdev
gog has joined #osdev
Cindy has quit [Ping timeout: 260 seconds]
Cindy has joined #osdev
antranigv_ is now known as antranigv
jack_rabbit has quit [Ping timeout: 268 seconds]
Left_Turn has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
zxrom has joined #osdev
Left_Turn has quit [Ping timeout: 256 seconds]
Left_Turn has joined #osdev
mahk has joined #osdev
goliath has joined #osdev
<geist> gorgonical: yep, that would be a good assumption
<gog> hi
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
<nikolapdp> yhello gog
stolen has joined #osdev
antranigv has joined #osdev
<sham1> hi
<nikolapdp> hello sham1
<zid> nikolapdp: how much honzuki?
<nikolapdp> about 5 sentences
<zid> slick
pretty_dumm_guy has joined #osdev
<nikolapdp> ikr
<bslsk05> ​www.asrockrack.com <no title>
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
<nikolapdp> are you getting a threadripper
pretty_dumm_guy has quit [Quit: WeeChat 3.5]
<nikolapdp> lol Supported OS
<nikolapdp> OSMicrosoftB. Windows: 11 64-bit
pretty_dumm_guy has joined #osdev
<zid> nikolapdp: No but you'll get me this, heat gets me the cpu, gog gets me the ram, etc
<nikolapdp> crowdsourcing a pc, nice
pretty_dumm_guy has quit [Quit: WeeChat 3.5]
jack_rabbit has joined #osdev
navi has joined #osdev
antranigv has joined #osdev
<gog> michaelsoft binbows
<nikolapdp> don't forget 11
<nortti> < heat> geist, do you know of any PDP -> VAX cross compiler? ← you can use pcc for that https://www.bell-labs.com/usr/dmr/www/otherports/32v.pdf tho dunno if the 32v version of pcc is preserved anywhere
<nortti> also TIL pcc comes from the later bell labs interdata port, not wollogong unix. wonder if the wollogong c compiler is preserved anywhere
<bslsk05> ​guix.gnu.org: The Full-Source Bootstrap: Building from source all the way down — 2023 — Blog — GNU Guix
<nortti> oh, heat's not here
<zid> yea guix is the project I couldn't remember the name of
edr has joined #osdev
navi has quit [Ping timeout: 264 seconds]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
navi has joined #osdev
<zid> gog: I played factorio for 12 hours
<gog> nice
antranigv has joined #osdev
Nixkernal has joined #osdev
Nixkernal has quit [Client Quit]
<nikolapdp> full belt of green circuits
<zid> and yet it'snowhere near enough
<nikolapdp> it's never enouugh
<zid> This is the starter base, ofc.
<nikolapdp> every base is a starter base if it's messy enough
<zid> It launches rockets, so it's the starter base
<zid> The real base will be the one with a train in it.
<nikolapdp> obviously
<zid> see, is starter base
<zid> uses bots
<nikolapdp> very fanyc
<zid> Love it when you stand just barely outside the battery range of the bots, so you ask for 2000 things to be delivered, a huge swarm of bots flies to you, then gets within 10cm and flies away like you have an AT field
<zid> and goes home to recharge
<nikolapdp> heh yeah
<zid> In my case though I really do have an AT field
dude12312414 has joined #osdev
dude12312414 has quit [Client Quit]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
[itchyjunk] has joined #osdev
mantahydra1 has quit [Ping timeout: 276 seconds]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
Left_Turn has quit [Ping timeout: 260 seconds]
antranigv has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
Shaddox404 has joined #osdev
Left_Turn has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
Shaddox404 is now known as Shaddox_AFK
Shaddox_AFK is now known as Shaddox404
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
Shaddox404 is now known as Shaddox_AFK
antranigv has joined #osdev
Shaddox_AFK is now known as Shaddox404
goliath has quit [Quit: SIGSEGV]
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
heat has joined #osdev
gog has quit [Quit: Konversation terminated!]
theruran has joined #osdev
antranigv has joined #osdev
netbsduser has joined #osdev
Shaddox404 is now known as Shaddox_AFK
voidah has joined #osdev
Starfoxxes has quit [Ping timeout: 264 seconds]
gog has joined #osdev
FreeFull has quit [Ping timeout: 246 seconds]
FreeFull has joined #osdev
Shaddox_AFK is now known as Shaddox404
Shaddox404 is now known as Shaddox_AFK
Shaddox_AFK is now known as Shaddox404
goliath has joined #osdev
Bonstra has quit [Quit: Pouf c'est tout !]
Bonstra has joined #osdev
<netbsduser> on mseal: i don't like it
<netbsduser> i am not a big fan of most of the m* APIs
<netbsduser> i would rather mmap yielded a token and then you can operate on that token
<netbsduser> this is an API closer to how all modern unixlikes really conceive of memory: as distinct mapped regions and not as a big pile of pages
<heat> i dont like mseal because its all over the place, ands eems to be designed exclusively for chrome
<heat> but the thread around it is fucking toxic
<netbsduser> last i had heard about sealing it was something for memefds
<netbsduser> and i couldn't make heads or tails of that
<netbsduser> other than it might allow you to ban future writeable mappings of some mmfd
<heat> mseal is somewhat like openbsd's mimmutable
Arthuria has joined #osdev
genr8eofl has quit [Remote host closed the connection]
Shaddox404 has quit [Quit: Connection Terminated.]
rcvalle has quit [Read error: Connection reset by peer]
Arthuria has quit [Ping timeout: 268 seconds]
<heat> <netbsduser> this is an API closer to how all modern unixlikes really conceive of memory: as distinct mapped regions and not as a big pile of pages
<heat> why would you look at it as pages?
<heat> mmap() was always a lot more complex than a big pile of pages
heat has quit [Remote host closed the connection]
heat has joined #osdev
cow321 has quit [Read error: Connection reset by peer]
cow321 has joined #osdev
gog is now known as pog
<heat> pog
<zid> gop
<heat> grand old gog
<pog> graphics output protocol
<zid> gog outputs poo
<heat> poop out gog
<pog> D:
<zid> That's when you respond "nuh-uh, girls don't poo"
<pog> what do you think the surgery does
<heat> stuff
<zid> ohh
<pog> that's right
<nikolar> Hello pog
theruran has quit [Quit: Connection closed for inactivity]
<pog> hi
<zid> trying to beat huge biter nests with just personal laser defence is a slog.
<pog> personal roboport and large power lines
<zid> power lines kill biter bases? til
<zid> I should make nukes.
<pog> no
<pog> power lines and laser turrets
<pog> and you turret creep with them
<zid> They're beeg cus I'm far away from spawn
<Mondenkind> hi pog
<pog> hi
divine has quit [Ping timeout: 256 seconds]
<Mondenkind> do you have a litter box
<Mondenkind> for pooping in
cultpony has quit [Quit: ZNC - https://znc.in]
cultpony has joined #osdev
netbsduser has quit [Ping timeout: 268 seconds]
Matt|home has joined #osdev
netbsduser has joined #osdev
<netbsduser> heat: that's exactly what i am critical of
bitoff_ has joined #osdev
<zid> got you all a useful link
<bslsk05> ​news.ycombinator.com: Here are all the IKEA products you can spell in hex: A16 ALG, A15EDA ALSEDA, A77... | Hacker News
bitoff has quit [Ping timeout: 264 seconds]
<heat> netbsduser, why?
<heat> in UNIX mapping files was always the norm, the brk and the stack were an exception
<netbsduser> heat: i think you read the opposite of what i meant
Starfoxxes has joined #osdev
vdamewood has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gbowne1 has joined #osdev
<nikolar> zid wrong, a lot of those have diacritics
<nikolar> That's not hex
<nikolar> You're welcome
pretty_dumm_guy has joined #osdev
Matt|home has quit [Ping timeout: 268 seconds]
goliath has quit [Quit: SIGSEGV]
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
rustyy has quit [Ping timeout: 260 seconds]
rustyy has joined #osdev
<geist> hey fun new architecture to play with: qemu has 64bit PA-RISC support now
<nikolar> Nice
<heat> stacks grow upwards, wake up sheeple
<zid> stacks go sideways
<mjg> arrays start at 1
<heat> avg php dev
<heat> WEBDEV
<mjg> get your own talking points
goliath has joined #osdev
divine has joined #osdev
<Ermine> wat
<Ermine> which genius came up with that
<heat> with what
<Ermine> upward stack
<heat> why would the stack grow downwards
<heat> which genius came up with that
<zid> stack grows up if you use a silly version of up
<zid> where 0 is on top
<heat> i'm not sure if there's a good hw reason for the stack to grow downwards
<heat> like, if you were to forget about brk and traditional UNIX positioning of the brk and stack
jack_rabbit has quit [Ping timeout: 256 seconds]
<zid> because rom grows forwards
<zid> and ram grows backwards
jack_rabbit has joined #osdev
<zid> (like, it doesn't really 'grow', but it's common to SKU stuff and have different amounts of ram, so putting stack pointer at 0xFFFF makes sense and then have it grow down)
<zid> Rather than having it at 0x8000 or 0xC000 depending on installed ram
<heat> ram definitely grows upwards though?
<zid> not if you put it at the end of the address space
<zid> and your rom at 0
<zid> not everything is a 650
netbsduser has quit [Ping timeout: 255 seconds]
netbsduser has joined #osdev
carbonfiber has joined #osdev
<zid> might genuinely need nukes
sbalmos has quit [Quit: WeeChat 4.2.1]
<nikolar> Nuke them all
mantahydra1 has joined #osdev
solaare has quit [Ping timeout: 252 seconds]
solaare has joined #osdev
Left_Turn has quit [Read error: Connection reset by peer]
zxrom has quit [Quit: Leaving]
Maja has joined #osdev
<Maja> how do I "git blame" a wiki page? https://wiki.osdev.org/FAT32#BPB_.28BIOS_Parameter_Block.29 describes the version field in a way that doesn't make sense at all
<bslsk05> ​wiki.osdev.org: FAT - OSDev Wiki
<Maja> like, > The first 8 Bytes (3 - 10) is the version of DOS being used. The next eight Bytes 29 3A 63 7E 2D 49 48 and 43 read out the name of the version.
<Maja> it's an 8 byte field, and it's being described like it has 16 bytes???
<Mutabah> Maja: "History"
<heat> i don't think there's a way to git blame, but see the history
<Maja> Mutabah: I don't think that's "git blame". that's "git log" at best
<Mutabah> point
<Mutabah> binary search for the change
<zid> It's.. not describing it as 16 bytes though?
<Maja> "the first 8 bytes are $foo, the next eight bytes are $bar"
<Maja> and the hex it lists decode as "):c~-IHC" which... ????
<zid> oh, I see, it's just a bad splice
<zid> It's written conversationally and was edited poorly
<Maja> oh god, it's been this way for years
<zid> It's supposed to flow from The first three bytes EB 3C 90 to The next eight Bytes 29 3A 63 7E 2D 49 48 and 43
<Mondenkind> wiki.osdev.org in a nutshell
<heat> oh ew
<Maja> oh, as in, it used to be an example?
<heat> good point zid
<zid> but it's had a 'The first 8 bytes (3-10)" prepended to it
<zid> which you read to mean 8 bytes + the next 8 bytes
<Maja> the example version string makes no sense
<zid> but yea, 29 3a 63 7e is nonsense
<heat> none of those bytes are ascii