« first day (1586 days earlier)      last day (3378 days later) » 

Xeo
9:02 PM
Man, VVVVVV really does have a great soundtrack
 
@LightnessRacesinOrbit Well, damn.
 
"Predestined Fate" is nice.
 
i think my language is turing complete now
0 through 5, not 1
 
@Xeo You remember Jean Michel Jarre? With the city wide concerts? I get that feel =)
 
So just a recap, if I have class Time then int main(){Time();//stuff} is essentially pointless right?
 
9:09 PM
@DonLarynx Not if constructor has side effects.
 
@milleniumbug or destructor. And considering the classes name, I dearly hope there are none.
 
But Time() isn't a constructor
 
@Deduplicator Oh, it's seriously not-an-empty class. In libstdc++ it stores a value of unique for T empty struct.
@DonLarynx While creating temporary object one is called (and a destructor) - if you define them.
 
ooh true
@milleniumbug but suppose the only side effect would be to initialize member data. Then, it initializes member data for a non-existent object (since no name was given to it), therefore it's pointless.
 
9:14 PM
@DonLarynx That wouldn't be a "side" effect then. But yes, it's pointless.
 
Time():member(new Crap[123]){}
 
@CaptainGiraffe bad!
 
@Deduplicator Some research gave me this. Praise the heavens Stack Overflow!
 
for(int i = 0; i <= infinity; i++){Time()}
:21629749
 
int infinity = -1;
 
9:17 PM
@milleniumbug 0 <= -1
 
@milleniumbug Yes, very much that.
 
user1804599
Why were exception specifications deprecated?
 
@райтфолд Because they suck ass
There's a GoTW issue explaining how much they suck
 
user1804599
The reasoning I read is that they are enforced only at runtime.
 
user1804599
Would it make more sense to have them in a dynamically typed language?
 
9:23 PM
@JerryCoffin I don't think for (type T : name){//stuff} is legal in C++
 
@DonLarynx It is
 
32
A: Why are exception specifications bad?

DeadMGException specs are bad because they're weakly enforced, and therefore don't actually accomplish much, and they're also bad because they force the run-time to check for unexpected exceptions so that they can terminate(), instead of invoking UB, this can waste a significant amount of performance. ...

 
C++11 range-for loop
 
@milleniumbug o
 
9:24 PM
@Deduplicator I never liked them
 
@DonLarynx That's one of the things C++11 added.
 
@JerryCoffin coliru.stacked-crooked.com/a/21cda5aa23d80329 your program failed because you had pos++ if 'e'
 
@райтфолд Dynamic exception specifications are deprecated. noexcept and throw() are both still generally encouraged (though noexcept is preferred).
@DonLarynx Yes--the point of that failure is that although a floating point number like 1e3 is allowed, the e has to be either preceded or followed by at least one digit. Though I didn't include a test for it, a . by itself should be the same--either 1. or .1 is acceptable, but . by itself shouldn't be (and .e or e. by themselves shouldn't be either.
 
@Mgetz lolfail
 
@Mysticial and what did my little test show... no difference on modern hardware
 
9:32 PM
@Mgetz Or rather, modern compilers.
 
@JerryCoffin According to your tests a string 1 .1 is legal.
 
:21630007 It's walking through the input. The pattern for a correct number is something like [+-]<digits> "." <digits> "e" [+-] <digits>, where nearly all parts are optional, but for some of them to be allowed, you it does have to include at least one digit somewhere, and if there's an e it has to be followed by at least one digit.
 
@Mysticial good enough for government work
 
@DonLarynx I don't see how. It accepts arbitrary spaces before and after the -, but after that, no more spaces.
 
@JerryCoffin it's a very smart design
@JerryCoffin line 12
@JerryCoffin even line 8 if i had [10whitespaces].97
 
9:36 PM
> boolean isTomcat = new Throwable().getStackTrace()[1].toString().indexOf("org.apache.catalina") > -1;
> For a language not exactly known for its brevity, this amount of WTF in a single line is quite an achievement. efficient WTF-ery
 
user1804599
Yeah.
 
@sehe lolwtf
 
user1804599
You don't need to create an exception in order to get a stack trace.
 
user1804599
It can be done in a much better way.
 
hehehe
 
9:37 PM
@DonLarynx That's after the (optional) -, but precedes any digits.
 
user1804599
ECMAScript 5 called with their optimisation-preventing useless feature called callee inspection.
 
@sehe didn't seem to bad until i saw the > -1; at the end. wtf
 
You, sir, have a nack of missing points
> int factorial(int n){return n?factorial(n-!!n)*n:!n;}
> "The professor was not amused."
dat pun
 
@райтфолд ECMAScript 5 :C= ...
 
user1804599
@sehe At least it's TCO'd.
 
9:40 PM
who knows. the language isn't specified (did you mean TCO-able)
 
so
the first guitar lesson of my life was amazing
 
user1804599
@sehe No, I assumed C++ and clang.
 
user1804599
Like I always do.
 
user1804599
I should add exception specifications to Mill. I like documentation being executed.
 
@BartekBanachewicz so if you flunk the drivers license, you can always use overdrive?
 
9:41 PM
hihih
no but really it was cool
Apparently otherwise than skewing my left hand a bit my technique is OK
I need to work on the clarity and dynamics
but we also jammed a bit and it was soooo great
 
user1804599
Should I watch The Matrix?
 
@райтфолд If you haven't yet, definitely do so.
 
@tmlen Hmm, I have my doubts supporting that kind of LQ question with an answer, but you're correct of course. — πάντα ῥεῖ 1 hour ago
^ @πάνταῥεῖ woot. that's pretty classy. I agree, this should have been dupevoted pronto. I don't get why it hasn't been o.O
 
@sehe You should do that as a template
 
No.
 
9:47 PM
@райтфолд yes but dont watch the sequels
 
@sehe Do a pow.
 
Do it yourself :)
 
@sehe It gets interesting for negative numbers
 
@Pris Or: but watch those sequels!
 
@sehe I have, elegant and all
 
9:48 PM
@CaptainGiraffe Many things get interesting. E.g. group sex gets "interesting" beyond 5 participants. I'm not sure that's a reason to do it
@CaptainGiraffe See, there's is absolutely no reason left, even for rightfold, to do it now
(inb4 rightfold re-invents the square wheel)
 
@райтфолд Clever compiler can optimise it but it's not really tail call as-is
 
I'll get back to you about the negative pow<>. As for the rest? eww =)
 
user1804599
I only use clever compilers.
 
@sehe Yeah, that was a pretty strange devolution with that question. I've been straight close voting as "unclear" instead of using mjölnir. And then I even was provocated by the OP's rude comments.
 
@райтфолд watch star wars first.
 
user1804599
9:50 PM
No.
 
user1804599
Fuck Star Wars.
 
@πάνταῥεῖ I didn't see those. I'd say it's a dupe of the 'using arrays' in
 
@sehe Could well be!
 
@CaptainGiraffe Well. It depends a lot on who participate :)
@πάνταῥεῖ I'd say you should find this out before close voting as unclear ;) (TBH I don't know that many "dupe-favourites")
 
