« first day (1421 days earlier)      last day (3542 days later) » 

Xeo
8:00 PM
since it lives at the topmost local scope, in main
 
well, it works if I pass it as-is. I just can't remove it, which I kinda expected. Not sure why it works though.
 
Xeo
Because it outlives any call to it
 
eh?
 
Xeo
look. You create the callback in main - that's the topmost local scope. Any call to your callback happens before the end of main.
 
I'm talking about this ^
if I pass it as-is it works still
I don't know why
 
Xeo
8:02 PM
oh
that's UB
I was talking about your first link
4 mins ago, by Rapptz
http://coliru.stacked-crooked.com/a/caa163630999e070
 
not sure how I'd fix this problem
 
Xeo
you can't
 
you can fix it the same as you can fix any lifetime issue, just make the thing you're referring to live for longer, typically through dynamically allocating it and keeping a smart pointer to it somewhere.
 
Xeo
that won't work
 
make it a global singleton
 
Xeo
8:06 PM
that will work - for fucked up values of "work"
 
yesss give in
 
@Xeo Don't see why not. It's typically not hard to keep a smart pointer to the callback around.
 
Xeo
well, I guess if you know exactly until when you need to keep it around
 
just leak it
;P
 
Use a GC
Generate thunks for callbacks
 
8:11 PM
certainly something I could do for Wide, I gotta link in LLVM anyway
 
damn]
Clang 3.5 is a bit of a step back.
now they have three-phase init (I shit you not)
 
o.o 3 phase init!?
is there a special kind of hell for programmers who do this
 
@Puppy ahahhahahah
 
phase init?
 
8:14 PM
no just "phase", innit
 
    llvm::IntrusiveRefCntPtr<clang::ExternalASTSource> wastsource(new WideASTSource(a));
    astcon.setExternalSource(wastsource);
    astcon.InitBuiltinTypes(*targetinfo);
    preproc.enableIncrementalProcessing(true);
    preproc.Initialize(*targetinfo); // why would you do this
    clang::InitializePreprocessor(preproc, *Options->PreprocessorOptions, Options->FrontendOptions);
    preproc.getBuiltinInfo().InitializeBuiltins(preproc.getIdentifierTable(), Options->LanguageOptions);
 
what kind of init are we talking about here?
 
this is after constructor arguments by the way.
 
laff
Great API
 
InitBuiltinTypes
enableIncrementalProcessing
consistency
 
8:15 PM
meh, I don't really care tremendously about that
although I did find one function that was changed from ParseBitcodeFile to parseBitcodeFile.
 
they still have a few of their own smart pointers and such in the codebase.
 
llvm::sMarter_Than_you_ptr
 
Xeo
3
Q: Arity of a generic lambda

ScarletAmaranthIt is possible to deduce arity of a non-generic lambda by accessing its operator(). template <typename F> struct fInfo : fInfo<decltype(&F::operator())> { }; template <typename F, typename Ret, typename... Args> struct fInfo<Ret(F::*)(Args...)const> { static const int arity = sizeof...(Args); }...

SERIOUSLY @ScarletAmaranth
I thought you were better than this D:
 
wtf is this
puppy has 3x the amount of butte points
that I have
I haven't done buttewhoring in ages :d
 
Ell
@Puppy I thought clang was supposed to be well written :/
I'm drinking a black russian
wowza it's strong
needs milk
 
@Ell Well, if you spend any time using it, you realize that it's not :P
 
@Xeo It's not a bad question.
 
also
 
Sorry, brain issues.
 
Ell
8:27 PM
@Puppy It's a shame really
 
@Ell hahahaha
you think something is well written
 
this just in: by default, their header search object does not copy search paths from the constructor arguments.
 
Ell
It would just be nice if something were to be well written
Like, It'd just make me smile
 
esp C++ compilers
Everything is built on loads of hacks and terrible design decisions
 
personally I think Wide is fairly well written, but everyone always thinks that about their own code.
 
8:28 PM
I don't
 
possibly, possibly...
http://www.phoronix.com/scan.php?page=article&item=msi_x99_fail&num=1
 
> INTEL CONFIDENTIAL
 
@sehe hahaha
actually lol'd
 
hmm
 
Ell
@Puppy I'm sure they don't think 3 phase initialisation is good :S
 
8:31 PM
@LightnessRacesinOrbit You're too easy :L
 
I looked through the header search class, and it turns out that they basically almost totally ignore their constructor arguments.
 
Xeo
@Rapptz I mean the fInfo shit
 
@PolymorphicPotato It's only confidential up until an embargo date.
 
They should've used that KGB pen, then.
 
@sehe i'm quite picky actually
 
8:33 PM
:D
 
Ell
I'm easy
 
