« first day (1329 days earlier)      last day (3637 days later) » 

user1804599
7:00 PM
@LightnessRacesinOrbit “who loves C++ (and OOP).” This part is important.
 
user1804599
“Embedded” is as well.
 
@LightnessRacesinOrbit CAPS LOCK name
 
@rightfold \o/
yeah you know someone's annoying when their name is in all caps
    —> part: (ROD_NOKEY) (ROD_NOKEY@RODRIGO.BRSTELECOM.COM.BR)
(Sigh) You know someone is annoying when their host is in upper case
 
80 answers and 600 rep speaks for itself
4
 
^ from the vault
@SamDeHaan looool
 
user1804599
7:02 PM
@SamDeHaan Q/A ratio 80/0 oof.
 
@SamDeHaan and he probably gets paid more than I do (cos my senior role is in the middle of nowheresville and nets me surprisingly little) :(
 
Oh cool. The VS2013 bug that I filed is fixed in update 2.
 
user1804599
Shit, I just divided by zero. THE UNIVERSE WILL COLLAPSE!
 
user1804599
@LightnessRacesinOrbit oof
 
7:04 PM
@LightnessRacesinOrbit well, what can you expect if you spend the majority of your working hours on SO? :)
 
@rightfold "80:0"*
@StackedCrooked well, fair point
 
user1804599
Then it would be a Q:A ratio. :(
 
still, I'm keeping that place afloat
 
lol I'm surprised Benjamin Lindley is apparently the only one who understood OP.
 
user1804599
s/OP/OOP/
 
7:04 PM
@rightfold Well, more to the point, it would be an actual ratio.
 
@Nallath 6 now. Welcome :)
 
@Rapptz IMO he was wrong given the content of the question as posted
 
user1804599
Why is Twitter recommending me to follow car brands.
 
and I know you're going to flame me for that so just get it over with
 
user1804599
Twitter knows I’m doing driving lessons.
 
user1804599
7:05 PM
TWITTER IS THE NSA.
 
iunno, that's how I read it too.
Mostly because of the cout <<
 
you mean where he says "I don't want to do cout << "? Yeah, man..
bus in 8 mins BYEEEE
 
no his code
cout<<l%8;
 
@rightfold Because they will get you places!
 
My twitter recommendations are mostly programming related.
 
7:09 PM
I'm a wreck. We were supposed to be camping with the scouts (parents inclusive weekend!), but then my daughter got sick and I'm under the weather too.
 
user1804599
I’m a PHP programmer. What is this difference between value and representation thing?
 
Turns out, it's really really hard to read your daughter certain chapters of "Uncle Tom's Cabin" without lengthy pauses and... let's say very convincing voice acting.
 
user1804599
@sehe That ellipsis is a nice one.
 
@StackedCrooked My twitter recommendations are mostly ignored.
 
@rightfold i think it's like the bits vs bytes thing
bytes representing bits etc
 
user1804599
7:10 PM
 
not sure if smiley or screamy
 
user1804599
> 13-jarigen die "praat money of praat niet" tweeten terwijl ze hun euroshopper energy afrekenen van papa's arbeids-ongeschiktheid uitkering.
 
In de camping op Pukkelpop is het de gewoonte dat er "hoeren!" geroepen wordt telkens er een trein passeert.
^ Trivia of the day.
 
user1804599
Sukkelpop.
 
7
Q: Why can't I initialize a reference to `ofstream` / `ifstream`, with an instance of `fstream`?

