« first day (1017 days earlier)      last day (3933 days later) » 

8:00 PM
@rightfold That's silly
 
@kbok again gas stations go to the thousandth place
 
@kbok more relevent, rationals handle 2.831% interest on any value of money quite nicely.
 
@MooingDuck If your denominator is only a power of ten a rational is superfluous
 
@EiyrioüvonKauyf his opinion was fixed point at hundredths of a cent, he already handles that
 
@MooingDuck You interest rate is expressed easily in terms of 28310 BP
 
user142019
8:01 PM
@kbok Won't ever happen. The user enters it in the format \d*\.\d* and the only operation ever performed on the values is addition.
 
@kbok BP?
 
@rightfold have you ever thought about doing something in imperfect way?
 
@MooingDuck Basis points, ie 1/100 percents
 
user142019
@BartekBanachewicz No, that would be terrible.
 
@kbok only once
 
8:02 PM
@EiyrioüvonKauyf meh, I'm not that good.
 
@EiyrioüvonKauyf That makes it even stupider
 
user142019
@BartekBanachewicz Maybe that's why I never finish things. :|
 
@rightfold you are of course aware this is one of the problems that prevents you from finishing things
@rightfold lol.
 
@kbok take 1 euro. give him 2.831% interest. (yes, this fits fine in thousandths of a unit). Now give him 2.831% again.
 
user142019
I usually just delete the whole thing when I made a slight mistake.
 
user142019
8:03 PM
Because changing it required effort.
 
@rightfold if you ever want to finish a project, I believe I've already offered my help WRT that :F
 
@BartekBanachewicz I don't think he wants to.
 
@EtiennedeMartel I wouldn't be so fast to assess that
 
user142019
Maybe this will help. :)
 
8:04 PM
He was not put on this world to get shit done.
 
@MooingDuck Good luck handling that after 10 years. It is incorrect to not round up between two calculations if interest rate, because you need a common referential.
 
user142019
I was put on this world to eat, sleep and shit.
 
@EtiennedeMartel stop.
 
@kbok not if you're storing rationals
 
user142019
I want to live like a plant and observe the world.
 
8:04 PM
@rightfold uhhh we eat plants. i would prefer to be a planet personally or a giant mountain
 
@BartekBanachewicz NEVER
 
user142019
@EiyrioüvonKauyf live like a plant.
 
@rightfold what if you get eaten D:
 
@rightfold I'm slowly turning into a vegetarian, by the way.
 
@EtiennedeMartel now I don't hate Dx you gotta pick yourself someone else to bully? :P
 
8:05 PM
So I could eat you.
 
