« first day (739 days earlier)      last day (4207 days later) » 

12:00 AM
Why not?
 
Maybe they just do narrow/wide with the Unicode-specific types!
 
@CatPlusPlus lol oops.
It was the one from NP++, latest stable.
I built the official Scintilla fine
 
@LucDanton Now you confused me.
 
It didn't work with NP++ tho :(
Fuck it.
Said person can wait for the next version of NP++, lol... :(
Off to Linux Land <3
 
To all the people who have been ignoring my trying to debug an auto_ptr corrupting my data: "Struct Member Alignment: 1" in Release but "default" in Debug.
 
12:02 AM
@R.MartinhoFernandes It's just that I cannot figure out the semantics of the conversion functions (not familiar enough with the C Standard I suppose) and I'm assuming the worst.
 
@LucDanton Oh, you mean, they do the same as mbrtowc and friends, but with char16_t and char32_t instead of wchar_t?
 
@MooingDuck I haven't ignored you, I've told you to make the pointer const.
@R.MartinhoFernandes Exactly.
 
@LucDanton yeah, a few people tried to help.
 
@LucDanton Well, in C there's a macro that determines if char16_t and char32_t are UTF-16 and UTF-32 or not. In C++ that macro must be present/set to 1/whatever, so those always have that meaning.
 
All I gather is that they convert from wide to multibyte. But what encoding(s)?
 
12:06 AM
> If the header <uchar.h> defines the macro __STDC_UTF_16__, values of type char16_t shall have UTF-16 encoding.
Similar wording for the 32 version.
 
Thanks. What does that mean for e.g. const char16_t* -> char*? What's the result?
 
You mean c16rtomb?
(Those "tomb" functions always make me smile)
 
Ya. I get multibyte what?
 
Gives you a multibyte sequence.
 
@R.MartinhoFernandes in what encoding?
 
12:10 AM
@Cicada considering that now even the editor is bugsy, it may have devolved to a state where "bestest" is no longer true
 
@Cheersandhth.-Alf bugsy? how
 
Type a long line of hyphens.
Note the growing space between text cursor and last hyphen.
Very silly.
 
I have 2010
 
hm, i meant vs 2012
i dont have 2010 on this machine so cannot test, sorry
 
I haven't tried 2012
 
12:13 AM
@MooingDuck Whatever the encoding of char is.
@MooingDuck Same encoding that wcrtomb gives you, basically.
 
Why isn't an implementation that converts to UTF-8 conforming, where e.g. printf expects a non-UTF8 encoding of char*?
 
Well, Jerry and I are sort of in agreement that version 6 was the best version. At that time it was called DevEnv, not DevStudio. But in the future it may be that people will look back on 2008 and say hey, that's where it was good, before they Did Things with the global project settings and the help system and the build system and whatnot.
 
I don't understand the question.
@Cheersandhth.-Alf Woah. lol
 
Assume an implementation where c16rtomb return UTF-8 encoded char*, but where the 'narrow' implementation-specific encoding (associated with char) isn't UTF-8. Is it conforming?
 
it certainly sounds unreasonable
 
12:17 AM
Ah. The wording is similar to the one for wcrtomb. Can that one do that?
 
I don't know. Worth a question? If there isn't one?
 
I assumed "no", but I admit I'm not too familiar with those beasts.
8 mins ago, by R. Martinho Fernandes
(Those "tomb" functions always make me smile)
 
@R.MartinhoFernandes Sorry I didn't pay attention, was reading something else
 
@LucDanton Yes, I'd say so.
@Cicada I was just acknowledging you, not crying "repost".
 
REPOST
 
12:18 AM
Why would C++ provide those but not some codecvt for it. Yeah no that's not even worth wondering about.
 
Oh, I don't know about codecvt.
 

 Wealth

Discussion about how people can become wealthy using software/...
2
wtf?
xD
 
I know there are codecvt for UTF-16<->UTF-8<->UCS-2/4, but I don't even have a clue about how to use them.
Wait, @Luc, can you check table 81?
 
Yeah it's tricky because they do encoding and a type conversion all in one go.
 
Category "ctype", third and fourth row.
Are those it?
 
12:22 AM
I have got to stop putting 1 sentence answers in comments :/
 
So the equivalent to C c16rtomb/mbrtoc16 would be std::codecvt_utf8_utf16<char16_t> I think.
 
At least that was what I was thinking. Still checking out your refs. (Took me too much time to find the correct codecvt.)
 
That's explicitly documented as UTF-8<->UTF-16 conversions.
 
@R.MartinhoFernandes Where is that?
 
12:26 AM
@ITNinja What. The. Fuck.
 
@R.MartinhoFernandes I know right?!
 
Bedtime.
 
@LucDanton Under §22.3.1.1.1
Page 649 in my copy.
 
It doesn't go to 22 here. Page 649 is somewhere in Annex K, with the alternative bound-checking versions of the library functions.
 
Woah.
Oh, this is in the C++ standard.
lol
 
12:32 AM
Figures, I don't think the C Standard has tables.
@R.MartinhoFernandes Some of them.
 
Which are missing?
 
Those are described in 22.4.1.4 Class template codecvt.
22.5 Standard code conversion facets for the additional ones.
 
@LucDanton Ugh. Do not like.
 
22.3.3.2 Conversions from 22.3.3 Convenience interfaces for a good time also.
@R.MartinhoFernandes Ignore the members, what matters is the meaning of the template parameters and semantics.
 
Yes, and those are weird.
 
12:35 AM
@R.MartinhoFernandes I.e. paragraph 3.
 
> The specializations required in Table 81 (22.3.1.1.1) convert the implementation-defined native character set. codecvt<char, char, mbstate_t> implements a degenerate conversion; it does not convert at all. The specialization codecvt<char16_t, char, mbstate_t> converts between the UTF-16 and UTF-8 encoding schemes
 
user142019
In C++, if I want a global that’s visible to only one translation unit, should I make it static or should I put it in an anonymous namespace? I have seen both used.
 
What's codecvt_utf8_utf16 for if we have codecvt<char16_t, char, mbstate_t>?
 
Yeah I don't know what's the diff with std::codecvt_utf8_utf16<char16_t>. Let me check, Meyers has something on the topic I think.
 
Oh, that reminds me. I need to download that thing again.
@WTP'-- I prefer anonymous namespaces.
My reasoning is that static has too many meanings.
 
user142019
12:38 AM
I see.
 
user142019
But there is no special reason to use one or the other except stylistic opinion?
 
In C++03 there are some corner cases where you have to use static due to linkage rules I think but implementations won't complain if you use an anonymous namespace.
Also I'm fairly sure it has to involve function templates, it's okay for variables.
> P.J. Plauger, who proposed codecvt_utf8_utf16for C++11, explains the two seemingly redundant UTF-16 ⇄UTF-8 conversion instantiations: “The etymologies of the two are different. There should be no behavioral difference.”
Welp.
 
@LucDanton Smoking. What was he.
FFS.
But...
"The specializations required in Table 81 (22.3.1.1.1) convert the implementation-defined native character set."
I'm having trouble expressing my anger and despair.
 
C++11 adds:
  - UTF-16 ⇄UTF-8(std::codecvt<char16_t, char, std::mbstate_t>)
  - UTF-32 ⇄UTF-8(std::codecvt<char32_t, char, std::mbstate_t>)
  - UTF-8 ⇄UCS-2, UTF-8 ⇄UCS-4(std::codecvt_utf8)
  - UTF-16 ⇄UCS-2, UTF-16 ⇄UCS-4(std::codecvt_utf16)
  - UTF-8 ⇄UTF-16(std::codecvt_utf8_utf16)
    Behaves like std::codecvt<char16_t, char, std::mbstate_t>.
Seen like that it's not that unreasonable.
 
It is! It's redundeant and there's not Unicode <-> native.
 
12:44 AM
Or maybe TRWTF is UCS-2.
 
@R.MartinhoFernandes mbcstowc whatever it's called, from c library
 
That gives me stuff from the native wide character set.
 
also not that compiler support for the code conversions was not very complete just some months ago
@R.MartinhoFernandes but UTF-16 to UTF-32 is trivial
you don't need a library facet for that
you can just do it
 
@Cheersandhth.-Alf Doesn't make the standard look any saner.
 
right agreed
:)
dang keyboard
 
