« first day (1417 days earlier)      last day (3528 days later) » 

8:05 PM
nextPlayer :: Player -> Player
nextPlayer Shitloadnam = Redosia
nextPlayer x = succ x
wait what
 
user3010322
> const int year
 
user3010322
It's just like when we got that bug report for Cinder taking const parameters by value.
 
user3010322
Made me flip my shit, really.
 
@ThePhD What's wrong with that?
 
user3010322
8:17 PM
Taking a value by const allows the programmer not to touch it inside the function, but leaving it in the signature makes no sense because it copies the int by default. Anything you do to year on the inside of the function won't affect what anyone passed in.
 
So basically some debugging pros and no cons?
 
user3010322
Essentially.
 
Whether a function is func(const T&) or func(T) is none of anybody concerns. The fact that the implementation reuses the object you passed in or makes a copy is implementation detail. Just like func(const int) or func(int) should make no difference to the caller.
 
er, no.
 
The reference makes a difference
 
8:22 PM
for one thing, func(const T&) and func(T) require totally different ABIs.
not to mention the potential for const_cast.
 
const for values is irrelevant in prototypes
 
user3010322
My only point is that const int is redundant from the external point of view.
 
or the observability of address similarity.
 
user3010322
Internally, it might prevent you from doing something dumb.
 
also there's stuff like parameter destruction order.
 
8:22 PM
lol I train cooking and dump all of the cooked food (essentially junk) so I can train faster in other players' inventory via trading
nobody seems to refuse it
they're like "ty"
 
@Puppy Yes, that should be the definition of "two different functions".
@Puppy What about it?
@Puppy How is that relevant for the caller?
 
@Jefffrey Because it's an observable behaviour.
 
Not really
 
the language guarantees in the first case that the address is the same.
in the second case, it doesn't.
so it's trivial for any user to observe if you made a copy.
 
That's not something that affects the caller, it affects the function body.
 
8:25 PM
yes, because no function ever returns an alias, right?
 
Which is a black box as far as the caller is concerned.
 
or modifies shared state to hold an alias?
 
@Puppy Definitely not func, if you have the ability to choose between func(const T&) and func(T).
 
or needs different behaviour for rvalue/lvalue (hello unique_ptr)?
@Jefffrey Er, it could just return const T*.
 
user3010322
<.>
 
8:26 PM
Which would be dumb as fuck.
No matter what the function signature is.
 
it's perfectly legal.
and std::min does exactly this, but returns a ref instead of a pointer.
 
It's legal, just like it's legal const_cast, but we all know it's dumb most of the time.
 
that's irrelevant.
besides, there are other cases like unique_ptr where it's clearly not, in fact, dumb.
there are a thousand ways you could observe the behavioural difference between f(const T&) and f(T).
 
That's definitely relevant, because we are not talking about what's legal, we are talking about what non-dumb people actually code.
 
@Xeo Finished Makina route. Starting Amane route...
 
Xeo
8:28 PM
@StackedCrooked Both endings?
 
Nah, only the good one.
 
I didn't realize that std::min was such a dumb function.
 
I don't wanna see the bad endings. I'm too sensitive lol
 
@Puppy Go on...
Without touching func_a or func_b prove me the two functions have different signatures.
 
Xeo
@StackedCrooked gogo
They provide some great insight into the characters :D
 
8:30 PM
Perhaps...
 
Just one of the "thousand ways".
 
oh wait
I didn't realize that we were inserting arbitrary never-before-specified preconditions.
 
such as?
Isn't int a type?
 
after all, it's impossible for the user to observe the difference when it can't compile because you left off the return type.
moron.
 
:lol:
That's haskell leftover really
 
8:32 PM
oh wait, but you could just specify it to not include one of the exact ways that I mentioned, which is when the function returns a reference to one of it's arguments, which is used in perfectly sane code like std::min.
or you could specify it to ignore another case, which would be non-copyable types.
or types whose copy constructors have observable side effects.
 
@Jefffrey Seriously what are you arguing for
 
Pride?
Glory?
 
