« first day (602 days earlier)      last day (4345 days later) » 

12:09 AM
awesome. stackoverflow.com/questions/10957116/… a number like class where operator== mutates the members.
 
That's not awesome.
 
@CatPlusPlus at least they retain their value, that better than some novices I've seen.
 
Oh, hey, badges for election stuff.
 
?
 
You've earned the "Constituent" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.
 
12:13 AM
@CatPlusPlus yeah, I'm not sure why I got them. I logged into SO and got two Caucus badge notifications.
Only got one badge though
@CatPlusPlus There's lots of meta posts about it.
 
> Visited an election during any phase of an active election
And that other one is for voting.
I don't follow meta.
 
Yay. Let's all visit elections. For fame
 
@CatPlusPlus I went to meta to report that I got a badge that I didn't deserve
 
You're crazy.
Also you probably visited a link at some point.
Also damn, that notification icon is so invisible.
I barely noticed I have 7 notifications, because it blends with the background.
 
catplusplus
SQL names or functional names for algorithms?
 
12:21 AM
Functional.
 
woo, another day with positive rep!
 
I have -11 rep today :(
 
@DeadMG still eating strawberries?
 
Fail.
 
where's the robot?
 
12:31 AM
where did you last leave him?
 
FYI there's mumbling going on on loungecpp.sehe.nl.
 
I got a badge for voting
I have accomplished a lot
 
@Pubby I didn't even know you could vote yet?
 
@Collin It's from last year apparently. Didn't know they kept track of that.
 
Who wouldn't retain data after building themselves a fancy election system.
 
12:41 AM
You've earned the "Constituent" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.

You've earned the "Constituent" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.

You've earned the "Constituent" badge for an election. See your profile.

You've earned the "Caucus" badge for an election. See your profile.
 
@Pubby Ahh, must be why I have 2 Caucus badges all of a sudden
 
12:53 AM
@Pubby Gosh, what is that?
 
@StackedCrooked Y U NO DERE ANYMO' :(
 
OMG, it's spamming me too.
 
oh the robot is back woot :)
 
Missed me?
 
12:54 AM
this is channel is meaningless without the robot :P
 
@RMartinhoFernandes yup
 
I just watched Prometheus. Liked it, but found it very disappointing. And it sucks.
 
> Denied divorce, some same-sex couples 'wed-locked'
@RMartinhoFernandes Are you really that blind to voting fraud?
 
@TonyTheLion Oh gawd, you guys can't be that desperate.
 
Nobody loves me. ;_;
 
1:01 AM
lol
@CatPlusPlus Forever alone!
 
@CatPlusPlus There are no words to describe how much I care about you, although 'Sponge Bath' is close.
 
I don't even.
 
We're all just singletons in the Windows Registry
 
PrintWriter or crap.
 
fuuuuu
missed Stephano vs Polt game 1 & 2
 
woof come on mumbe
 
7DFPS PEOPLE.
 
TF is that?
 
@TonyTheLion Watching.
 
7 day FPS challenge.
 
1:14 AM
@RMartinhoFernandes SQL or functional names for algorithms?
 
First Person Shooter.
 
@CatPlusPlus So, they're streaming people coding?
 
One is coding, the other one is arting.
 
'7 day frames per second'
 
1:15 AM
farting
 
Gosh, that sounds boring.
 
They're using Unity!
 
Unity? I thought they used C++.
 
Doesn't make it any less boring.
Watching people code over the Internet? Really?
 
1:16 AM
Make an FPS without an engine in 7 days.
 
Hockey games are the future.
 
7 days is easy. The challenge is making a good one in 7 days.
 
y u people no advise me on algorithm names
 
Functional.
 
1:17 AM
Fred
 
Always functional.
 
because you're not on mumble
 
Also WTF SQL algorithms?
 
@DeadMG Wait, you were asking me for algorithm names? I totally missed that,
WTF are you doing?
 
@RMartinhoFernandes Well, I was considering to use the SQL-style, like, select, etc
 
1:18 AM
Map and fold forevar.
 
or more functional names like fold, sort, etc
 
That.
Map and fold +1 from me.
 
Wait, what's going on?
 
