« first day (429 days earlier)      last day (4524 days later) » 

2:02 AM
@Xeo You're abusing the system!
 
Xeo
Totally
I'm hiding my edits to my own questions in this flood, hoping to garner rep from them
 
Xeo
2:22 AM
Oh, yeah, @Mysticial, for reference: This answer was edited 14 times by the same user, and didn't get converted to a community wiki.
 
cpx
after reaching 500 flagweight now I get +2 per spam report.
hmm
 
user406009
What are your guys opinions on coroutines?
 
@cpx After a while you get less than one.
 
user406009
Is it generally simpler to use them or the equivalent of storing state in a class?
 
Xeo
@cpx I get less than 0.4 per flag
 
2:30 AM
Hmm, such a big wishlist, so little that made it. open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1901.html
 
@RMartinhoFernandes I sympathise with Item #1....
 
Xeo
@KerrekSB Submit yours to the committee. :P
 
Xeo
> Badge progress Copy Editor 250 edits (50% done).
I think that's enough for now
 
Xeo
2:32 AM
nearly 80 edits
 
damn
why did I stop playing Starcraft 2?
 
Xeo
To work on your language
 
too cold
also, I need to think about it for a while, not bash on the keyboard at it
 
> Singleton template (like in the Loki library) and probably also generic implementations of other common patterns. Assaf Lavie adds a request for machine-wide singleton classes.
gasp How could this be on the C++0x wishlist?
 
ewwwww
I need to improve my grammar
cut some cases which are just silly
like { mahtype := type {} }.mahtype variable;
 
2:43 AM
Why?
If the user wants to write that crap, let him.
 
because for one, Bison bitches about the ambiguities when they're not really ambiguous
also, it makes me nervous that they're more ambiguous than I think
nah
it's fine
I looked at the ambiguities again and they're really not that ambiguous at all
 
Xeo
So, with all that editing done, I'm off to sleep. G'night.
 
also
how would you feel about identifier { function_arguments } instead of identifier ( function_arguments )
 
For function calls or definitions or both?
 
definitions
if I changed both it would defeat the point of the exercise :P
I could lose var if I did that
 
2:51 AM
It feels weird.
 
well
 
f { int x } {
    return x;
}
 
I figure it's basically the same as the existing type { shit } syntax
 
It's probably my bias from using f() all these years.
 
yeah
 
2:52 AM
But I realized I'm seeing } { a lot in my code now.
 
having definitions and calls look the same is not helpful when designing a grammar that needs as much flexibility as mine
 
I think it might be acceptable. But you probably know what my solution would be.
 
function keyword
 
heh
trying to keep the keyword count as low as possible, really
 
2:54 AM
why? you should reserve a bunch of stuff you don't even use
 
@Pubby What for?
 
so you can add new syntax without breaking old code
 
keywords should be limited so as not to break user code
 
I can introduce new semantics through my ridiculously flexible compiler interactions
I don't need new keywords
 
2:55 AM
C# added a lot of new syntax without adding any keyword after v1.
 
Doesn't that make it harder to parse?
and c99 style with all the _ isn't good either
 
That's @DeadMG's problem.
 
what, contextual keywords?
or ridiculously flexible compiler interactions?
 
Also, by the time he has to evolve the language, he'll probably have a compiler written in his own language.
And be super skilled at making changes to it.
 
unless I intend to invent my own compiler generator, then I'll probably still be using Bison for the grammar
although I do intend on replacing the rest
 
2:58 AM
You ever get a rough specification created?
I would be interested in reading about it
 
sure, it's called, my implementation :P
 