@EtiennedeMartel NO. :(
 
user142019
@EiyrioüvonKauyf Then I don't live anymore. :V
 
user142019
@EtiennedeMartel I'm totally fine with that. I mean, more meat for me it's your choice.
 
@rightfold being a mountain would be cool; watching millenia go by ~ the benevolent mountain or maybe the Dragon God from chinese mythology
 
@BartekBanachewicz Hey, may I remind you that me bullying everyone is what made Luc plonk me?
 
8:06 PM
@MooingDuck That's not useful. The difference with what the result would be with rounding is too low to mandate such complexity, and, rounding is the standard way to do it
 
(Because, for the record, I'm not bullying only you)
 
@EtiennedeMartel Luc plonked me too, so he's clearly not a good person to base plonks on.
 
user142019
 
I'm such a penis.
 
user142019
32 mins ago, by rightfold
I has kidnapped people.
 
8:06 PM
no stars for you. That's lame self-deprecation.
 
user142019
s/I/He/ :V
 
@kbok I personally agree, but that was the debate for "why rationals"
 
Also.
For every pedophile there's a little boy who dreams about getting molested by a priest.
 
This hurts my brain
 
8:07 PM
I was blissfully ignorant of what reddit is until I came here
 
user142019
22
A: What is the best data type to use for money in c#?

lmsasuUse the Money pattern from Patterns of Enterprise Application Architecture; specify amount as decimal and the currency as an enum.

 
I really want it to stay that way
 
user142019
Dat name.
 
> Patterns of Enterprise Application Architecture
 
> currency as an enum
 
Ell
8:07 PM
@BartekBanachewicz if my design is bad please help me design a new one :3 I can explain the game if you have never played, and it's seemingly simple so hopefully wont take you long to come up with a good design :D
 
great.
 
@Ell damn Elliott, I only bashed one function! :) maybe the rest isn't that bad.
 
Ell
@BartekBanachewicz haha it's okay, but I'm being serious, I don't know how to design this thing :P
 
@Ell one nut taco boat it?
 
@rightfold Wow, the top answer is amazing.
 
8:09 PM
> A large proportion of the computers in this world manipulate money, so it's always puzzled me that money isn't actually a first class data type in any mainstream programming language.
 
Ell
@BartekBanachewicz I beg your pardon? :P
 
user142019
Think I'll just go with a decimal floating point number.
 
@Ell read it aloud :D
 
Ell
@BartekBanachewicz Ahhhh I get it :P
 
@rightfold What are you doing anyway
 
8:10 PM
I dunno why it came to my mind. totally random.
 
user142019
@kbok Writing an application to keep track of some financial stuff.
 
but we can get on mumble or something, because I am furiously coding now.
 
user142019
Just for fun.
 
Ell
Well, at the minute I have a 2d array storing the tiles - but the tiles can fall, and I'm trying to think of an elegant way to be able to check if things are in rows, while allowing them to fall down
 
@rightfold inb4 you round wrong and people lose millions
 
8:11 PM
@rightfold Like, the money you spend?
 
@kbok shhhh
 
user142019
@kbok Kind of yes.
 
OMG ITS RAINING
It's fucking christmas
 
hahaah
welcome to the club
 
Raining, yaah.
 
8:13 PM
floats are acceptable for money that isn't exactly money because the precision they offer is always "good enough"
 
Quadrant q;
if (stack.top().inside) {
    // if the ray is inside, simply use basic calculateQuadrant
    q = calculateQuadrant(ray.x, ray.y, stack.top().extent);
}
else {
    // if it's not, check impact voxel from outside
    q = calculateImpactSubvoxel(stack.top().extent, ray);
}
if this works everything works.
crash
 
So it actually crashed?
 
@BartekBanachewicz stateful programming :(
 
@ThePhD no, threw exception.
@StackedCrooked wait what?
 
Quadrant q = calculateQuadrant(stack); // or something
 
8:18 PM
@StackedCrooked performance.
 
This does not genereate slower/different object code.
 
@StackedCrooked oh wait right. So simplicity of functions then
they operate on primitives.
 
@BartekBanachewicz HEY come on I know about graphics. D:
 
@Borgleader Now that I had time to benchmark things:
@ArneRecknagel I've updated my code after benchmarking with a 8.9GiB file. It turned out that using memchr instead of std::count made it run in 2.3s instead of 8.4s (over 3x faster). Next, using a read loop on the fd turned out to be marginally faster than using the mmap. I show my adapted wc() version heresehe 2 mins ago
 
@ThePhD what do you think of puppy's idea of running compute shader tasks instead of for-each-light hassle in forward/deferred rendering?
 
8:20 PM
@BartekBanachewicz Linky linky to idea?
 
@ThePhD that's pretty much it.
 
oh.
Well, it sort... of? Sounds like a good idea? I guess.
 
I'm not sure what the computer shader tasks are suppose to accomplish.
 
@ThePhD solve the problem of light loop unrolling in normal fragment shader computations?
 
8:22 PM
@sehe Props for going the extra mile. Kinda sad it's not possible to get this kind of speed with c++ std lib.
 
@sehe ouch
 
@Borgleader you likely can. I'd be willing to try and I think that using std::find repeatedly instead of std::count invokes the same optimizations. Lemme check
 
@sehe do it. for science!
 
@BartekBanachewicz NRVO
 
@BartekBanachewicz Loop unrolling happens when it's a constant number.
Otherwise you get slow branching in your GPU program.
 
8:24 PM
@kbok not that performance, silly. I pass everything by value everywhere. but i misread it
@ThePhD it always is a constant number if you are sanely doing lights
 
@BartekBanachewicz Do you maybe know how to resolve this Attempt to include auto-generated header after including gl.h?
 
well in deferred rendering you can use indirect drawcalls
@Tuntuni don't include gl.h (I am dead serious)
 
I googled but nothing useful really shows up.
@BartekBanachewicz Well, I'm not including it directly.
 
@Tuntuni how are you including it then?
 
@BartekBanachewicz betwixt and between: std::count: 8.4s, repeated std::find: 5.0s, memchr: ~2s ... /cc @Borgleader
 
8:26 PM
@BartekBanachewicz So, what's wrong with having a fixed number of lights and writing a fragment shader?
 
It's probably GLFW: #include <GLFW/glfw3.h> then?
 
@ThePhD fixed number of lights
@Tuntuni crap. there certainly should be GLFW header without GL
 
So I was right in expecting sse4 optimizations for char* to kick in with std::find more so than with std::count. But not quite to the level of memchr sadly.
 
@BartekBanachewicz ... Soo, you want a variable number of lights to work in a regular fragment shader?
 
@ThePhD it is not possible in regular fragment shader, hence the idea
or more, not feasible (because you can do it but because of non-compiletime-constant of loop iterations you're dead)
 
8:28 PM
It makes sense for C++ compilers to optimize std::copy and std::fill to native (memcpy, memmov) primitives a bit more aggressive than std::find, because the latter is far less applicable in the world of POD classes. Still, a shame, yes
 
@sehe Welp that's still a noticeable improvement, that's cool.
 
There's even a bug on connect for this: connect.microsoft.com/VisualStudio/feedback/details/757385
 
> Thanks for reporting this bug. We've fixed it, and the fix will be available in the next update to our C++ Standard Library implementation.
signed STL
 
point and laugh and then cry
 
@BartekBanachewicz Try it, but I doubt the compute shader would offer you much more of a benefit.
 
8:30 PM
@BartekBanachewicz Even the D language appears to have this optimization /cc @Borgleader
 
@BartekBanachewicz If I include GLFW last I get GL_FALSE undefined. :/
 
@Tuntuni it should be undefined (you are using glload right?)
 
@BartekBanachewicz Oh, fuck, I forgot about gl::.
Lmfao
 
@ThePhD meh, I am more interested in SVOs right now
@Tuntuni before you ask, gl::FALSE_
 
@BartekBanachewicz SVOs?
 
8:31 PM
@ThePhD Sparse Voxel Octrees <3
 
@BartekBanachewicz I only ask if I can't find it on good ol' Google first. :D
 
that's the thing I've been sitting over the whole weekend fyi
 
@sehe thats an old report... maybe its fixed in 2013 preview?
 
@Tuntuni meh, it makes no sense to google 5 times for things I can tell you in one batch.
 
@MooingDuck i vtced instantly when i saw this...
 
8:33 PM
> Tony Hawk
Skateboards, templates & pizza: @shepdawgs garbage
 
@BartekBanachewicz Thanks for being helpful but I still don't wanna bother you too much. :p
 
@Borgleader only for MSVC though. I'm looking for gcc as we speak
 
@Tuntuni meh, I tend to be extraordinary tolerant to people "doing it my way" (i.e. using OpenGL)
cue last time I was sitting with you two faggets till 2am
 
ahahah
i remember that :D
 
Windows Media Player was not happy when I gave it a 610 MB wave file.
 
8:36 PM
Try giving a 20 MB file to notepad and you get the same behavior
 
@BartekBanachewicz it works now, yay :D thanks
 
> MSVS, please tell me how 0 < 51 <50, sincerelly, Bajtek.
 
We're not a troubleshooting service, even though mountains of similar questions seem to suggest that it is. — Robert Harvey 4 mins ago
Oh Robert <3
 
0 < 51 == true == 1, 1 < 50. :D
 
@BartekBanachewicz second < has no effect
 
8:37 PM
@Tuntuni do you have a triangle? :)
@Borgleader I know I can't C++, but I don't can't it that much
 
@BartekBanachewicz did i draw anything? nah, i'm currently just testing out glfw to get familiar with it
i'm glad i switched from glew to glload because of the c++ interface it offers :) no more ugly prefixes
 
I desperately need to get the vote up. I can't post questions on here until I do. — cppprogrammer300 47 secs ago
 
hm, my notes from last two days look like evil genius ramblings
 
@BartekBanachewicz Ugh, that's really crappy.
 
@R.MartinhoFernandes was that supposed to be a compliment?
 
8:40 PM
@MooingDuck He shouldve thought of that before posting shitty questions
 
Ell
dern I can't mumble.
 
I really don't need you to link me to the crappy questions.
 
Ell
@BartekBanachewicz mi madre :(
 
8:41 PM
Nothing personal.
 
@R.MartinhoFernandes that was extraordinarely crappy
 
Not really. It's just the day-to-day level of crappy you find in that tag.
 
@R.MartinhoFernandes oh. :|
 
@MooingDuck oh yes he needs them already: meta.stackoverflow.com/questions/86997/… Also @ OP: instead of filing bad questions, just search a minute for [c++] with [osx] ? You'll find out soon enough! — sehe 1 min ago
 
 
8:43 PM
@BartekBanachewicz But at least it wasn't some Python2 "oh ascii codec blah blah blah" thing.
 
@R.MartinhoFernandes :)
 
The only reason you can't make a drinking game out of those questions is that the tag does not get many new questions.
 
All caps UNICODE bugs me.
 
Yeah, I feel you.
 
8:45 PM
all caps anything bugs me
 
@Borgleader TEEE HEEE VISUAL STUDIO MENUS ANYONE
 
GLORY.
 
but really, you can change those menus, so it's no biggie really
and on big screens all-caps makes sense
 
i never look at those anyway
 
8:47 PM
@Rapptz Me too.
 
Hey, @Xeo, you up for some raid bosses?
 
Xeo
Hm... in theory.
Although I'm reading right now
but eh, why not
 
Have you fought any yet?
 
@Xeo Read while you raid.
Reading Raidbow.
 
Xeo
@R.MartinhoFernandes nope
Or rather, don't think so
 
8:49 PM
What are you guys playing?
 
@NicolBolas Ok, perhaps that is true. I kind of assumed that a set of c++-faq answers to "What are Aggregates and PODs and how/why are they special?" with combined votes of >+373 (122+134+117) would somehow include their initialization. If we can't trust our instincts in that matter, then I don't see how anyone in reality will ever have the "authority" to vote to (← !!) 'close as duplicate'. — sehe 1 min ago
 
@JerryCoffin ^ more fuel
 
@R.MartinhoFernandes What's your level?
 
38.
I soloed Hyperius.
 
8:50 PM
> Also from the MSDN documentation, it says "[SHGetSpecialFolderPath is not supported. Instead, use ShGetFolderPath.]" then I navigate to that page and it says "ShGetFolderPath: Deprecated. Gets the path of a folder identified by a CSIDL value." What am I supposed to use instead?
lol
 
Xeo
@R.MartinhoFernandes ... I'm 32, I think.
 
Hmm. We could try it anyway.
 
@Rapptz roll dice
@Xeo I'm 36, I think
 
Xeo
31, even
 
no, 31 is odd
 
Xeo
8:52 PM
Well, we'll see how it goes
 
Geez, I think people who are into the C++ language standardization process but who then show the utter lack of common sense to quickly get off the language standardization effort can be particularly annoying. :-]
 
@Rapptz Said right there: ShGetKnownFolderPath
 
@FrerichRaabe How, in your ill-considered opinion, does trying to improve things constitute lack of common sense?
 
Xeo
@R.MartinhoFernandes dafuq are you doing?
 
@Xeo I need to respec first. Have the wrong build for bosses.
 
Xeo
8:55 PM
mh
 
Pony art is the best way to honor anything.
 
@Xeo lol why you no voicecom?
@EtiennedeMartel aye
 
@EtiennedeMartel Should I draw you and Cat as Ponies, then?
 
@ThePhD I'm sure Cat would love this.
 
Ask on SO. Never mind, don't.
10
 
8:56 PM
That said, if you do, draw me as a pegasus.
 
@FrerichRaabe Funny, because I attended one meeting and am not planning to attend another.
 
@LittleBobbyTables assigned to what
 
@JerryCoffin: I said getting into the C++ language standardization process constitutes a lack of common sense, not trying to improve things. ;-)
 
