« first day (2151 days earlier)      last day (2788 days later) » 
00:00 - 14:0014:00 - 00:00

12:46 AM
We don't have the usual pins anymore.
In fact we don't have much of anything at all anymore.
Night all :|
 
night
and if you're talking about the rules...
Hey! You! Yeah, I'm talkin' to you! Read the rules or the catface will get you! :3
16
 
can only star but not pin ...
 
thanks anyway <3
 
1:53 AM
@sehe Hm. Yes, I suppose there is std::regex. I meant that there are no std:: algorithms that are easily applicable to manipulating an istreambuf_iterator and/or constructing a string from one.
 
@Borgleader Whoever came up with this is a genius
 
Really, it should have been more a comment on working with input iterators. Even a forward iterator would have given me a lot of freedom to do things like: std::string matching_line(begin, std::find(begin, end, '\n'));, etc.
I think there may be some stuff in boost::ranges that would have given cleaner code there.
Although, if I had been willing to cache the entire file into a string or something for random access then I could have done something even cleaner. My goal was a solution that solved the problem in exactly one pass over the file.
 
2:31 AM
has anyone here dealt with iOS and boost asio?
 
 
2 hours later…
4:53 AM
@Telkitty Doesn't the carapace of the shrimp get into your teeth?
Also, good morning!
 
Hey all.  I'm getting an error with structs and I can't seem to figure it out. any help please?
error: expected primary-expression before ‘.’ token

#include<iostream>
#include<iomanip>
#include <fstream>
using namespace std;

const int STUDENTS = 3;

struct StudentInfo{
  int studentID[STUDENTS];
  int A1[STUDENTS];
  int A2[STUDENTS];
  int A3[STUDENTS];
}

int main(){

  ifstream inFile;
  inFile.open("data.txt");

  for(int i=0; i<4; i++){
    inFile >> StudentInfo.studentID[i] >> StudentInfo.A1[i] >> StudentInfo.A2[i] >> StudentInfo.A3[i];
I'm reading in the data from the file incorrectly in the for loop but it seems right to me. obviously not but i don't see how
 
@toshbar Missing semicolon after StudentInfo declaration.
 
struct StudentInfo{
  int studentID[STUDENTS];
  int A1[STUDENTS];
  int A2[STUDENTS];
  int A3[STUDENTS];
};

like that?
 
@toshbar Yes.
 
I still get the same error inside the for loop
expected primary-expression before ‘.’ token
 
5:01 AM
@toshbar You have only declared the structure type.
You need to declare a variable first.
You need a beginners book. Get some and read it.
 
Yes sir
oh wow. i knew this.


  for(int i=0; i<4; i++){
    inFile >> StudentInfo.studentID[i] >> StudentInfo.A1[i] >> StudentInfo.A2[i] >> StudentInfo.A3[i];
  }

should be

StudentInfo a;
for(int i=0; i<4; i++){
    inFile >> a.studentID[i] >> a.A1[i] >> a.A2[i] >> a.A3[i];
  }
 
5:31 AM
?
what is that supposed to do?
 
5:46 AM
[Judging by names] Should put into a file info about a student
Such as their Student ID and 3 other pieces of data
 
 
1 hour later…
6:57 AM
@fredoverflow meat fillet, that's the fatty bit in that picture :x
@wilx I removed the shells
tried, at least ...
 
7:48 AM
@sehe Haven't looked at the code yet. I agree about the bleeding edgeness, though.
A cursory look looking for the solutions to the biggest annoyances I found when dealing with ogonek gives me... they just avoided them altogether by limiting the feature set.
AFAICT, input iterators only decode, and output iterators only encode.
 
So I have just spilt tea into my keyboard.
 
That's the bare minimum needed to support text_view.
 
Once I spilled some fruit juice on to my keyboard, then I had to buy a new one because the old one became sticky
 
Ven
heyo
@sehe mind some cleaning? :)
 
8:03 AM
Oh, it also avoids trouble by limiting the iterators to work from a text_view.
I.e. it cannot stream.
Maybe it can stream if the text_view is made from streamy iterators.
But then it seems to deal with errors terribly. AFAICT it simply renders the iterators unusable and consumes the input entirely. But that's a first impression from looking at the code. I might be missing something.
This loop has only two ways of exiting: either the input was consumed entirely, or decoding succeeded. github.com/tahonermann/text_view/blob/master/include/…
Arguably that's a bug that can be fixed, but I think a proper solution will need to rethink the design in order to handle errors properly. I.e. fixing the bug is not enough.
I'll have to look more carefully before I send comments to the author.
Oh. Codecs always throw on bad data. That bool is not for errors, but just to skip the BOMs.
Though that means that iterators for streams with errors can never be advanced past the errors.
 
8:21 AM
is it me or this chat is kind of shrinking ...
 
@Telkitty Something like this happens to me like every 3 years. :)
 
