« first day (1090 days earlier)      last day (3860 days later) » 

12:00 AM
Ah.
I feel making a graphics library entails knowledge of GL in most cases. I wouldn't know, though.
Have any game ideas?
 
Not particularly. But when I'll be ready I'll probably start making the classic zombie game for beginners.
 
got my new macbook
 
@Jefffrey I don't know what that is, never played a zombie game.
 
@Pawnguy7 It's just a player and some zombie that chase you down. IIRC it's a pretty standard first game to begin with. Mostly because it's easy to implement (especially the AI).
 
Can you shoot?
 
12:03 AM
Usually yes.
 
I can picture it. Unless the AI is more complex than "player's x is greater than mine, go right."
 
In 3D. That's a whole different world. I'll stick with 2D for a while.
 
12:24 AM
@thecoshman You're one of those weirdos who likes jagermeister arent you?
 
12:41 AM
Wtf... this is the second time I look at the starboard and I think "I don't remember starring that!", I must be sleep starring.
 
1:03 AM
> You're whining like a four year old who just crapped his pants while singing Mary had a little lamb in preschool class.
Internet comments :\
And people wonder why everybody doesn't agree with them.
 
1:25 AM
Success, the type-preserving futures are entirely transparent and lend themselves well to aggressive compiler optimizations :)
Food break then on to tackle harder, interesting stuff.
 
2:22 AM
sweet
 
must be the reason GTA V didn't wait for the PS4
 
@Rapptz Won't that keep a lot of games from being on the PS4?
 
Oh, I didn't know std::any was planned for a TS.
 
It shouldn't be
 
The proposal says that anyway.
It's revision 3. I never saw 1 or 2.
 
2:29 AM
 
Do nintendrones generate all the buzz?
 
Borg drones >>> nintendrones
 
a classical example of reverse shitposting
 
@AlexM. Yachiru <3
 
:D
 
