« first day (1107 days earlier)      last day (3857 days later) » 

2:00 AM
I need to reverse a number so I think I will use % and dividing by 10 to reverse the number
 
Hey Pawnguy
 
@Pawnguy7 that's strings... he wants numbers
 
1
Q: Absolute beginner in programming - Would really like some advice

Jim Jamso as you can see, am a complete and utter beginner in programming. It's like I just started to learn a bike yet i have never touched or even seen one before. I've done some research into the different types of languages, and I've got some very basic terminology. From what I can tell, there webs...

Why are these people in the comments praising Java? :V
 
Why do you always leave at 10:59 PM EST?
Pawnguy
 
2:03 AM
What is wrong with being punctual? :D
 
hehe
 
It's fucking clear that it's not the right language to start with based on all the questions that appear in here ;_;
 
Nobody here likes me at this time O.o
 
it's just strange because it's usually right on the dot every time
 
That is what punctual means, yes.
 
2:03 AM
@Pawnguy7 I like you ;_;
 
user1804599
@sehe sehe
 
I know.
 
Ack.
 
@LearningC you mean, like paste.ubuntu.com/6309742 /cc @Pawnguy7
 
I suck at platformer collisions.
 
2:04 AM
@Pawnguy7 I like you too. Btw are you viet?
 
@sehe oh.
@LearningC viet?
 
@sehe thanks
@Pawnguy7 vietnamese?
 
@ryyker: Holy shit, you suck. cprogramming.com is terrible. — DeadMG 52 secs ago
We can always count on Puppy!
 
@LearningC No. Does my name imply that?
 
@Pawnguy7 the nguy part is almost like nguyen
 
2:06 AM
it's Pawn-guy
 
^ and a 7, for good measure.
 
hahah to funny
 
Somebody asked me if I worked in a pawnshop.
Apparently it was not a good choice.
 
I want them to add atomic queues to the STL. I'm tired of writing the same fucking pattern over and over again.
 
@Pawnguy7 do you?
 
2:08 AM
@LearningC nope
I played chess at the time.
And on chess websites, "chessguy" doesn't work :D
 
I don't agree that C isn't newbie-friendly -- I would say start with C. It's pretty simple (unlike C++), and once you understand pointers, everything else is easy. All of these "is Java pass-by-reference or pass-by-value?" questions would go away if people learned C before Java. — yshavit yesterday
 
The latter part is probably true, but isn't it also true of C++?
 
The whole thing is so fucking retarded I can't even
 
@ryyker: Holy shit, you suck. cprogramming.com is terrible. — DeadMG 5 mins ago
lol
 
That reminds me.
Earlier today, I spent ten minutes without internet.
Because of that dreaded function key.
 
2:11 AM
Idiots everywhere
Fuck this site
And this profession
 
Through the power of Java anything is possible! — Tdorno yesterday
 
@Jefffrey except unsigned data types
 
user1804599
Fuck you, YouTube.
 
@not-rightfold say it thrice, for good measure.
 
@Mikhail Strictly, you could output machine code that uses unsigned data types, and then link to it.
 
2:12 AM
Through the power of Java anything is possible! — Tdorno yesterday
Amen! Brother!
 
@DeadMG Is it jvm machine code? 'cause if its not jvm then its not java
 
no.
 
oh...@Jefffrey beat me to it lol
 
[when told that their favorite pony is not awaiting them in the afterlife] Yeah she is. You can't prove she's not.
 
@Mikhail Well, that really depends on how you care to define code being Java.
 
2:13 AM
@DeadMG If it runs on the JVM 'tis java
 
I’ll state right now that I weigh 300+ pounds. I know for a fact though, that I am perfectly healthy.
 
you could reflect on a method using an Unsigned class, and then generate machine code from that, and then execute that from Java.
 
constexpr is implicitly inline right?
 
it would just be a strange implementation.
 
@DeadMG yeah but its not a primative
 
2:14 AM
@Mikhail Primitive or not is irrelevant.
 
I still don't understand why Java has Integer.
 