tea is not too bad
unless it gets to the circuit
 
Ven
spilling coke on your keyboard is an instant "game over"
 
it++ throws. If you want a stream that does replacement, for example, you can't just wrap it and catch the exception, because then it will never move past the bad data, so your wrapper will be catching the exception every time afterwards.
 
@Telkitty Well, it was with sugar.
 
8:24 AM
Tests don't seem to test with bad data.
 
@R.MartinhoFernandes Hehe, nice.
 
@sehe my general feeling is that "meh".
None of this really needs any C++17.
The only thing you gain from requiring C++17 is that you can expose concepts. That's not necessary, though, so it should be #ifdefed and optional, IYAM.
 
@wilx Oo ...
 
Though it's kind of a bummer that there's no decent forward migration path for concepts.
 
8:33 AM
@Telkitty lol.
 
Is it really necessary to have the concept keyword to define concepts?
 
@R.MartinhoFernandes Necessary? Probably not. Easier on parsers and their implementors, I think that is likely?
 
Since they're just bool-returning template functions, if I could use any bool-returning template functions I could writing forward-compatible code that exposes concepts and still works in concept-less compilers without change and without #ifdefs.
Regardless, yeah, I don't like the idea of requiring C++17 for this feature set.
Funny that I actually use the latest compilers at work, but not for my OSS stuff.
 
@R.MartinhoFernandes Different audiences.
 
But maybe I'm biased because I implemented a richer feature set with only C++11.
I've been getting very interested in backwards- and forwards-compatibility as of late.
 
Ven
8:49 AM
:3
 
@R.MartinhoFernandes :) streamy iterators. I like that as a concept name
@R.MartinhoFernandes woah that's weird.
@R.MartinhoFernandes True that. I think that's just appropriation by devs who think "we're gonna be alone in the niche anyways, so we can do whatever we prefer".
Would you be interested in providing feedback on their github issues? I don't know whether there is a better collaboration platform (I'm not aware of proper discussion features on GH)
 
@sehe Again, just a cursory look, but grepping the exception types in the tests brings up nothing.
@sehe I want to look into it deeper first as to not generate more noise.
 
Do they catch everything as std::exception const& lol
 
@sehe No, I meant grepping their custom exception types.
 
@R.MartinhoFernandes Cool. I'm just happy to know you're aware of the initiative and I'm secretly happy that your library still has the bigger aspirations, despite appearances (bleeding edge requirements and seemingly nice docs)
@R.MartinhoFernandes Which is why I said maybe they don't use them in the tests. It was a lame joke
 
8:59 AM
I really don't want bleeding edge except for one thing.
Unicode version.
C++, though? I have seen no major C++ feature that would significantly improve the design, so I have no interest in tying myself to it.
My plan is to have major (i.e. breaking) releases in lockstep with Unicode releases (breaking because Unicode releases often change algorithms' behaviours), and then minor and bugfix releases on those.
So if you really need to stick to Unicode 8 for a while, you'll get patches for an older major for a while.
 
Why would anyone need Unicode? English is the one true language. I read it on HN this morning so it must be true.
> English is an international language of science and technology unlike Chinese and other languages.
 
I'm not sure how important it is to be able to hold on to a specific Unicode version, but I'm guessing it might break stuff because people will make wrong assumptions out of ignorance, despite the fact that there are well-documented stability policies that delineate what can and cannot change.
Ideally I'd only need to provide long-term support for the things in the stability policy, but humans.
@sehe I also think there's a bit of selection bias that makes it seem that the niche is bigger than it is.
Like when Bartek used to think most Android devices were running the latest 4.4 when they were actually running the very old 2.2.
People in the bleeding edge niche interact with other bleeding edge people often and less often with the "muggles", mostly because muggles are not equipped to discuss the bleeding edge.
 
Ell
9:20 AM
I think most android devices are running >= 4.*
I guess he made that claim some time ago though
 
@Ell That's a more recent development.
Still, a majority is running 4.x, at about the time of release of 7.0.
 
@R.MartinhoFernandes With "the niche" I meant "the area of modern C++ ICU killers"
 
@Borgleader Well
 
@sehe Oh, I just meant people using C++17.
 
@R.MartinhoFernandes Yup I noticed. I don't think that's related. I think they just reckon it doesn't matter since there is no competition (and they have a smallish point, since the selling point would be the modern API)
 
9:25 AM
The new IMGUR is retarded.
 
Yeah, but that's just marketing, because the "modern API" isn't that different from the "ancien API", and it doesn't really bring a lot of benefit.
 
How can I visualize the above better?
 
@wilx It's Imgur, not IMGUR
 
@набиячлэвэли Thank you. That was very helpful. :D
 
@wilx What's supposed to be in it?
And what do you want to show?
 
9:27 AM
@R.MartinhoFernandes Well, it shows heap over time of Java for 5 different setups.
 
Okay, so I thought in Java, you could convert an ArrayList<X> to ArrayList<I> where I is an interface that X implements.
I'm surprised that doesn't actually work.
 
Ell
It doesn't?
 
I'd try two things: smaller y axis, and use lines.
@Columbo It cannot work because ArrayList cannot be covariant.
 
@R.MartinhoFernandes That's... very helpful, actually
 
You can break stuff if that worked.
 
Ven
9:28 AM
@Ell new avatar? ô.o
 
(In perhaps the most famous example of making that particular mistake, still in Java, X[] converts to I[])
 
@R.MartinhoFernandes But I cannot define a parameter like this: ArrayList<? implements I>, can I?
 
Maybe. Not sure.
 
@Columbo ArrayList<? extends I>
 
What does it depend on?
@milleniumbug Wait, that only works for classes, no?
 
Ell
9:30 AM
@Ven I don't know man it got changed automatically a while ago for some reason
 
for interfaces too
 
lol
TIL
 
@Columbo extends in that context has a different meaning than the other extends.
 
extends/implements difference is only relevant when you're specifying base classes/base interfaces when declaring a class
 
I see. That's interesting, thanks!
 
9:31 AM
@Columbo Well, you can, because that basically makes an ArrayList<Object> with a bit of type checking sprinkled in.
 
Ell
@R.MartinhoFernandes this is always counter intuitive for me
 
@R.MartinhoFernandes With the keyword implements?
 
@Ell ArrayList has .add().
@Columbo Ah, no. With the right syntax.
 
Ell
ah of course
of course.
thanks :)
 