Filip Roséen - refpINTRODUCTION void read_foo (std::ifstream& out); void write_foo (std::ofstream& out); I have these two functions where one is supposed to read from a file, and the other is supposed to write to one. Everything works having the below snippets; std::ifstream ifs ("filename.txt"); read_foo (i...

I initially wrote that for a friend, but then I thought "heck, might as well post it on SO"; the standard question.. what's up with the downvotes, what am I missing?
 
7:20 PM
@rightfold not sure if you can understand this @sehe? (warning, really stupid)
 
@LightnessRacesinOrbit ^ any ideas?
 
user1804599
@StackedCrooked uitspraak wel
 
user1804599
Written text I cannot read that quickly.
 
yeah, ignore the text
 
@StackedCrooked lolwut
 
7:21 PM
damn, such stupid lyrics
 
@rightfold +1
 
user1804599
Also.
 
user1804599
Who the fuck makes a song about verandas.
 
user1804599
> Zeit gij veranderd van veranda?
 
it's about a guy announcing that he is sitting in the veranda
 
user1804599
7:23 PM
Songs with such lyrics remind me of Waterscooter.
 
@rightfold lol
 
user1804599
Who makes songs about water scooter claxons. :v
 
@rightfold where's the time
 
user1804599
This one is horrible as well. youtube.com/watch?v=zeg6CvE1Smg
 
Naam familienaam seems to be her biggest hit.
 
user1804599
7:28 PM
Godverdomme I just wanted to click that link and then you shrunk it.
 
verdomme toch
 
user1804599
@StackedCrooked Is there a subwoofer in her throat?
 
lol
this is hard to listen to
 
user1804599
This one is nice. youtube.com/watch?v=-G-mSw29BIM (lol 0:24)
 
user1804599
What is it with the Bin Laden pictures.
 
7:33 PM
Wow, they managed to merge the compilation times of templates, the general verbosity of C++ and the unreadability of regexes, I'm seriously impressed. =) — Matteo Italia 2 mins ago
haters gonna hate
 
user1804599
Best musician is still Stijn Kosterman.
 
Stijn Kustmeklotenman.
 
user1804599
I like Epica as well. And WT.
 
@StackedCrooked What. The. Hell. Avantgarde Vlaamsche cult pop with bad 80s dancing?
 
@sehe I'm as clueless as you.
 
7:37 PM
I'm not clueless
 
I just heard that veranda song on the radio and looked it up.
 
user1804599
@StackedCrooked You’re so clueless.
 
clues don't like me
 
probably for good reason
 
user1804599
Misschien moet je Cluedo spelen.
 
7:38 PM
@MatteoItalia I'm surprised you could report on the compilation times so soon (~5 minutes) after me posting the answer. Congrats. — sehe 4 secs ago
 
user1804599
@sehe hahahahaaalal
 
user1804599
 
Oh dear. Belgian King Albert did a second long television interview without permission of the royal court. Such anarchy.
 
user1804599
Is there some obscure text encoding that is not compatible with ASCII letters?
 
7:43 PM
> King Albert, who is about to turn 80, has given an interview to the independent Francophone broadcaster RTL-TVi. In the two-hour broadcast the king, who stepped down as head of state last year, speaks about his life and his reign.
I wanna see it. It will air next week.
 
EBCDIC
 
user1804599
Nice, thanks.
 
On unrelated note, Maria Bamford owns
 
0
Q: What IDE is on the picture?

LPeter1997I just fell in love with the style of it. What IDE or text editor is that? (I know it's probably not unequivocal, but I hope someone recognizes it)

 
user1804599
@StackedCrooked King Albert piercing.
 
7:47 PM
Title of the day:
-7
Q: Answer this one

user42577i'm expecting return value must be 0 .but compiler gives me value 10.How can this possible ? import java.util.*; class Example1{ static int searchArray(int[] xr,int value){ int i=0; for(;i<xr.length;++i){ if(xr[i]==value){ return i; } } return i; }...

 
@Mysticial nice try
@Mysticial I cannot comprehend how they can't be bothered to at least get the code block formatting right.
 
user1804599
@Mysticial Can we close as “OP is a fucking asshole?”
 
Oh god, it got two answers...
 
@Mysticial the title probably helped. Without it, they might not have known what the OP wanted
 
@Mysticial don't mind of them they are repwhores :P
 
7:52 PM
@40two They're low-rep users. So it's hard to blame them for repwhoring.
If it was a 10k user, then yeah...
 
user1804599
@Mysticial You have no right of speaking about repwhores.
 
@rightfold LOL
 
ow
 
Someone started a fire, someone started a fire...
 
Christ, you're up to >12,000?
 
user1804599
7:55 PM
@40two Quick, extinguish it with rum!
 
Meanwhile @Mysticial withdraws in silence..
:D
 
@StackedCrooked shhhhhhh :D
 
user1804599
@StackedCrooked Zoekt Excentis nog personeel?
 
@rightfold yep, altijd
 
user1804599
Nice.
 
user1804599
7:58 PM
“Nee, Gent.”
 
@rightfold yo ho ho and a bottle of rum
 
user1804599
s/rum/cum/
 
user1804599
Is Boku no Pico nice?
 
user1804599
My colleague keeps talking about it.
 
@rightfold Never bothered to watch it.
I'm certain it's pretty bad.
 
user1804599
8:01 PM
OIC.
 
user1804599
> Shotacon, sometimes shortened to shota, is a Japanese slang portmanteau of the phrase Shōtarō complex and describes an attraction to young boys, usually from an adult individual.
 
user1804599
Yup, seems pretty bad.
 
Oh, it's really gay hentai.
I always thought it was just gay ecchi or something.
 
user1804599
Francis no Pico.
 
8:04 PM
You don't. Why do you assume that? It's just a lot more maintenance friendly than boost::multi_index::index<MultiIndexContainer, age>::type const& by_age = get<age>(es), I think. In cases like these, "spelling the type out" doesn't even add any documenting value, since the type is just a type-function expression, and as such says exactly as much as autosehe 2 mins ago
@40two Longstocking!
@SamDeHaan zing
 
Pippilotta Victualia Rolgordijna Kruizemuntina Efraïmsdochter Langkous
 
user1804599
セヘせんぱい〜〜〜〜〜
 
user1804599
8:20 PM
OMG PIPPIE LANGKOUS <3
 
In French she's known as Fifi Brindacier.
 
user1804599
Silly French not acknowledging real languages.
 
For the record, the character is Swedish.
 
user1804599
わたしはばかです。
 
8:36 PM
@rightfold Ha! I understood that!
 
She has nice denture though...
 
8:51 PM
@40two good memories
 
Yeap
Indeed
I was then that we were kids
@StackedCrooked then we got in acquaintance with vaginas and all this purity faded away
 
@user3707153 It's not the type; it's a compile-time type expression that evaluates to the actual ordered_index type. The real type can be seen with typeid(T).name() and c++filt or by using the compiler against itself: struct {} _ = get<age>(es);sehe 1 min ago
> KIO ESTAS KIU
 
user1804599
@StackedCrooked ば〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜か〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
 
I'm starting to question whether it was a good idea to introduce the; "instantly close as duplicate, if one has a gold badge in <tag>"
more than once today have I seen questions that link to "duplicates", which aren't really dupes:
0
Q: How to call a copy constructor from assignment operator?

yejepclass A { ... A(const A & a) { *this = a; } A & operator=(const A & a) { if (this != &a) { ... } return *this; } } Here constructor calls the operator, and I want the opposite.

646
Q: What is the copy-and-swap idiom?

GManNickGWhat is this idiom and when should it be used? Which problems does it solve? Does the idiom change when C++11 is used? Although it's been mentioned in many places, we didn't have any singular "what is it" question and answer, so here it is. Here is a partial list of places where it was previousl...

the former sure isn't a duplicate of the other
 
8:58 PM
@FilipRoséen-refp as someone with the same superpower(?) you can undo it, I believe.
 
if anything it's a dupe of questions similar to
0
Q: Calling Class Constructor in Member Function [C++] [Solved]

DragonClawHere's a program, where I am trying to call the class constructor multi::multi(int, int), in the function void multi::multiply(). The output is 30 30 instead of expected 30 25 Why? #include <iostream.h> class multi{ private: int a; int b; public: ...

 
I remember in my first year of Japanese classes a student asked the teacher how to she memorizes the hiragana. She said she doesn't know and that に just really looks like "ni".
 
@DeadMG Why are self-assignment checks bad?
 
@sehe oh, really? I didn't know that
 
@BaummitAugen they are so 2003
 
9:00 PM
@BaummitAugen Self-assignment typically means a bug in your program and is very rare, "optimizing" for it pessimizes the real uses of the assignment operator for no benefit. If you are self-assignment-checking for correctness then your assignment operator is definitely broken.
 
user1804599
@StackedCrooked Hangul is easy to remember, since most symbols look like the shape of your tongue when you pronounce them.
 
@sehe but I can probably not cast another close-vote immeditely after, can I?
 
I dunno
 
there are questions where I'd like to "reassign" the "duplicate of"
 
Thanks.
 
9:00 PM
@DeadMG Self-assignment check used to be idiomatic in the copy-assignment operator before copy/swap became well known.
 
2
Q: Should my superpowers have allowed me to reopen this question?

Frédéric HamidiA few minutes ago, my newly acquired superpowers have allowed me to reopen this question with a single binding vote. Disclaimer: Before voting, I took care to select a question that I believe could be reopened without causing much harm to the community. Feel free to close it again if you ...

 
yes
but "used to be" is the key thing there.
 
@rightfold hm, interesting
 
if you actually check, it doesn't optimize in general at all because self-assignment is so rare, and the value of even permitting self-assignment is questionable since who in their right mind self-assigns? You would never intentionally perform such an action.
 
@StackedCrooked that's the correct way to teach it, IMO.
 
9:02 PM
self-assignment typically means a bug in your program, and optimizing for it is a pessimization because it's such an uncommon case.
 
I must say, that's the main reason I stopped conservatory: I couldn't fancy myself "teaching" or "explaining" students the difference between a fourth and a fifth aurally.
It's just something that should be "immediately apparent", from much training. It makes zarroo sense to keep going at things like this with rules of thumbs and mnemonics.
@DeadMG except if you're writing lowlevel ownership containers - much like with new/delete, AFAICS — sehe 3 mins ago
 
@sehe Even in that case.
 
Oh well. I suppose you would "park" the value somewhere safe (to get the exception guarantee?). I wouldn't always
 
there is nothing special about those containers- if you have written an exception-safe assignment operator it will be safe to self-assign.
and "optimizing" for self-assignment is, as I've said, a joke, and it's no different for any type.
 
user1804599
@StackedCrooked おれさまはスタクツクロクツくんよりもすぐれている!
 
9:04 PM
@DeadMG I've seen "optimizations" in our codebase: if (a != b) a = b; for fucking integers
 
lol
 
yeah, two instructions must certainly be faster than one
 
@StackedCrooked the compiler will optimize that, yes
 
user1804599
> In the Hunmin Jeong-eum Haerye account, the basic shapes iconically represent the articulations the tongue, palate, teeth, and throat take when making these sounds.
 
@StackedCrooked and branching!
 
9:05 PM
heh, I didn't even consider that
 
@rightfold s/account/accent/?
 
@sehe Assuming that a and b are not volatile and such.
 
user1804599
@sehe go edit it. vOv
 
user1804599
Dunno.
 
What does it mean, then? It's your quote, and I'm trying to make sense of it
 
9:05 PM
intuitively, I can't think of a scenario even involving concurrency where that code would make sense.
but you couldn't legally optimize it if threading side-effects are involved.
 
user1804599
@sehe It means that Hangul is a sane alphabet, unlike most alphabets.
 
@DeadMG you are cutting way too much slack
 
nah, I'm not debating that it's batshit insane regardless
I'm merely pointing out that the compiler can't optimize it if threading side-effects are involved.
 
well. thanks!
 
'k zit in mijn veranda
dammit it sticks in my head
 
9:10 PM
time for drugs.
 
get high
 
user1804599
@StackedCrooked eh zenne
 
user1804599
Hedde gij ook een schuifaf?
 
that's not my dialect dude
Onder Brabants verstaat men in de taalkunde een groep Nederfrankische variëteiten waartoe het grootste deel van de dialecten die worden gesproken in de Nederlandse provincie Noord-Brabant en in de Belgische provincies Antwerpen, Vlaams-Brabant en Oost-Vlaanderen (rond Aalst en Ninove) behoort. Volgens een wat ruimere, alternatieve definitie vallen ook het Zuid-Gelders en de dialecten van noordelijk Nederlands-Limburg en het land van Hulst (de Brabants-Limburgse overgangsdialecten) en westelijk Vlaams-Limburg nog onder de noemer "Brabants". Het Brabants en het Hollands zijn de twee meest ...
 
user1804599
Brabant or GTFO.
 
user1804599
9:14 PM
> Onder Brabants verstaat men …
 
user1804599
ahaha dat pun
 
@rightfold ik wit nie wa of da es
 
user1804599
Eej kulleke komde gij is gouw hier. Of waarde gij soms wat anders van plan?
 
Zeeuws sometimes sounds very much like West-Vlaams.
 
user1804599
Hey that’s weird Brabants is like Brabants.
 
9:18 PM
only if we think they have a heavy Flemish accent
 
user1804599
I like Brabants very much.
 
user1804599
I think Noord-Brabant is the best place in the observable universe.
 
user1804599
 
It sounds slightly more friendly than West-Vlaams.
 
user1804599
9:21 PM
> Oe bakkes houwe en bleehve, of opzoute.
 
user1804599
> Mar als gij door nen schoorsteen flikkert, dan krijde zwarte vegen.
 
7
Q: The Stack Overflow homepage is over-emphasizing bad questions (and a proposed solution)

David FullertonWe made a change quite a while ago to the homepage of Stack Overflow which was well-intentioned, but I'm starting to think may have been a mistake. The change was to switch Stack Overflow away from showing all recent activity to showing a slice of recent activity. So far so good: there's too muc...

 
user1804599
-1 mockup is not free-hand drawn. — rightfold 25 secs ago
 
And meta goes down...
Only for a minute...
 
user1804599
9:32 PM
 
user1804599
Chat is really horribly borked.
 
user1804599
@StackedCrooked Vlaams sounds funny.
 
^ Brabants
 
user1804599
Alle Vlaams.
 
user1804599
Algemeen Beschaafd Brabants
 
9:34 PM
Kortrijks, Limburgs, sound very different.
I suppose the same goes in NL
 
user1804599
Limburg is weird.
 
Fries != Zeeuws :P
 
user1804599
Noord-Brabant FTW.
 
666
A: What is move semantics?

FredOverflowI find it easiest to understand move semantics with example code. Let's start with a very simple string class which only holds a pointer to a heap-allocated block of memory: #include <cstring> #include <algorithm> class string { char* data; public: string(const char* p) { ...

evil :)
 
The Number of the Beast
 
9:37 PM
0
Q: Should we really mark new questions as duplicates of old crappy ones?

Filip Roséen - refpIntroduction I'm guessing this applies to all tags, but in c++ we currently have issues where new questions are marked as being duplicates of older, not very well written, questions. Surely, the old question was first, but it sometimes feel like it would be better to start off from scratch, wri...

 
user1804599
Zeeland is full of gristengekkies, Limburg is full of motorcyclists, Zuid-Holland, Noord-Holland and Utrecht are full of mocros, Gelderland, Overijssel and Drenthe are never in the news, Groningen suffers from earthquakes, Friesland is hipster with their silly language and Flevoland has Urk. See? Nothing bad about Noord-Brabant.
 
@FredOverflow I can unupvote you back to 666. :)
 
