« first day (1286 days earlier)      last day (3666 days later) » 

1:00 PM
@ThePhD That's the same thing as removing it.
 
user3010322
@R.MartinhoFernandes There's an opt-out path. :c
 
user3010322
It's nicer, isn't it?
 
No.
There's always an opt-out path: don't upgrade.
 
If you break compilation, you break compilation for everything down the dependency graph
Immediate downstream is not the only users of your thing
Don't break compilation
 
user3010322
I guess I'll check support for [[deprecated]] and hope it works by the time compile-time reflection works and all it then.
 
1:02 PM
All compilers have deprecation attributes
Not C++11 ones necessarily but that's hardly new
 
why do you not just put the macro definition into its own header file and add a #warning if it should become deprecated?
 
Xeo
[[deprecated]] is in C++14, and MSVC has __declspec(deprecated) or something
 
so how do I head:tail in JS
 
Or 14 whatever
 
[[deprecated]] is just standardising existing practice.
 
1:02 PM
i are the back
 
GCC has __attribute__((deprecated))__
Clang too
 
@ThePhD Oh gawd. I hadn't even read the whole thing. I only read static_assert and thought "no" immediately.
BUT
Asking users to change stuff in your own headers?
 
user3010322
Buut...? ♥
 
user3010322
Oh
 
1:03 PM
I don't even.
 
user3010322
:c
 
user3010322
I don't know!
 
user3010322
I just thought....
 
user3010322
... ~Sigh~ I'll figure it out...
 
Clang is bad and doesn't support messages yet it seems
 
user3010322
Works for gcc too...
 
Xeo
@CatPlusPlus GCC doesn't even support attributes :P (at least in 4.8)
 
@ThePhD There's nothing to figure out. Write the macro, and if you add an alternative mechanism, deprecate the macro. Or don't. There's little reason to deprecate it.
 
user3010322
Guess I'll just need... ANOTEHR MACRO. @__@
 
user3010322
@R.MartinhoFernandes It's not in a pretty namespace and invades the global scope. :c
 
1:05 PM
I think you're overcomplicating things
 
@ThePhD That's not really "works" :v
 
user3010322
@CatPlusPlus Wha? But it deprecates it and gives the warning message. Isn't that hte goal?
 
@ThePhD It's in SOL_ scope.
@ThePhD Where is the message?
 
user3010322
OH
 
user3010322
MY BAD my mind filled in the message.
 
user3010322
1:06 PM
Well.
 
user3010322
I guess GCC 4.9 will do?
 
COLIRU SUCKS
 
Tell that to @StackedCrooked
 
WHY OH WHY DOES IT HIJACK BASIC BROWSER FUNCTIONALITY
 
user3010322
Wait, what version is Coliru on?
 
1:07 PM
Ctrl+T was bad enough.
But text selection?
Really?
 
Xeo
@R.MartinhoFernandes ?
 
user3010322
 
@Xeo Try selecting the warning message given here: coliru.stacked-crooked.com/a/c9245a5d3acd91c5
 
user3010322
Aww, it's only version 4.8.2
 
Xeo
@R.MartinhoFernandes Yeah, no problem
 
1:08 PM
@Xeo Like, just the stuff after "warning".
 
Xeo
Oh
 
user3010322
Hahaha.
 
user3010322
Dat backtrack.
 
Xeo
huh
 
user3010322
It's the clickable bit, I think.
 
1:10 PM
<pre class="f0" style="display: block; margin: 0px; padding: 0px; cursor: auto;" onmouseout="window.highlightError(this, false)" onmouseover="window.highlightError(this, true)" onclick="window.jumpToError(this)">
Not an <a>
Just a bunch of browser functionality hijacking :<
 
user3010322
I think he tried hyperlinks before
 
user3010322
and the thing freaked out and kept jumping to the top of the error list, making ti impossible to scroll down it
 
Xeo
Hm. takeWhile is a bit annoying to implement, since it's basically a falling edge detection.
 
Why is onmouseout/onmouseover doing anyway? I don't notice anything happening.
 
Xeo
1:14 PM
I think the warning used to get bold or something
 
user1804599
Beh, not using addEventListener
 
:lol: changes the cursor to a pointer
 
Xeo
That's cursor: auto, no?
 
user3010322
@CatPlusPlus Shiny, but fuck me if I understand that. :D
 
Xeo
since it's clickable
 
1:15 PM
window.highlightError = function(node, b) {
    if (node.textContent.search(/^main.cpp:\d+:\d+/) === -1) {
        return;
    }
    node.style.cursor = b ? 'pointer' : 'auto';
};
 
Xeo
lawl
okay
nvm then
Maybe we should get @Stacked in on this
 
user1804599
StackedCrooked doesn't know JavaScript.
 