@Columbo Actually, not sure at all.
Depends on how you use it.
Java generics are weird.
 
user1804599
9:36 AM
Java generics are great.
 
user1804599
Only thing that'd make them amazing is HKT.
 
Ell
@Columbo you can
 
Ven
and reifica.. wait no.
 
@Ell Netbeans says otherwise IIRC
 
super/extends are only valid there
 
Ell
9:41 AM
@Columbo like this: ideone.com/isJnVY ?
 
@Ell I meant specifically with the implements keyword
 
Ell
oh
 
I just employed the extends keyword five minutes ago in that context :)
 
Ell
No I don't think so
oh lol
sorry, wasn't paying much attention
 
> I majored in English and am generally pretty familiar with linguistics stuff, but as soon as anybody started talking about "subject, verb, objects" in class it was like my brain shut down.
 
Ell
9:46 AM
I still get subject & object confused :V
 
But you didn't major in English nor claim to be "generally pretty familiar with linguistics stuff".
 
Ell
that's true
I really need to up my proficiency in emacs
 
template<class> struct X {};
using X1 = X<int>;  //  <- is it specialization or instantiation?
 
Ell
instantiation
well
I don't know really, I don't see any specialization there
 
Ven
indeed, you don't specialize anything
 
9:55 AM
@Abyx In the standard, "instantiation" is just "implicit specialization", and "specialization" is "explicit specialization".
 
template<class> struct X { static bool b; };
template<class T> bool X<T>::b = (std::cout << 1, true);
using X1 = X<int>;   // no side effect from here
 
Oh, you wanted a yes/no answer, lol.
 
@R.MartinhoFernandes no, that's not it
 
Confused, then.
 
