« first day (682 days earlier)      last day (4492 days later) » 

18:00
It's easy to tell what it was from looking at the code though
Why did he get downvoted?
For not including the errors.
@Rapptz not listing the errors
I guess it makes sense
lol std::string for char
@Rapptz eh, fine by me
Nothing wrong with it, I guess.
Do I have limited comment upvotes
18:03
Think so.
In fairness to him, often in C++ most of the errors are meaningless and disappear once you solve the real ones. Doesn't excuse not quoting any of them, though.
Xeo
Xeo
hm.. can somebody get the source and try compiling it (if you have MSVC10 and Boost 1.49+)?
just as a safety check
I can try I guess
what kind of project is it
Xeo
Xeo
of course, you can also try it on Linux and manually pull all the dependencies together :)
@Rapptz ?
oh it's hg, I only have git
Xeo
Xeo
get it as a zip, gzip or bz2
like console, empty, win32
I can try it later tonight.
Xeo
Xeo
console
Chrome always crashes when I download something.
18:11
@MooingDuck Why have i seen lots of people say that in here int i isnt intiallized and they call this i=0 the intialization
@MooingDuck is that just commonly said/ assumed by people? Like alot of other things
lol.
@MohamedAhmedNabil when most people hear "initialization", they think of the point where the variable holds a defined value. This is remarkably close to the real definition, but is technically wrong.
@MooingDuck So its just said by people correcT?
did somebody here down-vote my workplace question?
@MohamedAhmedNabil yes, because a lot of people are taught wrong
18:13
@MooingDuck That's said in Stanford Lectures lol
@MohamedAhmedNabil it's taught in many many universities :(
@MooingDuck They teach wrong stuff :O?
@MohamedAhmedNabil yes, it's very common.
I don't know, I usually say int i; is a declaration and i = 0; is an assignment.
@MooingDuck I noticed that :?
18:15
I'm gone for a day and you guys are still discussing the exact same thing. Get a life.
5
> "Null sucks." -Doug Lea
@rubenvb Maybe they were too busy with their life and had to pause the discussion... whistles
@rubenvb it's been three or four days now actually
@MooingDuck "Using Notepad" is the main one.
2
Q: variable zero-initialization - undefined behaviour or not

Nikita TrophimovIs this a well-defined C/C++ program or not? int foo = foo; int main() { } Would foo be zero-initialized, or is it undefined behaviour?

