« first day (1189 days earlier)      last day (3985 days later) » 

15:00
@SamDeHaan oh :( maybe they were right?
> Maaaaan what do I look like your garbage man?! I THREW IT ON THE GROUND!
@LightnessRacesinOrbit ffs
@LightnessRacesinOrbit Instead, can he just be, like, a clown or something?
My dad's not a phone, btw.
15:01
@R.MartinhoFernandes o_0 who said he was?
@R.MartinhoFernandes sigh... listening to music man
As I'm not doing any work with C++ I can't tell you if it will work. It fixed visual studio for C# though. The symptoms where, not able to build anything and missing libraries... VS2012 crashing while opening a project... Still wonder why people use IDEs
@thecoshman You love it really ;) i.imgur.com/PCWyM.gif
@thecoshman He's no worse than me, so there's that :)
15:07
Good website or book for my friend to start learning modern C? (He won´t go C++, believe me i´ve tried.)
There's no "modern C", is there?
I mean, what changed, really?
You have threads now, and gets is gone.
Nope, it's still shit
@DavidKron C still sucks in modern times
404
Q: The Definitive C Book Guide and List

lillqTo follow the example of The Definitive C++ Book Guide and List for C Books here is a wiki post for organization. A tag search for "C" and "Books" returns no complete book list results as of writing this question. That search is here. This post is to providing QUALITY books and an approximate ...

There must be some official revisions to the standard right? C 11 :p ?
15:09
@R.MartinhoFernandes like a baus
@TonyTheLion interesting, Amazon is using 3d CSS transforms now to show back of the book
C11 still shit
> Use Autotools, C's de facto cross-platform package manager
shit is also still shit
15:10
also "Build high-level object-based libraries and programs"
So much wrong in that one sentence
@DavidKron Yes. And there's nothing that makes code much different. There's threads now, and gets is gone. That's it.
C OOP has been a thing forever, though
SAM
SAM
@CatPlusPlus Why?
COOP
for chickens
15:11
@SAM Because it's still C
Inexpressive, low-level, almost impossible to get right piece of garbage it has always been
SAM
SAM
ha ha ha...
It highlights my name, but doesn't ping me. Chat, why are you confused, SAM is not me.
Is C99 ubiquitous already?
15:13
@SamDeHaan because username.ToLower();
SAM
SAM
hmm it doesn't ping me either...
I theorise that the reason new C versions don't get a lot of adoption is that the only people that want to use C are the ones that want to remain attached to the past for some reason, and that kind of conflicts with modernising.
You know your language is a great tool when every second line in your program must be error-checking, or you lose any semblance of correctness
@SAM You are pingless: deal with it.
fuck.
LLVM's verifier is astoundingly primitive in some respects.
SAM
SAM
15:14
whut?
@R.MartinhoFernandes C11 is "modern C".
and apparently their optimizer can't handle branches.
@R.MartinhoFernandes Old frameworks and libraries not being updated?
@R.MartinhoFernandes I'd support that notion
@SamDeHaan Ain't that what I said? (Notice how you used the adjective "old" there)
15:15
BACK IN MY DAY WE HAD TO WRITE ASSEMBLY ON WOODEN PUNCHCARDS AND EVERYONE WAS HAPPY
SAM
SAM
@Jefffrey hmmm
YOU DONT NEED ALL THIS NEW MODERN STUFF
@R.MartinhoFernandes Yeah. I had more arguments for why my statement was different, and then I disagreed with myself internally.
@CatPlusPlus s/NEW MODERN/new/
SAM
SAM
@CatPlusPlus Maaan, then throw it on the ground :P
@CatPlusPlus lol
@LightnessRacesinOrbit the point is "modern C" still counts as "fucking ancient"
"Modern C" is like "Modern FORTRAN"
so
time to waste 10,000,000,000 years rebuilding LLVM
and Clang.
@TheForestAndtheTrees Fortran went through more changes in the past 20 years than C
15:21
void * new (const void * _class, ...)
{ const struct Class * class = _class;
void * p = calloc(1, class —> size);
assert(p);
* (const struct Class **) p = class;
if (class —> ctor)
{ va_list ap;
va_start(ap, _class);
p = class —> ctor(p, & ap);
va_end(ap);
}
return p;
}
look object oriented C
@LightnessRacesinOrbit ... I do :'(
much modern
so wow
so pointer
@TonyTheLion smooth
You don't need language support for OOP, this is literally the least of C problems
15:21
C is literally Hitler
@TonyTheLion oh God(win's law).
SAM
SAM
Hitler... how?
45 ratings and all 5 star?
15:24
> The event log file is full.
@LoïcFaure-Lacroix yes
@BartekBanachewicz How I English
SAM
SAM
Anybody has completed that book?
How can a file be full?
The same way a bucket can be full
Well on fat32 a 4gb limit would be acceptable
15:25
Or a dump truck full of internet can be full
@CatPlusPlus you need a better bucket storing system
hmm
I suddenly get a really bad feeling that my loops contain yet another bug.
probably needs more goto.
why is there no /r/dadjokes (ah there probably is)
user1804599
ALMOST WEEKEND
15:29
@thecoshman There is.
@SAM the author?
SAM
SAM
@BartekBanachewicz the book on vim that you posted the link to...
@rightfold enjoy the time...
@SAM well I didn't read it
@rightfold fuck yeah almost
@R.MartinhoFernandes what do you know, I thought there should be one, and there is. This must be what it feels like to be a god!
I'm just wanting to know if there's a good way to call c++ functions from JavaScript? I appreciate any insight. — apohl 4 mins ago
go
15:33
@LightnessRacesinOrbit ergh... purformance?
@thecoshman what?
@LightnessRacesinOrbit aye, c'n
wait what
Hmm. I wonder why this instance of variable templates does not work :(
I wanted to answer not cv
@BartekBanachewicz reason for wanting C++
@BartekBanachewicz you can't do either
comment
15:35
@thecoshman Man. Can't wait until I fulfill the necessary conditions to make dad jokes ALL the time.
@SamDeHaan just keep being a fucker
@thecoshman I give it a 6/10.
@LightnessRacesinOrbit I can vote to reopen vOv
fuck her
@BartekBanachewicz you shouldn't
15:36
This question can be answered
@Jefffrey Can't declare templates in function scope
So can a one-liner "Is there a website that specialises in programming questions?"
Doesn't mean it should be
well the OP should give more details
actually I'm probably being a little harsh; it's not that bad
SAM
SAM
comments are still allowed...
15:37
@BartekBanachewicz that's why it's closed as unclear
@SAM he knows. that's how he posted one...!
SAM
SAM
@LightnessRacesinOrbit hmmm... easy..
hmmm indeed, huh?
Heh Scout costs 15$/month but can't send me SMS, surely gonna buy
1
A: Header files are missing from installed location

user2090373After more search I found this discussion. It seems it is an old strange problem and there are 2 solutions for this: 1) install a fresh copy of Windows and afresh copy of Visual Studio 2) copy VC folder from a friend who has a good version of Vsiaul Studio installed

