« first day (1833 days earlier)      last day (3124 days later) » 

12:02 AM
Hi guys! Is it possible if I could get a clarification on something?
 
user406009
You can ask. Results not guaranteed.
 
What exactly is the difference between const and immutability?
I know that const means you are not allowed to change the value, and immutable also means you can't change the value at the address
 
Ell
const is an invariant that a class describes of itsself
 
user406009
Immutable is pretty much equivalent to const.
 
@Ell doesn't that also mean that strings are const too?
 
Ell
12:04 AM
immutable means that once an object is constructed, it can't be changed
@OneRaynyDay it's a particular invariant, you can choose it to mean what you want
though when something is const it means that it's semantic meaning doesn't change
 
I see... mind blown. Then why do people do const string?
 
user406009
A const std::string is immutable.
 
Is string technically a pointer, so you're not allowing the change of the value AT the address, but you're also not allowed to change the address?
 
Ell
@OneRaynyDay eh
 
Then in that case when you say x = x + "a"; it's referencing a different address now. Does const prevent that? Because I see in my CS lecture that the prof. writes const string and that struck me as strange
 
Ell
12:07 AM
depends what "string" you mean
 
user406009
Are you talking about C strings (char *) or C++ std::string?
 
std::string, my bad :o
 
user406009
Const will prevent x= x+ "a"
 
user406009
You can't change the address of a std::string as a std::string is a value.
 
user406009
Now, things get a little more interesting when you talk about std::string *.
 
12:09 AM
@Lalaland so std::string is mutable then?
 
user406009
Yes, std::string is mutable.
 
user406009
Const std::string is immutable.
 
I am so confused right now... Sorry, I'm new to C++, experience only in java, where String class is immutable
but I thought std::string was immutable, that makes things a little bit easier to understand, but what was that about std::string*?
 
user406009
12:12 AM
Std::string* is a pointer. So, just like in Java you can change what it points to even if you use const std::string.
 
@Lalaland but unlike java, its not refcounted
 
Whoa String in Java is immutable?
That's weird.
 
@Nooble Just like in C# IIRC
 
@Lalaland I see, a pointer is just an int that points to a memory address and if you use const std::string* you cannot change the value of the address pointer
BUT.. can you do *pointerOfString = *pointerOfString + "aaa" ?
Technically you're not changing the address, you're only changing the value
@Borgleader what's refcount?
@Nooble and yep! "AAA" + "A" is at a separate location than "AAA"
 
@OneRaynyDay You dont need to take care of the objects you new in Java because theyre garbage collected when theyre no longer referenced
In C++ you need to (or use smart pointers)
 
12:16 AM
Ahh I see, so refcount = garbage collect
 
Ell
TIL about cal. It's noice
 
user406009
@OneRaynyDay That's not the equivalent.
 
user406009
The C++ equivalent is pointerOfString = new std::string(*pointerOfString + "aaa");
 
user406009
Never do that.
 
user406009
(Due to memory leaks and abuse of new)
 
12:22 AM
Hmmm.
 
wait - you'd need to do new?
 
user406009
But that's the direct Java - C++ equivalent.
 
user406009
Because Java allocates almost everything on the heap.
 
plain greek yogurt + kahlua + dried apricot + cinnamon is quite tasty
 
Couldn't you dereference and change the value of the variable? blergh
 
user406009
12:22 AM
It's one the critical differences between C++ and Java.
 
user406009
Do you know what Java's primitive types are?
 
Sorry - could you explain to me what the heap process difference is? And yes I do
 
user406009
In C++ everything is a primitive type.
 
even new's?
 
user406009
You can't do std::string blah = null.
 
user406009
12:23 AM
You have to explicitly use a pointer.
 
user406009
std::string *blah = null.
 
oh god what the
 
user406009
The new is required as that's what Java is doing for you behind the scenes when you add two strings together.
 
I see. That makes sense then. Thank you so much! Just got to digest all of this
 
user406009
And, there is a way to notate that the pointer itself must stay constant (similar to Java's final)
 
user406009
12:25 AM
You simply do std::string * const.
 
user406009
Supposedly it makes sense if you read it backwards.
 
@OneRaynyDay As it should be. That's not an assignment :P
 
user406009
"A constant pointer to a std::string"
 
user406009
Of course, you can combine both:
 
user406009
const std::string * const
 
user406009
12:26 AM
a constant pointer to a constant string.
 
Ahh I see - makes a lot of sense now
Welp - my class is learning switch statements and while loops, and I have a midterm in about an hour
This was totally irrelevant but I loved the chat - thanks so much for the clarification :)
I must go now though - gotta get food before taking the test
 
@OneRaynyDay Good luck.
 