(It's transform and accumulate from STL)
 
1:19 AM
I had to learn OCL, where "map" is called "collect".
Don't do that.
 
Apr 25 at 14:49, by sehe
[03:55] <vipejc> does anyone in here have hockey programming skills?
[03:56] <vipejc> i know
[03:56] <Oluseyi> you don't program hockey
[03:56] <vipejc> ur so slow
[03:56] [Drevay] yah, you program games
[03:56] <Oluseyi> your question is malformed
[03:56] <Promit> "does anyone in here have hockey programming skills?" -- omg.
[03:56] <vipejc> ur brain is malformed
[03:56] [Drevay] vipejc, i think this is a vice versa situation
[03:56] <Promit> ...
[03:56] <Ainokea> I gotz mad hockey programming skillz
Found it!
 
Apr 25 at 14:51, by sehe
@thecoshman see http://www.gamedev.net/topic/280347-is-darkbasic-pro-the-best-current-software-to-create-a-hockey--video-game/ and http://www.gamedev.net/topic/279690-aol-newbs-actually-exist-they-are-no-longer-a-myth/
> ur brain is malformed
 
Reloading code on runtime is not unusual.
 
@DeadMG What are the algorithms form?
 
1:20 AM
It's called hot swapping.
 
I thought hot swapping was a hardware term
 
That, too.
Basically swapping components when the thing is on.
 
That's other swapping.
 
@Pubby Just specifying them in my std lib
also
sort, in place or returns sorted range?
 
1:21 AM
@ScottW Felching? (why do I know that term?)
 
Erlang VM is designed around idea that you can hot swap everything at any time.
 
So you can have 99.999%-level uptime and still upgrade code.
It's not fancy.
It's really popular.
 
I like how people struggle to actually keep the like/dislike ratio on that video to 1:1
 
Tell my wife I said hello.
 
1:23 AM
lol
 
There are three memorable scenes.
This one, the wife one, and "what makes a man turn neutral".
@TonyTheLion One more time.
 
FYI: Daveed Vandevoorde's presentation on the future of modules ifrom BoostCon '12 is on YouTube now: youtube.com/watch?v=8SOCYQ033K8&feature=relmfu
 
yay I escaped
 
@CatPlusPlus All videos of the neutral president have 1:1 like/dislike ratio!
 
1:26 AM
Ooh modules.
@RMartinhoFernandes Lol.
 
@CatPlusPlus Beige alert!
 
Snappy response.
Let's write a better interface.
I'm bored anyway.
 
 
Yuck.
 
1:28 AM
Yuck.
 
No!!! Mine is crappier
 
@StackedCrooked Agreed.
 
@StackedCrooked Yes, it's OSX.
 
@CatPlusPlus No, the crap is not inherent in OS X.
It's a crappy app.
 
0
Q: C++ vector iterator: erase() last item crash

user1330734The following code checks if a ball overlaps with a brick. The brick is highlighted and erased from the list if the overlap occurs. I am experiencing a core dump when erasing only the last item in the vector brickWall. Commenting the erase() line, the code seems to work well. After looking throu...

Perhaps some of you geniuses will know this.. is erase-remove faster than the hand coded version? Does remove_if get clever with the swaps so it's not moving so many elements?
 
@RMartinhoFernandes You win
 
@RMartinhoFernandes That's a win by a large margin.
 
Erase-remove is less error-prone.
 
1:35 AM
@CatPlusPlus For sure.
 
pop_back()
 
@Collin Also, I reckon it can depend on the very concrete instance, but you really can't (shouldn't) go wrong with the std implementation.
 
So, what'd you improve in Mumble interface.
 
There's nothing in mine.
Just a list of users.
There's nothing else I use.
 
Sound is so crappy on that talk video.
Gaah.
 
1:41 AM
I'm going to put a webserver inside an Android app just to play video from not-a-file. I feel so dirty.
 
Why is he talking about iPhone.
Why is sound so crappy.
Gah, I can't do that.
My ears are bleeding.
 
@RMartinhoFernandes wow. just wow
 