12:46 AM
Wait, I'm supposed to have an account at Artima? Hmm. "Forgot my password".
 
@R.MartinhoFernandes Re: opening a question on <uchar.h>, I can't find any potential duplicate. Can't say I searched thoroughly though.
11
Q: What does `<cuchar>` provide, and where is it documented?

Kerrek SBThe new C++11 standard mentions a header <cuchar>, presumably in analogy to C99's <uchar.h>. Now, we know that C++11 brings new character types and literals that are specifically designed for UTF16 and UTF32, but I didn't think the language would actually contain functions to conver...

lol
 
remember that pjp also, if i recall correctly, is the man behind moneypct (speling?) and the message things!
 
Anyway, I'm not sure SO is the proper forum for such a question. A Standard list seems more appropriate.
Not I want to go there you know.
 
lol
Hmm. So, I reset my password, generated a new one, copy-pasted into the password changing form fields and changed it. Then, before I saved this new one, I copied something else to the clipboard.
Next time I hit that site I'll have to reset it again.
 
12:56 AM
I just realized: when I do a Google search over SO, does that mean that I'm in a sense making a search where a PageRank-like value is associated with each screen name?
And hence making use of the social graph-ish nature of SO?
Hopefully I'm not mixing up too many things here.
 
I think I'm reaching the point where I'm too sleepy to consider more than one topic.
 
