« first day (836 days earlier)      last day (4111 days later) » 

user142019
9:00 PM
$ man 2 open
...
SYNOPSYS
...
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
 
@sehe MathCad?
 
user142019
Wat. Since when does C have overloading.
 
@JerryCoffin wokay
 
it doesn't, but you can (usually?) fake it because of the calling convention
 
@sehe Sexists?
 
9:00 PM
@JohanLarsson Common sense. It must exist. I'm not actually aware of examples
 
@Zoidberg int open(); + magic? (it's a system call after all).
 
@EtiennedeMartel Not an anagram
 
@Rapptz nothing fancy just vanilla engineering calculations, be able to type in Hooke's law with units and get the zeroes right
 
user142019
@R.MartinhoFernandes Oh yeah, of course. :P
 
@Zoidberg Also va_args
 
9:01 PM
@sehe I have been looking, there is MathCad but it is expensive
 
@sehe Bite your tongue!
 
Isn't Hooke's Law just F = kx?
 
@Zoidberg I think it would make a neat question on SO.
 
@Rapptz you are right, I'm rusty and suck, the other one with force and area
that type of things
 
Pressure = Force/Area?
 
9:03 PM
yep, for pressure, same unit
 
IIRC open would be varargs and only looks for the extra argument if the flags call for it
 
can probably find applications in chemistry and electronics also
I was thinking F# + Wpf
 
I don't know F#
 
F# has this unit of measure thing that I have not tried yet
 
9:06 PM
It's Boost.Units style compile-time checking.
 
I don't know F# either, that is one reason imo
 
@JohanLarsson Try VHDL -- already supports units, so you can define the units you care about directly (and when you're done, you can synthesize your calculator directly into hardware).
 
Maybe I should reinvent Boost.Units as part of my "Boost Reinvention For Fun" phase
:D
 
@JerryCoffin I don't think I should stray far from managed code (the reason is starred)
 
Wow this Dennis Ritchie thing sparked a lot of drama huh
 
9:11 PM
What?
 
I just finished reading the post on meta.
I know, slow. I was distracted.
 
Oh, I missed the linking to it. I just got home.
 
It's more than a year old.
It was when they paid tribute to Steve Jobs but didn't do the same for Dennis Ritchie. Here
 
I have been paying tribute to Dennis Ritchie many years before he became popular by dying ;-)
 
How much were you paying him?
 
9:14 PM
@JohanLarsson I wasn't really serious.
 
@sehe I have been looking you want to join btw?
And I could not tell ;)
 
@R.MartinhoFernandes Programming in C for two weeks per year.
 
Meh, then I am not interested in being paid tribute.
 
@JohanLarsson I'm looking. But getting distracted with nice things like mathomatic
 
Let's see what have I invented...
 
9:16 PM
What would that encompass? #include <wheels> for two weeks per year? ;)
 
#4: ab = a^2 + (2*a*b) + b^2

4-> solve
Enter variable to solve for: a
Equation is a degree 2 polynomial equation in (a).
Equation was solved with the quadratic formula.

                                      1
        ((((2*b)^2) + (4*(ab - b^2)))^-)*sign
                                      2
#4: a = ------------------------------------- - b
                          2

4-> code
a = ((pow((pow((2.0*b), 2.0) + (4.0*(ab - (b*b)))), (1.0/2.0))*sign/2.0) - b);
^ that @JohanLarsson
Relatively nice. It does java code too (tsk tsk) and python
 
I invented a pizza slicer that is quite complex to build with a friend, and then a few weeks later we learned about mezzalunas and dropped the idea.
 
I think I still remember that. Or was it the 'star trek' themed slicer?
 
@sehe so you want in then!
 
Ell
a pizza slicer?
as in, a physical pizza slicer?
 
9:19 PM
Good question. Pizza is also a programming language.
 
@JohanLarsson I'm not inclined to write it. My hunch is, it exists. Then again, should I ever need it IRL I'd probably build something clode to my needs
 
ok but it is an opportunity to waste a lot of time
 
@sehe That might have brought me to mentioning our failed endeavour. We did think it was superior to the Star Trek kind of slicer, but mezzalunas beat the shit out of anything. And they are made of sheer awesome.
 