you can execute code using unsigned types in Java if you have giant balls and are very desperate.
 
Is it for generics?
 
@DeadMG THEY DON'T HAVE UNSIGNED DATA TYPES. MY 10,000 CAMERA GIVES ME A 16 BIT UNSIGNED NUMBER AND JAVA CAN'T FUCKING READ IT. just my experiences :-)
 
@Pawnguy7 Basically, because int isn't a class.
 
2:15 AM
Unsigned types are not strictly necessary for anything
 
and in Java, if you're not a class, you're not good enough.
@Mikhail C++ doesn't have networking, but that doesn't mean you can't write networking code in C++.
 
@Mikhail Convert it to 32-bit signed one
 
@CatPlusPlus yeah, or just deal with the fact that its signed... It still made me sad. very sad. Also the image is 10 megabytes at 200 fps, so converting on the fly fucks the system bandiwdth. Anyways java is a joke
 
@Rapptz Hmm. Why do you need to know?
 
@Rapptz yes, 7.1.5/2: "constexpr functions and constexpr constructors are implicitly inline"
 
2:17 AM
because ODR is a PITA
anyway it is
it does
 
Except for that quote that's been quoted 10 seconds ago but whatever eh
 
lol
 
Should, in this platformer, holding the up arrow make your jump last longer? I think that is how they work.
 
@Pawnguy7 also double jump
 
since I've never played this platformer, whatever platformer that is, it's impossible for me to make a relevant judgement.
 
user1804599
2:19 AM
;
 
Well, say... what does Mario do?
 
Make the platformer display images of tits at random times for ~~~~MAXIMUMUSEREXPERIENCE~~~~
 
@MohammadAliBaydoun I thought random images was rightfold's thing
 
You don't know how to squiggle properly
 
@Pawnguy7 Pretty sure it's a fixed height, and also, what the fuck does that matter?
 
2:20 AM
@EvgenyPanasyuk lol, I was reading 5.19 (constant expressions) and it doesn't even mention inline.
 
what matters is whether it improves the gameplay of the specific title.
 
It's not fixed height
 
@CatPlusPlus Better now? ;_;
 
@MohammadAliBaydoun No
 
Well, having played Mario, I found the controls desirable.
 
2:20 AM
How about now? ;-;
 
You just don't get it
 
your mother got my cock
 
Okay, fine. :<
 
@Jefffrey I just did search "constexpr", next, next, next, ...
 
Also I need something to do that's not programming
 
2:21 AM
why did I just say that.
@CatPlusPlus gaming?
 
@EvgenyPanasyuk Same here. But 5.19 came before 7.1
 
@DeadMG tell me if you figure out
 
@CatPlusPlus fucking?
 
Right, that's attainable
 
@Jefffrey Apparently, I clicked "next" more times :)
 
2:23 AM
I searched "implicitly inline" and before that "inline"
 
It's awesome how if you mention the standard you are always at least gonna get a bunch of upvotes.
 
@Rapptz In n3485 first occurance of "implicitly inline" is about constexpr.
 
@EvgenyPanasyuk Try a more recent draft.
 
N3485 is pretty recent in regards to C++11 anyway
 
@DeadMG same in N3797
 
2:26 AM
What's weird is that member functions defined within the class definition are implicitly inline as well.
 
@EvgenyPanasyuk yes, I have that, I can confirm
 
@Rapptz Not weird at all
 
@Rapptz why? it prevents ODR
 
You guys misrepresented my message
 
You probably miswrote it.
 
2:27 AM
Yeah looking back I did
I didn't mean it was bad.
 
What did you want to say instead?
 
I thought it was weird that the class definition wouldn't be first.
but it ended up being § 11.3/7 so it was later.
 
@Rapptz I failed to analyze this message.
 
Yeah I mistyped it pretty bad.
 
I don't get why is ODR such a problem. I mean, why do you have to have more definitions?
 
2:29 AM
header-only libraries
 
Yes, even if library is non-header-only.
 
Hrm.
It takes a while of configuring variables to get the right feel, it seems.
 
