« first day (929 days earlier)      last day (4034 days later) » 

10:01 AM
@BartekBanachewicz I have a shader lexer/parser.
I also have an older GLSL parser.
 
@R.MartinhoFernandes what's a tight preprocessor?
@ThePhD what can it do?
 
@BartekBanachewicz One that isn't loose.
 
@R.MartinhoFernandes Bzzzt. Is this a well-defined term?
 
Xeo
10:03 AM
7 mins ago, by Bartek Banachewicz
a) possibilites b) feels like "loosing"
He's mocking your misspelling of "losing"
 
surprised there's no "pussy" there
 
They're not even homophones :(
 
so now you mock people for adding another 'o', huh?
 
@R.MartinhoFernandes your mum is a homophone
@BartekBanachewicz for using the wrong word, yes
 
10:05 AM
> Oh, what sad times are these when passing ruffians can say Ni at will to old ladies. There is a pestilence upon this land, nothing is sacred. Even those who arrange and design shrubberies are under considerable economic stress in this period in history.
came to my mind.
 
12 hours ago, by R. Martinho Fernandes
Get me a shrubbery.
 
lol I wasn't even ther.
I am not correcting this. Fuck the police.
Anyways, regardnig preprocessing, point is if you do it too much, shaders stop looking like GLSL and can turn into some sort of other language instead
 
@BartekBanachewicz I planted that message back there (where it just looks out of the blue nonsense) only to quote it right now.
 
@R.MartinhoFernandes You did it when destroying cowboy_cast. D:
@BartekBanachewicz The old GLSL parser gets all the variables in a shader as well as all the preprocessor definitions as well as a few custom defintions and parses them out. The current HLSL parser parses technique and pass syntax of an HLSL shader and automatically links / compiles pairs/collections of functions to create shaders.
 
robot-so-mysterious-time-powers
 
10:08 AM
The old GLSL parser was also preprocessor-sensitive: it listened to #ifdef / ifndef blocks among other things
 
@ThePhD there are no "techniques" and "passes" in OpenGL
 
It also supported #include statements
 
so it basically just reads data from code?
Hm #include is reserved IIRC
 
And furthermore supported tagging with things like #pragma vertexshader
@BartekBanachewicz Reserved, what for?
 
"future usage"
that's no biggie, I can just use #require or #import
tagging also sounds nice.
I could even use my own delimiting char like '$' to make eventual cleanup easier
 
10:11 AM
Ah, I still have screenies.
 
show something.
 
The result of processing:
 
What happened to : Position?
 
GLSL doesn't support Semantics (tagging data)
 
there's no such thing in OpenGL
 
10:13 AM
The composited source was cleaned to be compatible with GLSL's processor.
 
you can set explicit binding location for an attribute though
layout(location = 0) in vec3 position;
 
But it stored all the pruned data internally, including the name (you can see it in the Command Line there), the vertex type, the attributes, etc.
 
'0' must be compile-time constant
 
@ThePhD Ah, yeah, the semantics are arbitrary, right?
 
10:14 AM
Yep.
In DirectX 9, it was mostly required.
 
it's just generic data stream and whatever you put there and how you use it is up to you
 
DX10 and DX11, completely unneeded.
 
that's the long-term consequence of changes from the fixed pipeline
 
When I was first writing GLSL I was frustrated because sometimes in memory my vertex layouts were either missing attributes or in a different order.
 
"different order" wat.
 
10:15 AM
So I decided to build my own semantics system to get matching.
 
did you just assume bindings? :cripes:
UB UB UB UB UB
 
... Wha?
 
if you don't either bind or get attribute location, it's UB (IIRC)
 
I'm jsut talking about my interleaved vertex data buffers. Sometimes they only have Position Texture Color data, but not Normal, but the shader could work wither Normal being there or not there.
So I would automatically get and bind attributes based on the tagged semantic names.
 
interleaved buffers are useless imho.
 
10:17 AM
Software can be so retarded sometimes.... Grrrrrrr
 
To the appropriate locations.
 
they are much more cumbersome to use, and you really gain nothing.
 
Xeo
2. Omitting parameter instead of the "default" keyword
Why not calling without any keywords between the comas to signify to use the default? Example from the previous post:
foo(10, default, default, default, 12, default);
would become:
foo(10, , , , 12);
Oh gawd
Oh gaaaawd
 
Xeo you still ITT
come on.
 