@Xeo I wonder if Sachi's route is as weird as the person itself.
 
Xeo
It's great
like, really
 
const is irrelevant for values only, there is a difference between const T& and T in signature, the fuck is this discussion for
 
8:33 PM
right
My point was that there's not always a difference, for the caller.
 
Whether people need to use something that's legal or not is irrelevant to the implementation which must support the legal thing
So who cares whether it's dumb or not
Also there is a very visible difference because it's the caller that determines whether it needs to construct a new thing or not for the call
 
didn't consider that
 
@Jefffrey Really?
> Whether a function is func(const T&) or func(T) is none of anybody concerns.
pretty clearly does not limit the domain of T.
 
ok, I was wrong
 
great
let's move on now
 
8:37 PM
having moved on, what's new?
 
my life is terribly depressing
 
some actress stored nude pics in the ether and they got posted on /r/thefappening or something
 
that was new yesterday
 
that's old
 
then the girl got all pissed and...
oh
then there's nothing new worth mentioning
 
8:39 PM
2 mins ago, by Puppy
my life is terribly depressing
 
also, since we are here, I was wrong about stating that scotty sucks
i just didn't see the practical utility until now
 
Ell
@Puppy Mine too atm
 
@Puppy get a job -> move out -> things get better
 
I dunno
 
@Puppy go out more, meet new people, do stuff
go full yolo or something
 
8:41 PM
I thought that things would get better lots of times, but they never did.
guess I'm probably just broken.
 
things don't magically get better
 
Ell
^
 
you have to DO things for things to get better
 
Ell
you gotta be proactive
that's the key
 
@Ell I have no beer in my fridge, my car is being serviced, Anne is out playing darts and it's raining. You think you've got problems?
 
8:41 PM
it requires action on your part
 
@TonyTheLion not always
 
Ell
Write a CV, and distribute it everywhere
 
just be patient
 
I'll try and find my umbrella.
 
Ell
@MartinJames Ah that does suck
I might crack open a cider
 
user3010322
8:43 PM
@Borg So it looks like I need to support WebM in order to make videos work in my game.
 
user3010322
It's either that or rely on Bink video, and I don't want to rely on Bink videos.
 
School holidays is over, so traffic is insane in London
driving to work is "fun"
 
Ell
@Jefffrey being patient is different to not acting mind
 
@TonyTheLion Yes, but none of the things produce a meaningful impact.
 
@Puppy Maybe you're not doing them right? or not enough of it? Not sure what things you're referring to.
 
8:47 PM
well when I was younger I had a job
not really sure it was an improvement
 
well, jobs aren't always pleasant, but they give you more financial freedoms to then get better jobs, etc...
 
user3010322
Also disposable income.
 
hmph
 
my first job was support
 
that just sounds like more waiting
 
8:49 PM
it wasn't particularly fun
 
user3010322
Can't really argue against disposable income.
 
but I did it, so I could move up from there
build the experience, etc
 
Ell
any work experience is good experience
 
it won't just fall in your lap
 
Ell
It gives you another manager that can write you a good reference
 
8:50 PM
yea
 
I dunno
I'd have disposable income, but what would I really dispose it on?
I wouldn't have time to dispose it on games and if I disposed it on food I'd just get even fatter, again.
 
Ell
Not always about income
 
and then when you're done and you have a paid job as a software dev then it's like, what, what I do now but with way more stress and way less flexibility/interest?
 
its also about being a productive member of society
 
Ell
This ^
 
8:52 PM
and producing something that is worth something to someone
 
Ell
I don't know how you feel about the whole benefits thing
 
which gives you satisfaction
 
Ell
But I know what I think and lightness thinks and a lot of other people
 
I already produce something that's worth something to someone
 
you give something, you get something in return
@Puppy what?
 
8:53 PM
@Ell Don't care what other people think.
@TonyTheLion I'm producing Wide, and it's worth something to someone.
I don't like being on benefits, though.
 
so are you saying you don't really want to work, or you don't see the point?
 
it's too much dependence on other people.
 