2:34 AM
I should stop answering with standard quotes. :(
 
Those usually get a lot of upboats
 
Yeah. But my most upvoted answers all include standard quotes. I want variety...
 
my new macbook air does not recognize my usb drive
 
Might be a USB 2.0/3.0 conflict.
 
2:39 AM
Apple sucks
 
True. But almost everything they want the consumers to believe are believed by consumers.
 
@Rapptz So I can't make a game that parodies Sony?
 
They have a huge marketing momentum.
 
I guess not
 
@MarkGarcia Yes, they have succeeded in amassing a mass of gullible zombies :(
 
2:42 AM
I have sudden cravings for cheese.
 
I want to use threads in order to create several balls. Basically, I want to have a function that one creates the ball. Everytime I want to add a ball, I will create a thread that will call that function. So for every ball I have, I will have a corresponding thread. And what I'm stuck on is what part of the code I have to extract in order to just simply create the ball, and put that in a void function on its own. — John 2 hours ago
Just no.
 
I'm assuming he has more than 2 balls?
 
lol
 
IOW, he's got balls.
 
start hating xcode 5 already - pressed "open project", nothing happened. Tried to open the existing project from somewhere else, it says "project already open"
 
2:56 AM
I always pronounce CCleaner as "see-see-cleaner". I don't know why.
 
I still call it Crap Cleaner
 
@MarkGarcia Me too.
 
3:14 AM
yay, it works. break time!
 
@Rapptz So you could pronounce ICCup i-see-see-cup ?
 
@Borgleader No
 
Didn't we discuss a trait/metafunction to compute an n-tuple here before? TupleOf<int, 3> => std::tuple<int, int, int> kind of deal.
 
yes
 
ISTR a solution in the line of std::tuple<meta::DependOn<Element, Int<Indices>>...>.
 
3:16 AM
I think it involved arrays
 
Ah, I suppose it would have been the inverse conversion from tuple to array then!
I would have thought an array would have been more appropriate, esp. to prevent errors messages involving, say, a future<pair<int, tuple<future<int>, future<int>, future<int>, future<int>>>> (lol), but my hand is forced by the handling of references.
 
Oh found it
Was it this?
 
Afraid not, unless something is going over my head.
 
3:34 AM
Remind me that TCP and TCP/SSL connection switching/identification is done in runtime. sigh
 
COME ON AND SLAM
 
BAM! *slams head to the keyboard rdahgkl;tjerh9)(*&
 
4:00 AM
Oo should have used bluetooth between my macbooks more
 
@MarkGarcia I think the correct line is "and welcome to the space jam"
 
@EtiennedeMartel and welcome to the jam?
 
@Rapptz Aaaaaah! Youtube sucking my bandwidth! (Honestly, I didn't know of that)
 
Did anyone like Space Jam?
There used to be a time when I would listen to slam jams for fun.
 
morning
 
4:13 AM
OMG the =delete question was actually linked in isocpp!
 
pfft
 
Hehe.
 
isocpp is overwhelmingly operated by a bunch of morons who are too moronic to realize what is a good question and what is not.
 
@DeadMG Sounds like Stack Overflow mods. :)
 
In Nawaz's example I would just use explicit
 
4:17 AM
lol right.
 
But I guess it works, can't think of anything else
I wonder when GCC 4.9 will be out
 
holy fuckin' shit, it takes so long to build or link a program with LLVM
 
Have you tried LLVM? ... oh wait
 
I haven't upgraded my GCC snapshot for quite a while now because the package has a dependency on a more recent version of binutils that doesn't come with Gold and I don't want to go back to ld.
 
no, I'm linking a program with VS, and the program uses LLVM at run-time.
hmm.
and in addition, the program crashes inside the iterator debugging machinery.
 
4:53 AM
0
Q: C++ - How create an executable out of my program?

user2593546I know how to make C++ programs that can generate output to the terminal/files, but I have to use the terminal/an IDE to do so. How do i make a program into a thing on my desktop I can double-click and execute?

 
grrr.
I can't make my program fail whilst debugging is enabled.
 
5:52 AM
and Visual Studio is a supremely unhelpful debugging environment when you're debugging extensions.
it eats all your exceptions, and throws many, many of it's own during normal operations
eh
it would be way too cold to be of any use for human habitation
me
lol
 
@ScottW Did you just kill someone?
 
that's because you are only with 1 woman
your face wouldn't be red if you were with several women on the rag at the same time
 
6:10 AM
@ScottW TIL about "on the rag"
 
I don't want to know what that is.
 
Next up, "on the pill"
 
@Rapptz that one I knew already
 
I wouldn't say so.
there are lots of pills a person could be on.
 
6:19 AM
0
Q: How recursion is merge sort works?How memory will be allocated to recursive function?

user2819483When will line 4 gets executed ? How stack memory will be allocated? I can't understand how recursion is working here..Plzz explain.. Check partition algorithm Line 4jhjklbjkbhkvhjvhyjvhkvhkvhikvgyuvyulgv68ov void partition(int arr[],int low,int high){ int mid; ...

> Check partition algorithm Line 4jhjklbjkbhkvhjvhyjvhkvhkvhikvgyuvyulgv68ov
I wonder how that got in there...
 
ugly things, when looked at for the 5th million times, will become pretty
ios7 totally proves it
 
user1804599
It’s jizz.
 
Latest macbook air & ios7 are quite nice. Too bad I am an Android style cheapskate
& I am proud of it
In a way cheapskates rule the earth
p.s. local wild birds also eat rice now - thanks for me being Asian
 
6:38 AM
Awesome, a new season of Hajime no Ippo started airing.
 
I wish they would just air all the episodes at once
 
user1804599
Yay.
 
user1804599
My book started shipping.
 
hmm
my perception of games goes down and down.
 
Ell
@Jeffrey I mean the time step per frame is fixed at a certain amount
And is one of the public members of the window
 
6:51 AM
@DeadMG you should visit an optician
 
yeah, I didn't mean visually
I meant that the other people in them seem to act worse and worse.
every time I load up Starcraft 2, I'm repeatedly told how much of a fucking nigger fag I am
 
0
Q: C++ Whre,s the mistake?

user2865835my program causes wit error 1>Lab2.obj : error LNK2019: unresolved external symbol "void __cdecl Isvesti(class GeometrineFigura &)" (?Isvesti@@YAXAAVGeometrineFigura@@@Z) referenced in function _main What does it mean? Here's my code // main function #include <iostream> #include <fstream>

^^ I think the mistake is in the title. :)
 
7:12 AM
@LucDanton gcc should start putting nightly builds for Ubuntu/Debian on their site, just like LLVm does, makes it a lot friendlier to try SVN/Github trunk
 
JBL
7:24 AM
@Mysticial I think the title is missing a plural somewhere :P
 
@Borgleader it's alright... I tend to only experience it whilst already far too drunk though.
morning chaps :D
 
JBL
Good morning !
 
@gsf I adapted the answer for doubles. See update #2 in the answer. I hope you now see how everything you seem to be "complaining" about is not very relevant. As you can see, it's not that hard to use raw[] while still storing the exposed attribute. What you might want to do(?) is make a custom parser directive that acts like raw[] but exposes both the source iterators and the attribute of the parse expression. Anyways, all this is irrelevant to the question as posed ("how to trigger a warning") — sehe 4 mins ago
So, at this point in time, I'm going to stop guessing at your missing code. All I'm doing is saying "I don't see a problem doing X" and then repeatedly having to convince you of that by "re-inventing" your code for you. Only to find you complaining that it's not "complicated enough". Well, next time, please file a new question, and be sure to include a relevant SSCCE that demonstrates where you are stuck. It'll waste a lot less of our time. — sehe 46 secs ago
A spirit help vampire. That's a rare sight. Or someone with severe insecurity issues. Makes me want to yell "Just write the damn code!".
 
7:40 AM
@R.MartinhoFernandes you might like this
 
I was amazed that I can actually do this.
Wait. It both deduces to float...
 
yep.
 
Weird.
 
@thecoshman What is actually amazing is that it is an animated JPEG?
 
@MarkGarcia why?
 
7:43 AM
@wilx What???
 
@DeadMG Or is it a GIF with wrong extension that Chrome has ignored?
 
@wilx what will really blow your mind is when I take a video and change the file name to end in '.docx'
 
@wilx No fuckin' idea.
 
@thecoshman lol. Though that would probably download in my browser.
7
A: Can jpg images support animation?

NoldorinNo, the JPEG file format has no inherent support for animation. The image you linked is actually an animated GIF disguised with a jpg file extension. (The browser apparently ignores even the MIME type and looks at the file header bytes in such cases.)

 
Oh, PS. about comparing floats, see e.g. How dangerous is it to compare floating point values? or What Every Computer Scientist Should Know About Floating-Point Arithmetic. In my answer, note the implementation of Number::operator< and also the test data (-inf, inf and NaN). :/ — sehe 9 secs ago
 
Xeo
7:45 AM
@wilx The mime-type is important, not the extension.
 
@Xeo Ah!
 
@Xeo The link links directly to an image. It doesn't have a mime-type.
 
Does the JPEG spec really not support animation or is it just usually unimplemented?
 
@wilx cough TI8cX45.jpg: GIF image data, version 89a, 988 x 200
 
@DeadMG The server can still provide you with some.
 
7:48 AM
@wilx jpeg has no support for animated images, mpeg does though
 
I'm much more impressed at how well it was compressed. 171.3kB is really quite well-done for the 'smooth animation' looks (it's 202 incrementally optimizing frames in 30-color indexed mode)
^
 
