« first day (962 days earlier)      last day (4212 days later) » 

12:16
You know what's really awesome? C code which is written with performance in mind
Allll those macros... And gotos....
Well, more macros than gotos
user142019
Macros that expand into gotos.
@Xeo @R.MartinhoFernandes Oh yeah I was wondering about online sorting earlier. You guys know anything about that?
Xeo
Xeo
?
@LucDanton What do you want to know?
An online sort is one that can operate without having the full input available.
Right, so that seems appropriate for ranges no?
12:25
Insertion sort is a classic example. Merge sort can be made online too. Quicksort cannot.
Is there anything ready-made in C++-land?
Don't think so. stable_sort is probably a merge sort, but that says nothing about onlinity.
And it would need CPS iterators.
Dammit, I had almost forgotten.
Hmm, you also have the various pieces of merge sort available separately.
Ah well. I'm not even sure it would be something reasonable to have -- requires random-access right?
Still, note that online does not mean it produces output immediately.
12:29
It only means work can start before the whole thing is available.
That does make sense.
In the end, you cannot make a sorting range adapter that is lazy.
As an easy proof consider an infinite range as input.
Something like selection sort, for example, can produce output as it works, but it has to consume the whole input first. Insertion sort can start without the full input but can only produce output once all work is done.
Does that make your choices clearer?
for Wide's sort, I was thinking of pulling in all the input into a container, sorting the container, and then giving back a range over that container
not sure how else to approach it, really, since I think that C++'s sort-in-place doesn't work in a lazier world and also a world in which rvalue results from ranges are first-class citizens
Above should read "that is lazy in all aspects"
12:35
I have a manipulator for random-access ranges that std::partial_sort up to it[k] when you ask for it as a toy. I'm trying to move away from Standard algo though since I've noticed the iterator sizes lol.
//another thing to consider
auto s = sorted(r);
// was r consumed?
nah
It's hard to make the answer anything else than no. It would be inconsistent with the other stuff.
I can at least lazy it to only evaluate on first request
@LucDanton Sure. I was just pointing out that implementation will need two states.
seriously reddit… a #haskell #stackoverflow is marked NSFW because of ((.).(.))?
...
yiz
yiz
12:46
what is it?
std::is_convertible<T, void> is True, right?
Unlikely.
Xeo
Xeo
nope
sink<void>(std::declval<T>()) kind of situation (which means no)
Xeo
Xeo
12:51
is_constructible<void, int> is also False :(
Ya that one is void wut(std::declval<int>());
Xeo
Xeo
Hm. Is there nothing expressing T(std::declval<U>())?
There isn't too much. Mostly std::is_constructible and its cohort.
Ya now I had completely forgotten about the one useful feature of my invoke, which is handling void gracefully and sanely. Of course that doesn't come from INVOKE though.
13:02
Why not?
Oh, is it the "implicitly converted to R" wording?
1
Q: UnicodeDecodeError during encode?

user590028We're running into a problem (which is described http://wiki.python.org/moin/UnicodeDecodeError) -- read the second paragraph '...Paradoxically...'. Specifically, we're trying to up-convert a string to unicode and we are receiving a UnicodeDecodeError. Example: >>> unicode('\xab') Trace...

Xeo
Xeo
lol that again
0
Q: Should deleted posts be used for review audits?

Gert ArnoldI reviewed this post in the First Posts queue. Which said i changed it to 'localsystem' and done. thanks much So it obviously was a potential low quality post. But sometimes such answers can be spot on, so I checked it out, better safe than sorry. I turned out the post had been deleted. G...

lol another angry user from the audit's ban
13:36
> may include 2D media such as 3D computer games and televisions
@Jeffrey Except he's right and that whole thing is bullshit
@CatPlusPlus Did you know that after a bunch of "this sucks", "this is bullshit", "No." your negative opinion counts exponentially less? :)
Did you know that fuck you
10
Lol lol lol
13:48
With negative exponents.
Think he means exponential decrease, but since it's a discrete series it would be geometric, not exponential.
yiz
yiz
you can only be logarithmically less
yiz
yiz
as x++, 1/(x++) => decreases
Yes, 1/x is exponential
Good job
fuck you, chat
@yiz he has one
@ScottW I think I love you less now...
@yiz Are you really that bad at math or trolling again
@ScottW your lips were all that mattered to me :(
13:54
exp(-x) is better anyway
Let me introduce you to concepts of SCALING and LIMITING
Also you're really terrible at math and really terrible at trolling hth
I'm not ~covering~ your mistake, I'm laughing at it
yiz
yiz
exp(-x)
14:04
Congrats you finally found the mythical exponential function
What the hell are you talking about
Yes, there is only one kind of decreasing function
Good job
@yiz aren't you just proving his point? as negative comments increase, the amount they matter decreases.
thus they matter exponentially less
"We"
@Luc what's empty_type for?
You're arguing about something irrelevant since he said "exponential" explicitly
@R.MartinhoFernandes i lol'd
Because you're bad at math
You failed maths period
14:13
Don't let Tomalak see you.
user142019
s/period/peroid/
I remember when fun people hanged out in this room
Xeo
Xeo
ITT: Casting a null reference to String in Flash produces, as totally expected, a "null" string.
@Xeo haha
14:15
@Xeo Yay weak typing
@CatPlusPlus and it wasn't you.
user142019
Nor you.
Or is it explicit
@rightfold who're you?
@CatPlusPlus It's just the crappy semantics that many dynamic language enthusiasts seems to think are convenient.
14:16
@CatPlusPlus Tss tss.
-1
Q: PHP EXCEL function

user2413939I want add function TEXT(01010,'00000') echo ' TEXT('.$v['order_id'].';"00000" '; but have problem ";" symbol move text which is after ";" to new cell, what can be solution I need write this function

Not much to do with the type system, really.
> PHP EXCEL function
My eyes
omg telkitty avatar looks so sad. I wonder what did she do to that cat before taking the pic
> what can be solution I need write this function
die
@LightnessRacesinOrbit If I wore contact lenses you would owe me new ones now.
14:18
@LightnessRacesinOrbit You mean this?
@Abyx Being in the same general area?
Cat looks extra grumpy today.
cat. cat never changes.
-2
Q: Automatically update comment votes

Lightness Races in OrbitQuestion and answer vote counts update automatically now, which is nice. Could the comment votes do the same? It's a confusing inconsistency at the moment that I have to F5 for one and not the others.

why would anyone downvote this?
14:26
@LightnessRacesinOrbit I would. Because I don't like you.
@Abyx S'sssssssaaay wuuuutt?
however I didn't.
hmm
iTunes: "Install QuickTime? More Info, OK"
where's the "Fuck off you crappy piece of shit" button?
@ScottW what's so funny about that huge dollar sign?
@DeadMG Story of my fucking life.
14:30
@DeadMG Does the red X work?
Also, lol, iTunes.
@R.MartinhoFernandes The label is important. :D
@DeadMG send them a letter
Yay, a good binning
Woah, what was that.
@DeadMG also fuck you
14:31
@R.MartinhoFernandes Yes
Amusing quantity of fags in this room
yiz
yiz
@Abyx x 2
@Abyx You seem upset.
@Tuntuni nope, not at all
@Abyx Hmm, really? So "also fuck you" just slipped out of your mouth. Right.
14:33
"also fuck you" != "fuck you"
I don't like the idea of binning telkitty messages just because it's her who wrote'em
FTFM
@Abyx I like it a lot.
@Abyx And why is that? She has been "trolling" and spamming before. Get fucking used to it then.
it's kinda like flushing the toilet, y'know? gets rid of all the shit
2
14:35
@DeadMG ok. actually it's not like I really care
¬_¬ am I the only one who doesn't have some deep seated hatred for @yiz
@Abyx Neither do I. The campaign of hate against one particular user is utterly obnoxious.
8
@DeadMG dat analogy
But DeadMG is a nasty piece of work, so you should hardly be surprised.
yiz
yiz
you know it is a newb when one ask newb questions
14:36
ITT: Loungers flaming each other.
@Tuntuni DeadMG is not a lounger in my mind. I find life easier to deal with, that way. :)
@LightnessRacesinOrbit agreed
eh, it's not unreasonable to dislike people who were banned and for good reason and then decided to simply circumvent it
@Tuntuni not really much flaming going on here
@LightnessRacesinOrbit uhm what? please define "lounger", I don't get it
14:37
@Abyx Joking ;)
(sort of)
ok
I define "Lounger" as:
> someone in the Stack Overflow C++ Lounge, who is not plonked by Tomalak
other definitions may omit the final phrase
yiz
yiz
@DeadMG you know why people don't like you? because you can't take a joke
huh
@sbi is back on the frequently in room list
@DeadMG yeah, it seems once you get some what regular, you can show up for one evening a month, and raid the frequent user list
14:40
@yiz sometimes (?) those jokes (??) of yours are really weird.
clearly however they work out who should be on that list is utter ball shit
@thecoshman Yeah.
we asked for a more accurate one several times
but as with every other chat feature request, it was basically ignored
@thecoshman Imma come back in a year and be back in first place!
I actually have no idea what the SO devs do in their work hours
they don't seem to implement any new features... anywhere.
yiz
yiz
14:41
@Abyx that is true, it's called 'personality' :p
@DeadMG They have changed a bunch of stuff for new users (i.e. you won't see it unless porn mode) lately.
but how would define it, just look at the ten most active users over the last week? those who are active the longest on average each day, looking over the last 30 days? the people who have the most posts in the room and active in the last day?
@LightnessRacesinOrbit What about it?
@thecoshman flooders
14:43
It's quite a useful tool.
yiz
yiz
@thecoshman the time used might be longer than that
@R.MartinhoFernandes I think he is just making sure he can say it too
@R.MartinhoFernandes just.. it.
@thecoshman STW
@yiz I am not saying that is how they define it, just trying to make a point that what exactly makes a frequent users is a somewhat fuzzy thin
@thecoshman I'd go with something like, "Time spent in the chatroom and when posted a message in the last two minutes", maybe
yiz
yiz
14:44
@thecoshman but how do you know who frequents this room and only read but does not write?
No one cares about lurkers.
@yiz if they never say anything, they do not count
read: if you're only lounging around, you're not a lounger
Would you also consider how much people at pinged, as that implies they are more actively part of conversations
@LightnessRacesinOrbit you can be a lounger whilst lounging
New here? Haha.
23
14:46
lounging present participle of lounge
Verb
Lie, sit, or stand in a relaxed or lazy way: "students were lounging about reading papers".
room topic changed to Lounge<C++>: RIP Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz (1999-2013) [c++] [c++11] [c++-faq] [no-helpdesk]
You don't see "students were lounging about, actively participating in all discussions and contributing their ideas with full zest"
@LightnessRacesinOrbit ¬_¬ is that a typo? has that typo lasted for the last month?
@R.MartinhoFernandes wut?
Rinderkennzeichnungs- und Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz (RkReÜAÜG) (literally, Cattle marking and beef labeling supervision duties delegation law) was a law of the German state of Mecklenburg-Vorpommern of 1999, repealed in 2013. It dealt with the supervision of the labeling of beef. The name is an example of the virtually unlimited compounding of nouns that is possible in many Germanic languages. German orthography uses “closed” compounds, concatenating nouns to form one long word. This is unlike most English compounds, which are separated using space...
14:47
@thecoshman What typo?
@R.MartinhoFernandes omg
@LightnessRacesinOrbit 'here', I fail to see why you said 'New here? Haha.'
@thecoshman Because I wanted to take the piss out of the poor, poor people who may be new here.
@LightnessRacesinOrbit I see...
@thecoshman I'm laughing at them, not you
14:49
@LightnessRacesinOrbit you are laughing, I do not approve of you taking joy
2
I'm doing some RTL Group employee survey.
@R.MartinhoFernandes you are suggesting people use ICU rather then your own spangly thing, is this simple because yours is still very much a wIP?
@thecoshman fair enough :D
@LightnessRacesinOrbit now go forth and spread misery :D
@thecoshman challenge accepted
14:52
@thecoshman Yes.
@LightnessRacesinOrbit there is no challenge, just do
@R.MartinhoFernandes How is Ogonek doing, by the way?
@R.MartinhoFernandes do you expect/hope to one day be able to start promoting ogonek as a viable alternative?
@EtiennedeMartel Stalled for a while.
I hope to get back to it next week.
@thecoshman Yes.
@R.MartinhoFernandes Ah, same as for my project, then.
14:54
@R.MartinhoFernandes eta
@R.MartinhoFernandes MSVC eta? :D
@melak47 fuck MSVC
@thecoshman I hope to get 1.0 sometime after Unicode 6.3 which is planned for Q3 this year. At worst, by December. It don't plan to support all the features of ICU by then, though.
dawww
@melak47 Ask MS?
14:56
@R.MartinhoFernandes I did in Bristol, remember?
yeah, something like that
@DeadMG you asked them "when are you going to support the ogonek library?" ? :D
STL said he had just finished fixing up the stdlib to use all the new library features
Xeo
Xeo
Didn't we have a link about VS2013 here?
14:57
and that they had fixed almost all the compiler bugs from CTP
@melak47 presumably features Ogonek uses
@Xeo New version already?
so windows 8 gets 8.1 / SP1 / ???, but VS gets 2013? :/
@melak47 My theory: This is because if they used something like Windows 9 then it would equal to admitting Windows 8 was a flop. OTOH, VS 2012 is pretty good, IMHO, thus releasing VS 2013 is fine.
15:00
@Xeo Is that an upgrade or more cash shelled out?
Xeo
Xeo
> we will be adding addition C++ 11 support to both the language and the libraries. Stay tuned for more info at the Build conference.
@wilx could seem the other way, too though. VS2012 was unsalvagable, so they make 2013, and Win8 was a success and warrants keeping it supported :p
:D
True.
Only he who shall not be named knows for sure. :)
what the hell is an "Application Lifecycle workflow"
@melak47 A workflow for the lifecycle of an application.
15:03
@Xeo They suck.
When's Build 2013?
later this month they said
@EtiennedeMartel Download app, use demo until it asks for money, baleet from drive, nuke preference files and other traces, repeat.
so...dev preview of VS 2013 in a few weeks? :3
@melak47 What I suspect is that they will pull a Windows 8- i.e., the upgrade is hideously cheap.
@DeadMG What do you mean by "cheap" there? Doesn't cost much, or sucks?
15:04
doesn't cost much
Xeo
Xeo
And sucks!
Why limit yourself to one interpretation?
you can get OEM licences of Win8 here for ridiculously low amounts (probably helped by the poor publicity, but Microsoft priced it very low to begin with)
@R.MartinhoFernandes so, I hear msvc gets ogonek support in a few weeks? :p
@melak47 VS 2013 is coming out in a few weeks?
dev preview, maybe :/
15:06
Nope, not gonna chase a moving target.
hehe
I don't want to spend time changing workarounds.
(Same reason I don't use GCC snapshots and only release builds)
@R.MartinhoFernandes Maybe you need a workaround workflow?
> Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz
What is that?
15:08
@wilx German
I know it is German. But what does it say? :)
@wilx Read the box. If no box, click the link. But you should see a box with the definition.
I can only conclude Germans had a fear of the number 32, and where some how able to foresee ascii
@wilx See wikipedia link above.
15:10
:9804456 Chat replaces certain links with a "onebox" summarizing the content.
Twitter, popular comic strips, wikipedia, etc.
Oh, wow!
I'll have to look out for that. Thanks!
Here's one which even brings da funk.
0
Q: Compare class vector's two funksions returns with other class vector elements functions