@sehe Sure, I've learned from this now.
Anyway didn't ever notice a mod reacting with a lock for that kind of question. (especially Flexo is experienced with c++ tags AFAIR)
 
user1804599
9:55 PM
Hmm.
 
user1804599
The equivalent of noexcept would be maythrow Bottom.
 
@sehe TBH I don't know that many "dupe-favourites") I've got quite a list of them, but use these less recently :)
 
10:10 PM
@πάνταῥεῖ me neither, it's likely because a. there was a mod flag b. Flexo used to be highly active in C++ and consequently knows the loungers a bit. I'm not saying it makes sense, but it might explain the fact that the response is ... different
@πάνταῥεῖ Oh. I parsed the parenthesized clause now. So you knew
 
What'd be a good font for a projector presentation?
 
Ell
I need a tutorial writing tutorial >.<
 
@sehe Of course. How you can seriously miss Flexo operating on the c++ tag ;-) ...
 
@CatPlusPlus comic sans is pretty timeless
 
Flexo is a traitor and deserter
 
user1804599
10:13 PM
Bender > Flexo.
 
user1804599
@CatPlusPlus DejaVu Sans Mono.
 
@Pris Lazy humour
Someone who's worth listening to?
 
@CatPlusPlus traitor??
 
We got him a mod position and he abandoned us!!!
 
Ell
Has anybody here published tutorials?
 
10:15 PM
@CatPlusPlus what kind of presentation is it? I like Roboto, Fira and Adobe Source Sans for technical presentations
 
MLM
@Ell What do you need help with?
 
Ell
@MLM writing
in tutorial style
 
Just write the thing you want to write about
What do you need to know
 
MLM
So help us, help you
Need examples? Proofread?
 
Ell
The writing is terrible
I just want to look at other people's tutorials
I'm reading Xeos one about overload resolution currently
 
MLM
10:17 PM
Here is one of my tutorials/guides: ericeastwood.com/blog/16/…
 
Ell
@MLM cheers :)
 
I wonder how I should sync my render and update threads
 
