« first day (1457 days earlier)      last day (3486 days later) » 

12:00 AM
I wonder if some of standard algorithms would ever be constexpr, like std::find.
 
Ranged find on an initializer list. Zing
Or find on a static constexpr array. Mmm.
 
I know it doesn't exist. ("I wonder ... ever")
 
In C++14 making these algorithms constexpr is fairly easy.
 
Even without constexpr, wouldn't find on a static constexpr array already inline + optimize ?
 
12:02 AM
I look forward to using your stdlib implementation
 
@sehe I need value on compile time some time.
 
> Look, I get the humor and it's hilarious but gay people ARE different. We can't just act like it's all the same. People these days don't know what equality is anymore. Like females with their claims of double standards.
 
for example - compile-time string processing.
 
@EvgenyPanasyuk Don't see why not.
 
@Rapptz Yeah, I also don't see technical problems.
 
12:04 AM
That was a short and intense
 
For instance, it already works.
 
Ell
@EvgenyPanasyuk woah
I didn't know you could do that at compile time
 
With C++14 you could.
You can even have local variables, etc.
 
IIRC constexpr doesn't necessarily mean "compile time".
 
@Sofffia yes, there are some nuances.
 
Ell
12:10 AM
When doesn't it?
 
@Sofffia Forced to be evaluated at compile-time if called in a constant expression context.
 
@Rapptz Such as static_assert?
 
yes
 
Ell
Why would you ever want it to be runtime in a static context?
I mean.
Why would you want it runtime ever?
 
because they're regular functions
 
12:13 AM
I miss writing in C++. Just a little.
 
Ell
Can you allocate memory at compile time?
 
Nope.
 
@Ell In some sense - yes, you can build compile-time linked list, with variable length.
 
@EvgenyPanasyuk Via a template trick of some sort?
I remember reading an article about that.
 
Ell
Probably a recursive definition of a list
The traditional functional one
 
12:14 AM
Here is an example: stackoverflow.com/a/9528554/1762344 (there is link to .cpp at bottom)
 
Ell
1 cons (2 cons (3 cons ...))
 
Unfortunately, but I don't see a way to return variable length thing from constexpr function. Because length must be encoded in return type in some way. I tried to return initializer_list to overcome this, but it doesn't work.
 
Ell
By the by, how do I pronounce your name?
 
@Ell Like this (there is sound icon)
 
Sounds like Afghany.
 
Ell
12:22 AM
@evgeny I assumed it not to be phonetic o.O
 
@Ell It sounds a bit differently in my native language
Another example of pronouncement at 21:50
 
Ell
A little yeah
 
12:37 AM
-3
Q: how to sell a C++ library that u created

LauraI have built a c++ library.I want to sell it. What the steps I should follow and also how to hide it so that no one can see how I implemented but he can use it.

 
sensationalised
it's a good thing, yeah, but no cure is 'imminent'
this is essentially just encapsulation of beta cells and since the disease is autoimmune they'd just destroy the new cells anyway
not to mention due to the nature of them being stem cells it means it has to be tailored to the specific patient, i.e. expensive
the main solution to the problem would be to constantly inject these beta cells into your body that way even if the T1 kills them you'd still have some cells producing insulin for you
but that is again expensive
 
Ell
1:08 AM
Oh. The imminent thing was the bit I was excited about
I wish the media wouldn't lie so much
 
1:33 AM
I was messing around with cellular automata
does anyone recognize this?
 
2:16 AM
posted on October 12, 2014 by Eric Niebler

Eleven months ago, I began work on an updated range library for modern C++. Yesterday, I submitted a proposal to the C++ standardization committee to add ranges to the Standard Library. The proposal presents a vision for a future Standard Continue reading →

 
2:39 AM
@Feeds Good luck.
 
 
4 hours later…
6:57 AM
Argh. It said build succesful. Y U have no files made.
 
7:10 AM
10
A: Printing an array in C++?

FredOverflowMay I suggest using the fish bone operator? for (auto x = std::end(a); it != std::begin(a); ) { std::cout <<*--x<< ' '; } (Can you spot it?)

Yay, "nice answer" badge for the fish bone operator :)
 
How to get the include_directories of target in CMake ?
 
Can any one help me compile boost? Its driving me nuts.
Thought it would be easy. Argh.
 
use your package manager
 
I don't think you can..?
 
which distribution ?
 
7:18 AM
Every thing points to building it with gcc
Just download source and build...
 
which distrubution you are using ?
 
Huh?
Sorry lol
 
