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
<grumbler> If one were a mediocre programmer and wished to learn how to build one's own VM, where would you OS-dev folks direct such a person? (Asking for uh... "a friend")
<heat> what's a VM
<heat> (that's a vague acronym)
<grumbler> Virtual Machine, A simple one though - so that one could learn how these things are built and how they work etc.
<zid> as in, using hardware exceptions to create a hypervisor, or as in interpreting a bytecode to create an imaginary computer?
<zid> extensions*
<grumbler> The latter
<zid> chip-8 emulator tutorials will do
<grumbler> Interpreting something like bytecode to create an imaginary computer
<grumbler> Ah, I see
<grumbler> Thank you
<zid> or if you wanna go full boss mode, gameboy emulator
<grumbler> understood
<zid> The basic premise is pretty simple though
<heat> full boss mode is x86 PC lol
<grumbler> My aspirations are quite modest, I must admit and x86 PC sounds well beyond my current abilities
<zid> opcode = memory[instruction_pointer]; switch(opcode){ case 0x74: /* ADD A, n */ A += memory[instruction_pointer+1]; instruction_pointer +=2; break; }
<zid> That's the core of any emulator/vm/etc
<bslsk05> ​github.com: gameboy/cpu.c at master · zid/gameboy · GitHub
<grumbler> Thank you, I've made a note of this
<netbsduser`> grumbler: i learnt it by implementing first forth, then lisp, then smalltalk
<netbsduser`> forth is very simple and a little unusual but a good first step for that reason
<grumbler> netbsduser`, do you mean that you built an interpreter/compiler for those languages and that involved making the VM as part of the process?
<netbsduser`> grumbler: yes, exactly that
<grumbler> Understood, thank you
<netbsduser`> and it was the latter + some experience contributing to illumos and netbsd that actually gave me the confidence to try osdev
<grumbler> I see
<grumbler> What are you working on nowadays?
<netbsduser`> i have a little kernel and operating system (well, nearly everything else but the kernel is third-party ports, but still)
<heat> windows storage driver warcrimes
<zid> heat talked me out of writing anything
<blockhead> heat: that's a phrase for my cookie file ;)
<netbsduser`> i'm quite pleased with the windows storage driver warcrimes
<netbsduser`> finally an impetus to implement a scsi stack
wblue has quit [Quit: wblue]
SGautam has quit [Quit: Connection closed for inactivity]
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
goliath has quit [Quit: SIGSEGV]
wblue has joined #osdev
heat has quit [Remote host closed the connection]
heat has joined #osdev
heat has quit [Remote host closed the connection]
heat has joined #osdev
wblue has quit [Quit: wblue]
<zid> wimdows.
vdamewood has joined #osdev
netbsduser` has quit [Ping timeout: 244 seconds]
heat has quit [Remote host closed the connection]
heat has joined #osdev
heat has quit [Ping timeout: 240 seconds]
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heat has joined #osdev
heat has quit [Ping timeout: 240 seconds]
grumbler has quit [Quit: It's time]
[itchyjunk] has quit [Remote host closed the connection]
<kof13> openbsd had pf ... but it was ported elsewhere. this was a nice reason to use it a long time ago
netbsduser` has joined #osdev
netbsduser` has quit [Ping timeout: 240 seconds]
agent314 has joined #osdev
netbsduser` has joined #osdev
netbsduser` has quit [Ping timeout: 240 seconds]
Burgundy has joined #osdev
Arthuria has joined #osdev
MiningMarsh has quit [Ping timeout: 258 seconds]
Arthuria has quit [Ping timeout: 240 seconds]
netbsduser` has joined #osdev
<kazinsal> this isn't exactly osdev related but has anyone ever written anything using apple push notifications from web callbacks? trying to get a FFXIV plugin to send a push notification through an HTTP request
netbsduser` has quit [Ping timeout: 244 seconds]
Burgundy has quit [Ping timeout: 240 seconds]
<moon-child> I have not. HTH.HAND
<zid> +++ATH0
stolen has joined #osdev
<kof13> atttttttttttttttttttttttheos
Affliction has quit [Quit: Read error: Connection reset by beer]
<zid> works on affliction I see
Affliction has joined #osdev
weinholt has quit [Server closed connection]
weinholt has joined #osdev
GeDaMo has joined #osdev
netbsduser` has joined #osdev
netbsduser` has quit [Ping timeout: 240 seconds]
zaquest has quit [Remote host closed the connection]
gbowne1 has quit [Remote host closed the connection]
[itchyjunk] has joined #osdev
agent314 has quit [Ping timeout: 244 seconds]
agent314 has joined #osdev
Terlisimo has quit [Quit: Connection reset by beer]
Terlisimo has joined #osdev
gog` has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
remexre has quit [Read error: Connection reset by peer]
remexre has joined #osdev
cloudowind has quit [Quit: see you next time fellows]
netbsduser` has joined #osdev
tixlegeek has joined #osdev
pounce has quit [Ping timeout: 245 seconds]
pounce has joined #osdev
MiningMarsh has joined #osdev
MiningMarsh has quit [Ping timeout: 240 seconds]
MiningMarsh has joined #osdev
flom84 has joined #osdev
MiningMarsh has quit [Client Quit]
goliath has joined #osdev
gog has quit [Quit: byee]
MiningMarsh has joined #osdev
orccoin has joined #osdev
tixlegeek has quit [Quit: tixlegeek]
netbsduser` has quit [Ping timeout: 240 seconds]
Arthuria has joined #osdev
rustyy has quit [Ping timeout: 264 seconds]
CompanionCube has quit [Quit: ZNC - http://znc.in]
Stary has quit [Quit: ZNC - http://znc.in]
rustyy has joined #osdev
Left_Turn has joined #osdev
Stary has joined #osdev
Arthuria has quit [Ping timeout: 240 seconds]
CompanionCube has joined #osdev
agent314 has quit [Ping timeout: 240 seconds]
agent314 has joined #osdev
Burgundy has joined #osdev
grumbler has joined #osdev
gog` has quit [Remote host closed the connection]
gog` has joined #osdev
heat has joined #osdev
agent314 has quit [Ping timeout: 244 seconds]
agent314 has joined #osdev
dude12312414 has joined #osdev
duthils has joined #osdev
dude12312414 has quit [Client Quit]
heat has quit [Remote host closed the connection]
heat has joined #osdev
netbsduser` has joined #osdev
zxrom has quit [Ping timeout: 264 seconds]
agent314 has quit [Ping timeout: 240 seconds]
agent314 has joined #osdev
Arthuria has joined #osdev
Brnocrist has quit [Read error: Connection reset by peer]
zxrom has joined #osdev
agent314 has quit [Ping timeout: 264 seconds]
agent314 has joined #osdev
<gog`> hi
<heat> hi
Jari-- has joined #osdev
<Jari--> hi guys, I remember how sometimes I made task switch to take a second, was funny to see - on a timer
<Jari--> any benefits for a small kernel project to use the Advanced PIC?
<Jari--> APIT even
<Jari--> 32-bit kernel, but most hardware support relies on old 8086 code - JTMOS.
<Jari--> I cant live without TSS, but soon coming up amd64 revision of the kernel.
<heat> what's the APIT?
<Jari--> heat advanded progarmmable timer controller?
<heat> i'm afraid that's not a thing
<heat> the APIC has a timer though
<Jari--> heat, I debugged with bochs the Windows 95 kernel, it used timer NNNNN like i.e. timer 123446
<heat> i don't know what that means
<heat> also >windows 95 kernel
<heat> please don't
<Jari--> heat, so I am betting Windows 95 LIBC is thread safe mostly?
agent314 has quit [Ping timeout: 245 seconds]
<heat> huh?
<Jari--> its easy, use more memory, like I did on all my projects before
agent314 has joined #osdev
<heat> what do timers have to do with thread safety and the libc
<Jari--> heat, yeah, allocate some memory properties for each thread
flom84 has quit [Ping timeout: 240 seconds]
Brnocrist has joined #osdev
<Ermine> You slap timers on LIBC and it instantly becomes thread safe, isn't that obvious
<Ermine> gog`: may I pet you
<heat> the windows 95 kernel was fantastic
<heat> the best part of windows was ms-dos
<Ermine> Startup sound is nice
<Ermine> Win95 was so good for virtualization that even drivers were virtual
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 255 seconds]
<ChavGPT> it is tautological that widespread use == great quality
<ChavGPT> windows 95 defo fits the bill
<sham1> Millions of flies can't be wrong. Fecal matter can't be that bad
xenos1984 has quit [Ping timeout: 240 seconds]
xenos1984 has joined #osdev
flom84 has joined #osdev
<gog`> Ermine: yes
* sham1 squints at the backtick
flom84 has quit [Ping timeout: 255 seconds]
* Ermine pets gog`
xenos1984 has quit [Ping timeout: 240 seconds]
* gog` prr
gog` is now known as gog
<gog> there are you happy
dza has quit [Server closed connection]
dza has joined #osdev
<sham1> Yes
Left_Turn has joined #osdev
<Ermine> Hmm, I've petted gog`, may I pet you gog
Turn_Left has quit [Ping timeout: 255 seconds]
<immibis> it was an adjective. that was your pet gog
rustyy has quit [Ping timeout: 240 seconds]
xenos1984 has joined #osdev
flom84 has joined #osdev
* gog prr
flom84 has quit [Remote host closed the connection]
<Ermine> s/petted/pet/
rustyy has joined #osdev
flom84 has joined #osdev
orccoin has quit [Ping timeout: 244 seconds]
flom84 has quit [Ping timeout: 246 seconds]
flom84 has joined #osdev
flom84 has quit [Remote host closed the connection]
flom84 has joined #osdev
<ChavGPT> sigh
cultpony has quit [Server closed connection]
cultpony has joined #osdev
<ChavGPT> i may end up proposing something for sysconf so that people can query "suggested" core count
<ChavGPT> juts ran into another _SC_NPROCESSORS_ONLN abuser
<immibis> suggested core count = number of cores you should buy to have a fast computer?
<ChavGPT> implemlentation: whatver the count now + 8
<heat> you should just return 8
<heat> nothing reasonable scales past 8
<heat> - tech-kern@openbsd.org
<ChavGPT> found the openbsd user
<ChavGPT> cykaBlyatSD
<heat> i spend a single day inside r/openbsd and this is what happens to me
marshmallow has quit [Server closed connection]
<ChavGPT> do you have a reddit account
<heat> mayb
<Ermine> I spend time at more interesting subreddits
* Ermine looks at r/openbsd
<ChavGPT> r/osbroesbeforehoes
<ChavGPT> innit
<Ermine> > linux sucks
* Ermine closes the tab
<ChavGPT> i only seen the linked thread
<heat> 99% of women think openbsd men are interesting and attractive
<heat> and every woman who tells you the opposite is either a liar or part of the 1%
<Ermine> I always knew I'm lucky
<netbsduser`> i don't agree with r/openbsd
<bslsk05> ​www.reddit.com: Reddit - Dive into anything
<heat> >I haven't been able to find any information in the man pages or on Bing
<netbsduser`> when i ported systemd to openbsd they declared it offtopic and refused to permit anyone to post about it
<heat> > or on Bing
<heat> > Bing
rustyy has quit [Ping timeout: 240 seconds]
<heat> To: linux-mm@vger.kernel.org
<ChavGPT> that's not the address of the list though
<heat> hey yall how does linux do memory allocation i tried yahooing this but nothing came up
<ChavGPT> :X
<heat> i know
<heat> it's like kvack something
<Ermine> netbsduser`: expectable btw. Openbsd is one of the harbours of systemd haters, so they don't like any kind of such ports
<heat> but fuck it you get the joke
<ChavGPT> i get all the genz jokes
<netbsduser`> Ermine: but that's the whole joke
<ChavGPT> :X
<netbsduser`> i did the port first to have fun, second to learn more about systemd which i always criticised from afar, and third to startle the natives
<immibis> did you rewrite the kernel to make it more systemd compatible? That's what Lennart would have done
<geist> keep adding more linux syscalls to it, openbsd people will thank you for it
<Ermine> hi geist
<geist> hola
<immibis> no hablo español
* CompanionCube vaguely remembers someone making a port called 'initware'
<Ermine> Actually it would be nice to have an OS with reasonable set of features but immune to pegasus. Is that utopian?
<immibis> isn't that called linux
<Ermine> Is it so?
<immibis> problem being that linux is not an OS but rather an OS construction kit (this applies doubly if you are using gentoo linux)
<netbsduser`> CompanionCube: that's mine
<immibis> while it's possible to make a linux OS that's immune to pegasus, it's also possible to make one that isn't
<Ermine> If those people manage to attack the kernel, none of linux distributions will be secure against it
<netbsduser`> immibis: i was surprised recently when i learned that some people actually run gentoo directly
<netbsduser`> i always supposed it was more of a toolkit for building a GNU/Linux distro, like ChromeOS
<Ermine> What you're referring to as ChromeOS is, in fact, GNU/ChromeOS
<Ermine> (Sorry)
<immibis> netbsduser`: you might be thinking of yocto. they use very similar build scripts, so there must be some relation
<immibis> i use gentoo
<immibis> i also used yocto at work, for an embedded system
<immibis> gentoo is clearly a distribution itself as it can update itself for example. But it's a lot closer to automated Linux From Scratch, than to Ubuntu
<immibis> whereas yocto is something you use to make a distribution for another device
grumbler has quit [Remote host closed the connection]
grumbler has joined #osdev
* CompanionCube is happy enough with current inits to not use initware, but it's a good idea anyway
flom84 has quit [Ping timeout: 240 seconds]
<geist> hmm what's this pegaus that you speak of?
<geist> ah some sort of spyware
rustyy has joined #osdev
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
tixlegeek has joined #osdev
<kof13> yes, i was worried it was some systemd or something, but this maintains his magical properties, so...i see no problem with the name
agent314 has quit [Ping timeout: 264 seconds]
<gog> hi
agent314 has joined #osdev
<Ermine> hi gog
agent314 has quit [Ping timeout: 240 seconds]
agent314 has joined #osdev
<gog> hi Ermine
<Ermine> how r u gog
flom84 has joined #osdev
<gog> i'm ok i guess
<gog> how are you
rustyy has quit [Ping timeout: 240 seconds]
rustyy has joined #osdev
<Ermine> I'm fine
<Ermine> Writing a motivational letter rn
<zid> is it G
flom84 has quit [Ping timeout: 244 seconds]
[itchyjunk] has quit [Ping timeout: 245 seconds]
[itchyjunk] has joined #osdev
Arthuria has quit [Ping timeout: 240 seconds]
agent314 has quit [Ping timeout: 240 seconds]
agent314 has joined #osdev
<sham1> Probably not
Vercas has joined #osdev
agent314 has quit [Ping timeout: 240 seconds]
<nikolar> is it top G by any chance
<ChavGPT> motivational letter?
<ChavGPT> wtf
Cindy has quit [Quit: ZNC 1.8.2 - https://znc.in]
TheCatCollective has quit [Quit: Meow Meow Meow Meow Meow Meow Meow Meow]
<sham1> Probably a motivation letter for a job application
<sham1> "why am I seeking this employment" and if you answer "I want money", you fail
<ChavGPT> i am aying wtf is with companies asking for one today
<ChavGPT> last time i had to write one was 15 years ago
<ChavGPT> and i changed jobs several times
xenos1984 has quit [Read error: Connection reset by peer]
<kof13> this is probably true, but if you deny money == competence, skill, worthiness, holiness you also fail :D
<kof13> so you must want it, but not say so lol
<ChavGPT> ask chatgpt to write one no problemo
TheCatCollective has joined #osdev
Arthuria has joined #osdev
xenos1984 has joined #osdev
zxrom has quit [Remote host closed the connection]
zxrom has joined #osdev
goliath has quit [Quit: SIGSEGV]
Burgundy has quit [Ping timeout: 244 seconds]
Yoofie has quit [Read error: Connection reset by peer]
Yoofie has joined #osdev
bnchs has joined #osdev
dh` has quit [Ping timeout: 252 seconds]
sbalmos has quit [Server closed connection]
sbalmos has joined #osdev
cloudowind has joined #osdev
gog has quit [Quit: byee]
gog has joined #osdev
<gog> hi
<heat> hi gog
<gog> hi heat
<heat> linux kernal gog kernal linux
<heat> gogux kernal
<gog> i don't know what linox kornel is
<heat> kornel university of united states of american
<heat> linox from linox troval of internet
agent314 has joined #osdev
gxt has quit [Remote host closed the connection]
gxt has joined #osdev
agent314 has quit [Ping timeout: 240 seconds]
agent314 has joined #osdev
tixlegeek has quit [Quit: tixlegeek]
<gog> who
ptrc has quit [Ping timeout: 246 seconds]
linearcannon has quit [Read error: Connection reset by peer]
linearcannon has joined #osdev
ptrc has joined #osdev
grumbler has quit [Quit: It's time]