:(
 
to be honest, actually completing it seemed so far away for so long, I felt that I'd be specifying something that would never be created
but now that I'm working semantic analysis right now, soon I might actually be writing the Standard library and such funbuckets
 
how's the library going to work? Different from C++'s?
 
@Pubby The best way to learn about it seems to be by being around when he's having trouble :)
 
3:01 AM
eh, it won't really be that different
fix some design flaws in iostreams and iterators, cover a few more things than C++
cover a shitbunch of stuff that C++ can't cover because it isn't as powerful
 
how's it more powerful?
 
you can execute arbitrary code at compile-time
including mutation of compiler structures like types, functions, etc
in WideC there's no such thing as a template, merely a function that takes a type
 
hm, does that work out?
 
yep
makes writing semantic analysis not so trivial, though :P
 
Btw, can functions take arbitrary pieces of AST?
 
3:07 AM
I'm fairly sure that they can take arbitrary pieces of semantic data
not AST data
 
@DeadMG Well, data like statements?
So that you could, say, implement your own optimizations.
 
@RMartinhoFernandes did you ever look at that language I posted?
 
yes
if you want to mutate functions, then you need to be able to deal with statements
 
Damn, "implement your own implementations" is silly.
 
in fact
 
3:08 AM
@Pubby Hmm, I don't think I saw that.
 
here's something you'll like about throws specs
if the throws spec is fixed at compile-time for a run-time interface, then you can automatically convert a function from exceptions to C ABI return codes, and back again
completely voiding the ABI problems with exceptions
 
@RMartinhoFernandes it was like C with macros with haskell synatx, does that make sense?
 
and I have also plans with how to deal with the ABI problems of name mangling
 
@DeadMG Like calling a fopen that throws?
 
no
 
3:10 AM
The other way around?
 
well, effectively
the compiler translates the exceptions under the hood, as it were
so for the user, it's totally seamless that they crossed an ABI boundary
 
@Pubby I don't remember that. Can you post again?
 
@Pubby So, a terrible language, a horrific language feature, and then the worst syntax.
 
this couldn't possibly go wrong
so
 
3:11 AM
Template Haskell is pretty neat btw. It also lets you mess with AST directly.
 
all I need to do is consider the ABI problem of Standard class representations
 
The hello world of Template Haskell is a compile-time checked printf.
 
then I will have almost completely solved the ABI problem
if not solved it totally
@RMartinhoFernandes Meh- format strings suck dick no matter how much you check them.
 
@Pubby That looks really weird.
@DeadMG My point is, it's something you can't do in C++.
 
3:14 AM
you can in C++11, I believe
in fact, I thought that was the Variadic Templates Example 101
 
You can't check the format string at compile time.
 
@RMartinhoFernandes I wanted something where the only thing you have is goto, and the rest can be added with pattern matching and ast modification
oh, and functions
 
well
whilst you certainly could check the format string in WideC
you can bet that I will not be offering a single format string or any such bullshit in my Standard
 
@RMartinhoFernandes From what I've seen Johannes show, you can with constexpr.
 
although strictly speaking, I would offer the ability to call into printf with my C++ integration
 
3:16 AM
@LucDanton You can't write a constexpr printf.
 
you could take a Boost MPL string
 
@RMartinhoFernandes Johannes regularly dereferences const char* parameters in constexpr functions -- what more do you need?
 
For printf? The ability to output stuff?
 
sure
why not
 
You may be able to do it, but I don't see how you can with the same syntax: printf("%d\n", 10);
 
3:19 AM
sure
but why would anyone ever want to do that?
format strings are disgusting
they should be burned at the same stake as macros and array to pointer decay
 
what is wrong with array to pointer decay?
 
It's sneaky.
 
does wideC even have arrays?
 
user406009
Boost::format allows format strings like C
 
user406009
@RMartin Use that if you wish. It works quite well.
 
3:30 AM
Well, better.
Format strings that don't encode the type information.
That's what is so bad about printf strings.
 
user406009
boost::format is type safe
 
user406009
You will not get a segfault for giving it the wrong type.
 
It's also extensible.
I can easily output my own types.
 
user406009
If only the people who wrote the standard library used something like boost::format instead of the way iostreams does it.
 
@Xeo That's interesting... Maybe a mod stepped in unwikied it...
 
3:44 AM
Kim Jong Il has kicked the bucket.
 
looks like there won't be christmas this year
 
4 hours ago, by DeadMG
oh wait, I only love the infinitely small part of her that fits into our universe
@DeadMG lol.
 
I always spend too much time writing what could've been a simple answer to a question..
 
lulz
 
3:58 AM
0
A: strange behavior of scanf for short int

refpMost answers in this thread are not far from being completely wrong! The most likely reason for m being 0 in your snippet is because you assign m to have this value in the body of your if-statement, but since the code contains undefined behavior no one can say that for sure. The likely story ...

I mean, what the flux was I thinking?
 
@Mysticial So, you're actually an expert in group sex, huh?
 
lol, realign the girls.
3
 
@RMartinhoFernandes :)
 
