« first day (1070 days earlier)      last day (3892 days later) » 

12:01 AM
@Mysticial Me again :P How complex is the code behind your applications that maxes out the CPU?
(not ycruncher, the one that's you made specifically for this)
 
what even is an unsigned char?
 
Why do so many electronics need a triwing screwdriver. :(
also hi
 
@Borgleader Not really that complicated: github.com/Mysticial/Flops
The single file self-contained version is on the Flops question.
 
What do I change in MSVC so it wants to link against libboost_filesystem-vc110-mt-sgd-1_53.lib instead of libboost_filesystem-vc110-mt-gd-1_53.lib
 
@sehe me not know what to do..
 
12:09 AM
@Mysticial Oh cool, thanks :)
 
@Borgleader Why didn't you choose the system option when you built it?
 
@Rapptz It's cinder's libs, not mine
 
Wow Herb's advertisement works eh?
 
I tried linking against the boost libs that I built, but it was complaining about something else
@Rapptz I'm just curious. Theres a few things I find dumb about it already
Most notably there example of a particleemitter uses a fucking std::list<Particle>... I mean come on, are they trying to waste CPU cycles?
 
lol
 
12:12 AM
And their use case is litterally "Create emitters", "add 250 particles", "render loop"
 
I'm too lazy to improve my particle system
 
@zch it's not that hard to add int main(){} yourself, is it — sehe 6 secs ago
 
@Borgleader looks good , ship it
 
std::string
hex2bin (std::string val)
{

  auto p = std::stable_partition (
    val.begin (), val.end (),
    [&](char const&r){return (std::distance (val.data (), &r)&1)^1;}
  );

  std::transform (val.begin (), p, p, val.begin (),
    [](char b1, char b2) {return std::stoi (std::string () + b1 + b2, nullptr, 16);}
  );

  ;      val.resize (val.size () / 2);
  return val;
}
@sehe ^ this should be your answer
 
Ok, love has gone away. I can come back.
 
12:18 AM
just to troll as hard as possible
@sehe also, std::stoi instead of std::istringstream (on a more serious note)
 
@Rapptz Apparently the solution is to use /MTd and not /MDd, but I already did that.
 
@Borgleader McD is almost never the solution. unless you're drunk, then it's always the solution.
 
@refp thanks, I didn't know it had the radix argument! I'll take it!
> std::string () + b1 + b2
^ BLODDY HELL, though
 
@sehe I was trolling..
 
shitnibbles it's cold
 
12:22 AM
@Borgleader whats MDd ?
 
also I'm sick.
 
@sehe just do std::stoi (val.substr (pos, 2), nullptr, 16) as you did earlier
 
@A.H. Multithreaded Debug DLL.
 
@DeadMG your appointment is getting close though , right ?
 
is anyone else going overboard with functional programming in c++11 like i am? :D
 
12:22 AM
@A.H. lol no.
13th November
 
ah so MTd means multi threaded dll ? i thought it was multi threaded debug
@DeadMG damn
 
@A.H. Yep.
 
@patmanpato I hope not.
 
lol
 
the little d is DLL.
the big D is debug.
 
12:24 AM
@patmanpato we don't even have tail-recursion (at least not specified in the standard), dawg.
 
makes sense
 
I sometimes wonder what the performance price is of lambas with things like std::for_each vs oldschool loops
 
"the big D is debug" pff, fcuk that.. we all know that someone who wants the D wants the.. wait for it.. DAWG.
 
@refp well yeah, but c++11 gives you a nice subset of functional tools
 
@refp nah:
further improved, to use std::stoi instead of istringstream in hex2binsehe 5 secs ago
 
12:25 AM
@patmanpato Depends on compiler, ultimately, but a modern optimizing compiler should put it at zero.
 
@refp Haha. I've read the rest now. Classy. I like the way to get pair-wise iteration going. I believe someone asked about that the other day!
 
@DeadMG phew. Since I kind of went overboard when my boss said "hey, build this thing from scratch in c++" :D
 
@sehe h4ckeli-hack! did someone answer the question you're thinking of with something interesting?
 
come on
if you have a performance issue, you should have investigated yourself.
if you don't have a performance issue who gives a fuck if it's slower
 
@refp It was in the lounge. Hence: of course not
 
12:27 AM
@sehe also; now just fix bin2hex!
 
@refp nah. ~effort~
 
@DeadMG haha i know. it seems fine, but everything else relying on my component is so much slower it's hard to tell :D
 
Sep 15 at 19:35, by Ell
I want to iterate over {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
like this: {0, 1}, {2, 3}, {4, 5}, {6, 7}, {8, 9}
what is this called? is there a standard algorithm for this?
 
@sehe effort is good..
 
I know right. On that note, 2:29am, off to bed
 
12:30 AM
@sehe I should do the same.. peace!
 
@sehe night
 
@WhozCraig oh hey, I missed your comment. That's funny indeed. I'm glad I referenced the same seminal article by M.Austern :/ — sehe 17 secs ago
@A.H. cheers
int hash(std::string str) { return 0x00000000001; }. You're welcome. — Richard J. Ross III 13 mins ago
^ brillant
 
@sehe Chatting from your bed?
 
Trying to detach from keyboard
 
12:53 AM
Finally got my bag from the office
Didn't plan to go in because off to this hiking trip this afternoon
 
1:10 AM
Hmm. If func returns 0 is int x = func(0) + func(1) undefined anyhow?
0
Q: Is func() + func() undefined behavior in c++?

user2482012I only know i = i++; is undefined behavior, but if there are two or more function call in a expression, and all the functions are the same. Is it undefined? For example: int func(int a) { std::cout << a << std::endl; return 0; } int main() { std::cout << func(0) + func(1) << std::en...

 
@Jefffrey The order in which func()s are called is not defined.
 
Why?
 
I believe it allows the compiler to optimize the code by calling the functions in a different order than as it is listed in source code.
(Don't quote me on that)
 
33 secs ago, by In silico
I believe it allows the compiler to optimize the code by calling the functions in a different order than as it is listed in source code.
 
@Jefffrey ("quote" meaning "quote as an authority" in this case. :-P)
 
1:15 AM
Oh ok. But yeah, it could make sense.
 
Besides, it shouldn't matter anyway. Addition is commutative.
If func() have significant side effects, that's your problem.
 
"Unspecified"? How is that different then UB?
 
123
Q: Undefined, unspecified and implementation-defined behavior

ZolomonWhat is the difference between undefined, unspecified, and implementation-defined behavior in C and C++?

 
Anyway, today I learned I made this... sometime.
 
Unspecified means the standard just don't tell anything about that. UB means that you are fucked.
 
1:17 AM
(I'm being sloppy with my wording)
 
@Pawnguy7 with what?
 
Um... HTML and CSS I guess :D
I was looking for the file that generated the island in my picture.
 
Oh.
I thought C++. That would have been insteresting.
 
It would, yes.
 
Even my mum can code HTML.
 
1:19 AM
Haha. Haven't heard that one before.
I cannot remember what it was for... what do you think of the visuals?
 
Design-wise?
 
What other ways are there?
 
@Jefffrey Both can mean that you are fucked. It depends on what context.
 
Would nondeterministic mean it would vary from one execution to the next (potentially)?
 
WisdomMG
 
1:23 AM
@Pawnguy7 It's colorful (therefore joyful), 70' oriented and clean. But never ever put underline text: it's very ugly.
 
@Pawnguy7 Both unspecified and undefined behaviour can definitely do that.
 
Is int* a; *a = 1; undefined behavior?
 
@Jefffrey A reader of the blog said they didn't know the blue links (previously not underlined) were links. And I guess it isn't as obvious in this context they are links.
 
@Jefffrey yes
 
@Pawnguy7 21s century links are blue by default.
 
1:25 AM
@Pawnguy7 You can make them look like buttons instead.
 
@Jefffrey Yes. And underlined also, are they not?
 
@Pawnguy7 Only when you :hover on them.
 
@Insilico could, though if they were buttons and everything else - and I mean everything - was text, it might look a tad strange.
@Jefffrey Oh. I thought they were underlined always, least last time I used them.
 
@Pawnguy7 look at SO for example.
 
The thing is that your text is one of like 5 different colors. If you keep it consistent throughout the links would be more obvious.
 
1:28 AM
@Jefffrey I see.
 
So perhaps use green only for header-like things, white for the actual text body, and red for links.
 
@DeadMG I looked up the definition of deterministic, and was a bit unsure. I meant to say, if something is undeterministic, if it means things like that.
 
well, here's a revelation for you
I feel so fucking sick
 
LOL, you need balls to write i++ + ++i.
 
To me specifically?
Found it. It isn't in a running state :\
 
1:33 AM
I'm not in a running state
 
@Jefffrey You need something -- but it's more about stupidity or insanity than balls.
 
function Coord(var x, var y)
Is this not valid javascript?
 
You are not valid, if you are using javascript.
(But seriously, I don't know)
 
@Pawnguy7 No.
 
This is why I hate javascript. There is probably a typo somewhere that makes it all not work :\
 
1:43 AM
Never enough jQuery.
 
Or like the time I wanted a char, and I got "undefined" instead.
Because apparently undefined is a string.
 
It's not.
 
@Pawnguy7 Javascript is not valid.
 
Anybody want to figure out what is wrong in 200 fairly spaced lines?
Maybe I should just remake it with SFML.
 
What if RAII is just one of many programming techniques and we should instead manipulate a doubly linked list of functors?
 
1:49 AM
Is non-JS commonly used for things? (that compiles to JS)
 
@Pawnguy7 node-js?
I am feeling so underwhelmed, you might call this place StackUnderflow
 
@JerryCoffin its looks kinda pretty though
 
@A.H. Javascript pretty? Surely you jest!
 
no UB in C++ is !
JS is pure evil and should be kileld
 
@A.H. Hmm...tastes differ, I guess.
 
2:01 AM
btw does C++ suck at embedded systems ? or is that too broad of a domain and it really depends ?
because I have course this semester about embedded systems and they are going with C and assembly
 
@A.H. It doesn't innately suck, but afaik there's less support for c++ than c and asm
 
"at least give me some code", you're in the wrong place to ask for that. — Borgleader 7 secs ago
 
-1
Q: updated question needs some upvote love

Mark Harrisonrephrased to remove the library flavor, instead asking question directly... How do I perform latitude/longitude calculations in Python?

^^ @DeadMG Looks like somebody discovered something better than link dumping in chat. :)
 
one step above link dumping in chat xD
 
heh
 
2:08 AM
@Mysticial Is his account hacked? Those are pretty much shitty questions for such a high-rep user.
 
4k is high rep ?
 
lol
 
nvm saw 51k on SO
 
2:22 AM
@A.H. 58K?
 
damn floats
 
2:42 AM
-1
Q: Why java does not recover from deadlock?

AKSI am reading the book Java Concurrency in Practice, and here is what it says about deadlock. JVM does not recover from deadlock, and only way to get rid of dead lock is to restart the server. It also mentions that JVM uses graph search where Thread acts as graph node and edge between two ...

^^ "Why doesn't Java protect me from trying really hard to shoot myself in the foot?"
 
Read: Why Java sucks?
As I always mention, Comments are more useful than downvoting. so please put your comments rather than simply downvoting. — AKS 1 min ago
He has a point.
And a good one.
 
> Maybe the vulture capitalists didn't wish to fund a compiler project? Source
Someone didn't read the article...
@MarkGarcia Actually he doesn't. Comments can and have led to a lot more shit than just downvoting.
 
@Borgleader I'm mostly basing on his question. It fits my "Not a bad question, just off-topic." reasoning.
So if someone gives a downvote, he should justify and give a reason in a comment.
 
"This question doesn't deserve to be downvoted" is very different from "Comments are more useful than simply downvoting"
And like I said, sometimes justifying your downvote with a comment stirs up a lot of shit. I've seen it happen, it's been discussed on meta and I understand people who just downvote/VTC and move on.
 
I mostly just do that with VTCs, as they are coupled with their reasons. For downvotes, I'm basing on the alt texts of the up/down vote buttons.
@Borgleader And I thought that the article is really about Clang the compiler.
 
2:56 AM
From the title it would seem so, until you actually read the article:
> Venture capitalists weren't willing to take a risk on a swordfighting game [...]
hence my comment
 
@MarkGarcia I am confused
why is clang sword fighting ?
 
Theres a compiler named clang, there also seems to be a game named clang
some dude posted in the comments about the compiler, either by attempting to make (a shitty) joke, or just didnt read the article and assumed the article was about the compiler
 
@A.H. Read the article. ;)
 
oh as in clang the sound a sword makes when it hits another sword?
 
oh and... read the article :P
 
3:07 AM
clang clang. Though I read Clang the compiler as "see lang".
 
@MarkGarcia I used to do that too
then I watched going native
 
i used to read std::string as ess-tee-dee string, but since GN2013, Im starting to read it as stud string -.-;
 
Jeez man.
 
@A.H. I'm not following them. Also "std" as "stud" while mine is "es ti dee", and "ptr" as "puter" while mine is "pee tee ar".
 
I actually use standard and pointer
 
3:10 AM
@A.H. That's good.
 
but trying to shift it to std
 
We all have preferences. :)
 
I say s-t-d and p-t-r
 
@Borgleader a stud's string
 
> As of September 2013, Flash Video Downloader can no longer download any video preceded by a commercial. It can only download the commercials.
lol
 
3:14 AM
Hello
 
@user2190535 Hello.
 
@user2190535 hey
 
Does "MVC" could be a good pattern for create a GUI ?
 
ins't that what its intended for?
 
Yes, it is
but maybe there better pattern
are*
or pattern more modern
 
3:22 AM
@user2190535 The best pattern is no pattern at all. That you become creative and build your software that fits perfectly with the current problem at hand. Still, generalizations such as MVC are useful, you just need to tweak them to fit your current needs.
 
@MarkGarcia ok thanks
 
3:36 AM
@MarkGarcia The best patterns match your library, Qt has tons of widgets for Model/View and reinventing the modelview can be tedious
 
@Mikhail And the best library doesn't just limit you to a single pattern. That's why I don't really like Qt and the many other libraries out there.
Still, we have limited choices, and must choose the lesser evil among them. :(
 
Hello fellow C++ users. How goes head smashing?
Hole shit some really awesome shit went down while I was gone. Must read
 
3:56 AM
> A lot of people are for removing Obamacare, but they're going to defund it. Is this same concept possible in C++? Source
dat segway
 
@MarkGarcia std::gui
 
idk but it's hilarious xD
 
'Sorry, I left out my glass of water from last night.' OH GOD I APPARENTLY LIVE IN A GARBAGE PIT.
5
 
@CatPlusPlus lol, failed python joke.
@ScottW You never know :P
 
4:12 AM
And I'm off to bed
 
@Borgleader gnite man :)
@ScottW Man, I missed so much good shit. It was like standup commedy for hours on end :(
Fuck this shit.
 
@ScottW What desk?
 
@chris I think he wants us to post porn in here.
He is scotty after all :P
@ScottW Omgshhhhh we have the same Keyboard! :D
@ScottW I don't like it much, I much rather prefer the ones with flat keys
 
The best keyboards are those that have all sorts of garbage falling off from them whenever you shake them upside-down.
3
 
4:49 AM
@MarkGarcia mine is awesome then
 
5:19 AM
 
you guys have uber clean desks
 
@A.H. Only when they take pictures of them. :)
 
@MarkGarcia Indeed. :)
 
Qt Creator doesn't like decltype(auto). :(
 
5:25 AM
Totally what happens to me.
All the time.
 
@MarkGarcia: Would you not need like GCC 4.8+ for that?
 
@wilx Same here.
 
I have a bobble-head! :P
 
@wilx Yeah. I'm experimenting a bit. :)
 
5:28 AM
Hm. It seems Konrad doesn't work on minted anymore.
 
wow. flagfest
 
flagfest would be a horrible festival to go to
 
scala takes eons to compile
this is pissing me off
@StackedCrooked post your desk, lets see what it looks like
 
it's unsightly
 
I think I've showed off my own desk enough times already.
 
5:41 AM
@Mysticial rlly? link?
 
I should clean it first.
 
nice try :)
 
@GamesBrainiac Just take my word: his desk is pretty cool especially that lampshade. :)
 