@Nooble thank you!
 
user406009
@fredoverflow You claim in your awesome video that the expression for sizeof is never evaluated, so out of bounds access (and other things) do not matter? Does this still apply even in the case of variable length arrays? Or does it all go away with VLA madness.
 
So are you guys gonna use the "cpp core guidelines" stuff?
I'm not sure myself. It looked a bit messy.
 
Ell
12:43 AM
I disagree with use T for small object
 
I don't like that it's trying to be reasonable about template metaprogramming. You can't take away my fixation on compile-time logic!
hisses
 
Ell
WRT arg passing
 
So, I have to revive a dead guy and show him the time of his life.
 
@ElimGarak ( Í¡° ͜ʖ Í¡°)
 
Snrk.
 
12:44 AM
@ElimGarak Easy if you already have his seckstep.
 
@jaggedSpire ( ͡o ͜ʖ ͡o)
 
@Nooble very nice
 
I am pre-loading my phone with books for this weekend away. Hopefully there's no internet there ...
I need the absence of internet to regain my sanity
 
@StackedCrooked there were quite a few question marks just lying around, too.
 
Yeah the many ??? gives a sloppy impression.
 
user406009
12:46 AM
@chmod711telkitty But that means you won't be able to be in the Lounge!
 
@jaggedSpire Thanks.
 
@Lalaland that's the whole point :p
<3
 
user406009
I think we have all just been rejected ...
 
Except @ElimGarak
 
I'm not sure what convention I would use for constants like the values of enums, and const static class variables, if not all caps snake case, too.
And I really dislike that they said not to use camel case for things.
 
12:50 AM
Just use good_case.
 
@Nooble Good_case I believe was one explicitly mentioned
 
@jaggedSpire Isn't that Stroustrup_case.
 
@Nooble yep
 
Oh I just use snake_case for everything.
except typenames.
 
@Lalaland I think the lounge is the fatal attraction, I need to be off it once in a while for it not engulf me alive. You know, safety precaution :p
 
12:52 AM
It looks really weird, shader_type::FRAGMENT.
 
I use different stylings to keep track of/discern between variable scope and types
 
Ell
@nooble wtf man
Why upper?
 
@Ell Nono.
I didn't do that.
I'm saying MACRO_WHATEVER looks weird for enums.
 
Ell
Oooh
 
what does everyone else use? Their point about potential macro hazards is a decent one, though I try to make macros as few and as verbose as possible
@ScottW eh? what is this mumble you speak of?
 
12:57 AM
[sigh] 'representation of infinite precision number in c ?' maybe troll..
 
user406009
They probably meant "arbitrary precision number"
 
and actually, I make sure to always refer to enums within their scope, too...
@Nooble :(
@ScottW okay
 
Game hacker vampires :(
Also, what is the point of helping students when they get: 'Problem over here is that my professor doesn't like for a function to call another function'.
 
-95
Q: Forcing a function to return if false

user3186187How can I create a loop that goes back to the beginning stage? My issue is here: int main(void) { midi_start(); program_change(1, 1); program_change(2, 1); t=400; printf("Choose a scale and write the code of it:\n "); printf("C:0\n "); printf("C#:1\n "); printf("...

^^ wow
 
negative ninety-five?
that takes talent
 
1:13 AM
@Mysticial How do you pronounce your name?
 
Mys-ti-shall
 
@Mysticial DAMNIT
 
Mys-ti-shall-not-pass
 
@Mysticial I WIN
 
I've been pronouncing it as Mys-ti-ssi-al :(
 
1:15 AM
@ScottW sucks
 
@Mysticial -99........
\o/ -100
 
Hype!
 
I've just been saying Mystical. >_<
 
I don't put letters in my fucking UN so that they can be ignored. :)
 
Meh - someone upvoted and it's back at -99 :((
 
1:17 AM
Did you know: levenshtein("Mysticial", "Testicle") = 5
 
@Mysticial I'm so, so sorry. :(
 
:)
 
@jaggedSpire jaggedSire ;)
 
@Borgleader :)
I'd drop a letter from yours, but the best I can come up with is either Borleader or Borgleaer, which isn't very good with the a.
 
I think I'll have to kiss y'all goodbye for tonight.
 
1:21 AM
@Morwenn night
 
@jaggedSpire Borglader is kinda funny
@Morwenn night
 
Soon.
 
H-?
@Morwenn Night!
 
@GregorMcGregor It sure was hard going to sleep.
@GregorMcGregor 3:27
 
Thanks all :)
 
1:23 AM
@LucDanton dangerously starable
 
> We have Zhaitaffy, does that mean we'll get Mordremalts?
 
