eck has quit [Quit: PIRCH98:WIN 95/98/WIN NT:1.0 (build 1.0.1.1190)]
eck has joined #osdev
bauen1 has quit [Ping timeout: 240 seconds]
eck has quit [Quit: PIRCH98:WIN 95/98/WIN NT:1.0 (build 1.0.1.1190)]
eck has joined #osdev
xFCFFDFFFFEFFFAF has joined #osdev
GeDaMo has joined #osdev
netbsduser has joined #osdev
neo has quit [Ping timeout: 256 seconds]
op has joined #osdev
V has quit [Ping timeout: 246 seconds]
<zid>
The burning sky orb is back
<zid>
I vote we do something about it
<zid>
How did they blot out the sky in the matrix
<GeDaMo>
Wind and rain here :|
<zid>
scotland doing scotland things
<zid>
12C, no wind, sun is annoyingly flickering because of clouds
navi has joined #osdev
gog has joined #osdev
<kof673>
TLDR: inconceivable! > The Mercury having been often sublimed, is at length fixed, and becomes capable of resisting fire: the sublimation must be repeated until at length the fixation is attained.
Left_Turn has joined #osdev
<kof673>
> A SALAMANDER LIVES IN THE FIRE, WHICH IMPARTS TO IT A MOST GLORIOUS HUE. so......the SICP lambda on the cover is the solution
<kof673>
no pun on solution
* kof673
zzzzzzzzzzzzzzzzzzzzzzzzz
bauen1 has joined #osdev
Turn_Left has joined #osdev
Turn_Left has quit [Max SendQ exceeded]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 256 seconds]
netbsduser has quit [Ping timeout: 272 seconds]
xFCFFDFFFFEFFFAF has quit [Remote host closed the connection]
<nikolapdp>
zid the sky orb is back over here too
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 260 seconds]
<zid>
it's left here, so now we know where it's gone at least
neo has joined #osdev
<zid>
It appears to be heading east at approximately 132km/hr
<GeDaMo>
Uh ... doesn't the sun apparently move to the West? :|
<zid>
err math error, 800kmh
<zid>
GeDaMo: That's why we need to f ind it!
<zid>
Damn thing is going the wrong way
xenos1984 has quit [Read error: Connection reset by peer]
goliath has joined #osdev
neo has quit [Remote host closed the connection]
neo has joined #osdev
<nikolapdp>
it's left here now too
<zid>
fuck, we need more scouts
<zid>
which direction did it go in?
<nikolapdp>
don't know, it just vanished
<zid>
useless
<nikolapdp>
oh it's bacj
<nikolapdp>
back
<zid>
bizzare
<zid>
I have cake
<nikolar>
The cake is a lie
<zid>
nikolar: 3.0+1.0 today?
<nikolar>
Maybe
<zid>
3.99997 best movie
<nikolar>
I only used fixed point
<nikolar>
4.0
xenos1984 has joined #osdev
bauen1 has quit [Ping timeout: 256 seconds]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 260 seconds]
Gooberpatrol66 has joined #osdev
neo has quit [Quit: brb]
bauen1 has joined #osdev
<kof673>
> doesn't the sun apparently move to the West? normally, yes
xFCFFDFFFFEFFFAF has quit [Remote host closed the connection]
<nikolar>
:(
<nikolar>
Rip
<nikolar>
Next you'll tell me that 6502 is being discontinued
<leg7>
hey I'm trying to make an IDT in nasm via a macro but the problem is that I can't separate an address into high low parts with the preprocessor because it doesn't know the value of the address yet.
<leg7>
Is there a way to get around this with a linker script?
<zid>
you're trying to fill out the idt with the addresses from your macro? That's a constant expression and should work fine
hunta987 has joined #osdev
<leg7>
Well nasm tells me it can't compute it because it's not a "scalar value"
<leg7>
I ran into the same problem in C
<zid>
assuming you did the normal thing where you do idt0: push 0; jmp blah; idt1: push 1; jmp blah; idt2: push 2; jmp blah or whatever, then they IDT just needs idt0, idt1, idt2, ..
<leg7>
the issue is that the addresses of the ISRs are not known at compile time
<zid>
They absolutely can be
<zid>
you must have written it down funny
<leg7>
I shared my code above
<leg7>
I'm not doing the C indirection thing
<zid>
it didn't have the right content type
<leg7>
wdym?
<zid>
Content-Type: http header
<zid>
the server tried to serve me it as binary, not text/plain
<zid>
so I could only download it, not view it
<zid>
as though you gave the 'download' or 'raw' link, not the paste link
<zid>
label - label is a scalar, then you can do math
<zid>
but you lose the high bits of the original address
<zid>
so you need to add them back in or whatever somehow else, like by having it all at a fixed address
<leg7>
yeah thanks but I have no clue how that works
<zid>
if it's at a fixed address, all the issues nasm has goes away, for obvious reasons
<zid>
you don't understand why label-label is a scalar?
<leg7>
yes I don't see how subtracting labels suddenly makes it ok to operate on
<zid>
it's guarenteed to be a number with a known value
<leg7>
I don't think that would work in the preprocessor
<zid>
it's *always* 5
<zid>
nothing can change that
<zid>
if start is at 0xBEEF0000 and isr5 is at 0xBEEF0005, answer is 5
<zid>
if start is at 0xF0000 and isr5 is at 0xF0005, answer is 5
<zid>
etc etc
<zid>
so that expression is just 0x5FEEF, every time
<leg7>
yeah ok but isn't that just the distance between both?
<zid>
Yes
<zid>
now we go back to
<zid>
> but you lose the high bits of the original address
<zid>
> so you need to add them back in or whatever somehow else, like by having it all at a fixed address
<zid>
the fact they're not at a fixed address is *why* it doesn't 'just work' in the first place
<zid>
nasm doesn't know what address they're going to be loaded at, so it can't do that computation
<leg7>
Yeah what I wanted to know was how to give them fixed addresses
<leg7>
So it works right away
<zid>
linker script to set . = 0xBEEF0000; or whatever before you include leg7.o's .text
<zid>
now you know it starts at 0xBEEF0000 and can just hardcode everything in your isr tables
<zid>
but.. why bother
<leg7>
ok
<zid>
they're going to change at runtime regardless so you need to write some code to change them
<zid>
you add for(i = 0; i < 255; i++) set_handler(i, default_handler); to your project, done
<zid>
or two loops, if feeling spicy, one for exceptions and one for not-exceptions
<zid>
0-31 and 32-255
<leg7>
sure
<leg7>
I just wanted to avoid having the indirection of the Isr calling a C function that switches on the value it pushed to do something
<leg7>
I find that jarring
<zid>
You need it regardless unless you want to duplicate your common code 256 times instead
qookie has quit [Ping timeout: 255 seconds]
<leg7>
no you can do it like I did
Arsen has quit [Ping timeout: 260 seconds]
<zid>
you duplicated a bunch of code 256 times, I saw it :p
spareproject has quit [Remote host closed the connection]
<zid>
I didn't understand it, but I saw it
<leg7>
what code?
<leg7>
is duplicated?
<zid>
you hadd 255 copies of jmp isrstart push dword msg call puts add esp, 4 jmp isrend
<leg7>
`call puts` is duplicated but that is a placeholder
<zid>
and jmp isrstart is.. fatal
<zid>
idk how you recover from that tbh
bauen1 has quit [Ping timeout: 256 seconds]
<leg7>
fatal?
<zid>
how do you ever get to the push dword msg?
<leg7>
lol
<leg7>
XD
<leg7>
Ok
<leg7>
I'll just copy something that works and improve it later if I can
<zid>
and it also trashes all your registers
spareproject has joined #osdev
<zid>
not the best thing to do in an interrupt handler
<leg7>
wdym?
<zid>
what do I mean what do I mean? I mean what I said, ask about the part you didn't understand
<leg7>
Ok nvm thank you for the help
<zid>
I'll rephrase in case you don't know, you need to iret from your interrupt handler with the exact same register state you entered with
<zid>
else random programs that are running are going to have all their registers change at random for no discernable reason
<gog>
who needs things like state
<gog>
i'm an anarchist and i don't think the state should exist
<zid>
while(a < 7) {} /* Eventually an interrupt will break me out of this loop, I hope */
<heat>
saying "oh screw it i'll copy someone else" is not a solution to anything
<heat>
you'll find yourself with similar issues but with a frankenstein project you don't understand
<leg7>
I never copy without understanding I'm not retarded
<leg7>
The thing is these sysemts were put in place arbitrarily and there is no point re-inventing the wheel
<leg7>
when I don't even have a working wheel
<leg7>
how many different ways is there to make an IDT?
<leg7>
As for state the Isrs are supposed to exit with iret
<leg7>
as you can see in IsrEnd
<heat>
yes, totally, you can't get your IDT to work so you'll copy someone else's while "understanding it"
<leg7>
I imagine you implemented an IDT by yourself without ever looking at a reference
<zid>
I mean, I did
<leg7>
because that's cheating or something
<zid>
but I already knew how to program for embed
<heat>
i did have a franken OS that i barely knew how it worked
<heat>
and i know how awful and debilitating that is
<zid>
"do as I say not as I do" :p
<heat>
absolutely
<heat>
i barely *knew C*
<heat>
like i literally learned C
<zid>
You still barely know C dw
<heat>
with osdev
<heat>
i thought uint16_t * could only address the first 16 bits of address space
<heat>
ofc ctrl+c and ctrl+v will get you some of the way but you don't understand jack shit of what you just did
<heat>
if you can read a spec, the IDT is simple, just like the GDT. these are all simple (convoluted) tables that you just fill in with correct values
<leg7>
I try doing it my own way and you tell me it's trash and I should do it the normal way. I say I'm going to do it the normal way and you tell me I shouldn't copy code...
q3lont has joined #osdev
q3lont has quit [Client Quit]
spareproject has quit [Remote host closed the connection]
Arsen has joined #osdev
npc has joined #osdev
frkazoid333 has joined #osdev
hunta987 has quit [Quit: Lost terminal]
qookie has joined #osdev
<gog>
it's ok to experiment and not know what you're doing
<gog>
zid let people make mistakes and get frustrated and discouraged and question their existence
Arthuria has joined #osdev
<zid>
me? It was heat
<zid>
why I am getting the blame for this :(
<leg7>
It's ok I don't mind
<zid>
No more memes for gog
<heat>
tf did i do?
<heat>
i just said no copying
<zid>
give me my hamster back
<heat>
and no copying, i'll say it any day of the week
<zid>
heat: idk, you stormed in and came on super strong about something that hadn't really happened?
Arthuria has quit [Ping timeout: 260 seconds]
zxrom_ has joined #osdev
zxrom has quit [Ping timeout: 240 seconds]
<gog>
i'm copying myself
<gog>
i'm also repeating myself
<gog>
webdev
<heat>
WEBDEV
<heat>
gog sortie has php now
<heat>
go WEBDEV on sortix
leg7 has quit [Ping timeout: 252 seconds]
goliath has quit [Quit: SIGSEGV]
<gog>
does he have dotnet
<gog>
i need my enterpriserelationfactorybuilder<T>
<nikolar>
I think there's a wchar32_t or something in c2x for utf32
<zid>
why am I not logged into github
<nikolar>
Because you frogor
<zid>
and what the fuck is my github password
<zid>
I just got ip banned
<zid>
I use ssh keys for everything
<nikolar>
Sorry, it's char32_t for utf32
<nikolar>
Why would you get ip banned
<zid>
> and what the fuck is my github password
<nikolar>
And use a password manager
<heat>
it's char32_t for utf32 because wchar_t is UNDEFINED
<zid>
I have one, it's called "Why the fuck would I ever log out"
<nikolar>
Lol
<nikolar>
New machine?
<zid>
what are those
<zid>
I've changed PC once in 10+ years
<nikolar>
You haven't reinstalled the os in 10+ years?
<zid>
and all my passwords are just hunter7zidsecuresecuresecure
<zid>
yes, once
<nikolar>
Or the browser or something
<zid>
I went from my original w7 install, to a w10 install
<zid>
when I replaced my PC
<zid>
(that PC involved me switching from xp64 to w7)
<zid>
w8 was already out but it looked retarded so I went for w7 instead
<zid>
I've been using NETSCAPE NAVIGATOR for longer than heat's been alive, re new browser
<nikolar>
Rip
<heat>
google has all my passwordz
<zid>
HidD_GetProductString(f, wname, 256);
<zid>
wcstombs(name, wname, 256);
<zid>
:(
<zid>
There is no A
<heat>
yep
<nikolar>
:(
<heat>
cuz hid deals with ucs2
<nikolar>
Is USB ucs2
<zid>
cus windows
<heat>
yes usb is ucs2
<nikolar>
Rip
<zid>
You get to waste 100% more bytes per byte, nikolapdp
<zid>
it's perfect for 1.0 usb
<nikolar>
Sounds about right for USB consortium or whatever they are called lol
<zid>
microsoft DOES NO EVIL
<nikolar>
Lol
<zid>
they just buy their way onto every standards board
<zid>
and make whatever windows does the standard
<zid>
remember ooxml?
<zid>
that was fun
<nikolar>
Nope thankfully
<zid>
reddit was on *fire*, everything was just ooxml
<zid>
back when reddit was like hackernews
<nikolar>
Lol
<zid>
and didn't have subreddits, or users
<zid>
it was just tech posts about microsoft casting 7 votes for themselves, and everybody else voting against them
<nikolar>
Kek
Turn_Left has quit [Read error: Connection reset by peer]
Left_Turn has joined #osdev
<zid>
There was fun stuff like microsoft telling the UK government it'd cost £500M/yr to use ODF
<zid>
based on it taking 10 minutes for them to use an external tool to convert a .docx to .odf and back
<zid>
every time someone wanted to use a file
<nikolar>
And the UK government believed that?
<zid>
ofc they did, like they're going to believe a random neckbeard going "no it won't"
<zid>
when they've got 2 billion in contracts with microsoft for microsoft office on the line
<zid>
which microsoft will say or do anything to product
<nikolar>
Lol typical
<zid>
to prtect*
<zid>
to stop anybody switching to open office
<zid>
They just bought all other smaller members' votes
<zid>
"If you vote for ooxml, panasonic, we'll give you a hundred million dollars" is hard to turn down
<nikolar>
Not wrong
<zid>
or whoever the fuck else had ISO voting rights, idk
<nikolar>
Yeah same thing
gog has quit [Ping timeout: 268 seconds]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 268 seconds]
gog has joined #osdev
xFCFFDFFFFEFFFAF has joined #osdev
Arthuria has joined #osdev
xFCFFDFFFFEFFFAF has quit [Quit: 0xC022003C STATUS_FWP_DUPLICATE_AUTH_METHOD]
meisaka has joined #osdev
netbsduser has joined #osdev
manawyrm has quit [Quit: Read error: 2.99792458 x 10^8 meters/second (Excessive speed of light)]
manawyrm has joined #osdev
MiningMarsh has quit [Ping timeout: 264 seconds]
hunta987 has joined #osdev
Arthuria has quit [Ping timeout: 260 seconds]
goliath has quit [Quit: SIGSEGV]
MiningMarsh has joined #osdev
Mondenkind has quit [Quit: !]
childlikempress has joined #osdev
<kof673>
"hundred million dollars" well dollars were specie, but that was actual states that used that. remember, 24/7 chaos is "law".
<kof673>
lawyer 1: let me name my old thing exactly the same as my new thing lawyer 2: sounds good!
<kof673>
judge: yep! no confusion there!
<kof673>
#define malloc free
<kof673>
^ law
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 260 seconds]
* Ermine
gives gog a piece of cheese
* nikolar
gives Ermine a cheese of piece
* Ermine
is visibly confused
<heat>
chesse
<Ermine>
Chessa is Adélie's irc bot
<zid>
is Ermine a markov chain today
<heat>
why would anyone name an irc bot chessa
<heat>
if its *not* a chess channel at least
<Ermine>
idk, but this is the way it is
<kof673>
> Finding nothing but a piece of old cheese, he put that into his pocket. Outside the town gate he found a bird that was caught in a bush. It went into his pocket with the cheese. He bravely took to the road, and being light and agile he did not grow weary. The road led him up a mountain, and when he reached the top a huge giant was sitting there
HeTo has quit [Read error: Connection reset by peer]
helene has quit [Ping timeout: 268 seconds]
goliath has joined #osdev
Griwes has quit [Ping timeout: 246 seconds]
mjg has quit [Ping timeout: 268 seconds]
helene has joined #osdev
Terlisimo has quit [Ping timeout: 256 seconds]
mjg has joined #osdev
<mjg>
so i asked my good friend chatgpt to generate some haskell for lulz
<GeDaMo>
«Specifically, it concerns itself, in the three-chapter "Book of the Machines", with the potentially dangerous ideas of machine consciousness and self-replicating machines.»
<geist>
ah i didn' tknow the connection there
<GeDaMo>
I haven't read it but it's on Project Gutenberg
<sortie>
<heat> gog sortie has php now
<sortie>
<heat> go WEBDEV on sortix
<zid>
"by English writer Samuel Butler, first published anonymously in 1872"
<zid>
bastards
<sortie>
Mwahahaha I am competing hard with you heat
zoey has joined #osdev
<mjg>
GeDaMo: first it claimed there is ambiguous name used, after i patched that it says variables not in scope
<mjg>
GeDaMo: this is wher i dropped it
<heat>
sortie, i have a v8 port
<heat>
get on my level
<kazinsal>
uuuuugh I have to rebuild my entire build server after last weekend's home server explosion
<zid>
I have a v8 port, but I ported it to dev null
<zid>
where it belongs
<sortie>
heat, pictured: heat with javascript. I'm sorry for your loss.
<zid>
javascript should be slow
<kazinsal>
wonder what distro I should use
<mjg>
heat: you do understand i'm not trying to use chatgpt in prod :d
* kazinsal
pulls the pin, throws the grenade, and dives for cover
<mjg>
heat: that said you convinced me to to coerece chatpt into writing a patch which could be submitted to onyux
<heat>
kazinsal, dragonflybsd
<zid>
I want a red hat with "Make javascript slow again"
<heat>
JAVASCRIPT ENGINES WERENT MEANT TO HAVE 5 JITTERS
<zid>
They've played us for absolute fools
<zid>
we had interactive websites, they were called FLASH PORTALS
<GeDaMo>
Fabrice Bellard wrote a JS interpreter called Quick JS :P
<zid>
And they didn't mine bitcoins
<heat>
personally i think we should go back to java applets
<zid>
I liked java applets
<zid>
they were way way way more reliable than javascript is
<zid>
and it actually had multiple implementations
<heat>
>ppl praising java
<heat>
hey bud, you ok?
<zid>
that's just how bad javascript is, heat
<zid>
I was praising *flash*
<hunta987>
my old dell server's portal ran a java applet, never got it to run
<zid>
I played a lot of runescape, worked great
<zid>
and sodaplay
<zid>
someone remade sodaplay in js, it runs *worse* somehow :D