@sehe I'm not joking
:(
It really seems like the easiest solution :(
"baus"
Ask the puppy, he knows.
Dec 8 '11 at 16:23, by DeadMG
anything becomes funny if you add LIKE A BAUS at the end
Amaranthus cruentus is a common flowering plant species that yields the nutritious staple amaranth grain. It is one of three Amaranthus species cultivated as a grain source, the other two being Amaranthus hypochondriacus and Amaranthus caudatus. In Mexico, it is called huautli and alegría and in English it has several common names, including blood amaranth, red amaranth, purple amaranth, prince's feather and Mexican grain amaranth. Amaranthus cruentus (Marathi:"राजगिरा" rajgira, "श्रावणी माठ" shravani maath) is a tall annual herb topped with clusters of dark pink flowers. The plant can ...
 
is a manga by Tomoko Ninomiya. It was serialized in Japan by Kodansha in the magazine Kiss from July 2001 to October 2009 and collected in 23 tankōbon volumes. A two-volume sequel, called Nodame Cantabile: Opera Chapter, which began serialization in the 10 December 2009 issue of Kiss, was released in 2010. It is licensed in North America by Del Rey Manga. The series depicts the relationship between two aspiring classical musicians, Megumi "Nodame" Noda and Shinichi Chiaki, as university students and after graduation. It received the 2004 Kodansha Manga Award for best shōjo mang...
 
2:03 AM
The Bouba/Kiki Effect is a non-arbitrary mapping between speech sounds and the visual shape of objects. This effect was first observed by German-American psychologist Wolfgang Köhler in 1929. In psychological experiments, first conducted on the island of Tenerife (in which the primary language is Spanish), Köhler showed forms similar to those shown at the right and asked participants which shape was called "takete" and which was called "baluba" ("maluma" in the 1947 version). Data suggested a strong preference to pair the jagged shape with "takete" and the rounded shape with "baluba". I...
 
My mumble connect button is greyed out
 
Check your internet connection?
 
I can see the webpage it puts up
 
Bad version?
 
@Collin What page?
 
@Collin What client?
 
1.2.3, on Fedora
Oh nevermind I'm dumb
 
@ScarletAmaranth I can hear the birds.
 
nite ppl
 
2:16 AM
Nite.
 
knight
 
2:31 AM
damn
replaced so many of the C++ Standard algorithms with map and fold
 
are there bots here that can be played with?
 
no
 
ah, I miss the bots, like in #emacs on IRC
 
I don't
 
@DeadMG Those two are very flexible.
 
2:44 AM
@RMartinhoFernandes I can tell.
having fun with functions like find, since I went ranges
gonna need a function for end()
if (x.Find(3) != x.End()) {
}
this no longer appears to be an improvement
 
What does Find return?
 
range, ofc
 
Return an empty one if it doesn't find anything?
 
indeed
but the pattern is still pretty identical to iterators- I guess that's just the nature of Find when you can't return one all-encompassing failure value
 
Yeah.
Alternatively you could return Optional(Iterator).
I don't like that idea much though.
 
2:50 AM
nope
 
Hurts composability.
 
I enforced in the range rules that iterators cannot be separated from their host ranges.
 
Optional(Range) then.
 
doesn't really change anything, which is why I figure that it's just the way Find has to work
ultimately, you're still talking about result := range.Find(value); if (result_is_valid()) { use_result(); }
 
2:52 AM
no matter what the type of result really is
 
Can't assign on the if?
 
actually, you can, but then how can you test it? the grammar only allows a variable declaration to exist on it's own
 
Go's ifs are two legged: if x := f(); x < 3 {
 
perhaps I should allow ranges to have explicit conversions to bool
 
It allows an optional statement before the condition.
 
2:53 AM
so you can be like if (result := range.find(val)) { shit; }
and twould be super easy to implement and specify for all ranges
 
@DeadMG That's good, I think.
 
y'know
it would be better, I think, to go with range.find(function(y) { return y == val; })
or at least to allow it
does functional peopley things have an algorithm which is equivalent to SQL's Where() malarky?
 
Haskell has filter.
Since it works lazily, it supersedes find in the style of C++.
 
I did explicitly allow lazy evaluation, and expression templates, actually
also
I skipped for_each and just used map with a return type of void.
you think that's a smart move?
bastard, I'm hungry but it's 4am
nah, just don't wan to awaken my flatmates
btw, does this basically indicate a complete policy reversal on Microsoft's part?
 
I came to C++, but it looks more lake Pascal in here hahaha
 
3:10 AM
@ScottW Looks that way
and who can blame them?
 
user457812
So, how many weeks did it take for Microsoft to realize they were shooting themselves in the feet?
 
river Pascal @Scott?
 
user457812
31208
 
user457812
I counted.
 
The owl settled the matter, I thought
 
user457812
3:13 AM
The owl's a shill.
 
hahaha I didn't notice, I typed that thing
because Pascal has the := assignments
 
user457812
Sometimes I don't notice I'm breathing and it's really awkward when I do.
 
@DeadMG Oh, good news.
@DeadMG So, there is a void returning map and one that returns a lazy range?
 
@RMartinhoFernandes Yes. Well, the output range has no requirement to be lazy.
also
overload for writing output that takes range?
yeah
 
Writing to the range?
 
3:24 AM
no, I mean, output as in Standard.IO.Output, as in cout.
also, I decided to implement re-directing the Standard I/O/E streams at the Windows API level for fun
 
@DeadMG Ah, writing a whole range out. How do you plan to handle separators on that?
 
@RMartinhoFernandes Optional parameter.
 
With logic to avoid a trailing separator?
 
yes
 
This irks me to no end in ostream_iterators.
 
3:27 AM
I doubt I will actually include such things
IMO they're not really worth it
easier to just specify range overloads for Read/Write
also, filter, bi-directional iterator, or forward?
I don't actually have any algorithms which require bi-directionality right now, I think
 
Forward is enough.
 
oh, sorry
 
@deadmg let me get this straight. Are you writing a new language?
 
I meant the return range
@Drise I am indeed.
 
Preserve same category as input?
 
3:31 AM
AAAAAAAAwesome.
 
k
 
WWWWtf phone?
OOh lord....
sigh I hate when this happens.
 
so right now, I'm down to
Map, Fold, Sort, Copy, Find, Filter
 
HHow do you plan on compiling?
 
with a compiler
 
3:33 AM
LLLol
 
anything you find particularly missing, robot?
oh, except heap, because I'm gonna write me an adaptor for that similar to queue
 
I'd add something for grouping.
 
merging multiple ranges?
does Haskell have such a thing built in?
 
No, picking groups out of a range. Say, turn 1..10 into {{odd: 1,3,5,7..}, {even: 2,4..}}
It can be done with several passes with filter, but having it in one pass is better.
 
3:36 AM
uh, result := { range.filter(...), range.filter(...) };
hmm
 
i c wut u mean thar
I also intend to add something like zip_iterator
 
A zip may be quite useful too, especially since you allow unpacking tuples directly into parameters.
 
or SQL's Join()
 
@DeadMG Oh :)
 
3:37 AM
@RMartinhoFernandes Right, but I don't allow unpacking ranges.
so arguably, a tuple of ranges is more useful and flexible than a range of ranges
 
Yeah, but you can zip two ranges, and then map a binary function.
 
oh, wait, my mistake
very true
hmmm
Zip is like Copy, it's probably better not as extension method?
I mean, x.zip(y), not necessarily the most intuitive ever
 
C# has it like that. I do agree it's not great.
 
but
 
zip(x, y) seems much more natural to me.
 
3:40 AM
I did specify and use extension methods for a reason
and one of them is that you can still do Algorithms.Zip(x, y) if you'd rather
or even just Zip(x, y).
although the first form is preferable for some other reasons
one of the reasons my List class is more awesome than std::list is because when you do c.Sort(), you can call the List Sort or the generic Sort in one call, whereas you can't do that in the C++ Standard lib
 
Yeah, I know that idea from C#.
I'm looking over Haskell's Data.List module. There's a bunch of specialized folds, which are not at all interesting (sum, and, all, etc). The more interesting ones I see are: scan, take, drop, span, partition, and set operations.
The names are not all obvious, so feel free to question about them.
 
nah, I haven't implemented anything that sounds even remotely like that
I have 7 methods on the List class, not including special members
insert, erase, size, swap, front, back
actually, I simply don't need the seventh method anymore, since I added implicit conversion from Container to range
although arguably that conversion counts as a method
 
"a couple issues" or "a couple of issues"?
 
"of" is more correct, but you also see the first form around
mostly in America
it's not the kind of thing I jump on as incorrect
Map Fold Sort Copy Find Filter Zip Group
obtw
if I have a Heap, does that mean I don't need a Priority Queue?
well, not really, I guess
 
@DeadMG We mostly don't know how to properly English
 
3:53 AM
A priority queue is a heap with one more operation than typical: increase-value.
 
but does that mean I can actually get away without defining both of them?
 
Efficient priority queues require some special heaps, like Fibonacci heaps or whatever they're called.
@DeadMG To be honest, I don't know a use for heaps other than priority queues and heapsort.
 
nah, me neither
 
So I wouldn't find it lacking if there was only priority queue.
 
I'll probably skip having heap then
obtw
 
3:55 AM
@DeadMG I think I'd start with priority_queue, and add heap as an adapter (sometime later, when/if a need arises).
 
does that also mean that I can't implement a priority queue based on some random container?
that it has to be a container, or thing, in it's own right?
 
Something with random access, probably.
 
@DeadMG You an implement it on top of nearly anything that provides random access.
 
@JerryCoffin That's cool. I can live with that.
the C++ prio queue also has this, so I feel good
 
You could implement one on a tree with pointers, but that would be close to worthless.
 
3:57 AM
@DeadMG Has what? You meant, it's implemented on top of a random access container? If so, yes, quite true.
 
@JerryCoffin Yeah. class Container=vector<Type>
 
@RMartinhoFernandes If you use pointers, you don't usually call it a heap any more. I think it's pretty well accepted that one of the properties of a heap is that its pointers are implicit.
 
one of the things I like about Wide
 
@JerryCoffin Hmm, yeah. I guess so.
 
I can say HashMap( key, value, allocator = object_pool, ...).
instead of in C++ where every Standard container's default allocator has to be new/delete
 

« first day (602 days earlier)      last day (4345 days later) »