10:00 AM
@Abyx Actually, I don't think it is. eel.is/c++draft/temp.spec#temp.inst-1 seems to state it only happens if a completely-defined type is required.
typedefs work on incomplete types.
(See also #2 eel.is/c++draft/temp.spec#temp.inst-2, for static members)
So only X1::b would trigger it.
 
welp anyways it was an X-Y question =\
what I actually wanna know is how to call std::istream - specialization/instantiation/???
 
Specialization.
 
but why?
cppreference also says so btw
 
> A specialization is a class, function, or class member that is either instantiated or explicitly specialized ([temp.expl.spec]).
@Abyx Also, it's cool that they changed the terms to match usage.
@Abyx Instantiation carries more specialized (heh) meaning that I don't think you intend (since in general you cannot know, nor care, if std::istream is explicitly specialized or not)
 
uhm, so istream is an explicitly specialized basic_istream (but it might be not a separate explicit specialization of it)
 
10:13 AM
Nah, unless there's an explicitly specialization, it's not explicitly specialized.
Without an explicit specialization (or explicit instantiation), it's just implicitly instantiated when referenced blah blah: eel.is/c++draft/temp.spec#temp.inst
 
well but "typedef basic_istream<char>" looks quite explicit
 
No, that's a reference.
An explicit specialization is template <> struct basic_istream<char>...
template <> is the key part.
 
yeah I understand that
 
oh
 
10:16 AM
In eel.is/c++draft/temp.expl.spec you see can that "explicitly specialized" is just used to mean "has an explicit specialization".
 
we could call istream an alias for basic_istream<char>, since using is for aliases
 
it would be correct and would avoid that specialization/instantiation madness
 
If that's not important for what you're writing, yeah, I'd +1 that.
 
11:27 AM
> inline namespace cannot be reopened as a non-inline namespace
Hmm, this is annoying.
This is extremely annoying.
Ugh, ugh, ugh.
Why.
This way I can't just have a single header file with all namespace inlininess, and source files that don't care.
Since namespace inlininess is a feature designed for changing between inline and non-inline, it shouldn't make that change a pain in the ass.
 
Good point.
 
11:42 AM
And it doesn't affect the build. It's only intended to affect clients, hence why I should be able to use only on the header.
 
@Ven Dunno. I'd need to experiment with that, it's been ages since I did anything that low-level.
 
Ven
Right :P. Also hi.
 
Ven
12:12 PM
I guess I'm just gonna use a manual loop.
 
Rok
12:31 PM
if I have multiple obj files that are generated from another function (which I didn't make) is there a way to deal with multiple definitions
 
Rok
I'll ask the question there
 
Rok
12:56 PM
sorry for posting the question in this chat :/
 
the pinned star to the C++ question chat has timed out...
 
This is the C++ question chat.
Is there a room for help vampiring?
 
@ratchetfreak worry not, that chat will expire as well. soon

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
 
nwp
maybe we should make a new one
 
nwp
1:07 PM
17
 
@nwp oh another pinned star...
 
nwp
I'm still not convinced it keeps questions out of the lounge, but it does give more justification to yell at people who do it.
not that justification is needed
 
@nwp which is fine
 
maybe mention the chatroom in the rules page as well?
 
nwp
1:09 PM
nobody reads the rules and the room will probably die
 
'Bathroom' and 'chatroom' have 87.5% letters match (ignore order of the letters), coincidence? I think not!
 
@Telkitty And both are full of shit? :)
 
~_~
 
@AndreasPapadopoulos Wait, so what happened to the three armed men?
 
@nwp pointing elsewhere is easier than saying "nope.jpg". Also, some people don't mind noisy chat there
 
Ven
@AndreasPapadopoulos mdr.
 
@AndreasPapadopoulos i.imgur.com/jsH5TsR.png dat twitter handle.
 
@R.MartinhoFernandes The article just says that an intrusion by three armed men into a lycée was reported to the police, I'm not sure if there's any confirmation they are real
 
1:45 PM
@AndreasPapadopoulos Somehow they still managed to evacuate all 900 students, which makes it really sound like there was nothing to worry about.
 
Ven
How can our eyes be real if your mom isn't real
 
the articles does indicate that they were armed and bearded inb4 they are just haskell & arch apologists
 
The original report sudouest.fr/2016/09/05/… shows images of a shitton of people around the lycée, which my inner terrorist sees as an excellent target.
 
If terrorists start attacking lycées and schools we're in such shit
 
Ven
less retards
also lycée = high school you twat
 
1:47 PM
@AndreasPapadopoulos Just a bit more than now.
 
lycée sounds classier
@R.MartinhoFernandes I'm thinking the shock of "they're targetting our young" may be even worse than "they're killing us in general", but idk
fingers crossed that it's not gonna happen
 
Ven
Eh bien ils appelleront la peau lyce pour les aider.
 
@Ven An acceptable translation, but not entirely accurate.
 
 
Surprised that international media hasn't gone ballistic with it yet.
 
1:50 PM
it's very recent, 1-2h old I think
 
@AndreasPapadopoulos should be flooding twitter already then
 
could be a false report
article is very careful in the wording
 
The description of the perps is also very cartoonish.
 
just had some lycée lychee, go me!
The lychee, litchi, liechee, liche, lizhi or li zhi, or lichee (Litchi chinensis; Chinese: 荔枝) is the sole member of the genus Litchi in the soapberry family, Sapindaceae. It is a tropical and subtropical fruit tree native to the Guangdong and Fujian provinces of China, and now cultivated in many parts of the world. The fresh fruit has a "delicate, whitish pulp" with a floral smell and a fragrant, sweet flavor. Since this perfume-like flavor is lost in the process of canning, the fruit is usually eaten fresh. An evergreen tree reaching 10–28 metres (33–92 ft) tall, the lychee bears fleshy fruits...
 
1:56 PM
Oh, yeah :/
 
also ...
 
00:00 - 14:0014:00 - 00:00

« first day (2151 days earlier)      last day (2788 days later) »