« first day (1804 days earlier)      last day (3130 days later) » 

9:00 AM
hmm, nullptr_t is typedef decltype(nullptr) nullptr_t;, and typeid(nullptr) is "decltype(nullptr)" o.O
 
@elyse I'd say, anyway, that in most OOP systems we actually talk about polymorphic references, not polymorphic values.
 
user1804599
@melak47 what
 
user1804599
typeid isn't decltype
 
user1804599
typeid(nullptr) is not decltype(nullptr)
 
user1804599
9:01 AM
the former is a value and the latter is a type, and they're unrelated
 
typeid gives you an std::type_info object IIRC
 
@melak47 yup (well, the name can be anything but it’s a very good pick)
 
> It is important to know that the only possible way to access an object is through a reference variable. A reference variable can be of only one type. Once declared, the type of a reference variable cannot be changed. (Java)
 
Xeo
@melak47 nullptr is of type nullptr_t and nullptr_t has the literal nullptr
 
user1804599
oh, you mean the output of c++filt on the mangled name of decltype(nullptr) is "decltype(nullptr)"
 
Xeo
9:02 AM
and nullptr_t is defined as decltype(nullptr)
 
@Ell "network"
 
@Ell this is a meaningless buzzword
 
@Xeo just think it looks funny, the type being just a typedef
 
user1804599
no
 
user1804599
a type is not a typedef
 
9:05 AM
Also see: std::size_t.
 
user1804599
a typedef is more like a hardlink
 
jeez elyze
 
@BartekBanachewicz it means suck cock cc @ell
 
user1804599
it is important to not confuse the two
 
@melak47 eljeese
 
user1804599
9:07 AM
jizz elyse
 
el-jizz
 
user1804599
al jizzeera
 
is nullptr_t supposed to be in the global namespace, too?
 
Note how a is declared as an array, but it's actually a pointer. I wonder if I should spit out a warning about that?
 
@melak47 No.
 
9:11 AM
why does MS put it there :/
 
Maybe it’s conforming, I don’t know for sure. SFINAE makes it difficult to reason about it.
 
@melak47 Just use decltype(nullptr) ;)
 
user1804599
@fredoverflow disallow use of that syntax
 
@fredoverflow dat trailing \n
 
SFINAE aside, consider any program that uses ::nullptr_t to be non-portable and not guaranteed correct.
 
9:13 AM
@elyse Impracticable. I am allowed to teach arrays but not pointers in the first semester :-D
 
user1804599
@ʎǝɹɟɟɟǝſ trailing newlines are required in C
 
@fredoverflow arrays are not pointers
 
user1804599
which is good
 
Why is it good?
 
@BartekBanachewicz Right, but I want to pass arrays to functions.
 
9:13 AM
what should I call the config flag to hide namespaces from output
 
user1804599
because it makes it easier to write tools that append to the file
 
@ʎǝɹɟɟɟǝſ makes writin parsers easier for noobs
 
Or should I just use global arrays everywhere lol.
 
user1804599
you don't have to worry about a possibly lacking newline
 
@fredoverflow you don't pass arrays to functions in C
 
9:14 AM
@LucDanton so...programs compiled with MSVC are not portable and not guaranteed correct? what elyse is new? :D
 
user1804599
I once appended to a .gitignore file
 
well mmm
 
@BartekBanachewicz Right, but I want to write a function that can process the elements of an array.
 
user1804599
and fucked up because some moron didn't terminate the .gitignore file with a newline.
 
@elyse Why do you have to care? You can just write "\n<content>".
 
9:14 AM
@melak47 god forbid using templates
 
user1804599
I want newlines before EOF ever since.
 
@elyse That moron... was that you?
 
user1804599
@ʎǝɹɟɟɟǝſ don't want a blank line
 
user1804599
@fredoverflow no, a colleague
 
@fredoverflow use a closure
 
9:14 AM
@elyse Did you fire him?
@BartekBanachewicz Closures in C?
Clocure?
 
@elyse Yes, it's a requirement for p much everything text related
 
@elyse You wouldn't have it if the content ended without a new line.
 
