« first day (856 days earlier)      last day (4314 days later) » 

16:00
If I ever have to pronounce your name, I think I'm just gonna go with "Marty".
Or "Martin".
@DeadMG - scoping issues with constexpr constructors for const members, and the rules and restrictions therein. Then there were std::is_trivially_copyable<> issues... it's good that all this <type_traits> stuff exists, but I mean, fuck!
@EtiennedeMartel That's fine. Some of my friends do that too.
@EtiennedeMartel Thanks.
@EtiennedeMartel What's wrong with "Robot"?
or "AAAAH, HE'S GOT AN AXE"?
"there were std::is_trivially_copyable<> issues"? What issues?
16:01
@DeadMG It's not who he is.
I mean, the only reason I don't use your real name here is because I know it'll piss you off immensely.
@R.MartinhoFernandes Pass by ellipsis?
Ell
Ell
`Misc.h:5:19: error: expected unqualified-id before numeric constant`
`const long double M_PI = 3.1415926535897932384626433;`
I'm guessing I haven't set a compiler flag or something
@LucDanton Also known as "bypass all type-safety".
@LucDanton I... don't get it.
16:02
oh god dammit
@R.MartinhoFernandes it's like 'Martin' but with an extra bit on the end, a sort of hybrid between 'yo' and 'no'? (expecting two answers)
@Ell Does it work if you chose a different name than M_PI? That might be a macro.
@EtiennedeMartel I have no particular desire to be named the way my parents chose (aside from my perception of the necessity of keeping that secret).
@R.MartinhoFernandes sigh...
Ell
Ell
16:03
@FredOverflow yes :D
@Ell You're welcome.
@FredOverflow Is a macro on many implementations.
@R.MartinhoFernandes so..Martinya?
part of C99 I think
I actually made nice terrain by randoming + convolution filter
user484068
16:04
@BrettHale Yeah, C++11 gets more overwhelming the more you look into it! Still hoping for a nice book from Scott Meyers. Not sure if I want to go for Bjarne's this time (probably will though!)
Ell
Ell
thank you :3
Perlin noises are overrated
@R.MartinhoFernandes 'Martinyar'
@BartekBanachewicz Berlin noise is so much more refined
I found an awesome answer to the overloading thing stackoverflow.com/questions/1552354/…
@R.MartinhoFernandes It's a dumb corner case that has not so much to do with the trait though, but trivial copiability itself.
16:04
@melak47 Well, no. The /a/ sounds are just for the example (you can't show a consonant without some vowel sounds). In my name the vowel sound is /u/.
@Ell Also, aren't you going a little overboard with 26 digits? Pretty sure long double isn't that accurate.
@R.MartinhoFernandes Martinyu?
@R.MartinhoFernandes Martinyou?
Ell
Ell
@FredOverflow it's bartek's code. but it can't do any harm, right? :)
I'm happy with the results of the efforts, don't get me wrong. The code that a modern C++11 compiler can generate from abstractions like containers, etc., is amazing. What I really want to see right now though, is a terrible, terrible bloodbath on TV. Or kittens. Either would lift my mood.
16:05
> Martin, you back from the future?
@Ell right
@BrettHale A terrible bloodbath on kittens?
@DeadMG Not quite, but I guess that's as good as you can get with English phonology.
user484068
@BrettHale LOL! I'm waiting for constexpr support from Microsoft. Keen to see what that stuff can really do!
@R.MartinhoFernandes I guess we will just have to make you say it over and over on mumble, and no, you can not just record it
16:07
@FredOverflow - not both at the same time, what's wrong with you? Regex analysis shows you display all the traits of a psychopath.
@BrettHale Kittens playing in a bloodbath?
@R.MartinhoFernandes fʌkɪɲ
@TonyTheLion sorry. should I talk more?
user484068
@BrettHale Scott Meyers taking an axe to the rvalue reference rules? Ah, that's better!
I wanted to ask one question about something being a declaration and not. If you take a look at this : stackoverflow.com/questions/1552354/…. You will see that the person says that friend is not a declaration.
Looking at a declaration, and its definition, here : msdn.microsoft.com/en-us/library/0kw7hsf3(v=vs.100).aspx. It says that anything that introduces a variable. What I want to know is why is the idea that a friend is not a declaration important? What is the consequence?
16:09
a friend declaration is a declaration.
@BenHanson - what do you mean?
I think.
¬_¬ plonk list and pen in hand... do I write down that name or not...
@R.MartinhoFernandes It was a joke!
@thecoshman Naw.
16:09
@LucDanton I think that's supposed to be ŋ, a velar nasal.
@DeadMG : "You didn't say which compiler you were using, but I suspect you're using a fairly recent one that implements the "friend is not a declaration" rule."
Ross Smith
In the first hyperlink
@GamesBrainiac Changed in C++11, I believe.
user484068
@BrettHale i.e. I'm hoping he can simplify things (if you read enough blogs etc. on it, it get cloudy fast from my point of view)
@thecoshman he's been here all day. pay attention
> 11.3 Friends §1: A class specifies its friends, if any, by way of friend declarations.
16:10
@DeadMG : But either way, what is the significance?
@EtiennedeMartel For Minuit he appears to be credited for some episodes, but not the whole thing.
@GamesBrainiac It changes name lookup rules if you refer to that name.
@LucDanton He directs all the episodes.
@sehe I know... and it's getting tiring
@GamesBrainiac I practically never needed friends in C++, so I wouldn't care too much.
16:12
@sehe I was merely being silly :)
> following code doesn't work any idea thanks in advance
class X { public: friend void f(); }; int main() { f(); /* legal? */ }
It's only declared inside X. Right?
@EtiennedeMartel Time not to trust the English language Wikipedia on that subject matter then.
@DeadMG Lookup cannot work IIRC. Or maybe it's just for class templates? Who knows.
@LucDanton I sure don't.
16:13
Hmm, I think I'll leave now.
been a while since I looked at those rules.
Still, declare as void f(X); and call as f(X {}) and it works.
@FredOverflow : Thanks Fred. I appreciate it
Xeo
Xeo
@DeadMG "No function f found."
Xeo
Xeo
16:13
If you don't declare f in X's enclosing scope, it can only be found by ADL.
@LucDanton ADL?
@DeadMG what are you declaring as friends with X::f() though
@FredOverflow The very same.
@BenHanson - I find the concept of rvalues, move semantics, etc., to be reasonable. In my own experience, modern compilers are so good at eliding operations - it's rare I come across a big payoff. Maybe others have different experiences.
Ell
Ell
are boost::shared_ptr and std::shared_ptr identical in functionality?
16:14
@thecoshman ok. then remember this - it had 18 stars:
@Ell Give or take.
Feb 11 at 14:17, by Cat Plus Plus
Old here? Do us a favour, and don't announce your plonks. Seriously.
@thecoshman f is not declared in the scope of X, enclosing namespace instead.
@sehe ok. then remember this: 'by Cat Plus Plus'
@BrettHale The best part about move semantics is being able to watch Scott Meyers talk about it with enthusiasm.
16:14
@BrettHale It's only half about optimization. The other half is about move-only types like unique_ptr, which is fucking awesome, and perfect fowarding, which is quite convenient.
2
@thecoshman The 18 stars weren't by the @Cat, fyi
@LucDanton oh right right, that is not declaring a function X::f() is it.simple that ::f() is a freidn of x
@BartekBanachewicz - looks like the Al Quaeda expansion pack for minecraft. You gonna get droned!
What are professionals but experienced amateurs
16:15
wut?
@BrettHale it's not minecraft, silly, it's Minicraft
@GamesBrainiac false.
sorry wrong chat room
@GamesBrainiac you can fix that here :)
16:16
@BartekBanachewicz Get the shadows going!!
@DeadMG - now that is something. Shame about the syntactic hoops we have to jump through.
what syntactic hoops
@Cicada you are aware that it doesn't even have lighting right now?
@EtiennedeMartel Oh hey, I've watched like 30 minutes of Xanadu already, so I've seen some of his work I guess!
@sehe oooh, you where mistaking me for someone who gives a crap
16:16
@thecoshman for every spelling mistake you make a kitten dies
@BartekBanachewicz There must be some ambient light otherwise the scene would be black
user484068
@BrettHale Not used them yet. Followed discussions on usenet and got horribly bogged down. I was happy to see Scott pointing out that it's still faster to pass by reference! Anyway, interested to try them out sometime if it leads to nicer looking code.
@TonyTheLion just think how many more you fail to notice :O
@Cicada ambient doesn't qualify as lighting for me
@TonyTheLion Of this, I have doubt.
16:17
@TonyTheLion at least now we can burn them for fuel
@BartekBanachewicz Does for meeeee
@BenHanson Unfortunately, Scott doesn't have the brightest ideas when it comes to rvalue refs.
@Cicada Anyway, I want to do deferred rendering for it
@DeadMG wait. did we even need perfect forwarding without move semantics? Or did you kinda say the same twice?
@Cicada you is teh simple child iz not u
16:17
@DeadMG What do you mean?
@BartekBanachewicz Oh that's heavy weaponry
user484068
@DeadMG How so?
Shame I can't announce it, really
You're so funny.
@BenHanson Try what out?
@FredOverflow He had some articles about it in his EffC++ preview, and they were bad advice.
16:18
@Cicada I've done it once already, wasn't that terrible, actually
things like "Pass smart pointers (esp. shared_ptr) by const reference"
@thecoshman whuteva nub jist lef me alon scrub
@DeadMG For example?
user484068
@FredOverflow rvalue references
and I was like "Dude, you're supposed to be a C++ guru".
16:18
I think I can let sehe assume how little fucks are given
@BartekBanachewicz I've never tried
@BenHanson They sure don't make code nicer lol
@DeadMG you're doubting me? How dare you.
@Cicada phft, #care
@DeadMG What does that have to do with rvalue references?
16:18
@Cicada Also, do you know that original minecraft has only 16 levels of lighting on each block, stored on server?
@thecoshman #hasthags are for #fags
user484068
@FredOverflow :-D
Xeo
Xeo
@FredOverflow: Any interesting videos about functional programming (esp. in Haskell) on hand?
#hashfags
@FredOverflow Because it's them which makes the advice bad.
16:19
@BartekBanachewicz meh. no I didn't
@Cicada No lighting doesn't necessarily mean black.
@Cicada fucks are for people who have them to give
it's C++03 advice but no longer valid in the presence of rvalue refs.
@Xeo I saw a terrible video about Monads in JavaScript yesterday. Don't watch that!
@EtiennedeMartel That's fucking racist man
Xeo
Xeo
@FredOverflow lol
@Cicada it's a highly polished game don't you know
If your pixel shader only returns the sampler value at your tex coords, then you get that.
@Xeo Do they have to be recent?
Lighting makes stuff darker.
Xeo
Xeo
16:20
@DeadMG IIRC, robot said the actual contents of that item were ok.
@FredOverflow Not necessarily.
@BartekBanachewicz it still does really, just it also has smooth shading now over the blocks. Wonder how the new lighting engine will change all that
@EtiennedeMartel Well. At least back in the days of FFP that was called "ambient light" and considered as lighting even though not technically a source of light.
@Cicada I'm not even talking about ambient.
@FredOverflow the crockford one?
@EtiennedeMartel Then I lost you (or you lost me)
user484068
16:21
@DeadMG Actually I can see where he's coming from. The question there (I believe) is whether to pass a smart pointer at all, or dereference and pass by ref (assuming this is all in a single thread). I think he's suggesting const ref on the smart pointer, to avoid accessing plain old pointers to be more "Modern".
@thecoshman I don't give a damn. Mine will be better anyway
Anyone else looked at Herb Sutter's talk on memory models, locks, etc? herbsutter.com/2013/02/11/…
@Cicada If you don't do lighting, then you only get your diffuse component (i.e. texture).
@BenHanson Well, he's wrong. It's bad advice.
(That's a rather simplistic explanation)
16:21
@BrettHale Yep. That's some serious shit in there.
@EtiennedeMartel you get albedo, to be precise
@EtiennedeMartel I guess that's true on the modern pipeline (about which I do not know much)
@DeadMG Well. Even the Robot saw where he was coming from, did you catch that feedback?
user484068
@DeadMG I'd need a use case to comment further.
16:22
@Cicada What do you think about simple ambient light occlusion? The more neighbours, the darker the cube is? Just for now.
Xeo
Xeo
@FredOverflow You like Scala, huh?
@BartekBanachewicz Yeah that'd be great too!
@Cicada Even on an old one. If you did a glDisable(GL_LIGHTING) back in the old pre-3.0 OpenGL days, you did not get a completely black scene.
@Xeo What gave it away? :)
16:23
@sehe I participated in that feedback.
Why does everyone love Haskell so much?
look, I'm not saying he's not coming from somewhere, I'm just saying that he's wrong.
@EtiennedeMartel you disable the lighting, which renders colors as-is
@GamesBrainiac No idea.
@BartekBanachewicz Yep.
16:23
@DeadMG I meant the feedback on R's query - the other direction
@EtiennedeMartel If on DX you disabled lighting you had the color you cleared your screen with
@DeadMG : I think the creator of Perl called it the genius' language
As I said, lighting makes stuff darker.
@sehe Pretty sure I participated in all the feedback.l
@DeadMG I agree, somewhat.
16:24
@GamesBrainiac What's not to love?
@BartekBanachewicz are you trying to simulate or steal?
any hoops, home time
@GamesBrainiac What, "Some other dude who might have once done something kinda OK said it was great, therefore it's great?".
seriously.
@thecoshman I will just do a better minecraft
When you Google "kittens" you get the occasional boobs picture, WTF?!
@FredOverflow : No, its just that I really know little about it other than its a functional programming language
16:25
@Xeo Most YouTube videos on Haskell either suck or have nothing to do with the programming language Haskell :) so here is a classic for you.
Ell
Ell
is EXCEPTION a standard macro? orr a vs macro? or just a random macro?
@Ell Surely not Standard.
@GamesBrainiac It has a static type system that goes way beyond what we have in mainstream languages.
@DeadMG : Well, if you created a popular programming language, which is widely used, you're not just 'some guy'...
well, atleast not to me
epic fail
16:25
Though you have to appreciate that many people will (a) want to ban raw pointers from interfaces (b) have to be specific about their library guidelines. And if the library guide lines say: boost::shared_ptr ok, std::shared_ptr forbidden, then they would still want to pass boost::shared_ptr<T> const& even if it serves no concrete purpose
@TonyTheLion What happens if you replace "kitten" by "pussy"?
it's science, any opinion is worth exactly the evidence behind it.
if all you've got is "X said it was good", that's not any evidence at all.
you need "X said it was good because ..." to make an argument.
@FredOverflow then you get vaginas
man, it must suck to be the woman who is first result for google image search for "pussy" or something.
16:27
@DeadMG : He did say that it had many advanced mathematical functions
I knew the whole achievements thing was getting a bit ridiculous, but I can apparently earn them for using my goddammed WEATHER CHANNEL app to look at my forcast
@TonyTheLion you can replace kittens by anything, really
But, as to the specifics, I really know little about it
@sehe lol
@GamesBrainiac You can always start learning a new language, nobody is stopping you.
16:27
@EtiennedeMartel memes
@GamesBrainiac That would be more relevant if my programs looked more like a theoretical proof.
@DeadMG It would be funny if James G. was the first hit :)
@EtiennedeMartel I did not expect that.
@FredOverflow : I have my hands full with C++. Its killing me
Java was so much better
@GamesBrainiac C++ will never stop killing you.
16:28
@Cicada - if you have a good enough understanding of the matrix transforms and homogeneous coordinates, move to core profile. I find writing a simple fragment shader to blend 2 textures so much easier that all that fixed pipeline glTexEnv shit. I just couldn't keep that rubbish straight in my head. Granted, my head may not be in mint condition, but still, you might as well learn shaders now.
@GamesBrainiac Why did you leave Java for C++ if Java was so much better?
@FredOverflow : I've realised that
@FredOverflow : Professor forces us to use C++
No choice in the matter
By the way, we have a Java love room in case you didn't know.
@FredOverflow : LOL
So first you learned Java, and then C++? Or did you do Java in your spare time?
Maybe it's not C++ that sucks but your professor who is trying to teach it? Have you learned about arrays and pointers early? If that's the case, he probably sucks at teaching C++.
16:30
No, I learnt Python first. Then I had to learn Java for an OO course. Now stuck with C++ for Data Structures and Algorithms
@BrettHale I know :) Shaders are so much better. But I was 15 when I learned DX. I had a hard time understanding homogeneous coords & quaternions, so at that time it made sense (for me at least) to keep stuff simple. I wouldn't go back to it, though.
@FredOverflow : How did you know? He taught us about arrays and pointers as soon as he could
@GamesBrainiac I don't think C++ is a good language for learning about data structures and algorithms.
@FredOverflow : Same here. Java would be preferable
s/ for learning about data structures and algorithms//
16:31
Or python
@GamesBrainiac Because that's what 90% of teachers do because that's how C++ was taught in the 80s and they have never moved on.
@Cicada Go back to your Prolog.
@FredOverflow : How would you go about teaching it?
@Cicada this ^
I'll have you know that out of the 35h of classes I have per week, none of them involves writing code.
16:32
curious
@GamesBrainiac Actually, I do teach freshmen C++ for one semester, and I try not to mention arrays and pointers at all. They are simply too low-level and language specific for an introductory course to programming.
@BartekBanachewicz Looks nice! Is it per-cube or per-vertex?
It looks per-cube
@Cicada Sounds like standard university coursework.
Make that per-vertex <3
16:33
that would be more difficult, I think
insert dick joke
oh okay. "<3" made it
@Cicada sounds like my job a month ago
@GamesBrainiac I would prefer Scala :)
user484068
@FredOverflow "in the 80s" Really? Wow, that is really hardcore! Is that AT&T's internal program? :-)
Ell
Ell
16:34
@BartekBanachewicz kind of random, but where is EXCEPTION defined?
@Cicada <3 c===8
Ell
Ell
can't see it in any of the headers or dependencies
@Ell that's some old crap that shouldn't be there
where'd'ya find it?
@FredOverflow : We learnt C first. I found it a great language. We were taught pointers, arrays for points, and how to get your head around 5 for loops all within each other. I found the course crap.
@EtiennedeMartel Tu fais ce que tu veux de ta bouche :)
16:34
I mean, C is a great neat language. But the course execution was bad.
@Cicada Évidemment. Om nom nom.
@BenHanson People simply didn't know any better. C++ was C with classes back then. There was no standard library and no templates, so not teaching pointers would have been unimaginable.
So, in the mean time, I just did a course from edX
@GamesBrainiac Learning C before C++ is a bad idea.
Ell
Ell
@BartekBanachewicz ResManager.h
user484068
16:35
@FredOverflow I was kidding. I was there!
MITx : Introduction to Computer Science
That was a good course, taught me useful things
@Cicada - at 15? I had a 8086, with awesome CGA graphics! 320x200 Mandelbrot set render half a day! It just shows that old things suck. And people who reminisce about old things suck. Seriously though, I first used OpenGL 1.1 at an production company in 1997. I'd never seen hardware acceleration like it, and this was old fixed pipeline stuff!
@EtiennedeMartel Learning C in order to learn C++ after that is a bad idea :)
user484068
@FredOverflow I think you meant 90s though
@BrettHale ur old faget
16:35
@Ell lol wat. How does it compile on my machine o.O sorry. change it to std::exception
@BenHanson Sure, 80s, 90s, not much difference.
@FredOverflow Yeah, but the main reason people learn C before C++ is because they think it's required.
Ell
Ell
@BartekBanachewicz I hope I'm on the right branch
user484068
@FredOverflow LOL!
@EtiennedeMartel : Why? @FredOverflow : I see
Ell
Ell
16:36
oh shoot. I forgot to fetch too o.O
@BrettHale Yeah well for me FFP was the modern DX9 :)
@Ell yes, I still have this shit
Ell
Ell
I'll compile this version then fetch :D
@BrettHale There was this program for the C64 that split the Mandelbrot computation between CPU and floppy disk processor. It was absolutely amazing.
@GamesBrainiac Because you end up learning things you'll have to unlearn later on when you get to C++.
16:36
@BenHanson In terms of teaching C++, that is :)
Ell
Ell
@BartekBanachewicz shouldn't it be std::runtime_error?
You pick up bad habits.
@Ell whatevah
Ell
Ell
also there is LOG I haven't looked for a definition for that though
@FredOverflow - I remember even the warez screens by the crackers blowing me away on some of those C64 games!
16:37
@Cicada keeeey, you know what, I have to refactor this thing a bit. Next screen I post will be lighted properly, I hope
@BrettHale Sometimes the intros were better than the actual games :)
@BartekBanachewicz Alright!
@BartekBanachewicz Refactorings do not affect observable behavior. If your lighting turns out to be correct, you did not refactor, you fixed a bug.
@EtiennedeMartel : I see
I think I could learn more from this chatroom than my teacher, even if I get called idiot every now and then
@GamesBrainiac Most of us have come to terms with being idiots by now.
4
16:40
@FredOverflow - It's what really sucked me in to this whole discipline in many ways. People pushing stuff to the limit. Not that I would want to go back to mode 0x13 bare metal - but still...
@FredOverflow Refactoring is sometimes required to implement a new feature (in this case "new feature" being "proper lighting")
@FredOverflow : Thanks fred. I always appreciate your help. Thanks for helping me so much man! :D
@BrettHale Where was the VGA buffer, at 0xa0000 or something? :)
@FredOverflow : BTW, thanks for this answer stackoverflow.com/questions/4172722/what-is-the-rule-of-three/…
You explained the rule of 3 perfectly
@GamesBrainiac Ah, my most popular answer on SO. You're welcome, and thanks :)
16:42
@BrettHale People don't push stuff too much to the limits nowadays, though. I mean, they certainly could do better
@FredOverflow : Where do you teach?
user484068
@Cicada Too true
@FredOverflow Depends on mode, but for graphical modes yes, 0xa0000.
@FredOverflow : Must be an awesome uni if they have you in there
:P
16:44
@FredOverflow Depends on the mode. The text-mode buffer it's 0xb800. For graphics it's at 0xA000.
He probably trolls his students all the time.
@JerryCoffin You nerd. :)
user484068
@FredOverflow Too late, I know now!
You know nothing for certain, I may have been lying :)
@JerryCoffin You dropped a zero in both addresses.
user484068
16:45
@FredOverflow - :-D
What a sweet coincidence that 320x200 fits in 64K :)
@Griwes I gave the segment values you normally load into ES. The offsets obviously vary.
@JerryCoffin Bleh, segments. I had an impression that we were talking pointers.
Also, that makes sense only in real mode.
did you prefer this:
mov ax, 0a000h
mov es, ax