Ell
Does anyone here use cast iron cookware?
 
Voldemorts?
 
@Ell The spell you mean
 
@Ell ..as a weapon?
 
Ell
1:26 AM
@GregorMcGregor lol that took me too long
 
@MartinJames ...there's a Voldemort brand of cast iron cookware?!?
 
lol 'cast lesser iron cookware'
 
Ell
@MartinJames to cook with :3
 
@jaggedSpire Cauldrons..
 
@MartinJames nods sagely ah, I can see that.
 
1:28 AM
@Nooble I got rekt
 
@nick Oh man.
Better discuss it on Mumble.
 
Hah, iron cookware spell.
 
kk
 
@nick yeeeeeeee
 
@nick Got rekt?
Welp. Better get on mumble.
 
1:29 AM
@ThePhD :D
it's a party!
 
@Ell all my stuff is non-stick
 
@Borgleader sooooo you mentioned Karnaugh maps?
:)
 
@jaggedSpire mayhaps... ;)
 
@Borgleader :D
 
@Borgleader Join us in mamble.
 
1:36 AM
one of us
 
> put on stream
> human females with butterfly wings everywhere
yep
 
@ThePhD Going to bed soon though :( 5h30 is soon T_T
 
@LucDanton dafuq
 
@Borgleader Mumble.
 
@Borgleader It'll be woorth iit. c:
 
1:37 AM
one of us
 
I will pay you $50.
 
@jaggedSpire the streams I watch are tailored to my interests ( Í¡~ ͜ʖ Í¡°)
 
@Nooble No you wont cuz youre 12 :P
 
$200!
@Borgleader You mean 21.
 
@Borgleader lel
 
1:38 AM
You? 21? Bwahahaha high school noob
 
Now get on Mumble before a 12 year old kills you.
 
o god
 
@LucDanton ah. I was thinking you'd used a c++ stream and suddenly dozens of women wearing fake butterfly wings kicked down your door and flooded your house.
 
Death threats!!!!!!!
 
How about dis weekend?
 
1:38 AM
I was having a hard time imagining it
 
How about this hour.
 
how about now sporgleader
it is agreed then
 
@AlexM. Mumble
 
@LucDanton sounds like something I'd like to do
 
and the flood overturned many valuables, as a flood of water might, casting your sofa aside like so much flotsam
 
1:39 AM
@GregorMcGregor human females? you disgust me
 
if alex mumbles ill tell him to unplonk me
 
@LucDanton BUTTERFLIES
on my female asura or charr
I never played human and never will
 
@GregorMcGregor butteflies
@ScottW no don't do it you're too young!
you've got so much to lose
 
rip
 
Scott I'm at work
 
1:43 AM
@ScottW sigh
 
@jaggedSpire presius litel butteflakes
 
@GregorMcGregor so buttiful
 
2 days ago, by Luc Danton
At least it can look great on Norm and Charr. Not everyone plays Fashion Wars 2 the same way however.
 
@LucDanton suddenly things make vastly more sense
 
I wish my Charr could summon back-up Sylvari for their screenshots, too
 
1:52 AM
thanks
never thought I'd need this for Python
> set_channel_permissions(channel, target, allow=<discord.permissions.Permissions object at 0x03AE2A30>, deny=<discord.permissions.Permissions object at 0x03AE2A50>)
until it gave me this
thanks
maybe I should change it to None instead.
 
2:03 AM
it's trying to tell you something
 
@GregorMcGregor like that it's found out that it was adopted.
 
2:35 AM
@Rapptz Looks complicated af.
 
not really
 
2:58 AM
2
Q: Is `std::string::iterator` guaranteed not to be a pointer to char?

JefffreyGiven that an overload of operator<< on std::ostream for pointer to char exists, and given that the standard specifies the synopsis of the std::string class to be the following, in §21.4: namespace std { template<class charT, class traits = char_traits<charT>, class Allocator = allocator<c...

Courtesy link
 
I improved the post significantly
 
3:13 AM
@GregorMcGregor Very nice
 
It is not implementation defined: the implementation is not required document the type of the iterators. However, an implementation is allowed to use a class or a pointer type. — Dietmar Kühl 16 mins ago
Hmm, this received 2 upvotes. What am I missing?
 
@Jefffrey don't know
 
@DietmarKühl If the type of the iterators is not implementation defined, then why, in the synopsis of basic_string, are they marked as "implementation-defined"? — Jefffrey 15 mins ago
 
@GregorMcGregor github.com/Skorezore/Gaem/pull/37/files My only contribution to that project
mildly frustrating that I was not listed as a contributor on the repo
 
very good
 
3:20 AM
thank you
 
a shame that diffs work line-by-line btw
also I didn't know you were Chinese
but I still love you
 
if only it was per character, then I could have so many more lovely contributions
 
BTW you have the same family name as one of my previous, popular incarnations
what a coincidence (just the family name doe????????? wink wink)
 
@GregorMcGregor half, and I will always love you too
@GregorMcGregor I know, it was hilarious to me but I didn't say anything
 
I therefore deduce your ancestors are from the Guangdong province
 
3:26 AM
not sure where that is but my father was born in Shanghai
 
then no
 
oh pls google maps don't fail me now
holy shit I have never seen so many roads
@tzuhsun Welcome, we were just discussing the glory of the motherland
 
hahahahaha
> If you are a new user with very little reputation, then instead of the avatar you usually have on Stack Overflow you may see the non-descript shape shown on the left. Because we have had issues with offensive avatars in the past, we hide new users' avatars until they have earned some reputation on Stack Overflow.
Do you still have screenshots of the Nazi invasion @Tony?
 
lol I was a gravatar until maybe 1700 rep
 
@nick lol what a noob
 
@Jefffrey you linked to the end of the video :p
 
Thanks jefri <3
 
HAH no way
when what how
 
why did I think it would be fun to wait during the last few hours
 
3:35 AM
@melak47 lol
 
wait for what
 
don’t remember
 
im confus
has the hype train derailed already
 
still 2:30 to go
 
@GregorMcGregor RIP
 
3:36 AM
@LucDanton did you take a day off to play
hint hint
 
@GregorMcGregor why are you in chat
 
don't remember
 
user406009
I swear, the gravatar makes Cicada spotting too easy.
 
user406009
It ruins the fun.
 
you know I have different accounts right
 
3:41 AM
lies
 
I think it’s actually 1h later than expected, how to timezones
 
user406009
We are all secretly Cicada alts. This is where he/she/xe comes to talk to himself/herself/xemself.
 
Yes at some point I had a convo with one of my alts and Robot called me out
 
<3
 
user406009
> And that my friend, is how babies get made.
 
3:45 AM
so precious
@ScottW also this is from over 2 years ago why are you all still here?
 
user406009
@nick Hah. 2 years is nothing.
 
user406009
This chat will never die!
 
user406009
(Well, I guess it will last until we all get banned due to another Lounge<rightfold's vagina> incident.)
 
4:01 AM
 
@Feeds huh
 
user406009
It's a joke about how people commonly criticize studies as having a "bad sample population"
 
user406009
The common complaint is that psych studies are often composed of college freshmen forced to participate to pass their into psych courses.
 
ah. I hadn't considered that, though it was amusing enough when it was just about a sociologist who was apparently a magnet for psychopaths.
 
user406009
4:17 AM
The last two panels are classic psych studies.
 
I was aware of that, though. :P
I'm not questioning your interpretation, just saying it has an amusing reading for people not as well versed in present criticisms of psychology studies.
 
@Mikhail wtf
 
@AnalPhabet rightfold can humour only when he does it
 
4:32 AM
@Rapptz neat
 
4:42 AM
@AnalPhabet Closed a Gaem issue today!
What an accomplishment.
 
5:23 AM
everyone dead?
 
spawns
 
I'm not
 
ah good
I'm at work right now
And I think I would've been much happier as a CS major
 
debatable
 
I dunno
the people in it seem better
 
5:28 AM
ah I thought you were talking about the content
 
@GregorMcGregor I think it's both
But then again the content I get in engineering is also very helpful
 
IDK I did CS and while the theoretical part is indeed very interesting, the lack of practical knowledge is very frustrating
 
All the calculus, electro and modern physics, Fourier transforms and complex number proficiency...
 
We did that too
 
@GregorMcGregor Circuits are the bane of my existence.
It's like a shitty version of legos.
 
5:29 AM
@ThePhD Ooooh have you gotten to Fourier yet?
We just got to Laplace
 
IN Calculus?
I forgot everything beyond integration by parts.
 
In circuits
Dude you need to know the Laplace transform for circuits apparently
@GregorMcGregor Wait you guys had to take relativity and stuff?
 
I don't remember having had relativity no
But then again I skipped most of those classes
so maybe
 
Laplace/Fourier transform?
 
5:34 AM
Ah
 
Sup, Lounge. Why aren't you lazy fucks working? :P
 
my cough isn't going away...
 
I got a p bad one too
coincidence???
 
@GregorMcGregor I THINK NOT!!!
But there's been some sort of sickness passing around at our school
Like, everyone's been getting something lately
 
5:51 AM
@Nooble Most excellent, bby. You?
 

« first day (1833 days earlier)      last day (3124 days later) »