Still do not understand. :/
 
@Jefffrey Basically because the entire of all the compilation model sucks cock.
 
@Jefffrey I make header-only libraries. If you include "myfile.hpp" in first.cpp and second.cpp and link them together, you get multiple definition error if it isn't inline
but if you use inline you prevent the ODR so it's valid
 
2:30 AM
@Jefffrey when you have struct Foo { void bar() {} }; in header - and include it in several .cpp files then Foo::bar is defined in both. But thanks to implicit inline - it is not problem.
 
Hmmm.
I think I got it.
But then your function doesn't really exists because the compiler is gonna replace its body everywhere.
Unless it doesn't.
 
lol no.
 
@Jefffrey No. inline has almost nothing about "function inlining".
 
the compiler does not give two shits about inline when it comes to actually inlining.
 
So that's just an "hack" basically.
 
2:33 AM
what's just a hack?
 
inlineing to prevent ODR
 
C++ is made by hacks
 
well
it's less of a problem than reinventing the whole compilation model.
 
@Jefffrey yes, this is similar in something to static functions in C
 
common myth that you get "over inlining"
 
2:34 AM
@Jefffrey Not really. The "hack" is the entire compilation model.
-lw
oops
 
user1804599
inline is only fun when you forget to use it.
 
@Jefffrey compilers have different implementation-specific __forceinlines - which are about "function inlining" (i.e. hint for optimizer). Boost BOOST_FORCEINLINE macro.
 
inline itself is a hint, too
At least in MSVC I think __forceinline is not a hint, but actually overrides the heuristic
 
@CatPlusPlus but it also does not guarantees inlining.
 
I think all compilers ignore inline in terms of actual inlining and just make the decision regardless of keyword.
 
2:42 AM
 
And GCC's always_inline completely overrides optimisations
 
@Pawnguy7 what is that?
 
@EvgenyPanasyuk aforementioned platformer.
With ugly, generated textures :D
The lava is actually animated.
What to add next...
 
@Pawnguy7 Did you generate them with the method I suggested? :D
They look nice to me~
 
THIS 3D women are a shit. I've had many gfs. All women are the same pieces of shit... All I want is Rarity now.
 
2:49 AM
@MohammadAliBaydoun what was your method?
 
3
Q: Why std::next does not accept InputIterator?

Evgeny PanasyukISO C++11 24.3: template <class InputIterator, class Distance> void advance(InputIterator& i, Distance n); // ... template <class ForwardIterator> ForwardIterator next ( ForwardIterator x, typename std::iterator_traits<ForwardIterator>::difference_type n = 1 ); Why std::next does not a...

 
Yeah we saw it no we still don't care
 
@Pawnguy7 Start with red rectangle, select lots of points, change to yellow and interpolate colors around the points
But nevermind, I see what you're doing here ;_;
 
Um... what am I doing here?
 
Randomly selecting colors in a certain range
 
2:51 AM
Anyway, this is the current method:
Define several base colors.
then, from those, come up with several, slightly varied colors.
Then randomly set things to it.
I generate ten of these.
Then, via another function, make textures halfway between them.
And string it all together into an animation.
I can try your method, though.
How big are the dots?
 
4x4 blocks with 2x1 lines centered on each of the sides.
or 3x3
I really don't know because I've never tried this before :V
 
How about.
In this function.
I define a radius.
In this way, individual spots can vary, as well as.
I can.. pick colors on a range.
Say, from yellow to red, depending on what step of the radius it is at.
Thoughts?
 
You can have a function that defines color in terms of x where x can be between 0 and 255
Actually, let's assume x is between 0 and 1
 
I think you lost me.
I am just saying... say, take the cave.
 
red = 128 + 96x
green = 96 - 32x
blue = 0
This is just an example
 
2:58 AM
The radius there.
So, say, the center is yellow.
and going outwards, it gets orange, then red.
 
Yeah, pretty much
or you can go the other way around
I don't know what works
 
yellow lava base?
 
Hrm... I'd probably try red first.
Anyway, night @Rapptz
 
