« first day (961 days earlier)      last day (4001 days later) » 

Ell
11:01 PM
I'm gonna guess its incorrect
 
It's weird that the compiler drops operator though
 
Ell
But I've only quickly glanced
 
I mean is [return type] operator +( [args] ) even valid syntax?
 
Ell
I think so
Why not?
 
Because of the space between operator and +...
 
11:04 PM
Just try to remove it and you will notice that the error message is exactly the same.
 
Ell
C++ doesn't care about whitespace
Much
:P
 
I should delete that answer then...
-1
Q: Overload the 'space' operator in C++?

ChrisI have a little bit of experience in C++. I know how to overload the plus sign and what not, but would like to overload the space operator. For example: MyObject obj(); result = obj - foo; // This would be treated as a normal '-' operation. result = obj-foo; // This would invoke code which t...

lol
 
Nah, that guy's problem is that he did not forward declare anything.
 
c++ basics...
 
@Morwenn And that he's putting const in a weird place
 
11:07 PM
> const int
 
@AndyProwl Yeah, also.
 
is stackoverflow good to question about c++ based program architecture and best practices?
 
> best practices
Seems not constructive
But I'd try with programmers
 
Ell
^
 
sometimes people LOVE to -1
lol
 
11:15 PM
Why is that function a friend to begin with?
 
Last time I asked a question on Programmers.SE, I started a war.
 
@Jeffrey lol
 
@Rapptz I guess it has something to do with the order in which you can call the object in a operator+ operation. Like obj + 3 vs 3 + obj.
 
0
Q: Attempting to fold functions results in incorrect type