I believe that you should aid me, and give me the credit I deserve. Where are my fcuking cookies!?
 
> +1 for that freehand uniponycornthingadongdong – The Unhandled Exception 12 mins ago
Yay!
@refp Check your browser after searching for porn. I'm sure your fucking cookies are there.
 
4:02 AM
@RMartinhoFernandes lol. he does Incognito Browsing, no cookies stored
 
@RMartinhoFernandes I grep:ed the shit out of the cookie file, nothing that has anything to do with porn to be found.. of course I use google chrome in Incognito mode when pronsurfing
@IntermediateHacker great minds think a like.
 
Nope. Mediocre minds think alike. Great minds are unique.
 
Why is it when I write a really good and well formatted answer no one cares to up-vote it?
@RMartinhoFernandes There is no free will, and no one is unique.
 
@refp What about me? I upvoted it.
 
4:03 AM
@refp It's already the top voted answer.
 
@IntermediateHacker Just because we walk the same path on our quest for porn..
 
@refp yeah, and hang out at the same chat room.
 
@RMartinhoFernandes Blargh, I was trying to be a martyr.. even at that I failed
@IntermediateHacker Nhaa, you hang out here, I just pass by once in a while trying to tell the world how miserable I am.
 
You know the XKCD guy is losing his charm, how is this funny?
 
How long have you been reading XKCD?
 
4:07 AM
I just open it occasionally and read random stuff
I've known about it for 5 months or so, I think
 
Ah. So how do you know Mr. Munroe is losing his charm?
Do you find this funny?
Not all XKCD's are supposed to be funny.
 
Well, most of them are funny.
 
that is funny, and true.
 
Yeah, that one's funny. I read it yesterday. :D
 
> They're in line waiting for the 3D re-release of The Phantom Menace...except that they're the only ones there, because everyone hates Phantom Menace.
 
4:11 AM
My morning rutin consist of a cigarette, something to eat and random things to look/read. xkcd is most often part of the latter
 
@IntermediateHacker does it make sense now?
 
Yeah, but munroe has some really shitty comics to begin with
e.g. a guy in a barrel in the ocean...
 
@RMartinhoFernandes lol, I get it now. My apologies to the XKCD guy.
 
@Anfurny The first comics are just scanned drawings from his notebook.
 
But considering how frequently he releases, and some of the gems, and some of the really interesting ones (the money perspective thing) I think it fares quite well overall.
 
4:12 AM
no wonder the theater is empty
 
I don't care what they are, if you put them online in an album of comics I expect them to be worth my time...
@RMartinhoFernandes
 
at 20 seconds, there's that scene of the two spaceships fighting
I don't remember that from any of the films
 
I like the XKCD site by the way, it's simple and not overly populated with ads
 
Yes
Very (early days) google-ish feels
Random question, snakes on a plane or phantom menace?
 
Snakes on plane.
Not even thinking twice.
@DeadMG It seems to be from RotJ.
 
4:17 AM
I don't recall any such shot
 
Is there life on other planets?
 
I didn't memorize all shots, specially not from RotJ.
 
remember how they added new footage into the old star-wars movies at some point, right?
 
@IntermediateHacker Not right now.
 
me neither
 
4:18 AM
Or was it just new effects and remastered...
 