yes, that's why you go get a job, produce something that someone will pay you for in return
now you're in control
 
Ell
And if you get a good job it's fulfilling and satisfying
although I'm in a terrible job which makes me depressed :P But it's my first so hey
 
yes well, in the beginning you can't really be too picky
 
8:56 PM
@Jefffrey did you succeed? :)
@AlexM. up for one?
 
get a job, build some experience, then you can move on to something better with some experience
 
I have yet to derive any fulfillment or satisfaction from any situation or circumstance except eating tasty food, being alone, and/or being in the flow.
 
@BartekBanachewicz too much into runescape right now
maybe tomorrow
 
@AlexM. oh damn. I've been coaching my flatmate and he just hit lvl 5 :D
 
>60% of C++ front page is downvoted
 
Ell
8:59 PM
It's been ages since I played RS2
I was lvl 70 :L
 
@Puppy Do you even want things to improve?
 
@Ell I'm playing oldschool
they brought back the 2007 version of RS
 
because the only thing you ever do is put up reasons why it can't be done
or why its apparently impossible
 
don't really know what form improvement would take.
 
it's kinda evil that they made it available to members only though
 
9:00 PM
keep going like that and you'll never get anywhere
 
I had to pay the normal monthly subscription for it
 
Ell
@Puppy happier self?
More money, more options, more control
 
don't really know what that would be like
 
well, more reason for you to go try it
 
9:03 PM
@LightnessRacesinOrbit why would satan want to distract anyone from making dinner
does satan not eat?
 
he's satan
 
user3010322
Blergh.
 
user3010322
Das painz.
 
user3010322
@AlexM. It's because satan is a fatphobic and doesn't want you getting large. He's just trying to exercise his skinny privilege.
 
