« first day (1203 days earlier)      last day (3738 days later) » 

7:00 PM
Try Friday by Rebecca Black
 
@thecoshman Don't tell me you're gushing blood all over your keyboard? Get to ER, you fool!
 
I personally don't find condoms to be excellent musicians.
 
@JohanLarsson how about this?
 
@EtiennedeMartel nope. Imgur album of seven images... I didn't know a torso could be disintegrated so cleanly
 
@thecoshman "minor"?
 
7:02 PM
Rick > Rebecca
 
/victory dance
 
@EtiennedeMartel ffs 'not talking'
 
> I'm talking about
 
Next time, make sure you don't forget a word.
Makes thing a bit difficult.
 
7:03 PM
I just got an offer trough careers 2.0
 
@EtiennedeMartel Did I ever mention I suck at my native language?
 
many salary?
 
@thecoshman Slurp.
 
Sec
@Marc 60-65 + healthcare + bonuses
 
Okay, Bronies, this is it. Tomorrow... #MLP gets weird. http://bit.ly/1fgeu4D #CheeseSandwichIsBestPony
So, Al Yancovic is a brony.
 
7:04 PM
I mean... this is perhap a little too much to even link to the reddit page linking too these images... but if you really want to... make use of this WTF/comments/1wm0u0/lathe_injury SERIOUS GORE
 
Somehow, I'm not surprised.
 
@BartekBanachewicz very benefits
@EtiennedeMartel what's more shocking is that Al likes cheese sandwich most
 
Anyway, Rainbow Dash is best pony.
 
agree
 
user3010322
@R.MartinhoFernandes Has the game begun?!
 
user3010322
7:14 PM
Am I too late?
 
user3010322
It's like 18:00 on GMT +1 right now, right?
 
1900
19:15
 
user3010322
So the game just started?
 
user3010322
Or, er. I'm 15 minutes late?
 
but today is just Friday... I thought the game was at the weekend.
 
user3010322
7:15 PM
Oh. Is it?
 
user3010322
Was it Friday?
 
@ThePhD saturday afaik
 
user3010322
Or Saturday?
 
I'm pretty sure I've been chatting here for a while and no mention was raised
 
user3010322
Oh. Okay.
 
user3010322
7:17 PM
Well then I'll definitely not make it Saturday, because I have to meet 2 ladies (both named Amy -- mega bizarre) who want to discuss graphics development.
 
Xeo
erm, it's Sunday
 
sounds like a terrible punishment
 
user3010322
@DeadMG Probably. But I want to teach what I know. :c
 
user3010322
It's a trap, but I can't help it. u.u
 
well that won't last long then
so if I have, say, an int16, and someone requests an explicit conversion to a uint32, should I zext or sext it?
 
user3010322
7:22 PM
Just... expand the bits?
 
user3010322
Throw if it's negative, maybe?
 
user3010322
Would be probably better just to memcpy the bits. vOv
 
if ya don't understand the question, you can just ask, you know.
 
user3010322
the "zext" or "sext" part is confusing me.
 
Xeo
zero or sign extend
 
7:23 PM
right.
there's more than one way of "expand the bits".
if you just throw zeroes in front of -1 to go from int16 to int32, it won't be -1 anymore.
 
user3010322
There's no way to preserve the sign, so it might be better to just drop the sign and copy the bits?
 
Xeo
provide explicit conversion where the user has to specify what he wants
 
user3010322
expanding_cast<> or whatever, I guess. :D
 
user3010322
expanding_cast<uint32>( myint16 ) defaults to expanding_cast<uint32>( myint16, drop_sign_t )
 
user3010322
So you can have a baseline default, but then use tags to specify which kind of behavior you want.
 
Xeo
7:26 PM
although I guess the most natural way to get negative numbers to unsigned is umax - abs(val)
or something like that
 
@DeadMG Honestly, if I cast an int16 to an int32 I would expect -1 to still be -1. because reasonably the original value fits in the new range so theres no reason it should change.
 
@Borgleader Yes, but I'm asking about int16 -> uint32.
 
user3010322
@Borgleader It's unsigned int32.
 
Xeo
@Borgleader uint32
 
