« first day (1630 days earlier)      last day (3312 days later) » 

11:00 AM
lol $5k for finding an issue that would have allowed people to erase all videos on youtube
 
I’m probably lying. In my current situation I get warnings for anything included from the sandbox. Mmmh interesting question actually…
 
but then again I should
 
should've been $50k
or more
 
system_includes?
naw..
maybe I should rename the latter "depends on libstuff.a" as "requires libstuff.a"
and keep dependencies for those pesky system headers
 
@Rapptz I’m more fine-grained than that. I have system, system-wide installs, user-wide installs, sandbox, and local headers. I’m actually not sure to what headers I’m listening.
 
11:01 AM
@Puppy But if you want to, say, just get a copy of the value, won't that require you to default-construct an object of type T, capture it in the lambda, and assign the lambda's argument to it?
 
I think that perhaps "assumption headers" would be a good name.
since you're basically assuming they're correct.
@AndyProwl No.
object.member([](T& t) { return t; });
 
Ah, right
 
and you might choose to add something like object.member() as a shorthand for it if you want
 
This is optics/lens territory btw :v
 
I actually like the requires thing
any opposition?
 
11:03 AM
I oppose your mother
 
@Rapptz Suppose I’m working on A and B, and B depends on A. Do you have a plan for handling that already?
i.e. A is not installed
 
I don't know
I have no API
 
@Rapptz Working on that ninjerator?
 
I have no design.
I am brainstorming.
 
11:04 AM
I guess I don’t oppose anything then.
 
I have no brain.
I'm designstorming.
 
I don't think installing something is within my scope
 
^typical Friday
 
Yeah
 
but if you mean
"I need A to be compiled and linked for B to compile and link" then yes
that's what I mean by requires
 
11:05 AM
@MomotapaLimpopo why the fuck would you post "The programming language PHP ­created and sustains Facebook’s move-fast, hacker-oriented corporate culture.
hacker-oriented corporate culture" and not link where it came from? dont do it again.
 
Think of plans for Monday, to later realise 'wtf was I thinking that day'.
@Rapptz What do I say for things that are installed?
 
@DonLarynx Learn 2 google m8
 
@LucDanton Not sure. What do you mean by installed?
 
@MomotapaLimpopo "Programming languages shape the way their users think—which helps explain how tech startups work and why they are able to reinvent themselves. " you dont say?
 
user1804599
Template constraints in D are good.
 
11:07 AM
@Rapptz words are actually failing me right now
 
did not read lol
 
Good. It's a loss of time.
 
E.g. all the libs in /usr/lib. Those are installed.
 
why do I need to care about those though
the compiler finds them automagically
 
user1804599
Concepts in D are just functions that take types and return Booleans.
 
11:09 AM
My compiler doesn’t find my installs in ~/local/ (unless it does, it depends which one). Or ~/.local/.
 
user1804599
int Foo(T)(T t) if (isAddable!(T) && isMultipliable!(T)) {
    return 3;
}
 
user1804599
Then you can do that.
 
@MomotapaLimpopo I'm sorry you had to go through that.
 
@райтфолд Pretty much like C++ is planning then
 
I don’t remember what it does for /usr/local/lib.
 
user1804599
11:09 AM
Where
 
which I think is quite inferior
 
user1804599
template isAddable(T) {
    // Works by attempting to add two instances of type T
    const isAddable = __traits(compiles, (T t) { return t + t; });
}
 
well I mean I was thinking of includes for regular -I and libraries for -l, dependencies for -isystem, etc.
 
8 mins ago, by Luc Danton
@Rapptz I’m more fine-grained than that. I have system, system-wide installs, user-wide installs, sandbox, and local headers. I’m actually not sure to what headers I’m listening.
 
frankly I think that the C# way of constraining generics is better than that
 
11:11 AM
Luc Dante's Header Inferno
 
@LucDanton ¯\_(ツ)_/¯
 
Will your meta-ninja need a meta-meta-ninja for config then?
 
meta ninja is just python lib
that's as meta as it'll get
 
Ninja is also just a python lib.
 
your mother is also just a python lib
 
11:12 AM
(well no, but you see where I’m going with this)
 
your mother's not a python lib?
 
still requesting help
one day
but not today
to the backburner it goes
 
what temperature do you set your backburner on?
160 or something hotter like 180-200?
 
200 C
gotta burn those things hard
 
ideas don't cook themselves
 
user3010322
11:19 AM
@Rapptz What goes where?
 
your mother goes in the oven
 
user1804599
Fascinating.
 
@Puppy do you have mommy issues?
 
@Rapptz What are jew talking about?
 
user1804599
 
11:26 AM
This answer was given (May 31 '14) before the question was asked (June 6 '14). How is that possible??? — Walter 25 mins ago
 
can i ask what this code Circle(double r = 1.0, int x = 0, int y = 0) : Point(x,y), radius(r) {} do
 
user3010322
It looks like a constructor.
 
