« first day (1645 days earlier)      last day (3317 days later) » 

6:00 AM
@Rapptz You still making that pack program
 
@Rapptz my god!
 
I kinda doubt this will get anywhere.
 
Woah... I created a new repo on github. When I opened I SmartGit on my machine, it auto-detected that I had a new repo and filled-in the clone address for me.
 
the functionality
 
@LucDanton ikr
 
6:00 AM
If i find a package named ice will I be able to install an icepack if I get a headache?
 
@Mysticial #technology
 
@Cinch I'd rather you ask on stackoverflow.
 
@fredoverflow Lol no it'd be a joke
Oh it's Ludum Dare I should make something
 
@Mysticial Eclipse fills in the clone address for a new project if it's in your clipboard (?).
 
MLM
The examples are in main. I get the same "'PointGeneric<float &, float &>'" conversion error in VS as well: coliru.stacked-crooked.com/a/d827907570d82207
 
6:02 AM
@fredoverflow Oh?
 
Oh btw I had an idea for a game crafting system created by programming
 
I definitely had it on my clipboard since I was going to paste it.
 
@Mysticial Is that what the place is called where Ctrl+C copies text to?
@Mysticial There you go then.
 
@MLM That’s not very minimal.
 
MLM
Sorry, will do
 
6:04 AM
What would you guys think about a game that allowed you to literally program in your own weapons using scripts and then "compile" them into actual items?
 
@LucDanton My point is that checking for version equality does not really complicate it. It just turns it into "Does a package of name X and version V exist?"
 
this one compiles though
@Rapptz my god! the complexity
 
:v
you're the one who suggested this fyi
 
I know.
 
I hereby proclaim I am participating Ludum Dare
 
6:08 AM
Hello boys
 
@khajvah Hi
Doing ludum dare?
 
maaaan
this week is fucked up
I have to work today
 
MLM
@LucDanton Barebones example that showcases rvalue template deduction factory "no viable conversion" problem: coliru.stacked-crooked.com/a/2cf9fd1951e7159e
 
Yeah, that’s why I mentioned adding a converting constructor.
There is no deduction issue at hand. There is a mismatch in types.
 
MLM
6:19 AM
But is there a nice way to catch those mismatched types into the factory without all of those other methods. I am up for the converting constructor if it allows the user/just-be-the-default-float without defining template parameters. They are just a unnecessary burden where floats can take care of almost all of the situations.
 
I'll call my game Lexical Warrior
 
@MLM I don’t understand what you are saying.
 
MLM
Since the rvalue factory method can't consume the float &. The other factory methods were/are necessary but cause ambiguous overload errors in the Arduino platform.
 
Thanks for launching me on this rabbit hole @LucDanton
SemVer is weird.
 
@Rapptz wait what
 
6:23 AM
I'm reading about SemVer!
 
MLM
I am up for converting constructor idea but I assume that means that template parameters will need to be explicitly set
 
I just learned that you can't prefix versions with v.
 
@MLM It can consume just fine. Or what do you mean by that?
 
So v1.0.0 is invalid SemVer.
 
@MLM I think you have some unstated assumptions that taint your understanding of the code.
@Rapptz now?
 
6:24 AM
Nah.
The dark corners.
 
The manifesto is pretty obvious.
I use it all the time.
 
Spec is nice though.
 
It seems v1.0.0 was valid in SemVer v1.0.0 (lol) but removed in v2.0.0 of SemVer.
Incidentally, SemVer spec itself uses the v prefix.
 
Now that’s just crazy.
 
6:28 AM
how helpful
Hm..
So..
what the fuck
Rust packages use vX.Y.Z for github tags too.
That's weird to me too.
 
I would write a strict parser to the spec. I’d sprinkle fuzziness elsewhere when/if I needed it.
 
GitHub recommends tags to be vX.Y.Z and then points to the SemVer spec.
I don't know what to believe anymore
 
I honestly prefer shuffling around just the X.Y.Z version in metadata. Quotes, separators, comparison stuff being part of the metadata format and not the version number of course.
@Rapptz The spec, obviously.
 