@emory: Unneeded is not necessarily unwanted. You can put yourself in a position where you're not needed but you are the best choice and you are already doing the job, which is VERY much in your interests. Those who are utterly indispensable end up never being able to take a holiday, never getting a weekend off, working all night long and, if they have any pride at all, end up never being able to leave for a better job. — pdr Jan 24 '13 at 2:34
:(
sounds familiar
at least it suggests I'm "utterly indispensable". Yay!
@AlexM. Satan eats babies; they do not require culinary preparation.
> Post Made Community Wiki by question having more than 2 answers
fuck you The Workplace
I worked hard on that
also
-3
Q: closed source applications using C++ Standard Library

Cpp Loveri am a beginner on c++ and I want to know can I create closed source or commercial applications using C++ Standard Library.?

how the hell is this "unclear", @AndrewBarber?!?!
 
9:17 PM
who cares
shit question
 
wtb "this question is utter shit" close reason
 
@LightnessRacesinOrbit fuck the fuckers
 
It's a fine question. Needs some clean-up, but it's clear and to-the-point. Can I write closed-source applications using C++? Yes, you can — no licence restrictions prohibit that. Next.
dicks.
 
zch
Still offtopic.
 
@zch How is it off-topic?
This is the kind of elitist shite that gives closevoters a bad name
If you want a bad question, try this one on for size
 
zch
9:24 PM
I'm not sure, but I don't think licensing is on-topic on SO.
 
> Exposing Jennifer Lawrence: How Not to Be Next
but what if I want to be next :(
 
@zch Do you think SO is some sort of debugging helpdesk? Questions about programming languages, their standards and their constraints are fine. Though arguably Programmers may be a better fit.
 
also damn the new thief is already being sold for 10 eur on discounts
it must have brought in really little cash
 
nah
 
zch
21
Q: Are licensing questions on- or off-topic on SO?

Time Traveling BobbyI've seen quite a few questions about licensing on SO (and asked one myself, yes) and most of them seem to be closed as off-topic or at least frowned upon. So my question is, are they off-topic? The FAQ states: ... matters that are unique to the programming profession ... As it seems, soft...

 
9:31 PM
they just realized that you get way more money with steeper discounting.
 
@Puppy but the base price is low too
30 eur for a game released this february
 
welcome to the world post Steam Sale.
 
that doesn't explain why other AAAs don't follow the same pattern
 
most of them don't because they're one of two things
either they're dumb, or they're so big that nobody cares what price they're at (see, for example, Blizzard games)
also there's limits to how much of this stuff you can do on a console and licencing agreements with console vendors about what prices you can offer on PC and such.
 
@zch Most of those answers agree with me. Those that don't are talking about complex legal issues, not a clear cut question like "are C++ programs restricted to being open source"? You quite obviously don't need to be a lawyer to answer that one.
 
9:34 PM
but frankly, "AAA game publishers out of touch" might have been news ten years ago, but it's very well known now.
 
zch
@LightnessRacesinOrbit Highest voted question says no. Also note also that this question is from 2010. Now, programmers is much better fit. SO is not a debugging service, but it answers technical questions.
 
@zch How does the highest voted answer (presumably you meant "answer") say "no"? I don't see it.
 
zch
And really the answer is "what your license is", not "yes".
 
what
the question is fundamentally about C++ and the answer is most certainly a clear cut "no (they're not restricted (by being C++))"
anything you do on top of that is irrelevant
-1
Q: Doubly linked list insertion

user3896268I have created following code for inserting elements into doubly linked list at both the ends but the program is note running.Can anybody tell what the problem is

this question is great
 
@LightnessRacesinOrbit You are supposed to write both the non working and the working code
 
zch
9:40 PM
It is not restricted by being C++, but might be restricted in a way indicated in the question (if the library implementation was really GPL)
 
@zch He's asking about C++. That means the language and the standard library. Are they GPL? Yes/No? It's really clear.
Well, okay, I suppose an implementation could have additional restrictions, so I see what you mean with that now
 
zch
@LightnessRacesinOrbit This would not be helpful answer.
 
Still answerable (your last comment would do it); still on-topic.
 
0
Q: udeclared first use in this function in C

user2733436Hello.C Code #include <stdio.h> int main(void) { int n; int triagnularNumber = 0; for(n = 1; n<200; n = n+1) triagnularNumber = triagnularNumber + n; printf("%i\n", triangularNumber); return 0; } Error Message hello.c: In function ‘main’: hello.c:14:17: error: ‘...

#quality
 
jesus
why do all those answers have downvotes o.O
woah
 
zch
9:55 PM
Don't worry, the question will be deleted anyway.
 
just the beheading video
 
user3010322
@jpw: Answering this nonsense is irresponsible. I guess you're being punished for that evil act. — Lightness Races in Orbit 19 secs ago
 
@ThePhD ah ok then
 
user3010322
 
9:57 PM
TIL
@ThePhD ;)
I didn't say I was punishing him!
 
@LightnessRacesinOrbit I thought you read the news
 
Yes, but I don't see how it fits into this conversation
seemed like a random comment
I must be missing something
 
it was
 
Then I think we can agree that my confusion is understandable
 
Ell
10:12 PM
What project are you guys working on?
Okay
Let me try something else
In social situations, when should I correct people?
 
When it maximizes comedic value
 
zch
When you want them to hate you.
 
Ell
Yeah that's what I think atm
But
How about If you're in a conversation
And you don't want to be wrong
 
@milleniumbug nice!
 
Ell
So you don't correct them but you say what you think is right
Meh idk
 
10:34 PM
hmm
I think I figured out how to make it so that you can refer to Wide functions implicitly from C++ (i.e., don't need a declaration/whatever)
 
Ell
How on earth did you manage that?
I guess external
 
11:12 PM
> N: comparisons
100: 2479
...
This is clearly quadratic.
No?
It's closer to n log(n) than to n^2
 
shakes head in shame
 
@Rapptz Please explain
Maybe I understand
 
@Jefffrey test
 
> Wolfram|Alpha doesn't understand your query
 
posted on September 02, 2014 by Alex Voicu

One of the claims made upon initially announcing C++ AMP was that it would be a portable, extensible standard. Parsing the open specification makes it clear that the design is true to that goal, but we were short of an actual proof. In one fell swoop...(read more)

 
11:19 PM
works on my machine
 
@R.MartinhoFernandes That is pretty cool. :)
 
Got it.
 
@R.MartinhoFernandes You could do g++ -v using popen or something similar. The hardware information could be retrieved probably with SYSTEM_INFO on Windows. Unsure on Linux.
 
/proc/something?
 
11:27 PM
yeah that's how you'd get RAM
meminfo I think
and cpuinfo
 
What are we talking about?
 
click on the context of my message :v
 
He was asking how he could automate it.
 
I told a guy it was his birthday and gave him a spare cake I had in my inventory
he was like "thanks lol"
 
11:31 PM
I would throw away the cake.
It might be poisoned.
 
Oh, that max_element thingy.
 
Ell
@alex you're not playing runescape classic are you?
 
I am
well
not the old classic
the 2007 oldschool version
I think RSC doesn't exist anymore
this is what I'm playing
 
hmm
 
@Rapptz There's no guarantee g++ even exists on the machine running the benchmark.
I have to get it from the macros at compile-time.
 
11:38 PM
runner --cxx=g++?
 
Yeah nothing wrong with cloud storage everyone should use cloud storage
 
@Rapptz No, just bake it in at compile-time.
I want the info of the compiler that actually compiled the code.
 
well...
yeah I'm aware
 
Ell
@alex oh that's what I played
 
I suggested that because what if you have things like g++-4.8 etc?
 
11:43 PM
Still don't see how it's relevant.
 
nvm
 
The way to do it is with __GNUC__ and so on.
Anything else is the wrong information.
 
I'm talking about the executable name.
so you could actually run g++ -v
you can't detect that with macros
or well, I think you can't
 
Does anyone have a good dupe for this:
0
Q: unsigned integer overflow error in gcc(TDM-GCC)?

xiver77#include <iostream> #include <climits> #include <cinttypes> using namespace std; int main() { uint16_t i = 0; cout << USHRT_MAX << '\n' << i - 1 << '\n'; return 0; } Output 65535 -1 I expected two equal outputs, but it wasn't. Isn't this a non-standard-compliant behaviour? *Sys...

 
Ell
Hmm. It's kind of silly that we work on files.
I feel like an IDE should make the source files totally transparent, and we just open/close/delete/save symbols
 
11:47 PM
but it reminded me of it
I'll keep looking
 
user3010322
@Puppy James McNellis references your paper in his talk on Unicode (open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3572.html)
 
@Ell Files are great.
Well, hierarchical filesystems.
 
@Ell Smalltalk environments do that
 
@ThePhD He was drunk at the time.
 
Ell
I guess hierarchical filesystem fit nicely into programming languages as modules though. Like python and java
 
11:49 PM
It's really weird and doesn't integrate with any workflow you're familiar with
 
@R.MartinhoFernandes FWIW. I think the only thing that really matters in the g++ -v output is the version no? Relevant to benchmarking anyway.
 
Ell
I've never tried Smalltalk
 
user3010322
@Puppy youtube.com/… There.
 
user3010322
He takes a few potshots at it, though.
 
Ell
11:50 PM
I'll check them out in the morning
 
@Rapptz He would be using --version if that were the case.
 
Yeah.
 
user3010322
He takes potshots at DeadMG's encoded_string, specifically that it's only a bidirectional iterator.
 
user3010322
But he goes through the whole thing and explains that length/size calculations on a unicode string are useless.
 
Ell
Surely not for writing to storage somewhere
 
11:55 PM
@BartekBanachewicz I succeeded in installing it, but then I have no idea what to do. If I got to index.html everything is static. If I go to "/" of the local server then it prints some JSON. Wat do.
 
@Rapptz No, but there's no way to actually get the output of g++ -v without asking the user about it, so either I just get what little info __GNUC__ and friends give, or I just let the user provide arbitrary info.
 
Installing what
 
woops
 
@R.MartinhoFernandes Make a hook and tell people to generate the info during their build process
 

« first day (1417 days earlier)      last day (3528 days later) »