Talk to the Bin -
 
8:57 PM
:10922534 whaaat?
 
LOL
Scaling ints?
"I need an integer that's web-scale."
4
 
ahaha
noo
OK better rephrasing
 
@ThePhD what?
 
@LittleBobbyTables no dont'
 
Of course, @NicolBolas. I'm not disputing you "win that point", I'm defending that voting to close as a dupe wasn't exactly insane. And it was more than likely to give the OP the information he was missing: aggregate initialization. Even without spelling out that this invokes it. Meh. When did SO become about being right instead of helping people and adding value. — sehe 1 min ago
 
8:57 PM
@ThePhD That sounds like the kind of thing @rightfold would say.
 
@LittleBobbyTables the lounge is not for questions
 
Ell
I'm so useless, I can't even write tetris. I think I need to go back to square one!
 
@ThePhD lol
 
Mmm. On second thought, deleting that comment
 
@Ell Write Snake.
 
8:58 PM
@LittleBobbyTables the lounge is for mocking people who ask questions
 
user142019
@EtiennedeMartel hell no
 
@Rapptz How is that easier?
 
user142019
Web-scale is the worst buzzword ever.
 
seriously people are so dumb
Except XCode comes with Clang by default, no? — Bartek Banachewicz 25 mins ago
True, but it's the easiest way to get g++ on OS X — user2062950 20 mins ago
 
@sehe The law of the internet states that if someone is wrong, it is your duty to correct them :P
 
8:58 PM
@sehe Not sure but I find it easier to conceptualise as it's basically a stack.
 
@FrerichRaabe In that case you apparently don't have a clue what the committee does, and are therefore talking in ignorance of the subject matter.
 
@BartekBanachewicz Astoundingly convincing logic
 
@BartekBanachewicz I understand him. Just because xcode doesn't come with GCC doesn't mean it isn't the easiest way to get GCC.
 
@Rapptz s/stack/queue
 
@MooingDuck my head hurts. (when reading it)
 

« first day (1017 days earlier)      last day (3933 days later) »