« first day (1597 days earlier)      last day (3342 days later) » 

7:00 PM
is it possible to connect both pc and phone to one headset?
via cable?
 
no
 
-2
Q: What is the best IDE/editor for c++ on Linux

gradamI'm new in programing and i recently started study c++ and here comes my question. What is the best C++ IDE/editor for linux.

Well chat?
 
this is the type of question to avoid, imho
 
as opposed to the many, many other types asked that should be avoided?
 
7:02 PM
On SO, sure, but why avoid it in the lounge?
 
because there's no good IDEs for C++ on Linux
scratch that; there's just no good C++ IDEs.
 
hard and direct.
 
I wanna try clion... I hear its dope. QtCreator is bangin' though
 
might give clion a shot if they support Clang and MinGW-w64 now
 
Outside of QtCreator I've only used Eclipse... and that set the bar so low that pretty much everything else is awesome in comparison
I hear good things about KDevelop too
There are so many closed [c++] questions on SO. I wonder what the proportion of closed to open questions are
 
7:05 PM
there's shitloads of closed questions on SO for every tag/topic.
 
ah croap
my error model is broken again.
each statement/expression can't have more than one associated error.
welp gotta fix that
 
user1804599
Exception specifications are awesome.
 
@райтфолд So you agree with Java's choices for once? :)
 
user1804599
No, not statically checked exceptions.
 
user1804599
7:09 PM
Fuck how that's done in Java.
 
user1804599
I agree with Java's choice when it comes to non-static vs static inner classes.
 
user1804599
It's a nice, useful, consistent distinction.
 
@FredOverflow The problem with Java isn't checked exceptions, it's that they failed to support them properly.
at least that's my current belief.
 
would you stop with the fucking tech talk videos plzkthx
 
Maybe I fail to see the point but what has the smart-pointer related functionality of boost::bind to do with its ability to somehow magically resolve overloads? — bamboon 5 mins ago
Why are people seeing such "magic" there
@ThePhD that mint-green
 
7:13 PM
The first thing you need to learn is that there is no such thing. A desire to find "the best" is just a lazy way of getting out of trying a few options and determining which one best fits your needs. If you can train yourself out of this silly habit of looking for "absolute bests" that do not exist, you will be fine. :) — Lightness Races in Orbit 33 secs ago
 
@LightnessRacesinOrbit Why even bother commenting? The question isn't really allowed on SO so just close it and be done with it
 
That sounds way too boring.
 
@sehe It’s not obvious GCC reports the 'unresolved' nonsense even if it’s not an actual issue with the code.
 
@Pris To help the OP.
You wrote a function to print a vector, but you do not have a vector, so you're not passing a vector to print into your function that prints a vector... and you're wondering what the problem is? — Lightness Races in Orbit 10 secs ago
@Pris Or, meta-help, rather. He needs to know why such questions are a miserable waste of everyone's time, including his own.
Otherwise all he's going to take away from it is "they didn't like my question there", not "my question is fundamentally broken and I should rethink my approach to this".
It's in all our best interests for the broken programmers to be fixed.
 
That's freakin' cool.
It's used to inject DNA into cells.
 
7:20 PM
MEMS are dope
 
@sehe Perhaps you can use this in your answer?
 
Mmm. I guess you're right. coliru.stacked-crooked.com/a/7763d779977cec18 vs. coliru.stacked-crooked.com/a/5855b43f8f08fbd6 tells me there's a difference I wasn't previously aware of. TIL — sehe 5 secs ago
@LucDanton On the contrary. It appears to be true that it has nothing to do with special casing for smart pointers, or do I miss a link?
 
or maybe not then ;)
 
I must admit I was completely oblivious to this (except for being aware that Boost Bind is much more capable than std::bind)
 
@sehe I don’t know enough about boost::bind to know whether it is meant to support the use case here.
 
7:23 PM
Reducing redundant branch operations perhaps? — πάντα ῥεῖ 23 secs ago
0
Q: what is the name of this optimization technique?

Murat KarakuşWhat is the name of below optimization technique and why it is better than previous implementation ? const int size = 100 int arr1[size]; int arr2[size]; From double loop for(int i=0; i<size; ++i) arr1[i] = 1 for(int i=0; i<size; ++i) arr2[i] = 1 to single loop for(int i=0; i<siz...

 
It is true that std::bind won’t play nice.
 
who needs std::bind anyway, that's what lambdas are for
 
It's 2010?!! so how i can solve it?! — Kurd 9 mins ago
?!?!? !? ?!?!?!?!
 
?!?!? !? ?!?!?!?!
He means VS2010
 
@Puppy thanks, Pup. We desperately needed this :)
 
7:25 PM
@Kurd No the current year is 2015 — Borgleader 16 secs ago
 
I fully concur.
Ah pity the fool, who doesn't use a compiler, that supports polylambdas.
if he actually needs them anyway
can't say that I do right now
 