@StackedCrooked lol
My table's probably the one thats most fucked up
 
oh baby
 
5:47 AM
I thought it would be awesome.
 
you're here, I need some love
 
Had some great language constructs, a good web framework, twitter used it.
@TonyTheLion Whats up Mufasa ? :P
 
The sky is up
I'm tired and I have to go to work. FML
 
@TonyTheLion You sure thats not a fan you're lookin at?
 
yes
anyway, I gotta be off
I'll be on tonight.
Love you all. <3
 
5:49 AM
@TonyTheLion Cya man :)
 
@TonyTheLion cya
 
@TonyTheLion nuuuuuuu
 
@Mysticial Watched ep 11?
Pretty neat, huh?
 
@GamesBrainiac yeah, like 2 days ago
 
ep 11? is that a movie or something? :)
 
5:54 AM
lol
its TWGOKs ep 11
btw Silver Spoon ep 11 is out too
 
@GamesBrainiac that was a good one
@GamesBrainiac i'll see it tonight
 
@StackedCrooked mmhhmm
You know. Python really spoils you
Especially the mantra, "There should be one good way to do things, and only one"
or something like that
 
Something like one obviously right way to do things.
I don't think it's "one and only one".
 
Yea, sorry
 
I don't think it's intended to be that strict.
 