Oh gawwwwddddddddd
 
Xeo
10:18 AM
Wut?
 
it's the mailing list right?
 
Why not omit the commas too and end up with an overload! foo(10, 12);
Amazing. :O
 
because that entails an exponential number of overloads.
 
@Xeo That's how you did it in VB.
 
Xeo
10:18 AM
@ThePhD 2^N overloads, where N is the number of default arguments.
 
@Xeo I have little problem with that.
 
also array textures.
 
Next up: someone suggests Option Base 1 for making 1-based arrays.
 
It's not a terrible idea, TBH.
 
> Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'efSyntaxHighlight_GeSHiSetup' not found or invalid function name in /home/opengl/public_html/wiki_132/includes/Hooks.php on line 216
[285ec62f] 2013-05-02 10:19:45: Fatal exception of type MWException
 
10:20 AM
ahahahah
 
@ThePhD it is
 
@ThePhD I used it in VB. It is.
 
@R.MartinhoFernandes Good idea
 
Oh, nevermind then~
 
@LightnessRacesinOrbit go suggest
 
10:20 AM
@R.MartinhoFernandes So did I. Why is it?
 
trollollollol
 
@TonyTheLion I'll let him.
 
@R.MartinhoFernandes Last night I implement operator overloading (only for < though).
 
uh fucking php
 
@DeadMG Is there some sort of newsletter to which we may subscribe? I wish to be kept informed with up-to-the-minute information on the matter.
 
10:21 AM
@LightnessRacesinOrbit It is too easy to turn into a comma-counting exercise.
 
@R.MartinhoFernandes Sure, if you have too many parameters. It is too easy to turn into a parameter/default counting exercise too, in such a case.
 
@LightnessRacesinOrbit lol
 
@BartekBanachewicz Complete symbol table for GLSL is also possible with my parser <3:
 
@LightnessRacesinOrbit Yeah, but if you don't have many parameters you don't really need the feature.
 
I did some really serious shit before when I was working with OpenGL.
 
10:22 AM
@R.MartinhoFernandes I don't see why not. It beats writing overloads
 
Perhaps one day I'll return to you, my first love, OpenGL.
 
@ThePhD what the fuck is this
 
default... -> variadic default parameters
wait wut?
 
void foo(int alwaysGiven, int likelyToBeDefaulted = 2, int preciselyAsLikelyToBeDefaulted = 3);
Now, foo(1, , 4) or do I have to write a whole 'nother function?
 
foo(1,...,4)
 
10:23 AM
Can't give advice against foos.
 
foo(1, default, 4) looks to me like I'm passing in a variable.
 
@BartekBanachewicz It's the symbol table for a shader. <3
 
@R.MartinhoFernandes You can.
 
Sorry, but I always steer from that trap.
 
@LightnessRacesinOrbit foo(int, optional<int>, optional<int>)
 
10:23 AM
It gives me no design choices at all.
 
Xeo
Hm. I just remembered ... tomorrow is Post-Bristol Mailing Deadline, isn't it?
 
I can't design if I don't know what I'm designing. I am flawed like that.
 
@R.MartinhoFernandes Nonsense - this is the only way the committee can design the language, so you can do it too!
 
@LightnessRacesinOrbit I thought you were giving a use case.
 
@BartekBanachewicz Pointless
 
10:24 AM
A use case is for the user viewpoint, not for the committee.
 
@ThePhD 1) stop using emoticons, they are annoying. 2) what's a symbol table?
 
@R.MartinhoFernandes An abstract one
 
@LightnessRacesinOrbit what?
 
@BartekBanachewicz <3 <3 <3 <3
 
39 secs ago, by R. Martinho Fernandes
I can't design if I don't know what I'm designing. I am flawed like that.
 
Xeo
10:24 AM
@TonyTheLion foo(0,...,0)
 
how is that pointless.
 
@BartekBanachewicz :)
 
it's exactly what you want.
 
@BartekBanachewicz Why would I want to mangle the signature of my function to get defaults?
I don't need optional and templates and shite
 
@Xeo lol
 
10:25 AM
I just want a fucking int
 
If your feature is so useful that foo is the best you can come up with, your feature sucks.
 
@LightnessRacesinOrbit are you another one from "templates are unnecessary complexity"?
 
@LightnessRacesinOrbit int doesn't fuck
 