awesome
so badass it sounds too good to be true
Just a little
@R.MartinhoFernandes Mmmm not too sure. That could be true, but I still think the same end of the audience for other languages will prove that it can be much worse...
 
oh
 
@Ell I'm going
 
and did I mention that there is both clang::SourceManager and clang::SrcMgr?
 
Ell
8:39 PM
@Puppy that's terrible
Why hasn't anyone refactored that shi :O
 
I can tell you in advance what they'd say
"Patches welcome"
 
Ahahha one is namespace and the other is a type
 
clang::SourceMagister
 
clang::SourceOpenSoFuckYou
 
@Xeo Not seeing how it's bad. He specifically mentioned lambdas.
 
Xeo
8:45 PM
Yes, it still sucks for singling out lambdas
 
I know "lambdas aren't special"
it worked just fine until generic lambdas.
 
lambdas are unspecial
 
Xeo
@Rapptz <meh intensifies>
 
you know it's true
 
Can lambdas be variadic?
 
8:46 PM
yeah
 
Xeo
Doesn't change the increadible meh-ness of it all
 
That it broke means it was a hack in the first place :v
 
pretty much.
ah crap I think I'm gonna throw up
oh well
 
not denying it's a "hack"
 
I ate way too much today.
 
Xeo
8:47 PM
@Puppy You should stop that
 
Ell
I'm going alos
 
Xeo
How much weight did you gain yet?
 
yeah I noticed
@Xeo Too much, about 12 kilos or so
 
Xeo
hey cool, I lost 12 kilos since then :D
 
fat transfer
 
8:49 PM
The laws of nerdodynamics
 
damn.
Clang declaring functions with the wrong signature again :(
 
y'know, I actually have a sneaky feeling they may have fixed a few things and it might be just the workarounds I employed making things worse.
 
@LightnessRacesinOrbit lol
 
9:07 PM
bah.
getResultType becomes getReturnType, and add new method called getCallResultType that returns a completely different type (whose implementation is return getResultType().member(); and that's it.)
 
> A song about how womens rights have improved as the use of horses for transport has declined.
@LightnessRacesinOrbit inb4 racist
 
huh, what the fuck.
apparently Clang just gave up generating code for a function.
 
9:22 PM
@PolymorphicPotato it's not racist but it definitely is not funny.
 
bool g(bool& arg) {
    try {
        f(arg);
        return false;
    } catch (int i) {
        return true;
    }
}
 
@Abyx it's not racist but it is hilariously funny.
 
produces a trap instruction as the only IR output.
I don't see what's UB or anything about this function.
 
It's a trap!
 
sbi
@R.MartinhoFernandes How were the cookies received?
 
9:24 PM
@Puppy It sure is a function I'd never write. :P
 
@PolymorphicPotato I hope you do realize how bad that joke is.
 
@PolymorphicPotato Well, it's useful for checking if my exceptions interoperate properly on a basic level, since f is defined in Wide.
 
@Puppy If I were a compiler, I'd complain that not all paths return a value.
 
@CaptainGiraffe No, you would not.
 
sbi
9:27 PM
@R.MartinhoFernandes I fail at decoding that answer.
(Also, my head only just stopped hurting a few hours ago and still feels a bit squishy.)
 
@CaptainGiraffe wut
 
@sbi I don't think they were missed. Maybe?
 
@PolymorphicPotato what if f throws something that's not an int?
 
@melak47 Then it propagates through.
 
@melak47 That was my brainfart as well =)
 
9:29 PM
It's not implicitly silenced.
 
hmph, meh
 
This isn't PHP.
 
sbi
@R.MartinhoFernandes How would I know? I mean, maybe they were terrible, and everybody became sick after tasting them? Such cookies usually aren't missed.
 
@R.MartinhoFernandes Did you forget the cookies? Surely you didn't forget the cookies. You bastard, you forgot the cookies....
 
hides head in shame
 
9:32 PM
@chris I was talking about the array name, not the array. — antonio 5 mins ago
 
sbi
World!
 
Actually, in Hello, it's just h
 
Yes; a very silly trivial one
 
@sbi Oh wow, what happened? ;P
 
9:36 PM
@Puppy I apologize, I would not. In my defence, I'm an idiot; comes from upbringing. My father was an idiot, my mother was an idiot too. Well actually my mother was a mudder but that's an entirely different episode.
 
sbi
@R.MartinhoFernandes Apparently, I stayed up late, drank alcohol, and was woken up early by a tired kid whining about being hungry. :)
 
zch
Is there a quine in every possible Turing complete programming language?
 
Surely not zch
 
@EdwardZuckerberg I always wondered what was the most vague thing ever
 
