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
<mcrod> ok I have the black knight greatsword now
joe9 has quit [Quit: leaving]
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
nvmd has joined #osdev
wblue has quit [Quit: wblue]
<zid> that'll do, you can get large tits all over blight town and stuff and make a normal ass weapon
<mcrod> well I killed havel
<mcrod> now I'm back in darkroot basin
<mcrod> thanks master key
nyah has quit [Quit: leaving]
<zid> Lol, I clicked a random rust video that youtube recommended me
<zid> He was explaining function types in rust, then went on to contrast them to C++
<zid> saying "C++ tried, but it imported a lot of C and had to just do its best", then wrote some template mess in C++ and got.. template mess in the output
<zid> I write it in C and it compiles to mov eax, 20; ret ofc
<mcrod> i'm in the process of doing an experimental rewrite of one of our boards in C++
<zid> I left a comment, that's like my 4th youtube comment
<zid> hope he's proud
<mcrod> what really sucks is I can't use gcc/clang
<mcrod> IAR is my only hope
<heat> use lots of templates
<heat> and exceptions
<heat> and dynamic_cast
<mcrod> no
<zid> no, more templates than that
<zid> what you heard was "use some templates", what we mean is "use templates"
<zid> No thing may not be a template
FreeFull has quit [Ping timeout: 246 seconds]
<mcrod> so yes it seems like the only compilers that support STM8 are: CXSTM8 (COSMIC Software), IAR, and SDCC
<mcrod> it doesn't look like it'd be too hard to add backend support for STM8 in clang though...
<mcrod> the instruction set is pathetically simple
heat has quit [Ping timeout: 245 seconds]
SGautam has quit [Quit: Connection closed for inactivity]
MiningMarsh has quit [Ping timeout: 245 seconds]
hmmmmm has quit [Remote host closed the connection]
hmmmm has joined #osdev
[itchyjunk] has quit [Read error: Connection reset by peer]
terrorjack has joined #osdev
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #osdev
\Test_User has quit [Ping timeout: 244 seconds]
bradd has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
bradd has joined #osdev
\Test_User has joined #osdev
acharles has joined #osdev
josuedhg has quit [Quit: Lost terminal]
bgs has joined #osdev
bliminse has joined #osdev
Matt|home has quit [Remote host closed the connection]
PapaFrog has quit [Ping timeout: 252 seconds]
PapaFrog has joined #osdev
Left_Turn has joined #osdev
GeDaMo has joined #osdev
danilogondolfo has joined #osdev
xvmt has quit [Remote host closed the connection]
xvmt has joined #osdev
nyah has joined #osdev
gog has joined #osdev
awita has joined #osdev
awita has quit [Remote host closed the connection]
<sham1> hi
FreeFull has joined #osdev
<sham1> Everything should be a) a template and b) constexpr
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GeDaMo> Is this your brain on C++? :P
<sham1> Hes
<sham1> Yes
<gog> yes
<gog> except everything should be implicitly constexpr
<gog> unless it's marked mutexpr
<gog> c++ and rust will converge
<sham1> Rust++
<GeDaMo> CRust++
<zid> crust!
<GeDaMo> Is that an exponential? :P
gildasio has joined #osdev
<sham1> I've been reading Erlsng stuff. I've reached the conclusion that other languages are pessimal
<GeDaMo> I was reading about the Erlang VM the other day https://www.erlang.org/blog/a-brief-beam-primer/
<bslsk05> ​www.erlang.org: A brief introduction to BEAM - Erlang/OTP
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 246 seconds]
gareppa has joined #osdev
Vercas has quit [Remote host closed the connection]
Vercas has joined #osdev
DanDan has quit [Ping timeout: 250 seconds]
<gog> imposter syndrome hitting hard today
<gog> a project i spent a very large amount of time and effort on was once again tested after some fixes and it's still deficient
goliath has quit [Quit: SIGSEGV]
MiningMarsh has joined #osdev
goliath has joined #osdev
[itchyjunk] has joined #osdev
<gog> i'm trying to be a good programmer but i'm hasty and i rush
nvmd has quit [Read error: Connection reset by peer]
<sham1> Sometimes you can't help but rush, especially if there are deadlines coming up
<sham1> Speaking of that, next week is August and schools will start. Aaaaaaaaaaaaaa
CryptoDavid has joined #osdev
<gog> aaaaaaaaaa
<gog> ok i actually found all the problems and they were minor oversights rather than complete fuckups
<gog> i should have caught them in my own testing though
<gog> this project has dragged out for reasons, some beyond my control, and everytime i go back to it i get frustrated that it's still not ready
<gog> my boss has a well of patience with me that i don't understand at all though
<gog> because sometimes he's very impatient bordering on unreasonable lol
<gog> i hope it's not becuase i'm a woman
<zid> Because it's not about you
<zid> it's about how important he feels that it's finished
<gog> yeah
<GeDaMo> If he's anything like my first boss, his mood depends on who he last spoke to on the phone :P
<zid> You're just the liason for the 'is the code done?' he gets to shoot or be magnamimous to :p
goliath has quit [Quit: SIGSEGV]
DanDan has joined #osdev
<Ermine> gog: may I pet you
mavhq has quit [Ping timeout: 244 seconds]
Matt|home has joined #osdev
q3lont has joined #osdev
<zid> I want dinky donuts
dude12312414 has joined #osdev
<zid> GeDaMo: can you quickly run down from scotland and bring me some?
<GeDaMo> Never heard of them :|
<GeDaMo> I'm picturing very small donuts
<zid> yea they're based not too far from me as a company it turns out
<zid> picture a burger van, but they make donuts
<zid> with cinnamon sugar
<zid> They seem to be fairly widespread in the south of england
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
joe9 has joined #osdev
<zid> They used to be £1 for 10, but I imagine they're about £8 each now
<GeDaMo> Are they, in fact, small?
<zid> They are dinky
<GeDaMo> 'dinky' just makes me think of https://en.wikipedia.org/wiki/Dinky_Toys :P
<zid> dinky's just a word that means small
<zid> so it should, cus they're small also
<bslsk05> ​'Fresh Dinky Donuts#asmr#youtubeshorts#shortvideo#viral#satisfying#donuts' by Crazybakingirl (00:00:15)
<GeDaMo> Lidl used to sell a lemon filled doughnut lemon sugar crystals on top, they were nice
<bslsk05> ​thedoughnutdiary.wordpress.com: Lidl Lemon Salted Caramel Doughnut 29p woah!
<zid> It's not a dinky donut though
<GeDaMo> I don't know why that says salted caramel, it was lemon :|
* kof123 wants for donut menus to appear
<kof123> *waits
<zid> GeDaMo you're just going to have to come daan saaf and try them
<kof123> matter of time
gareppa has quit [Quit: WeeChat 3.8]
gareppa has joined #osdev
stolen has joined #osdev
zhiayang has quit [Quit: oof.]
bguebert has joined #osdev
benlyn has joined #osdev
q3lont has quit [Quit: Leaving]
gildasio has quit [Ping timeout: 240 seconds]
heat has joined #osdev
<heat> sup
CryptoDavid has quit [Quit: Connection closed for inactivity]
<GeDaMo> Donuts
<heat> deeznuts
<sham1> gotem
<Ermine> want donuts
Maja has joined #osdev
nur has quit [Remote host closed the connection]
<heat> i have to admit, writing code using vim + local man pages is quite a raw experience
mavhq has joined #osdev
<gog> hi
<gog> Ermine: yes
* gog preemptively prr
<heat> my cat is actually prrring on my lap just now
<gog> gog
<heat> no its not gog, its fizz
<heat> he smells kinda weird
<sham1> smells like piss?
<heat> no
<heat> i cant tell what he smells like
<heat> ear wax?
<heat> cats are fucking weird
<heat> but i would still take a bullet for this motherfucker
xenos1984 has quit [Read error: Connection reset by peer]
<heat> no matter how much he smells like ear wax
<GeDaMo> A quick search suggests that cats like to eat earwax :|
<heat> i mean im not sure where he could get any
<GeDaMo> Do you not have ears? :|
<heat> i dont see a situation where he could starting ear wax off my ears and i wouldnt notice
<heat> start eating*
<Maja> are you a light sleeper?
<Maja> also: meeeow :3
<heat> no
* Ermine pets gog
<heat> but if a cat starting literally licking my fucking ears i would wake up
<heat> also my cat says:
* gog prr
<jimbzy> My cat is a jerk. She was taken from her mama too soon and her previous owner couldn't deal with her aggression. I literally had to start out by holding her with welding gloves so she didn't destroy my hands and arms.
<Ermine> My cat licks my hair sometimes when I sleep
<gog> i don't have a cat :(
<Ermine> you are the cat
<gog> oh yeah
<heat> jimbzy, yeah the other cat i have (also a female) is also like that
<heat> she's really agressive and trusts no one
<gog> females be like that
<heat> gog do you want pictures of my cat
<gog> yes
<jimbzy> Ms. Fatone finally calmed down, but she still has her moments.
CaCode has joined #osdev
<heat> gog, did u see him he's fucking green LMAO
<heat> that's such an outdated camo pattern
<gog> kitty!
<heat> you're not in the woods u fucking idiot
<heat> green and brown does not work in an urban setting, i can still see you
<bslsk05> ​'Female Of The Species' by SPACE - Topic (00:03:19)
xenos1984 has joined #osdev
antranigv has quit [Quit: ZNC 1.8.2 - https://znc.in]
antranigv has joined #osdev
CaCode has quit [Remote host closed the connection]
CaCode has joined #osdev
carbonfiber has joined #osdev
DoubleJ has joined #osdev
DoubleJ has quit [Client Quit]
<gog> vsvim kinda sucks
<gog> it's not like using vim at all
<gog> i keep doing vim commands and fucking up
<gog> notably, :b doesn't manipulate buffers
<gog> and i constantly have like a half dozen buffers open
<gog> and :qa closes vs entirely
<gog> which i guess is expected
<gog> but there's no :bd
<gog> idk i might uninstall this
zhiayang has joined #osdev
<Ermine> gog: why not bare vim
DoubleJ has joined #osdev
<zid> dis ting is bare vim blud
terminalpusher has joined #osdev
<terminalpusher> so I'm trying to represent the structure of my file system in memory. I read a lot about the data structures used for this and it seems usually B-tree or B+ tree is used for this. I tried to find B-tree implementations when I realized Rust's std has a B-tree implementation. Is interpretation of how a file system is represented in memory somewhat accurate?
<bslsk05> ​play.rust-lang.org: Rust Playground
<terminalpusher> I tried to model the way a file system might be represented in memory using std::collections::BTreeMap. It should be readable even for people that don't use Rust.
<terminalpusher> I mean it basically acts the same as a hash map
<terminalpusher> except that it's apparently more efficient for a file system
stolen has quit [Quit: Connection closed for inactivity]
<terminalpusher> because most of the common/modern file systems nowadays seem to be using B-tree or B+ tree or a variation of either of those
benlyn has quit [Remote host closed the connection]
benlyn has joined #osdev
xenos1984 has quit [Ping timeout: 264 seconds]
xenos1984 has joined #osdev
gog has quit [Quit: Konversation terminated!]
xenos1984 has quit [Ping timeout: 246 seconds]
CryptoDavid has joined #osdev
danilogondolfo has quit [Remote host closed the connection]
xenos1984 has joined #osdev
heat has quit [Remote host closed the connection]
heat has joined #osdev
MiningMarsh has quit [Ping timeout: 264 seconds]
joe9 has quit [Quit: leaving]
benlyn has quit [Ping timeout: 244 seconds]
eck has quit [Ping timeout: 245 seconds]
eck has joined #osdev
bguebert has left #osdev [#osdev]
benlyn has joined #osdev
valshaped742 has quit [Read error: Connection reset by peer]
valshaped742 has joined #osdev
<heat> you usually don't literally use btrees in memory, but rather on-disk
benlyn has quit [Read error: Connection reset by peer]
benlyn has joined #osdev
stolen has joined #osdev
<sham1> Counterpoint: red-black tree
<heat> red-black tree what?
<sham1> Red-black trees count as Btrees
bgs has quit [Remote host closed the connection]
<heat> thank you sham1, very cool!
<heat> yes, you use btrees like normal data structures
<sham1> You're welcome
<heat> but not for filesystems, usually
<heat> inodes *usually* use radix trees
<sham1> Well filesystems also sometimes use btres
<heat> no in-memory
<heat> not*
<sham1> fine
<sham1> Anyway, emulators + steam deck
<sham1> This'll be interesting
terminalpusher has quit [Ping timeout: 246 seconds]
<GeDaMo> What are you going to emulate first?
<sham1> Prolly GBA
<Cindy> gba?
<sham1> GameBou Advanced
<GeDaMo> Pokemon? :P
<sham1> Metroid
gareppa has quit [Quit: WeeChat 3.8]
joe9 has joined #osdev
CryptoDavid has quit [Quit: Connection closed for inactivity]
<heat> how tf do you folks write commit messages?
<heat> do you do something like "This patch/commit makes foobar do blah blah..." or "Make foobar do blah blah"
<heat> writing a full commit message in imperative is kinda fucked up
<Cindy> "who the fuck gives a shit"
<heat> linus seems to prefer something like "this does ...", so not really imperative
<heat> everyone?
<Cindy> i meant that as in the commit message
<sham1> Commit subject line should be in the imperative
<Cindy> write that in your commit
<bslsk05> ​www.conventionalcommits.org: Conventional Commits
<heat> yeah but i mean the actual commit msg, not the subject
<sham1> Don't necessarily write "what" but stuff like "why"
<heat> i already dont like it
<sham1> And for some tricky parts "how"
<heat> The EFI spec (see UEFI 2.10, 24.1.12) requires
<heat> EFI_SIMPLE_NETWORK.GetStatus() to handle NULL InterruptStatus pointers
<heat> by not reading nor clearing the interrupt status from the device.
<heat> implementation) did not correctly handle NULL IrqStat, despite already
<heat> However, EmacGetDmaStatus (part of the DwEmacSnpDxe GetStatus()
<heat> being tagged as an OPTIONAL argument. This made calling GetStatus()
<heat> with a NULL pointer (for example, the call in MnpRecycleTxBuf) either
<heat> corrupt memory or straight-up crash.
<heat> Make it EFI spec compliant, by adding proper NULL pointer checks
<heat> around RI_SET_MSK and TI_SET_MSK retrieval/clearing.
<heat> woops, should've used a paste
<heat> i'm kind of happy with this commit msg but it took some 10 minutes to shit out
<sham1> yes
<sham1> LGTM
<Ermine> you know, that's one of the hardest problems in CS
<heat> Reviewed-by: Sham1 <sham1@libera.chat>
<sham1> Naming things, cache invalidation and off-by-one errors
<heat> Ermine, yes, documentation is hard
<heat> and the firmware people usually don't get that
<Ermine> And then you notice a typo after your stuff has been merged
<heat> this is not even my patch, i 1) fixed a guy's completely wrong patch 2) fixed up his commit message that really really sucks
<heat> > If IrqStat is NULL, the interrupt status will not be
<heat> > read from the device.When the interrupt status is read,
<heat> > it will also be cleared.
<heat> ???
<Ermine> lmao
<sham1> Comments are a code smell
duderonomy has joined #osdev
<heat> i can't tell who i hate more: people that unironically say comments are a code smell (SELF DOCUMENTING CODE!!!!!!!) or people that use the git log as comments
joe9 has quit [Quit: leaving]
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
<nortti> how do you mean by using the git log as comments?
<sham1> Writing the commit so verbosely to explain what and how and why the committed code does what it does
<sham1> heat: self-documenting code is real
<heat> every justification for everything gets put in the git log, at the expense of every other type of docs
<heat> so you need to ... git blame everything and then git log
<heat> i wholeheartedly support really good commit messages
<heat> like linux oldies really have great commit messages
<heat> but they shouldn't be the only source of docs particularly when you're *writing code*
<heat> but some people think this is totally great
<heat> *cough cough musl*
<heat> sham1, i have seen very few examples of self-documenting code
<heat> at the very least you need prior knowledge of how things work/are supposed to work before self-documenting code becomes a thing
<heat> and/or it needs to be very trivial
<nortti> yeah, for something to really be self-documentating (the "why" is understandable from the code), you need to undertand the domain and recognize the approach the code is taking
<sham1> Oh for sure, people like to claim that a piece of code is self-documenting and then it just isn't
<sham1> I've also seen the opposite, where the programmer has tried to compensate for crappy code with loads of comments
<sham1> And I have other pet-peeves. For example most one-letter variable names are stupid
<sham1> My rule is that they should either be absolutely understood within the domain (for example with 3D vectors x, y and z) or have a very, very small scope, like a loop counter
<sham1> Otherwise? No
<sham1> Banned
<sham1> It's fun when you have a function spanning like dozens of lines and it keeps referencing a value, like for example "a"
<moon-child> I find the most useful thing about version control systems is being able to git blame and see what changed at the same time as something else
<moon-child> so honestly ... don't even care that much about commit messages
<Ermine> And then git blames you
<heat> $ git blame
<heat> > gog
<heat> there you go
<heat> it's gog's fault
<heat> my cat's on my lap now
<heat> i can tell he's happy and not crying
<heat> his nose is all wet and shit
<heat> he's soooooo wet
<sham1> CUTE
<heat> i would take so many bullets for this green idiot
<heat> and he doesn't even know it
benlyn has quit [Ping timeout: 250 seconds]
carbonfiber has quit [Quit: Connection closed for inactivity]
<heat> linux kernel operating system
Gooberpatrol66 has quit [Ping timeout: 260 seconds]
<mjg> he would eat you afterwards
ajunior has joined #osdev
Matt|home has quit [Ping timeout: 246 seconds]
gog has joined #osdev
eck has quit [Ping timeout: 260 seconds]
eck has joined #osdev
Gooberpatrol66 has joined #osdev
<mcrod> hi
heat has quit [Remote host closed the connection]
<moon-child> heat doesn't like you :\
<mcrod> why
heat has joined #osdev
<heat> that's not true i love mcrod
<heat> im a mcrod stan if anything
* mcrod hug
<moon-child> heat: oh yeah well i love mcrod more
<mjg> is gogs jelly
<mcrod> i love everyone equally
<mcrod> unless heat can tell me what I need to do with the watchtower basement key
<mcrod> (read: I know already)
<moon-child> are you saying you love me as much as hans reiser?
<moon-child> what the fuck mcrod
<mjg> i prefer hans
<moon-child> that explains a lot
<heat> reiserfs >>
<heat> mcrod ya don't need it
<heat> its for the door that leads to havel (from the burg's side)
<heat> but the master key already opened that for ya
<mcrod> oh
<mcrod> well then wtf am I supposed to do now
<mcrod> new londo?
<heat> no?
<heat> what's the last boss you killed?
<mcrod> moonlight butterfly
<heat> ... before that
<mcrod> uh...
<mcrod> gaping dragon
<heat> dawg
<heat> blighttown
<mcrod> oh yeah
<mcrod> blighttown
<mcrod> it gave me PTSD so I forgot all about it
stolen has quit [Quit: Connection closed for inactivity]
elastic_dog has quit [Ping timeout: 246 seconds]
jjuran has quit [Ping timeout: 246 seconds]
jjuran has joined #osdev
jjuran has quit [Ping timeout: 246 seconds]
heat has quit [Quit: Client closed]
elastic_dog has joined #osdev
heat has joined #osdev
jjuran has joined #osdev
[itchyjunk] has quit [Ping timeout: 246 seconds]
joe9 has joined #osdev
[itchyjunk] has joined #osdev
jjuran has quit [Quit: Killing Colloquy first, before it kills me…]
jjuran has joined #osdev
<gog> hi
<gog> i saw the barbie movie
<klange> no spoilers we don't get it here for another two weeks
<gog> i won't spoil it
<klange> and we still don't have a release date for oppenheimer, that just may never happen
<gog> oh yeahhhhh
<gog> you're in japan
<moon-child> ohhhh...
<gog> i wouldn't hold out hope for a theatrical release
<gog> anyhow, i did the thing and got a picture of me in the barbie box which was cute and fun
<mcrod> heat: fuck you I was one shot by a fucking crab thing
<heat> no fuck you
<gog> boys
<gog> pleae
<gog> be nice to one another
<gog> you were being so nice before
<mcrod> i don't even know what the hell that was
<mcrod> :(
<mcrod> gog may I pet you
<gog> yes
* mcrod pets gog
* gog prr
<mcrod> why is this fucking thing so fucking strong
Gooberpatrol66 has quit [Remote host closed the connection]
Gooberpatrol66 has joined #osdev
<heat> cuz u do 0 fucking damage
<heat> like an idiot
<heat> are you even using your bk weapon?
<mcrod> no because it's too heavy
<mcrod> and i don't care anymore I'm at the bottom
<mcrod> :')
elastic_dog has quit [Ping timeout: 244 seconds]
Turn_Left has quit [Read error: Connection reset by peer]
joe9 has quit [Quit: leaving]
MiningMarsh has joined #osdev