using Linux right ?
 
No.
Windows 8... ubuntu got wiped ages ago :/
 
so you are using gcc on windows 8 ? with MinGW ?
 
7:22 AM
Yeah
I think it compiled fine, but there are no object files.
 
@Mixerman123 You should give Linux Mint 17 Qiana a try.
 
If compilation is fine there should be object files
 
Hmm, yeah. Problem is (yeah I know I could dual boot) I game alot as well.
@NeelBasu I know, it doesn't make sense.
 
@Mixerman123 Linux cured me of gaming.
 
7:24 AM
Haha :D
 
There are prebuilt binaries for windows on boost.teeks99.com
 
Code Blocks?
 
But I don't know whether they have mingw or not
 
All the prebuilt one's I have downloaded are for visual studio.
 
may be boostpro is a good try. I don't know whether that have mingw or not
 
7:27 AM
Thats for vs isn't it?
Argh..
Tring to compile with gcc again..
 
0
A: Clearr cmd after sending text

NoodlesType help in a command prompt. Look at cls.

^^ a bit of butthurt
 
Ouch.
Oh! When I compile this time every single module failed.
... it is going through every file failing...
Can any one understand this? tinyurl.com/l2ye63b It's alien talk to me.
Spent 2 hours on this, might be worth me finding another lib for serialization.
 
7:42 AM
@Mixerman123 Use Java ;)
 
Argh. I wish. Hows this; in java, you can edit code and it shows up straight away!
Any comprehension on the error?
Wow crap just looked at your profile.
 
Crap looked at my profile? What did crap see?
 
Brown.
:P
I think the end of the error, boost/FILE.hpp no such file or dir is meaning I have the file system setup wrong. Not that I'd know.
I just realised that instead of going to all this trouble for serialisation I could just put an ID on my objects. Fuck.
 
8:07 AM
Might use this s11n.net
Oh, it's old. I doubt that matters.
 
8:44 AM
Just found out about this: nuwen.net/mingw.html#install freaking best idea ever.
 
9:01 AM
May 15 '11 at 12:48, by FredOverflow
@TonyTheTiger You may find the nuwen MinGW distro interesting. It already includes the latest Boost.
olden but golden :)
 
I can't get code blocks working with it :/
 
Are you on Windows or Linux?
 
Windows.
 
May I recommend Visual Studio?
 
mm. I have been thinking of using it.
 
user1804599
9:08 AM
@StackedCrooked weird
 
user1804599
I want to implement fibers in my runtime library.
 
the Nuwen distro doesn't have threading
just a heads up
 
Why?
 
I remember asking STL a while back.
 
Also, probably doing somthing nooby, but it's just not finding sfml/boost or anything
Any ideas?
Do I have to put my mingw lib directory or somthing in my search directories? That seems stupid..
 
9:12 AM
Damn.. What has stackoverflow become? 15 downvotes really? 1-3 wasn't enough? Did everyone really feel the need to do OP like that? God.. She only has 1 rep -__- — Brandon 6 hours ago
 
ouch
 
Yeah. I don't usually mind, but this seems a bit excessive
 
Can I see the question?
 
@sehe newbies like that can be missed like the plague
 
click on '6 hours ago'
 
9:14 AM
k
 
oh it just got deleted
 
It's been deleted.
Yeah
 
@TemplateRex I don't get it. It's never about the person. It's about the behaviour. We can easily condition, without inducing instant question ban
 
cheers
 
9:15 AM
@sehe if the conditioning has not caught on by the time this person read the FAQ, what else is going to work?
 
@Rapptz Why is your font bold?
 
I hate change so I have a userscript.
 
oh
 
@TemplateRex buh people don't (need to) read the faq. I know I never did
 
9:17 AM
Hmm, that question is odd, but it got way too many downvotes. That person obviosly didn't understand it too well.
 
@Rapptz So what does that 100k emails post look like? Or my post for that matter?
 
you mean this?
 
oh, it didn't wrap
 
Stop posting my PIN
 
@sehe 5 digit pin?
 
9:18 AM
I don't know how it looks like with regular SO
 