@BartekBanachewicz The symbol table of hte shader, e.g. all the preprocessor tokens, defines, re-mapped typedefs/types, and other stuff. It also keeps a separate one for all of the variable types, and I think struct parsing was working too.
 
10:25 AM
@R.MartinhoFernandes Perhaps there's a language barrier here. foo is a very precise and concrete action in my language.
 
int val = (opt_param) ? opt_param.get() : default_val;
 
Still I need to learn how to write a better lexer/parser, for which I'm going to have to talk to @zoidberg and @deadmg for.
 
@BartekBanachewicz I'm another one from "why are you trying to bloat and complicate my very very simple code, to do a very very simple thing?"
 
@LightnessRacesinOrbit your code sucks
 
I don't need a whole bloody class to give me default arguments.
 
Xeo
10:26 AM
@BartekBanachewicz Psst: opt_param.get_value_or(default_val)
 
I also don't need to fuck up IPC compatibility in my interface
 
@Xeo thank you
 
just give me sensible syntax to resolve default parameters
 
@ThePhD Both my lexer and my parser need some fairly serious work done to them.
 
@BartekBanachewicz My code is generally amazing, fuck you very much.
 
10:26 AM
@LightnessRacesinOrbit I just gave you that
 
The difference between you and me is that I write code in the real world.
@BartekBanachewicz No, you didn't. You changed my function signature significantly. Don't do that.
 
oh real world code primadonna strikes again
 
@LightnessRacesinOrbit If you can explain it, I can answer your question ("Now, foo(1, , 4) or do I have to write a whole 'nother function?"). Until then, I still have no idea what the use case is.
 
I can't use templates because complexity
 
@R.MartinhoFernandes The use case is completely irrelevant, beyond the probabilities I already specified that either of the parameters will be defaulted at call-time.
 
10:27 AM
no it's not.
 
@BartekBanachewicz What? No. But you changed a symbol void(int,int,int) into something very different
 
Xeo
@BartekBanachewicz Bartek... virtual functions.
 
you force a signature on us which can make no sense
 
@BartekBanachewicz Yes, it is.
 
If the use cases of your feature are irrelevant, it makes your feature irrelevant.
 
10:28 AM
@R.MartinhoFernandes ... you've never heard of a contrived example or testcase? Okay, then...
 
irrelevant is irrelevant
also, irrelevant
 
@LightnessRacesinOrbit which, no shit, will work with any code using it.
 
Surprised at your position in this discussion. You're usually more intelligent than this :-D
 
@Xeo what about them? ah uh. yes virtual functions. Irrelevant regarding optional
 
@BartekBanachewicz Like my C code that invokes it through a DLL, or somesuch?
 
10:28 AM
@LightnessRacesinOrbit Contrived examples don't really make the languages features they demonstrate look useful.
 
Xeo
@BartekBanachewicz They don't play very nicely with templates.
 
@BartekBanachewicz: You are creating an abstraction leak by fucking up my function signature.
 
@LightnessRacesinOrbit This is always my position when presented with such examples.
 
@LightnessRacesinOrbit are you seriously invoking C++ code from C?
I am outta here
 
@R.MartinhoFernandes I'm sorry to hear that.
 
10:29 AM
Wait, hold on
 
@BartekBanachewicz It's like you are completely unaware of the concept of IPC, or of creating robust and consistent interfaces. How amusing.
 
I'm so confused. D:
What syntax are we arguing over again?
 
@LightnessRacesinOrbit I am quite aware of it, TYVM.
 
6 mins ago, by Bartek Banachewicz
@LightnessRacesinOrbit foo(int, optional<int>, optional<int>)
 
Also "robust and consistent" my ass
 
10:30 AM
^ was suggested
 
foo( 12, , 10 ); ? Or foo( 12, default, 10 ); ?
 
@ThePhD Does it matter? Pick one and argue arduously :P
 
@BartekBanachewicz Evidently you are not, since you are displaying such a callous disregard
@ThePhD Yes.
 
@LightnessRacesinOrbit I am evidently coding in C++ not in C/C++
 
@LightnessRacesinOrbit Well, what are the default values?
 
10:30 AM
If you want to hear something from me, I can say that I don't think the optionals help much with the readability.
 
Good morning!
 
@BartekBanachewicz What does that have to do with your suggestion for the general case that argues against the introduction of new use-default-arguments syntax?
Do you think that everybody who uses C++ is... you?
 
Isn't this solved by having named arguments in the first place?
 
