« first day (1355 days earlier)      last day (3579 days later) » 

user1804599
7:00 PM
@StackedCrooked The compiler can optimise that out!
 
user1804599
There are no observable side-effects and the thread doesn’t terminate. :P
 
@rightfold Good question. What runtime instructions should or could it even generate?
 
strange this one... the ladies laptop is for some reason really really slow on wifi, like only just working.
 
user1804599
It can translate to assembly like this:
 
plug in cable, and it's fine
but on the wifi, only just working
 
7:01 PM
.L2:
.L3:
	jmp	.L2
 
user1804599
cmp 1, 1
jne f
yes:
    jump no
f:
no:
    jump yes
 
@StackedCrooked Any, because it's UB.
 
@StackedCrooked What do you gain as opposed to std::max_element or std::min_element?
 
user1804599
C? It’s #.
 
7:04 PM
> CJay -- Seamlessly call Java classes from C++. The CJay C++ library abstracts the use of Java™ Native Interface. Please, add comments with first impressions... (github.com)
 
user1804599
inb4 class AbstractClassManager { … }; with non-virtual destructor.
 
@Jefffrey in this example program nothing. however, in my project I can't use max_element because there is no input range. (updates happen periodically)
 
welp
that was well worth the purchase.
got about 23h out of £2.79 (£2.74 earned by selling shitty CS:GO skins) for FTL.
 
just dropped in on mobile for excitement but you're all being bloody boring. cya!
@Puppy hope you enjoyed that 5p of my tax pounds
 
@StackedCrooked I see.
 
7:08 PM
@LightnessRacesinOrbit Yep, indeed I did.
and today and yesterday I did bugger all jobhunting
just wanted to let you know that
 
user1804599
I am extremely interested in Scala.
 
user1804599
 
user1804599
I’m an idiot.
 
user1804599
At least, if that boy is 10 years old.
 
@rightfold More than Haskell? :)
 
user1804599
7:13 PM
@StackedCrooked Sure.
 
user1804599
Haskell is boring.
 
user1804599
Scala is exciting.
 
user1804599
JVM FTW.
 
user1804599
7:29 PM
A man and a pool table http://twitter.com/UnexpectedGifs/status/484405482673958912/photo/1
 
user1804599
dat pun
 
What's the Standardeze name of using using for typedefs?
Alias templates, right?
 
@EtiennedeMartel yes
 
Alright, thanks.
And hey, what a surprise, VS2012 doesn't support that.
 
user1804599
7:33 PM
@StackedCrooked multimethods done.
 
@rightfold you know more than a regular 19-year old
 
user1804599
What do you mean?
 
Most 19yo don't know about multimethods prolly
 
user1804599
Most likely.
 
user1804599
Neither do most 19yo programmers.
 
user1804599
7:35 PM
Or most programmers in general.
 
user1804599
@StackedCrooked I have never used protocols, though.
 
When I was 19 I had written a few pascal programs at a school course.
 
user1804599
I have used protocols in Elixir, and I’ve read they’re extremely similar to Clojure’s.
 
Like printing a christmas tree with variable height.
 
user1804599
@StackedCrooked Clojure didn’t exist when you were 19.
 
7:38 PM
multimethods did
:P
 
Congrats [C++] over 300,000 questions!!!
 
One of the exercises was printing pascal's pyramid.
 
Thanks but you know we don't make most of the questions
 
I liked programming :P
 
There is plenty with which most 19 years olds are familiar that @rightfold will never know, I'd wager...
 
7:39 PM
When I was 19 I already did most of the impressive programming things I did at all. It all went downhill after that
You know like getting a job
 
user1804599
@LightnessRacesinOrbit indeed.
 
or feeling the warm caressing touch of a beautiful woman
or seeing sunlight
no offence
 
user1804599
Also, I’ve removed data types from my programming language idea.
 
user1804599
They don’t exist.
 
what don't exist?
 
7:42 PM
@rightfold it's all zeroes and ones
who needs types
 
well you still have to type them...
 
user1804599
You can do polymorphism with multimethods dispatched on prototypes.
 
who gives a fuck
seriously
 
I think I found a bug in Catch.
 
7:43 PM
@EtiennedeMartel catch the bug!
 
did you ca- never mind
 
user1804599
So you could say declare now/1; and then now(clock: SystemClock) = …; now(clock: ConstantClock) = …; where SystemClock and ConstantClock are values.
 
@StackedCrooked Is Catch on Coliru?
 
oh god just stop
did coliru Catch the bug
 
No I don't think it is.
 
7:44 PM
bzzzzzt
 
It might be in the archive.
 
RESOLVED/WONTFIX
 
char * p = nullptr;
CHECK(p == nullptr);
This fails to compile.
Feel free to try it at home.
 
Don't you think a bit of a overhaul would help on Coliru? Like slapping a nice CSS or something
 
The error is...?
 
7:45 PM
Seems like the issue is the comparison with nullptr in CHECK.
'operator <<' is ambiguous
 
@Mr in what way would it help
@Etienne yikes
 
Just make it prettier.
 
I had a question about
2
A: Template shadow error with clang

Jarod42The names S, T, Args in the template template argument C template <typename S, typename T, typename... Args> class C are superfluous AND have the same names as the S, T, Args from maptype. The fact that the names are identical produces the shadow error on clang. So you may write template <ty...

I'm a little confused here. Suppose I wanted to swap the order of S and T in template <typename S, typename T, typename... Args> class C, I couldn't do that if the names weren't available.
 
@EtiennedeMartel @EtiennedeMartel you could do this. However, you are likely to run into Coliru's runtime limits.
 
perhaps you should ask the answerer
 
7:49 PM
Hmm, it passes on G++.
 
@FaheemMitha You need the names of the type parameters of maptype for that, not C
 
@EtiennedeMartel If your classes support operator<< then this operator should be defined in the same namespace as the classes. (You may already know this..)
 
11
Q: Correct, clear, concise way to use "potato-potato" in writing

o.v."You say tomato, I say tomato" and the song from the beginning. As an informal turn of speech, it can be used to show that two or more parties are talking about basically the same thing but not in same exact terms, or not quite agreeing on the specifics. Yet written down as tomato-tomato or pot...

"How to say potato"
 
@StackedCrooked Yeah, but nullptr?
 
user1804599
@StackedCrooked I always make it a friend. :3
 
7:52 PM
@rightfold Me too.
 
@Mr.kbok Ok, thanks.
 
This means that implementing operator<< for std::vector<int> is tricky. Where do I put it?
 
o_0 woah this laptops wifi is shite 60% packet loss pinging google
 
user1804599
@StackedCrooked in std namespace.
 
I used to have typedef std::array<uint8_t, 4> IPv4Address;. In my namespace with an overload for operator<<.
 
user1804599
7:55 PM
AFAIK you are allowed to put specialisations there.
 
I got trouble with gtest. I ended up replacing it with struct IPv4Address { uint8_t bytes[4]; };
 
user1804599
Strong typedef!
 
@rightfold I should doublecheck.
@rightfold I have played with strong typedefs a lot.
They can be useful.
 
Also, I was surprised just now to find that clang builds against gcc compiled libraries, and runs too (on Debian). I thought it used its own standard library.
 
@EtiennedeMartel operator<< for nullptr is ambiguous? (Which are the candidates?)
Btw, you can disambiguate with using preferred_namespace::operator<<; before the invocation.
 
7:58 PM
No, you get the choice. LLVM does indeed have their own C++ library, but it's not as mature AFAIK
 
user1804599
I wish operator@ were just a normal identifier.
 

« first day (1355 days earlier)      last day (3579 days later) »