« first day (940 days earlier)      last day (4010 days later) » 

10:00 AM
maybe
 
I remember setting up dualboot when I was like 12
 
but i followed thier guide.
 
I have UEFI and I only had major trouble installing Windows 8 to begin with (I had a disk with an empty partition table: it refuses to install. Period). Installing linux dual-boot fashion was then a breeze, no questions asked
 
Now I just have to edit the conf to properly state which is i386 and which is x64
 
10:00 AM
@BartekBanachewicz Who said "crash"?
 
@sehe I have UEFI and i had major problem installing Linux
windows install was a breeze for me
insert a pirated cd, the os reads key from the hardware itself :D
 
@sehe well "lost" means FUBAR for me
oooooh
13.04 login screen
shiny
 
though because of my hardware a lot of people warned me Not to install ubuntu
 
what exactly do you have so special?
 
@BartekBanachewicz "lost" means missing/inaccessible to me
 
10:02 AM
A gaming laptop :]
 
@Darkyen you have EFI but non-mainstream hardware? Confused
 
@Darkyen meh, if it has Nvidia card and intel CPU everything should be ok
 
it does.. thats why i tried to install
now whenever i try to boot on the usb stick which has ubuntu , my system stays on a blank screen for 20 seconds and then goes back to windows [aka re-boots]
 
weird.
was it the newest one?
 
@Darkyen You .... installed linux on a USB stick? On a ... gaming laptop? Things are getting weirder all the time
 
10:03 AM
Also I think I don't have internet on that one for whatever reason
I hope I won't have to request another IP address
 
@sehe no
 
that would be damn absurd
 
i made a live-usb so that i can boot on it
 
@Darkyen That's basically the same. Live USB: linux on USB
 
user868935
@Darkyen your problem is that you are using a USB
 
10:04 AM
so make a DVD ?
 
ohai @SpicyWeenie
 
user868935
aye
 
template<unsigned...> struct seq{ using type = seq; };
 
@SpicyWeenie I wrote some explanation in the other room
 
^ @Xeo hey, what's the equivalent for VS?
typedef seq type ?
Would that work as a typedef?
 
10:05 AM
i could really use some help installing linux, working on a vm on windows is urgh so horrible
 
@Darkyen meh, it's ok.
 
@ThePhD Oooooooooooh. Allow me to suppress my greasy laugh.
I'm so confused, who's Elazar? o_O — Mehrdad 1 min ago
 
@R.MartinhoFernandes if he does it to himself, we can laugh at him, right?
 
@BartekBanachewicz the real thing is always more fun ^_^
 
@Darkyen define "more fun"
 
10:06 AM
@R.MartinhoFernandes =[ is this one of those things?
 
@ThePhD Nah, it's just good ole Schadenfreude.
 
@BartekBanachewicz it doesnt lags like hell to begin with
 
user868935
@BartekBanachewicz Where?
 
Guys, is it wrong to say that using catch (...) is a bad programming practice?
 
@Darkyen well, my desktop handles it just fine
 
10:07 AM
You need to elaborate more
 
Yes. No. Maybe.
 
@SpicyWeenie here
 
You can use it at the end after catching certain exceptions
Like I said in my comment
 
user784668
@AndyProwl I bet the standard library implementation does it quite often. Therefore the C++ standard library is a bad programming practice.
 
Ugh.
Yet another road block..
 
10:08 AM
dunno maybe something is wrong on the setup
this lags a bit much like buffering a video
 
aaaaaaa
"Package vim has no installation candidate"
What have you people done?!
 
@Rapptz I understand, but why not using catch (std::exception&) and making all exceptions derive from std::exception?
 
O-O WHAT ?
 
@AndyProwl Because some people are stupid.
Hence, catch(...) { /* dealing with retards */ }
 
@Darkyen meh prolly just becasue I can't update repos
 
10:10 AM
@Rapptz And what are you going to do in the /* dealing with retards */?
 
@AndyProwl on error; resume; next;
 
@AndyProwl See if something went wrong.
 
user868935
@BartekBanachewicz Ok, but that's SO all around. Egos take front seat over actual problems here within the last 2 years that I've seen
 
@Rapptz And then? How do you recover from an error you don't know?
The only meaningful thing may be a dump and then a rethrow
 
@BartekBanachewicz I have that guy plonked
and for good reason, apparently
 
10:11 AM
@SpicyWeenie meh, you can find stupid people everywhere. It's best to stick to sensible people
 
Or just let the exception go without the catch (...), cause anyway you don't know what happened
 
@TonyTheLion I don't know, he apparenlty misunderstood my statement so I wanted to clarify
 
@AndyProwl Printing out boost::diagnostic_information, optionally throw;.
 
template<typename T, unsigned... I>
	std::tuple< unqualified_tuple_element<I, T>::type... >
^ Apparently this is illegal. D:
Gotta figure out how to get around it...
God
MSVC is such an ass. ;~;
 
It's there as a catch-all sort of thing (seriously). You can't really ponder what is supposed to happen there, I usually print "This isn't supposed to happen" and then figure out what happened.
 
10:13 AM
@ThePhD you can always write in VB :)
 