@MohamedAhmedNabil why don't you just download the spec and read random bits of interest
18:17
please close
@MooingDuck I honestly don't understand why you keep repeating yourself.
@MooingDuck Do you have any evidence that say that int i this also is intialization
@MohamedAhmedNabil github.com/cplusplus/draft lemme find the sections
@JohannesSchaub-litb The original has a remarkably bad title though.
i gtg now when i get back , bye
18:18
@JohannesSchaub-litb doesn't seem like your dupe is relevant.
It's not about main, it's about the foo = foo static.
§8.5\11 "If no initializer is specified for an object, the object is default-initialized; if no initialization is performed, an object with automatic or dynamic storage duration has indeterminate value."
§ 8.5\6 "To default-initialize an object of type T means: otherwise, no initialization is performed"
waiiit
stupid spec
Anybody here use D?
so int i default initializes i which means no initialization is performed. So is it initialized or not? @JohannesSchaub-litb?
Is name mangling strictly necessary? I mean: linkers now can take care of longer symbol names, can't they? So why not just use the fully qualified name instead of mangling everything to death?
@rubenvb it never had anything to do with length, and everything to do with what characters the linker accepted. (to my knowledge)
18:23
@rubenvb Still got the problem of overloading.
@DeadMG no you don't, the argument types are part of the symbol name.
@MooingDuck OK, let's make a linker accept those symbols. Problem solved, right?
it's not that the basic execution character set C++ defines is so humongously large.
@rubenvb most linkers do AFAIK, but that functionality is ignored. But yes, theoretically that'd solve the problem
Why do you think @CatPlusPlus is a she? — rubenvb 6 secs ago
Anybody ever taken a look at Mozilla's Rust?
§ 3.6.3\1 "Destructors (12.4) for initialized objects (that is, objects whose lifetime (3.8) has begun)..."
§ 3.8\1 "The lifetime of an object of type T begins when:
— storage with the proper alignment and size for type T is obtained, and
— if the object has non-trivial initialization, its initialization is complete."
@rubenvb He's a pussy.
5
18:29
@MohamedAhmedNabil there we go, those prove that int i; includes initialization
@MooingDuck Not enough. Look for the definitions of default initialization and stuff.
guys
I actually had a good fucking sleep for once
The quotes you provided only explain what happens for initialized objects, not what counts as initialization.
@R.MartinhoFernandes quoted those 7 minutes ago, default initialization for an int is no initialization. Which is why I needed more quotes :(
Oh, sorry.
@DeadMG Not happy for you, but congrats.
18:35
@DeadMG You should try that more often.
@rubenvb What's that? Mozilla's answer to Google's Go?
@EtiennedeMartel just found it when googling something about msvc and name mangling. I have no idea what it's supposed to be.
I guess everyone is writing their own language these days.
Looks like it's a programming language.
@rubenvb Yeah. Especially puppies.
I'm subtlety incarnate.
Foxes, droids and puppies. All Writing languages.
18:40
Droids?
Oh, Google.
@R.MartinhoFernandes Google. Couldn't find a better mascot.
Yeah, I thought it was me for a moment.
All I have designed of my own language is the name.
lol. I thought you might think that.
@R.MartinhoFernandes You could write your own language. It's core feature would be excellent Unicode support.
@R.MartinhoFernandes me too. I got the namespace/class qualification syntax too. And what the C interop will look like.
18:42
Rust sounds weird.
> A value of type str is a Unicode string, represented as a vector of 8-bit unsigned bytes holding a sequence of UTF-8 codepoints.
This sounds a lot like "We have no idea what we're talking about. Also, we like UTF-8."
WTF is a UTF-8 codepoint?
Dude, their Mozilla devs. They like UTF-8 because UTF-8 is the encoding of the Web.
@EtiennedeMartel Well, they could write sentences that make sense. It's possible in UTF-8 too.
Now I don't know if they mean "UTF-8 code unit", or "codepoint that happens to be stored in UTF-8"
@R.MartinhoFernandes They code write sentences? What?
WTF did I write.
What you wrote.
18:45
@R.MartinhoFernandes yeah, I thought a code point was one char32_t, or a varying number of char8_t's.
It was a joke. I was writing a nonsensical sentence about others writing nonsensical sentences. whistles
@R.MartinhoFernandes > A value of type str is a Unicode string, represented as a vector of 8-bit unsigned bytes encoded in UTF-8. Really the only plausible interpretation
8-bit bytes
octets, I think that's the word.
@MooingDuck Yeah, seems they mean "code units": "A value of type char is a Unicode character, represented as a 32-bit unsigned word holding a UCS-4 codepoint"
18:47
@EtiennedeMartel octets of what? Octupussies?
@rubenvb An octet is a 8-bit byte.
That's how we call those in French, and it also happens to be the term used in the Unicode spec. I think.
@EtiennedeMartel "octet" has a much wider range of meanings: en.wikipedia.org/wiki/Octet
well, one to be exact.
that list is confusing.
@rubenvb lets improve the title
What the hell, my chat has exploded.
@EtiennedeMartel at least you're still alive.
18:48
@EtiennedeMartel Unicode uses byte.
a bad title should not stop it from being a duped question
But they're not particularly precise about their terms.
I think it switch to the mobile layout. Or something.
(They use "character" to means various things)
Anyone knows how I can switch back?
18:49
what title do you recommend?
Ell
Ell
Damn! I was on chat roulette to a Norwegian girl and she skipped mid sentence :'(
Aaah. Found it.
@JohannesSchaub-litb "Is initializing a global variable with itself undefined behavior?"
I like Rust's check, prove, claim thingies.
An octet is a unit of digital information in computing and telecommunications that consists of eight bits. The term is often used when the term byte might be ambiguous, as historically there was no standard definition for the size of the byte. Overview The unit byte is platform-dependent and has represented various storage sizes in the history of computing. However, due to the influence of several major computer architectures and product lines, the byte became overwhelmingly associated with 8 bits. This meaning of byte is codified in such standards as ISO/IEC 80000-13. While to mos...
18:51
@R.MartinhoFernandes seems like at least check was removed
@rubenvb please refresh
changed title to something meaningful
@JohannesSchaub-litb can't see it :/
@JohannesSchaub-litb you changed the title of your own question?
you linked another as duplicate for the other question
Why is the Definite C Book List closed?
Because it is a question on Stack Exchange.
@Rapptz it isn't?
19:03
243
Q: The Definitive C Book Guide and List

lillqTo follow the example of The Definitive C++ Book Guide and List for C Books here is a wiki post for organization. A tag search for "C" and "Books" returns no complete book list results as of writing this question. That search is here. This post is to providing QUALITY books and an approximate ...

@Rapptz oh, C, not C++
The C++ book question is the only one blessed to stay opened.
25
Q: Why is "The Definitive C++ Book List" question allowed, but other book recommendation questions are not?

Robert Harvey Why does this question get a pass, but I can't ask my own book recommendation question? Can I ask my own book recommendation question in a way that is acceptable to the community, like the C++ book list question?

20
Q: How can we discourage book recommendation questions?

Ricardo AltamiranoThe issue of book recommendations has been raised before (to name a few examples); however, I'm raising it again because the problem doesn't seem to have gone away. books has over 2,500 questions, so I haven't had a chance to sort through them all. That being said, I've burned through almost 200 ...

@Mysticial Kind of weird huh?
@Chimera no, it's often used to point newbies to references to actually learn something before they ask stupid questions.
19:06
@rubenvb You mean, after they ask stupid questions.
@rubenvb No, what's weird is that the C++ recommended book list question gets a pass while the other ones don't.
@Mysticial yes. Before they ask more stupid questions.
@Chimera yes it is
@Chimera We have an active SO Chat and Meta insurgence.
And there are a lot of awful C++ books.
I think it's great that the C++ book list remains, but I wonder about the "fairness" of it.
19:08
@Chimera agreed
@Chimera I like Shog's argument.
19:32
ah chat is back
Ah, chat is back :)
I thought the world was about to end.
Ell
Ell
I thought my internet was dying :O
scared me for a second
Xeo
Xeo
Chat was gone?
Yep. Maintenance, it seems.
Ell
Ell
phew
19:42
@R.MartinhoFernandes The world didn't end. It just had a BSOD, and took a while to create the dump file.
ah chat is back
I thought my employer cut off access.
Ell
Ell
speaking of dumps
@R.MartinhoFernandes That's it, I can no longer write any C# code without ReSharper.
A tuple is un-brace-initializable.
@EtiennedeMartel What does ReSharper do?
19:44
@EtiennedeMartel Hehe.
@Chimera Sex.
@R.MartinhoFernandes Great tool!
@Chimera Refactoring tool for .NET. Unlike VAX or what's in Eclipse, it also gives suggestions. Which is what I like the most.
@EtiennedeMartel Ah ok, sounds quite useful.
Xeo
Xeo
@rubenvb You might be able to make it brace-initializable, I think
cut all the constructors and make it work by aggregation
@EtiennedeMartel It feels like it thinks along with you.
19:48
@R.MartinhoFernandes Yep. The other day it caught a NullReferenceException for me.
Heyyyy
@Xeo still a stupid std limitation
Xeo
Xeo
Well, what about for(auto& e : a_tuple) :P
@Drise Hay
Ooo do I have a new gay friend?
19:55
?
Everyone's gay!
I'm happy.
Only gay people use "hay"
homosexual s silly.
Well, I'm not gay.... so hey.
@Drise hey :)
19:55
@Drise And farmers.
nils!
Nothing wrong with being homosexual, but I'm hetero
Ell
Ell
just go on chat roulette.
19:56
Have you had a look at my Qt question?
No! Really fuck GTK!
Hello
@Chimera Fuck both.
19:57
Anally?
@EtiennedeMartel LOL, that works also.
@Drise forgot what it was about
are we playing Anal Commando?
Ell
Ell
I am hereo too
I have a problem with gays that are in your face though
Let's all rebel against GUI's and write our code using curses.
19:58
@Ell Fun fact: those don't actually exist.
qt-project.org/forums/viewthread/19906 mine is about properly implementing undo on the MV classes
Nils, it's on my profile. I'm on mobile, so chat is essentially a pile of donkey shit.
ah on SO or in the chat?
OMG so many people joining the lounge.
<-- braces for trolling.
Ell
Ell
@EtiennedeMartel they do. I know several
20:00
@Ell Eh?
Nils, SO. As to your question, I have no idea.
Ell
Ell
@EtiennedeMartel meh nevermind, I think I misunderstood
heh
Is cash a global word for "physical money", or is it just a US thing?
@Drise We use it here as well.
20:03
@DeadMG What are you up to puppy?
@ManofOneWay Chasing his tail.
@Drise Humm I would need a working example on my box..
@Drise What do you mean with "However, printed to cerr is edit: editing failed and the item is not in edit mode."
@Drise I mostly used the MV classes, but I guess it is just a detail you are missing.
@JerryCoffin :)
@JerryCoffin What are you up to?
@Drise I always thought "bucks" was a Canadian/American thing, not Cash though
@Xeo tuples aren't iterable.
Xeo
Xeo
20:15
@rubenvb They are! Through recursion :(
The fonts in QtCreator look far worse than in Xcode!!!
:(
@Nils Qt5 says it improves on that
Consolas4life
2
eq-
eq-
@rubenvb, I don't think Qt5 does anything to fonts in QWidget based apps
@eq- font rendering is font rendering.
20:16
ah well there is no creator yet
Or at least no stable
eq-
eq-
@rubenvb, what's that supposed to mean?
@Nils, do the fonts themselves look worse, or are they just different (typefaces)? You can change them...
not sure
maybe I also just need a retina macbook :P
eq-
eq-
@Nils, it's unlikely to improve fonts on QtCreator just yet
I also would like to have Mac keybindings on the mac, like ctrl-e to go to the end of the line.
eq-
eq-
Oh how I've longed for HDPI screens on computers...
20:23
There should be a SI unit for pain measurement.
Could be called "java".
"This code gave me 12 javas".
Java currently has an exploit
Well there's an exploit written in Java.
eq-
eq-
But at least it's portable!
it includes font rendering fix in Qt for the text editor.
maybe related to what you're experiencing.
:) thx
hey I have 2.5.2
Well I'm gonna go.
Bye guys
20:34
Write once, exploit everywhere.
eq-
eq-
@Nils, could you take a comparative screenshot of QtCreator and XCode side-by-side?
AAAHAHA
0
A: can template alias be used for partial specialization?

Johannes Schaub - litbAnother guy said that this is a Clang bug. You can work it around if you change the using declaration like this template<unsigned T, unsigned U = T> using uint_ = integral_constant<unsigned,U>; As an educated guess, apparently Clang does not correctly update the identity of the tem...

I saw this today and wondered if that isn't UB: int x = 5; int y = ++x;
@Drise hay, nay and yay :) not only homosexuals
@TonyTheLion you wonder too much
but... why is it UB?
sequence points and the pre-increment operator
I'm not sure, that's why I'm asking
20:38
@TonyTheLion please elaborate where you see the problem
assigning to y and incrementing x in the same statement
please elaborate why that is problematic
as I said before, something to do with sequence points
i see no problem with that
ah
ok then
eq-
eq-
20:41
What use would the prefix-version of the increment operator have if you couldn't depend on it's value?
@eq- ^
@TonyTheLion yeah, totally fine, no variable is changed more than once
ah right
eq-
eq-
@Nils, on first look they look identical to me (the proportional code part, that is); when comparing parts that can be compared
(I'm using a slightly higher DPI laptop now, so can't say for sure without zooming in.)
no the Xcode font is a bit sharper
Or is it? Not so sure..
eq-
eq-
20:45
There is a slight difference (just checked)
6
A: iterate over tuple

emsrI have an answer based on Iterating over a Tuple: #include <tuple> #include <utility> #include <iostream> template<std::size_t I = 0, typename... Tp> inline typename std::enable_if<I == sizeof...(Tp), void>::type print(std::tuple<Tp...>& t) { } temp...

almost
eq-
eq-
For some vertical lines (and horisontal too, probably) the XCode has more gridlocking than QtCreator does. Can't really say why that is (for the samples I've compared it might be just the window position; but that's unlikely if you notice the problem all the time)
But on this slightly higher DPI screen (IIRC around ~130) it's hard to see without zooming in
thx for checking :)

« first day (682 days earlier)      last day (4492 days later) »