The spec itself uses v2.0.0 though :(
 
Yes and no. They do use that string. What of it?
E.g. the title of the page is "Semantic Versioning 2.0.0".
And the page is v2.0.0.html etc.
Take ISO dates. What if you run across 'Today is 2015-04-18.'? Obviously 'Today is ' and '.' are not in the spec.
 
6:34 AM
The issue with the v thing is that it's used by tags.
I mean I could discard the leading v.
but everyone uses vX.Y.Z for tags
 
Where a tag is expected, feed to a tag parser? That internally strips & forward to the semver parser?
What is your problem? There can be semvers and tags :(
@Rapptz If the spec for '2015-04-18' defers to a spec for reading decimal, will you panic because '2015-04-18' itself is not a decimal number?
 
It is a decimal number.
1993.
 
@Rapptz No!
Joke denied.
 
I liked it
 
Aug 11 '14 at 8:32, by Luc Danton
I blame the copula, as always.
 
6:39 AM
@LucDanton semver.org/spec/v1.0.0.html Scroll down to SemVerTag
I'll just parse tags and semver differently
but I still think this is pretty fucky
 
@Rapptz Exactly!
 
Rust uses npm SemVer.
Should I use npm SemVer too?
It seems more sane.
 
Do what you want.
 
:(
 
I don’t give a fuck.
 
6:43 AM
So mean.
 
@Rapptz I feel that pretending I care would be worse.
 
Depends.
 
Yeah, because we go back. Normally I stick with 'do what you want'.
 
MLM
@LucDanton Were you suggesting this to me? coliru.stacked-crooked.com/a/efc3841635791552 (because it seems good)
 
@MLM Sort of. I normally convert from foo<U> to foo<T>.
In the particular case of foobar though, I want to make sure you understand why there is a conversion to begin with.
 
6:48 AM
I could parse SemVer with regex at least
 
MLM
I don't know why :(
 
@MLM The type of the value you are attempting to return does not match the expected return type of the function.
 
MLM
`float x; Something(x);` = `SomethingGeneric<float>`
`SomethingGeneric<>` = `SomethingGeneric<float>`
whaaa? (this is what I am thinking/expecting at least)
 
@MLM Ah, and here we are. Something(x) does not have that type.
 
You indent code with 4 spaces.
 
6:51 AM
GREAT. I have to do web development :/
 
MLM
hmmmm, well the compiler did say it was SomethingGeneric<float &> but I am not sure how to make the leap
 
yesterday, by Luc Danton
I think it might lead you to things you didn’t expect.
This is what I was alluding to.
 
I didn't know how hard life was without .*? and friends.
Thanks ECMAScript Regex.
 
MLM
I am guessing this is the culprit turning it into a float &: static SomethingGeneric<Tx> Something(Tx&& x) - Which makes the deducing factory return a SomethingGeneric<float &>
 
@MLM Kinda. But something like make_tuple does accept a T&&... pack. So there’s another piece.
 
MLM
7:01 AM
Looking through this answer atm for suspects: stackoverflow.com/a/8527373/796832 - guessing it might be one of the collapsing rules
 
@MLM Yeah, Tx is deduced as float&, and the overall parameter is float& due to collapsing.
 
167
Q: Advantages of using forward

StevengIn perfect forwarding, std::forward is used to convert the named rvalue references t1 and t2 to unnamed rvalue references. What is the purpose of doing that? How would that affect the called function inner if we leave t1 & t2 as lvalues? template <typename T1, typename T2> void outer(T1&& t1, T2&&...

 
MLM
I am not sure how to interpret those rules. Does it mean for example the first one &T& -> T& or something. TR and R doing what together
 
I like this answer more.
It goes over the "Why".
 
@MLM WTF is &T&
 
MLM
7:07 AM
idk, reading answer Rapptz linked and is referenced from the one I linked
Not sure how to moosh TR and R together to get the result (reading answer that may shed light)
 
> [given] a type TR that is a reference to a type T, an attempt to create the type “lvalue reference to cv TR” creates the type “lvalue reference to T”, while an attempt to create the type “rvalue reference to cv TR” creates the type TR.
 
alright scrapping this regex thing
 
Given using TR = float&; a reference type to type float, TR& is float& and TR&& is float&.
 
MLM
@LucDanton ahhh that statement made it click. (Edit it in to their answers)
 
I like the answer as-is. Did you notice the comments in the table?
 
7:12 AM
wish I could go "fuck this, time to play vidya"
but I have no video games to play
 
@Rapptz might as well be rip
 
someone recommend video games
 
MLM
@Rapptz Insurgency
 
@Rapptz Path of Exile for Diablo-like goodness? (it’s the good kind of f2p)
 
MLM
7:14 AM
:)
 
I've been itching to play Insurgency actually.
but I don't like playing alone
unless I'm playing Push I guess
@LucDanton meh
 
@Rapptz Not a genre you’re looking for?
 
MLM
I can pop on after reading the "Advantages of using forward" answer if you want
 
Jan 31 at 9:13, by Luc Danton
I can recommend Path of Exile as a F2P that does microtransactions right.
deja vu
 
yeah
I wish I could recommend more stuff but these days I’m retreading the usual games, not trying new stuff.
 
7:19 AM
I played Portal 2 co-op for the first time 2 days ago.
It was actually really fun
 
MLM
Ye, Portal 2 was really fun. Played with my brother
 
Pillars of Eternity of course @Rapptz
(if you enjoyed Baldrus' gate and Icewind Dale and company)
 
@Rapptz For me it was the crowning jewel of Portal 2 :) I liked following-up on the story mind you, but gameplay-wise the single-player wasn’t as grippingly good as the co-op.
 
The co-op is actually really well designed.
It took me by surprise.
Actual collaboration needed.
 
From time to time a buddy and I figure what great co-op maps have been released since the last time and play that. As the community gets better so do the map makers, it’s terrific.
@Rapptz All of it?
 
7:21 AM
Nope.
 
MLM
I noticed the comments but they don't really make much sense still (your statement made it immensely more clear).
I can see in this case we fall into `T&& && -> T&&`. And since "reference is an encompassing term meaning both T& and T&&" we get the `SomethingGeneric<float &>`
 
aight no spoilers then
 
Stopped after finishing the hard light levels.
Parse that as "hard light" levels not hard "light levels"
 
MLM
Also fall into that case because std::forward = static_cast<T&&>(x);
 
for debugging template parameter deduction
I do std::cout << __PRETTY_FUNCTION__ << '\n'; in GCC/Clang.
assuming it's inside a function
 
7:24 AM
How vain are functions that you have to call them pretty before they tell you about themselves?
 
ikr
Wonder what Ludum Dare is this week
An Unconventional Weapon eh
 
that's weird
 
?
 
A bullet that shoots guns.
 
why the heck does MinGW-w64 require SJLJ on a DWARF-2 installation?
wtf?
 
7:30 AM
@LucDanton lol
 
we're spoiling SO users
they now claim answers in <2 minutes
they usually don't care if the highest voted answer is wrong
and they NEVER come back and change the accepted answer even if your answer got 200 votes and the accepted one after 2 minutes has -4
that's spoiling them, more or less like my grandma did with me and a ton of cookies
 
@MarcoA. They could go the community choice option
 
I wonder if Abrahams will stop RIPing
 
i.e. create a nice "badge"
 
@Cinch Users? Most of them ignore community option
 
7:34 AM
@Rapptz He will come back as the Swift prophet.
 
MLM
Why is the Copy constructor PointGeneric(const PointGeneric<Tx, Ty>& other) and Conversion Constructor PointGeneric(const PointGeneric<Tx&, Ty&>& other) considered the same? - The conversion constructor seems to handle things better though
 
lmao
I totally forgot it's Friday!
No work tomorrow.
Well it's Saturday 3 AM now.
 
@MLM I’m not sure I understand the question, but what have you considered what happens if Tx is float&?
 
MLM
Ahh, I guess because of the collapsing rule(T& & -> T&) they would be the same in that situation.
 
@Rapptz I was going to say :P you actually got me worried then
 
7:38 AM
@MLM A handy trick is to turn the constructor into a constructor template, because the copy/move constructors can never be constructor templates.
(and overload resolution will do the right thing)
 
every time I write css properties I feel like an alchemyst manipulating unknown elements
with unknown effects of course
 
tfw no vidya
 
MLM
@MarcoA. I can help
 
@MLM are you a wizard?
 
I wanna play Isaac but Challenge #19 is up my nuts.
 
7:41 AM
 
@MarcoA. what's wrong with his eyes?
 
I will conquer "The Family Man" challenge.
 
he has built-in stereoscophy
 
@MLM The basic gist of the trick is to have template<typename = void>. The rest can stay as-is.
 
MLM
7:49 AM
Gotchya
 
Although it would be a good time to review what your conversion constructor is supposed to convert from :)
@MLM Are you now convinced of the value of writing a T&& overload, and have you figured out how that handles reference types?
 
MLM
I believe I should be converting from `SomethingGeneric<Tx&>` to `SomethingGeneric<Tx>`
but I am instead doing `const SomethingGeneric<Tx&>&` to `SomethingGeneric<Tx>`
 
That’s okay, that will convert. Why do you care to handle Tx& specifically though?
 
MLM
So that the value returned by foobar can properly be converted from SomethingGeneric<float &> caused by collapsing, to SomethingGeneric<float>
 
Yeah that seems overkill :) Why not construct the right type from the get go?
 
MLM
Because not sure how to coerce Tx&& x=float& x to just float x
 
Mmmh. I could walk you through the type domino to find an answer but that seems backwards.
@MLM Something(0) has type SomethingGeneric<int>, not SomethingGeneric<int&>.
 
MLM
True but only because of the conversion contructor?
 
No. Have a look at the signature, what is being deduced.
 
Globals...
 
8:01 AM
Availability of conversions never changes the types.
 
What about data I need to pass between states? Do I use globals then? What's a good way to pass data between states?
i.e. what if I need to save data between states
What if the states use the Visitor model?
 
MLM
Ahh it does have that type. But I had issues getting it there (I recognize the difference now)
 
Global variables? Visitor model? Please promise me you will never bother me with this stuff via mail ;)
 