@R.MartinhoFernandes But does boost::diagnostic_information print something meaningful if a retard threw anything else than an std::exception or a boost::exception?
 
user868935
@BartekBanachewicz Ah! I had a typo. I meant "but I dont" and didn't mean to target you. Just trying to say that some are very good in specialized areas, but not in other areas that others are.
 
@SpicyWeenie we cool then.
 
I mean why not catching std::exception& or boost::exception& in the first place
 
@BartekBanachewicz I can also scoop my eyes out with a tiny spork.
 
10:14 AM
@AndyProwl You are misunderstanding my argument.
 
@ThePhD isn't that the case with VS most of the time?
 
I said it's okay to add it at the very end.
I didn't say that it should be the only thing you catch.
If that happens then you know something went wrong
which is BTW not throwing std::exception& like throw 1 or throw "lol"
Which you can quite legally do and some people would do.
 
@Rapptz Perhaps. But why not adding it at all, or adding a catch for std::exception&? I mean, even if I just let the exception propagate I will know something went wrong
 
Urrrrrrrrrrrrrgh
I'm gonna flip several tables adhajdwhakjd
 
user868935
The worst movie to happen to programmers is "The Social Network"
 
10:16 AM
@AndyProwl Already said why.
You can throw anything, doesn't have to be std::exception.
 
@Rapptz I know you can. I'm wondering why you should. Some OSs are retarted as well and trigger exceptions on access violations. Do you want to catch (...) that as well?
 
@SpicyWeenie it wasn't the movie about programmers at all.
 
Way beyond the scope of my argument and leading into strawman territory.
 
user784668
@AndyProwl and the other ones are retarded too and trigger signals on access violations
 
Don't think so. My point is that you should have a design guideline saying that every exception has to derive from std::exception. If someone is retarded and todes not respect the guideline, well... not my problem. That seems like something to deal with before the program is shipped.
 
user868935
10:19 AM
@BartekBanachewicz yeah, but now all these new programmers I've seen in my city all talk like the main character
 
@SpicyWeenie that being exactly?
 
@Fanael Perhaps, I only know one OS, shame on me. And I definitely do not want my program to catch (...) those. It is not a strawman argument IMO
 
user868935
100mph with the same voice inflection
 
@SpicyWeenie I don't understand that one.
 
user784668
@AndyProwl FYI: SEH exceptions are not related to C++ exceptions, you can't catch the former using the latter.
 
user784668
10:20 AM
You could in VC6.
 
@AndyProwl Yeah well, I'll be glad when some guy crashes your program by throwing a const char* that I caught it.
 
WHAT THE SHIT
AAAAAAAAAGH
 
user784668
But VC6 was, well, VC6.
 
user868935
They mimic how the character speaks and acts as if they were him
 
I quit.
 
10:20 AM
@AndyProwl What about library code?
 
Pretty much all I'm saying.
 
@ThePhD really?
@SpicyWeenie uh. that's hardly related to programming, again
 
@BartekBanachewicz Yep.
 
@R.MartinhoFernandes Well, if you know what a library is going to throw (and you should) then write a catch() block for every possible thing it's throwing. Hopefully that library code will have its own base class. But using catch (...) will make you just swallow all errors. May be useful for printing diagnostics, but not for handling.
 
Apparently std::forward_as_tuple doesn't take 6 arguments
 
10:22 AM
@ThePhD so what you gonna do now?
 
I'm gonna eat raisins
 
@Fanael I believe you can do that with VC10 as well
 