When the Standard mentions a conversion between e.g. UTF-32 and UCS-4, the difference are those headers and endianness considerations applicable to the multibyte sequence right?
 
There is no such conversion in the standard.
 
Oh wait, there's no such thing. That makes sense.
 
If there was, it would be a no-op.
 
user142019
1:01 AM

▲ ▲
C++ programmers can’t triforce.
 
Why is multibyte UTF-8 (resp. UTF-16) to UCS-4 preferred to UTF-8 to UTF-32 as a point of terminology though? Convention?
 
@LucDanton The differences you were thinking off are between things like UTF-32 and UTF-32LE.
 
@R.MartinhoFernandes I assure you I think of no such thing.
 
@LucDanton No idea. AFAIK they're synonyms.
> Among the esoteric details are that the existence of a protected destructor in template std::codecvt implies that none of its instantiations – i.e., none of the standard facets -- work with std::wbuffer_convert and std::wstring_convert. Instead, it’s expected that types derived from std::codecvt (e.g., from a standard facet) will be used. Standard library types satisfying this expectation are std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16.
WTF.
 
Yeah it's a defect. I forgot what's the resolution though, it could be NAD and I wouldn't even be surprised.
 
1:06 AM
NAD?
 
Not A Defect!
 
@R.MartinhoFernandes NAD used to be nice amplifiers.
 
Well, you're not asking that on the list, are you? I'm going to sleep now, but I really want to know this, so I may ask tomorrow, if I remember and if I know what list should I post to.
 
Who's asking what? I'm not asking anything.
 
1:10 AM
20 mins ago, by Luc Danton
Anyway, I'm not sure SO is the proper forum for such a question. A Standard list seems more appropriate.
 
[ 2009-07 Frankfurt: ]

 codecvt isn't intended for beginning programmers. This is a regrettable consequence of the original design of the facet.

 Move to NAD.