user1804599
Upvote him to 777.
 
I think moving a file vs copying a file is a good analogy. (Moving is much faster but not free.)
2
 
We are bringing up database servers in the JYC data center, there may be minor blips while we heavily sync replication
 
user1804599
9:38 PM
@StackedCrooked And it just copies a pointer and deletes the original.
 
user1804599
It’s so fucking similar!
 
user1804599
@Feeds Yeah we already noticed you slowpoke.
 
user1804599
The F in Feeds is for “fucking slow.”
 
@FilipRoséen-refp I very much like the organization of your questions and answers dude it's like reading a presentation
 
9:41 PM
@FilipRoséen-refp Again? Really?
 
user1804599
> The subsidy to the multicultural institute FORUM stops put from 1 January next year.
 
user1804599
Huh? Since when do they do sane things in the Netherlands?
 
Are you aware that the discussion for related things is this chatroom and not meta?
 
@rightfold I spent the whole day implementing detection and forbiddal (?) of recursive calls in Karel. Now I cannot remember why I wanted to forbid it in the first place :)
 
user1804599
How the fuck do you forbid that, and why?
 
user1804599
9:42 PM
What if I pass around function pointers?
 
Karel does not have function pointers.
 
user1804599
What about mutually recursive calls?
 
user1804599
Don’t forbid recursion. It’s a silly thing to do.
 