oh look at that shiny 4.7.3 that's in 13.04
 
user784668
@AndyProwl Nope.
 
@Rapptz And what are you going to do with it?
 
user868935
10:23 AM
lets agree to disagree. They are taking on the movie persona when they are programming
 
Xeo
@ThePhD #define _CPP0X_VARIADIC_MAX 10 or whatever the macro was
 
user784668
@AndyProwl You need __catch, which is precisely a SEH construct, meant to handle SEH exceptions.
 
@SpicyWeenie that happens with any kind of movie
 
@AndyProwl catch it and then throw away/fix the code that caused it.
 
@Xeo .. Seriously? That's the reason?
Why don't they default that shit to like 10 ?
Or 20?
 
10:23 AM
@AndyProwl No, I mean, what do you do when writing library code?
 
Or some really high number?
 
What about SEHE exceptions?
 
@ThePhD build times and possibly memory
 
@Rapptz And what if you don't catch it? Won't you realize anyway that it threw something else than what you expected, and throw it away?
 
=l
 
user868935
10:24 AM
:/
 
(Consider std::packaged_task for instance)
 
I feel rather strange today
 
Xeo
@ThePhD They only emulate up to 5 arguments by default, because it hits compilation time pretty hard
 
Not sure if tired or awake
 
user784668
When did they change std::binder1st to have T& and const T& overloads?
 
10:25 AM
@AndyProwl Uh, no. I use catch(...) as a way of saying catch(T) because catch(int), catch(const char*), catch(std::string) et al are very annoying to type.
 
@Xeo Guess I'll leave it alone then. =/
 
@R.MartinhoFernandes That is kind of a corner case, isn't it? I mean, when giving advices to a novice about catch (...), I think telling it is generally regarded as a bad practice is OK
 