It's not actually resolved yet, this was preliminary. I think. I don't know how this works.
@R.MartinhoFernandes Yeah not touching those.
 
Preliminary. Three years ago.
 
"Obscure as designed"
G'job there.
 
Weeeeeeell, std::codecvt & friends are pretty ugly.
 
"pretty ugly". Nice juxtaposition of words.
 
1:12 AM
Okay, now I'll try to figure out if it's possible to do wide UTF-16 <-> wide UCS-2.
@R.MartinhoFernandes Thanks. Should be 'heard' with the syllables distinctively separated for best effect.
 
@LucDanton Combine UTF-16 <-> UTF-8 <-> UCS-2.
 
@LucDanton you only need to remove or replace all surrogate pairs for UTF-16 -> UCS-2
the other way, UCS-2 -> UTF-16, is a null-operation
 
user142019
Time to reinstall Haskell Platform.
 
@R.MartinhoFernandes Ya I was wondering about that. Conversions are biased to and from multibyte UTF-8, aren't they?
Or maybe not. I have a mental block here and I don't understand why.
 
1:48 AM
This question prompted me to investigate this. You can swap the order of the exception specifications, it's 'interesting'.
 
Xeo
2:10 AM
@LucDanton That's just... messed up.
The whole paragraph just seems weird.
 
2:57 AM
Is this an appropriate way to create an array of pointers of type Resistor?

Resistor* resistors[10];
 
Hi Guys, Any of you know a good library in c++ to do pattern matching for file paths platform independent
say C:* , all directories/files with in C drive have to match this regex
 
@SteffanLong To the extent that creating an array of pointers is/can be appropriate, yes (i.e., that's a reasonable implementation of a probably-bad idea).
 
@JerryCoffin An assignment of mine requires I do what I described but not necessarily how I coded it. I am required to create an array of pointers to my custom Resistor class and then sort that array based on a specific member of the class. I can do this fine, but now I am having issues cleaning up the memory used.

I tried `delete [] resistors` but I get an assertion failure. Should I be doing this a different way?
 
@SteffanLong Consider using a std::vector instead of a raw array. I'm assuming that you're just starting on the language. And then it's a good idea to avoid showstopper problems.
std::vector<Resistor*> resistors( 10 );   // Already nulled, among other things.
 
@Cheersandhth.-Alf Every bit of research I've done points to using vectors instead, but unfortunately I must use an array.
 
3:07 AM
why
that is, why do you think that
 
@Cheersandhth.-Alf It's a requirement for my assignment. :/
 
well. try to get hold of "accelerated c++" then. study a bit on your own. :-)
 
@Cheersandhth.-Alf I'm just having trouble using delete [] to cleanup that memory before the program terminates. :/
 
is there a prohibition against using std::unique_ptr
?
anyway you wouldn't use delete[] but a delete on each Resistor*
because you're not allocating the array itself dynamically, only (if so) each Resistor
 
Probably. I've never used anything like that before. Actually, after looking at the requirements again I am just required to make sure the program does not cause any memory leaks.

So I could use something like this?

for(int i=0; i<10; i++)
{
delete resistors[i];
}
 
3:14 AM
you could.
you could get extra points perhaps by using a name for the array size, like
int const n_resistors = 10;
 
@SteffanLong Looks considerably better.
 
@Cheersandhth.-Alf Thanks for the help. That seems to have fixed the assertion failure. :)
 
Keeping in mind that uses of delete (resp. delete[]) much match uses of new (resp. new[]), where do you use new?
 
huh, you're welcome, but i don't know what talked about before
:-)
 
I use

for (int i=0; i<10; i++)
{
resistors[i] = new Resistor;
}

right after

Resistor* resistors[10];
 
3:17 AM
That certainly makes some sense.
 
i'm playing old olivia newton john album. i think i hear the bass lines differently now than when i was a teenager.
 