user1804599
Implicit stacks are handy.
 
why bother forbidding recursion?
 
9:43 PM
private def illegalRecursion = {
  if (targetLevel < 3) {
    recursiveCommands.map(w => Diagnostic(w.pos, "recursion is not allowed yet"))
  } else Vector.empty
}

// This is horribly inefficient in theory, but fast enough in practice
private def recursiveCommands = {
  for {
    def_ <- reachableDefs
    callee <- calleesOf(def_)
    reach <- reachableFrom(callee)
    if (reach eq def_)
  } yield def_
}
 
@FredOverflow forbidding recursion is a sin
 
@DeadMG Because I don't want students to use recursion before I introduce it in week 3 :)
 
lol
 
But yeah, I'm probably gonna back it out. It's not like they are going to stumble upon recursion by accident.
 
@FredOverflow well, if so, that would be a good thing.
 
9:45 PM
the first time I tried recursion I got stack overflow
 
user1804599
@FredOverflow Why not?
 
@FilipRoséen-refp answered
 
user1804599
You said 90% of your students didn’t do anything fun during spare time.
 
user1804599
So it’s incredibly unlikely they will use recursion (using recursion is hard when not doing anything).
 
What kind of course is this?
 
9:47 PM
@rightfold I... don't know.
 
@FredOverflow looks like scala
 