5:57 AM
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
 
"Flat is better than nested." is one of my own rules as well
2
 
Why can't someone develop a static language on these principles ?
 
Xeo
Did you try Haskell? :P
 
@Xeo I was in the middle of things (haskell learning) when I discovered a functional programming course on scala
on coursera
so I thought it would be a good opportunity to learn something new
@Xeo Have you used Cython?
 
Xeo
6:01 AM
0
Q: lambda equation in c++

sevenOfNineI would like to use lambda equation. In the C++ Builder XE4, I tried the following. #include <boost/mpl/lambda.hpp> auto add = [] (int a, int b)-> int{ return a + b; }; However, I got "E2188: Expression syntax" error. What is the problem? I am sure that the boost library is correctly insta...

lol
 
How do people manage to get this confused?
 
Xeo
If only a library could affect C++ syntax or introduce new syntax.
 
preprocessor magic
 
I think lisp macros can do that to a certain extent.
 
@StackedCrooked indices ?
because you can't always get sparse
 
6:08 AM
indices?
 
@GamesBrainiac I totally hate setup like yours. The laptop screen is too small and too far for me.
 
@StackedCrooked indexes
 
@wilx Well, I took the picture from a distance, so it appears small, but its large enough for my purposes.
 
nvm I opened the link, turns out its not about databases
 
@A.H. i don't understand how they are related to sparseness
 
6:10 AM
sparse and dense database indices
@StackedCrooked this
 
I don't think he meant that. But who knows.
 
yeah I only opened the link after my comment
definitely on about something else
 
Xeo
6:24 AM
Man, the discussion on non-throwing ip::address_v4::from_string is going in circles.
@DeadMG Maybe you should've mentioned something like expected<T> or so.
 
@Xeo Is that a sign that the networking library will be shipped in C++17?
 
any news on the graphics library SG ?
or is that like C++25
 
@Borgleader so you've been using libcinder?
 
Xeo
6:45 AM
Fail
 
anyone got a screen shot of that?
 
@Rapptz reddit and /g/, always top advice
 
meh people should be allowed to do whatever they want with C++
 
meh people should be allowed to be bad
 

« first day (1070 days earlier)      last day (3892 days later) »