@SteffanLong Yes, this now matches up with your deletes, so I'd expect it to work (at least as long as there aren't any exceptions in between, but given your assignment, that's apparently being taken for granted).
 
I'm curious: will terminating without the for loop that runs delete on each pointer cause a memory leak? And if so, I thought memory leaks were only relevant when a program was running. When the program terminates isn't all that memory freed anyway?
 
@Cheersandhth.-Alf On an absolute basis, you probably hear the bass about the same, but the treble enough differently that on a relative basis, the bass seems a lot different (as we get older, bass hearing remains similar, but treble hearing changes a lot). Could also be that you're less distracted by her dancing to "Physical" though!
 
3:19 AM
:)
 
@SteffanLong It's a matter of context. In the context of just your program, there is, conceptually speaking, a leak. In the context of the larger environment, if we assume e.g. a desktop OS, leftover resources will be reclaimed on your behalf -- but that's not a property of the C++ program. Keeping in mind that C++ programs can be run in all kinds of environments or systems or what have you.
 
@SteffanLong no. a leak is by definition something that persists. the OS cleans up when the program ends. not guaranteed by the Holy C++ Standard, and doesn't happen on a DSP (say), but in general.
 
Ah that makes sense. Thanks again. :)
 
@Cheersandhth.-Alf A little sad to watch though -- reminds you (or me, anyway) that once the hot women singers could actually sing. May not have been great, but at least competent. Now, darned few even qualify to that minimal degree.
 
@JerryCoffin well there is natalie embruglia or what her name is, also australian singstress, and then there's the australian gal on bass who played/play with jeff beck
don't know if she can sing though
;-)
 
3:28 AM
@Cheersandhth.-Alf Natalie Imbruglia (easy for me to check -- I have four of her CDs handy). Yes, she can sing. There are definitely still a few -- Christina Aguilera has a pretty good voice too.
 
@Cheersandhth.-Alf Okay -- Rhonda Smith has also played bass with Jeff Beck (and also a good musician, but I've never heard either attempt to sing).
 
The song i updated to is the one i remembered where she plays a pretty long solo
 
@Cheersandhth.-Alf And a damned nice one at that. Just gotta love Jeff's reaction -- clearly loves the music, and isn't bothered a bit by her taking the spotlight. 'course I'm probably prejudiced; I've loved Jeff's work for decades, and he never disappoints, and never gets into a rut and gets boring either.
@Cheersandhth.-Alf Just FWIW, one with Rhonda Smith:
 
3:51 AM
hm, did you know that rhonda was alf's intended girlfriend (from melmac)? anyway. :-)
what a coincidence -- my current facebook photo is from that episode, evidently
 
@Cheersandhth.-Alf Uhmmm...no, never watched ALF enough to remember much about it.
 
at 1:36 or thereabouts
 
@Cheersandhth.-Alf And now I remember why I never watched it... :-)
 
AHHHHHH!!! Screen full of videos. :)
 
Oh the shame! I've just been awarded the silver Java badge. What's the world coming to?
@Mysticial Just ignore the last one. The music videos are worth watching though.
 
4:00 AM
@JerryCoffin Haha... I got that one a while ago. Shame on me. :)
I want my goddamn performance and optimization badges...
lol
 
I'm close to getting my bronze C++ badge :(
 
But seriously, at the rate that it's going right now, I'll have 20k points in both tags before I get the gold badges for them...
 
Oh you need 200 for gold? lol
The answer requirement is silly.
 
@Mysticial ...and in a show of cosmic (or at least SO) injustice, I do have a (silver) badge.
 
@Rapptz yeah seriously...
I don't have enough volume to get even close to 200.
@JerryCoffin hehe, I know. You were bragging about that a whlie back. :)
 
4:05 AM
This question made me realise I don't use enough math in programming.
2
Q: Create a Fast Sin() function to improve fps ? Fast sin() function?

