« first day (838 days earlier)      last day (4109 days later) » 

11:02 PM
wait, GCC still doesn't have std::begin? WTF!
no wait, it's simply not finding it properly...
 
6
Q: Are begin(container) and end(container) standardized?

FredOverflowAre the non-member function templates begin(container) and end(container) part of C++0x? If so, in which header file do they live?

 
user142019
buttplug
 
@FredOverflow they fail on GCC with int[3][4] apperently.
 
user142019
lol C-style arrays.
 
nevermind - size_t template param should capture the 3
 
11:05 PM
user image
2
 
That can also be read as "Yuck! Arrays."
 
I like C array
 
@FredOverflow OP asked for two dimensional arrays and I wanted to be certain my templates worked for C arrays too
 
user142019
I hate C-style arrays.
 
user142019
11:06 PM
They’re terribru.
 
AFAIK, GCC stopped letting you use begin instead of std::begin in 4.7.2 or close to that, but still no need to include <iterator> for it.
 
General rule of thumb: everything Crowz likes Zoidberg hates
 
user142019
ok. <— most occurring sentence in Erlang code.
 
user142019
(Fact.)
 
oops, an error in my code caused stacked-crooked's webpage to go really slow for a while :/
 
11:07 PM
My code in C++ looks so pretty but right now I'm writing some C code and it looks so ugly.
;_;
I miss passing by references.
 
user142019
C code is beatiful.
 
user142019
Pass by pointer.
 
Really? I think C looks nice and C++ looks kinda... eh.
 
@Zoidberg I know. It's awful.
 
user142019
The most nice-looking language must be CoffeeScript though, IMO. Followed by Erlang and Haskell.
 
11:08 PM
@LucDanton hmm, wonder what I had wrong
 
user142019
@Rapptz You’re awful.
 
@Zoidberg You bad troll.
 
user142019
I’m serious, you fool.
 
@Zoidberg You misspelled "beautiful". That's probably because C code can't be beautiful. The closest it can get is "beatiful".
 
Can you sprintf an int into a byte array? Probably not?
 
11:10 PM
@crowz thats the primary use
causing security holes everywhere for a while until hardware stack execution stopped it from being everywhere
 
@Crowz Make sure the array is large enough.
 
4 hours ago, by Jerry Coffin
@rubenvb No, only about a third. [Most of] the rest blame the compiler.
 
user142019
@FredOverflow No, it’s because "beautiful" is derived from French "beau" and French is bad and ugly and terrible.
 
user142019
 
user142019
Do you even write C?
 
11:13 PM
@Zoidberg Do you even lift?
@Zoidberg I heard Dutch is worse.
 
user142019
I often use lift, yes.
 
user142019
@EtiennedeMartel I haven’t heard that.
 
I have a feeling I could make this clearer. Mmm:
0
A: Implicit cast doesnt work for BOOST_STRONG_TYPEDEF and BOOST_SPIRIT_DEBUG_NODE

seheThis has nothing to do with boost, strong_typedef or spirit. It has a lot to do with type deduction for template arguments. In short, when argument types are deduced, implicit conversions never take place [1] Cf.: #include <iostream> #include <string> #include <boost/strong_type...

^ Also, what's up with C++ questions unanswered for > 5hours?
 
user142019
Instacode is awesome.
 
I haven't asked a stupid question in almost a minute so here's a new one...
if(i*j > greatestNumber)... the computer reads that as (i*j) > greatestNumber ?
 
Ell
11:17 PM
Yeah
 
user142019
I should ask a question on Stack Overflow and use Instacode instead of embedding code directly. :D
 
Ell
Does the processor know about functions in x86 ?
 
user142019
Functions are an abstraction over jumps and stack frames and shit. I doubt it.
 
@Ell there are a couple of old instructions setup specifically for setting up bp as a frame pointer, but besides calls and interrupts the stack has no exact rules
 
Ell
11:20 PM
Does it have a stack and heap? or local and free store
 
What is the C equivalent of while(cin >> value && value > 10)?
 
@Ell calls that cross "rings" push the old stack onto the kernel stack, which is loaded from the TSS, etc
 
while(scanf("%d",&value) != -1 && value > 10)?
 
user142019
@Rapptz see scanf(3).
 
Not the correct return value to check.
Should be 1
 
11:21 PM
I think it's while(didnt_get_better_language() && fuck())
 
user142019
Syntax erreur.
 
Ell
Im just thinking. About writing compilers. And calling conventions, and a c compatible api
 
@LucDanton Thanks. I was confused whether it should have been 1 or -1.
 
shush you
my instinct for correct grammar is masterful, it's true.
 
user142019
In Haskell the syntax would’ve been correct. :)
 
11:22 PM
@ell ABI is the term you're looking for. the rules of how calls are done and arguments are passed, structure returns, etc etc
 
@Ell Impossibru without some serious work.
 
user142019
didn't_get_better_language :: () -> Bool
fuck :: () -> Bool
while :: Monad m => Bool -> m ()
 
namely
the creation of a Standardised ABI, as far as I'm able to reason, requires checked exceptions, which requires exception spec inference, which requires getting rid of TUs and implementing decent checked exceptions.
 
Ell
I'm not planning on writing, I just want to understand more about them. In my head I am confused because I think c programmes get treated specially by the OS even though I know that's wrong
 
on top of a bunch of other stuff
 
11:23 PM
 
@Ell They do.
in a sense
 
user142019
How?
 
the OS almost certainly offers a C API, and the ABI that it defines is the de facto C ABI, effectively.
 
user142019
ohh of courze
 
that means that any program for any OS essentially has an ABI defined for it.
not to mention that OS vendors typically ship compilers targetting them, and those compilers usually become de facto standards in their own right
so essentially, the fact that the OS exposes a C API gives C implementations a fairly significant leg up.
 
