« first day (1759 days earlier)      last day (3189 days later) » 

12:12 AM
Night
 
nn
 
@R.MartinhoFernandes A quick look on amazon and ~200$ Celestrons (A, B) have ~120mm apertures, so seems like your estimate was correct.
 
12:38 AM
good morning creatures of varying degrees of evolution
 
good morning Mai
 
Are you assuming evolution makes species better?
 
no but I'd rather argue with a primate than an amoeba
 
Amoebas do have certain advantage - I mean they can eat as much as they would like & only grow bigger not fatter. Also they can change shape ... imagine that, if we could change shapes, we could all look like supermodels ...
Some would have to be very tall but still ...
 
12:58 AM
@chmod711telkitty I wouldn't have to change shape
 
 
1 hour later…
2:12 AM
@chmod711telkitty which region of Australia are you from?
 
what do you do if you need a function to bind to both non-const references and rvalue references? do you just write both overloads and forward one to the other?
 
2:35 AM
@zounds SFINAE solves all problems, except too much SFINAE. But really, why not just bind to a forwarding reference? T&& in a type deduction context can bind to lvalue and rvalue references. If you want to avoid binding to T const&, but do want to bind to T&& and T&, well, that sucks.
 
 
1 hour later…
3:55 AM
Sigh. Code compiles fine with GCC but MSVC complains about "attempting to reference a deleted function" and the error is unhelpful at best. Not even a single line matches.
 
I'm sorry MSVC is being a butt
 
@edition I am in Sydney
 
@MaiLongdong If you're using 2013, would its non-generation of move constructors theoretically have anything to do with it?
 
4:11 AM
 
@Mikhail The title educated me.
 
4:43 AM
@chmod711telkitty Evolution didn't make Cicada better.
 
I have two char for example char a[20] = "hello"; char b[20] = "world"; how to save this both value in one char c[40] = ?
 
@Mike use std::string instead.
 
@edition language c.
 
@Mike Use strcpy.
 
@edition but i want to save this both value in char?
@edition strcpy able to save both char value in one?
 
4:49 AM
Copies the C string pointed by source into the array pointed by destination, including the terminating null character (and stopping at that point).
 
@Mikhail i don't understand?
 
@Mike Do you need an example?
 
From a cursory Google search: cplusplus.com/reference/cstring/strcpy
 
@edition Sir, If you can gave its good.
 
4:51 AM
:)
 
@Mikhail for me can i do this strcpy (a,b,c); ?
 
@edition @Mikhail i understand thank you very much for both of you.
 
strcat took the cake.
 
As I always say, let a thousand memory overwrite errors bloom
 
5:02 AM
 
char host[20];
printf("check: ");
scanf("%s", host);
char a[40];
strcat(a,"host=");
strcpy(a, host);
printf("%s\n",a);
if i input a the output is ahost= But i want host=a?
 
@jaggedSpire What. It doesn't generate move constructors?
 
newbie question: Why does calling the integer value on printf for a character array return a value and not an error?

https://ideone.com/MvThSN
 
The only errors that printf detects are mchanical (ferror) and this won't be happening.
 
so are the integer values returned an integer equivalent for each letter in unicode or something?
 
5:17 AM
something like that, in some ways this is a feature compared to C++ which automatically casts things. See my boring bug: svn.boost.org/trac/boost/ticket/10245
 
@jaggedSpire wow you're right, what the fuck
Thanks mate
I could have spent the entire day on that
 
6:05 AM
@JosephMCasey Fun fact: lines 1, 2, 3, 4, 6, and 20 through 23 are the only lines without a bug.
 
@LucDanton I knew it was buggy, so I was trying to understand why it's calling those weird ascii values. Line 7 - 10 particularly don't make sense to me because I'm not seeing the basis for where c had it's value provided for the array index values called.
 
Sadly printf happens to be doubly weird in your case. Firstly in that you can’t pass character values to it, they must be at least ints. Hence printf("%c\n", 'x') is functionally the same as printf("%c\n", (int)'x')—so it really has to trust your format specifier with regards to either printing the value as a character, or as a number. Secondly and as mentioned, it’s unsafe and can’t reliably catch formatting errors.
 
@LucDanton so you think the weird values are just 'formatting errors' from the c library?
 
No. You’re the one doing it wrong.
 
6:22 AM
@LucDanton Can you explain a return being provided without an error or warning compiling from the terminal? Shouldn't I receive an error for formatting incorrectly?
 
printf is unsafe and cannot reliably report incorrect usage.
 
There's a better explanation out there.
 
It’s… not an explanation.
More of a description.
 
exactly
 
You did ask whether you should receive an error. I told you that no, you don’t necessarily should.
@JosephMCasey I can’t make sense of the first question though.
 