user3010322
Maybe.
 
@Columbo question merge?
 
Point(x,y), radius(r) {} especially this
 
11:28 AM
@Puppy huh - they need extaordinay amounts of extension then. Did you mean "just the syntax"?
 
@KrysselTillada it's an initializer list thing
 
> the SQLite library consists of approximately 89.9 KSLOC of C code. (KSLOC means thousands of "Source Lines Of Code" or, in other words, lines of code excluding blank lines and comments.)
I really think they nailed the "abbreviations reduce verbosity" thing there
 
the same as initializing those members inside the { }
 
user1804599
@KrysselTillada Your C++ book explains this in one of the first chapters.
 
does it shares Point data members to Circle?
circle subclass?
 
11:30 AM
@KrysselTillada Yes. It's on Stack Overflow
 
I don't think you should place your email address in your profile like that
 
user1804599
Why?
 
I know I wouldn't
 
and the radius shares some values on Point class
 
87
Q: What is this weird colon-member (" : ") syntax in the constructor?

nilsRecently I've seen an example like the following: #include <iostream> class Foo { public: int bar; Foo(int num): bar(num) {}; }; int main(void) { std::cout << Foo(42).bar << std::endl; return 0; } What does this strange : bar(num) mean? It somehow seems to initialize the member varia...

 
user1804599
11:30 AM
That's people's own business.
 
^ dat
 
user1804599
Don't interfere.
 
oh thanks
 
@KrysselTillada if you have something that's really hard to search, you can usually add [c++-faq]
I didn't, on this occasion. I just used google (and inside information "stackoverflow.com base member initializer list syntax what" returns it as the first hit)
 
usually stackoverflow is the first hit for anything
IME
 
11:33 AM
ohh ok thanks
 
@sehe No, I meant the general idea that you define an interface and then you define that the argument must meet the interface. That's way smoother and more useful IYAM than trying to define the interface again in another crappy EDSL and then the compiler still doesn't actually know what was on the interface.
 
some teachers actually put effort in :\
 
@Puppy yeah. but it misses half of the static typing capabilities in C++
@thecoshman Yeah. They torrented a version of WinXP just so they could make this vid look crappy enough?
 
@KrysselTillada nice avatar btw
I thought I was the only one around who watched that silly show lol
 
11:44 AM
lol thank you
 
my T attr won't compile,
 
@Marc-AntoineJacob wtf?
not cool dude
 
sorry, I'M VERY DUMB
template <class T>; the ; lol
 
@thecoshman the vid is funny though
 
Xeo
1 message moved to bin
 
11:45 AM
@Marc-AntoineJacob we are not your Theattr
 
@sehe Only because they had to conflate run-time interfaces and compile-time ones. I think that it could be cleaned up in that regard.
 
@sehe indeed. very well done.
 
@Puppy Yeah. Swotta ment. So you basically meant "just the syntax" then, in my summary
 
not really
 
user3010322
y opengl dis hard. q_q
 
11:46 AM
what I mainly meant is that you have to strictly define the interface being accepted, no duck-typing crap.
so e.g. intellisense and stuff should know what's available.
 
@Puppy I think concepts does this. It's not even "an interface" really since (as you well know) they're still technical requirements only and those don't convey semantics per se
@Puppy Yeah that would be nice.
 
user1804599
I should implement CHECK blocks and check expressions asap.
 
user1804599
And comparison operators.
 
I have to write Obj-C again :(
 
user3010322
@AlexM. Prepare the goats.
 
11:52 AM
lol
 
why is this damn language so ALIEN
 
@sehe I don't think so, at least not the interface-as-predicate version. I figure it's not really trivial to reverse-engineer the arbitrary TC predicate into a useful interface.
and furthermore, having the interface in C# be separate means that it does have real semantics attached to it
 
@LightningRacisinObrit in what way is CFront a play on words? I don't think I get it, the only thing I can think of is "what makes C front", but it seems too far-fetched?
 
why are some things outside the braces in this class def wait nvm
there's an @end after all stuffs
 
@Puppy ikr - you were zooming in on "no ducktyping" and "intellisense should know". Well, guess what, intellisense doesn't know whether T::operator< defines a WTO. So, yes, named concepts as a language "entity" provides more
 
11:56 AM
how do you start from C and end up with this
it's a 180 turn
 
Hello all, I have a serious question about C++
 
@sehe Well I was actually intending that you had to meet the concept explicitly, so you would have to state that operator< is a SWO.
then ask it on Stack Overflow
 
no answer
 
or get a pretty anime avatar
then I'll help you
but only then
 
11:59 AM
@Marc-AntoineJacob <- braces himself
ah well, I am bracing myself
that didn't come out right
 
I presume python [1,2,3]+[4,5,6] just makes [1,2,3,4,5,6] as in the + just combines to two lists
 
@Marc-AntoineJacob That sounds like a terrible problem to have.
 
yes, horrible
 

« first day (1630 days earlier)      last day (3312 days later) »