but I remember being explicitly disappointed that you don't spend much time seeing large space battles
 
@Anfurny They turned Greedo into an incredibly lousy shot.
 
I hate it when people at school call me the weird hacker guy with the twitch problem
 
even in RotJ, they mostly focused on the planet and the throne room in the Death Star
 
damn them. I'm not weird.
 
4:18 AM
just a few shots of fighters
 
Now we will see what answer another OP will choose, apparently it's all random when two answers are about the same with the only difference that I spent too much time writing mine..
 
Gosh, what's it with you people and self-defeat? @IntermediateHacker @refp
 
@IntermediateHacker Being even moderately intelligent makes people weird
 
@refp ur comment reminded me of youtube.
 
@RMartinhoFernandes this is the fcuking internet!
 
4:21 AM
Yeah, but the internet isn't about self-loathing nerd escapism anymore
that was like 90s
Now it's about stealing stuff and porn
 
@Anfurny it's still the 90s.. stop writing nonezänse.
 
now it's java-loathing nerd escapism.
 
Well that's something I can join in loathing
 
argh
so hard to seek through a two and a half hour film
 
4:22 AM
Java was one of those idiotic highly celebrated technologies that I was afraid nobody else would hate and I would be all alone in silent disgust at the world over...
 
How do you spell "accure" -> "in the number of splits that will 'accure'" (synonym; take place)
s,$,?,
 
user406009
0
Q: Thread safe coroutines with asio

Ethan SteinbergIs there any way I can have thread-safe coroutines along with boost::asio? I want one io_service to be running on multiple threads and to have some of my handlers be coroutines. Boost.Coroutine would seem to be a solution, but they document that they do not support resuming a coroutine that w...

 
occur
@refp
 
thanks
 
like occur-ence
 
4:24 AM
of course..
 
@DeadMG What? You're looking for that scene?
 
no, I'm watching The Dark Knight
the scene where the commissioner dies, I knew it existed, but didn't see it twice through
 
"watching"? Why are you "seeking" then?
 
so I wanted to find it
 
4:25 AM
but it's in the party scene which I always skipped past
but because the film is so long, you can't just skip like 30 seconds
 
You skip stuff when watching movies?
 
always
 
You can do that? ;)
 
the magic of bittorrent
 
I do that when reading, but I could never SKIP in a movie...
Only fast-forward.
 
4:26 AM
You skip stuff when reading?
Gosh, what kind of people are you?
 
I actually find that skipping whilst reading is an unavoidable reflex
 
@DeadMG What's the relationship between BitTorrent and skipping stuff in movies?
 
Yes, especially with books that are supposed to teach you stuff.
 
I find myself a few times every book realizing I accidentally skipped something interesting instead of the fiftieth paragraph describing a room or a hill or something
 
Not so much for prose.
 
4:27 AM
@RMartinhoFernandes Well, if you pirate films, then you can run them in a video player, and they have skip controls.
 
@DeadMG You can do that with DVDs too.
 
of course if you have to go to a cinema and see them, then you have to watch all the other crud
 
It's not a "feature" of pirate films.
 
true, but that's primitive people technology
DVDs are excluded from practical use because they take up a shitton of space, cost a shitton of money, and it's a bitch to maintain the hardware
I don't even have a DVD reader
you can't grep shiny plastic
 
I do, I call it Xbox 360
 
4:29 AM
eh, way too expensive
 
Why don't you just read the synopsis on Wikipedia or something?
 
I usually read the synopsis before I watch a film
the thing is, it's not that I don't want to watch films
 
Well then hook your laptop to your big TV @DeadMG
 
your computer can't play DVDs?
 
but I know what I'm there for
 
4:29 AM
OMG, kids these days are totally broken.
 
I'm only like, three years older than you
 
@Anfurny Laptop? Big TV? Why would I own either of these items?
uh
younger, I'm three years younger than you :P
 
because presumably you're a programmer and therefore make an unfair amount of money? @DeadMG
 