@Puppy comma, abuse
@Puppy are you drunk?
 
@sehe What am I saying—std::bind does support smart (and not so smart) pointers.
 
@sehe no.
I'm allergic to alchol now, remember?
 
@Puppy Really?
 
7:28 PM
yes.
well not literally, but close enough- alcohol and my mandatory prescription do not mix
 
Xeo
I use polylambdas so I don't have to type out the stupid parameter types, even if it's a monomorphic call in the end
 
u no liek typename pair::first_type::value_type::iterator::reference?
2
 
^^
 
hmm
 
Does that Columbo guy come in here still? I plonked him so I don't know and he's currently going mental on a question lol
 
7:32 PM
auto dest = this;
 
@Xeo btw Rust has type inference so that’s not a problem, even if there is no poly lambdas.
 
not sure what the purpose of this is.
 
@Puppy Why, it’s the initializer.
 
@Puppy That's because you used auto, so it's impossible to tell just from reading the code what's going on.
 
Xeo
@LucDanton I have a feeling I know what you'll be trying to do for a while.
 
7:33 PM
lol "monomorphic call"
 
@Xeo Well, I’m not single-minded. We said we would be doing more Haskell sometime, too!
 
user3010322
I was, uh.
 
user3010322
Gonna do something...
 
user3010322
But I think I forgot... :(
 
I'm fucking starving
 
7:33 PM
Did you know Haskell also has type inference? Alright, I’ll stop.
 
@LucDanton Indeed, but why the fuck is a local initialized to this?
 
might just give up on pub night and get takeaway in
but pub night!
 
Xeo
@LightnessRacesinOrbit Didn't you only want to get back after filling your stomach?
 
Read the rules.
16
 
3 hours ago, by Lightness Races in Orbit
GOLDEN GRAHAMS, BITCHES!
that was some time ago
 
user1804599
7:34 PM
YES MASTER
 
user1804599
wait I already read them
 
one day you may even follow them
who knows
 
ah well
it cost me a lot of effort, but now I have a sweet system for implicit lambda captures.
 
@LightnessRacesinOrbit count chocula > capn crunch > honey combs > cheerios > golden grahams
 
@Pris just what
 
7:35 PM
golden grahams are quite nice
 
my bad french toast crunch is also better than golden grahams
 
but seriously expensive and probably shit full of sugar
much like your mum
 
Sure, if by "seriously expensive" you mean "almost exactly the same price as other mainstream cereal brands of comparative pack volume".
 
user1804599
let's try GorillaScript
 
@LucDanton really. In my experience it never worked for that with boost asio. Maybe because I was half asleep and only tested using boost::shared_ptr
 
7:45 PM
INVOKE makes it work. And std::invoke now I guess.
 
'fma' is an odd operation... does a * b * x in one op rather than two... I presume it must have it's uses to be in GLSL...
 
a * b + c.
 
FMAs are useful in code generation, they're not a thing you really want as a high-level operation.
 
@Puppy yeah, that one :P
 
7:47 PM
unless your compiler's optimizer is terrifically shit.
 
@LucDanton lolwut
 
@sehe Maybe your callbacks were overloaded, which std::bind can’t deal with? :D
 
presumably useful for shader stuff, thus the inclusion
 
not a problem on Mac, I believe, which uses LLVM (i.e. a real optimizer) for GLSL shaders.
@thecoshman Yes.
the point of an FMA, roughly, is that it exploits hardware concurrency to operate faster than a regular multiply-then-add.
so it's really an internal code-generation tool.
 
well, I suppose it depends what you're algorithm is... something like 'base colour * light + ambientLight` maybe vOv
 
7:50 PM
code generation produces loads of multiply-then-adds for primitive operations.
like if you have an array of structs, and then you want to access a member of the i'th struct, that's a multiply then an add.
 
@LucDanton wait what
 
at a high level though, accessing pixel data from an image.
so it does have it's place.
but I grant you that high level code shouldn't think about such things really.
 
that is probably a GPU hardware-assisted operation that has a dedicated GLSL instruction.
from memory.
 
yeah, glsl offers FMA, which is how I just learned of it
 
no, I meant, accessing pixel data from an image.
image access patterns tend to be in two dimensions instead of one, so from memory, GPUs have special memory regions and instructions designed to access them more efficiently.
 
7:55 PM
oh right
 
where can i write code to get an URL to share ? Do you know ?
 
no
 
@Theorem What do you mean?
 
@Pris i have written a code and i want to share here with few questions , but i am not supposed to throw in a code more than 5 lines . is there a platform where i can write and share the link ?
 
@th pastebin.com
danm this chat :D
@Theorem pastebin.com, pastie.org, ...
 
7:59 PM
@jPlatte thanks
 

« first day (1597 days earlier)      last day (3342 days later) »