« first day (418 days earlier)      last day (4531 days later) » 

Xeo
4:01 PM
> = speed at which Marty McFly needed to drive the Delorean DMC-12 in order to time travel ( 88 mph )
lol
awesome
 
there's something so right with C++
there are many things so wrong, but I just love templates
 
They could use with some fixing too.
 
true true
 
Xeo
Yeah, they could allow you to find out if a certain template has been instantiated yet
 
also, I observed that this is most definitely an LL parser, and I need to rework my expression syntax
 
Xeo
4:06 PM
> I would hit that so hard the next person to pull me out would be crowned King of England
I lol'd
 
lol
 
huh... its funny how planck legnth is the smallest unit of length, planck time is the smallest unit of time, but planck speed is the speed of light
 
Maybe because it's Planck length/Planck time?
 
really? I never noticed that
 
I don't now, I'm just guessing.
I'm awesome.
 
4:10 PM
well, it certainly makes it easier to remember the speed of light, 1 planck per planck
I'm awesome.
 
Why? What did you do?
 
no, I'm awesome
bitches
 
I'm the one that got starred. Suck it up.
 
lol
 
and by the looks of it planck speed is not planck length divided by planck time
 
4:12 PM
Thanks to whoever did it btw (it wasn't me).
 
yes'm
 
2 mins ago, by R. Martinho Fernandes
But it is: http://www.wolframalpha.com/input/?i=planck%20length%2Fplanck%20time
 
but I got pointlessly pinned!
 
Do the math.
 
sbi
@DeadMG "A hen is just an egg's way to make another egg."
 
4:12 PM
@DeadMG Cheater.
 
I didn't pin it!
 
@RMartinhoFernandes you can't star your own posts
 
I usually unpin things like that
 
@thecoshman Yes, I can.
 
@RMartinhoFernandes :O
 
4:14 PM
It's a hack.
 
it's l33tness
 
/table flip
yes... I am too lazy to google up the ascii for it
 
sbi
@DeadMG Yeah, sure. They all say that.
 
@sbi what this?
 
lol
 
sbi
4:15 PM
@thecoshman I read "It wasn't me", and I pavloved.
Anyway, need to get back to hacking. Have fun without me. Sigh.
 
Xeo
Have fun with C#
:P
 
@sbi Have fun! :)
 
You guys are cruel.
 
o_0 some random alert just flashed it ugly ass at me and ran away...
 
Xeo
4:18 PM
lol
 
Can I haz link to FAQ about looping while(!eof())?
 
few minutes then I can run away from work ¬_¬ sweet
 
This eliminates problem of Most Vexing Parse : Foo obj((Foo()));
 
D: 95% on like an hour long USB copy remoting over to another computer then my brother turns it off and cancels
 
The reason that Foo obj((Foo())); works because when you declare function like T foo(int a), you can't put parameter in parenthesis i.e T foo((int a)) , but when you call the function in an expression , you can put args in parenthesis foo((a)) .So the same goes with Foo obj((Foo())); , we put the (Foo()) to say compiler it's an argument which shall call copy constructor .
right?
 
4:21 PM
@KianMayne rsync
 
@FreakEnum Yep.
 
@KianMayne fun
 
Why is my connection so slow all of a sudden.
 
Xeo
6
Q: Why is iostream::eof inside a loop condition considered wrong?