@jalf why remove?
 
because I thought I was wrong, and now I wish I hadn't
 
@sehe that's some rather OCD break down
 
Hm
 
7:52 AM
@jalf so what if you were wrong? would you not rather hide in your ignorance or have a chance at being told the truth?
 
The whole "Wow it's an animated JPEG!" comments get annoying when they're constantly repeated online
 
@thecoshman Uh, the reason I thought I was wrong was that I looked at the response header from the server and didn't see a mime-type. So I (thought I) knew the truth
However, I just didn't look closely enough
The server does indeed send a Content-Type: image/gif header
@DeadMG So yes, it has a mime-type
 
morning
 
hi
 
oh, I must have confused it with the Content-Type thing in HTML.
 
7:55 AM
@DeadMG The rules of conditional operators still puzzles me.
 
And as I tried to say before (before I deleted it as discussed above), that is how the internet works. A link is not simply a reference to a file, but to a resource which is sent to you by the web server, and which may assocaite with it a number of headers, such as the content-type
URI != file
 
@MarkGarcia I think there's some implicit conversion there
 
@MarkGarcia Ask the Standard :P
 
@DeadMG no, it's basically the same. HTML effectively just allows you to set/override the HTTP header in some cases
 
@Rapptz Yes. I've just read that in that circumstance, the second operand is converted to the type of the third one. Then there's again a case for rvalues which I don't want to dive into anymore...
Moral of the story: don't use conditional operators for differing types.
 