@Mysticial where should it wrap? I don't see a breaking oppty
@TemplateRex Yeah. I reckoned it would be more secure :(
 
@sehe I remember there was a bug somewhere that caused the minus to wrap on the 100k emails post.
 
Can somone help with linking my project? Since I used that new distro, it hasn't worked. It just can't find sfml or boost. Any ideas? These should come with the distro..
 
But it went away when they shunk the font.
 
> sfml
 
9:19 AM
link me to the 100k emails post?
 
appropriate
@Mixerman123 which one? nuwen has sfml?
 
-147
Q: How to send 100,000 emails weekly?

xRobotHow can one send an email to 100,000 users on a weekly basis in PHP? This includes mail to subscribers using the following providers: AOL G-Mail Hotmail Yahoo It is important that all e-mail actually be delivered, to the extent that it is possible. Obviously, just sending the mail conventiona...

 
2.1, or 2.0.
 
whoa wtf
it's not deleted?
 
@Feeds Eric dragging in Sean Parent and Andrew Sutton in as co-authors at the eleventh hour
 
9:20 AM
@Rapptz It was, twice until it got locked to prevent further deletion.
 
@TemplateRex they did think along. They might not have been writing the proposal, but you know how it works if a "lone person" submits a proposal vs. a group of people
 
admittedly it does look a bit odd
 
@sehe yah, but it feels like a political move
 
That's what I said. Nothing wrong with politics if you're going to confront a committee with real stakeholders :)
 
@Rapptz Yeah, that's weird...
 
9:21 AM
@sehe and totally unnecessary
 
@sehe I feel like an idiot. It doesn't come with it. I linked it to the sfml 2.1 I downloaded though, and it doesnt work. It used to though.
 
Andrew Sutton did write parts of the proposal
 
@TemplateRex Disagree. Also, his call, really. Why judge?
 
He made multiple changes to the concepts part of it.
And he really helped Eric Niebler understand Concepts Lite.
 
So, it's not even bogus
 
9:22 AM
@sehe true, I just couldn't help noticing
so did anyone already try and play with his code?
 
5 contributors
I don't remember what Sean Parent helped with though.
I think it was really early on.
 
Performance and interface questions
 
Yeah more than likely they had to do with design.
 
And that's just the pulic discussion on the blog. I know that he (frequently) referenced offline "seminal" ideas he got from Sean
 
Well what I'm saying is that I don't think listing them as co-authors was political.
 
9:27 AM
@sehe although it does seem weird to thank your co-authors in the acknowledgements :-)
 
why?
 
This is a much earlier spot: open-std.org/pipermail/ranges/2013-January/000090.html (jan 2013)
 
WTF, g++ is saying cannot find -lsfml-main-d when I am telling it -llibsfml-main-d
 
-llib is wrong
 
oh
Sorry new to this :P
 
9:29 AM
@Rapptz 3 people co-author a proposal, then they shouldn't acknowledge themselves
 
"shouldn't". Again. Why judge. I don't think this is strange.
 
I don't see the problem with thanking your co-authors
 
Alright fuck that, leaving it for tonight. Why the hell cant I run boost with sfml!?!? Cya guys. :)
 
I think people do it more than you think
 
@sehe I have refereed many academics papers, never saw this before, I don't judge, just find it odd
 
9:30 AM
At the Oscars, directors can still thank their crews
 
@sehe but crews are not listed on the poster or dvd
 
They can thank whoever they want ?_?
 
@TemplateRex Hint: You did judge, twice. I don't make up that you said "they shouldn't acknowledge themselves". It's what you say.
@TemplateRex actors are in the crew, I just wanted to make it more general, by saying crew. They can, and do. Not just "Thanks mom"
 
@sehe actors are in the cast, and they are listed
the crew is the camera guy etc., they are acknowledged
 
Ok. I'm not into movie awards/jargon. Sorry for that confusion
Anyhow, s/crew/actors/
 
9:32 AM
actors are still acknowledged
 
in this paper, Alex and Bjarne are the crew, Eric the director, starring Sean and Andrew
 
Hahaha. Awkward at best
 
I am surprised Alan Turing and John Von Neumann aren't acknowledged
 
I'm surprised you're so bad at lying
 
Okay.
 
9:34 AM
not to mention Kernighan and Ritchie, and the director of Bell Labs for providing Bjarne with the means to work on C++, and Moses for splitting the Red Sea, and...
@sehe anyway, Sunday is the perfect day for being judgemental
 
Aha. Carry on with mental judgement
 
@sehe glad to see your word association is still in tact
 
I went outside for abit, and grabbed a pear before that occurred to me
 
@sehe thank Freud for that
or Fruit
 
put him in the acknowledgements
 
9:38 AM
@sehe and Puppy as well, for cursing at all the people being wrong about C++
 
user1804599
> Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"), function cast, file /Users/rightfold/llvm/include/llvm/Support/Casting.h, line 239.
 