@fredoverflow C losures
as in "lose"
 
user1804599
@ʎǝɹɟɟɟǝſ yes, but you don't know whether it does, that's the problem
 
Except that a blank new line is not a problem whatsoever.
 
9:16 AM
Maybe it is
 
int main() {
    int t[] = {1,2,3};
    void sum(int n) {
        int sum = 0;
        int i = 0;
        for (int i = 0; i< n; ++i)
            sum += t[i];
        return sum;
    }
    int s = sum(n);
}
 
Maybe it's a whitespace program
 
Also if you never want a new line you can just collapse \ns after writing.
 
@fredoverflow pff
 
As if "tabs vs. spaces" wasn't interesting enough, now the Lounge discusses the pros and cons of blank lines.
 
user1804599
9:16 AM
@BartekBanachewicz is that D code?
 
I agree with @elyse, I think \n before EOF should be mandatory for text files
Maybe we can enforce that in git :D
 
@Mr.kbok Doesn't the C standard even require it?
 
user1804599
easy, pre-commit hook
 
user1804599
@fredoverflow C11 doesn't anymore I think
 
@fredoverflow yes, but not for other file types.
 
9:17 AM
C++11 doesn't anymore either
 
Asking people to manually remember to insert a new line at the end of every file and assume that they will always do so is a recipe for a disaster.
 
@fredoverflow AFAIR the rule is that the compiler is free to ignore the last line if it doesn't end with a newline
 
user1804599
@ʎǝɹɟɟɟǝſ so use an editor that automatically inserts it, such as Vim or Sublime Text 2.
 
> Whether the last line requires a terminating new-line character is implementation-defined.
 
@elyse Sublime doesn't
 
9:18 AM
@elyse GNU C has an extension for that
 
yeah it does
 
user1804599
@Mr.kbok It does if you configure it to.
 
I use ST and it does it
 
> GCC implements taking the address of a nested function using a technique called trampolines. This technique was described in Lexical Closures for C++
 
@elyse where?
 
9:18 AM
where all the settings are
 
user1804599
@Mr.kbok in the configuration file.
 
user1804599
The C# language specification says that before lexical analysis, a newline must be appended to the text. :)
 
> ensure_newline_at_eof_on_save
cool
 
@elyse My Vim doesn't automatically do that. Yes, I can set it up to do so, but at that point we are in "Asking people to manually set their editor to insert a new line ... disaster." again.
 
thanks
 
user1804599
9:19 AM
That makes the definition of preprocessor directives simpler.
 
user1804599
@ʎǝɹɟɟɟǝſ Vim does it by default.
 
@ʎǝɹɟɟɟǝſ yes, we're asking people to be responsible
 
Ok, then we are at "Asking people to use only a subset of editors or manually put that setting in on the other subset that allows that ... disaster.".
 
disaster is a mild overstatement
 
notepad adds a newline on save probably
let's test
 
user1804599
9:20 AM
> If the last character of the source file is a Control-Z character (U+001A), this character is deleted.
> A carriage-return character (U+000D) is added to the end of the source file if that source file is nonempty and if the last character of the source file is not a carriage return (U+000D), a line feed (U+000A), a next line character (U+2085), a line separator (U+2028), or a paragraph separator (U+2029). [Note: The additional carriage-return allows a program to end in a pp-directive (§9.5) that does not have a terminating new-line. end note]
 
@BartekBanachewicz Except that I have yet to see any reason why "\n<content>" while appending on a new line is unreasonable.
 
@Rapptz I liked the first version better
let’s binary!
 
it doesn't
RIP
hello is exactly 5 bytes
 
do people really care about newlines
 
how else will std::getline work
 
9:23 AM
at end of file it still verks
 
TIDL
 
lol
HINT any program that cares can translate EOF as EOL
TYDL
 
@AnastasiyaAsadullayeva return the carriage first!
 
@ʎǝɹɟɟɟǝſ the file might or might not have unnecessary newlines
 
@ʎǝɹɟɟɟǝſ I don't like that it makes append(""); not a noop.
 