-1
Q: Learning Virtual Functions (Dervied/Base Classes)

DaqsI'm learning Virtual Functions in C++ especially in terms of Base/Derived classes. The website I'm referring at the moment is learncpp.com. My question is about this small snippet of code where in the class Animal, the constructor Animal() is being derived form m_strName (which is a variable in ...

uff.. not even reading an introductory C++ book
 
@MLM I should really cut the chase now, that seems like a lot of stuff to figure out in one day. A factory like make_tuple takes T&& (as I’ve mentioned), but it never returns a tuple of references. That is, make_tuple(i) will use the signature tuple<int> make_tuple(int&);. Perhaps you should use something like that for the time being?
 
MLM
8:05 AM
Sounds good but how do I get the T&& to T?
 
@MLM :) In this case it uses std::decay_t<T>.
 
MLM
Oh I see, use tuple instead of PointGeneric. maybe
 
@MLM No no, this was about how to write factories.
 
MLM
std::decay_t<Tx>(x) still returns float &?
 
It’s not a (normal) function, it’s a type function (aka metafunction sometimes). Like std::remove_reference[_t] etc.
Have you used those before?
 
MLM
8:08 AM
Nope, looking up
 
Oh, my bad.
@MLM In our case we would have SomethingGeneric<std::decay_t<T>> Something(T&& arg);.
And for T = float& that would give us SomethingGeneric<float> Something(float& arg);.
 