I am not talking about "operating systems that throw exceptions" (that quite possibly I don't even use)
 
@Rapptz OK, but what are you going to do in the catch(...)? In the end, you use that catch (...) do detect pieces of code that misbehave, and then fix them or throw them away. It is a testing thing, not a handling-runtime-errors thing
So ideally in a thoroughly tested program you won't need it
 
Xeo
I'd simply have one at top-level (i.e., in main) to see where that stuff is still being thrown.
 
10:28 AM
You asked for why I don't consider it bad practice, I answered with a use case.
That's all, don't care about anything other than that :|
 
@Xeo =[
I can't make the code compile in VS2012.
All these template errors
All these rules
 
@Rapptz But then it does not have to be in the code at all. Put it in your unit tests
 
Xeo
You aren't supposed to :D
 
@Xeo I got really close!!!
I was down to the third cleave2 overload...
 
Why would anyone put needles in a camel's eye?
 
10:29 AM
@R.MartinhoFernandes I like the sound they make when they're in pain.
 
0
Q: Cannot get simplest Phoenix lambda to compile

Björn PollexI am currently trying to get the following very simple boost::phoenix::lambda to compile: #include <iostream> #include <boost/phoenix/scope.hpp> int main() { boost::phoenix::lambda[std::cout << "Lambda!!"](); } However, this generates a host of errors (too much to post here), none which ...

That's wrong, right?
 
Xeo
I don't know what Björn intended to create there...
Did he think wrapping an expression in a Phoenix lambda magically makes the expression lazy?
 
... You know what I need?
You know what I desperately need?
std::forward_from_tuple.
That's what I need.
Something that takes a tuple, and lays those arguments out.
All of them.
Variadically
Forwardly
And all that other good stuff
 
user784668
Shouldn't be too hard to write one.
 
Liar.
Everything's hard.
Everything.
 
10:39 AM
I'm starting to wonder if I should review data structures or not.
 
Xeo
@ThePhD Err
 
user784668
lol the suggested edits review
 
Xeo
Where would it lay those arguments out to?
 
user784668
Congratulations!

This was only a test, designed to make sure you were paying attention. You passed.
 
Someone said that implementing a quadtree is cooler than if...else... logic. I was about to snap back saying that he's thinking too hard on a simple, nontrivial problem.
 
10:41 AM
@Xeo Into a function argument of course.
None of this sequence generating crap
std::forward_from_tuple<Ts>( mytuple )... // SO DONE IT HURTS
 
Xeo
Needs sequences in the end, though :P
@ThePhD Err
Do you want foo(forward_from_tuple(t)) or forward_from_tuple(t, foo)?
 
@tom_mai78101 Hell, I don't know if I should choose the red pill or the blue pill anymore.
 
Xeo
One of them is impossible, and the other is easiest with indices.
 
@Xeo I want to give it a variadic template parameter pack and have it expand out and do the std::forward calls automatically for me
That's what I want
 
lol
 
Xeo
10:43 AM
So... the former?
 
I guess?
Man my brain is so fried
I don't know what I'm saying anymore
 
Xeo
Needs language feature.
 
I feel lost. =[
@Xeo std::forward<tuple_element_at<I>>( std::get<I>( t ) )...
^ That's what I want
Except no I
No indices
no number tricks
 
Xeo
yeah... no
 
Just... std::forward<Variadics>( mytuple )... // So good. So, so good
 
Xeo
10:46 AM
Stop daydreaming
 
Mindblown
 
Xeo
Think about what of that stuff is actually possible.
We should get a clue-stick to hit @ThePhD with.
 
What, a compile-time map between a typename T and a compile-time get<Index> call?
Yeah, I want that to be possible.
 
user784668
@Xeo std::make_unique<std::clue_stick>();
 
@ThePhD std::forward<tuple_element_at<I>>( std::get<I>( t ) ) that's just a verbose way of saying std::get<I>(t).
 
10:49 AM
@R.MartinhoFernandes So why can't I do std::get<MyVariadicPack>( myTupleWithTheSameParameterTypes )... DD:
 
user784668
@ThePhD write in Python
 
Wwrywrywrywryryyyy
 
user784668
*myTuple
 
user784668
**myDict
 
Meh, multi-argument functions.
 
10:50 AM
You know what
I'm gonna write it
I'm gonna write a get that takes a variadic pack
and generates the indices
and forwards ALL THE THINGS
 
Yay. Peace and Quiet
 
Sure. Go on.
Hint: it won't work.
 
;~;
 
Who cares
 
Now is that time when you decide if you want to waste your time.
 
10:51 AM
0
Q: What are the argument types I can use?

user2377414I'm using code::blocks with windows to program in c. Lately, I've hit a few problems trying to find out the addresses and values stored in the addresses of floats, long longs, etc. I've figured out that I need to use "I64d" instead of "lld". Is there a list of the argument types that I must use i...

what is OP actually asking?
 
@ThePhD Note how your syntax does not really have a get that takes a pack.
 
Xeo
Seriously, full-stop please.
What the fuck do you actually want to achieve @ThePhD?
 
@TonyTheLion Sounds wrong somehow.
 
I've been trying to figure that out for 10 minutes
he still won't tell me
 
user784668
@TonyTheLion non-standard MS printf tags
 
10:53 AM
"argument types"? I get the idea you mean "format specifiers". And: "instead of the 'normal' ones" - what normal ones? It looks like you should have shown code in stead of fuzzy talk. — sehe 6 secs ago
 
Let me coliru what I'm trying to do with my life...
 
I was thinking of compiling and generating a .so while the main program is running and linking it with the running program. — Phelodas yesterday
 
@sehe ah I see
 
wut...
 
coliru is dead
 
10:53 AM
@Xeo Well, duh - template wankery, that's why!
 
wut
 
@Rapptz Is it?
 
it was earlier
iunno if it is now
 
Xeo
Isn't
 
Ah
 
10:54 AM
GOsh.
I am sorry.
 
Meh.
 
@R.MartinhoFernandes Yeah. That was probably a bit too quick :)
 
I had family issues this mother's day.
 
That sucks
 
Yeah. Wish people would just get along.
 
10:56 AM
Did your mom get appreciation?
 
user784668
I know how to make people get along.
 
Shoot them?
 
Uhoh. Technocrats
 
user784668
@R.MartinhoFernandes you win, have a cookie
 
Is it chocolate-covered?
 
10:57 AM
Hmm technocracy
 
Xeo
Is it cookie-covered?
 
@sehe, Yes, sorry, I didn't know what they were called, and the first google link said is was that. Corrected. — user2377414 3 mins ago
 
@sehe Sorta. From our family yeah, but not from hers. (If that makes sense)
 
@Rapptz It does
 
@sehe ah ok
 

« first day (940 days earlier)      last day (4010 days later) »