your proposals about "defaults" is contrary to C++ design philosophy
 
10:31 AM
@kbok 2 and 3. It says so right there, in the code.
 
if the problem can be solved by library, use a library, not a new language feature
 
You are contrary to C++ design philosophy! You and yo mamma.
 
@BartekBanachewicz I did not propose it. At least we are getting somewhere now. What about them is contrary to C++ design philosophy? And, if they are, are they more so than std::move?
 
@BartekBanachewicz Default arguments are not "a new language feature". We are talking about an enhanced way to invoke them.
 
10:32 AM
@LightnessRacesinOrbit "default" keyword is.
 
I need some default arguments too
 
@LightnessRacesinOrbit which is a new language feature.
 
@BartekBanachewicz Nope, default is already a keyword.
 
so when I have an argument next, I at least have something to say
 
fuck you and your pedantry.
 
10:33 AM
@BartekBanachewicz What the fuck is with you morons? Where is the "pedantry"?
 
you want to change core language with that, period.
 
@BartekBanachewicz So, you think that ranged-for shouldn't have been introduced because we already had BOOST_FOREACH? Why create a new language feature?
 
37 secs ago, by Lightness Races in Orbit
@BartekBanachewicz Nope, default is already a keyword.
 
I wonder if you're both trolling or just one of you is?
 
@BartekBanachewicz What about it?
 
10:34 AM
you knew perfectly what I meant yet you decided to post that.
 
default isn't used in the context of function arguments, though
 
@BartekBanachewicz What?
 
It's just in = default, so.
I think it'd be okay.
 
@LightnessRacesinOrbit if we wanted to introduce every feature from boost as a language extension C++ would be hardly usable
 
@ThePhD It can easily be, without breaking anything at all
 
10:34 AM
 
Instead, though, Bartek would like me to change my function signatures so that my arguments, instead of being nice simple ints, are fucking class template instances
 
what the hell @Tony
 
now I can move on with things
 
@LightnessRacesinOrbit #ohnoes.
 
How bulky and needless is that in terms of my external function API!
 
10:35 AM
@LightnessRacesinOrbit I'd say that if someone wants to use the default value of (2) but give (3) then fuck him he just looks up the default value of (2)
 
Don't join them!
 
@kbok Well, yeah, that's what we have to do now. I believe the root issue here is avoiding that. So that the default is mentioned only in one place.
 
or you can join my plonklist
 
Entertaining that people plonk for having conversations. I wonder what you're doing here, then.
 
@LightnessRacesinOrbit That's what I meant. It's not used in function arguments, so it'd fit perfectly inside of a function call foo( 1, default, 3 );
Plus it's already a reserved keyword, so it works out nicely.
 
10:36 AM
@ThePhD Yep, I think that's fine. But that allowing emptiness works just fine too. Bartek would rather force me to change my function to take optional<T>
 
And the problem Tomalak is having is writing boost::none instead of default
 
@BartekBanachewicz No, that's not correct.
 
@LightnessRacesinOrbit Although you may consider using more elaborated types to let you define overloads (not sure if enums or stuff)
 
@BartekBanachewicz The problem, as I have already explained several times, is in changing my function signature, and making its parameters have non-trivial types, for no good reason.
 
@LightnessRacesinOrbit can you give real scenario where this would cause problems?
 
10:37 AM
@BartekBanachewicz I already did.
 
@LightnessRacesinOrbit calling from C code, right?
 
@BartekBanachewicz It should also be obvious that changing an API is to be avoided -- if you don't already know this, then I can't help.
 
@LightnessRacesinOrbit that's. not. a. change. of. API dammit
 
Read a book about compatibility and interface stability.
 
@LightnessRacesinOrbit it doesn't break existing code
so the argument about stability is pulled out of ass.
 
10:38 AM
I'm aware this is an odd question, but say someone were to release a CPU Instruction-Set specification, would it be illegal to write a compiler for this specification without first seeing under which terms it is licensed?
 
@BartekBanachewicz void foo(int, int, int) -> void foo(int, optional<int>, optional<int>) most certainly is a change of API. The symbol name will be different, the arguments can no longer be trivial numbers, and now you require C++ in the calling scope.
I really don't understand why this new generation is content to bloat everything to fuck when it gains them absolutely zero things.
 
@LightnessRacesinOrbit "the arguments..." what?
 
@BartekBanachewicz An argument such as the int 2. What is confusing to you, now?
@Jeremy No idea.
 
