« first day (981 days earlier)      last day (3972 days later) » 

7:00 PM
anyway, that's a lot of effort to go to for something I really don't care that much about
considering the miniscule benefit, it's a lot simpler for me to simply have a PHP script
 
Ell
It's not a lot of effort
it's super easy. A lot less effort than writing php
 
What are the uses of trigraph sequences?
 
@ThePhD ah, that :)
 
Ell
@ShuklaSannidhya Before everyone had everything on their keyboard
 
6
Q: Why are my struct's members not properly initialised using `{}`?

Lightness Races in OrbitI had the following code: #include <iostream> struct T { int a, b, c; }; int main() { T t = {0}; std::cout << t.a << ',' << t.b << ',' << t.c << '\n'; } Output: 0,0,0 After many years of this code running happily in a critical production environment, serving a vital function, the...

 
user142019
7:03 PM
I'll use Io.
 
@not-sehe which one? :D
 
Ell
@rightfold what for?
 
@LightnessRacesinOrbit How did you find it so quicked? D:
 
user142019
Game.
 
Ell
what kinda game?
 
7:05 PM
@ThePhD I am good at computers.
@ThePhD Also, "quickly"
 
@LightnessRacesinOrbit :P
 
user142019
@Ell tëxt-based.
 
@Ell the one he's making
 
@BartekBanachewicz ? which mother-fucker, you say?
 
@ShuklaSannidhya In the days of Unicode - none, except confusing people.
 
7:09 PM
Unicode is far superior for purposes of confusation
 
What is a pull request?
http /1.0 GET?
 
@CaptainGiraffe proposed set of changes to the repository
It's a github (I think) term
 
Did Chrome update or something?
 
@BartekBanachewicz Ah, I'm blatantly ignorant about git
 
@CaptainGiraffe you should change that
 
7:11 PM
@BartekBanachewicz I really should. But the svn and hg is working very well for me.
 
Ell
hg is git really
 
If you know hg you know git
 
Ell
and pull requests are a github thing, I thought?
 
1 min ago, by Bartek Banachewicz
It's a github (I think) term
 
Ell
oh sorry
 
7:12 PM
@GoldenMedal like I said, you need to avoid reading the uninitialized elements from vetorDeNumeros (also, I think it needs to be [30] because it's indexes with k, not j so it needs to be at least the same size as the corresponding matrix dimension? Finally, no you can't hug me (the internet has limits), but feel free to accept my answer :) — not-sehe 49 secs ago
^ God, he's pretty knowledge resistant
 
Any apparent downsides to transferring a svn repo to git or maybe Hg repo?
 
Fool proof, knowledge resistant
 
@not-sehe welcome to Stack Overflow
 
Hi @not-sehe. Your "not-" license has expired today. Please change back to @sehe
 
also that ^
 
7:13 PM
How original. Change back to Scrubbins :/
 
he's got a frickin' point
what's the point of going around calling yourself not-sehe?
 
@not-sehe Do you have any proof you are !not-she?
 
Do you require any?
 
@not-sehe I think I'm entitled to
 
I can't fix that
 
7:14 PM
@CaptainGiraffe no other boost-spirit nerds around
 
@not-sehe Crap, then I can't bring my flamethrower either.
 
Ew the new color for the accept-checkmark is overly bright. It doesn't convene with my gloomy view of the site.
 
user142019
Damn.
 
@GoldenMedal Cough. I gently remind you of my warning: "it looks like you're trying to implement an expression parser. I'd strongly advise you to either..." - caveat emptor! But good luck on your journey :) — not-sehe 4 secs ago
lol
 
@not-sehe yeah, it's terrible
 
7:20 PM
There, I totally aced my profile pic to go with my last comment!
 
It fits the bill
 
user142019
> But she's probably world-famous in Germany.
 
user142019
That's not very world-famous is it? :v
 
You should bear up not Clippy up.
 
7:28 PM
@not-sehe Why is there a big paperclip with eyes on my screen?
 
@Mike Where? Which?
3
 
Darn, I had to go and re-associate my google account with SO to do that :/
 
@sehe @not-sehe deleted it.
 
Okay, it was just there.
Now it's gone.
Because someone took it out.
 
7:33 PM
@sehe sehe! <3
 
sehe... not-sehe... Jeez, what an original name, not-sehe :P
 