9:26 AM
Why is boost insisting in not building the regular chrono lib instead of all its shitty -s and -sgd suffixes
What arcane argument did I miss
 
guys
 
12 mins ago, by Rapptz
what should I call the config flag to hide namespaces from output
 
remember when we talked about commas in macros
 
@AnastasiyaAsadullayeva b2 --help or something
 
9:27 AM
@R.MartinhoFernandes it also makes append("a"); append("b"); and append("ab"); different
 
Can virtual memory be negative ?
 
The original problem was that rightfold wanted to append something on a new line. He could have just appended "\n<content>" and be done with it.
 
@sameer be what
 
Can virtual memory of windows 7 pc be negative ?
 
user1804599
Yes.
 
9:28 AM
@ʎǝɹɟɟɟǝſ What if it already had a newline?
 
@R.MartinhoFernandes I'm not recommending to make append automatically add a "\n" at the beginning. Just that if you want to make sure content is on a separate line you should use "\n<content>"
 
user1804599
@ʎǝɹɟɟɟǝſ except tools don't do that
 
user1804599
e.g. echo foo >> .gitignore.
 
Having redundant blank lines is an optimization problem that can be solved very easily.
 
user1804599
newline before EOF isn't necessarily a blank line
 
9:29 AM
@sameer Yes, the most common case is that it is negative
 
user1804599
it terminates the last line, which may or may not be blank
 
blank lines may not be legal
 
#define COMMA ,
FOO(std::map<int COMMA int>, map_var);
uh ><
 
EWWWWWWWWWWWWWWWWW
 
@elyse "newline" is not a line at all, it's a control character.
 
9:30 AM
whoever wrote that code sucks
 
@Mr.kbok omg that is really beautiful code
 
user1804599
A blank line consists of a single newline.
 
@AnastasiyaAsadullayeva thanks
 
user1804599
@Mr.kbok nice :)
 
it should be FOO(std::map<int COMMA int> COMMA map_var);
 
9:31 AM
@R.MartinhoFernandes Hya, how're you?
 
@Rapptz lolno, you need to match the second parameter inside the macro
 
rip
 
@R.MartinhoFernandes You working in which company?
 
9:32 AM
@Mr.kbok Use BOOST_PP_COMMA for maximum portability.
 
@R.MartinhoFernandes ( ͡° ͜ʖ ͡°)
 
@elyse Possible.
 
@Rapptz too many capitals ¬_¬
 
FOO(STD_MAP BEGIN_TEMPLATE_PARAMETERS SINT32 COMMA SINT32 END_TEMPLATE_PARAMETERS COMMA map_var) SEMICOLON
 
@R.MartinhoFernandes make a reply?
 
9:34 AM
@AngelusMortis Earlier he was working on your mom
 
@AngelusMortis are you a recruiter
 
But recently moved to your sister
 
@MarcoA. misleading name is an understatement
 
9:34 AM
I kicked that guy
 
user1804599
@AnastasiyaAsadullayeva is a man, so not a bitch.
 
good job everyone
back to not work
 
damn guys
we almost got to 3
 
user1804599
> This user has been automatically suspended for posting inappropriate content and cannot chat for 29 minutes.
 
user1804599
9:35 AM
top kek
 
he called cicada a bitch though
 
night
 
@Rapptz night
 
@Mr.kbok Every good program starts with #define COMMA ,.
And ends like this:
 
9:37 AM
what did he write?
 
@Potatoswatter what's that?
 
@Mr.kbok A rad cleanup.
 
@Potatoswatter #define min(a, b) a > b ? a : b
 
9:38 AM
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
 
they don’t look so fly though
 
They took away the owner message-resurrection feature.
FFS
 
@R.MartinhoFernandes Are you trying to link to that deleted message?
 
#define true false
 
@R.MartinhoFernandes how about you make me an owner first so I can actually see it
 
9:38 AM
@R.MartinhoFernandes lol
 
@BartekBanachewicz Never was needed.
 
@LucDanton Their day was probably not as awesome as it looks.
 
#bartek2015
 
More of a boring cleanup really.
 
No, that's what happens when a (live) nuclear ICBM blows up on the pad.
 
