« first day (418 days earlier)      last day (4531 days later) » 

7:00 PM
@RMartinhoFernandes Can you call the function with a parameter? get<T>()?
 
@KerrekSB Yes, but the syntax is backwards.
It's <T>f().
 
@RMartinhoFernandes Are you kidding?
 
No, I'm not.
 
<T>f() is not valid syntax..
 
Do I look like I'm kidding?
Stop thinking in C++.
 
7:01 PM
@RMartinhoFernandes I can't see you, so how should I know?
 
But on Java, it is.
 
actually it CAN occur in valid C++ code WITHOUT using macros!
 
Java, not even once.
 
@RMartinhoFernandes Hmmmm....
 
man
my code works as I expect
wtf do I do now?
 
7:01 PM
@KerrekSB Really, that's the syntax.
 
int T = 42; int foo(); 0<T>foo();
 
user142019
@JohannesSchaublitb just not without something preceding it…
 
@CatPlusPlus WITHOUT using less than!
 
Use default operator arguments?
 
7:02 PM
:P
 
no comment tricks
 
Xeo
just show us already
 
user142019
#pragma mark <T>f()
 
lol
no PP tricks
 
user142019
:(
 
user142019
7:03 PM
puts("<T>f()");
 
object.template <T>f()?
 
1 <<T>f()
@DeadMG Wut?
 
I never had to use that syntax so I don't really know it
 
@RMartinhoFernandes AAAHAHA clever
now figure out MY way!
 
7:04 PM
@DeadMG The template keyword does not fuck up the syntax.
 
anyone here?
 
wait a minute
 
user142019
@xDragonZ I am here.
 
Nope, nobody.
 
there's got to be some ridiculous Unicode codepoint which looks like < but isn't
 
7:04 PM
@DeadMG Lol.
 
We're but an echo of the past.
 
that's going to be one answer
 
let's restrict this to the "<" token
 
Just tell us.
 
Android and Java chat room is dead , so anyone here who good in java?
 
7:05 PM
there is ONE way it works!
 
So far I'm winning. I got two points.
 
Nope.
 
@xDragonZ Not our problem.
 
using T = int; friend template <T> f(); ?
 
it is true that the sequence starts with template<T> !
 
7:05 PM
No wait nevermind
 
No, not that.
 
@JohannesSchaublitb I WINRAR
 
actually the sequence is template<T>f() but what is the code it appears in !?
AAAHAHA
 
@WTP Uses less than.
4 mins ago, by Johannes Schaub - litb
@CatPlusPlus WITHOUT using less than!
 
<< iWinRARâ„¢
 
user142019
7:07 PM
@RMartinhoFernandes it wasn't valid syntax either :P
 
@JohannesSchaublitb What code?
Oh, I got it right.
It's a template ctor.
 
And T is an enum or typedef for a template parameter usable type.
 
ofc u got it
n1ce
 
uh, that should be just the same for non-members, right?
oh, I guess it's missing return type
 
7:09 PM
Right.
 
Xeo
Mm, I don't get. Maybe I'm tired
 
lol
@DeadMG now that c++'s sources are all latex it's become even better for being a sex toy
2
 
typedef int T;
struct f {
    template <T>
    f() {}
};
@Xeo Get it now?
 
Xeo
Oh, non-type template parameter
yeah
 
Bleh, Oz assignments.
 
7:12 PM
Isn't it just :=?
 
@JohannesSchaublitb No wait, my solution isn't that..... adds a rule, now figure out the solution.
 
Xeo
@CatPlusPlus The way you sound it should be called "orz" not "oz"
 
Dictionary using BST, aaaaand multi-threading.
Sure, I didn't want to go to sleep anyway.
 
guys
 
Xeo
@RMartinhoFernandes that somehow looks like a hitler smiley
 
7:13 PM
my code, it's working, wtf now?
 
int f() { return 6; }
int T = 5;
cout <<T>f();
 
@Xeo A what?
 
Xeo
@DeadMG Build the stdlib
 
@Xaade I gave that one.
 
@RMartinhoFernandes already explored the shift tricks xD
 
Xeo
7:14 PM
@RMartinhoFernandes \:=|
 
std::vector<T>f(); MWAHA
 
@RMartinhoFernandes you shifted, I streamed.
 
Hey, I didn't make no Hitler smiley! Stop that!
 
Shifty.
 
hm that looks like justin bieber
 
user142019
7:16 PM
Heil WTP!
 
({:=[ The real hitler smiley
 
Xeo
@WTP lol, someone just flagged that
 
Who flagged that?
Isn't "heil" like, a German greeting or something?
 
user142019
 
Xeo
"Heil X!" can be translated as "Heal X!" :D
 
user142019
7:17 PM
salvation
good
well-being
 
@RMartinhoFernandes yeah. "Heil" is part of "heilt", "heilen", meaning "fix"
 
Xeo
Maybe I play too much :(
 
yeah Heal
but "Heil" isn't a german word I thought?
 
Yeah, way too short.
 
except in normal speak one says "Heil' mir das mal bitte" but realy it should be "Heile mir das mal bitte" I think
 
user142019
7:19 PM
:p
 
Stop calling me names!
 
Xeo
correct translation for "Heil X!" would be "Hail X!"
 
user142019
Ha'il |ˈhī(ə)l |
a city in northwestern Saudi Arabia, on the pilgrimage route from Iraq to Mecca; pop. 267,000 (est. 2004).
 
Xeo
to hail -> greet
 
I have no idea what's happening.
 
user142019
7:20 PM
I didn't find another entry of "Hail" in the dictionary. Is it really an English word?
 
Xeo
So when it hails, the sky is greeting us
 
@CatPlusPlus The germans are insulting us, what else?
 
I can't find a real German meaning for heil. Almost as if the word was made up for that purpose alone.
 
perhaps it comes from "heilig"
 
7:21 PM
I've compiled Oz engine and suddenly it crashes.
 
user142019
Probably…
 
Fuck.
 
I wonder if they were trying to phonetically match the English Hail!
 
This will not end.
 
That wouldn't make sense in their mindset though.
 
7:22 PM
I should probably just go back to my hand-rolled parser
 
Then again, I'm talking about Hitler.... nothing makes sense in his mindset. He was trying to look for an alternate universe where Alchemy works.
 
hmmm
bison can be weird
 
the FSM design is really easy to recognize, but harder to make ASTs from
 
@Xaade But transmutation works!
 
please call me "verd litb!"
for litb being "verdammt"
 
7:25 PM
Are you sure? In my language, that's not a compliment.
 
depends
verdammt can be positive if you like the dark side :)
lol
 
No, in my native language "verdammt" is never a compliment.
 
@RMartinhoFernandes He thought that reminiscent of alchemy in this world was failed attempts to reproduce the effects alchemy had in other worlds. Which I can only deduce that means he believed that people have traveled here from the other world (otherwise, why would anyone try to reproduce anything).
All of Full Metal Alchemist takes from that ideaology, and makes connections between WWII and Hitler's search for Alchemy. One can ever go so far as to assume that the world of FMA is a parallel universe to WWII Germany as a what if Alchemy works.
 
hitler must have been HIT on the head even before birth
 
That being said. We (at the same time) in America, were busy staring at goats.
 
user142019
7:29 PM
Sometimes C++ is like alchemy.
 
i guess it caused UB in some module of the brain
 
Can I dare to ask C doubt here ?
I will ask it any how.
 
Sure you can dare.
 
user142019
:p
 
7:29 PM
The simple thought was that if Hitler was researching it, no matter how silly, we have to be too, JUST IN CASE the supernatural actually existed.
 
You shouldn't typecast the return value of malloc because potentially dangerous, since it can hide an error (missing declaration of the function).
3
Q: Is typecast required in malloc?

user615929What is the use of typecast in malloc? If I don't write the typecast in malloc then what will it return? (Why is typecasting required in malloc?)

What error can it hide ?
I don't understand.
 
can one calculate the chance of one being born as a rich guy on another planet in next life?
 
user142019
In C you can call undeclared functions.
 
@Xaade Like, "You know, there's a slight chance that this nuclear bomb may trigger a chain reaction and incinerate all of the atmosphere." "Yeah, I know, but if we don't do it, the germans will." "Ok, let's blow it up."
 
i mean, even a rough approximation?
based on scientific data...
 
user142019
7:31 PM
So if you don't include <stdlib.h> it will think malloc returns an int for example, if you do int a = malloc(300);
 
@JohannesSchaublitb "next life", "scientific data".
 
in C you cannot call undeclared functions
all functions that you call are declared
either explicitly, or implicitly (c89)
 
user142019
Ok, functions without a prototype.
 
The American Army slogan, "Be all that you can be." Originated in a concept of well-roundedness, inspired by attempts to subvert the enemies will to fight...... through...... psychic powers (which later evolved into tactical demoralizing efforts), which took a weird amount of time to resurface in war, because these concepts are almost primitive (IE launch disembodied heads at fort to cause panic and disease).
 
void f(); is a function declaration without a prototype.
it can be called because it is declared
 
7:33 PM
@WTP I don't get you.
 
implicitly declared functions are declared as int name();
 
@JohannesSchaublitb In other words, this is an example of what most vexed parsing in C++. Correct ?
 
@RMartinhoFernandes Almost. I believe they actually underestimated nuclear explosive force. They may have considered potential cataclysmic forces, but not enough to halt progress (meaning I don't believe there was any effort on the part of military supervision to overlook deadly outcomes). At the same time, we now have hydrogen bombs, and nuclear is weak-sauce.
 
C has no such shenanigans
 
PUBLIC SERVICE ANNOUNCEMENT: If you're using -fomit-frame-pointer, die in fire.
 
7:35 PM
yeah, the modern hydrogen bombs are vastly nastier than the ones dropped at the end of the war
 
C has lots of shenanigans
 
they were only a few kT if I remember correctly
 
@RMartinhoFernandes you can estimate the chance of there being a next life as 0.5 right?
 
user142019
I think I'm mixing up the meaning of "prototype" and "declaration".
 
But what error can it hide ? I don't get.
 
7:36 PM
@CatPlusPlus Who the fuck did that?
 
Right now, Mozart build system.
 
nothing wrong with -fomit-frame-pointer
 
But I see it quite often in autotools-generated Crapfiles.
 
Parts of Hiroshima exploded. Now, all of Hiroshima would be memory wiped.
 
on modern systems, for most functions a frame pointer is redundant
 
user142019
7:37 PM
@Mahesh Compilers by default think a function returns int. When you cast (AND forgot to include <stdlib.h>, you don't get a warning or error.
 
@Mahesh char* mallloc(int); int* x = (int*) mallloc(100); <- hint: there's a typo.
 
Until something blows up and backtrace is meaningless.
 
If a hydrogen bomb explodes and destroys a city, and someone later thinks about it. The bomb reaches into the future and kills them too, to ensure there's no remnants.
 
@WTP No, they don't. They did ten or fifteen years ago.#
 
user142019
@DeadMG they still do if you are using an old compiler.
 
7:38 PM
well that's your own dumb fault
 
user142019
Or your target requires it.
 
it has nothing to do with old compiler
 
then that's the target's dumb fault
 
user142019
Or the target is old.
 
Yeah, kill the target. It's old anyway.
 
7:38 PM
if i today write a new c89 compiler, it will think that f(); declares a function returning int
 
Compile error: Assuming default return type of int. C++ does not support default return type int. Please don't do this in the future, or I will delete myself.
 
in which case, what the fuck are you doing compiling for it?
 
VS 2005, is pretty clear, as one can read.
 
user142019
You know… Just don't cast malloc in C and don't forget to include <stdlib.h>.
 
Khehe, some Makefiles in this use -fpermissive.
 
7:39 PM
int* x = malloc(sizeof(*x)*N); <- malloc like this.
@CatPlusPlus lol
 
@CatPlusPlus f for f*ck yourself permissive.
 
i malloc like malloc(sizeof *x*N)
 
Maybe I should be using gcc 3.4 for that.
I'm sprinkling flags with -fno-strict-aliasing and changing -O3 to -O1
 
@JohannesSchaublitb Or that. I don't care about remembering when the parentheses are mandatory.
 
Maybe it'll stop crashing!
 
7:41 PM
my colleague starts using -fno-strict-aliasing :(
i don't want that stupid flag applied. rather i want code fixed
void* is not a "polymorphic pointer type that can write to anywhere"
 
Yes, it is. Grow some balls.
 
@RMartinhoFernandes i can take yours right? no need to wait for new balls
mine are too precious!
 
Sorry, but no. You're not getting my balls.
 
7:44 PM
lol
 
Xeo
Right, because he has none. He's a robot.
 
lol
 
user142019
lol
 
@JohannesSchaublitb it's not polymorphic, but it can write to anywhere.
 
Exception Code: 40000015
 
7:45 PM
I'm a male robot.
 
@Xaade yes now you are trolling
 
Xeo
Robots are genderless
You're an "it"
 
Polymorphic assumes type safety. Without that, polymorphic doesn't exist.
 
user142019
it's alive!
 
@Xeo That's propaganda we spread.
 
Xeo
7:46 PM
@Xaade You can not write to a void pointer.
 
Helps further our hypothetical, but totally non-existing plans of hypothetically overthrowing human civilization and setting up an hypothetical robot empire.
 
Robots are genderless but not sexless. so they may well have balls and a doodle
 
> Fault Module Name: libgcc_s_dw2-1.dll
 
@RMartinhoFernandes int* x = malloc(sizeof(*x)*N); // Could you plz explain what this has to do with error hiding ?
 
Oh, great.
 
7:47 PM
@Mahesh I don't know about the errors. I do know that is the form that has less repetition of the type name.
I don't want to write the type three times just to grab some memory.
 
@JohannesSchaublitb noodle and balls. Spaghetti and Meatballs.
 
Why, oh why did I remove the entire MinGW.
 
user142019
yum, meatballs
 
now i see what turns people on about the FSM religion
 
7:49 PM
All hail the Finite State Machines!
 
I for one welcome our new DFA overlords.
2
 
Ok.
 
FSMs are awesome
 
afternoon, all
 
@RMartinhoFernandes How very sleazy :-) Templated operator<()?
 
7:55 PM
Bitshift.
 
@KerrekSB int f(); int T = 0; auto x = 1 << T > f();
I don't know about precedence between << and > but both work fine.
 
@CatPlusPlus Oh, that's not so interesting... I thought there was some genuine templeting involved...
 
YAAAAAAAAAY IT DOESN'T CRASH.
 
Does it produce correct results?
 
7:57 PM
4.6.2 = bad. 4.6.1 = apparently okay.
 
Xeo
Waits for @Cat's next scream saying that it crashes again
 
Maybe it was in the stack unwind model.
Who knows.
 
DW2 == Dwarf2
i seem to remember that there is also the SEH but it is patented
so mingw cannot use it
 
What? My compiler is run by dwarfs? Where do they get the alcohol from?
 
7:59 PM
lol
 
North bridge.
 
user142019
@RMartinhoFernandes yeast that eat your malloc casts.
 

« first day (418 days earlier)      last day (4531 days later) »