<pixelherodev>
Actually using ACPI now :) "ACPI 1.0 detected, assuming i8042 controller presence..."
<pixelherodev>
Or, for later revisions, actually checking before initializing
<pixelherodev>
... ugh. On real hardware (amd64 in legacy mode), anything involving floats (f32/f64) craps out and gives nan
<daurnimator>
real hardware would be in real mode though ;)
<andrewrk>
I'm new to os dev but my understanding is the goal is to get out of legacy mode as soon as possible
<pixelherodev>
"legacy mode" meaning BIOS emulation
<pixelherodev>
Also meaning this runs as a x86 kernel, not x64
<pixelherodev>
But yeah, really sick of QEMU trying to hold my hands and work when it shouldn't.
<andrewrk>
I think that's rather a missing feature of QEMU than an anti feature
<andrewrk>
it's a lot easier to test (from the perspective of a QEMU developer) that it is able to emulate working software, than it is to test whether it emulates non-working software the same way as the hardware
<pixelherodev>
It doesn't require enabling the FPU. I'd say "probably not hard to emulate," but I've never tried and I try not to assume knowledge
saskwach has joined #zig
mahmudov has quit [Ping timeout: 264 seconds]
muffindrake has quit [Ping timeout: 246 seconds]
muffindrake has joined #zig
chemist69 has quit [Ping timeout: 276 seconds]
chemist69 has joined #zig
donpdonp has joined #zig
ltriant has quit [Quit: leaving]
_whitelogger has joined #zig
jjido has joined #zig
<Snektron>
Floats have all kind of weird intrinsics, if you want to emulate an FPU you gotta implement all those
<Snektron>
Like rounding modes
mahmudov has joined #zig
marijnfs has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samtebbs has joined #zig
samtebbs has quit [Client Quit]
slice has quit [Ping timeout: 246 seconds]
slice has joined #zig
samtebbs has joined #zig
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LargeEpsilon has quit [Ping timeout: 276 seconds]
samtebbs has quit [Quit: leaving]
<bgiannan>
mq32, samtebbs, yeah i did :)
Ichorio has joined #zig
<fengb>
What language is it currently in?
<bgiannan>
lua
<bgiannan>
with love 2d
<waleee-cl>
are you talking about the dwarf-fortress-lite game?
<bgiannan>
yes. even though it has little to do with DF apart from the visual style
casaca has quit [Ping timeout: 268 seconds]
casaca has joined #zig
wootehfoot has quit [Quit: Leaving]
wootehfoot has joined #zig
jjido has joined #zig
kllr_sbstn has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
donpdonp has left #zig ["WeeChat 2.6"]
<nrdmn>
is there a rough timeframe for lambdas?
<pixelherodev>
Don't we already basically have lambdas using e.g. `struct {fn func()void{}}.func`?
batok has joined #zig
<nrdmn>
pixelherodev: error: expected type 'extern fn(...) usize', found '(bound extern fn(...) usize)'
<nrdmn>
what's 'bound'?
<andrewrk>
it's a "fat pointer" that only works at comptime and the type only exists to make method call syntax work
<pixelherodev>
Snektron, true, but this is using KVM, so AFAIK it's not strictly speaking *emulating* the FPU
<fengb>
pixelherodev: those are just local "anonymous" functions. True closures can capture local state
<pixelherodev>
In theory, if you design a system to call the function with the containing struct (and take type `var` in the function), you might be able to do that
<pixelherodev>
Also, I was talking lambdas, not closures
wootehfoot has quit [Read error: Connection reset by peer]
<fengb>
Oh right
waleee-cl has quit [Quit: Connection closed for inactivity]