<Ali_A>
geist I am trying to understand, the link u post to compiler explorer, I haven't touched C++ in ages, but I don't understand, the point the function declaration u done ? (like what is it being used fo? shouldn't usually, you provide an overloaded definition?) + I never seen this syntax of new (new(1) int) which I assume, is the same as new
<Ali_A>
int(1);
<heat>
this looks pretty clear to me
<heat>
the (1) is an argument passed to operator new
<kazinsal>
the latest intel C compiler goes ahead and does something baffling: it optimizes out the malloc etc, but prefixes the whole thing by setting the FZ and DAZ bits in the MXCSR register
dude12312414 has joined #osdev
dude12312414 has quit [Remote host closed the connection]
xenos1984 has quit [Quit: Leaving.]
SGautam has quit [Quit: Connection closed for inactivity]
<kazinsal>
heh. Microsoft open sourced 3D Movie Maker
<kazinsal>
apparently purely on the grounds of "foone asked really nicely"
<mxshift>
Foone has been asking for years
<geist>
yah no one listens to Foone
<kazinsal>
apparently they open sourced GW-BASIC a while ago and I never noticed
<moon-child>
ooh cool
<moon-child>
I have absolutely no personal investment or interest in this, but still: cool
<klange>
I think the instigating factor here was that Foone got the copyright holders for the 3D engine on board with open sourcing _that_, so Microsoft followed through with the rest of 3D Movie Maker.
<geist>
kazinsal: oh huh!
<geist>
i might be interested in that, i spent many hours in my youth fiddling with gwbasic
<mxshift>
Knowing Foone a little bit, Scott Hanselmen definitely brought a lot of industry connections to make it all possible
<geist>
(oh huh, Foone is a real person. i was thinking it was a pun)
<mxshift>
Yes, real person. Have met them in person.
<geist>
ah probably nice person
<klange>
I have only "met" them on IRC, but yes.
Vercas has quit [Quit: Ping timeout (120 seconds)]
gildasio has quit [Ping timeout: 240 seconds]
gxt has quit [Ping timeout: 240 seconds]
zaquest has joined #osdev
dminuoso has joined #osdev
<dminuoso>
Hiya. Im looking for some input with regard to usb devices.
<dminuoso>
It's not exactly OS work, but Im hoping for some insights into working with HID compliant devices
<dminuoso>
Would just using threads myself, and a reader thread that continouosly calls hid_read_timeout be a sufficient alternative?
nomagno has quit [Quit: Bridge terminating on SIGTERM]
hgoel[m] has quit [Quit: Bridge terminating on SIGTERM]
Irvise_ has quit [Quit: Bridge terminating on SIGTERM]
chibill has quit [Quit: Bridge terminating on SIGTERM]
junon has quit [Quit: Bridge terminating on SIGTERM]
haliucinas has quit [Ping timeout: 272 seconds]
Vercas has joined #osdev
gildasio has joined #osdev
gxt has joined #osdev
Irvise_ has joined #osdev
chibill has joined #osdev
junon has joined #osdev
hgoel[m] has joined #osdev
bauen1 has quit [Ping timeout: 248 seconds]
corecode has joined #osdev
bauen1 has joined #osdev
<Griwes>
Ahhh, another successful late evening of staring at binary trees and figuring out where the bug is
<Griwes>
Looks like I killed all the instabilities now
<kazinsal>
reminds me, I need to finish my 256-way radix tree route cache...
<Griwes>
Just need to finish making my primitive "first stage" elf loader actually respect the correct symbol order and I think I'll be done with this "small" change/refactor
<Griwes>
And then I'll actually have two *reasonable* things to choose between as the next thing to work on, huh
<kazinsal>
actually yeah I need to finish my kernel core rewrite. only been saying I need to do it for like, six months now
<Griwes>
I'll need to make my dumb scheduler *slightly* less dumb by making it actually use more than one core, that's one path
<kazinsal>
step 1 is complete (solidly get into 64-bit mode). step 2 is going to really just be an annoyance more than anything else (magic paging bullshit)
<Griwes>
And I'll need to actually start figuring out a DSL and APIs for the IPC framework for this whole project
<Griwes>
That's second path
<Griwes>
I think I know the order now that I said it
<kazinsal>
following that it's "rewrite internal memory management APIs for 64-bit systems" and then "start bolting shit on"
<Griwes>
Because one is fairly obviously a conceptually smaller task than the other
<Griwes>
Anyway feels good to actually accomplish a thing, especially with work work being a bit of a slog recently, where I'm refactoring a non trivial thing to match a spec, so it's been weeks since my branch of the thing was in a working state lol (I need to rework the whole non trivial thing, and that's a big chunk of work...)
<kazinsal>
yeah, I feel that. I had about six weeks of banging out all the remaining work I had before moving to a new team and it felt like the longest days I've had in at least five years
<kazinsal>
now I'm just kinda sitting around waiting for new projects to show up. probably ought to write some code during those hours...
Burgundy has joined #osdev
tomaw has quit [Quit: Quitting]
tomaw has joined #osdev
pretty_dumm_guy has joined #osdev
gog has joined #osdev
bliminse has quit [Ping timeout: 240 seconds]
bliminse has joined #osdev
GeDaMo has joined #osdev
brynet has quit [Ping timeout: 240 seconds]
brynet has joined #osdev
brynet has quit [Ping timeout: 260 seconds]
brynet has joined #osdev
kingoffrance has quit [Remote host closed the connection]
nyah has joined #osdev
Dyskos has joined #osdev
dennis95 has joined #osdev
elastic_dog has quit [Killed (osmium.libera.chat (Nickname regained by services))]
elastic_dog has joined #osdev
Vercas has quit [Remote host closed the connection]
Vercas has joined #osdev
srjek has joined #osdev
xenos1984 has joined #osdev
Vercas has quit [Ping timeout: 240 seconds]
Likorn has joined #osdev
xenos1984 has quit [Ping timeout: 260 seconds]
heat has joined #osdev
vdamewood has joined #osdev
muffin has joined #osdev
Likorn has quit [Quit: WeeChat 3.4.1]
<heat>
kazinsal, how does a radix tree work as a fib?
<heat>
my FIB is still just a plain array (works fine with the few routes it has)
<heat>
I guess you could fill every entry that doesn't have a route with a default gateway?
<heat>
and then what happens to routes that use a different interface? i.e two default routes
Dreg has joined #osdev
not_not has quit [Quit: Lost terminal]
Dreg has quit [Read error: Connection reset by peer]
Dreg has joined #osdev
dennis95 has quit [Quit: Leaving]
Likorn has joined #osdev
xenos1984 has joined #osdev
dude12312414 has joined #osdev
pretty_dumm_guy has quit [Quit: WeeChat 3.5]
pretty_dumm_guy has joined #osdev
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
jjuran has quit [Remote host closed the connection]
jjuran has joined #osdev
bauen1 has quit [Ping timeout: 248 seconds]
Vercas has joined #osdev
srjek has quit [Ping timeout: 260 seconds]
muffin has left #osdev [WeeChat 3.5]
srjek has joined #osdev
bauen1 has joined #osdev
Vercas has quit [Remote host closed the connection]
Vercas has joined #osdev
GeDaMo has quit [Remote host closed the connection]
<heat>
any c++ template wizards know what's wrong?
<heat>
I basically want to call c<AF_INET> when i'm AF_INET, c<AF_INET6> when I'm AF_INET6. but I only know this at runtime so I need to wrap it in this nice utility function
<heat>
this would easily be done in a macro but I want to see if I can template it into submission
<Griwes>
you can't pass function templates around
<Griwes>
I'll give you an alternative though, one sec
<Griwes>
hmm, wait, it's slightly more complex than I thought it was
<Griwes>
you can't pass function templates around, and you can't currently easily pass overload sets around either
<Griwes>
(I tried to make the latter happen but apparently it wasn't sufficiently motivated for the core language evolution group -.-)
<dminuoso>
Okay, and an executed instruction has heat dissipation as a side effect
<dminuoso>
your point being?
<dminuoso>
Side effects are a relative thing
<dminuoso>
They depend on what you consider a side effect. The real question is, is memory allocation a behavior according to the abstract machine specified by the language standard.
<dminuoso>
And I guarantee you its not
<mrvn>
Griwes: why not a lambda?
<dminuoso>
We can always make the case that any code has side effects, simply because code gets executed on real world machines, and their execution alters the world.
<dminuoso>
Whether we can derive useful information from this is another topic
<mrvn>
dminuoso: if your real machine does not behave like the C++ machine then that is your problem.
<dminuoso>
Oh yes, that's a direct quote from ISO/IEC 14882:2020(E) `4.1.2 Abstract machine` right?
<dminuoso>
I think I read that there.
<Griwes>
mrvn, because it's less handy to define outside of the call expression