@BenjaminGruenbaum It is Scala.
@crasic total noobs
 
user1804599
Praise the students who are interested and discover stuff.
 
user1804599
Don’t punish them. :v
 
Honestly this entire thing is starting to piss me off.
ffs
 
9:48 PM
@FredOverflow that makes sense, I thought you were discussing your language or something that just looked exactly like scala :P
 
@BenjaminGruenbaum My language does not even have a type system :)
 
@FredOverflow 668: the next-door neighbor of the beast.
 
@FredOverflow how would that work?
 
@BenjaminGruenbaum barely
 
@JerryCoffin Where I live the next door has number N+2 (and the house on the opposite side of the street has N+1).
 
9:49 PM
@Rapptz "Again? Really?", where is the other meta.stackoverflow post on the matter?
 
user1804599
ugh
 
lol
Anyway, I don't understand the point of forbidding recursion.
 
user1804599
Epica is performing at Pinkpop.
Rolling Stones is performing at Pinkpop.
I am not at Pinkpop.
 
user1804599
;_;
 
I can totally understand penalizing it when it's slower, but I don't understand forbidding it.
 
9:50 PM
@FilipRoséen-refp I meant that you're still talking about that question and answers.
 
@BenjaminGruenbaum thanks for the answer!
 
@BenjaminGruenbaum All functions take no parameters and return void. There are no variables. Conditionals are the only kind of expression, so you could say there is a type bool, but it is the only "type".
 