Ha. You figured it out (the link was quite informative)
@Mike (haiku fail, btw)
 
@not-sehe I wasn't trying to be a poet.
 
user142019
Python is for poets.
 
user142019
I want to write a program in D.
 
7:43 PM
How come every beginner coder is told to start with Python or something else like VB.NET or whatever?
 
user142019
You should start with Haskell.
 
I wonder whether a ctor should be writte like this struct A { MemberType1 m1; MemberType2 m2; A(const decltype(m1)& m1, const decltype(m2)& m2) { ... } }
looks like a good way to avoid redundancy
 
user142019
A(auto m1, auto m2) { } // automatically initializes members with the same names!
 
C# has corrupted me :\
 
user142019
@Pawnguy7 Learn Haskell.
 
7:47 PM
@rightfold I can't wait for C++14 :/
 
user142019
Does C++14 have that?
 
user142019
Because it would be an awesome feature.
 
Apparently I no longer posess the bit of knowledge I used to have about stringstreams.
 
The auto? Yes.
C++14 is the informal name for the next revision of the C++ ISO/IEC standard. C++14 is planned to be a small extension over C++11, featuring mainly bug fixes and small improvements. The committee draft of the C++14 standard, N3690, was published May, 15, 2013. While the name "C++14" implies a release in 2014, this date is not fixed. The C++11 standard was termed C++0x, with the expectation of its release before 2010, and it slipped into 2010 and finally 2011. The features described below are those described in the Committee Draft N3690. They may be changed or removed before final standard...
 
auto is from C++11..
 
7:49 PM
@Rapptz What?
 
@Rapptz new usage of auto I think
 
35 secs ago, by Rapptz
auto is from C++11..
 
user142019
It was an imaginary syntax for constructors that initialize members from constructor parameters in the form of member(parameter).
 
3 mins ago, by rightfold
A(auto m1, auto m2) { } // automatically initializes members with the same names!
 
user142019
C++11 doesn't have that, shrimp.
 
7:49 PM
C++14 only has generic lambdas with that syntax.
 
@MooingDuck Only lambda and decltype(auto) is new.
Which weren't mentioned..
 
@Rapptz correct. Recap: "A(auto m1, auto m2) { } // automatically initializes members with the same names!" "Does C++14 have that? because it would be awesome" "auto is from C++11"
 
It'd be nice if someone implemented some sort of directive in MinGW like pragma where you can link to libs directly from the source file without using your IDE directly.
 
I wasn't even replying to that pseudo-syntax
 
user142019
Binary literals thank God.
 
7:52 PM
4 mins ago, by Mike
The auto? Yes.
Was a reply to "Does C++14 have that?"
And I said auto is from C++11.
 
@Rapptz Which was a reply to A(auto m1, auto m2) { }. Mike was also confused.
 
@MooingDuck As I was, yes.
 
Ell
I'm going to London tomorrow
 
user142019
God I'm so fücking børed.
 
Ell
To give a presentation about fluid level detection in isolated containers
@rightfold write a poem
 
7:56 PM
@Ell I'm going to the store tomorrow.
To buy some chips and sit an my ass all day and code.
 
user142019
rightfold is damn bored
so he writes a bad poem
meh, the fucking end
 
Ell
Heh
Go out with friends
 
decltype(auto)? I think we took a wrong turn somewhere...
 
Ell
Or even just go out
 
@MooingDuck Nope.
 
7:58 PM
I went outside today. I went to the store. I slept all day. Bore.
That makes so much sense.
 
@DeadMG by that I meant I think that and all related syntax probably should have been thought through better in the first place, to something that is more intuitive. Do you disagree?
this is, of course, in hindsight, and I'm not blaming anyone
 
I don't remember the details of the differences, but when I looked at them, it seemed perfectly rational to me
 
auto is either always value, or always ref. decltype is the actual type. decltype(auto) var = ... uses the actual type. If I understand
 
Xeo
ya
Of course the syntax could be better. A whole lot of syntax could be better in C++. :/
 
Yes, it makes sense given auto and decltype, but I think that means if we were to abandon backwards compatability, I'd probably want to rework those two into something more intuitive. like auto&& is a reference, auto% is a value, auto is "full" deduction. or something
 
user142019
8:03 PM
Not only the syntax.
 
we didn't abandon backwards compat, so that's that.
 