See. 11:59.
 
2:59 AM
Wow. He left at exactly 4:59 AM on my end
 
You need a life
 
Well shit, it's morning :v
 
@CatPlusPlus You need to be more observant.
 
user1804599
oh hey
 
user1804599
It’s four o’clock.
 
3:01 AM
I really need to know the patterns of someone going to sleep
 
user1804599
But also five o’clock.
 
user1804599
It was three o’clock twice today! :D
 
I notice more things too.
 
Did anyone try overload to operator .? I can't find implementation.
 
user1804599
You cannot overload operator..
 
user1804599
3:03 AM
It’s impossible.
 
There was proof-of-concept clang implementation
 
@not-rightfold Ahaha I did that with "man strip" when I was trying to figure out how to strip symbols from a binary. It didn't go well.
 
I am trying to find implementation code.
 
@EvgenyPanasyuk Shit. That triggered a download.
 
Let's complicate C++ even more!
 
user1804599
3:05 AM
You can’t overload ., .*, ?:, ::, sizeof, sizeof..., alignof, typeid, static_cast, dynamic_cast, const_cast, reinterpret_cast and noexcept.
 
@not-rightfold There was patch to compiler. proof-of-concept
 
user1804599
It’s non-standard.
 
yes, of course
 
user1804599
I’m so sad.
 
user1804599
How can I become happy?
 
3:09 AM
@Rapptz it's github
 
That's why I didn't expect a download trigger
it usually crashes my POS browser for some reason I'm still unsure of
 
I am tired
I should not be
Enough sleep, coffee & no alcohol for a couple of days
 
user1804599
Yay.
 
user1804599
Thunderstorm.
 
NOT HAPPY!
lol
Angela Merkel is not happy NSA might have tapped her phone & is demanding an answer.
I guess she's probably the one of the only few who has the power to do so ...
 
user1804599
3:20 AM
I’m going to implement distributed game of life in Erlang.
 
user1804599
One process per cell. :v
 
This Vittorio Romeo person is everywhere
 
user1804599
@EtiennedeMartel What an idiot.
 
I'm not sure there's hope anymore.
 
3:35 AM
there ever was hope?
 
user1804599
DeadMG why don’t you have a girlfriend?
 
in the middle of the swamp?
 
user1804599
Why not? vOv
 
because
 
user1804599
I too live in a swamp. Plenty of girls here.
 
3:37 AM
the population of the swamp is about 200 or so, maximum.
and the majority are pensioners.
 
user1804599
lol
 
fact is, I got nothing in common with basically anyone here.
 
user1804599
@Jefffrey I have no girlfriend.
 
Whatever that's called nowadays.
 
user1804599
3:40 AM
The kind of girls I like never go outside. :D
 
user1804599
So how can I know them. :D
 
You got to know one, didn't you?
 
Casually walk into their homes ^^;..;^^
 
@MohammadAliBaydoun is that a bat?
 
user1804599
@Jefffrey She lives about a thousand kilometers away and she has a boyfriend.
 
3:41 AM
@Jefffrey Yes! :D
 
user1804599
:D
 
user1804599
@MohammadAliBaydoun I’d need to know where they live.
 
user1804599
Can’t just walk into any random home.
 
user1804599
Well, I can, but it’s a terrible idea in almost all cases.
 
3:42 AM
@not-rightfold She can have two :)
 
user1804599
@Jefffrey I don’t want that.
 
user1804599
MYYYYYYYYY PRECIOUS
 
Oh, you are that kind..
Well, your choice. I guess.
 
user1804599
I’m miserly as the plague.
 
Oh shit. Is it really 4:43 am or should I expect the whole "let's go backwards" thinghy?
 
3:44 AM
depends on what country you're in, I believe.
 
user1804599
It’s 4:44.
 
That already happened on my end
 
ah.
it's 3:44 here.
 
user1804599
Any decent computer adjusts this crap automatically.
 
yep
 
user1804599
3:45 AM
Any decent watch does too.
 
happened to me.
 