6:27 AM
An error should always be received when something is done erroneously, otherwise it is not an error by definition. Therefore, a logical and intended consequence should explain the assignment of values to an array of characters which was not assigned values. The starting at the null integer '0' makes sense, but the follow through does not.
char c[30];
printf("%d\n",c[0]);
printf("%d\n",c[1]);
printf("%d\n",c[2]);
printf("%d\n",c[3]);
 
I suggest you open a dictionary and look up the word 'error'.
 
The values:

,
?
Z
are logical, but I simply can't find the logic.
 
c contains indeterminate values. You cannot read those elements.
 
Yet you can, and yet it does return precise values every time?
 
A valid C program may not read indeterminate values.
There isn’t much interesting to say about invalid C programs, sadly.
 
6:30 AM
Yet it does? I'm not making this up, clearly.
 
@JosephMCasey It’s by definition. You can’t provide a counter-example.
That is, if you do end up reading indeterminate values, then the program is invalid.
57 secs ago, by Luc Danton
There isn’t much interesting to say about invalid C programs, sadly.
Then you end up there.
Programming in C can be very frustrating like that.
 
I assume I'm not explaining myself clearly because you seem to not understand. I'll just continue looking. If anyone else has an explanation, please message me.
 
Well, I assumed you were intent on using C.
 
6:52 AM
@Feeds I'm completely lost.
@JosephMCasey So you are complaining that an invalid program is not triggering an error? Wait until you hear about UB. That's gonna be fun.
Go write in Idris or Agda, trust me.
 
user1804599
7:33 AM
Hello, world!
 
user1804599
@R.MartinhoFernandes nice :)
 
user1804599
How about Venus and Mars?
 
7:51 AM
Hello.
Windows fans, do I need to install Visual Studios to get their compiler?
P.S. Windows is piece of crap.
 
Xeo
@khajvah Windows SDK also has cl
 
8:13 AM
Does anybody here run NetBSD? I tried compiling some C++11 stuff and it died on std::to_string().
 
Xeo
Old libstdc++?
 
Are you using GCC?
 
@khajvah Visual Studio is awesome you ViM using Clang worshiping pleb.
@Xeo Dunno, probably. I am recompiling GCC 4.9 from pkgsrc.
 
Xeo
I think 4.9 may not have had to_string yet
 
@wilx lawl
 
8:17 AM
@elyse o_0 wtf dude?
 
user1804599
???
 
user1804599
Aren't you from England i.e. Scotland i.e. Wales i.e. Ireland i.e. UK i.e. GB?
 
user1804599
"that group of islands there"
 
yes, no, no, sort of, yes, yes.
@elyse The British Isles
that still doesn't explain wtf dude
@CatPlusPlus I like where this is going...
 
guis
we do agree that reading from a non-active union member breaks strict aliasing, yes?
 
user1804599
8:21 AM
clis
 
and galls, noting but a crazy bunch of guis and galls
 
user1804599
@MaiLongdong no.
 
user1804599
C++ well-defines it in some circumstances.
 
Xeo
@MaiLongdong It breaks the C (or C++?) standard.
 
In which circumstances is it well defined, either in C or C++?
 
8:22 AM
@Morwenn are you like a regular now or something? did you not get the warning?
 
user1804599
 
morwenn isn't a girl hth
 
@thecoshman I was already around there frequently enough circa 2012.
 
user1804599
oh, the relaxation was allowing non-PODs
 
user1804599
I thought it was reading non-active members
 
user1804599
8:23 AM
nevermind then
 
Xeo
nope
 
That's what I thought
Thanks clise
 
user1804599
I need a YAML parser in C++.
 
Xeo
It's not about strict aliasing, though. It's just forbidden.
 
@elyse YAML sucks, make your own format
 
user1804599
8:25 AM
I will use a binary format later.
 
@Xeo Which is fine too by me, I just wanted to make sure it's not correct
 
user1804599
But for now, YAML is convenient.
 
Xeo
@MaiLongdong Compilers may allow it, though (making it a conforming extension). I think all compilers actually do allow it.
Not quite sure though
 
@MaiLongdong What is the advantage of using binary format?
 
@Xeo In practice yes but it's not actually safer than just (reinterpret) cast'ing directly, is it?
I mean it's strictly equivalent
 
user1804599
8:26 AM
It's more compact, which is quite important in my case since the files will be downloaded by web browsers over and over and over again.
 
user1804599
It's also faster to parse than YAML.
 
user1804599
And to generate.
 
@MaiLongdong vOv when she first showed up, I thought it was an alt for you
 
@MaiLongdong everyone is a dog
 
@thecoshman You're confusing with Nolwenn
 
user1804599
8:27 AM
@TheForestAndTheTrees everyone is a dong
 
user1804599
@Morwenn has cute avatar
 
user1804599
unlike @MaiLongdong
 