furqanI am rendering 500x500 points in real-time. I have to compute the position of points using atan() and sin() functions. By using atan() and sin() I am getting 24 fps (frames per second). float thetaC = atan(value); float h = (value) / (sin(thetaC))); If I don't use sin() I am getting 52 fps. ...

 
@Mysticial Sorry -- I'd forgotten (senility...)
 
I think it got some stars too. It was quite a while ago though.
I'm probably never gonna get the Java gold badge though unless I start using Java in real life.
I stopped answering basic questions. And I only know basic Java...
 
@Mysticial I'm pretty sure all my answers are really about other things, but happen to have been tagged with Java as well.
 
All of the Java questions that I've answered are all pretty silly.
Except for one that was really a C++ question cross-tagged with Java.
Or rather a C++ performance question - cross-tagged as Java.
 
@Mysticial Why were you answering Java questions in the first place?
 
4:16 AM
@Pubby Because I can? :)
 
You should answer some COBOL questions then too!
 
I never even heard of COBOL before I joined SO.
 
@Pubby Well, doing some looking, maybe one that's tagged COBOL:
0
Q: COBOL to C++ data conversion

Akshay KhamkarI have requirement in which i need to convert - MOVE HIGH-VALUES TO W005-TEMP1. MOVE LOW-VALUES TO W005-TEMP2. How can i code these two in C++ ? Thanks Akshay

 
I always thought COBOL was pretty well known
When non-programmers mention languages I hear COBOL a lot
Fortran too
 
Other things that I've never heard of before joining SO: Haskell, Arduino, JQuery, Ruby...
 
4:20 AM
I never heard of COBOL until SO but I knew about Haskell, jQuery and Ruby.
Not Arduino though.
 
@Pubby It is -- and heavily used too -- just not by real programmers.
 
I only heard about COBOL because in an article I read, they compared it to Python lol...
 
C++ was probably the first language I ever heard of, then Basic, Fortran, COBOL, Java
Assembly
Dunno where I heard them from
@Mysticial It figures that I've never heard of denormals before SO.
 
My first programming language was my TI-83, which I found out was a form of BASIC.
 
I guess that probably means that I made a difference somehow. That's good to know.
 
4:23 AM
@Pubby Hm...would RPN on an ancient HP calculator count?
First I ever wrote anyway.
 
@JerryCoffin Probably not, but who's to judge
 
TI-83's programming language wasn't even that bad when I used it but thinking about it now it must have been horrible. With all the labels and gotos.
 
@Pubby Bjarne. Or maybe Niklaus.
 
My first was TI-89.
 
I still only have a TI-83.
 
4:27 AM
I think I had an 83, whatever it was I bought it only a few years ago.
 
Well, TI-83 Plus
I want those TI-Nspire but I don't.. really have a use for it since I'm out of school.
 
I recall those used backwards assignments in their BASIC variant
5 -> foo
 
Yep.
 
I guess I'm the lone HP user here. My first was a (then brand new) HP-33E. In college I upgraded to an HP-34C, then an HP-41C. I've been using it ever since (every couple of years I have to go to Radio Shack, because no normal store carries the N-cells it uses).
 
Oh wow the TI-Nspire uses Lua as a programming language
 
4:29 AM
They don't make RPN calculators anymore?
 
@Pubby I think they also accept algebraic entry now, but I'm pretty sure they still do RPN. A quick check confirms.
I suppose I should add that I also have a much newer (and fancier) HP-49G+, but I almost never use it. I suppose if I were in college again, I would, but for anything more than simple addition and such, a computer is simpler, and after 30+ years, my fingers can use the HP-41's keyboard without my even needing to be awake.
 
argh. i discovered that the move command in windows 7 apparently arbitrarily decides that it doesn't have access to move folders. which can be moved with windows explorer.
it doesn't even help to run it as elevated administrator
 