@JohanLarsson Yay
 
no rush to decide though as it will go on forever
 
9:23 PM
Oh, "mezza" means "half"? That explains "intermezzo" as "in between halfs".
 
I think middle but essentially the same
 
It's half.
 
mezzoforte
half-loud ?
 
half strong?
 
moderately loud, I'd say.
 
9:30 PM
Oh, by the way, you guys should sign this.
 
What have the bees every done for me? (except honey)
 
That sounds way too sensationalist and rushed for me to care.
 
@FredOverflow The entirety of the food chain?
@R.MartinhoFernandes That's how you gotta phrase things these days to get people interested.
Although it does have the opposite effect on cynical people.
 
Meh, I prefer hailing the hydrogen atom.
 
user142019
A friend just send me news that I had already seen three hours ago.
 
user142019
9:32 PM
Why are people so slow these days?
 
@EtiennedeMartel Meh, right.
 
@Zoidberg I blame your messed up sense of time.
 
Ell
What about the farmers? :o
 
user142019
Farmers gonna farm.
 
user142019
9:37 PM
Email is borked.
 
@Non-StopTimeTravel i.imgur.com/YRo1J5z.jpg
5
 
@Rapptz That's kinda proving the point, isn't it?
 
You guys are so dumb. The school is named "Two" and "Easy for Kids" is their slogan.
 
What point? That people are bad at English?
lol
 
@Rapptz To be fair, the US education system is crap.
If it wasn't, Fox News would have no audience.
 
9:40 PM
No worse than any other nation.
We just have vocal stupidity.
 
Ell
How do lexers differ across grammars? I can understand parsers differing greatly, but won't most lexers be very similar?
 
Consider string literals in C++ and string literals in JavaScript.
 
@StackedCrooked when will we be able to use boost libraries on your site, which need linking?
 
@bamboon If sufficient demand is there :)
 
Ell
I don't know what js string literals are like o.O
 
9:44 PM
@StackedCrooked I hereby claim sufficient demand ;)
 
I too, claim demand.
 
@Ell "foo" or 'foo' which allows "foo'bar" and 'foo"bar'.
 
Even though I don't use boost, I know other people would use it.
 
@StackedCrooked Don't even add Boost ever. :D
</rebel!>
 
</loser> FTFY
 
9:46 PM
=[
 
@Ell And then you have raw string literals in C++ R"(foo"bar)" and verbatim string literals in C# @"foo""bar".
 
Sadness.
 
Completely different logic.
 
@R.MartinhoFernandes Now, that's mean!
@ThePhD you're no loser!
 
Ell
hmm right
 
9:50 PM
Did I make things awkward? :D
 
@Ell Lexers vary depending on what sequences of characters can/do make up a token in the target language, and how you recognize the separation between one token and another.
 
is there any class in the standard library which has a constexpr constructor?
 
10:14 PM
best news of the day
 
oh god...
how the hell can you do serious typing on a phone?
 
user142019
Uh
 
user142019
train a lot?
 
I can't even do serious typing on my laptop because it fucking sucks so hard
 
user142019
I should implement C++ in Perl.
 
10:19 PM
@Zoidberg you should ....not
 
user142019
lol
 
user142019
$ insane *.cpp && ./a.out
 
my favorite breed of dog
 
another example why using namespace std; is a very bad idea.
 
10:35 PM
Once in a while I end up helping a student with some little problem. I always see them put using namespace std. they seem to teach it
 
> Also, it is good practice to have a base class for all other classes, including the interfaces, such as Object.
@TonyTheLion Stopped reading.
 
@R.MartinhoFernandes I also stopped reading, and suspected badness, therefore I posted it here, to get confirmation
 
Oh I saw that and stopped reading too.
 
thanks for confirming
> I slightly disagree and I will point to the existence of several cases when dynamic_cast is very useful.
I stopped reading here
 
user142019
Perl is so beautiful.
 
10:40 PM
@doug65536 That's the reason why it should be shunned even in examples.
 
@R.MartinhoFernandes Practically every C++ book does it to save space, sadly even the "good" ones.
 