9:39 AM
rad cleanup?
0
Q: How to clean up the temp folders of RAD 8?

wa_liuI am receiving the javax.servlet.UnavailableException: (SRVE0203E). As far as I know, this means that not all libraries that I use in the classpath for compiling with RAD are present in the runtime classpath. The error message from the log file outputs the runtime classpath and when I compare it ...

 
@BartekBanachewicz Used to be that linking to a deleted message as an owner would onebox it still.
Apparently someone is actually working on chat features. Just not the good ones.
 
got that part
 
@R.MartinhoFernandes stargazer
 
PSA: Nonius is fantastic
4
 
@Mr.kbok rip
 
9:41 AM
stargazer still saves deleted messages.
 
Showed the pretty graphs to colleagues everyone likes it
 
@Mr.kbok Doesn't help getting them back if you missed them.
 
@AnastasiyaAsadullayeva oh are you measuring that pack optimization?
 
@R.MartinhoFernandes The server listens to the room. You don't have to be there.
 
Measuring the time it takes for some strategy optimizers
 
9:42 AM
@Mr.kbok Ugh, what?
Meh.
 
@AnastasiyaAsadullayeva graphs certainly do make managers happer
 
@R.MartinhoFernandes You don't even need the extension installed :P
 
s/managers/traders/
 
A bookmarklet is enough
 
So, this is why we can't have nice things.
Fuck stargazer.
 
9:42 AM
why?
 
They keep taking things away because of that.
 
Because of what?
 
Stargazer.
 
They can't take showing deleted messages away.
 
Stargazer can be abused easily btw. Example: post a NSFW picture, delete it immediately. Enjoy the rage.
 
9:43 AM
where is this stargazer?
 
shooting down the passer-by are we
 
@R.MartinhoFernandes I don't think anything is related to stargazer. The star bug was discovered separately.
 
@Mr.kbok YEARS AGO
 
oh, didn't know
 
9:45 AM
So if we abuse flags, they'll fix them too? ...oh wait
 
well it was a bug
 
@TonyTheLion Yep, by freezing the room.
 
@ʎǝɹɟɟɟǝſ ty ty
 
@TonyTheLion lol
 
@AnastasiyaAsadullayeva nice and cold.
 
9:51 AM
Shouldn't we build a bunker<c++> for this eventuality?
 
@Potatoswatter we have an IRC channel #loungecpp for now
 
It's customary to upvote an answer if at all helpful, not to delete it. No need to accept of course, since it didn't "solve it" for you - I look forward to seeing the expanded question — sehe 10 secs ago
 
sehe so diplomacy
 
If that's diplomacy, Trump could be secretary of state
 
Good thing that wasn't sarcastic
 
user1804599
10:17 AM
OP is a moron once again.
 
TIL you can't configure HTML form inputs to have a nicer format
 
user1804599
This package is written in C++, that means you will never successfully install this from source.
 
@AnastasiyaAsadullayeva sure you can...
 
> I do machine learning and natural language processing. Occasionally, I dance with gypsies.
@thecoshman Well, for example, I would like to have a number input to have thousand separators
 
user1804599
why a thousand separators
 
user1804599
10:20 AM
do you have over 3000 digits?
 
~10+ digits it's pretty unreadable
 
@AnastasiyaAsadullayeva Hence some of the JavaScript bullshit people use that breaks all over the place.
 
@AnastasiyaAsadullayeva oh right, yeah, nope :P
not without some JS that will work for a few people, do noting for those who are lucky, and screw over most people.
 
user1804599
don't do any front-end work
 
user1804599
it's a pain
 
user1804599
10:21 AM
hiring someone else to do it for you is worth it even if that means giving up 90% of your salary
 
It is surprising though that HTML doesn't have attributes or something to explicitly mark a field as for numbers, currency, time etc.
 
user1804599
it does hth
 
user1804599
but it couldn't be the web if it weren't exhaustive or extensible
 
user1804599
WTF
 
user1804599
If you're muslim, you get free from school on day of Feast of Sacrifice, and if you're not muslim, you don't.
 