user1804599
And any decent clock anyway.
 
@not-rightfold Impossible.
 
And any decent hour glass
 
user1804599
@DeadMG Not really.
 
3:45 AM
unless a smartwatch I guess.
 
@not-rightfold Did your mac did that?
 
@not-rightfold The DST times change every year depending on who's in charge.
 
user1804599
If a watch supports date and timezones as well as time, it can do that.
 
you can't know when DST will be in the future.
 
user1804599
@Jefffrey duh :v
 
3:46 AM
Then I should really go to bed.
 
I mean, some poor shmuck at Microsoft probably has to maintain a database manually of DSTs.
 
user1804599
Summertime is a retarded idea and the idiot who has invented it must be shot immediately.
 
eh, it's not very retarded at all.
 
user1804599
It distorts everything.
 
It saves energy here.
 
3:47 AM
@not-rightfold It has a price, but it also has benefits.
 
user1804599
Oh hey Friday morning it’s quite dark and Monday morning it’s suddenly light as a thousand suns.
 
Woah. I flagged a mod's answer here, that had 10 upvotes and was accepted, as "not an answer", and it got deleted in 2 minutes.
Maybe there's still hope. :D
 
Bwahahahaha xD
 
user1804599
@Jefffrey The amount of energy required to do all the time shifting is probably more than the amount of energy saved.
 
user1804599
@Borgleader old but gold
 
3:51 AM
Probably
 
user1804599
Gah.
 
user1804599
Third time I need to pee this night.
 
user1804599
No wonder; this night is taking eons.
 
G'night.
 
Good night~
 
3:54 AM
@not-rightfold It's not just about energy savings.
it's also about people going to work when there's light for them to drive by, if possible.
and things like that.
 
hasn't been an issue for like 60 years
 
user1804599
As a programmer, I hate DST.
 
As a person, I hate DST.
 
What is DST?
 
daylight saving's time
 
user1804599
3:56 AM
@nightcracker The wonderful idea of having three o'clock AM occur twice in a single day.
 
right
 
@Rapptz We can't get rid of DST, think of all the code we'll break!
 
what time is it now
 
user1804599
@nightcracker a superposition of 4:57 AM and 5:57 AM.
 
user1804599
 
4:00 AM
Is tonight daylight savings in the US?
or the end of DST, rather
 
user1804599
 
I dont understand
why not const std::string
 
user1804599
I’m going to move to Russia or Africa.
 
@not-rightfold Are you 140% sure about that?
 
user1804599
@Borgleader well, I’d lose my right to be homosexual, so maybe not
 
user1804599
4:06 AM
I could move to Japan.
 
user1804599
Or northern Australia.
 
user1804599
Those aren’t primitive countries. :v
 
@not-rightfold Japanese people stopped having sex.
 
user1804599
I never have sex anyway. vOv
 
4:08 AM
I think you'll fit nicely in japan then
 
I never understood why pubic hair is banned from porn there though
 
It's not.
 
user1804599
It should be. :F
 
It shouldn't.
 
4:18 AM
@not-rightfold What good is a map without a legend? =p
 
user1804599
@Code-Guru green is has DST; orange is has abandoned DST; red is never had DST.
 
@not-rightfold I see blue, not green =p
 
user1804599
I use Flux. vOv
 
@Code-Guru rightfold is color blind, s/green/blue/
2
 
4:31 AM
:'(
 
user1804599
4:41 AM
urgh
 
user1804599
Fucking thing hitting another thing all the time due to the wind.
 
user1804599
Time to close the window.
 
I was wondering if it can be done, because in OpenGL when I use GLUT API for displaying windows, i use int main(), and it is a console application, but GLUT internally uses win32 calls. I got it working in my program now. My question> but is this really a good practice? — 2am 32 mins ago
uh...
 
4:54 AM
i dont know what to say to that, although my first thought would be theres nothing wrong with it
 
ah man.
My GCC doesn't support rvalue ref for *this :(
how weird :/
fuck T_T
 

« first day (1107 days earlier)      last day (3857 days later) »