@DeadMG The same thing as a int16 to uint16 cast, whatever that may be?
 
7:27 PM
@BoniTea No.
 
Oh lord -.- i cant read
im curious what does C++ do in such a case?
 
I think
a sign extend would be better.
because I think it preserves more information.
you could recover the original signed value if you knew it came from one.
 
That does seem like the best option.
 
Zexting is sexting in German
 
heh, this keyboard is surprisingly non-terrible
almost like the quality totally degraded in the middle of price range
Ghosting sucks balls tho.
 
7:36 PM
has anyone tried thrust? I just finished porting my toy lbm solver to it and the feeling is kind of meh
 
@BartekBanachewicz What did you buy?
 
@Borgleader the cheapest one I could find for backup purposes
 
Oh I thought you bought a fancy one
 
I already have a fancy one
 
I need a new fancy one. The keys on my Saitek Eclipse II are starting to wear out =/
 
7:38 PM
@Borgleader IMHO BlackWidow still has best price/perf ratio
but you might want to check the new Jeff's CODE keyboards out too
 
I was looking at the Blackwidows at some point, and this one seemed nice: razerzone.com/ca-en/store/razer-blackwidow-ultimate-stealth
(I don't like keyboards that make a ton of sound)
I don't think I've seen Jeff's CODE keyboards
 
razer makes a lot of claims, but in my two nephews cases, they don't last
and they're not children, they are 18+
 
i cant overload cuda kernel's based on host/device :(
 
@doug65536 mine is perfect so far
@Borgleader just not Ultimate, duh
why the hell would you want a backlit keyboard
I can't possibly imagine what other than "wow much showoff" is going trough minds of people who throw cash at Razer for Ultimate versions
 
@doug65536 I only bought mice from them (Diamondback 3g and Naga Molten) but they still work well.
 
7:46 PM
ah diamonbacks
 
@BartekBanachewicz My room is usually dark, why the hell would I not get a backlit keyboard.
 
@Borgleader wait how is that related to anything
 
@Borgleader didn't you mother tell you not to watch tv in the dark?
 
@Borgleader you don't need light to type :v
 
@BartekBanachewicz I do =/ (sometimes)
 
7:47 PM
gives me a headache to look at two big bright monitors up close in the dark, and I never get headaches
 
wait... what
@Borgleader do your fingers have solar panels or what
 
If I have to look for a key that I don't use often and I can't see it how am I going to find it?
@EtiennedeMartel ... wtf
 
@EtiennedeMartel this planet ._.
@BartekBanachewicz do you develop your opengl stuff on linux?
pain in the ass to switch x11 to fullscreen mode :(
 
Use glfw? or some other window thing?
 
8:06 PM
Moderator election on gaming.SE. First words of the first candidate:
> What up. I'm StrixVaria.
What up?
 
user3010322
Mmm. I need to rework my color classes...
 
user3010322
Need to make templated rgba<T>, rgb<T>, and hsl<T> classes isntead of the ByteColor, FloatColor, and HSLColor classes.
 
user3010322
Shit is starting to get a little ridiculous to manage. :c
 
I think I'm going to be flagged soon.
 
user3010322
LIAR.
 
8:12 PM
entering the JS always results in a ban for me
 
user3010322
Then stop doing it?
 
I just feel the urge to know what the hell is going on, when someone flags something
I play cop for few minutes and then get bored
 
JBL
Evening !
 
evening
 
anyone know a decent C++ WebSocket client library?
 
user3010322
8:17 PM
I implemented one in C#.
 
user3010322
Had they not removed me from Advanced Programming, I would have implemented it for C++ too.
2
 
@ThePhD Advanced Programming?
 
@Borgleader thanks. there is a way to do it (create additional render contexts for multithreading) in glfw, I'll try that
 
user3010322
@Abyx University class. They were going to have us implement a WebServer in C++ using Unix Sockets.
 
user3010322
I was going to overhaul the course and make it a WebServer plus WebSocket implementation, for both Unix and Windows socket apis.
 
8:20 PM
well I actually wrote a C++ WebSocket server, and now it seems I have to write a client
 
user3010322
@Abyx Well, the core is essentially the same. You just have to mask stuff when sending it to the server -- when receiving, not so much.
 
user3010322
You'll also be the one sending the handshake request and getting back a response to check for validity, rather than receiving it and sending a response.
 
@ThePhD 'WebServer plus WebSocket'... what on earth fo you mean?
 
user3010322
@thecoshman WebSocket is a separate specification for asynchronous back-and-forth comunication, that does not require and polling: tools.ietf.org/html/rfc6455
 
user3010322
WebServer is just... well, something that responds to incoming internet requests.
 
8:23 PM
@thecoshman websockets are a way to continuously send/receive over the http protocol. you have to do a handshake to "upgrade" the http connection to websocket
 
user3010322
@doug65536 The HTTP protocol is only involved in the handshake. After that, it's pretty barebones bytes.
 
@ThePhD I know what WebSockets are ¬_¬ but I fail to see how implementing a HTTP server leads you adding that. Especially when you have a clear scope.
 
user3010322
The WebSocket part was for fun. :D
 
@thecoshman then how did you know know what he meant?
 
Could someone explain how to make a button run a search?
just need a quick answer I will figure out the coding, just need to pointed in the right direction.
 
8:25 PM
@doug65536 huh?
Sorry, I thought you meant that you implemented a HTTP server for a class.
 
evening motherfuckers
 
user3010322
They don't require WebSocket stuff. They just require you to make a WebServer (I think just HTTP, not HTTPS stuff). I was going to flavor in WebSockets, because that would have been useful For My Purposes ™
 
@Mr.Vegas dude, this is a C++ room. Ask a well defined question on Stack Overflow. Chances are, as you type up the question, a similar question will be revealed for you
@ThePhD ah I see
@ThePhD also, Y U NO UNICODE?
 
user3010322
@thecoshman Fixed. :D
 
Y U NO STAR!
 
8:29 PM
@thecoshman is it the C++ room? Looks like the Octopus room to me
 
erm... who spelled wrong?
 
yeah, lame implementation doesn't refresh
 
@doug65536 it's a C++ room, the lounge and you need to hit f5
@doug65536 it does sometimes, maybe you have not sacrificed enough goats?
 
yeah, I have been slacking off on my ceremonies lately
 
As you'd know if you'd read your Old Testament more carefully, you need to sacrifice some doves as well as goats.
 
8:33 PM
and cure leprosy with bird blood and smash skulls of bad programmers with rocks and stuff, right?
 
@JerryCoffin oh pish posh. Doves ain't no good for a sacrifice, you need a crow or preferably a raven.
 
yay, now I get to screw with cmake for an hour to get it to build a nested cmake-built library
 
@thecoshman That would be me, I'm afraid.
 
@doug65536 Hmm...skull smashing. "PHP Programmers needed. Interviews will be held at the old quarry west of town..."
 
@JerryCoffin You should not be filling old quarries with toxic waste - it may leach into the water table.
Before long, an army of zombie PHP developers will be staggering into town, seeking to kill servers everywhere.
 
8:38 PM
@FredOverflow and too think I corrected you. Hang your head in shame!
 
@thecoshman you rarely make a sentence without mistakes (above is no exception)
:P
 
@StackedCrooked >:(
 
Ell
hi
 
9:00 PM
I hate that I do something problematic, which is inevitable because i’m white and human
I don't even know what that means.
 
holy crap I got something to work in cmake in under an hour!
 
@doug65536 'something', easy; 'something worthwhile', oh my.
 
Ell
I hate everything atm
 
I just learned I've been doing TDD before I knew what it was
 
Ell
I need to learn to control my outbursts of hatred and anger
 
9:07 PM
Related: Octodad
 
@Purrformance Yes.
I remember seeing a speed run of the original Octodad at AGDQ 2013.
 
@doug65536 nah. Use GLFW as suggested. Also why are you using OpenGL
 
@BartekBanachewicz yeah, using GLFW now... writing cross-platform implementation
 
hi
 
@Ell you fit right in
 
user3010322
9:37 PM
=[
 
user3010322
You can't define multiplication operators outside of a class? q_q
 
@ThePhD define outside the class. you mean, the definition outside the class declaration?
 
user3010322
Just as a free-function.
 
user3010322
Keeps telling me unrecognizable template declaration.
 
user3010322
OH
 
user3010322
9:39 PM
Nevermind found the derp.
 
@ThePhD Was it called "ThePhD"?
 
user3010322
@Purrformance Yes, and only your Purrfection allowed me to fix it and get back to Purrforming well, nyah~
 
moving lines up and down with a hotkey in a text editor makes life worth living
 
ctrl+shift+up?
 
9:52 PM
yes
no more home+home+shift+down+ctrl+x+cursor around+ctrl+v
 
cursor around?
 
Ok...I am still being surprised by some thing in C++ after all these years.
I have done class FileAppender: public Appender, protected virtual ForkHandler {...}; and I was not able to dynamic_cast<ForkHandler*>(appender_ptr) without getting NULL.
Now, if I drop the protected and add public, it works.
Is this really how it is supposed to work?
Since I am casting from sibling base class to another base...
 
user3010322
Bleh. I need to slim down Mathema. =[
 
user3010322
10:08 PM
Hm, wait a second.
 
user3010322
I don't even need a rgba<T> class.
 
How the hell do you write sane code to parse things like "\\ \" \\\\\"\""
 
user3010322
I can just derive from Vector4.
 
user3010322
@MohammadAliBaydoun :D
 
@MohammadAliBaydoun You write a grammar and you implement it using one of the well known parsing algorithms?
@MohammadAliBaydoun If you just have backslashes then you can use a simple state machine.
 
10:12 PM
@MohammadAliBaydoun This is relatively easy, compared with some other funny things.
Simple state machines like that aren't really that hard.
 
@wilx Best not to.
neither LR nor LL produce very good parsing code.
 
@MohammadAliBaydoun simplest way is to track how many characters are remaining, then when you hit a \, you make sure there is at least one more character, then switch on the next character, and advance two characters that loop
@MohammadAliBaydoun but yes, you should write a state machine, since you already need states to know you're parsing a string literal
 
Woah, playing Minecraft and not getting bored after 10 minutes
 
user3010322
It's a christmas miracle!
 
Fully automated fusion reactor :getin: dl.dropboxusercontent.com/u/26824/temp/mc/…
 
user3010322
10:24 PM
Whoa. o.0
 
@CatPlusPlus nice
imma turn on my server this weekend
we have to decide how we want to migrate to new version
our world is already like 2 years old
 
user3010322
Is there std::conditional for compile-time constants?
 
user3010322
Like, for values, not types?
 
yes, it's called the ternary operator
 
23 mins ago, by wilx
I have done class FileAppender: public Appender, protected virtual ForkHandler {...}; and I was not able to dynamic_cast<ForkHandler*>(appender_ptr) without getting NULL.
 
user3010322
10:27 PM
Oh yeah.... :c
 
Any comments on this one?
 
user3010322
It's protected?
 
I am really surprised that the protected keyword affects the dynamic_cast<> result.
 
you'd get the same result with private
 
user3010322
template <typename T>
	struct color_limits {
		const static T max( ) {
			return std::is_integral<T>::value ? std::numeric_limits<T>::max( ) : static_cast<T>( 1 );
		}

		const static T min( ) {
			return std::is_integral<T>::value ? std::numeric_limits<T>::min( ) : static_cast<T>( 0 );
		}
	};
 
10:29 PM
OK. But why? I thought the keyword in the inheritance specification was there just to specify the visibility of the inherited symbols.
 
user3010322
I think that covers it. :o
 
@wilx Might have something to do with:
> — an expression that is not a null pointer constant, and has type other than void*, is converted to the
type pointer to T or reference to T using an implicit conversion (Clause 4), a dynamic_cast (5.2.7) or
a static_cast (5.2.9)
 
user3010322
@wilx If you could cast externally to a protected or private base class, it breaks encapsulation.
 
if you use protected or private inheritance you you can't use implicit conversions so the others wont work either?
 
user3010322
Therefore, it's not allowed.
 
10:35 PM
@ThePhD Hmm, OK. I thought this was one of the case where you can work around the restriction. I stand corrected.
 
I'll try setting up a server on jeb if anyone wants to play around (warning: you might/probably will die horribly in an accident involving magic, explosions, radiation, electricity or any combination of thereof, and everything you build might be ruined by a black hole, monsters or tears in reality)
 
> I have to write a buggy server that will crash due to off by one error.
 
What is color_limits supposed to mean? :V
 
user3010322
@MohammadAliBaydoun numeric_limits, but for colors.
 
user3010322
10:36 PM
So double and float have a max and min of 1.0 and 0.0,
 
user3010322
while byte components have a max and min of 255 and 0
 
Okay, that makes a little more sense
 
So the color limit for int is 2147483647?
 
user3010322
Yeah.
 
This doesn't seem to be very useful thing to have
 
10:39 PM
So floating point values are normalized to an arbitrary range.
Why 1.0, not, say, 100.0?
 
user3010322
vOv if you're using 1 integer for each component to have a 16-byte rgba, I can't really guess what a good range is.
 
@Griwes Nobody does that
 
user3010322
@Griwes 1.0 to 0.0 is the graphical standard for normalized range of colors
 
user3010322
when it comes to floating point color components
 
user3010322
for bytes, it's 0 to 255
 
user3010322
10:40 PM
After that, there is no de-facto or written standard for the other types of components
 
So you follow that arbitrary range just because everybody else follows that arbitrary range.
 
@ThePhD Why not disallow non-char/float/double?
 
Mkay vOv
 
user3010322
@Rapptz I don't know what my future user's needs are. Makes no sense to chop their legs off.
 
who needs colours that are int?
 
user3010322
10:41 PM
Nobody, I'm sure, but it's there if they really want it.
 
@Rapptz Some species that are hyper color-aware.
 
user3010322
@Griwes Pretty much, lol
 
0.0 thru 1.0 is the range because at that stage of the pipeline, you have no idea and don't care how many bits per primary you have
 
user3010322
OpenGL, DirectX, even RenderMan expect 1.0 to mean fully opaque and 0.0 to mean not present at all.
 
@Griwes It's not arbitrary, it's percentage
 
10:44 PM
@CatPlusPlus It's fractions of 1. Percentage would go up to 100. :P
 
(And no, multiplying by 100 is only presentation thing, percentages are [0, 1] :ssh:)
 
@Griwes uh, I'm pretty sure cat knows what percentage is
 
Well, not always 1], but over-1 doesn't make sense here so
 
It's "one hundred percent", not "one percent". :P
 
100% is 1.
 
10:45 PM
Yes.
 
75% is 0.75
 
You're trying to be obtuse on purpose to be funny or pedantic or something but it isn't so you can stop now!
 
For me that's still just fractions of 1 vOv
 
Take more science classes
 
user3010322
I sure hope this works. :D
 
10:46 PM
In mathematics, a percentage is a number or ratio expressed as a fraction of 100. It is often denoted using the percent sign, "%", or the abbreviation "pct." For example, 45% (read as "forty-five percent") is equal to 45/100, or 0.45. A related system which expresses a number as a fraction of 1,000 uses the terms "per mil" and "millage". Percentages are used to express how large or small one quantity is relative to another quantity. The first quantity usually represents a part of, or a change in, the second quantity. For example, an increase of $ 0.15 on a price of $ 2.50 is an...
 
@ThePhD hope doesn't work
 
user3010322
I think I wrote this color_normalize function right.
 
Thanks. I almost forgot what a percentage is.
 
> In mathematics, a percentage is a number or ratio expressed as a fraction of 100.
 
> expressed as a fraction of 100
 
10:47 PM
Guess what 100/100 is
 
@Griwes How does this change what I said?
 
Percentage is X in X/100, not X/100 in X/100.
 
100/100 is 1, 75/100 is .75
 
:cripes:
 
cent is the french word for 100
 
user3010322
 
@Rapptz Yes. But it's still 100 and 75 percents, respectively.
I should go and do something constructive.
 
user3010322
Blah.
 
user3010322
Fucking C++ not letting me change implementation based on desired return value.
 
user3010322
Out parameters, fuck the police. D:<
 
@ThePhD decltype?
 
10:50 PM
what are you trying to do
 
He is trying to overload on return type.
 
how would the compiler know what to choose?
 
user3010322
It'll choose based on when it's used, yo.
 
user3010322
rgba<T> normalize( rgba<TOther> ); // I have to specify "T", but I don't want to. u.u;
 
user3010322
however...
 
user1804599
10:51 PM
Path-dependent types are hilarious.
 
user3010322
normalize( const rgba<TOther>&, rgba<T>& ); // yay!
 
@ThePhD Why on earth would you normalize to a different type?
 
user3010322
@DeadMG My current use case is FBX: they store everything in doubles, my color type can be float or byte.
 
typename rgba<TOther>::value_type normalize(rgba<TOther> r) { ... } and put typedef T value_type; inside rgba
 
@ThePhD ... so what?
 
10:54 PM
oh, you want normalize to change the type too? that makes sense -_-
 
user3010322
So if I have ambience = normalize( my_rgba_double );, I need a way of having the return type change if ambience is rgba<byte>, or if ambience is rgba<float>
 
orrrr
 
user3010322
I can have that kind of "automatic" machinery if I make an out-version.
 
ambience's type has operator=(rgba<float>) and operator=(rgba<double>) and operator=(rgba<byte>).
which makes vastly more sense.
 
user3010322
Yeah, except I had that before and it was just a lot of duplicated code with a bunch of repetitive lines of normalizing the value and storing it.
 
user3010322
10:56 PM
I'd... rather just write the normalize function, I think.
 
uh huh.
so... implement operator= in terms of normalize?
 
sounds like you're writing reams of "just in case I need it someday" code, which just wastes time
 
user3010322
Except... I'm dealing with float v. byte v. double colors right now, so it's not "someday", it's "like, yesterday"
 
Oh, there's a C++ meeting in Hamburg on the 25th of February!
4
 
@ThePhD That's a failed implementation, not a failed interface.
 
11:15 PM
Please use self-contained example code: sscce.org So questions should not be code puzzles, if you expect them to be answered — sehe 9 secs ago
Of course, I still answered, but my my
@doug65536 worse, if you don't write proper tests with that it degrades the code base in general, or it's just more code to decay /cc @ThePhD
 
LOUNGECRAFT LIVES
 
and then it died
 
If anyone wants to shoot nuclear missiles at chickens grab technicpack.net/modpack/details/toastcrunchy-modpack.75881 and connect to loungecpp.net
Well, ping me for whitelist first
 
Ahahaha.
AkiRoss, Italy
1.5k 1 14 26
> I have a GF who makes me the luckiest man in the <span title="And probably even in a larger area">Solar System</span>.
 
user3010322
@ScarletAmaranth Ah, alrighty. That makes sense.
 
11:29 PM
> I try to use always the comma before a "but". I try always to avoid a comma before an "and", unless I want to make an emphasis on the pause.
Sensible.
@sehe given the lack of humans in that larger area he is 100% correct
 
There's also a mod with Lua-programmable computers and bees
 
With having the same functions like modPow and all those functions plus the same operating overload. — Joshua Bakker 2 mins ago
Apparently, this is what you get when you get a Zoidberg wannabe:
I mean, seriously? , , , , ,
 
@sehe I implicitly trusted your link and clicked it :|
 
It's a cosmetic plink. I invented it. Looooong ago.
It's not very useful
 
11:48 PM
@ScottW bye!
I hope to see you again soon.
I mean never muahahahahh
j/k
I suspect that stingy jokes are no fun when you are on the receiving side.
I should stop making them.
 
what does j/k stand for btw?
just kidding?
 
@JohanLarsson yes
 
still think the / is strange
 
Me too.
 
<- was tired and tried to sleep and failed :D
 
11:56 PM
@StackedCrooked well this is odd, what's going on with the echo here
 
in English Language & Usage on The Stack Exchange Network Chat, 52 secs ago, by tchrist
@JohanLarsson Because that’s one style of making two-word abbreviations. Like how ⁿ⁄ᵢ would be Not Interested.
b/c n/a
 
@doug65536 dunno
 

« first day (1203 days earlier)      last day (3738 days later) »