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
ludacris has quit [Remote host closed the connection]
memset has joined #osdev
memset_ has quit [Ping timeout: 260 seconds]
coolcoder613 has joined #osdev
<coolcoder613> I'm having trouble showing the cursor on my OS
<coolcoder613> Can anyone help?
<Mutabah> Which method of showing which cursor?
<bslsk05> ​wiki.osdev.org: Just a moment...
<Mutabah> Ah, so the VGA text cursor
<coolcoder613> My OS is written in Rust, so I had to translate it a bit
<Mutabah> First check: Are you actually in VGA text mode?
<coolcoder613> Yes
<coolcoder613> But whenever I call get_cursor_position, it returns 2000
<coolcoder613> Oh, wait
<coolcoder613> It just appeared
<coolcoder613> lemme do a bit more testing...
<Matt|home> is there standard software for doing something like high level OS development, e.g. UEFI boot etc
<Matt|home> or do prof os devs still use like qemu and stuff
<Matt|home> im sure they have dedicated testing hardware at least
<coolcoder613> ohhh... I was was counting from 1 instead of from 0 for the cursor y
<coolcoder613> So I had update_cursor(2, 25);
<zid> yea that's why I'd have gone for the middle when I was writing the first test draft :p
<zid> don't need to accurately judge where the border is, col 0 or col 1 etc
<Mutabah> Matt|home: I'd assume a mix of tools for "professionals" - real hardware of various types, hypervisor VMs (KVM/VirtualBox/...), and low-level VMs (qemu, or even bochs)
<Mutabah> It all depends on what you're working on, and what level of realisim it needs
<heat> they use qemu + kvm
<heat> on the linux/bsd side at least
* coolcoder613 is trying to work out for to avoid backspacing of the prompt...
nadja has quit [Ping timeout: 252 seconds]
xenos1984 has quit [Read error: Connection reset by peer]
guideX_ has joined #osdev
nadja has joined #osdev
guideX has quit [Ping timeout: 255 seconds]
guideX_ is now known as guideX
edr has quit [Quit: Leaving]
xenos1984 has joined #osdev
* coolcoder613 did it!
Matt|home has quit [Quit: Client closed]
Matt|home has joined #osdev
qubasa has joined #osdev
obrien has quit [Remote host closed the connection]
gog has quit [Ping timeout: 260 seconds]
sly has quit [Quit: Leaving]
X-Scale has joined #osdev
sly has joined #osdev
<coolcoder613> The cursor disappears after pressing keys a few times, and reappears on backspace?
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
Gooberpatrol66 has quit [Ping timeout: 264 seconds]
mavhq has quit [Ping timeout: 272 seconds]
mavhq has joined #osdev
<coolcoder613> hmm... could it be that the cursor is not shown on cells that do not have a space character, or the color default is black on black?
heat has quit [Ping timeout: 252 seconds]
<coolcoder613> Becuase the cursor only appears in cells that have had text in them before...
<Mutabah> Probably colour
<Mutabah> as the cursor (afaik) is just a rendered `_` character by default
<coolcoder613> Not exactly...
<coolcoder613> But yeah, I think it's the colour
<coolcoder613> So now i have to fill the buffer...
<Mutabah> It's pretty small, so that shouldn't be too hard
MiningMarsh has quit [Quit: ZNC 1.9.1 - https://znc.in]
MiningMarsh has joined #osdev
stolen has joined #osdev
MiningMarsh has quit [Ping timeout: 252 seconds]
MiningMarsh has joined #osdev
Gooberpatrol66 has joined #osdev
MiningMarsh has quit [Ping timeout: 276 seconds]
xvmt has quit [Remote host closed the connection]
xvmt has joined #osdev
goliath has joined #osdev
vdamewood has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GeDaMo has joined #osdev
Cenkeden has joined #osdev
X-Scale has quit [Quit: Client closed]
Starfoxxes has joined #osdev
wgrant has quit [Quit: WeeChat 3.5]
wgrant has joined #osdev
netbsduser has joined #osdev
flom84 has joined #osdev
mavhq has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Left_Turn has joined #osdev
Cenkeden has quit [Quit: Leaving.]
stolen has quit [Quit: Connection closed for inactivity]
mavhq has joined #osdev
gog has joined #osdev
mavhq has quit [Ping timeout: 252 seconds]
mavhq has joined #osdev
sortie has quit [Ping timeout: 248 seconds]
sortie has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 252 seconds]
mavhq has quit [Ping timeout: 248 seconds]
mavhq has joined #osdev
X-Scale has joined #osdev
X-Scale has quit [Ping timeout: 256 seconds]
mavhq has quit [Ping timeout: 252 seconds]
mavhq has joined #osdev
Cenkeden has joined #osdev
Matt|home has quit [Ping timeout: 248 seconds]
MiningMarsh has joined #osdev
childlikempress is now known as Mondenkind
zid` has joined #osdev
zid has quit [Ping timeout: 255 seconds]
flom84 has quit [Ping timeout: 245 seconds]
SupUser has joined #osdev
npc has joined #osdev
zid` is now known as zid
vai has joined #osdev
<vai> hey all!
<vai> have you guys tried to hire someone to pay to someone on osdev projects?
<vai> is it good?
<sham1> what
<SupUser> idk either
<vai> any pros, doing commercial/propertiary code?
<SupUser> oh
<SupUser> A networking engineer
X-Scale has joined #osdev
<zid> Networking engineers like pain, beacuse they use a software tcp/ip stack with virtual bridges and stuff, instead of pin routing.
<SupUser> pin routing?
<zid> yea, like how you do audio
<zid> you just pretend there are virtual *wires*, rather than a virtual set of rules that you then apply to simulate there being wires
<SupUser> I haven't heard that term before hm...
<SupUser> oh
<zid> bad pic but I found it quickly
<SupUser> I get what you're saying
<zid> That's on the diagonal so it's all identity mapped
<zid> you could have device 2's output going to device 7's input instead
<sham1> What benefit would there be on pin routing
<zid> It's like 400x easier to conceptualize
<zid> and is way less erm.. leaky? In the 'tcp/ip software stack' setup, all the packets enter one big messy pool, and can end up going anywhere depending on the rules you set
<zid> like, if someone forges a packet from one device as having come from the 'wrong' subnet, your stack will probably just deliver it out the wrong interface, happily spoofed
<zid> unless you've set up vlans
<zid> I get 'vlans' just by not having wires between them in the first place
<SupUser> What are u trying to explain zid
<SupUser> lollll
<zid> Sham asked me a question
<vai> QtWebEngine-based Framebuffer Browser: This browser draws directly on the framebuffer and does not require an X server. It has a low memory footprint and supports modern HTML5 features1. You can find it on GitHub here.
<vai> anyone tried this?
X-Scale has quit [Ping timeout: 256 seconds]
bleb has quit [Ping timeout: 264 seconds]
<sham1> Might be easier if there was a link
<GeDaMo> here!
heat has joined #osdev
MiningMarsh has quit [Ping timeout: 252 seconds]
MiningMarsh has joined #osdev
gildasio has quit [Remote host closed the connection]
gildasio has joined #osdev
Cenkeden has quit [Ping timeout: 272 seconds]
Cenkeden has joined #osdev
Cenkeden has quit [Ping timeout: 260 seconds]
<gog> heat
<gog> help me with c++
<zid> rm -rf?
<heat> what do you need
<GeDaMo> I was just trying to help someone with C++ before I remembered I don't know anything about C++ :|
<zid> GeDaMo: That never stopped anybody else
<gog> i'm a baby and a clown and i don't know why make_signed_t<size_t> is giving me long (*)() noexcept
<heat> huh weird
<heat> i've never used that ever, but let me take a look
<gog> i feel like this is ssomething ssilly i missed
<gog> also my keyboard is doing that thing again and it's very hard to program like this
<zid> sssize_t
<zid> super secure signed size_t
<gog> yess
<gog> yasss
<bslsk05> ​en.cppreference.com: std::make_signed - cppreference.com
<heat> https://godbolt.org/z/7o8ssjWGP looks okay? how are you holding it?
<bslsk05> ​godbolt.org: Compiler Explorer
<zid> sideways while going "get some, bitches, blat blat"
<zid> (Love that assembly listing)
X-Scale has joined #osdev
<gog> using thing =
<GeDaMo> This is a template thing, right? :P
<gog> yes
<heat> link the coden?
<heat> using type = std::make_signed_t<size_t>;
<heat> static_assert(std::is_same_v<type, long>);
<heat> this works a-ok
X-Scale has quit [Ping timeout: 256 seconds]
<gog> heat: auto errorBit = static_cast<size_t>(std::numeric_limits<ssize_t>::min);
<gog> i am doing something wrong or evil here
<gog> using ssize_t = std::make_signed_t<size_t>;
<gog> error: static_cast from 'long (*)() noexcept' to 'size_t' (aka 'unsigned long') is not allowed is the diag
<gog> i don't follow where the function pointer comes from
<GeDaMo> Are you sure it shouldn't just be std::make_signed<size_t>; ?
<gog> make_signed_t just wraps make_signed<T>::type
<GeDaMo> Is min a function rather than a numeric limit?
pabs3 has joined #osdev
<gog> oh my god
<gog> yes it is
<bslsk05> ​en.cppreference.com: std::numeric_limits - cppreference.com
<gog> in my defense i just figured it out moments ago myself
<GeDaMo> Me too! :P
<gog> i told you, baby && clown
<GeDaMo> Maybe LLONG_MIN ?
<gog> no this actually works fine now lol
<gog> thanks for rubber duckying
<GeDaMo> Quack
* gog patpat GeDaMo
<heat> BABY AND CLOWN
<GeDaMo> Ah, I understand, it's std::numeric_limits<ssize_t>::min()
<GeDaMo> I was thinking of min as returning the minimum of two values
<GeDaMo> But it returns the lowest value for the type
<gog> yes
<gog> i'm obsessed with primitive obsession lately
zhiayang has quit [Quit: oof.]
<heat> ooga booga obsession
<Ermine> network interfaces can't be shared between namespaces, which makes 'vpn but for certain apps' impossible to do that way. stack overflow suggests cgoups though
<Ermine> Or I just need to deploy xray which works as proxy server and configure firefox to use it
zhiayang has joined #osdev
pabs3 has quit [Ping timeout: 248 seconds]
hwpplayer1 has joined #osdev
mavhq has quit [Ping timeout: 244 seconds]
mavhq has joined #osdev
pabs3 has joined #osdev
edr has joined #osdev
<Ermine> Sometimes pipewire needs to be restarted twice
xenos1984 has quit [Ping timeout: 248 seconds]
xenos1984 has joined #osdev
dennisschagt has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
dennisschagt has joined #osdev
gioyik has joined #osdev
zhiayang has quit [Quit: oof.]
zhiayang has joined #osdev
xenos1984 has quit [Ping timeout: 260 seconds]
xenos1984 has joined #osdev
zid has quit [Remote host closed the connection]
zid has joined #osdev
mavhq has quit [Ping timeout: 248 seconds]
mavhq has joined #osdev
Ellenor has joined #osdev
Starfoxxes has quit [Remote host closed the connection]
thaumavorio has quit [Quit: ZNC 1.8.2 - https://znc.in]
thaumavorio has joined #osdev
<heat> maybe the real audio server is the friends we make along the way
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
<nikolar> :)
<Mondenkind> see, i knew i was right to refuse to touch redhatware
<Mondenkind> 'noooooo see pulseaudio was the broken thing but they got it RIGHT this time with pipewire just use pipewire' idiots.
<heat> what do you use?
<Ermine> silence
<heat> i know what the answer is, i'm just waiting for it so i can LOL the fuck out
<zid> dmix for life
<heat> Ermine, oh silence is the new audio server? that's pretty good
<Ermine> Yeah. Tried it, and I hear nothing. Perfect!
<heat> yeah it's a new pipewire feature
<heat> you get a funny SEGV message in your logs and boom, silence
<Ermine> It doesn't crash for me anymore. Now it just shits itself and waits to be restarted
<Ermine> then it gets xruns and waits to be restarted once again
<Ermine> or do minimalists use OSS and cat music.mp3 > /dev/dsp
<Mondenkind> heat: alsa
<Ermine> which is... redhatware
<heat> weren't you a freebsd user too?
<Mondenkind> Ermine: sure everything linux is redhat to some extent but there are degrees
<Mondenkind> heat: i stopped
<Ermine> anyway, you've touched redhatware
<heat> glibc and gcc are intense redhatware, better switch to musl and clang
<heat> hmm, red hat also contributes to llvm, maybe tcc
<Mondenkind> 😱😱❌❌🤮😿
<Ermine> heat: to be redhatware-free one needs to switch to netbsd
<Ermine> hmm, still llvm and xorg
<heat> fwiw, pipewire works better than pulseaudio, for me
<Ermine> same
<nikolar> I've had exactly 0 issues with pulse, but also my audio setup isn't exactly complex
<Ermine> my headset mic doesn't work with pulse
<Ermine> that said, pw code is way too clever for me
<heat> musl code?
<Ermine> not as much, there are okay pieces of code in musl as well as clever ones
<Ermine> pw and musl invoked different emotions in me I guess
<Ermine> musl is like 'this is a bunch of shitty incantantions' and pw is like "wow, that doesn't make any sense to it and idk how it helps with pw's end goal"
gioyik has quit [Quit: WeeChat 4.3.5]
flom84 has joined #osdev
<Ermine> The problem is that sound stuff requires expertise in this area
<heat> well that's how it goes isn't it?
<heat> "wow, that doesn't make any sense to it and idk how it helps with the linux kernel's end goal"
<heat> complex pieces of software with lots of domain specific knowledge do be like that
vdamewood has joined #osdev
mavhq has quit [Ping timeout: 255 seconds]
mavhq has joined #osdev
mavhq has quit [Ping timeout: 252 seconds]
<Ermine> Idk. I'd like to compare with mesa, but 1) I didn't even scratch the surface at this point, 2) I have a bit of knowledge here
<Ermine> But, anyway, in pw case: while I was investigating that issue, I've failed to find what field in pw's data structures corresponds to specific line of pw-dump's output and what logic sets that field. It was wtay who pointed me the right place in the code
hwpplayer1 has quit [Read error: Connection reset by peer]
hwpplayer1 has joined #osdev
mavhq has joined #osdev
<mcrod> hi
<Ermine> henlo
flom84 has quit [Ping timeout: 255 seconds]
Dead_Bush_Sanpai has joined #osdev
sly has quit [Quit: Leaving]
mavhq has quit [Ping timeout: 248 seconds]
mavhq has joined #osdev
netbsduser has quit [Ping timeout: 276 seconds]
hwpplayer1 has quit [Quit: Tomorrow is another day]
Turn_Left has quit [Read error: Connection reset by peer]
Stellacy has joined #osdev
terrorjack4 has quit [Quit: The Lounge - https://thelounge.chat]
bleb has joined #osdev
terrorjack4 has joined #osdev