@CatPlusPlus See, basic browser functionality.
Cursors.
@Xeo It's not clickable because it's a <pre>.
 
Why on earth does jQuery UI Tabs keep loading these tabs via AJAX when the anchor href is "#tabs-1"? I don't want that. Loads the fucking div with ID tabs-1 directly plzkthx
 
1:17 PM
how do I float: bottom-left; @rightfold :/
 
user1804599
@BartekBanachewicz don't do that.
 
Xeo
@R.MartinhoFernandes How would you implement takeWhile with the lambda-stream thing? Currently I have this, but it's fugly: coliru.stacked-crooked.com/a/a035fcf6b71cb1a4
@R.MartinhoFernandes hah
 
@rightfold what then. People suggest tables :/
 
user1804599
Make the parent position: relative; and the element in question position: absolute; left: 0; bottom: 0;.
 
user1804599
1:18 PM
Text doesn't wrap around, though.
 
exactly.
 
@Xeo It's "because it's not an <a>" all the way down.
 
user1804599
You probably need to rethink your web design.
 
I'll make the flow from left to right
 
with flexbox
 
user1804599
Woo flexbox. :3
 
user1804599
Flexbox-based grids are ganz geil.
 
wait, that's basically exactly what you have, really.
 
Xeo
1:19 PM
@DeadMG So, basically the same but with an extra bool instead of optional
 
yeah.
 
Xeo
isomorphic, really
 
I just noticed that.
 
@rightfold ghrahrkjahsfklas float:right not works
 
user1804599
Fuck float.
 
user1804599
1:20 PM
It is a horrible abomination.
 
jfldshfkljbhg
 
Xeo
dropWhile is much better
 
fkldjflask
 
hmm
 
Xeo
wait
 
user1804599
1:20 PM
@BartekBanachewicz eyafjallajökull
 
Xeo
that's wrong, nvm me
 
I have something different, but I'm not sure if I had break implemented then.
 
user3010322
Uh
 
user3010322
GCC defines _GNUC_ right?
 
Xeo
I don't want to drain the original stream on every call
 
user3010322
1:21 PM
Am I tripping balls again?
 
Xeo
so I basically have to do the same
ugh
 
ah, <base> is the culprit
 
you can probably simplify that, I think it was written before I implemented while.
 
Xeo
1:22 PM
@DeadMG Which is why you have a while in there.
 
I did just notice that.
 
Xeo
@R.MartinhoFernandes With the code I just had, I'd do a test on the original stream on every extraction of the dropWhile'd stream
 
how else could you know when to stop dropping.
 
Oh god YT player actually expands to 720p now
 
user3010322
Uh
 
user3010322
1:25 PM
This is bizarre.
 
user3010322
The.... __attribute__((deprecated)) doesn't work on GCC? o.0
 
JUST USE CAPS PLEASE
 
You have to actually use the thing
 
user3010322
I'M JUST TESTING
 
1:26 PM
@BartekBanachewicz oh sure, post it first why don't you!
 
Maybe it doesn't work because you used lowercase.
 
user3010322
u.u;
 
user3010322
@CatPlusPlus Oh, right. That did it. Awesome.
 
@thecoshman :)
 
Xeo
while(auto v = xs())
if (!pred(*v))
break;
Is the part I meant
 
1:27 PM
@ThePhD Any compiler that shows a warning about deprecation in that code is broken.
 
Xeo
I do the auto v = xs() on every extraction
 
oh that's bad.
 
Xeo
yeah
which is why I need to do the optional predicate again
 
yeah, dropwhile and takewhile are pretty much the same.
 
Xeo
The definition in Haskell is sleek
 
1:27 PM
dat CSS /cc @rightfold
 
user3010322
Now...
 
user3010322
I wonder if I can sneak in a custom message for that single attribute. Hrm.
 
user1804599
@BartekBanachewicz where are the cubes on the side?
 
user1804599
Do they align with text as side notes?
 
1:29 PM
@rightfold nah, I changed the idea a bit.
 
user1804599
If so use <aside> with float with negative margins.
 
I have float with negative margins
inputs and outputs reside in appropriate divs that float now
and inside are flex
 
user1804599
What is the content you are going to put in the boxes?
 
right now nothing
they are supposed to be plugs
that you can connect with mouse
 
1:30 PM
like, this above is an adder that takes two things (from the left) and returns the sum
 
user3010322
I wonder if you can artificially construct newlines from a maro...
 
@rightfold love you.
 
user1804599
It uses SVG.
 
user1804599
I had no luck using it for rendering arbitrary graphs, though.
 
@rightfold hmm so the blocks are SVG elements?
 
user1804599
1:33 PM
We use graphdracula.net at work but I don't think it supports dragging connections directly.
 
user1804599
@BartekBanachewicz IIRC they are just divs/whatever.
 