Instead of "recursion forbidden"
"see me for extra credit"
 
@StackedCrooked yes, thus 668 (not 667) being the next-door neighbor.
 
@Rapptz now, I'm talking about all questions which suffer from the same problem; but that question is a perfect example of what I'm referring to.
 
9:51 PM
@BenjaminGruenbaum I think the only point to forbid recursion is so I can learn Tarjan's algorithm ;)
 
@FredOverflow no variables? So a fixed number of registers?
 
@BenjaminGruenbaum No registers either.
 
@FredOverflow Targan's as in the one with the SCCs?
 
user1804599
@BenjaminGruenbaum You have a 2D grid where beepers can be placed by a robot. They are the memory. You can move the robot, place and remove beepers and test for the presence of beepers.
 
9:51 PM
@FilipRoséen-refp I completely disagree.
 
@Rapptz but yes, I'm still talking about this issue.. and you are still barking in saying how much it sucks; I'm guessing we are two sides of the same coin.
 
@JerryCoffin oh, I thought "next-door neighbor" meant the next next house.
 
I'm not sure how that's related, but that's a pretty nice algorithm, I remember it from the second year of my first degree.
 
@Rapptz I know you do, but that doesn't mean that I will start agreeing with you
 
but I don't English
 
9:52 PM
@FredOverflow oh, so like a TM where you start with a sort of tape which you can manipulate?
 
