« first day (995 days earlier)      last day (4182 days later) » 

19:00
man
Xeo
Xeo
He got a point there
I just posted a "Debug my code for me" question.
Xeo
Xeo
Shame on you
Where's the link so we can downvote it into oblivion?
@DeadMG did you post wide code? :D
Xeo
Xeo
> Looking at the tutorial, I don't see commas between the options
Puppy, you suck.
just habit to add commas
0
Q: Boost program options- crash on parsing command line

DeadMGI have the following boost::program_options program. boost::program_options::options_description opts("Allowed options"); opts.add_options() ("help", "produce help message"), ("mingw", boost::program_options::value<std::string>(), "Set the install path for MinGW"), ("triple", boost::...

how can that even compile with commas?
Xeo
Xeo
comma operator vOv
right, but the arguments have to be exprsesions.
oh, I guess that (x, y, z) is just more comma operators.
Xeo
Xeo
19:02
ye
@Xeo haha, burned
/me uses boost::program_options syntax in his code
now it just crashes when trying to parse my command-line.
Xeo
Xeo
You must be doing something horribly wrong
well, Boost.Build doesn't list MSVC 11 under their list of supported compilers, only MSVC 10.
this makes me a sad puppy.
eh, it seems to have actually built with VC11 as it should do
Imagine you have 2 World which hold... data. You want one to essentially become the other one, whereas that one now generates anew. What do you do?
19:18
shoot myself because my descriptions are so vague
Haha.
Well, for some reason...not sure why.
My assignment operator modifies the object.
Which, seemed to work fine, but now it is giving me heap errors, so apparently I did it wrong.
that's what it should do.
if you're getting heap errors you probably didn't use resource ownership properly.
Yes.
It was a ***
wtf is ***
C-style 3D array, apparently :D
19:19
oh.
then yes, you've completely fucked up
So I have been told.
I consider myself embarrassed to know you
Anyway, it is pecular.
As you may or may not know, I was working on a screensaver.
Generates colored blocks. Anyway, it never got heap errors with the other three generations.
But on this one, it always does...
welp, if you use a c-style array, you get what you ask for
What is the preferred method of doing it?
19:21
RAII and preferably not 3D.
if your arrays are run-time bound, use std::vector, else use std::array.
@ScottW i <3 you more
@ScottW would you also love fixing my heap error? :D
Your conditional love disgusts me.
@ScottW The more the merrier.
19:24
It will probably be fairly easy to fix.
Not enough indirection is solved with another layer of indirection.
That reminds me of the abstraction one.
I wonder what murderous thoughts go through teachers' heads when they get triple star programmers.
"Another layer of abstraction solves everything except too many layers of abstraction", was it?
user142019
@Pawnguy7 No.
19:26
Keep using more. It will wrap around.
user142019
It's at most an array of pointers to arrays of pointers to arrays.
I have a non-memory related bug as well.
@rightfold You mean like int (*(*trololol[2])[2])[2];?
19:45
hm
What can cause delete[] to fail
I used new[] and delete[]. The memory it is called on is valid, so I am confused.
Simple, use RAII and you'll never need a delete[].
That reminds me. It is considered best practice to delete[] yourself rather than let it clean up, correct?
Yes.
But by "yourself", you mean with vectors and things that do it for you.
Oh.
Haha.
Not sure what I was thinking when I typed that.
Hey guys, can I get some 'close as dupe' help from you. I want to close this as a dupe of this
@chris unless of course the class you are writing a class that ultimately ~has~ to allocate with new[]... if
19:55
@thecoshman Yeah, but that doesn't happen too often.
@chris shouldn't do any way :P
Wow, that went quickly.
@Xeo Checking error. =[
At this rate, I'm never gonna be able to buy Cubeworld.
On /v/ people were complaining about trying for 4 hours before they gave up and pirated it
Xeo
Xeo
...
20:01
@Rapptz What is this about?
Xeo
Xeo
It's a friggin Alpha. It's not like "oh noes, I must play this right here and now"
Cube World
Xeo
Xeo
Oh well, it's 4chan.
Lol. Pirated cube world.
Who does that. D:
The game is in Alpha damnit.
Xeo
Xeo
43 secs ago, by Xeo
Oh well, it's 4chan.
20:03
@ThePhD Lol Who does that?
I'm not even interested in playing it.
@Rapptz Well, you like certain really bad games, so I'm not surprised. :D
Huh? When have I ever mentioned what games I've played here aside from Zelda?
Yeah you guys suck.
20:06
:)
Ell
Ell
I think I might need virtual inheritance. I best research first xD
Lol
Seeding his own game,
Fear no experimentation.
I would do it.
But virtual inheritance can get ugly.
However, only because of the technicalities. From a conceptual point of view I don't see anything wrong with it.
Ell
Ell
20:08
Well. I have AudioIStream, AudioOStream and AudioIOStream. And today I remembered the standard library streams use virtual inheritance
Oh wait. I don't think I need it
@Ell Welcome to why inheritance sucks donkey dick.
Ell
Ell
I'm getting ahead of myself. There is nothing you do differently with streams apart from when you create them
@Ell You should check out policies and shit.
I'm still having a hard time wrapping my head around how I'm going to create a worthwhile stream API that doesn't require you to instantiate a templated reader everytime you need one...
Ell
Ell
okay, I'll google it now
20:13
Policy-based class design.
It's the first thing I ever read by Alexandrescu.
Really liked that book
You know my *** problem?
I rather not.
I'd rather not, really.
20:16
Sorry man.
I was going to ask if I should ask on SO. Not sure.
that was unplanned
The amount of fingers needed to play Necrofantasia on the piano is too high.
:(
@StackedCrooked: neat
20:18
Man up
I need like 80 fingers!
I hear @Mysticial used to play the piano. Let's mutate him to have more fingers until we have a human that can play it.
Ok, it is local to the cave generation. Somehow.
10 x 800% more skill get good.
Xeo
Xeo
@Rapptz Necrofantasia <3
20:19
I rather like Death Waltz.
Ell
Ell
@Rapptz you could play it without all the octave stretches maybe
I like Telephone by Lady Gaga.
smart_ptr is like a magic cure for fixing lifetime problems
esp in threaded or async scenarios
user142019
Ah. Refreshing.
user142019
Starting my new (old?) job tomorrow at nine.
Yay! Does it suck?
user142019
20:24
Noo! It's fun!
Dammit, I tried to visit Google Reader again.
It's been down for a week now.
like BTJunkie <3
I knew. I got warnings every week.
Ell
Ell
Oh, synthesia doesn't work for me on linux :(
also, has anyone made a 3d android game before?
I need recommending a game engine :3
user142019
@Ell Don't do it. It's Android.
Ell
Ell
But I want to :(
user142019
What the merkin said.
Ell
Ell
20:28
Let's say I have to
I might try scala
user142019
Time to sleep bye.
Ell
Ell
bye :)
it's early isn't it? o.O
-0.0 == 0.0 ??? see here
@doug65536 Why not?
@Ell scala, right I forgot about that language.
Nobody here talks about Scala.
20:30
Zero has no signedness.
@Mysticial I'm trying to fix a ridiculous copysign implementation that uses atan2 to detect -0.0
... Lol.
@ThePhD It's positive damnit.
Nice.
@StackedCrooked That's a positively negative way of looking at it.
20:31
@ThePhD You are stupid moron.
user142019
@ThePhD It does in floating point numbers.
user142019
It decides whether division by zero yields negative or positive infinity.
zero is positive bcs it doesnt have -
user142019
@Kuraiinazuma In general, zero is neither negative nor positive.
20:33
type punning or aliasing through a union might work but it's technically wrong. what would be a proper way that doesn't have massive overhead?
@R.MartinhoFernandes said something about fixing the stream API by using ReadableStream, WritableStream, and SeekableStream and such things...
user142019
@doug65536 std::copy.
user142019
(No, it's not slow.)
@ScottW you dumb, you cant argue with that
GCC's implementation of std::copy is much slower than memcpy.
20:34
@ScottW well you are dumb, it is beter?
Clang's version of std::copy is equally fast as memcpy.
@Kuraiinazuma veel beter
> UTF-8 is the only multibyte character set which can represent every Unicode character.
From Here: http://cygwin.com/cygwin-ug-net/setup-locale.html
This is bullshit right? UTF-16? UTF-32?
how does std::copy help me detect -0.0
@ScottW you should accept me, and your live will become a paradise
user142019
@doug65536 That wasn't your question.
user142019
20:37
If you want bitwise conversion between types, you use std::copy.
user142019
Or perhaps std::memcpy. Doesn't make a difference.
user142019
@Kuraiinazuma s/accept/plonk/
well try changing first byte on 1
@Mysticial People be retarded, yo.
I used to be tarded, now I'm retarded.
20:40
Evening
so it would be correct to memcpy a double into an int64_t and see if the int64_t is < 0?
@doug65536 Correct isn't right word here.
if I wanted hacks I would have used reinterpret_cast. what is correct way
20:42
Does mydouble < 0 catch the -0.0 case?
You can memcpy that data, but the result will simply depend on the representation used on your platform/compiler combination.
@ScottW but you like me baby <3
:)
@ThePhD I'll try it...
I don't know what movie to watch
hmmmm
maybe I'll just chat here
fuuuckkk its damn hot
Ell
Ell
It's pretty hot
20:44
Aircon Y U NO HERE?
20+ here at evening
I need to buy a fan
Ell
Ell
I got grass stains all over my shorts and the bottom of my top :(
Ell
Ell
I was gallivanting in the grass
20:45
@doug65536 <= maybe?
you're joking right?
Nope. :D
<= will be true because == is true.
But does it REALLY?
test it
if you don't believe it
20:49
Negative zero is not very useful thing.
Also @CatPlusPlus I can't buy Cube Wolrd what is this cruel earth I'm living in ;~;
just searched on internet, zero is neither neg nor pos because to be a negative number it must be less than zero, and to be a positive number it must be more than zero. So zero is considered neither.
so you all wrong
zero is zero
@Kuraiinazuma look up IEEE-754 negative zero
@ThePhD Watch that page Xeo linked.
Ell
Ell
20:54
Has anyone ever done extracting data from n64 roms here?
On the off chance :3
if a thread segfaulted, would the rest of the program run?
@CatPlusPlus I am ;~;
OMG noobs have just reached new levels of noob
@TonyTheLion ?
@ScottW you should try this more often
20:55
@Pawnguy7 UB
user142019
> Raspberry Pi, Xeo, and 6 others have Tweets for you
user142019
Aww @Xeo so sweet that you have tweets for me. <3
Xeo
Xeo
lol
@Kuraiinazuma welcome to the real world. Programming is not math.
1 min ago, by Kuraiinazuma
just searched on internet, zero is neither neg nor pos because to be a negative number it must be less than zero, and to be a positive number it must be more than zero. So zero is considered neither.
20:55
oh lol
@TonyTheLion ok. I figured out, it only happens in one of my generation functions, so I assume that is what it is.
Negative zero exists in math, too.
user142019
I only know negative mood.
user142019
And it ain't good.
@rightfold fuck you :)
20:56
@CatPlusPlus True. Anyways, definitions vary. And it's probably best to adhere to locally vigouring definitions
@rightfold Be an optimist prime, not a negatron
@TonyTheLion tsk tsk
user142019
@Borgleader :D
I AM BEING SUMMONED TO ANOTHER WORLD AS A PHANTOM
@Borgleader be an Erdos number
user142019
20:56
@TonyTheLion Moet je klappen hebben? Kom dan!
@ThePhD Don't start coding, PLEASE
@rightfold lol
@ThePhD You role play? Pro tip: don't break a leg when you jump off the cupboard onto the bed
I think I "feel" 0 is positive. Probably because it, like positive numbers, has no sign. Not sure what -0 does, anyway, but it should be the same. Right?
I think I've spent more money on food this weekend than in previous week.
@Pawnguy7 0 is 0.
@CatPlusPlus oh gawd, what did you eat?
20:57
0 is 0..
signum(0) == 0.
Yes?
I bought food for a whole week, cost me 40 GBP
user142019
@CatPlusPlus I haven't, since 0 = 0.
Apparently cat food got a lot more expensive.
20:57
but you cant really consider -0 bcs. 0 is null
@CatPlusPlus That's true for me for sure. Today McDonalds and yesterday BBQ. Made the mistake of going to a real butcher's shop I never went to before. Was kinda surprising bill
@chris Felix?
"bcs" is not a word.
-0 = +0 = 0.
it is i put period go gogle it
20:58
Except in computing.
@CatPlusPlus bcs. is the SI unit of lazyness
3
user142019
@Kuraiinazuma English, Dutch or GTFO.
@Kuraiinazuma Learn to spell
Speak English or don't speak.
Well, type. Learn to type. You get my point.
@rightfold y u no Japanese?
20:59
@Kuraiinazuma I'm sorry to hear you have your period. But I don't need to google it. I have a wife
user142019
I don't speak Japanese. :3
user142019
Plonkbrem solved.
Also, if you want an example of when 0 has a clear sign: limits.
20:59
@sehe i didnt say i have period, i say i put period, learn to read
learn to write English
fool
@Kuraiinazuma bwahahahahahahahaha. "i say i put period". 'Nuff said

« first day (995 days earlier)      last day (4182 days later) »