« first day (1652 days earlier)      last day (3289 days later) » 

6:00 PM
@Prismatic Also, for what it's worth, in quite a few situations you can use a stable::iterator with a normal vector (or deque) instead of a stable_vector. This is often still a little slower than traditional iterators, but a lot faster than a stable_vector as a rule.
 
I just can't get glGetShaderInfoLog to work. Keeps giving me garbage.
Although, what's funny is that it returned me a smiley face when the shader compiled.
 
it's not garbage :)
 
@JerryCoffin neat
 
@Nooble the hell are you doing
 
@deW1 I'm pretty sure it is. I don't null-terminate my strings, because glGetShaderInfoLogis supposed to overwrite it. But it isn't.
@Borgleader Trying to print shader logs.
 
6:07 PM
@Nooble It's returning a value of 1, just encoded in a character. As it happens, in the original IBM PC (since referred to as code page 437, and the basis of code page 1252) the character with a value of 1 was a smiley face (and 2 is a smiley face, but with the black and white inverted).
 
@Nooble no i mean, wth are you doing for that to give you garbage
ive used that before and it works
 
@Borgleader Here, let me put it on hastebin...
 
 
It's not a smiley it's a dwarf
 
@JerryCoffin one could argue that's racist though because white comes before black here^^
 
6:09 PM
Wait fuck.
Yeah I'm being stupid.
 
did you not allocate memory for the string?
 
Your code is garbage
2
 
@deW1 One could also argue that a clear sky is white and fresh leaves are yellow, but it'd be complete nonsense.
 
user1804599
That's C++, not Erlang.
 
user1804599
y u highlight as Erlang
 