MAKI just found a comment in this answer saying that using iostream::eof in a loop condition is "almost certainly wrong". I generally use something like while(cin>>n) - which I guess implicitly checks for EOF, why is checking for eof explicitly using iostream::eof wrong? How is it different...

 
@RMartinhoFernandes But some users on SO thinks I am wrong :(
 
4:23 PM
I completely disagree with your assertion
anything becomes funny if you add LIKE A BAUS at the end
 
Xeo
@CatPlusPlus Oh, you too?
 
@DeadMG No, not really everything.
 
@DeadMG hmm, that must have been the problem then
 
What can I take out of a class that says - " a = b ;" 'a' is an lvalue and 'b' is an rvalue. huhhhhh
 
I can't even get to the router's internal httpd.
 
4:27 PM
@Mahesh You can take that it's just silly and teaches wrong stuff.
 
@RMartinhoFernandes To be honest, he is an instructor teaching us how to write secure coding in C & C++ at our office. huh ...
 
And it is for 3 days.
 
How can he do that if he doesn't know C++?
 
4:30 PM
And he says he is a C expert.
 
Not even in C is that thing true.
In a = b;, both are lvalues.
 
Yup.
 
for app development...do people still use c/c++?
 
What kind of app are you talking about ?
 
@anonymouslyanonymous what else would C and C++ be used for?
 
4:33 PM
@anonymouslyanonymous I write C++ applications every day
 
@awoodland Opensource
 
I sure don't use C++ as a sex toy
4
 
lol
 
tehehe you wrote a naughty word. Have a star.
 
Xeo
Okay, now it's seriously ticking me off. brb router restart ¬_¬
 
4:34 PM
What pervert minds you have.
 
lot of people told me that java or .net would be a better choice to build apps faster...i mean desktop applications or mobile etc...not os'es and stuff
 
Xeo
And it is the fucking router that's the problem. Great.
It even takes minutes to just login into it oO
 
Mine appears to have recovered.
(That's English? Dunno.)
 
Did you mouth-to-mouth it?
 
I threatened it with hammertime.
 
Xeo
4:39 PM
Mine seems to have recovered after a restart too
now let's wait 5 minutes.
Also, youtube sucks
It can't even deal with a short disconnect
the video continues to buffer after reconnecting, but the video just stops at the point where the disconnect originally happened
@jalf Game development. :P
on consoles n stuff
can't really call that an "app"
 
of course it is
a game is an application
or should I invent other arbitrary restrictions on the functionality of an application?
An application is any program, except those that are garbage-collected.
There, now C++ is virtually all applications
 
@DeadMG What do you mean? A garbage-collected application is still an application.
 
uh
 
Nope, my Internet still sucks.
 
you may have failed to note the extreme sarcasm
 
4:48 PM
2kB/s, ridiculous.
 
amazed you can use the chat on that bandwidth
 
@DeadMG Oh.
Damn.
 
and here was me thinking that the only way I could have made it any more sarcastic is to write "I AM NOT BEING SARCASTIC" on the front
 
now thats just being silly
 
Gimme a break. Sarcasm detection is a computationally intensive task.
 
4:51 PM
wonder if we could write aprogram for that?
 
I could write bprogram for that.
 
I could write a BQP algorithm for it
as long as the bound is 100%
 
Als
Design patterns...eh
quiet room
 
Als
@RMartinhoFernandes: Oh long time
 
4:58 PM
That you in the picture?
 
Als
@RMartinhoFernandes: Yes. Finally got rid of the lady :P
 
also
har har, fuck you variadic templates, I don't need you!
typedef nary_left_binary_expr<unary_expression, decltype(FSM::make_equality(Wide::Lexer::TokenType::Multiply) || Wide::Lexer::TokenType::Divide || Wide::Lexer::TokenType::Modulus)> mul_expression;
 
That's just a convoluted typelist.
 
Als
@RMartinhoFernandes: I gave my profile pic a makeover
:)
How are things here, I havent been here much lately, And in hurry today as well
 
it's not convoluted at all :P
 
Als
5:01 PM
just thought of saying an quick hello
 
@Als You know the usual. Sex gets mentioned sometimes.
 
Als
sometimes hehe i know
okay going to take off, have a good day folks
 
Als got a new image?
 
indeedy
you know what I find disappointing?
you can't do something like template<typename T, T t> operator||(lhs, t)- i.e., where lhs || t passes t as a template
or maybe you could as constexpr
?
 
Xeo
5:14 PM
@DeadMG What are you trying to achieve with that?
 
well, I want to use expression templates to construct an AST as a type
but I want to capture the expression values as constants so I can statically verify them
 
I have precomputed some values per vertex (in an array on the cpu) I want to use in a vertex shader (openGL). What would be the easiest way to achieve this?
 
Xeo
you could use constant token types, like MPL's int_ etc types. integral_constant<char, '('> in your case, and do static verification on T instead of t
 
pretty much exactly what I'm doing
it's still ugly, though, because the run-time version can do, for example, factory_function(value) || value || value || value
and the new version will have to call factory_function<T, value> for every value
no, you're supposed to put them in the vertex buffer
that's what the vertex buffer is for- per- vertex data
 
actually i have 2 values per vertex i need to use
 
5:18 PM
I never said anything. I always read stuff before replying.
 
I bound them to GL_TEXTURE1
using glBindBufferARB()
but I cant seem to figure out how i access those values in the shader
 
Don't do that.
I was talking nonsense.
 
what should I do instead?
 
Attributes. I think that's what per-vertex inputs are called.
You write something like in float attrib_a; in your shader. And I don't know how you pass them from the OpenGL code.
 
I'm not an expert on OpenGL, but I'm pretty sure their basic shader systems are exactly the same as Direct3D
and per-vertex data goes in the vertex buffer
that's wtf it's for
 
5:24 PM
Sure but you need a way to map the data to the stuff in your shader.
 
...and that's what I can't seem to figure out
 
it goes in the input of the vertex shader function
the vertex shader is like func(float4 vertex_pos, float4 vertex_normal, ...)
you can't do anything in a shader if you don't know how to get per-vertex data out of the vertex buffer
any basic tutorial should cover it
 
What do you mean by vertex shader function? I know how to use the built in's ofc. Also, the tutorials I found cover uniform variables which are the same across all vertices only.
 
well, in Direct3D, you just write it as a C function, effectively, that takes as arguments the per-vertex values
GLSL isn't that different from HLSL
 
5:31 PM
@DeadMG getting data like gl_Position, gl_Normal, gl_FrontColor etc. is dead easy and in any basic tutorial, but doing it for user defined varying attributes is less obvious
 
the point of shaders is that every attribute is user-defined
 
@DeadMG Stop pretending OpenGL is not a clusterfuck of an API!
 
not every vertex has a normal, wtf are you going to do when normal mapping it?
and most of them take colours from a texture and not per-vertex colour
 
@DeadMG but GLSL makes some of the "fixed functionality" stuff visible to shaders and makes it much easier to do the more common thigns
 
Xeo
5:33 PM
I'm so glad I don't have to deal with shaders and Direct3D anymore since my DirectX lessons ..
 
@RMartinhoFernandes that's the one - you need to set some client state first IIRC
 
I quite enjoyed playing with shaders
I'd have done it more if I didn't have to work with C++ to get it done :P
 
Xeo
With the shaders themselves, yeah, but not with the Direct3D stuff
 
it seems fun, but the learning curve seems to be rather steep ^^. I should probably get a book or something
 
@awoodland Set the attrib data pointer?
 
5:35 PM
I wish there was a sane modern C++ interface to OpenGL - I end up reinventing loads of basic things every time I use it
 
Xeo
We even did Conway's game of life as our final test for DirectX, which was cool. And We got the whole C++ framework set up for us
 
@Xeo I remember
 
@RMartinhoFernandes glEnableVertexAttribArray
 
you got the co-ordinate systems wrong, I think
 
Xeo
5:36 PM
Something like that, yeah
 
Ah, right that.
 
alright, trying to figure these out
 
@Matthias Ok, here's what you have to do, once your shader program is linked: glGetAttribLocation to get an ID for your attribute, glVertexAttribPointer to tell where the data is to be found, and glEnableVertexAttribArray to enable attribute arrays.
 
alright, that makes sense
 
aaaaaarrgh
my sweet expression templates automatically generated parser no worky! :(
 
5:40 PM
That's starting to become usual.
 
I know :P
 
Oh, you can specify the layout directly in v3?
Cool.
Me needs a modern graphics card to play with this.
 
thx awoodland
 
@Matthias that's quite a good reference on modern opengl
 
5:42 PM
I really need to just build the parser in a separate app
it would be much easier
 
I'll work through this one
 
Xeo
Oh well, afk dinner
 
Yay, more books arrived.
 
ok
the input file was malformed :P
 
What? You can't even write code without syntax errors in your own language?
 
5:51 PM
hey
no ide, no Intellisense, it was a simple typo :P
 
Spoiled kid.
 
and for the record, it still doesn't work :p
isn't this why I debugged this stuff ages ago? :(
 

« first day (418 days earlier)      last day (4531 days later) »