MLM
That is fancy and works well
 
In fact you can compare the std::make_tuple, std::tie and std::forward_as_tuple factories. They all make tuples.
 
MLM
Really cool. Been looking at make_tuple implementation and std::decay example
It covers so many situations
@LucDanton Thank you, Really appreciate the help! Did a lot of learning and went from a heap of deduction factory "constructors" to this awesome simple elegant solution with just the rvalue version.
night
 
8:27 AM
@CatPlusPlus yo bro, add me to the lounge github group plz
 
@LucDanton special_decay_t
 
lol
 
I like std::tuple's decay better
 
breaks assignment though
 
8:32 AM
@JohanLarsson pfft. only one round
> from a heap of deduction factory "constructors"
hmmm. I dunno what that was about :)
@StackedCrooked idgi
 
bluenette
@JohanLarsson cool
the horse seems to really put an effort in raising its back legs
 
@Cinch depends on which states. If they're both members of the United states, then you don't need to use globals. You can just ship via FedEx. Otherwise, charter a vessel and hope for the best.
@Cinch I see you're baselessly wanking patterns
 
@sehe cinch said data, I wonder whether you can transfer data through NSA
 
@sehe or wanklessly basing patterns?
 
Hiya
 
8:45 AM
@Cinch No. Do not ever use mutable global state unless it's literally the only possible choice.
 
@Puppy that would be never
 
which is pretty much never
 
9:02 AM
@chmod711telkitty Do you think rightfold's neverending stream of updates on his various programming language projects is a subtle form of hitting on us?
 
welp
let's try VS 2015 CTP 6, since I was forced to uninstall VS2013.
 
> VS 2015 CTP 6
CTP 6
What are they doing.
They're gonna have more releases than firefox and chrome combined!
 
actually putting out updated/fixed pre-releases to address issues people found
 
Heresy
 
it's a very WTF behaviour from Microsoft, I agree
but they seem to have suddenly noticed that 3-year cadence releases aren't the way to go
 
9:19 AM
also CLion
 
not really tried it
 
@fredoverflow why? one of your female students is sending your never ending stream of questions in regards to your lecture?
 
check if CMakeLists.txt available. use cmake instead. — douyw 3 hours ago
huh
@chmod711telkitty ISTR you bemoaning the fact that your "online enemies" got bored with you and moved on?
 
@sehe why do you assume that I only have 1 group of online enemies? how likely do you think it would happen that all of my online enemies have lost interest in me at once?
 
I didn't. I think this is mostly what you said.
 
9:29 AM
hm...
Which language that you know of has a really nice switch statement?
 