@EtiennedeMartel lol
 
@FredOverflow C++CiA doesn't IIRC.
 
Haven't read that yet.
Also, the CIA has their own C++ book? ;)
 
10:42 PM
@R.MartinhoFernandes think so, too.
 
what is C++CiA?
 
Just checked it, and yep, it's std::s all over.
 
that cover reminds me of Jon Skeet's book.
 
Same publisher.
Also, Manning is awesome.
You buy the dead tree book and get the bitwise book thrown in.
 
@R.MartinhoFernandes well said
 
10:45 PM
@R.MartinhoFernandes bitwise?
 
Don't tell me that's the word you use for "digital"?
Fucking hell, man, what is up with those crazy words?
 
srsly?
 
It's like meatspace.
 
I'm... creative?
 
10:47 PM
As if the real world was only made of meat, instead of, you know, vegetation and minerals and stuff.
 
Priorities :P
 
hmm, I might have made my template class a wee bit confusing. I just noticed I'm debugging a function who's name in the stack trace is so long I can only barely fit it in a SO message.
track<void,std::allocator<std::basic_string<char,std::char_traits<char>,std::al‌​locator<char> > > >::detail<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::payload::erase(std::allocator<track<void,std::allocator<std::basic_string<cha‌​r,std::char_traits<char>,std::allocator<char> > > >::detail<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::payload> & al, unsigned int min_index, unsigned int max_index, unsigned int & out_erased)
I need to fix this
 
@Zoidberg line noise
 
user142019
@sehe I think you replied to the wrong message. Try two messages above yours.
 
track<void, std::string>::detail<std::string>::payload::erase(std::allocator<track<void, std::string>::detail<std::string>::payload>&, unsigned, unsigned, unsigned)?
Why so much nesting?
(Also, a class template named detail?)
 
10:50 PM
o_O
That's some serious nesting.
 
@EtiennedeMartel I'd rather see an illchosen adjective than "Fucking hell, man" and "what is up" all over the place
 
They might as well put some eggs on that and sit a Hen or two on it as well.
 
@sehe Woooops
Sorry about that.
 
:)
 
Bitwise means being wise about bits and stuff.
 
10:52 PM
Obvious pun is lame.
 
Yeah. I dismissed it the second I thought of that one.
The late timing made it slightly more palatable, in a way.
 
It also means believing in a single reincarnation. (That one is harder.)
 
You mean, Die twice?
 
Ok, that one may be horrible, but it is much better than the obvious one (because it is somewhat original).
 
Live free or die hard.
 
10:54 PM
With a ...
vegetable
and stuff
 
@FredOverflow If it's single, it would be only incarnation, not reincarnation.
 
@JerryCoffin Are you sure? Live once, then reincarnate, then live a second time?
 
@JerryCoffin It's a single reoccurrence, i.e, two occurrences.
 
@R.MartinhoFernandes I'd put the type-ignorant code in a void specialization since there was a lot of it. Then I realized it was a way to seperate interface from definition, so I added a detail template to the void specialization to move the few remaining bits. Turns out that was a bad idea and I'm going to undo that.
 
@FredOverflow Okay -- if that's what you meant, I misinterpreted. My apologies.
 
10:55 PM
@JerryCoffin can you edit this link into your noexecpt answer: akrzemi1.wordpress.com/2011/06/10/using-noexcept
 
@JerryCoffin It's alright. Even the most wise among us get a few bits wrong now and again.
ZING, pun score before I leave!
 
@R.MartinhoFernandes: Unrelated, did you know that you still can't store streams in containers because they still don't have move assignments marked nothrow?
 
@ThePhD Yup -- I guess I'm a bit less bitwise than some. :-)
 
@MooingDuck Streams can be moved? :)
 
@Pubby I was considering editing a few excerpts from some of the papers in...
 
10:57 PM
@FredOverflow no :( But they should be movable IMO. One of the examples everyone used when talking about how awesome && would be was that we could finally move streams and put them in containers and stuff.
 
Why would you want to do that?
 
an exception during a move is very unlikely, isn't it? What could happen?
 

« first day (836 days earlier)      last day (4111 days later) »