user1804599
ugh XD
 
lol how strange
the C++ domain file is larger than the Python domain file for Sphinx
 
9:57 AM
@sbi yes and no... erm... IRC it was a bad pun about how CPU => CP-You is not as social as 'CP-WE'. I care not to read the context, I'll leave that to you. Happy now monkey man?
so... do other peoples cats seem to get really excited when it shits? Mine always runs away from the little box and up the stairs like nothnig else.
@Ell that's fucking brilliant
 
@EvgenyPanasyuk I don't understand the for_each_part(auto x, ...). Specifically the auto part. :/
Oh wait, maybe it's a macro.
Nevermind. Got it.
 
user1804599
LLVM WTF
 
10:15 AM
Hello!
 
@rightføld what?
 
DWORD bufferSize = 255;
TCHAR buffer[bufferSize];
DWORD bufferType = REG_SZ;
HKEY hkey = NULL;

QString result = "Не удалось определить";

if (RegOpenKeyEx( HKEY_LOCAL_MACHINE, TEXT("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"), NULL, KEY_READ|KEY_WOW64_64KEY, &hkey) == ERROR_SUCCESS) {
	if( RegQueryValueEx( hkey, TEXT("ProcessorNameString"), NULL, &bufferType, (BYTE*)&buffer, &bufferSize) == ERROR_SUCCESS )
	{
		result = (LPSTR)(buffer);
	}
}
return result;
Result always equal only first letter of a value. What I do mistakenly?
 
user1804599
@Puppy I add a global with type { i8*, i8, i32 }* and I use that for two incoming values on a Φ instruction which also has type { i8*, i8, i32 }* yet it raises a type error.
 
because a global's Value* is a pointer.
 
user1804599
Ah, so LLVMAddGlobal returns a pointer.
 
user1804599
10:17 AM
:v
 
global variables are memory regions, so they need to be pointed-to.
if you want to get the current value, you need to load it, just like any other.
 
user1804599
omg it works thank you <3
 
user1804599
Decided to have two global true and false objects rather than allocating them every time. :P
 
heh
fair enough
 
user1804599
I'm now also not boxing Booleans until they are upcast.
 
user1804599
10:22 AM
As in if (boxed) llvm.pointerType(llvm.structType(objectPrologue :+ llvm.intType(1), packed = false)) else llvm.intType(1).
 
The Sphinx C++ domain is impressive.
It's like a semi C++ parser.
Maybe I'm just easily impressed lol
 
yeah, "semi" C++ parsing isn't really that impressive, it's full parsing that would be impressive
 
Yeah I know.
But I just like that this guy went out of his way to improve the original Sphinx C++ domain.
Which had trouble parsing complicated signatures and member types.
 
smart man just uses Clang these days
 
Probably.
Especially since libclang is in python
but Sphinx doesn't actually parse C++ source files.
just signatures/classes/types/etc you feed it
 
10:58 AM
packing, yay.
@Rapptz sizeof/templates really makes the two jobs equivalent.
 
?
 
QString::fromWCharArray(buffer) It works for me.
@ScottW Hi :)
 
user1804599
11:13 AM
Wut std::type_info is polymorphic.
 
user1804599
dat angle
 
seems asrock mb's bios features something that lets you run both the integrated and dedicated GPUs at the same time (1 screen each)
guess I know what mb I'll get next
 
OpenGL is weird
 
Why would you want to run integrated GPU
 
well I already have it
 
user1804599
11:29 AM
@Puppy does Wide have exceptions already?
 
and it could render my desktop just fine
 
@ScottW lol
 
The only reason for running integrated GPU is saving power, but if you're running both then that doesn't apply
 
I don't know how much doing something on another monitor affects a dedicated gpu's performance
(while playing games)
but it can't be 0
so doing it on the integrated gpu would remove any performance hits
 
lol
If you're doing something outside of a game then no performance hit matter
 
11:37 AM
1337 time!
 
@CatPlusPlus that's a valid point
in that case, the only other advantage of this that I can think of is...
 
Literally nothing
 
compatibility stuff
 
Things are likely to be more compatible with a dedicated GPU than some crappy integrated one :v
(hi Intel)
 
some old games ran better on integrated video than on my old GTX 460 (actually, Sacred was unplayable on it)
I did not test them on the GTX 760 yet
must be the drivers or sth
gog says all of their games run well on modern hardware and software but yeah
there are some that fail to do just that
 

« first day (1457 days earlier)      last day (3486 days later) »