@Xeo right, that's all I was saying
 
Xeo
@MooingDuck Eh, auto makes more sense for value.
 
@Xeo I was kinda thinking making auto by itself invalid so newbs don't fall back on it as a "default". But I went with auto as full deduction because I figured that was most intuitive.
 
Xeo
I was thinking consistency
 
8:05 PM
@Xeo there is that to consider, yes
 
I think decltype(auto) is cool.
 
Xeo
The mechanics behind it, sure.
The syntax? Meh.
I mean, it does indicate that a) type deduction is happening and b) decltype-semantics are applied.
 
Ehh.. I don't know how else to improve it tbh.
 
Xeo
So there's that.
 
auto is a safe default, might lead to unintentional copies, but that's less dangerous than unintentionally capturing by reference and run into lifetime issues
 
Xeo
8:06 PM
But it's looong.
 
auto(auto)?!
Bad joke. Hm.
 
decltype(decltype)
 
Ell
Auto(decltype)
 
decltype(decltype(auto, auto), auto)
 
full_automatic_deduced_type var = 0;
 
8:08 PM
auto auto auto
 
Ell
Void* var
 
auto auto would have been like long long.
 
Ell
Dim v as decltype(void*)
 
signed auto auto
 
user142019
var var = var();
 
Ell
8:09 PM
Vag
 
@Ell vague?
fuzzy typing
 
Ell
Vague, vagina, whichever
Ironically
Vague, vagina, whichever
 
@sehe OH MY GOD POLARBEAR IS BACK <3
 
Xeo
roulette var = 0; // whatever type that has been seen and can be initialized with the expression
 
Ell
Ahh I'm going to stop talking now
 
8:12 PM
decltype(get< __COUNTER__ % tuple_length>(tuple))
 
You can apparently do get<int>(tuple)
 
I come in here and the first thing I see is "vagina".
 
Xeo
@Rapptz Maybe in C++14
 
Yeah in C++14.
 
Ell
What enables that?
 
8:17 PM
In order to "friend" a class, does that class's interface need to be defined first, or can I just forward declare it? Or do I need to do any of the above at all?
 
@Kivin Just forward declare it.
 
Roger that
 
@sehe Woooohoooooo
 
@JohannesSchaub-litb Bleh, bzero. Everyone knows memset is superior :)
 
lol @ r/cpp trying to reinvent the singleton :/
 
user142019
8:27 PM
@KonradRudolph I saw it. It was horrible.
 
user142019
Discussion in transcript.
 
@rightfold I spied your username
 
fairly sure I asked this before and got told no, but there isn't a 'quick' way of wrapping something like std::pair so that first and second are seen as width and height, is there?
 
user142019
@KonradRudolph Ignore my /r/imgoingtohellforthis upvotes.
 
@rightfold ’kay …
 
Xeo
8:28 PM
@KonradRudolph That's not a singleton.
 
@Xeo I know
 
Fuck.
 
it actually doesn’t even prevent the most naive attempt at creating two instances …
 
When I downvoted it to zero I thought it would have died but it has +6
 
just call generate twice.
 
Xeo
8:29 PM
@KonradRudolph I seriously don't know wtf OP was trying to do there.
 
user142019
@Xeo hence the "trying"
 
Xeo
But you can read my rant in the transcript.
@Rapptz wtf man
Some people are just... idk.
 
user142019
The sad part is 13 up votes 7 down votes.
 
user142019
But yeah /r/cpp is a horrible place anyway. No idea why I subscribed to it.
 
user142019
*unsubscribe*
 
user142019
8:31 PM
genesis, please go away you idiot.
 
@rightfold Where do you get that info from?
RES doesn’t give it … and it’s not in the page’s source code
 
user142019
 
> (13|7) submitted 4 hours ago by bonniefoo
 
but then I never understood reddit’s voting properly
 
8:33 PM
ah
 
Shows on RES too.
 
/r/cpp puke
 
user142019
 
user142019
Apparently, people visit my website.
 
yeah I seriously need to wean myself off r/cpp, it’s makes me want to gouge my eyes out
 
Ell
8:39 PM
@rightfold are you still bored?
 
user142019
No, why?
 
Ell
I was going to ask you to write a calculator parser in ruby
 
Ell
which outputs a graphviz thing
:P
 
@rightfold are you still bored?
 
