« first day (1214 days earlier)      last day (3956 days later) » 

12:00
that H2CO3 guy really nailed the nomination fase
he's a C zealot
come on.
@BartekBanachewicz No. It's too long.
@LightnessRacesinOrbit well a link to it. Or a picture
@BartekBanachewicz he is? I thought he was an iOS kind of guy
@BartekBanachewicz Yes. Be warned it was too long for chat.
12:01
oh yes he is
meta ... meat, spellings are so close :')
12:19
> error: control reaches end of non-void function [-Werror=return-type]
FFS GCC.
@BartekBanachewicz always
The whole body is if(...) return x; else return y;.
I'm tired. If I type wholly different things than I was going to..
@R.MartinhoFernandes now now "completely smart" -> not annoying :)
And there I go. My code is already too difficult for GCC to make sensible error messages.
@R.MartinhoFernandes the compiler is stupid
Just do if (...) return x; return y;
12:24
      // error: expected ‘)’ before numeric constant
      detail::array_geometry<3, dynamic, 2, 1> g(3, 4, 2 1);
                                                         ^
@R.MartinhoFernandes he doesn't actually play the pianoforte :) but nice reference I reckon
that's kinda correct, isn't it?
@R.MartinhoFernandes I forgot all about Obama's Nobel prize, I think
Now, about this infinite template recursion.
Yes, about that
@R.MartinhoFernandes Prove it
12:28
@spyder likewise, have 32Gb both at home and at work. Work I couldn't do without. Only my laptop has a meager 16Gb
template <int I>
int stride() const {
    if(Strides::template get<I>() == dynamic) {
        return stride<I-1>() * size<I>();
    } else {
        return Strides::template get<I>();
    }
}
@LightnessRacesinOrbit Happy?
LRIO is never happy. But he's satisfied with that. Like me
Because Stack Overflow wouldn't have a purpose
huh
my comment is exactly on char limit
:14633439 It's ArrayList.class.
Type Erasure
12:31
@R.MartinhoFernandes It's noticing the recursion and failing to spot the termination case, I guess
@LightnessRacesinOrbit Yeah.
I'm not sure that I blame it here, tbh. It's pretty esoteric.
@LightnessRacesinOrbit of course, the recursion has nothing to with return path analysis
is there a way to make an object that is being refcounted by shared_ptr "keep itself alive"
Certainly, calling it out on the if (x) { return y; } else { return z; } seems fruitless
12:32
@LightnessRacesinOrbit There is no termination case in the code presented.
Oh, wait it's a template. So there could be specializations. Still: every path returns a value
I am afraid I sound like a salesman again though
gah
I know it always terminates because Strides::template get<0>() is always 1, but the compiler doesn't.
@R.MartinhoFernandes Well it's incomplete
just when I stopped advertising Lua everywhere :/
12:32
@R.MartinhoFernandes Exactly. That's a termination case, but a [nigh-on] undetectable one
@user2894391 I don't think it's rhetorical. Haskell currently presents an interesting alternative to imperative programming. The fact that C++ is so widely used is because it's really great at managing your memory, but it's sometimes clunky when it gets to logic. Haskell is great in mathematical computations (physics), and has necessary low-level primitives to handle operation of large data. Modern approach to rendering is also taking a lot of stress from the Client/CPU side, so as long as you keep your data on GPU, you can render equally fast. It's more about getting devs to try/use it now. — Bartek Banachewicz 4 mins ago
I wonder whether constexpr helps with that? It oughtta
RFC ^ (is this a marketing presentation or a reasonable comment)
Strides has to be something.
12:33
@LightnessRacesinOrbit Yes, it would.
@BartekBanachewicz marketing
But I'll have to test this on MSVC.
Wait.
I'll have to test this on MSVC. WHAT HAVE I DONE.
@BartekBanachewicz Bit of both. Seems reasonable, except for the fact that you failed to note that Haskell is pointless
@LightnessRacesinOrbit Ahhhhh . It fails to detect the return after inlining!?!? That's too late. The proper function, even if specialized will always return. Even if void
This will never compile as is with MSVC.
12:34
@LightnessRacesinOrbit point-free
hrhrhr
@sehe Not if the recursion is infinite.
That's irrelevant. The function returns a value!
It just may take a long while
@sehe Not if you never reach a return statement, because you're stuck in recursive calls.
Is vim-vinegar strictly enhancements to netrw, or are there other ways to use it?
No, infinity is not "a long while". In fact I believe that scenario is UB, so the compiler could give you a "no matching call to butts()" diagnostic if it wanted to. Well, it already can I suppose...
12:35
@LucDanton Mmm? The most important bit is - takes you from the editor, right?
@sehe It doesn't. It's an infinite loop, with all returns outside it.
That's not netrw, and pretty sweet
@LightnessRacesinOrbit It's not UB.
@LightnessRacesinOrbit MSVC probably does
@sehe Is it? And does it? How do you ‘start’ vim-vinegar?
12:36
@R.MartinhoFernandes pretty sure it is, in C++11. while (true) {} is UB. Within the realm of defined behaviour, all threads can be assumed [by the implementation] to terminate eventually, or to perform I/O (or to do one or two other things)
@LucDanton I do by pressing - :)
Nevermind MSVC, tests fail on Linux.
@sehe Doesn’t do anything unless I’m in netrw, but that’s a stock binding isn’t it?
@LightnessRacesinOrbit It has infinite template recursion. That one is diagnosable. (So many things going wrong in it, huh? :P)
@LucDanton E_AMBIGUITY_EXCEEDED
12:38
85
Q: Optimizing away a "while(1);" in C++0x