@LightnessRacesinOrbit I don't understand baggy jeans and obey caps either
 
@kbok Oh that too
 
10:40 AM
@Jeremy Depends on where you are and what the terms say (do they say "it's illegal to write a compiler" ?)
 
@BartekBanachewicz Erm, it totally is?
@BartekBanachewicz Erm, it does?
 
@Jeremy Anyway that's likely possible (see the MP3 spec for instance)
 
@kbok they have a license (or I can't find one)
 
10:41 AM
> It's something that you can't prepare for.
 
don't*
 
> Young children in the area are often introduced to guns at an early age
 
@Jeremy Only if the terms say that it is illegal (in other words, you have to know what the terms are before you can make any assumptions about what the terms permit)
 
so I guess I have to assume not
but if there are no terms, I assume then that I cannot, at least do so safely?
 
> In our company, we have a custom C++ framework with a bunch of classes like BaseString all deriving from BaseObject.
 
10:42 AM
@jalf That sounds kind of horrible.
 
oh gawd :/
 
I doubt that forbidding people from targetting a specification in a license would hold in court (see Google vs Oracle on Java)
FUCK I SOUND LIKE A LAWYER HELP
 
@R.MartinhoFernandes That case had nothing to do with the Java spec.
 
ITT Robot turns into a laywer
 
Oracle were alleging that a Google engineer actually stole some of the implementation of some of the Java classes and functions.
it was like, 8 lines of quicksort or something silly like that
 
10:43 AM
@R.MartinhoFernandes But in the Java case, the specification was specifically released as an open standard. That's not true for all specifications
 
srsly
 
Damn i just reached one page in word for my SO question..
 
@R.MartinhoFernandes Winning trials rarely have anything to do with being on the right side of the law
 
@DavidKron that's not always a bad thing
 
10:44 AM
Not sure what that shows.
 
@kbok Not to mention how it might work in some other jurisdiction
 
shows boost::optional apparently
 
It also requires runtime actions, I believe.
 
@kbok Isn't being on the right of side the law irrelevant if you lose trials?
 
Well, the reason I ask is because I am thinking of writing some software for the DCPU (some of you may know of it) and I can't find the license Notch is releasing the specification under :S
 
10:45 AM
@Jeremy There's already an LLVM target for the DCPU.
 
@BartekBanachewicz I sure dont hope so. Is there any max chars limit?
 
@BartekBanachewicz An example of what? Random code?
 
@R.MartinhoFernandes Uh?
 
Yes, I know. I am just wondering what the legality of it all is
 
@DavidKron In my brain there is. You're risking a close-vote or five.
 
10:46 AM
@DavidKron even if there is, it's pretty big
 
@Jeremy The simple answer would be to contact him. He's on twitter. And presumably has email too
 
Also, writing SO questions in Word? Really?
 
2
Q: Custom support for __attribute__((format))

prapinBoth GCC and Clang have a support to make compile-time checks on variable argument functions like printf. These compilers accept syntax like: extern void dprintf(int dlevel, const char *format, ...) __attribute__((format(printf, 2, 3))); /* 2=format 3=params */ On OSX, the Cocoa framework a...

 
optional is actually going in the standard tought!
 
@Jeremy I wouldn't worry about that
 
10:46 AM
@Jeremy Tweet him about it. I'm sure he'll laugh and tell you to shut the fuck up and start coding.
 
@LightnessRacesinOrbit a new fad
 
@LightnessRacesinOrbit Nice joke.
 
And most likely, it is permitted, but why not be on the safe side?
 
@R.MartinhoFernandes of code that's doing what he wanted in a reasonable way. And I honestly don't want to drag this anymore.
 
I missed the joke :|
 
10:47 AM
@BartekBanachewicz Oh. You knew what he wanted to do with the code. Impressive.
 
@BartekBanachewicz I'm sorry that you completely missed all the points.
Let's do this again some time...
 
@LightnessRacesinOrbit I write most things in word. It makes me more careful and less anxious to press the "post" button.
 
@DavidKron Using Word always makes me anxious
 
I probably will as the project matures. Anyway, thanks for the help.
 
10:48 AM
I am not arguing against "you need C++ to call this C++ function", ever
 
I'd write in notepad.exe
 
@BartekBanachewicz And FWIW, here's some code you broke coliru.stacked-crooked.com/…
 
@R.MartinhoFernandes probably just ignore it :P
 
@R.MartinhoFernandes kill me.
3
 
@BartekBanachewicz Congratulations on emplacing something I didn't say within quotation marks, thus forming a strawman argument and committing libel.
 
10:49 AM
@R.MartinhoFernandes his code came first, you broke it :P
 
@R.MartinhoFernandes Good example.
 
> and now you require C++ in the calling scope
 
@LightnessRacesinOrbit He didn't claim you said it, though. He just stated he wouldn't argue against it.
 
@R.MartinhoFernandes Good point! Then, at best, he's being vacuous.
 
@CatPlusPlus When I said kill yourself I didn't mean it I love you Cat <3
 
10:50 AM
@BartekBanachewicz One of my many valid arguments. Thank you Robot for providing yet another.
 
@BartekBanachewicz That was his point for the past ten or fifteen minutes.
You clearly missed it.
 
@ThePhD Is he even here`?
 
@R.MartinhoFernandes making me want kill myself?
 
@BartekBanachewicz No. The fact that you were suggesting a breaking change.
 
10:51 AM
@R.MartinhoFernandes Though, quick question. Does using void foo(1, default, 3); for a function sound like a terrible bad idea? I mean, the compiler doesn't have to do much extra work but replace every "default" token with the default value token, right?
 
12 mins ago, by Bartek Banachewicz
so the argument about stability is pulled out of ass.
This argument.
 
Anyone know how i can run a .vbs script as admin on windows?
 
I, again, was not prepared to fight C.
 
If it came out of my arse, it did so undigested.
 
10:52 AM
Guys, I has teh job
5
 
@kbok CONGRATS
 
@BartekBanachewicz Several fully C++ arguments have also been presented over the course of this insanity.
 
@kbok is it an awesome job?
 
@jalf Yes.
 
@kbok: Is it very awesome?
 
10:52 AM
@kbok hey nice
 
oh and btw I am officially a "c++ expert" lol
6
 
@LightnessRacesinOrbit s/very awesome/star-worthy
 
@kbok yes, you are C++ super expert :)
 
@ThePhD What do you mean?
 
@LightnessRacesinOrbit It is decently awesome
 
10:53 AM
My typos suck.
 
@kbok sweet, grats! That's the best kind
@kbok Neat
 
i need food.
 
Where is it, and what will you be doing? Just C++ experting it up? :D
 
@jalf templating their templates
 
@BartekBanachewicz You cannot ignore legacy code when discussing breaking changes. It's what it is all about.
 
10:54 AM
@R.MartinhoFernandes default isn't a breaking change!
 
So, I wanted to thank you all (the Lounge overall) for all this C++ thing because you obviously helped a lot
5
 
@R.MartinhoFernandes I accept a defeat of my solution then.
 
@ThePhD I never said that.
 
@kbok Awww
 
Lol i just found the most awesomest crack
 
10:55 AM
@R.MartinhoFernandes I know, I'm throwing it out there. Into the conversation. <3
 
@DavidKron You know how wrong that sounds?
 
@kbok You're welcome. <3 (cowboy_cast helped, right? :D)
 
@kbok d'awwwwww! Group hug time!
 
Yeah, but anyone wanna know what it was??
 
"all this C++ thing"
 
10:55 AM
@ThePhD No.
 
@kbok Congratulations!
 
@DavidKron mmmmno
 
Im telling anyways
 
@kbok ( Admit it, it taught you the harm of UB! )
 
I love UB
<3
 
10:56 AM
@ThePhD It's a great example of what not to do actually so it kind of helps
 
!!! YES
 
@jalf lol
 
I have it on record!
 
0
Q: Bit Shifting in Cache Simulation

Hanya IdreesWhat is the formula for calculating the index and tag bits in 1. Direct Mapped Cache 2. Associative Cache 3. Set Associative Cache I am currently using this formula for Direct Mapped, #define BLOCK_SHIFT 5; #define CACHE_SIZE 4096; int index = (address >> BLOCK_SHIFT) & (CACHE_SIZE-1); /* in...

can you know this?
 
We could use whole @ThePhD's codebase as an example on what not to do, hrhrhr
 
10:58 AM
@TonyTheLion It's just math (not really a programming question).
 
oh I see
I misunderstood the question then
 
The crack!...
Was a virtual machine that booted up a activation server
 

« first day (929 days earlier)      last day (4034 days later) »