Turkish (düğme)
 
@sehe ...
I'm doing Ludum Dare (or trying to)
 
Reminds me of dogma
@Cinch Oh that
 
I would like to think that I still have online enemies here. But you know, just because you think someone is your cyber foe doesn't mean the other user thinks the same way about you...
 
@chmod711telkitty You mean how I secretly have the largest hard-on for Griwes AND Puppy?
 
9:34 AM
I know, I know, all those wasted emotions when the other party does not return the strong hostility you feel about him/her
 
@chmod711telkitty precisely
> What were they thinking?! They should have just done the ep safe thing and carpet bombed the neighborhood. Oh, YT
 
user1804599
Hi.
 
Lo.
 
user1804599
I like how D has real, which is like C++ double with -ffast-math, and float and double which are IEEE floating point.
 
user1804599
Often you don't give a shit about the floating point standards.
 
9:48 AM
@waffle either using phx::function<> or using phx::bind. I don't know why you'd do this because it's more tedious and makes the parser non-reentrant. Stateful functors are always tricky. Why don't you use the qi::locals<>? — sehe 29 secs ago
hehe. Slammed!
@rightfold good point
 
user1804599
I believe Java has something similar called strictfp.
 
Strict Functional Programming
They should repurpose that keyword for Java 9 or 10 :-)
 
user1804599
I need to find a nicer way to implement isSubtype.
 
user1804599
The switch is so ugly. :v
 
user1804599
10:01 AM
And bugged as well.
 
user1804599
bottom isn't a strict subtype of bottom.
 
10:19 AM
@chmod711telkitty What? No, that has never happened.
 
uhm, right now I have a doubt.. is it safe to static_cast<base_member_function>(derived_member_function) ?
 
Isn't static_cast always safe from a type-system-perspective?
 
user1804599
@fredoverflow No.
 
user1804599
struct B { virtual ~B() = default; };
struct D : B { };
struct E : B { };

B* x = new D;
static_cast<E*>(x); // succeeds
 
user1804599
dynamic_cast is safe in this regard.
 
IIRC static_cast never resorts to a reinterpret_cast
although a C-style cast does
(could be dangerous)
but rightfold is right fold (added strikeout to prevent recursion and stack overflow)
 
user1804599
10:41 AM
All languages should have standard code formatters.
 
11:11 AM
A woman charged with having sex with her dog ... why is it a crime when it's consensual between an adult woman and her adult dog?
 
because animals can't give consent
 
so a dog can not have sex with another dog?
 
@chmod711telkitty lol
That's disgusting
 
@chmod711telkitty AFAIK there are no consent laws imposed on animals
@chmod711telkitty but a human has to get consent from a partner before engaging in sexual activity - which the dog can't give
just FYI - I'm not advocating how it should be one way or another, just explaining what I think the current law is
 
-2
Q: Computer vision in classrooms

Saurabh Kumar KarnI want to use computer vision to measure attention span of kids in a stereotypical class room. I plan to do it by measuring posture of kids and track their heads to see if they are paying attention. I plan to record classroom videos and then analyze so it need not be realtime. How should I go abo...

 
11:22 AM
@wilx What an unsurprisingly disappointing site. Only pre-cooked data, almost no explanations, etc. Here's how 2012 looked, corrected for contract length though:
Mind you, that's average /hourly rates/. Source: vdb.czso.cz/vdbvo/en/…
 
user1804599
I need a per-directory lock.
 
Whatever a directory is in this context. Or a lock.
@chmod711telkitty what's on that page? It just crashed my browser. Something tells me that was for the best
 
user1804599
I suppose I can use creat to create a lock and unlink to remove it.
 
user1804599
If creat fails, the directory is already locked.
 
11:27 AM
@chmod711telkitty define 'okay'
 
@sehe smh.com.au
 
@chmod711telkitty haha. And some trojans.
 
@chmod711telkitty He was asking for it, clearly
 
from a newspaper site?
 
11:29 AM
Why the question marks?
Welcome to the land of X/Y problems. Sounds like you want builder pattern or flyweight. Both of which can be a lot simpler. Separate your concerns. Consider posting a question about what you want to achieve instead of how you are trying it right now. — sehe 1 hour ago
I find it interesting that nobody starred my graph. /cc @wilx
 
user1804599
O_EXCL, nice.
 
Of course it's easy to shoot at it, but, hey, that's what you get with such limited input data.
 
11:42 AM
@sehe Yes, the site is not easy to use.
@sehe It says earnings, not rates.
 

« first day (1645 days earlier)      last day (3317 days later) »