@Cheersandhth.-Alf How very odd. At least the last time I noticed, explorer is far from perfect too -- fails utterly if a path exceeds 256 characters, and when something doesn't work, it immediately stops and waits for input instead of continuing with what it can do, and logging/showing problems when done.
 
[C:\Users\Alf\Basic Math]
> whoami
nescio\alf

[C:\Users\Alf\Basic Math]
> net user alf | find "*"
Local Group Memberships      *Administrators       *HomeUsers
Global Group memberships     *None

[C:\Users\Alf\Basic Math]
> cacls .
C:\Users\Alf\Basic Math BUILTIN\Administrators:F
                        BUILTIN\Administrators:(OI)(CI)(IO)F
                        NT AUTHORITY\SYSTEM:F
                        NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
                        NT AUTHORITY\Authenticated Users:C
and also
[C:\Users\Alf\Basic Math]
> rd silly

[C:\Users\Alf\Basic Math]
> md ..\silly

[C:\Users\Alf\Basic Math]
> _
which is as inconsistent as possible...
 
4:58 AM
@Cheersandhth.-Alf I think you vastly underestimate the Redmondites' capability for inconsistency!
 
5:29 AM
i need to get more by eric johnson
 
@Cheersandhth.-Alf Good choice. Gets the best tonality from the guitar of almost anybody (the primary exception IMO being Billy McLaughlin, who plays an entirely different style).
Though, if you haven't listened to Billy McLaughlin, he's worth the time too...
 
i guess not the same as john mc laughlin
googled
i think you meant john?
 
@Cheersandhth.-Alf Nope -- quite different, though if you've listened to John (recently), you've probably also listened to Al DiMeola, who seems (to me) at least a little closer to Billy.
 
@Cheersandhth.-Alf Nope.
 
5:37 AM
i sh*t i forgot to adjust the offset on the time machine
 
@Cheersandhth.-Alf Careful or you'll end up outside a high school dance in a '49 Chevy, making out with your mother...
 
is that from a heinlein book?
 
@Cheersandhth.-Alf Back to the Future (though I've no idea about the make or year of the car). Heinlein does have something vaguely similar, with Lazarus Long traveling back in time and (probably) becoming his own grandfather.
 
another big coincidence today then, that i'd read that
 
@Cheersandhth.-Alf Was talking about the '80s movie.
 
5:45 AM
oh yes i got that -- finally
<.<
D
 
@Mysticial: Doesn't have any tags you probably follow, but you might be interested anyway:
0
Q: sequence of branch taken or not-taken that reduces the branch misprediction rate

user1378863Increasing the size of a branch prediction table implies that the two branches in a program are less likely to share a common predictor. A single predictor predicting a single branch instruction is generally more accurate than is the same predictor serving more than one branch instruction. List ...

 
That's actually off-topic for SO.
I'd have to go over the lecture slides from the relevant class to be able to answer that.
It's been a while...
 
6:20 AM
^ Why no preview or edit possibility for commenting on Wordpress sites. Me <= depressed, annoyed, tired. :(
 
6:45 AM
@Cheersandhth.-Alf Can't blame you -- and (as seems typical) not quite sure if you're up really early, or really late.
 
the latter
 
Geeze -- and I was thinking I was up too late, and needed to get to sleep soon. Looking at the clock, I really am and I really do though. Later.
 
@Mysticial It's not a 10k link.
 
@R.MartinhoFernandes oh wait, it redirected
The deleted answer at -12
 
@FredOverflow :) (could you add a link to your array FAQ? That would make the question helpful and not just snarky)
 
@Mysticial lol
 
7:12 AM
@R.MartinhoFernandes Good idea, done.
 
@TonyTheLion That's supposed to be funny somehow?
 
7:36 AM
We is the funnies. Sure....
 
7:55 AM
II want to go T::ChildT::ChildT n Times and n is the template parameter. Is there any readymade solution in boost ?
 

« first day (739 days earlier)      last day (4207 days later) »