7:59 AM
I think the conditional operator is a pretty bad thing anyway.
 
You too?
 
hii
 
@Rapptz What do you mean, me too?
 
We already discussed it before with jalf, coshman and Bartek
and it reminded me of that
 
the only situation in which I would describe it as justified is if you're dealing with a type where default-construction is not a possibility, and you need to conditionally construct it with a relatively trivial conditional expression.
even then I'd think twice.
 
8:03 AM
So you'd rather do if(cond) return a else return b rather than return cond ? a : b;?
 
I'm happy with if(cond) return a; return b;.
the core issue with return cond ? a : b; is that it doesn't have the same semantics as if(cond) return a; return b;.
 
hm whatever floats your boat
@DeadMG How come? You can't return two different types anyway
 
for example, consider std::unique_ptr<int> f() { std::unique_ptr<int> a, b; return cond ? a : b; }.
here, you're ballsed because a and b is an lvalue and the return ident; special case doesn't kick in.
 
Ah. a is a special case while b is the default.
 
in addition
 
8:06 AM
@thecoshman All the time
 
if I return T, and a and b are of two different types U and V, then the type requirement relations are different.
for if (cond) return a; return b; then all that's required is that you can implicitly construct a T from a U or a V.
but for cond ? a : b then there must be a meaningful common type between U and V, and they must be implicitly convertible to that common type.
in addition to the common type being implicitly convertible to T.
another example where this fails is shared_ptr<Base>, shared_ptr<Derived>- the language can't determine the common type.
 
Hehe. For C++ it is: "WARNING: Implicit content. Do you have 18 years of implicit conversion experience? If no, GET OUT!"
 
Xeo
@DeadMG Actually, that example does compile IIRC
 
@Xeo Might do. Depends on whether or not the Committee remembered to constrain the converting constructor correctly.
 
Xeo
What fails is when you overload with sp<Base> and sp<Derived> and pass an sp<MoreDerived>
@DeadMG They did.
 
8:11 AM
first time for everything I guess
 
Xeo
They sprinkled that magic "shall not participate in overload resolution" over many generic constructs.
 
so
okay you can unfreeze now
 
Xeo
Can't, building optimized release .ipa
 
you can optimize indian pale ales?
 
It's Irish Pit of Anacondas
 
Xeo
8:19 AM
Overview A .ipa file is an iPhone application archive file which stores an iPhone app. It is usually encrypted with Apple's FairPlay DRM technology. Each .ipa file is compressed with a binary for the ARM architecture and can only be installed on an iPhone, iPod Touch, or iPad. Files with the .ipa extension can be uncompressed by changing the extension to .zip and unzipping. .IPA files cannot be installed on the iPhone Simulator because they do not contain a binary for the x86 architecture. To run applications on the simulator, original project files which can be opened using the Xcode SD...
 
not much of a simulator if it can't emulate ARM.
 
Xeo
That . was there for a reason
 
I am now writing x86 simulator in Haskell
Because I am retaking Computer Architecture this semester
and the dumbfuck idiots make us code on paper
 
what
 
that's the only way I can possibly force myself to learn someshit about assembly
 
8:22 AM
you're bullshitting right?
 
@DeadMG not at all. I wish I was.
 
@thecoshman Now, this is OCD:
Oh, in case you didn't want to pass Number const& to the callback: coliru code #3 or or not using any kind of AST at all (just std::set<double> with the default comparison semantics of the builtin type)‌​: coliru code #4sehe 57 secs ago
 
you know
I should commit, I think.
 
It's only been 3 months!
 
8:24 AM
hey, let's be fair
recently, I've been really, really fucking sick.
 
Ok, done
 
even more than usual.
 
Xeo
No excuse!
 
also, it was only one month ago.
and seven weeks ago for the other repo.
 
Apparently, it can alter the values that you have regarding revision control.
@DeadMG Oops. I was joking.
 
8:25 AM
lol
 
