« first day (881 days earlier)      last day (4293 days later) » 

21:00
Ugh, unsafe code.
you're way late
Was the link already posted?
"conway's game of life" seems to not work right on my chrome :(
Game of life rhymes with rule of five. Coincidence?
21:02
Who here had the old windows tubes screen saver?
23 hours ago, by Griwes
New paper: N3578, Proposing the Rule of Five—Walter Brown http://bit.ly/13YV7Ly
@Pawnguy7 everyone
I had swimming swans and flying toasters.
@MooingDuck perhaps. I loved that thing. Think there is a Win7 compatible version?
Ell
Ell
Argh.I'm going insane xD
21:04
Why?
Ell
Ell
I can't write simple c++
I can't read a file.
Text or binary?
Ell
Ell
binary
All I want is an std::vector<unsigned char> of binary data from a file >.<
omg <3 google. When you translate the zero wing text from Japanese to English, it results in the same translations that the game used. "君達の基地は、全てCATSがいただいた。"
according to wikipedia. tests show otherwise :(
0
Q: Loading a file into a vector<unsigned char>

Macho MattThis question is very similar to Loading a file into a vector; however, in this case, I want to load it into a vector of unsigned chars. Using the code from the other question, what is the best way to load an unsigned char vector? std::vector<char> vec; // Would like this to be std::ve...

1
Q: reading the binary file into the vector of unsigned chars

LihOLately I've been asked to write a function that reads the binary file into the std::vector<BYTE> where BYTE is an unsigned char. Quite quickly I came with something like this: #include <fstream> #include <vector> typedef unsigned char BYTE; std::vector<BYTE> readFile(con...

21:08
@Pawnguy7 chrome about:internets
@MooingDuck that is actually what gave me nostalgia about the screensaver :D
or... used to
doesn't work on my machine now :(\
Well, I saw google search itself. Chrome otherwise tries Chhome://internets
Anyway, think the screensaver is still in some working fashion? Something about it is just better than other screensavers.
21:12
@Pawnguy7 "The webpage at chrome://internets/ might be temporarily down or it may have moved permanently to a new web address. Error 300 (net::ERR_INVALID_URL): Unknown error."
So, today's theme is "St-Patrick", which means the selection of Friday Beer is limited to Guinness, Harp and Smithwick's.
^ back in an hour
@R.MartinhoFernandes Oh look, do-notation confusion!
@EtiennedeMartel I'd go with whiskey
@CatPlusPlus Hey, I'm paid to drink beer, so I'm not complaining.
21:22
0
Q: Something is freaking wrong, perhaps with a pointer

Mickael Bergeron NéronMy WinMain starts like this: int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nShowCmd) { if(SUCCEEDED(CoInitialize(NULL))) { { HRESULT hr = S_OK; Game game; D2DResources d2DResources; game.SetPointer...

I've done a few whiskey single-malt tastings.
That was with colleagues from my prev job.
how are placeholders actually implemented?
@bamboon ....what is a "placeholder"?
@MooingDuck std::placeholders::_X
@bamboon oh, for bind? They're instances of a special type that std::bind does crazy mojo with. I'd expect they're a lot like struct placeholder{} _1, _2, _3;
no wait, it's probably easier if they're different types.
21:26
could be any-fuckin-thing
template<index>
struct placeholder_type{};
placeholder_type<1> _1;
placeholder_type<2> _2;
I probably thought to complicated
@bamboon the complex bits are in bind. THATS complicated
@MooingDuck yup, I can imagine that
actually....
21:33
Why is "The C Programming Language" considered to be such a good book?
Something like f(eval(t, args)...) with t in Terms..., i.e. what's bound, and args what's used for the call.
template<unsigned index>
struct placeholder_type {
     template<class.... params>
     nth_param_type<index,params>::type operator()(params... p)
     {return nth_param<index,params>(std::forward<params>(p)...);}
}; //makes bind much much eaiser
@MooingDuck It doesn't actually.
It's a toss-up.
@LucDanton hmm, you're right
It is a fairly common and harmless technique.
It depends if your bind does eval(f, args)(eval(t, args)...) or just uses f. I always forget which bind does what.
A plus if you choose not to make your placeholders too smart is that you can then write your bind against std::is_placeholder.
Then you're compatible with whatever chooses to fulfill that.
21:38
So, apparently I'm Czech. Nice.
@LucDanton they're of an unspecified and undocumented type, how would we make things compatible with them?
@DomagojPandža So sorry.
@MooingDuck I've just told you: with std::is_placeholder.
Hahaha, actually, I think Czech would be an improvement over Croatia. :D
> "It is a pluralist multi-party parliamentary representative democracy, a member of the European Union, NATO, the OECD, the OSCE, the Council of Europe and the Visegrád Group."
Yup, definitely.
21:40
class A{A(){} };
template<> std::is_placeholder<A> :public std::true_type{};
Oh boy.
Xeo
Xeo
@MooingDuck is_placeholder inherits from integral_constant<I>
Can't blame you for that.
Xeo
Xeo
When I == 0, it's not a placeholder
Else, it's the Ith placeholder
Aw, too lazy to fix that.
Xeo
Xeo
21:41
lol
@Xeo I think std::true_type inherits from intergral_constant<bool,true> :P or maybe it's a typedef
Xeo
Xeo
@MooingDuck I mean integral_constant<int, I>
Just see my example.
I just love how OpenGL flips the handedness of NDC space. And having NDC preserve depth information from -1 to 1. Just brilliant. Brilliant, I tell you!
Xeo
Xeo
@MooingDuck Yeah, typedef.
@LucDanton that's pretty lazy ?.jpg
user142019
21:48
@StackedCrooked more of a classic.
user142019
Like the Bible. :P
AHAHAHAHAHAH
user142019
\
user142019
/
Well, I've been looking through Apple's documentation on platform-specific relations between Core Animation and their implementation of OpenGL ES. Here's some fascinating official documentation code dubbed "Matrix.c":
Xeo
Xeo
21:49
Btw @LucDanton, any problems with me putting you in the acknowledgements?
I would be embarrassed to slap copyright notice on that.
Xeo
Xeo
And... @DeadMG, where do I actually need to send the proposal? :s
user142019
@MooingDuck switch is basically a jump and you cannot jump over ctor in the jumped-to scope.
Xeo
Xeo
@Zoidberg over non-trivial ctor
21:50
@ScottW Nothin' much, how's work? :D
Ell
Ell
Okay minicraft runs without textures :3
@Ell You mean the 5x5 nearest-filtered excuses for textures? :P
Ell
Ell
Heh, not even that. I got all black with a cyan background xD
Xeo
Xeo
@DeadMG Hmm, that's for LWG
21:53
@Xeo I don't know. I think this nick is used in one of the papers or draft papers. Not too fond of it, it's supposed to be throwaway.
Xeo
Xeo
@LucDanton Well, I can also leave you out if you prefer that. :P Or refer to you as "somebody who prefers to stay anonymous"
Leave out any individual mention altogether. Don't mind something like '& others'.
(transcript of his earlier talk)
Xeo
Xeo
@LucDanton Wokay.
Ell
Ell
21:55
@BartekBanachewicz I am such a stupid idiot. srsly. Like srsly. I fixed it. I changed istreambuf_range<unsigned char> -> istreambuf_range<char>. I am so sorry for making such a humongous deal over something so trivial. I am ashamed and embarrased >.,
:'(
Writing a native app in C++ or Go with a JavaScript GUI / Visualizer?
Since all the hip JS gui libs look quite good I am thinking about this..
user142019
Love's the funeral of hearts.
@Zoidberg wat?
Any ideas how to do this?
@DomagojPandža Love's the funeral of hearts.
21:59
@StackedCrooked He's on Facebook?
user142019
@DomagojPandža Ville Valo said it so it's true.
Well, not surprising, considering he works there.
@EtiennedeMartel slowpoke
Let's have sex.
4
Maybe later.
Ell
Ell
22:01
@BartekBanachewicz i.imgur.com/lcA2tJZ.jpg I'm sorry for wasting your time >.<
@Xeo That was the primary call for proposals, LWG. They weren't looking for too many language proposals for C++14.
Xeo
Xeo
@DeadMG Yeah, but I don't know if that'd be the right place to send it :p
hmm
this is why I started working on mine six months ago :P
C++14 is already a thing? C++ is turning into Call of Duty.
the process to get to C++11 was way too slow.
user142019
22:03
C++ of Duty
the Committee is quite right in trying to speed up
True, but can they do everything in 3 years considering the time it took them to kick off C++11?
Well, if they fuck up, we'll just ignore it, else we'll enjoy it.
C++14 is going to be a lot smaller than C++11.
@DomagojPandža I don't put my expectation too high.
@ScottW Noo!
@DomagojPandža By then we'll be using Wide.
well
to be fair I am adding new features at a fair rate these days
22:06
Are you using a test-driven approach? Or does that not work when creating a programming language?
I've never done test-driven
or... any kind of testing beyond "Run it with a couple of samples".
It's great fun. For generic 'fixtures' at least.
huh.
LLVM is quite right- Clang's codegen decided not to emit the body of std::move.
how odd.
Saints Row 3 coop is hilarious
22:12
what file is std::move even in?
Try <utility>
@CatPlusPlus That whole game is hilarious. :D
Hello fellas Still programming c++ :) noobs :P
cheers
PHP noob alert.
22:14
hmm, no effect
let's check the definition for any funky attributes or whatnot
nope, it's right here.
how odd.
@DomagojPandža PHP doesn't alert noob its Javascript that does :P
@StackedCrooked agner is the master of optimizations, he also offers the latency list for each op which mysticial often refers to
fucking hell, it takes so long to compile any source file that includes more than one Clang/LLVM header
might need to look into PCH
Ell
Ell
How does forking someone's rep work?
to contribute to it?
22:17
In my profession, when you turn to C++ optimizations for performance, you're pretty much fucked. So is optimizing FPS counters and @EtiennedeMartel's optimizations of debug logging routines. :P
@DeadMG why?
because they're gigantic
Xeo
Xeo
Always the same with the Puppy on #llvm - "Clang won't do what I tell it it... oh, wait, here's how I should tell it to. Nvm!"
I finally built SFML... and discovered I seem to missing a single library. Sigh.
@Xeo Actually, the recurring theme is that Clang doesn't have that option.
22:22
And the missing library is only missing in release...
especially when it comes to dealing with Clang's codegen.
I hate these new video ads from YouTube.
@DeadMG so optimize that
Not enough revenue, they said. More ads, they said.
@MooingDuck I can't optimize other people's headers.
22:23
@DeadMG optimize the case of large headers
@MooingDuck That's basically just PCH.
or modules.
What's wrong with me, I read Mooing Duck's response to MG as "Optimize the case of large boobs."
@DomagojPandža O.o
@DeadMG so when you say it's "so slow" you mean "clang is slow to do that task even without any of wide"?
@MooingDuck No, I mean, VS is slow compiling the Wide implementation parts which include Clang headers.
is VS slow compiling an empty TU with those headers?
nevermind, makes no real difference
@DeadMG new response: neener-neener.
my SO question unformatted itself : stackoverflow.com/a/15441066/845092
oh wait, replacing the spaces on teh first line fixed it. very strange
22:32
fuckshitballs.
Clang, y u no emit body of std::move? :(
@Ell you do realize it's my fault entirely?
my range sucks.
@DeadMG inline
probably UB
well, 100% UB
@MooingDuck Took care of that.
@DeadMG It doesn't like puppies?
22:33
char is not convertible to unsigned char
fucking UB :/
user142019
@DeadMG clang is arcane.
I should be sorry @Ell
@BartekBanachewicz UB can indeed be fucking
38 mins ago, by Ell
@BartekBanachewicz I am such a stupid idiot. srsly. Like srsly. I fixed it. I changed istreambuf_range<unsigned char> -> istreambuf_range<char>. I am so sorry for making such a humongous deal over something so trivial. I am ashamed and embarrased >.,
that sounds like a total UB conversion to me
right? @Xeo ? @DeadMG ?
Xeo
Xeo
Hmm... Puppy, how did you go about getting the document number for your papers? Just mailed lwgchair, asked for a number, done?
22:37
@Xeo Yup.
@BartekBanachewicz greetings. I decided to ask for Laurent's help over on the SFML forums. Apparently, I misread on how to create the static libraries, and got them... and a bunch of unresolved external symbol errors. In theory, though, like usual, Laurent will get me through :D
strictly, they're supposed to mail me back the doc number, but it was a smidge late, so they just put it up with the document number
@Pawnguy7 I don't know. After he told me how his library is simple and I should get out if I am using shaders, I am not sure if I like him
@BartekBanachewicz No idea. I have never used istreambuf_range.
but it's pretty unlikely.
@DeadMG I wrote istreambuf_range
i might have written it badly, as it seems
Until it runs on any linux I have, well, fuck.
22:40
@BartekBanachewicz I will admit, he does seem... kind of like most people on SO, actually. Which, granted, some of the time - most, in my case - it was the result of some bad research, of which, I think it is deserved. Other times... well, a bit rude, I guess, but still helpful for solving errors I have had, me being a just a nooblet. In theory this can be fixed and I hopefully will not need to take more of your time.
you can, just today I am spending time with my GF
that's why i said we can get back to it tomorrow
I've compiled SFML about 50 times already, so...
anyway, SFML's graphics component is totally borked if you want anything more complex
If this goes nowhere, I will take you up on that, but hopefully this goes well. Ah. Quite a pro, you are :D although... what does not work about shaders, and why not use them with SFML?
I am not a pro. I just know some things about OpenGL
One up on me, then :D
SFML doesn't pay attention to the context it is using
22:42
@BartekBanachewicz Glad you corrected him, cause I woulda looked like a total dick doing it :P
@DeadMG well fuck you too. I have still a few years to catch up with y'all
:P
I move forward at the same rate you do, one second per second.
As in, the context of the what SFML uses vs yours in between?
@DeadMG I am draining knowledge off you. The distance is shrinking
22:44
I feel like it said something about that, but I don't plan to dabble in openGL to soon - I crashed and burned pretty badly last time.
and hopefully, as I always said, you will learn something back.
@Pawnguy7 more or less
@Pawnguy7 hm, depends on desired results. SFML is simple. But sooner or later, if you want to dig into graphics, you will need to learn OGL anyway
@BartekBanachewicz I hope too. But I guess when you cannot finish pong due to bad design is probably not the best entry point into the subject.
Also, if you use SFML only as a windowing system/context establisher, does it still interfere somehow?
yes. I think I found a bug in it.
Oh, yeah, I almost died today. Thanks, snow.
damn
no matter what I do, Clang won't emit the body.
fucking hell Clang :(
22:48
If it is worth anything, I think the API is good, for the most part. One thing I don't like is, things like setPosition except two floats, but setSize, only a vector... any idea why?
Also, I must stop p-wording people. It looks like puppy is talking with himself here.
Ell
Ell
Oh hi bartek!
@DomagojPandža p-wording?
You're smart, you'll figure it out. :D
those smarts are currently otherwise occupied
22:49
Anyways, I drank way too many energy drinks today. I feel a heart attack coming along.
hmm
I wonder why std::move is different to, say, std::basic_string::operator=.
maybe libstdc++ simply happens to export those instantiations from it's library.
Unresolved external symbol is the declare but do not define error, right?
Xeo
Xeo
Yes
ahahahahah
Xeo
Xeo
22:51
Or to have templates in your cpp - which amounts to the same in the end.
Ell
Ell
Ahh I didn't realise bartek wrote istreambuf_range, I thought it was boost for some reason
I am going to bed @Ell
yeah, it's my abomination
if you aren't going to sleep yet, try the version below (commented one) instead
If I were to be getting unresolved external symbol errors from an external library, but the IDE found the include and lib files it was using... what is wrong? I would think the definitions would be in the file...
I think we are getting 2 distinct errors
anyway, you are damn great
Ell
Ell
I'm currently in bed but ill deffo try tomorrow if I can
22:54
when are you waking up?
(how early?)
Ell
Ell
It will be 8:00 but I have a driving lesson straight away unfortunately :/
early morning is the only time I don't have to take care of my GF
fuck.
Ack. Laurent left :\
can you do a diff/zip/pull request of your version somehow?
Ell
Ell
Sorry :/ you can leave some messages for some stuff for me to try though
Or even anything I could have a go at writing
22:56
and get it to me, so I can look at it tomorrow morning?
I first need to take at your copy
please send me an email or whatever channel you might like
Ell
Ell
I'll try and do something yeah - but at the minute git elludes me when it comes to actually collaborating
you can just remove binaries and .zip the whole thing up
Ell
Ell
i can't tonight unfortunately :/ ill get it to you asap though
okey.
you are awesome and thank you
see you tomorrow.
Ell
Ell
goodnight :) and you're awesome too ;)
22:58
@Pawnguy7 The lib might have been compiled with a different version of the compiler/library.

« first day (881 days earlier)      last day (4293 days later) »