Johannes Schaub - litbUpdated, see below! I have heard and read that C++0x allows an compiler to print "Hello" for the following snippet #include <iostream> int main() { while(1) ; std::cout << "Hello" << std::endl; } It apparently has something to do with threads and optimization capabilities. It looks ...

@LightnessRacesinOrbit There's no while(1) because it doesn't compile.
@LucDanton It's not a stock binding, and yes it's a default binding for vim-vinegar
You cannot determine it's an infinite loop without instantiating stride<I> for all Is.
hmmm
@R.MartinhoFernandes that was a related example
12:39
@R.MartinhoFernandes Or /smart/ static analysis.
@sehe It’s only mapped after launching netrw. Is that expected?
but yes you're right
4 mins ago, by Luc Danton
Is vim-vinegar strictly enhancements to netrw, or are there other ways to use it?
@LucDanton no
what do I do for functionality where the test for function X is depending on function Y operating correctly?
do I write a separate test for Y, even though if it fails, X's test will fail?
@sehe How can proper static analysis do it without instantiating all stride<I>?
What if stride<0> does something special?
Need to restart, something (else) wrong going on.
@R.MartinhoFernandes By statically analyzing the template definition
@sehe It has to analyse them all.
12:40
@LucDanton I saw the question. And I gave you my exact answer right away :)
There's no benefit to this conversation from s/instantiate/analyse/
@LightnessRacesinOrbit he's joking right?
@R.MartinhoFernandes Well, their all the same definition, really. Unless of course you're using more templates recursively (recursception)
@R.MartinhoFernandes Ok. You're most often right in these calls
12:42
@doug65536 he's not even "foreign"! He's lived all his life in the States! codes fuck off
anyone know any good software for making schemes?
@VitaliusKuchalskis yes
@DeadMG yes. it's unit testing.
I need it for object orientated programing
@VitaliusKuchalskis pyramid schemes?
@VitaliusKuchalskis wrong :)
@sehe It’s an entirely unhelpful answer. In no way is that the most important bit.
12:43
@LucDanton To me it is
@sehe But I’m not you.
I knew that too
What is your favourite feature of vim-vinegar that I still have to discover?
@DeadMG maybe your assumption is correct now. one of the great things about unit tests is freedom to refactor and rerun the tests - after a refactor that assumption you just made could be broken
It’s occurring to me that my binding are clobbering those of vim-vinegar. Not sure how to fix.
@sehe I have yet to start using it. What with not having bindings.
12:44
(I don't fully get it. You're coming here, asking "what's vinegar about" and then complaining I'm giving the wrong answer. You Tell Me. I guess?)
@sehe Point is that there is never a point where you have an infinite loop to analyse, because the template recursion bottoms out at integer underflow.
@sehe Then ask that.
I want to make a scheme of objects, children and grandchildren
]14633977 I did
@LucDanton I'd start with :verbose map -
And my question was not ‘what is vim-vinegar about’.
@sehe Bound to 8. My mapping.
12:46
Wow. You repeat things 8 times often :_)
the funny part is where I keep writing my own language wrong.
ITT Wide sucks.
The obvious thing is: you still gotta learn new languages. Doesn't matter where they originate
it's hard when you're writing in two languages with syntax that's similar enough but not quite the same.
@R.MartinhoFernandes has it ever not sucked?
12:48
I keep doing stuff like type t { t() : /* blah*/ }.
> I've just been offered a 'free OBLIGATION quotation' for a new boiler by a lovely indian lady, but when I tried to explain to her that I thought she meant a NO-OBLIGATION quotation, she had absolutely no idea what I was on about and hung up!!! pmsl
@DeadMG also, English...
eh
English isn't wrong if the other people you're speaking to understand what you're saying.
Ha!
Yet another bug in that small piece of code.
FFS.
12:54
At least this time I can blame it on a faulty spec.
@DeadMG what was that? come again?
@DeadMG By that logic you could speak to me in French and still be speaking English. It's nonsense. Whether you're speaking proper English is a distinct argument from whether you need to speak proper English.
inb4 living language
-1
A: Easy way to work with keyboard input?

georgeslUse int _kbhit( void ); : it's the ISO C++ equivalent of a non-blocking call to getch(). It's also included in conio.h Doc here : http://msdn.microsoft.com/en-US/en-en/library/58w7c94c.aspx (There is also a workaround for *nix systems : http://cboard.cprogramming.com/c-programming/63166-kbhit-l...

jesus
Also with vim-vinegar installed vim (but not gvim) scrolls large-ish (1k lines) buffer sluggishly. So it wasn’t something else entirely.
hmm
should I refuse to generate copy constructor/etc if the user defines a default constructor?
Xeo
Xeo
Using graphics.h — PIXEL 18 secs ago
hahaha
@DeadMG no?
I was also leaning towards no
Xeo
Xeo
12:59
why would you?

« first day (1214 days earlier)      last day (3956 days later) »