6:11 PM
@CatPlusPlus I know :(
@Borgleader I don't think I did.
 
Also that colour scheme is shit
 
user1804599
ws.send('0.0.1\0auth\0rightfold@gmail.com\0lol123') works wooo
 
@Borgleader Thanks.
@JerryCoffin Nice.
 
6:15 PM
lol null termination on wire
Your framing sucks
 
Angry Cat Plus Plus? :o
 
@deW1 thats redudant
 
@deW1 No, just Cat Plus Plus.
 
user1804599
@CatPlusPlus It's not termination.
 
user1804599
It's the argument delimiter.
 
user1804599
6:17 PM
Framing is done by WebSocket.
 
user1804599
I'm too lazy to learn how to do JSON in Haskell.
 
if it were terminated it would be ...lol123\0 as well
 
I have entirely too many crappy things to do
 
-2
Q: Random function changing randomly

Farha Syedm looking for a random function which changes randomly and should be unpredictable by the hackers....can anyone please provide me with some suggestions? And how should I develop a relation between two random functions changing randomly? (if I use same function at two different places)

hahahaha
 
@deW1 lol
 
6:27 PM
 
Holy shit, that got lounged fast.
 
still my favorite
 
@deW1 Do you still have a link to it?
 
@Mysticial pretty sure it's deleted that was over a year ago i think
 
@Mysticial wat? half of those arent from the lounge
 
6:35 PM
@Borgleader glGetShaderInfoLog's giving an empty string.
 
if it's empty you're doing it wrong
 
@Nooble uh if it succeeded i think thats normal?
i only print the log when it fails
 
Oh.
Hmm...
 
i think its allowed to return nothing if its all good
AFAIK the log is for warnings and errors
> Application developers should not expect different OpenGL implementations to produce identical information logs.
orrrrrr
your implementers are lazy
 
I'm purposely trying to make it have an error in the shaders.
Still nothing.
 
6:38 PM
glGetShaderInfoLog returns the
information log for the specified shader object. The information
log for a shader object is modified when the shader is compiled.
The string that is returned will be null terminated.
 
idk what to tell you really ive used that exact function before and it would print stuff.
 
@Nooble open a post on so
 
I'll spend another 15 minutes on this and see if I can solve it.
I can get the compile status and everything, just not the logs.
 
string is mostly the same as vector. — Phantom 1 min ago
 
1
Q: In C++, should I ever declare a local variable in the corresponding header?

user2690449So for example, I create a class with two functions: foo.h class foo { public: foo(); void bar(); void ey(); bool m_memberBool; bool localBool; // ??? Should I put this here? }; foo.cpp #include "foo.h" foo::foo() { bool m_memberBool = true; } void foo::bar() { b...

 
user1804599
6:46 PM
lol
 
6:56 PM
wow
 
user1804599
My new avatar is great.
 
@rightfold you mean the blank one? yeah I dig it :)
 
-15
Q: Random function changing randomly

Farha Syedm looking for a random function to generate random numbers which (internally) changes randomly and should be unpredictable by the hackers....can anyone please provide me with some suggestions?...you all could also suggest me to develop my own function. And how should I develop a relation between...

 
@deW1 blank? yeah its to reflect the state of his many github repos
 
double post oh no
 
user1804599
7:06 PM
dude
 
user1804599
MGS4 y u 50 minute cutscene.
 
50? Really? :D
 
Wait, why would I be posting ugly pictures of myself online. I'm not a female facebook user
 
user1804599
@wilx Nah, apparently just 30.
 
user1804599
Oops, I accidentally flagged something.
 
7:19 PM
@rightfold ... yeah, yeah. That's what they all tell.
 
user1804599
:[
 
@rightfold nice knowing you. R.I.P
 
@rightfold C'mon baby, it's alright. Still bored?
 
user1804599
No!
 
user1804599
I'm writing a tool in Haskell and LiveScript!
 
7:20 PM
Don't be so upset, hon!
Ah, sweet
Gibt @rightfold einen Bussi auf die Wange
 
@rightfold: Dude, do you ever finish anything?
 
user1804599
NO!
 
@rightfold Also, Haskell can actually be used for practical purposes? Have I misunderstood sth.?
 
user1804599
Sure! Just look how beautiful the code is!
 
user1804599
handleWebSocket' :: Connection -> ReaderT Actions (StateT Session IO) ()
handleWebSocket' conn = do
    liftIO (receiveDataMessage conn) >>= handleRequest >>= liftIO . sendDataMessage conn
    handleWebSocket' conn
 
7:22 PM
@rightfold Wait, once can use I/O with Haskell!? I thought you could just do mathematical functions with it?
And such shit?
 
user1804599
Well, you can't do I/O in Haskell.
 
Anyway, Rust > Haskell
 
user1804599
You can return a recipe of how to do the I/O from main, and the runtime support then does the actual I/O.
 
@Borgleader I got it working, thanks :)
I still dunno what the problem was though, I just wrote everything from scratch.
 
user1804599
And you can combine the recipes with >>=.
 
user1804599
7:25 PM
Or with do which desugars to >>=.
 
@Columbo Darcs, GHC itself?
 
@rightfold The distinction is so academic I don't even
 
user1804599
While writing the programs nobody gives a shit about it.
 
user1804599
Although it is important w.r.t. laziness.
 
user1804599
foo = putStrLn "Hi!" as a top-level binding doesn't print anything by itself.
 
user1804599
7:28 PM
You have to return foo from main.
 
user1804599
Try to suck your own dick.
 
heyyyy your avatar has a cute litl haskell logo in it now
 
user1804599
!!!!!!
 
FredOverfold.
4
 
7:29 PM
Too bad purple is the worst color of all time
 
user1804599
No. Purple is great.
 
Change it to pink
 
I quite like purple.
 
user1804599
Purrple.
 
user1804599
See?
 
7:30 PM
Change it to punk
 
purple is the bastard child of blue and pink
 
Purple is the color of wealth though.
 
ugh kde is such a buggy mess
purple is the official color of engineering, which is it why it sucks even more
 
@rightfold What IDE do you use for Haskell
 
user1804599
Vim.
 
7:33 PM
they fixed the console but now the text editor is borked
 
@rightfold That console shit!? I just started it, got startled and pkill'ed it
I couldn't control it one bit
 
user1804599
No, MacVim.
 
Mac lol
Now I know why you got a vagina
 
user1804599
 
look at all that syntax highlighting
 
7:35 PM
@Prismatic I was gonna say
 
user1804599
Fuck syntax highlighting.
 
@Prismatic :P
 
The weird thing is, if I look at the picture from further away I seem to see some syntax highlighting
Green, blue and such
 
@rightfold Its like you're a peasant from the 1980's coding html on notepad
 
lol
 
7:36 PM
@Columbo I see purple.
The picture was so small I didn't know it didn't have syntax highlighting.
 
haskell is still pretty offensive but syntax highlighting makes it slightly more tolerable
 
user1804599
> PureScript's ++ is an operator for Semigroups in general, not just strings.
 
user1804599
Awesome!
 
We're getting entirely too much in the way of offensive graphics being posted here. I may need to post some pictures of naked women to provide some balance.
 
user1804599
 
7:39 PM
@JerryCoffin Koalas are better.
 
> He had a master certification in Java and C++, and boasted of scoring "higher than 96% of all previous test takers" for the Java certification and being in the 89th percentile for the C++ test.
What the hell is a master certification in C++
 
probably something ancient
 
wow, ageist
 
@rightfold with just a tiny bit of work you can do this in Haskell; but the language is in fact very interesting!
 
Arrrgh. Why the hell are the trains heated? :(
So much effort tuning my garb to achieve the perfect temperature and then I'm invariably sweating on the train.
 
7:48 PM
it was 1C outside yesterday and the train's heating was off
wanna trade?
 
That's smart.
Yes!
 
@Prismatic Somebody handing out certifications to anybody who pays enough and takes a (probably deeply flawed) test and got at least a few answers sort of close to what the test's author thought might be correct.
 
I don't wanna have to take my coat off when I hey on the train.
It's silly.
 
i hate this period of the year, not this week but the week prior, it was cold enough in the morning that i needed a coat, but warm enough in the afternoon that i was sweaty in it :(
 
@R.MartinhoFernandes I'm finding that it's actually fairly pleasant to just live somewhere that it almost never gets cold enough for that to be necessary.
 
7:51 PM
It's not necessary!
That's my point.
Germans are a bunch of pussies.
 
@R.MartinhoFernandes I mean necessary to worry about what you're wearing.
 
A lot of people like heating when they step into a transportation vehicle here.
 
8:35 PM
0
Q: What type have multidimensional array?

AeroSunI am writing own 2d matrix class. I want to design the use of this class much close to real math notation. For example I want access to element as matrix[3, 6]. But c++ didn`t give this ability, but I could access to base multidimensional array in the next way: int matrix[2][2] = {}; int val = m...

 
What a technique.
Tag it with and a regular will see your question and answer it maybe.
 
8:53 PM
Hurray, I hit 6K rep.
4K to go.
 
> It made me feel nasty
> And it ain't personal with you either cause you're white
> You orange flavoured motherfucker
 
@Borgleader 1? -20 is when it starts getting cold, weakling.
 
user1804599
[String] y u no Semigroup
 
user1804599
9:08 PM
wtf xD
 
9:19 PM
@EtiennedeMartel I always figured -40 was a nice number to use for "cold". That way you don't even have to care about whether you're talking Fahrenheit or Celsius to not only agree that it's cold, but even agree on exactly how cold it really is.
 
@EtiennedeMartel Not necessarily.
it could be relatively colder at 1C than -20C.
for example I'd be willing to bet that trains in Canada have a lot more measures to protect the occupants from the cold
 
51
Q: Using C++11 futures: Nested calls of std::async crash: Compiler/Standard library bug?

SebastianKAfter experiencing crashes when introducing nested calls of std::async in my real program, I was able to reproduce the problem in the following minimum example. It crashes often, but not always. Do you see anything what goes wrong, or is it a compiler or standard library bug? Note that the proble...

This is weird.
I'm gonna guess that this is due to std::async trying to put into a promise twice.
 
considering that the error message literally states that
 
9:34 PM
@Puppy ikr
 
@Cinch Doesn't happen with me.
 
@Rapptz Me neither.
Might just be his pthread implementation
 
not sure why you felt it necessary to revive a question which is clearly just an implementation bug and has no further value to anybody.
 
Oh it's MinGW not MinGW-w64.
Oh nope
 
> gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project), as provided by Qt 5.3.2
It's MinGW-w64
 
9:38 PM
lol guy reported a bug report for MinGW instead of MinGW-w64 though in the comments
 
@Rapptz I think it's a pthread bug, honestly
 
It's a pee thread. Hehe.
 
it's not that simple in Windows/MinGW.
there are two threading schemes wrapped by MinGW-w64, win32 and posix
the latter uses winpthread iirc
 
@Rapptz I know
But the pthread library itself appears to have had a bug at that time
(lol "a bug" #Cinch-so-specific)
 
k
 
9:42 PM
@Jefffrey Not anymore, and I'm drunk. Which might explain why I don't understand the question
It in fact upsets me that I don't understand the question
 
@Cinch Doesn't matter.
 
nor Yakk's comment, but that's kind of usual, I never understand his genius comments
 
@Puppy The thing compiles on version before 4.8.2. and runs fine too.
 
I need to improve my brain
 
that also doesn't matter.
there's only one thing that's important and that's that it's an implementation bug- case closed.
 
9:47 PM
@Puppy Why?
 
leave it to the implementers who know their implementation to figure it out
 
@Puppy The question is still "unanswered"
 
@Cinch The answer is effectively in the comments. There's no purpose in pursuing it further.
 
First goal for C++17:
> Improve support for large-scale dependable software
Kinda vague.
 
9:50 PM
nah
that pretty much means reducing unnecessary UB/IB or unspecified behaviour.
 
unnecessary UB?
 
@Rapptz lol
copy-paste gone wrong
or a badly-programmed answer bot
 
@Puppy Then I'll just write an aggregate answer for clarity and be done with it
 
Looks like asio gonna be in C++17.
 
@StackedCrooked UB that was done to support platforms nobody needs anymore, for example.
 
9:52 PM
Ah right.
 
@StackedCrooked Is there a proposal for that?
 
I think so.
 
Wait maybe you don't mean asio as in boost.asio
 
Kohlhoff has been rather active lately.
 
asio is so dope
 
9:54 PM
He also did a proposal on exectors.
 
the await 2.0 thing?
 
He also did that.
IIRC
 
user image
3
 
The executors are more like a foundation to enable task based programming.
post/dispatch/defer etc
 
@Rapptz there, you have the definitive answer
 
9:58 PM
@AndyProwl lol you agree?
 
@Cinch I just find it funny
 
Lol at my old question:
11
Q: Should I stop using auto_ptr?

StackedCrookedI've recently started appreciating std::auto_ptr and now I read that it will be deprecated. I started using it for two situations: Return value of a factory Communicating ownership transfer Examples: // Exception safe and makes it clear that the caller has ownership. std::auto_ptr<Component>...

 
@StackedCrooked Oh I've seen this before
That was when I was confused about which smart pointer was actually up-to-date/okay to use
 
@AndyProwl lol
 

« first day (1652 days earlier)      last day (3289 days later) »