10:26 AM
Strategy: be a little bit of everything, so you have all days off of everything religion.
 
@thecoshman there are date inputs and number inputs
 
user1804599
Then you'd think it'd be reasonable for muslims to have to go to school on Christian holidays, but of course that's not the case.
 
@R.MartinhoFernandes tell please, which soft company you working for :)
 
@R.MartinhoFernandes that's OK)
@R.MartinhoFernandes BTW you know hell lot about c++, I saw your answers
OK, all dead? :p
 
10:37 AM
oh wait the note actually mentions the save
but still
char temp[MAX_PATH]="\0";
 
they recommend copy-pasting the program source and compiling it
 
@BartekBanachewicz using namespace std;
 
@BartekBanachewicz does that compile?
 
10:41 AM
dunno really
not going to try
 
> PHP: training wheels without the bike
haha
 
char temp[MAX_PATH]="\0"; <- why is this line problem ?
 
because you could use C++ alternatives
instead of C array
std::string
 
@AngelusMortis should be '\0'
 
10:44 AM
um
whatever, don't use C arrays
 
@StackedCrooked "\0" should also work
 
Oh wait
It's a declaration, not an assignment.
 
@BartekBanachewicz cuz they are hard to manage and pass around?
 
@AngelusMortis for one.
they're also from C, which automatically makes them bad
 
@StackedCrooked Er, no, that'd be wrong.
 
10:46 AM
Yeah. My bad.
 
@BartekBanachewicz but most of drivers are being written in C
so the drivers are bad?
 
@AngelusMortis no, most of the drivers are written in C++
@AngelusMortis no, the drivers work fine. It's C that's bad.
don't jump to conclusions
 
don't jump to concussions
 
10:49 AM
haha xD
 
They got everything else wrong, but at least there's a freeform title field.
 
> And that also gives you a bit of a clue regarding Facebook’s culture. Only a certain type of company would
invent a PHP-like language and call it Hack.
 
Orthogonality fail.
 
@BartekBanachewicz lol
 
yes this gives me a clue that I don't want to ever work at Facebook
 
10:50 AM
Doesn't Facebook write everything in C and then port it to PHP using JS
or something crazy
 
We don’t have software architects, at least not that I’ve found yet.
We don’t have a committee who decides what can and can’t go into the app.
Duplication: almost certainly
@TheForestAndTheTrees precisely this
 
@R.MartinhoFernandes ☐ Yes ☐ No ☑ Yes/No
 
god and I thought you can't be worse at programming than Google
I never was so wrong
 
@LucDanton ☐ Yes ☐ No ☑ Yes/No/Maybe
 
and then again I have to use Facebook as an example of Haskell used in prod
 
10:51 AM
@LucDanton ☐ Yes ☐ No ☑ Yes/No/FileNotFound
 
@AnastasiyaAsadullayeva That's quite impressive.
 
@R.MartinhoFernandes That's what a norman would cross
 
@BartekBanachewicz @Mysticial ?
 
> Now you might think the solution here would be to simply remove some of those 18,000 classes. In which case I
would humbly remind you that we are hackers. So instead we wrote out own IDE.
god
the more I read the more I want to cry
 
ITT 'hackers' now means 'idiots'
 
10:54 AM
Well I'm not sure if the whole slides are serious or satirical, actually. What do you think?
 
it has always meant that…
 
> when your unused parameter called unused is unused
@AnastasiyaAsadullayeva I genuinely think it's that bad there
 
2
Q: Where did the phrase "hack job" come from?

EmilyI've been doing quite a bit of reading and research on the etymology of the word "hack" and its off-shoots, but I can't seem to find any evidence of the first instance of the phrase "hack job." I've searched the OED, online etymology dictionary, etc. Anyone have any insights to share? Thanks!

not exactly a badge of excellence
 
i are an hacker!
 
well done, you
 
10:56 AM
i is the hackest of all hackers
2
 
@thecoshman why do us non-native speakers have to teach you English, you hack
 
Most roughly cut, @AnastasiyaAsadullayeva?
 

« first day (1804 days earlier)      last day (3130 days later) »