user2407038I have the following source code: {-# LANGUAGE FlexibleContexts, MultiParamTypeClasses, FunctionalDependencies #-} data Zero data One data Two data Three data Four data Five data Six class Sum a b c | a b -> c, a c -> b, c b -> a incSize :: (Sum x One z) => x -> z --written by m...

I'm a Haskell noob...but wtf?
 
If it was a class function than you would only be able to call obj + 3 IIRC
 
11:20 PM
yes but everything is public ~
 
Ell
Oh ywah
 
@R.MartinhoFernandes Very well, no more instances of template<.*>\s\+struct.*{$ and some others, too :p
@Code-Guru Notice the slew of extensions.
 
@LucDanton You mean the {-# ... #-}?
 
user142019
My throat hurtz.
 
@Xeo Any suggestion for the naming scheme regarding my quasi adaptors? I need one because e.g. variadic things like append can't detect whether they should evaluate eagerly or not. I.e. append(a, b) vs appended(b)(a). And speaking of, I'm not fond of the e.g. map/mapped naming convention.
 
user142019
11:28 PM
Fuck my throat.
 
Ell
Stop overclocking your throat
 
@Code-Guru LANGUAGE really. There are other kinds of pragmas.
 
Ell
You'll get let hertz
Stop over cocking your throat
 
@rightfold d'you smoke?
 
user142019
No.
 
user142019
11:29 PM
I don't smoke.
 
user142019
I travelled by bicycle and had to breath very quickly due to my bad fitness.
 
range::append vs ranges::append? Seems too arbitrary.
 
You mean that you are fat?
 
user142019
No.
 
user142019
I'm skinny.
 
11:32 PM
@rightfold I'm really sorry for you. A little bit of fat is needed in a man's life.
 
user142019
Fat is yum.
 
user142019
Man.
 
user142019
I ate McDonald's today.
 
Ell
Eat a tub of butter
 
user142019
Tasted like air.
 
Ell
11:33 PM
Did you enjoy?
Haha
 
I love . It seems easier to have answers accepted than upvotes.
 
user142019
I didn't dislike nor like it.
 
user142019
It had no taste at all.
 
Why don't you eat healthy things? Go to Burger King instead.
 
Ell
Burger king is gross
 
11:35 PM
^
 
Ell
McDonalds is nice :P
Its the sauce
That's all it is
 
range::manip? Mmmh.
 
McD is so mainstream...
 
Ell
I'll tell you what's nice. Kfc
 
We don't have that in Italy :.(
 
Ell
11:36 PM
Also I figured something weird out
 
Eat thaï food. It's good and healthy.
 
Ell
I accidentally left my moral compass inside my ex girlfriend
I only have morals if I talk to her a lot
 
user142019
@Ell Even that tastes like air.
 
user142019
Except for the ketchup. The ketchup is nice.
 
user142019
@Jeffrey Burger King is dry as fuck.
 
Ell
11:38 PM
Eat lots of good food then
 
user142019
I prefer something swallowable, thank you.
 
Ell
Go out to restaurants
Eat some English food
 
@rightfold BK's Barbecue sauce is juicy
 
user142019
McDonald's is a restaurant. :v
 
Ell
Have a Sunday roast!
I don't class fast food as restaurant
 
11:39 PM
@rightfold It's a fast-food restaurant
 
Ell
Its something different
 
user142019
@Ell I want bacon with scrambled eggs, beans and sausages.
 
@rightfold I read all about functors and applicative style the other day. I must say I'm impressed.
 
Ell
English full breakfast it is
 
user142019
@Code-Guru Awesome isn't it.
 
Ell
11:39 PM
Have hash browns too
 
yessirree
 
user142019
@Code-Guru Another fun thing is lenses.
 
That creamy Unicorn's juice
 
user142019
Sauce that doesn't exist?
 
@rightfold A while back I was trying to find a nice way to make a "cross product" function in Haskell. The best I could do at the time was a list comprehension. But now with applicative style, I can just do cross = liftA2 (,)!
 
11:40 PM
^^^
 
well...the applicative style is hidden in liftA2
 
@Ell "English food" is an oxymoron. If you want actual food in England, go for Indian.
 
Ell
Haha yeah
We do have some English food
Yorkshire puds are delicious
 
@DeadMG After finishing reading "Game Engine Architecture" and discussing with a colleague at my internship it seems your earlier assessment was correct. The intel design is flawed.
 
user142019
@Code-Guru what's the type of cross?
 
11:42 PM
@rightfold lenses? haven't even heard of those. Next thing I'm tackling is Monoids...then Monads. (Just reading Learn you a Haskell)
 
Ell
 
@JerryCoffin Not just indian food. Shawarma is excellent
 
Ell
Yes please
 
@Borgleader Yes. It's a primitive design from when dual-cores first came out and nobody had any real practical experience developing single applications to run on multiple threads. You can find presentations from Microsoft advising similar designs for the 360's early games.
 
@rightfold ermm...not sure about the inferred type declaration. For my purposes, I need something like cross :: [a] -> [b] -> [(a,b)]
 
user142019
11:43 PM
@Code-Guru Lenses are getters and setters on steroids with rainbows and lots of orgasms.
 
@Ell Oh my gawd :O....
 
@rightfold talking about orgasms...I went on a job a couple of weeks ago to replace these humungous backup batteries in some local cell phone routing centers...I almost spooged myself when I first walked into that building and saw all that computing and networking power.
 
@DeadMG Actually its not really that. I had underestimated inter object/system dependencies
 
that being the part about it that's primitive and problematic
 
Oh
I thought you meant it wouldnt scale
 
11:49 PM
it doesn't scale because of the dependencies.
the design's approach to dependencies is basically just "LOL double buffer"
but as you can imagine, that involves a whole lot of extra buffering, coping around, swapping of buffers, systems working on outdated data, etc
 
Alright, get your flames flaming.
php(
    $(ten = 10);
    $(twenty = 20);
    echo(s($ten)._($twenty));
)
^C++
 
user142019
@Code-Guru They let you do foo += 42. :3
 
@DeadMG Yeah... anyway I'm gonna take a closer look at the multithreaded parts of the book I just read it should be a better lead. It was written by a guy from Naughty Dog afterall
 
beware of appeal to authority fallacy
 
That book was recommended to me by many people
 
11:51 PM
replace "guy from Naughty Dog" with "many people"
 
I think both arguments are complementary.
 
anyway, I'm just saying beware of sucking up what someone else said just because that someone impresses you
 
I'm more at risk of sucking than sucking up ;)
 
Ell
Wat
 
user142019
Kilowatt
 
user1182183
11:56 PM
like my new avatar? :P
 
Its so so small
 
Oh, and that "PHP" replaces the main function and prints 1020 (the dot is meant to concatenate).
 
@Borgleader Fair enough -- shawarma is pretty good too.
 
I should take that to an interview where I need PHP skills.
 

« first day (961 days earlier)      last day (4001 days later) »