lacist
 
@elyse Thanks :)
 
user1804599
@MaiLongdong facist
 
8:28 AM
@MaiLongdong am I? am I really?
 
user1804599
No, he's just trolling you.
 
user1804599
Don't listen to Cicada.
 
@elyse :O well fancy that! Cicada, trolling! never in all my days
@MaiLongdong ergh, I forget, is your home town public knowledge?
 
What's my home town?
I don't have a home town lol
You mean my current city of residence?
 
user1804599
@MaiLongdong Hong Kanker
 
8:31 AM
fuck sake, you try to respect a guys right ot privacy
@MaiLongdong no... your home town.
 
@elyse OMG SPOIL
@thecoshman I really don't have a home town lol. Longest I've lived consecutively is 6 years in south america. All the rest is 1-2 years.
You must be confusing with Nolwenn.
 
@MaiLongdong wow.... 6 years is like a lifetime to live anywhere
 
user1804599
@MaiLongdong spoiled fat ginger kid.
 
@MaiLongdong in that case then, your parents place
 
user1804599
haha
 
8:33 AM
@elyse pls be polite i'm no gingr
 
@elyse Hong Kong Slong, Ting Tong
 
user1804599
 
user1804599
 
@elyse ¬_¬ that's not an architect, that's an onion!
 
user1804599
weird onion
 
8:39 AM
upside down, silly
 
user1804599
still
 
user1804599
onions don't have faces
 
yes they do
 
@thecoshman is that... the onion's face?
 
8:45 AM
hello
 
hello dear socialist friends
 
Google is so botnet. Youtube android app won't work with its botnet apps being blocked by a firewall.
 
is everyone ready for another week of fine C++ programming
5
 
Almost done with ma 1st day and I wanna shit all over my keyboard
 
I am ready for another week of fine JabbaScript programming.
 
8:47 AM
@MaiLongdong You're a Java programmer now?
 
Always ready for another week of C++ programming.
 
@Morwenn Poor soul.
 
@Morwenn fine C++, don't forget
 
@khajvah Probably because it's not my job.
 
Anyone can do C++ but only elite loungers can brew fine C++
 
8:49 AM
@Mr.kbok Define « fine ».
 
Is C++ webscale yet?
 
There is no such thing as "fine" C++
 
@Morwenn something arbitrary that I like :)
"a fine morning"
 
@MaiLongdong It is, in a sense (again, this is about an extension to otherwise non-conforming code). This article taught me almost everything about strict aliasing and it does cover what it calls 'casting through a union'.
 
user1804599
8:50 AM
@Morwenn do you have a boyfriend or a girlfriend?
 
Oh hey.
Mike Acton.
 
user1804599
@Rapptz Oy vey.
 
Yup.
 
@elyse Neither. Why do you ask?
 
That's a paddlin'.
 
user1804599
8:51 AM
@Morwenn YAY I'M NOT LOST
 
It vastly pre-dates his notes on whatever. In other words, I knew about MA before he was uncool. So no!
 
@LucDanton Casting through an onion?
 
someone make a witty rules message
it dropped again
> I knew about MA before he was uncool
lol
 
@MaiLongdong Allegedly uncool I should have said.
I’m not a hater. Obviously.
 
8:53 AM
did win 10 change the direction of two finger scrolling?
 
Yep you have to put at least 1 up your butte
 
how did you find out?
 
coincidence
 
I knew about the rules before it was cool
7
 
8:54 AM
too hipster
no sticky for you
 
:(
 
first one to make me chuckle gets the sticky
 
meh
star from me
 
You're sticky
 
Bob didn't read the rules, fell into a pit, and was never heard of again. rip
rightfold's first ever (and probably last) finished project
 
8:56 AM
How free is the free win 10 upgrade?
 
lol
@JohanLarsson free as in speech beer.
 
What's that Lasey? the rules are right there and no one reads them? I best get the gun!
 
@MaiLongdong 2/10 not enough Astley
 
Is that meant to be a vote
 
8:58 AM
And God said: "let there be rules". And they were good.
 
user1804599
> The chat has a feature that allows users to put others on a ignore list and never again have to read anything by them. The regulars are using it.
 
user1804599
That's bullshit. Nobody uses that.
 
Mike Acton didn't read the rules and now he's trapped in a hawaiian shirt forever
 
all of them are terribad
 
last one wasn't bad
morning
 
9:00 AM
Optimize your code by using cache-friendly, rules-aware data structures
@Rapptz At least I'm trying
 
morning
ikr
 
too much bold
 
back from a week of holiday at the seaside now C++
 
urgh
 
life not good today
 
:^)
 
Rare sight of Cat being happy
 
lol
voyeurism 100%
 
can't do the jon skeet one again can we
 
Xeo
9:02 AM
Use that
With rules link :D
 