user142019
8:40 PM
@StackedCrooked No, why?
 
user142019
@Ell No.
 
oh, never mind then
Was gonna ask you to write a code for me.
 
Ell
heh
 
user142019
> a code
 
8:41 PM
code a code*
 
user142019
Maybe I can write you a GTFO.
 
Ell
I need to understand things
 
user142019
That would be quite handy.
 
Ell
I can't even write a parser for a simple calculator :'(
 
In computer science, the shunting-yard algorithm is a method for parsing mathematical expressions specified in infix notation. It can be used to produce output in Reverse Polish notation (RPN) or as an abstract syntax tree (AST). The algorithm was invented by Edsger Dijkstra and named the "shunting yard" algorithm because its operation resembles that of a railroad shunting yard. Dijkstra first described the Shunting Yard Algorithm in Mathematisch Centrum report [http://repository.cwi.nl/search/fullrecord.php?publnr=9251 MR 34/61]. Like the evaluation of RPN, the shunting yard algorithm is ...
 
8:47 PM
shunting yard sucks
just go recursive descent
 
Ell
I'm trying recursive descent
I just don't know if it works because I'm too thick to figure out how to produce an AST
In my head, each function (representing a rule, right?) returns it's tree
so the tree is recursively made
 
> guepier
 
that’s me
 
I could tell
Also hi Konrad <3
 
8:53 PM
it’s the French name for bee-eater
hi
 
It also is the name of the wasp nest
 
ah, didn’t know that, but I defer expert judgement on the French language to you
 
> A scoped singleton uses the RAII idiom. You do not have to take care of cleaning up your singletons manually by calling destroy.
WTF.
What is wrong with people.
 
What the heck is a scoped singleton anyway?
2
 
It's basically "you avoid this problem that you wouldn't have anyway"
 
9:00 PM
Damn, I should be working on an analysis that I’m supposed to present to my boss tomorrow morning
but I can’t be arsed, and my girlfriend is playing Torchlight and mocking me :/
 
@KonradRudolph Konrad's got a girlfriend, Konrad's got a girlfriend... :)
 
well that should be old news by now
 
@thecoshman struct size { size_t width; size_t height; };
 
@KonradRudolph old news = olds?
 
@rubenvb But with wrappers and everything.
 
9:04 PM
@milleniumbug what wrappers?
He needed a thing with a width and a height.
 
Ell
I don't have a girlfriend
 
Xeo
@R.MartinhoFernandes Hi. :D Read my rant higher up in the transcript
 
@rubenvb I thought he meant class that is almost like std::pair, but with first and second renamed.
 
@milleniumbug that's what this is.
without the fluff.
you can't rename public members and keep the interface.
 
@rubenvb Well, of course not.
If he wants the fluff, then the only thing that he could do, is to copy std::pair from C++stdlib headers, and then modify name, and relevant parts.
 
Xeo
9:08 PM
cue reinterface_cast
 
or overload the functions he needs for his type.
which would speak against the need for his new type.
 
@rubenvb yeah, what I went with in the end. q) why size_t over just int?
 
@thecoshman how can a width/height be negative?
 
q) why size_t over unsigned int?
 
because really big things.
But that's for you to decide. It may be double the size in memory.
 
9:11 PM
Just kidding :P
 
C++ doesn't have something like class Derived : private Base { public: using *::Base; };
 
@StackedCrooked would you stop pushing that crappy site on us, no body cares :P
 
@thecoshman I'm not pushing anything.
 
So that everything would be pushed to public interface, but no conversion to base class and no slicing.
 
@thecoshman Cruel joke.
 
9:12 PM
@rubenvb That argument is bollocks, because C++ lets you assign negative values to unsigned variables.
 
Ell
@StackedCrooked I don't understand how that works o.O
 
> You would not actually use that vector for anything other that lifetime management.
 
Ell
how does it know the types of frist and second!
/
 
@R.MartinhoFernandes It's not intended to be negative, if the user puts something negative whose fault is it?
 
Ell
9:15 PM
oh wait
me so stupid
 
@Ell :)
 
Ell
heh.
 
Or would you rather throw an exception and/or assert if something is negative?
 
@ell you had me so confused then :P
 
Ell
Man. being bad sucks xD
 
9:15 PM
@Rapptz If it's the user's burden to keep it positive, it gives what benefit?
 