@Ell Somehow I read that as, "blah blah Xeons, blah blah, overclocking blah, blah".
 
Your mind is broken
rip
 
Ell
10:21 PM
@Mysticial haha, you would wouldn't you? :P
What is your overclocking record?
Highest cpu clock frequency, I mean
 
On a Xeon would be none. Not overclockable. On any computer, I've gotten up to 5.0 GHz benchmark stable. And 5.3 GHz CPUz stable.
This was back in Chicago during the winter when I put the radiator outside.
 
Ell
haha
5.3, that's high
I used to have my i5 clocked at 4.6GHz
 
Does it do anything other than cut the lifetime to 10 seconds and turn CPU into a space heater?
 
Ell
It was fine, vOv
for a while
then it randomly reverted to below stock frequency
 
10:23 PM
@Ell I never ran that machine above 5.0 GHz for more than an hour. And I never ran it above 4.6 GHz for more than 24 hours.
 
Ell
and it's still fine
 
You boiled it
 
Ell
it's running at 3.30GHz
 
You monster
 
10:24 PM
It's possible to still be fine after boiling it.
 
Ell
It's been fine for 3 years now so :P
3 years, 2 years, can't remember which
 
@Ell It's probably throttling. You're supposed to disable overcurrent protection when you overclock. :)
 
Because of course you are
 
If it's overheating, then you should get better cooling. No don't disable overheating protection.
 
Ell
Probably, this is my first computer that I built and owned, but I was pretty nooby when I started
 
10:25 PM
Creative Cloud just broke my notification area
 
Ell
I don't have any interest in overclocking now so I just left it to what it set itsself to
 
GOOD JOB ADOBE
 
-3
Q: Matrix Multiplication Using 2D Arrays

GuptillGuntherI swear to you, I have tried and tried doing this numerous times and can't get it to work. Please tell me how to do matrix multiplication using 2D arrays in C++. I looked for similar questions here and there were a few with the same title but they were totally different and I couldn't pick up a...

 
@Ell Below stock? ahaha
 
Now I have to logout ugggh
 
Ell
10:26 PM
@Mysticial Maybe it's stock, I can't remember
I'll look it up
 
Someone willing to release that OP?
 
Ell
Ah no it's running at stock, it's just advertised as 3.70GHz turbo
it's i5-2500k
 
If there's one thing I hate about locked computers is that they almost always underclock. They don't run at 3.2 GHz. They always underclock the bclk by like 1 MHz, so it runs at something stupid like 3192 MHz. False advertising shit.
It looks ugly in CPUz.
 
Ell
I'm sure you'd rather that than them underclocking exactly to 3.1 GHz :P
@Mysticial you programme mostly in C, right?
Not c++?
 
It's even more annoying when a 3.0 GHz turns into something like 2993 MHz. Because the stupid motherboard uses a slightly lower bclk than what it's supposed to.
 
10:28 PM
@Mysticial lol
 
@Ell Mostly C++ now.
But depending on what I'm writing, it may or may not be idiomatic C++.
 
Ell
@JohanLarsson oh man
 
I have a thing that allocates a lot. It polls in a tight loop. Dunno how to profile if it is a problem over time C#.
Guess i can start with leaving it running over night
 
user1804599
Speed it up.
 
10:33 PM
yeah, I can write mokks and run it in simulation
Finnish spelling ___^
Maybe I should make a PR to Moq and rename mock > mokk
Think it is worth a breaking change.
 
Xeo
Okay
So
Instead of working on my game, I've spent the last two hours replaying VVVVVV
 
Ell
@Xeo it's okay, you're getting inspiration :)
 
You guys are like the mafia did you know that
 
Xeo
That's why I actually started it up again
 
The mafia of C++
 
Xeo
10:37 PM
To look at some of the things
 
user1804599
I made quite an important decision today.
 
Xeo
It's addicting, so I want through and finished it, though
 
@DonLarynx Kiss my ring ...
 
@πάνταῥεῖ u w@t m8
lol
> There’s a phenomenon in offices worldwide called the ‘After Lunch Slump’. It is when all the workers have ingested their lunch and now have zero energy and don’t want to do anything but sleep. Here’s a wild thought to combat the after lunch slump: Don’t eat lunch.
 
Ell
10:39 PM
@StackedCrooked I like this song, it's so cheesy though
 
@DonLarynx Well I could gift you a red rose instead, if you like ;-)
 
Ell
is this a cover?
it's by the beegees or someone
 
@Ell It's the original.
 
Ell
10:40 PM
yeah
 
What's a good name for ESHUTDOWN?
 
Xeo
ESHUTDOWN
 