or this?
push 0a000h
pop es
Ell
Ell
does auto infer constness? when it's needed?
16:46
Which is kinda... you know.
@FredOverflow - exactly. The 16bit address space (with DS set to 0xa000?) covered 320x200 with 256 color palette. Games like Doom, Quake, etc., used it. You needed a Pentium for Quake, because Carmack figured out how to hide a floating-point divide latency under other instructions... horrible black magic!
@Ell top-level const is dropped.
@FredOverflow The first unless you really need to preserve AX.
@FredOverflow, mov <seg>, ax is more obvious.
@JerryCoffin I think the second used 1 byte less code :)
16:47
because 1 byte is important
@TonyTheLion At the time/in real mode, it sometimes was.
@TonyTheLion Hey, we only had 640K back then! I didn't know how to address EMS and XMS yet.
Unless we are talking 80(1,2)86 only here, 1 byte is rarely important.
It is if you participate in size coding competitions.
> My code is smaller than yours!
@FredOverflow And in bootsectors.
16:49
never dabbled that low
@BrettHale Oh, I remember the FPU trick!
But everyone's using mov <seg>, ax there anyway :D
Ell
Ell
@BartekBanachewicz you still have SOIL stuff in ImageData.cpp but you changed to FreeImage didn't you? I'm definately on the right branch. but if you fixed in a recent commit just say if I need to pull and start over
@Cicada - yes, but we're spoilt for storage and speed now. There's little incentive.
Also, xor ax, ax <3
@Griwes In protected mode it's going to be at the address the page table says it is.
16:49
@Griwes Maybe because the other variant can cause a stack overflow? lol
@Ell imageData is unused atm, you can just get rid of it
@FredOverflow m2m es, 0xa000
@JerryCoffin Protected mode doesn't imply paging.
Ell
Ell
Right kk
@BrettHale Nobody writes their shaders in assembly anymore, do they?
16:50
@JerryCoffin Also, I was obviously talking physical addresses.
@Cicada We aren't talking about shaders :)
Folks why can I not do this? typedef superclass::someArray superArray;?
@FredOverflow We were, at the very beginning of the discussion
@Griwes Unless you're completely insane, yes it does.
16:50
@GamesBrainiac Is someArray a type or a data member?
@FredOverflow : Its a data member
@JerryCoffin Protected mode doesn't require paging. Frankly, in my bootloader, I am not setting up pmode paging, only long mode.
@GamesBrainiac You cannot typedef data members :) typedef is for types.
typedef decltype(superclass::someArray) superArray; or something
16:51
so is there a way to simple access it without having to type that in all the time?
@JerryCoffin You call me insane? :D
@GamesBrainiac If the array is inherited, can't you just write someArray in the subclass, without any decorations?
its protected
I tried to, but I cant
Xeo
Xeo
Narf, I think I'll head home and buy some stuff on the way. See ya later.
@GamesBrainiac You can definitely access protected members in derived classes.
16:52
@Griwes Make up your mind. First you say it's about pointers, then about physical addresses, next you're on to bootloaders. Are you honestly telling you me you use graphics in a boot loader?
Compiler gives me errors :(
Must be doing something wrong
@GamesBrainiac We need to see some code.
@FredOverflow - Polygon / triangle software rasterizers were works of art! I thing the software rasterizer in Quake would simply use linear DDA, (couldn't divide by W every fragment in those days!), every span of 8 pixels or something? That aside, the PVS and lightmap preprocessing - what a bunch of geniuses in a room!
@JerryCoffin I am, first setting LFB mode back before entering protected mode :P
That's usually how you do it.
16:53
Its like just trying to get the thing to compile is a nightmare. Nope, I am going to get to this myself, when I fail miserably, (again) I'll come back! :P
@GamesBrainiac What those errors are is an important point. You may not understand what they mean, but it's always good to report them -- someone might make some sense of them.
@BrettHale I implemented my own software rasterizer in x86 assembly, but without perspective correction. It looked horrible, but was fun to program :) And yes, I think 8 pixels was the norm.
@JerryCoffin Also, you were the first one who mentioned paging; in sane protected mode environment, with flat segments, before enabling paging (which you mentioned first), pointers do hold physical addresses.
@FredOverflow and @LucDanton : Been at this the whole day. I've barely made progress
@LucDanton Except if they're template errors :)
16:54
@FredOverflow Meh.
@GamesBrainiac I cannot help without seeing some code.
@JerryCoffin And the mention of bootloader was because you said "protected mode without paging is insanity", and I wanted to ask you if you call me insane :D
user142019
Damn.
user142019
Why the fuck does GitHub Pages take so much time.
@Griwes Oh, okay -- yes, you clearly are. Any other questions?
16:55
@FredOverflow : I think I'dd do it in another way Fred. Something thats a little bit easier.
@JerryCoffin Yay!
@GamesBrainiac There's an "edit" option, y'know.
@Griwes : Sorry man. Just used to it. Habbit you see. Sorry for the inconvenience
@GamesBrainiac Habbit? Like the movie? Oh wait, that was Hobbit.
Xeo
Xeo
16:56
@GamesBrainiac There's no excuse for this. The punishment shall be learning Monads.
-2
Q: why can't we define typedef typedef TYPEDEF

vineet1982Today checking the Security of API and other things and found that typedef int INT; typedef void VOID; But when I tried to define typedef typedef TYPEDEF; it produced the error: error: duplicate ‘typedef’ But why the error showing, i didn't understand How to create the name alias f...

lolwut
@Xeo : Whats monads?
@FredOverflow Awesome title.
Xeo
Xeo
@GamesBrainiac That's for you to learn now.
@FredOverflow : That was a fun example

« first day (856 days earlier)      last day (4314 days later) »