What if you want an integer range greater than 2,147,483,647 but less than 64-bit?
I'm just playing devil's advocate.
 
@Rapptz make it signed
 
@Rapptz Fine, but that's a completely different argument.
 
@Rapptz unless you really mean range
 
9:17 PM
Use 33 bit number.
 
I thought it was well interpreted what I meant. :S
@R.MartinhoFernandes Though I am curious, what if you don't want negative numbers?
Would you leave it as int and just assert/throw?
 
Good question.
I'd use unsigned :P
 
signed has negative and non-negative values. unsigned has non-negative values and garbage produced from negative values.
 
Alternatively you could abs(n) it but I don't know if that's a good side effect
 
never really though about it... but this is... interesting... behaviour
 
9:19 PM
@Rapptz That's horror.
 
@Ell Just look at the Wide source.
 
signed lets you recognise the undesired values. unsigned simply gives you some completely different value that looks valid.
 
@thecoshman 2^32 - 5
 
@Rapptz indeed
 
@Rapptz That's as good as using unsigned.
It takes negative values, but produces garbage from them.
@Rapptz If I want to forcibly ensure non-negative values, yes.
 
9:22 PM
Well, is it really garbage or is it "predictable"? I'm not sure if it's UB.
 
@Rapptz It's predictable, but unless your problem domain uses modulo arithmetic, it's meaningless to your problem.
 
Hm. I think rather than throw I would just set it to 0.
 
Yeah, that's not a bad choice sometimes.
 
@R.MartinhoFernandes depends what exactly you are after. though of course, abs is not suitable clamping
 
@sbi @R.MartinhoFernandes and any other Berliner who would want to meet me (us?) tomorrow or the next day, please send a message with your nick to 01 76 98 51 29 18 (german phone number) so I can organize stuff.
 
9:30 PM
Implicit conversions = bad.
 
It would be cool if explicit worked everywhere outside of constructors.
 
@Rakkun Sent.
 
Ell
Ahaha phantom derpstorm
Also, rapptz, it does soesnt it?
Conversion operators ?
 
I meant something like explicit unsigned i but eh. It's a dumb idea I bet.
 
Have anyone written integer wrappers?
 
9:39 PM
integer wrappers
 
void f(unsigned);
template <typename T, EnableIf<std::is_signed<T>>...>
void f(T) = delete;
 
there, I did it
 
@Rapptz Technically UB, but generally consistent unless you can find a machine with 1s complement or sign/magnitude ints. Both exist, but are fairly uncommon. Oops -- misread. You're using unsigned, so it's predictable.
 
I ask, because I wonder if it's a waste of time if I write them myself :)
 
@JerryCoffin Erm, no. It's well-defined. Non-2s-complement machines have a harder implementation, but same result.
 
9:42 PM
@R.MartinhoFernandes Yes, was just editing. Somehow missed that it was unsigned.
@CatPlusPlus Some implicit conversions are seriously problematic -- chiefly those that narrow or convert to unrelated types. Widening conversions (for one obvious example) are much less so at worst, and eliminating them usually causes far more problems than it eliminates.
 
In Haskell even widening conversions are explicit.
But numeric literals are polymorphic, so not a big issue.
 
@R.MartinhoFernandes Yes -- one of its few defects.
 
Not really, no.
 
@CatPlusPlus Yes, really.
 
Widening conversions are not very common.
And there's pretty much just two commonly-used integral types — native-sized and arbitrary-precision.
And eliminating implicit conversions makes reasoning about code much easier, so I'm all for blanket ban.
 
9:50 PM
Everything else is interop only (i.e. not numbers but serialization formats), or chainsaw psychopath target.
I should have done some laundry today.
 
@CatPlusPlus You be in favor of what you want. You're wrong, but such is life.
 
Demonstrate a problem with lack of implicit conversions.
 
I'm going to sleep now. Bye.
 
Haskell is missing few things, but weak typing is not one of them.
 
Ell
Night fo it
Robot
 
9:55 PM
@R.MartinhoFernandes G'night.
@CatPlusPlus Try Ada for a while. Come back when you're ready to admit you were wrong.
 
Evening all
 
Have you used Haskell?
 
@CatPlusPlus I've never even heard of Haskell.
 
Try it for a while and come back when you're ready to admit you were wrong. :v:
 

« first day (981 days earlier)      last day (3972 days later) »