user1804599
But the lines between them are rendered using SVG.
 
@rightfold I'd like that
@rightfold sounds perfect for me
 
user1804599
You cannot draw lines without SVG or canvas or other obscure technology.
 
hmmm shit.
 
user1804599
1:34 PM
Well, with divs but that's ugly hack.
 
it says it requires jQ 1.3 or more
can I use 2.0?
 
user1804599
2.0 is 1.3 or more.
 
user1804599
So yes.
 
user1804599
Unless the page tells lies.
 
Xeo
@DeadMG Here's what I have now: coliru.stacked-crooked.com/a/ba2a8d1931366319
Assignment to the optional every time, but whatever
I could change it with an extra if, but I care more about minimalism instead of performance right now
(which might be noticable with all the by-value parameters)
 
1:38 PM
hmm
you create a new optional and reset p every extraction
that's not ideal.
 
Xeo
yeah, but as I said
 
user3010322
I need to learn
 
user1804599
I should have installed web-mode earlier.
 
user1804599
So much better.
 
every time to try to refactor my analyzer, it fails.
 
user3010322
1:40 PM
the syntax for object-oriented stuff in lua...
 
Xeo
@DeadMG coliru.stacked-crooked.com/a/0bb29d9edad034ff would be the better version
which is even closer to what you have
cept you also initialise v from the stream
 
Xeo
?
 
you failed to return the first false value.
in dropWhile.
 
Xeo
Oh, I was wondering about that return of yours.
 
1:46 PM
when pred(*v) is false, you don't return v, you return xs().
 
Xeo
Yeah, true.
 
so you dropped v as well.
 
Xeo
fix'd
 
@DeadMG Your code is so readable.
 
takewhile has the same bug I believe.
 
Xeo
1:48 PM
@DeadMG No, I since I only want to return true values
 
@LightnessRacesinOrbit Well, it's mostly Xeo's code, I just altered it a bit.
 
@DeadMG Did you make it more readable?
 
Xeo
so that should be correct
 
yeah I looked again and you do return v as soon as it's found to be true.
@LightnessRacesinOrbit Not especially.
but nor did I make it less readable.
frankly, it's a non-trivial subject domain so trivial source code isn't to be expected.
 
Xeo
Basically, if I changed the optional to bool and assigned true / false, the code would be exactly the same
 
user3010322
1:49 PM
@BartekBanachewicz Say I want to expose a C++ class in Lua, so that lua could technically "new" up this kind of object.
 
Xeo
Although. I actually destruct the predicate when I'm done.
I wonder if that yields any interesting effects
i.e. earlier resource release
 
well
 
user3010322
After reading through lua's sntax, it seems like there's... multiple ways to do this. It seems to recommend making functions (newMyClass( params )), but I'm not sure stuffing the current table with lots of new[ClassName] functions is particularly nice.
 
I think it's an unnecessary but slight improvement over my implementation.
I don't need to keep the source range or the predicate alive when done is true in TakeWhile.
 
Xeo
Destructing the original range would also be fun
 
1:52 PM
put them both in an optional- like optional<pair<srcrange, pred>>.
then you won't need another boolean
 
Xeo
well, I'm not too concerned about this
 
me neither
 
@DeadMG That's a totally retarded excuse for unclear, uncommented code. If anything, it is more important to avoid that mess when you're writing for a non-trivial subject domain.
 
it's not exactly in production.
 
1:55 PM
@DeadMG Who gives a fuck whether it's in production? That has literally no bearing on my ability to troll you over it.
Whoops
 
Xeo
@LightnessRacesinOrbit You still know that it's basically 99% my code, right?
 
right, never mind.
 
@Xeo Shush I'm not talking to you I am talking to the not-author about his not-code
 
who needs an actual discussion, we could just troll each other for the lols all day long.
 
@ThePhD don't
 
1:56 PM
@DeadMG Um, we do already... don't we?
 
Xeo
Oh, btw Puppy, my our code was broken. Forgot to dereference the predicate optional
 
@ThePhD ClassName:new()
 
Xeo lacks deference.
 
at least in the one I changed, dropWhile.
 
Xeo
1:57 PM
yeah
 
dropWhileHot
 
user1804599
dropDatabase
 
hm it's a bit unintuitive
ReferenceError: jsPlumb is not defined
might it be because I'm using traceur?
 
user1804599
I couldn't get jsPlumb to work either. XD
 
user1804599
Which is why I use Dracula now.
 
1:59 PM
DROP TABLES ON YOUR HEAD;
 
user1804599
DROP PIANO
 
I swear you people are just making these tools up now
 
user1804599
Why?
 
@LightnessRacesinOrbit no?
 
@rightfold You tell me
 

« first day (1286 days earlier)      last day (3666 days later) »