oookaay
so, read will what, throw? when it can't read?
also what the fuck
(Read a, Read b, Read c, Read d, Read e, Read f, Read g, Read h, Read i, Read j, Read k, Read l, Read m, Read n, Read o) => Read (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
 
lol
 
Sound like it could do with a map of sorts
 
more like variadic types :F
uh, I should probably use that Parsec thingy
 
Xeo
Who needs 10-tuples.
 
8:28 AM
Haskell
 
Tentuple.
 
Decatuple
 
Yes, it errors of reading fails. There's readsPrec for dealing with partial ambiguous and impossible reads. But good luck getting anything done with readsPrec.
 
The authoritarian tone of the answer evokes a certain "accept" reflex, but I shall wait a bit longer :-) — Kerrek SB Nov 11 '11 at 16:42
^ I remember that one :/
 
@sehe 11-11-11. And must be 11:11:11 on some part of the world.
 
Xeo
8:33 AM
@BartekBanachewicz Yesh!
 
@Xeo Well assembly syntax is rather simple..
type InstName = String
type InstParam = String
data Inst = UnaryInst InstName InstParam
          | BinaryInst InstName InstParam InstParam
 
Xeo
It might help with your Applicative and Monad understanding
 
that's what I came up with
@Xeo yeah, I guess I should finally try to use them instead of just reading about them
 
Xeo
Tbh, I read about them for roughly 5 months before using them in my Haskell bot. :)
 
After understanding Functors, Applicatives sounded way more natural anyway
 
Xeo
8:35 AM
Well, they're a refined concept.
 
-- Each line contains 1 or more cells, separated by a comma
line :: GenParser Char st [String]
line =
    do result <- cells
       eol                       -- end of line
       return result
that looks easy
 
Xeo
cells <* eol :D
 
> The combiner has been fixed so that it actually works.
I should really go into more detail here...
 
@Xeo first examples are w/o shortcuts
 
Xeo
Parsec uses both Applicative and Monad at the same time btw. The monadic interface is nice when you need to bind submatches to names.
 
8:38 AM
:F sounds complicated
I just want to parse stuff like mov ax, bx
 
@sehe ¬_¬ I might start quoting things like "this'... just for you :D
 
@Xeo if I want to allow read to read my datatypes, I have to make them an instance of Read and implement the four readList, readPrec etc methods?
 
Xeo
Never messed with Read
> Minimal complete definition: readsPrec (or, for GHC only, readPrec)
 
I'm so damn dumb.
 
Xeo
8:47 AM
Lost another 40€?
 
I think I'm finally on the right train in the right direction.
 
Xeo
lol
 
damn this looks complicated :/
 
Xeo
Why bother with Read?
Also, data ... = ... deriving (Read)?
 
dunno, I thought it might be easier that using Parsec for such a simple case
 
8:49 AM
Read is sorta bad.
It's never easier.
 
Xeo
nvm the deriving, you have a , in there
 
I watched this documentary - apparently the first Chinese brothel was opened by the ancient Chinese government to make more money
Got me thinking, maybe the U.S. government could do the same thing
 
I also think it makes sense to use TDD here
 
open like a couple hundred brothels ... so there will be no government shutdown any more
just a thought ...
 
I would need a testing framework
 
Xeo
8:50 AM
@Bartek: FWIW, here's my little parser for IRC messages. I cheated on the p_host part, though, since fuck correct hostname parsing.
 
@Xeo no type headers :/
 
Xeo
Too lazy for Parsec
 
cabal install Parsec <3
 
Xeo
uh, what. You should have that by default
 
oh boy
this is going to be one of those commits.
 
8:53 AM
@Xeo maybe default package for Xubuntu is made "lightweight"
 
Xeo
hm
 
Nodejs is going to shorten my life....
 
and xubuntu really works muchos better than ubuntu on a vm so...
anyway, okey, let's try making some simple grammar
 
Xeo
Also, <?> is cool
 
Also I am not going to use operators until I get the underlying machinery :P
 
8:55 AM
@thecoshman please do. I'm not obsessed with "fixing things". I'm usually obsessed with "finding out"
 
Xeo
@BartekBanachewicz <|> is the underlying machinery of Alternative. :P
 
@Xeo grrr
I need more time.
 
Xeo
It's just a monoid-ish binary operation. Like mappend. For lists, it's basically the same IIRC
> [1] <|> [2,3]
[1,2,3]
 

« first day (1090 days earlier)      last day (3860 days later) »