yeah I thought the same
 
STL on STL (graphic) (nsfw) (18+)
 
Xeo
lol
 
you can't just reuse jokes
that's illegal
 
do the rules say so
 
Xeo
9:03 AM
Mai is illegal
 
i give up
Dura Lex sed Lex, said Alex.
p good
 
duralex sounded like some condom brand
 
Looking for a C++ mentor? Click here.
 
user1804599
durex
 
9:05 AM
that should link to puppy's profile
 
Concepts TS support has been commited to G++
 
oh that's not clickbait
shameful
C++ introspection when
 
@elyse Tasty.
 
@Rapptz in this century
 
9:08 AM
there is no introspection TS yet, not even a complete proposal
 
where's the static reflection proposal
 
@elyse oh grate, now you've set of DDOS on that site!
 
user1804599
Meh, not as broken as I hoped it would be.
 
9:11 AM
it is very broken
 
user1804599
Screenshot? I have a different theme.
 
¬_¬ bin
 
user1804599
s/b/p/
 
rapptz just trolling everyone
 
@elyse can't find the screenshot tool on win 10
 
9:12 AM
interested
 
C++ is a terrible language. Accept it.
 
lol
it looks funny
 
user1804599
lol, it's truncated on the starboard because Stack Exchange is terrible at Unicode
 
@MaiLongdong anti-Rapptz linch mob?
 
user1804599
show a screenshot someone please :(
 
user1804599
9:13 AM
it doesn't look good here
 
@elyse if I wasn't on a crappy OS, I would
 
Can't upload anything at work
 
imgur is returning 405
 
found
 
@MaiLongdong you seem to upload text just fine
 
user1804599
9:15 AM
 
@Rapptz 405 what?
 
user1804599
 
I meant 404.
bad typo and bad joke
 
@elyse yeah, it's a lot worse then that, spreads about three lines either side
 
Xeo
9:16 AM
The zalgo one is cut off for me in the starboard
 
user1804599
Nice. :p
 
@elyse What is this weird theme?
 
looks like visual studio blue
 
I read this title:
Aussie inventor is building robots to help soldiers become sharper shooters
then I clicked on the article & saw this:
~facepalm~
 
9:26 AM
@elyse it does
 
user1804599
:p
 
this was hilarious
 
user1804599
lol
 
Computer cruelty.
That should be controlled by the law.
 
9:42 AM
@Rapptz you Americans do like your slap stick humour don't you
Oh look at me, I'm going to do something clearly wrong, a huh huh! roflcopter
 
My Danish friend sent me this.
But uh. Okay.
 
>danish
>friend
don't be ridiculous
 
It's a yank doing the vid, and you shared it, implying you thought it was ammusing
@Mai stop trying to markdown
 
also hahahaha cppcms is on sourceforge
rip
 
rip
 
user1804599
9:51 AM
I never got a type error in Haskell.
 
user1804599
I wish I were a flowerpot.
 
user1804599
Use Boost.
 
@elyse You can be a flowerpot-kin! :)
@elyse No.
 
user1804599
-1 not enough Boost
 
10:06 AM
@elyse equally, -1 too much Boost
 
Is there a different program for linking and building programs instead of GNU 'make', besides using something like CMake?
 
HAHAHA hacker news
oh god my sides
>guy criticizes paper
>says author is shit
>points to another paper by an author he "respects much more"
>turns out it's the same person
I should print HN for when I run out of toilet paper
 
@MaiLongdong link?
 
blood donated. I feel at 2% now
 
@FlorianMargaine here
 
10:12 AM
I heard horror story of someone who gave blood but ended up gaining something like 20kgs
 
I did some php before donating, I hope that will not spoil someone's life
 
oh why.
 
hm... so I just jabbed myself in the mouth...
 
this is not fun :/
 
@edition make doesn't do compilation/linking/build it just orchestrates it
just to be clear like
 
user1804599
10:16 AM
I wish Clojure didn't have closures.
 
No, I am haemophobic.
@thecoshman Yes, I understand the purpose of a makefile.
 
@edition really?
:24992760 however I heard that if you rebase a public pushed commit blood will be shed
 
@MarcoA. its because of negative connotations, ie: crimes against humanity, violence, etc.
 
user1804599
Stuff that annoys me in Ruby: the innocuously-named JSON.load method is dangerous: http://ruby-doc.org/stdlib-2.2.2/libdoc/json/rdoc/JSON.html#method-i-load
 
@MarcoA. fair enough.
 
@MarcoA. I couldn't find any descriptive metadata in the video, what does it contain?
 
@edition mostly porn, but only till the half of it. I didn't watch the rest
 
i got paranoid. sorry. I thought it was an video with blood involved.
because of the timing.
 

« first day (1759 days earlier)      last day (3189 days later) »