user2440139I have little problem: I show code and write problem to end. I have class: class MyClass { public: void SetName(std::string name) { Name = name; } void SetAge(int age) { Age = age; } void SetId(int id) { Id = id; } void SetNationality(std::string nationality) { ...

How did I not know about this already, @Potatoswatter?
15:12
funksions
@LightnessRacesinOrbit Need to spend more time here.
Welcome.
Ell
Ell
What did I say about sarcasm a few days ago?
@Potatoswatter Thanks. I will try to pop by more often.
Ell
Ell
rhetorics might also be a problem xD
15:15
@R.MartinhoFernandes they're like functions, but more funky
I'm impressed by how many different ways he can spell functions.
@Aboutblank I am impressed by how many wrong ways I can see :P
@Luc why do you unref on invoke?
Xeo
Xeo
> private var epicMemoryEater:Vector.<int> = new Vector.<int>(50 * 1024 * 1024 / 4); // 50MB
I just found this in our code.
> I need to win this
lol
@Xeo ...
Xeo
Xeo
15:27
It's our insurance for the gold master it seems, so that our artists see that we have "high" memory usage and optimize their shit better.
If I have a list of pairs of something that has a value and a weight, how an I randomly choose one based on the weight?
Xeo
Xeo
Randomly choose an index? :P
Wait
It has to take the weight though.
I don't know how to do that, but I feel it is simple.
@Xeo its for the inevitable bug fix release. change-log: decreased memory usage significantly
@Pawnguy7 what's the difference between chosing one at random, and choosing a random weight to choose? :p
15:30
@melak47 No. I want to randomly choosed one taking the weight into account.
@Pawnguy7 taking it into account...how
@Griwes In the future I would urge you to only downvote answers when they are objectively wrong or lack information, not just because you subjectively disagree with them. The new[] operator for arrays is a language feature, whether you like it or not, and I pointed out that using a vector is the better way. — Philipp 5 mins ago
...I don't even know how to start responding to that.
@melak47 I don't know how it is normally done. Let's say we have two tests. One is the final, and one is your first test. The final is going to be worth more than thepoint number alone.
@Pawnguy7 Sum the weights. Pick a number up to the sum. Go over the list, subtracting each weight from the random number. When you get to zero or less, pick that one.
Also, are you related to Insanity Prawn Boy?
@Potatoswatter I have no idea waht that is.
@Xeo I remember a story like that.
But anyway, I guess it's a cheaper alternative to hiring a tech art lead.
15:50
@R.MartinhoFernandes Hey, if I may ask, how does your blog works?
Technical details, I mean.
user1182183
hm guys which function uses std::map to hash std::strings ?
@GamErix std::map does not hash stuff.
@Potatoswatter it seems to be picking the one with least weight and is unvarying
You're thinking about std::unordered_map.
user1182183
15:52
well I am hacking my game but I cannot find any relation between the unit type and unit name, so , maybe there is some hash I can compare to..
@GamErix std::map does not hash.
user1182183
@EtiennedeMartel and which containers do? : P
1 min ago, by Etienne de Martel
You're thinking about std::unordered_map.
user1182183
ye ok and which hashing function does unordered map use? XD
user1182183
by default.. for std::string
15:54
unspecified, of course
@R.MartinhoFernandes Wow, thanks.
@GamErix Some specialization of std::hash for std::string.
Can anybody help me with this?
user142019
It's a pointer to the object you invoked the non-static member function on.
user1182183
@EtiennedeMartel std::hash(std::string("Test")); will return me the hash for "Test" right?
15:56
@GamErix No.
@Pawnguy7 I already did. If your implementation has a bug, maybe post it. You could even do so on the main site where we earn points for answering questions like that.
user1182183
damn .. ;/
@GamErix std::hash<std::string>()("Test")
ninjaed
user1182183
@DeadMG aaaa :D
std::hash is a type, not a function.
15:57
@Potatoswatter I am trying to get some psuedocode as we speak.
I think I get the idea of how it works now.
Just... not why I implemented it wrong.
my productivity has markedly increased since not coming here while at work
no, REALLY?!
what has the world come to
it's impossible!
who'da thunk that not coming to a chatroom instead of working would increase the time expended working?
dat sarcasm
@TonyTheLion Man. IRL I woulda just said "no, really", but I couldn't convey enough sarcasm over the webs in just that one phrase.
15:59
I've still got a bunch of sarcasm but not sure how to be any more sarcastic
user1182183
bah, and there is no , "partial reverse" for the hash? have to brute force the hash I have ? xD

« first day (962 days earlier)      last day (4212 days later) »