The description is a bit too long
@Xeo lol.
I'm making something similar to std::errc.
 
@Rapptz ESHUTUP
 
Ell
ECEASE
 
10:41 PM
@DonLarynx Ewwww
 
Ell
EPOWEROFF
 
Don't onebox
 
@Ell Thanks.
 
Ell
@StackedCrooked No probs :)
 
I meant an alternative name
i.e. without ESHIT.
 
10:42 PM
What is ESHUTDOWN anyway?
 
Ell
@StackedCrooked Thanks.
 
@StackedCrooked Thanks.
 
my language can interpret code that looks like hastebin.com/jisezixiyi.hs (also has a "ret" that returns to location of last jump+1 line). how should i go about proving it's turing complete?
i hope it's turing complete :|
fairly sure it is
 
In other news, a very pleasant song youtube.com/watch?v=HOklOciUrJo
 
Ell
@Blob implement conways game of life
life is turing complete itsself, so if you can't implement it your language might not be turing complete
 
10:43 PM
@Rapptz ns::errc::shutdown then?
 
@Ell no thanks -.-
it'd be hard in this
 
Ell
@Blob why not?
 
@DonLarynx Pfft. (@Dmitry take care of him please!)
 
Ell
It oughn't be that hard. It's just a set of rules about how many neighbours are alive
IIRC something can't transcend its turing-completeness :P
 
no data structures; conditions and crap are written with conditional jumps
 
10:44 PM
@πάνταῥεῖ This was a semi-serious post, but to elaborate:
> Fasting means not eating. One of the benefits of not eating is that your mind is clear, blood is not rushing to your stomach to aid digestion
 
Xeo
@Rapptz endpoint_ded
 
@LucDanton std::errc seems to use the descriptions for the name. e.g EADDRINUSE is address_in_use. I don't think ESHUTDOWN uses "shutdown" for the description.
Issue is that the description is.. really long lol
 
Xeo
> ESHUTDOWN Cannot send after transport endpoint shutdown
 
Yeah.
 
Oh it’s an actual thing.
endpoint_shutdown perhaps.
 
@DonLarynx Those benefits only last for about 15-20 days though.
 
Ell
Oh the nostalgia.
 
Ugh fonts from TypeKit are only available if the stupid Creative Cloud is running
Fuckin DRM
 
@DonLarynx How lame is that please? Such doesn't serve well for aiding digestion :-P ...
 
I have this which is a bit longer I guess.
too_many_symbolic_link_levels = ELOOP,
but I think that's as long as I'm willing to go
@LucDanton I like that one.
 
10:47 PM
You can go with symlink perhaps. Hard to improve beyond that.
 
Wait, what. Since when do YT oneboxes contain the title of the video?
 
@Rapptz elope
 
Xeo
@Rapptz symlink_overflow
 
@EtiennedeMartel I had that issue too. Refresh the page.
 
Ell
@EtiennedeMartel cool eh?
 
10:48 PM
lol
too_many_levels would be too concise imo
 
@Rapptz That's what I did, and there are titles now.
 
@Xeo It’s actualy fairly good.
 
Ell
slow_down_on_the_levels_bro
 
@EtiennedeMartel Heh, I hadn't noticed yet.
 
too_many_symbolic_link_levels is actually Official™.
It's part of std::errc.
 
10:49 PM
amazing
 
I know.
@EtiennedeMartel When I refreshed it fixed it.
 
Xeo
So to improve upon the over-brevity of the C stdlib, the C++ stdlib opted for excess length
 
inappropriate_io_control_operation //	error condition corresponding to POSIX code ENOTTY
It's quite impressive tbh.
 
10:52 PM
Is bad => inappropriate such an improvement I wonder.
 
Xeo
It's more appropriate
 
Ell
13 days until 10 year cape
 
I had to have 4 tabs open to get a decently sized list of all POSIX error codes.
I don't know why
ETOOMANYREFS is "too many references" but is that ambiguous with C++ references? :p
 
Ell
what kind of references?
also what are you writing?
 
I'm writing an error enum.
mingw does not have the networking related std::errc errors.
 
Ell
10:57 PM
oh right
 
Those are conditions :v
 
http://en.wikipedia.org/wiki/%CE%9C-recursive_function
Can someone explain "Projection Function"?
 
Xeo
ugh, already midnight
 
@LucDanton It's just a more portable error code.
I'm not sure what you mean by "they're conditions"
 
I don’t know, you’re the one mixing them up.
 
10:59 PM
Man.
I've read about this stuff for 2 days.
 

« first day (1586 days earlier)      last day (3378 days later) »