Oh, didn't notice that mistake.
 
4:30 AM
lol
 
and since you realized money can't buy happiness, you figured you'd buy technology that makes you happy instead.
 
but even if I had an unfair amount of money, why would I waste it on such useless items?
 
So you could spend your weekends hanging out with friends watching movies instead of on chat.stackoverflow
;)
 
I could do that with my desktop too
 
What if your friends are girls?
and you need a couch when watching the movie...
 
4:32 AM
@EthanSteinberg what about that answer?
 
meh
she can sit in the chair or on the bed
 
user406009
@refp Already mention boost.coroutine in my question.
 
bed would work
 
perfectly good viewing angles on my screens
besides
I have no desire to consume media in the company of others
 
someday
 
4:33 AM
@EthanSteinberg maybe I should remove my post and write my own answer then.. though, that is time consuming and it's 5:33 and I need to be at work 09 am
 
no
 
Anyways, who here is in cali?
 
I don't watch TV alone because I have no friends
I watch TV alone because I skip parts, I pause it and talk to myself, and such things
if I had a friend, they would quickly become incredibly irritated at such behaviour
 
What's cali?
 
@Anfurny I wish..
 
user406009
4:34 AM
@refp <sarcasm> Actually having to write an answer for a Q/A site? The horror!! </sarcasm>
 
@DeadMG Definitely.
 
so I think that attempting to consume such with a friend is not of interest
 
California
 
@EthanSteinberg I'm just rep hunting, need to get to 10 000 in at the most 2 weeks
 
4:35 AM
almost all the regulars in this chat channel are European
 
that will never happen though, but it's a nice goal
 
we could just post questions to each other answer and upvote them forever @ refp
 
we have a couple from the UK, and quite a few from Germany, Belgium and such
 
I'm from such.
 
I think either Xaade or Xeo is Merkin?
 
4:36 AM
@refp You can only get about 3000-4000 rep in two weeks.
Theoretically you could get more, but I highly doubt it.
@DeadMG It's Xaade.
 
@Anfurny that would work, since we are two different humans there is nothing prohibiting that from happening.. what if we really like the answers given?
@RMartinhoFernandes I was lazy when I started out (which according to SO is 11 days ago), only about 2.6k right now - so your theoretical amount seems valid enough
 
WTB dexter season finale... hurry up
it'll be up on Teh Interwebs in 20 minutes
 
I'll spoil you!
Oh wait, you don't care.
 
you can't, it hasn't finished airing yet
 
Really? I already read about it.
 
4:39 AM
if it had finished, it would be up
I know the time differences
I'm pretty sure, anyway
besides, I don't want to be spoiled about Dexter
I watch some shows because I generically like them, and even a couple out of habit
but Dexter and BSG hold a small, special place in my heart
well, until BSG trotted out "GOD DID IT"
at which point it promptly lost that space
but I never skip Dexter
 
Ok, I won't spoil you. But I've already seen people on Twitter commenting the last minutes of the episode.
 
oh, it's been up on The Interwebs for an hour and a half
 
guess my usual site is just slower to upload than my backup site
 
And btw, you just spoiled me on BSG.
 
4:44 AM
the finale aired like, two years ago
 
I can't make sense of "GOD DID IT" right now, but I probably will when I watch it.
 
eh
take my advice: skip like, the last fifteen minutes of the last episode, give or take
just never watch it
you'll be happier
 
I don't skip.
It's all or nothing.
 
to each his own torment
 
I ended up watching the whole of Lost even though I totally stopped enjoying it after season 3 or something.
At least the finale was not disappointing: I had very low expectations, and it confirmed them.
 
4:51 AM
lol
the ultimate problem LOST had was that it started out with a tenuous but possibly enough link to reality
then it completely lost that link in virtually every way
 
Yay, my code survived another Great Refactoring.
 
@RMartinhoFernandes tell us moar!
 

« first day (429 days earlier)      last day (4524 days later) »