sbi
If I look at the last 15mins of chat transcript, I wonder if my connection is selectively flaky or if tis place has gone down the drai that far.
 
zch
9:41 PM
@HWalters proof? I think there is.
 
@EdwardZuckerberg Define "most natural language"
 
sbi
@milleniumbug primordial?
 
zch: Define the language using a symbol set not available for its output.
 
@EdwardZuckerberg Off-topic as too broad and primarily opinion based.
 
@EdwardZuckerberg COBOL ;P
 
9:43 PM
COBOMINATION
 
zch
@HWalters Okay, assuming output alphabet = code alphabet
 
@EdwardZuckerberg Look at wolfram alphas parsing if you really want to go into that abyss
 
Good job breaking it hero
 
zch: Got it, I think. Again, the answer I believe is no, but I have a very abstract counterexample in mind.
I'm not sure you can produce a quine in Conway's Game of life, which is Turing complete
 
INTERCAL has no quines because it can only output numbers as roman numerals.
3
 
zch
9:51 PM
@HWalters The answer is yes and I found quite quickly: madore.org/~david/computers/quine.html#sec_fp
 
(Though there are really cool things such as simulations of Conway's game of life using itself)
 
zch
GOL is not complete in the same sense.
 
@R.MartinhoFernandes INTERCAL on Interstates?
 
Hmmm... for that matter, it does have quines anyway, even in that sense... was imagining a complicated case where the quines are really more trivial
 
@zch "Any programming language which is Turing complete, and which is able to output any string (...) has a quine program (...)", emphasis mine.
That's a "no", not a "yes".
14 mins ago, by zch
Is there a quine in every possible Turing complete programming language?
Assuming this is the question to which you seek the answer.
 
9:54 PM
@LightnessRacesinOrbit that's excellent. Especially the retort
 
zch
Okay, it can be "no" literally, but it was what I meant.
 
@sehe There was another similar one with a picture of a kid wearing a flag as a cape (the flag had the LGBT colors on it)
 
guess I'm not going out
Doctor Who followed by the Fifth Element, then
off to Ibiza tomorrow ^_^
 
Why would you kill yourself the night before a trip to Ibiza
 
9:57 PM
@Borgleader That's a bastardized version with extra output capabilities.
The original INTERCAL only accepted as input numbers given as spelled out digits, and only produced as output numbers as roman numerals.
And it only did both in EBCDIC.
 
Night gents
(ok, and bastards)
 
zch
@R.MartinhoFernandes Wow, THAT is esoteric.
 
@R.MartinhoFernandes Hey, I was thinking about that benchmark thing you did with compiler and machine info. I thought it'd be interesting (although probably a lot of work) to compile a set of these spanning different compilers and more functions (i was thinking mostly the ones that have strict performance requirements). hell maybe across versions too, that could be neat
of course, it would need to be automated
 
Use Gentoo
 
10:04 PM
...
 
@CatPlusPlus I actually do
 
what the fuck is wrong with you people
 
butts
Debian or CentOS for the master/hypervisor
 
10:10 PM
@Mikhail Nooooooooooooo
@Mikhail No one-boxing
 
@Mikhail how did you onebox gifs?
are you using dark magic?
 
only the liberal arts
 
no, gifs onebox like any other image.
 
1 message moved to bin
 
we just don't want them here.
 
10:10 PM
@Puppy it was an attempt at a joke
but I guess it was lame anyway
 
I never understood why you guys don't like animated gifs
 
because they're dumb and pointless and endlessly looping
 
They're easily distracted buttes
 
They're intrusive. See rules.
 
But really?
 
10:12 PM
yes.
 
> Please make sure you're not posting any animated gifs so that they will be oneboxed, because this makes them flicker over everybody's monitor until we have managed to chat it off the screen.
 
I take it if the gif's are static, but your brain animates it, it's considered not allowed either
 
@LightnessRacesinOrbit What's wrong with you bub?
 
@Rapptz just not madly obsessed with "butts" is all
 
yay, upgraded to 3.5 without any real pain.
 
10:14 PM
Butts are supreme
Upgrading Virtualbox is kinda annoying
 
sbi
@Mikhail Oh, we like them. Just not here in the chat. (And if you want to know why, then you should follow the advice and read t rules. Cause they splain it.)
 
We get it thanks
1 message moved to bin
This is actually more annoying and headache inducing
 
:-(
 
So don't
 
At the end of the day I blame long compile times
 
sbi
10:17 PM
Oh, it's Mr. Escher, Jr. How ingenious.
I didn't know cats suffer from headaches.
 
I caught a cold
and when I catch colds it's really bad
I don't have any nasal spray
this is going to be a long and possibly sleepless night
fucking great
if I try to lay on my back I can barely breathe, I have to somehow stand on a chair or on foot to be able to somehow breathe
 
sbi
@AlexM. Do you have salt, water, and mean to heat the latter?
 
yes
@sbi I'm guessing it's the same as this? en.wikipedia.org/wiki/Saline_(medicine)
I used it once, helped for like half an hour
 
okay I don't get this... if there are predefined items in an environment in a video game, how is a user inventory defined in terms of the database?
 
zch
Most "nasal sprays" are salt water.
 
10:22 PM
 
sbi
@AlexM. Put lots of salt into a pot full of water. Heat the water until it starts boiling. Put your head above it and use a towel to "seal off" the rest of the world. Inhale through your nose.
 
this is the only thing that works 100% on me
and helps me breathe for more than 3 hours
 
Don't put the boiling water into your nose, that doesn't work
 
@sbi I'll try before going to sleep
 
Xeo
10:25 PM
2
A: how to increment a shared_ptr like you would a normal pointer

Jerry101Do not increment a shared_ptr. A shared_ptr is a reference-counted pointer to a memory node. It's purpose is to delete the node when the reference count drops to zero. It is not a replacement for a raw pointer.

 
lol
 
sbi
@CatPlusPlus How am I not surprised to learn you have found out about this.
 
Xeo
this needs moar upboats
 
sbi
@AlexM. Nothing works 100%. And have you looked at what this stuff is made off? There's a good chance it's 99.99% saline solution...
 
@AlexM. why would you stand on a chair...?
 
10:26 PM
@sbi I think this is the main ingredient
Xylometazoline (also known as xylomethazoline) is a drug which is used as a topical nasal decongestant. It is applied directly into the nose, either as a spray or as drops. Xylometazoline is marketed under many brand names (see below), with the typical adult solution strength being 0.1% w/v xylometazoline, and the dose for children under 12 being 0.05%. It should not be used for too long a period of time, or rebound effect may occur after discontinuation (see: Rhinitis medicamentosa). It is on the World Health Organization's List of Essential Medicines, a list of the most important medication needed...
@LightnessRacesinOrbit at my PC
 
sbi
@AlexM. Ah.
 
I can breathe while using the PC
 
sbi
If you have to stand on a chair to use your computer, are you Tom Thumb?
 
Maybe you mean "sit"
 
oh yeah, I meant sit lol
@sbi its main downside is the fact that if I use it too much I keep on getting the impression I need to use it more even after the cold wears off, up to the point where I can't breathe without it
I guess it causes addiction being a drug
the week it takes to drop it is very painful lol
 
zch
10:28 PM
@AlexM. "It should not be used for too long a period of time, or rebound effect may occur after discontinuation"
 
yeaaaah, but it's annoying to stop being able to breathe in the middle of the day
 
"annoying"
lol
 
if I stayed within the recommended limits I'd be spending at least 5 hours/day not being able to breathe
 
Er.
You should google "rebound effect".
 
I meant during the cold
olynth only helps me breathe properly for roughly 3 hours
 
zch
10:31 PM
"If you use more Olynth HA 1 mg/ml than you should
Contact your doctor, pharmacist or nearest hospita
l casualty department immediately, and take the
medicine or this leaflet with you. "
 
after that I have to use it again
@zch I have already read the papers that came with it you know
 
zch
Okay, I just like quoting things.
 
sbi
@AlexM. Yeah. And if you overdose, you become addicted. I know which one I'd prefer. (FWIW, when I grew up there was no nose decongestants. Surprisingly, we somehow survived.)
7 mins ago, by zch
Okay, I just like quoting things.
Sorry, I couldn't help it. I just had to quote this. ^
 
Xeo
@AlexM. I recommend chia oil
 
sbi
I recommend a spill chucker.
 
Xeo
10:42 PM
why?
Right, china oil
Is there a proper name for this in English?
dict.cc wouldn't tell me
 
Xeo
I meant "china oil"
this stuff
 
zch
This is just mint extract?
 
no idea where to find something like that. normal pharmacies? those other places with druids in them?
-
 
Don't explain the joke
It kills the joke
 
10:47 PM
I thought it was too !gettable
oh well
 
Xeo
@AlexM. I think we can get it in normal pharmacies.
 
I'll take a look
my only encounter with the druids was when my doctor thought I could try some plant based cure if I wanted to before trying something real
considering what I needed in the end was penicillin
the plant cure didn't actually do shit
 
of course it didn't
 
Q: Would you even recommending learning about pointers in general, today? A: I'd recommend learning about pointers, C programming, assembly programming and one or more good scripting languages (e.g. Python or Lua) ... long before I'd touch a monstrosity like C++11. — FoggyDay 8 mins ago
 

« first day (1421 days earlier)      last day (3542 days later) »