both solutions are amazing
15:39
@AndyProwl That's a big limitation.. I think
Maybe it makes sense, though.
SAM
SAM
amazing.. amazingly hilarious...!
user1804599
I want cookies.
@CatPlusPlus what the hell does it do for that a month?
Monitoring
SAM
SAM
cookies = get_cookies();
15:41
@thecoshman does your laundry
@Jefffrey It is. I'm not sure what is the reason for it, but it has been discussed.
@BartekBanachewicz still haven't fixed your problem?
@AndyProwl I think you linked to your mailbox.
@Cat, what are you trying to get to strip for you?
15:43
@R.MartinhoFernandes LOL, fail. I'll fix it, thanks
user1804599
@CatPlusPlus class NilClass; def strip; end; end fixed!
@AndyProwl Yeah, it goes all crazy with auto.
Yeah I don't know what's worth 15$/mo here
@Jefffrey Btw this is the link do the discussion
I can run some shit on 5$/mo droplet and do SMS via AWS
15:44
@LoïcFaure-Lacroix nope
hence my question, what does it for for that a month ¬_¬
@AndyProwl yeah, this link has brought me to my gmail...
SAM
SAM
he he
Also, I need to figure out some nice way to do backups
also apparently I don't have access to my personal samba share
15:45
@CatPlusPlus tar and rsync
@BartekBanachewicz it's personal
Also, I want a better syntax for templates. Things can get pretty ridiculous some times...
Something like void func<class T, std::size_t N>(T, N)
@Cat did you reply to me about the TC server?
It's back up, but I wonder if it was you doing maintenance or... ?
Entire box went down for some reason
and class something<class T> {...};
Well, was unresponsive
15:48
@Jefffrey I would like void foo(auto x)
@AndyProwl in addition or as a replacement?
In addition
@Jefffrey That saves exactly one keyword.
It's there for lambdas so why not for regular functions
And has the disadvantage of not being usable for partial specialisations.
15:50
@R.MartinhoFernandes why not
@R.MartinhoFernandes which is a lot
lol
Well, did you mention something about "ridiculous".
@Jefffrey Not really
Templates have so much syntactic noise. On the other hand template code must be treated a bit differently from regular code, so there is a point in having them noisy - you'll know immediately what you're working with.
@Jefffrey auto func(T % t, std::size_t n)
@Jefffrey Try something like template <typename T> struct foo<vector<T>, list<T>>
15:51
@CatPlusPlus the keyword there is: keyword
Granted, you can't partially specialise functions.
@Jefffrey ?
keywords are important guise
Stop doing drugs
@AndyProwl The template keyword is not a huge contributor to that noise.
save the keyword, save the world
well, to be serious, introducing keywords is a big deal
So I disabled the Scout agent and the monitor didn't even notice
:lol:
@R.MartinhoFernandes Yeah, I'm not talking about that noise. I'm more annoyed by the typename stuff. And in certain situations template could just go away together with typename. Having auto in the argument list is enough to identify it as a template.
Btw, will it be possible to put template code in source files with modules? (for whatever "module" currently means)
I doubt that
Say for library code (inb4 explicit instantiation)
15:55
I'd think 10 minutes with no checkin should be considered an alert
Template code in source files won't be a thing for at least 10 years, I foresee
But 1-minute delay! 10$/mo plan only does 3-minute delay
What a piece of crap
@Jefffrey how are you supposed to compile a template if you don't know the type?
What do you want to send SMS for?
When services die
15:57
@BartekBanachewicz I want moar compiler magic!
@BartekBanachewicz the reason why I don't know is the same reason why I said it won't be a thing for at least 10 years
then some genius will solve the problem reinventing the compilation model
and all creatures in the world will live happy ever after
@thecoshman A friend used to have a T-shirt that said something like: "Photons have mass? I didn't even know they were Catholic."
@AndyProwl might as well be pony magic
@JerryCoffin lol
@BartekBanachewicz As long as it allows me to put template code in a source file, I'm fine with pony magic
2
15:58
> NO FURTHER ACTION IS REQUIRED
> ...
> PRESS OK TO EXIT
@BartekBanachewicz OK :(
SAM
SAM
OK guys... time to exit..
My evaluation of Scout lasted 28 minutes
First impressions are p important I guess
I think I'm just done with SO.
@Jefffrey why
Because I'm tired of bad questions, arrogant people and better laywers than me.
Because the whole reputation system is simply broken.
Because I've already wasted too much time on it.
@EtiennedeMartel hmm... is that a guy I think America should attempt to kick the ass of... probably shouldn't....
I gotta learn Chef and also figure out that hypervisor shit, so I can run Funtoo on the server and not this Ubuntu crap
OOOOH
finally
how did i miss that
16:16
@BartekBanachewicz Oh, btw, I'm not done with you guys ;)
@Jefffrey That's always true
> If you placed your pre-order between February and mid-March, your MYO is in batch one, which will begin shipping later this year
hmm
also I can upgrade to dev kit for free
@CatPlusPlus debian?
Debian what
16:18
... use it?
I guess I am now a Myo developer
It's not much better than Ubuntu
I'd be in Batch 1 anyway
distrowatch.com
distrowatch what
16:19
vOv find one you are going to whinge about all the time
now fucking send one to me fuckers
I know what I'd like to run
I've been waiting for 9 months already
people give birth in this time you know
The problem is getting this shit to run on a remote system when there's no images to easily install from
I know what you mean.. I don't see why that guy is arguing. Compile time is the only cost. You're not going to factor in coding it and documenting as a cost are you? He's not talking about cost as in "money's worth". He's talking about run-time & compile-time performance cost/overhead and for someone with 98k+ rep, you're giving him a hard time for no reason. — CantChooseUsernames 2 mins ago
My faith has been partially restored.
16:29
Cost != performance hit
Yes. I know that answer is not exactly the best answer I could give.
IME variadic templates produce as scrutable error messages as other templates. They also tend to result in less complex code than the alternatives. — R. Martinho Fernandes 3 mins ago
Robot has spoken.
2
DeadMG too.
Thank you, guys.
Of course, if you ask me "should I abuse variadic templates for a situation where something entirely different is needed?" I will reply "yes". — R. Martinho Fernandes 1 min ago
Hmm. "yes"? I was expecting a "no" there. /cc @R.MartinhoFernandes
Yeah, fixed.
I wanted to formulate the question in the same form as the original and forgot the most important word.
16:39
lol
@Jefffrey Smooth.
Just a thought: invoking undefined behaviour could cause the past to be altered so that you never wrote the code in the first place...
i'm pretty positive that's a paradox
unless you subscribe to the whole split timeline thing
16:43
Invoking undefined behaviour could change the standard in a way that such behaviour becomes defined as a no-op.
6
@R.MartinhoFernandes Brilliant!
@sftrabbit You mean "brillant".
it could also change the Standard so that the behaviour becomes well-defined.
cue threads
I was shooting for the simplest collapsing loop I could think of.
To the wank mobile!
16:51
@R.MartinhoFernandes: IME they encourage me to write a generic solution where, without them, I'd probably have made do with a hacky but simpler point solution. The result is undoubtedly better in the long run, but with more work up front. — Mike Seymour 15 mins ago
Any MEF expert here? I have being wrestling with an issue for a while now.
They encourage me to write actually decent code therefore they're bad
@CatPlusPlus Yes, great cost analysis there.
Damn so all the bad code I'm writing now could be caused by UB I wrote in the future
16:51
@EtiennedeMartel I've fought with MEF a little, but I'm far from an expert.
@AndyProwl I'll tell that to my boss as an excuse next time the opportunity comes up.
I'm trying to have context specific parts, so that imports for specific objects would be looked up in a certain scope.
@LightnessRacesinOrbit I wonder if I should bin this.
← 1 message moved to bin
16:53
(The idea is that I have Document objects, and I want their imports to be non shared between different Document instances)
Said differently, I want each Document to be the root of its own graph of parts.
@R.MartinhoFernandes Ah, but you'd still get to be blamed. Better say that it's because of UB written by your colleague.
@AndyProwl Ooooh, right.
I could have a catalog for each document, but that creates a chicken-and-egg problem because I create documents through ExportFactory, so I can't create the document before the catalog and vice-versa.
Or by my boss.
No, wait.
(perhaps in the future, so your colleague can't reply he didn't)
16:55
Better to not blame my boss.
He might as well be your boss only as a consequence of UB
yay removed a bunch of nops.
fuck nops anyway
doesn't x86 have several nop instruction codes?
I think it's various possible encodings of the same instruction.
But the difference might just be philosophical.
@DeadMG Yes. Just for example, it has an "exchange register with register" instruction. The usual NOP exchanges EAX with EAX, but exchanging any other register with itself has the same lack of effect. The difference is that it has a special encoding for the accumulator (AX, EAX, RAX, depending on mode) so that instruction occupies only one byte; another register will use more code.
user3010322
@R.MartinhoFernandes That's what making cute pony tails and pigtails are for.
user3010322
17:04
Also awesome nordic beard braids and elvish twists.
heh, nice try
@EtiennedeMartel Indeed. On the other hand, I can't imagine that a guy who genuinely had consensual sex with a woman who then decided to call it rape would have any fucking chance whatsoever. It's not just that he wouldn't be believed: anyone who dared to even utter the possibility would immediately be branded a rape sympathiser. We're such a mob culture.
I'm not applying that here though, yikes.
> "But there is a culture in some offices that sexual assault is sort of overstated or victims tend to lie. That might be what's going on here—a culture of indifference."
Yeah, or a possibility.
sigh
17:20
@LightnessRacesinOrbit Keep in mind that this comment from somebody else who used to work for the DoJ, and is no longer in a position to know any more than we do about this case. IOW, it's purely a comment about a general possibility, with (apparently) no real basis in this case.
@JerryCoffin Yes, it was a general statement from Sarah Deer, who worked for the Justice Department's Office on Violence Against Women in the Clinton and George W. Bush administrations.
Far too general if you ask me, or if you don't
My issue is that she equates a notion of frequent false charges with "indifference", which seems a bit bigoted
@LightnessRacesinOrbit Poorly stated, but I do think she has a little bit of a point: even though false charges undoubtedly happen all too often, they can't ignore (or under-investigate) one charge just because there are lots of other charges that turned out to be false.
@JerryCoffin I agree
And, I suppose, if the claim that it's a "culture" holds up (the implication being that it's pervasive to the point of casual assumption) then, yes, that would be a problem.
Alright
For that matter, there's not always a clear line between charges that are false and those that aren't. For the obvious example, guy picks up girl at bar. They have sex. She then claims she didn't consent so it was rape. 1) she may have consented, but not remember, and 2) almost nobody keeps a breathalyzer handy to figure out if she was drunk enough to be incapacitated so the consent didn't really qualify.
There are quite a few more borderline cases. I'm currently paying (in a way) for one that happened here recently. A rape was reported, which is rare enough here that it made local headlines. Reading between the lines, it was apparently an exchange of sex for drugs, but he thought the drugs they did together before having sex should count as part of the payment, and she didn't agree.
Long before the actual facts came out, however, my wife was convinced there was a mad rapist loose in our neighborhood, and we needed to get a burglar alarm to protect ourselves.
17:36
Then you told her that you were in fact that rapist
@MohammadAliBaydoun It'd be pretty hard for me to do that--I was in California at the time.
17:51
-4
Q: what will be output value of constant after increment

Sanjeev YadavWhat will be output after constant is incremented int main(){ const int i = 5; i++; printf("%d",i); } the code is in c++.

@LightnessRacesinOrbit lol

« first day (1189 days earlier)      last day (3985 days later) »