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

00:09
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.
00:13
@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?
00:21
Functional.
woo, another day with positive rep!
I have -11 rep today :(
@DeadMG still eating strawberries?
where's the robot?
00:31
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.
00:41
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
00:53
@Pubby Gosh, what is that?
@StackedCrooked Y U NO DERE ANYMO' :(
OMG, it's spamming me too.
oh the robot is back woot :)
00:54
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. ;_;
01:01
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.
@TonyTheLion Watching.
7 day FPS challenge.
01:14
@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'
01:15
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?
01:16
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.
01:17
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
01:18
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)
01:19
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?
01:20
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?
01:21
@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.
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!
01:26
Ooh modules.
@RMartinhoFernandes Lol.
@CatPlusPlus Beige alert!
Snappy response.
Let's write a better interface.
I'm bored anyway.
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.
01:35
@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.
01:41
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...
02:03
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
@Collin What page?
@Collin What client?
1.2.3, on Fedora
Oh nevermind I'm dumb
@ScarletAmaranth I can hear the birds.
02:16
Nite.
knight
02:31
damn
replaced so many of the C++ Standard algorithms with map and fold
are there bots here that can be played with?
ah, I miss the bots, like in #emacs on IRC
I don't
@DeadMG Those two are very flexible.
02:44
@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.
02:50
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(); }
02:52
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.
02:53
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
03:10
@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
03:13
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?
03:24
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.
03:27
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?
03:31
AAAAAAAAwesome.
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
03:33
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.
03:36
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()
03:37
@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.
03:40
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
03:53
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
03:55
@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.
03:57
@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 (4572 days later) »