Nov 8 '13 at 21:05, by FredOverflow
user image
(prototype with second-order functions)
 
@FredOverflow Why not logo? On the other hand, why not one of the logics programming languages?
 
user1804599
@FredOverflow YOU USED RECURSION THERE.
 
Like, what's it called with the pre/post/del I actually used the other day.
 
@BenjaminGruenbaum Because you cannot compute anything interesting with Logo?
 
9:54 PM
@FredOverflow Logo is LISPy, you can do a surprising amount of things with it.
 
@rightfold Well sure, that's from week 3 :)
 
Now I'll go crazy until I remember its name.
 
@BenjaminGruenbaum pre and post sounds like design by contract
 
2
A: Possible compiler bug in MSVC12 (VS2013) with designated initializer

diapirIt is a known bug. It is said to be fixed in the next version of MSVC.

 
user1804599
Do this with a real robot.
 
9:54 PM
@FredOverflow STRIPS, got it.
 
"it is said to be fixed", yup; that's the best way to talk about bugs "fixed" in newer versions of msvc
 
The classic example for it is a robot btw.
It's a problem in planning.
Found it by googling "AI, pre, post, del" theimpactinstitute.org/Teaching/CS4725/Planning-Class2.pdf
 
@FredOverflow +1 for introducing higher-order functions in programming 101
It should be a natural thing to do.
 
It's one of the first weeks in AI, although I would not do intro to cs in it probably
 
@StackedCrooked I backed them out for now, it's probably a bit much in the first few weeks of programming :)
 
user1804599
9:56 PM
@FredOverflow void() atWall please.
 
Freshman computer science was taught with SICP here
 
@40two thanks, I do my best :-)
 
@StackedCrooked seen Dijkstra on teaching Java instead of Haskell?
 
although targeted at engineers and not non-programmers
 
@BenjaminGruenbaum no, doesn't ring a bell
 
9:56 PM
@rightfold Do you have a problem with the syntax? :)
@BenjaminGruenbaum linky?
 
user1804599
@FredOverflow At least demonstrate the actor model.
 
@rightfold lol
 
Sure, why don't I go ahead and put Monads into Karel?
Guys, this is first contact with programming.
 
user1804599
@FredOverflow how about a multithreaded Karel with multiple robots?
 
9:57 PM
@rightfold That sounds kinda fun...
 
user1804599
Where you can spawn as many robots as you want.
 
@rightfold I would not mention threading in an introduction to CS course
 
user1804599
You don’t need threads to implement the actor model.
 
@BenjaminGruenbaum wow
 
@FredOverflow Hmm...I think unlambda sounds like more fun. I guess you could say it has a type (function taking a function as its sole parameter, and returning another of the same)--but with only one type of object, it's pretty hard to call it a type system.
 
user1804599
9:58 PM
Coroutines work as well.
 
right, but it's still a notion of concurrency.
 
user1804599
Concurrency is the best thing ever.
 
Concurrency is very hard for someone struggling with what a conditional or a loop is.
 
Anyway, w.r.t. the question (i.e. stackoverflow.com/questions/610245/…) I'm thinking of just removing the entire "Background" stuff from the body.
 
I still struggle with concurrency :D
 
9:59 PM
The only answer it might possibly invalidate is stackoverflow.com/a/610579/1381108 but then again it might not at all.
 
user1804599
Concurrency is very hard if you use low-level primitives, but that holds for almost everything.
 
Every problem becomes oh so much harder when you look at its concurrent version. You don't want people who never heard of a for loop to struggle with race conditions.
 
@BenjaminGruenbaum thank you
 

« first day (1329 days earlier)      last day (3637 days later) »