Ell
11:25 PM
Could an os offer a non c API?
 
user142019
Yes, of course.
 
in theory, yes.
but in reality it's basically never done.
 
Ell
Yeah, understandably
Well actually, I wonder what a c++ one would be like
 
I think that BeOS, or maybe it was BSD, or some other OS once tried offering a C++ API.
 
user142019
If an OS has .NET built in to the kernel, it could offer a .NET API. :^)
 
Ell
11:26 PM
I think BSD
 
oh yeah
 
user142019
OS X does have a C++ API for drivers in kernel space.
 
plus those very silly non-native kernel things.
 
user142019
Without RTTI and exceptions!
 
truth is
I'm pretty sure that I can solve all of the ABI problems except the layout of Standard objects (for Wide).
that one is still annoying me
 
11:28 PM
@Ell when an exception occurs and you are unwinding the stack, you need some kind of help from the compiler to restore call-saved registers when you unwind. Certain registers are guaranteed to be preserved across calls so unwinding requires restoring them
 
Ell
But for some reason I cant stop myself thinking c is specially treated by the processor/os and I don't know what's making me think that
 
user142019
@DeadMG you can standardize those. :|
 
@Zoidberg I could, but that would be some serious implementation constraining.
@Ell Uh, probably because I've just explained to you exactly how it is?
 
Ell
Yeah, I understand that, but that's not the reason I feel :P
 
user142019
@Ell C gives you all the power and flexibility of assembly, with the readability and maintainability of assembly.
 
11:29 PM
well
aside from the means I have already described
I know of no other way in which C is favoured
 
longjmp?
 
user142019
I like C because it doesn’t give a fuck.
 
user142019
Then I like Haskell because it gives so many fucks.
 
usually the CRT does give a fuck though
 
I like other people for that.
 
user142019
11:31 PM
Such as my mother?
 
well
now that you mention it, she does have a habit of giving a lot of fucks whenever I come over.
 
user142019
So you’re my DadMG?
 
Ell
Hehe
 
too young
 
user142019
@Ell Sehe
 
Ell
11:38 PM
I'm sad :(
 
user142019
 
@ScottW that's a variation I've never encountered. It's probably unlisted
 
user142019
@ScottW It’s a bag of ketchup-flavoured crisps. It’s tremendous.
 
@Zoidberg THOU SHALT TAKE MY NAME IN VAIN
@Zoidberg nice of you to subtitle that. In case he has no audio
 
you can't get ketchup chips in the USA as far as I saw. They're common in Canada
In fact, I have a bag of ketchup chips right beside me
 
11:43 PM
I dip my chips in ketchup myself.
 
user142019
 
user142019
Steengrill always was, is and always will be the best.
 
user142019
They have a tremendous steengrill restaurant in Rucphen.
 
@Ell same.
 
Is converting an int to a string using sprintf considered bad practice?
 
11:45 PM
yes
 
I'm using it to test if the number is a palindrome
 
user142019
You can do that without strings.
 
How?
 
user142019
 
11:47 PM
@MooingDuck I don't think he'll understand this any time soon. He had a hard time understanding const char* str and while(*str) a couple days ago.
 
user142019
lol
 
@Rapptz beyond him definitely, but I thought it was an interesting puzzle. It was bothering me all day.
 
Instead of doing work?!
 
@Rapptz well the code itself didn't take that long, there's only 20 lines in the complex function.
 
11:51 PM
@MooingDuck o.O
Damn mooing, you have skill
 
user142019
Man.
 
bint
 
user142019
Porn is boring when you’re in love.
 
What
 
@Zoidberg I must have missed it. I'm not often wrong on my plonks
@Zoidberg Porn is boring.
 
user142019
11:53 PM
@sehe lolwut
 
Wow I absolutely suck at recursion
 
user142019
s/recursion/cocks/
 
@Rapptz for some reason whenever I see your avatar I think you're stackedcrooked, and then I see your name and get confused.
 
@Zoidberg Einstein binned something. I assumed you were responding to it. You're not really making me look for messages I missed, are you?
 
user142019
He binned my GIF. :(
 
user142019
11:54 PM
That bastard!
 
@MooingDuck Our gravatars aren't even alike. Mine is a drawing and his is from one piece.
 
user142019
Bad dog!
 
:(
 
@Rapptz I know, weird right?
 
@Zoidberg ow. now I must have looks
 
11:54 PM
@Crowz I thought so too
 
user142019
I’m in the mood to work on Lambda Ore but I’m too lazy to open up VirtualBox.
 
@Zoidberg Why is that man going backwards, fast?
 
is there a way in the std to get the "size" of a container (including raw arrays?)
 
user142019
@sehe 4fun. 4friends. 4chan.
 
user142019
11:56 PM
Elixio? Reminds me of the fact I still have to learn Elixir.
 
@MooingDuck Closest is std::distance on results of begin/end I suppose. I recommend Boost.Range
 
@MooingDuck length in elements? std::size(...)
@LucDanton wait, is std::size() not a thing?!
 
user142019
I know way too few programming languages.
 
@MooingDuck Do you mean the length in elements?
 
11:57 PM
Blimey. I'm just so used to phoenix::size() being there, I assumed that it wrapped std::size
 
@sehe Ye
 
user142019
Man.
 
@sehe Could be a wrapped boost::size :)
 
user142019
If C++ had some advanced compile-time reflection, one could implement using it strong typedefs.
 
Although boost::distance would be more appropriate. Maybe.
 
Ell
11:59 PM
Hmm. I wonder when doctor patient confidentially is available, I.e. from parents
 

« first day (838 days earlier)      last day (4109 days later) »