« first day (804 days earlier)      last day (4143 days later) » 

user142019
11:00 PM
@DeadMG const_cast, static_cast, static_cast + const_cast, reinterpret_cast, reinterpret_cast + const_cast
 
> We hope that you enjoyed solving this problem. Please do not deprive others of going through the same process by publishing your solution outside Project Euler. If you want to share your insights then please go to thread 364 in the discussion forum.
lol
 
user142019
Hi.
 
@DeadMG private inheritance only? I've used a static_cast with protected inheritance
 
Protected inheritance is weird
 
@AndreiTita Actually, I believe that it's inacessible base class.
 
user142019
11:02 PM
@AndreiTita C-cast != static_cast, you fool.
 
@Zoidberg'-- ...and your point is?
 
user142019
Also I want modules and module access specifier.
 
user1182183
I want that c++ can read my brain what I want to program and then it transforms my brain signals into program code automaticly, like: he wants this, ok let's program it automaticly , lol
 
user1182183
then everyone can be a programmer
 
Why would you want to do that
 
user1182183
11:08 PM
so I can actually make some nice stuff
 
If everyone can be a programmer then there's no reason to pay for one
 
user1182183
because I know I won't find a programming partner XD
 
user1182183
@CatPlusPlus true
 
Learn harder
 
user1182183
@CatPlusPlus there's always mcdonalds
 
11:08 PM
@DeadMG meh, I can't code that specific case, or I don't understand what you were trying to say. Can I see an example somewhere?
 
user1182183
@CatPlusPlus i'm going to the military, like I need programming skillz lol.
 
@GamErix Have fun
 
user1182183
YOUR WEAPONS HAZ A BUFER OVERRUN, FAST, REPROGRAM IT!!!
 
Yeah, you need English skills more
 
observe that the C-style cast does not fail.
but the static_cast does
 
11:12 PM
@DeadMG Cool. Funny, you'd think the reinterpret_cast wouldn't be fussy about that.
 
Casting like that is entirely silly
 
@DeadMG actually it seems to compile for me.
other than the static_cast ofc
 
user142019
C# is wonderful.
5
 
Being able to run Chrome and Planetside at the same time is wonderful
 
is a vector with ~1 billion elements a lot?
 
11:23 PM
Maybe
 
@AndreiTita That's the whole point.
the C-style cast can do something the other cast can't.
 
@DeadMG but the reinterpret_cast does it as well (on my machine)
 
implementation-defined
the other parts are Standard
 
all I could found about what a C-style cast can do on top of any other cast is "allowed to cast from, to, and between pointers to incomplete class type"
 
@Rapptz to me sound like a lot, how many GB is it if it is just doubles? Too tired to calculate it
 
11:25 PM
I don't know, I'm really just being lazy with efficiency atm
 
what size are the elements?
 
@JohanLarsson About 40x30x30 cm
 
64-bit
 
I just built an igloo
 
grats
 
11:27 PM
8 GB RAM then?
 
It is a feat beyond my imagination
All you need is a saw
Precision And to rely on the snow and the physics
 
@CaptainGiraffe ah, it was serious nice coincidence
 
user142019
NHibernate y u XML.
 
@JohanLarsson =) I found it appropriate =)
 
@CaptainGiraffe Have you seen the Ice hotel? I have been there a couple of times, looks different every year, quite nice.
@Zoidberg'-- there is a fluent way
 
11:31 PM
@JohanLarsson @sehe's vacation spot?
 
@JohanLarsson In Sundsvall, was lucky to get the snow required, my nephews from Texas was visiting, so I thought it was worth the effort (ansträngningen var mer kul än jobbig=)
@JohanLarsson No, never been
 
Did you read rule 2 in your question? — PeterJ 1 min ago
lawl
 
lol
 
@Rapptz Also, I finally caved. I removed every instance of using namespace std; from my code.
Everything broke horribly,
 
grats
 
11:34 PM
but I went back and fixed it. I hope you're happy.
 
it's for your own good
 
Ell
Hi guise
 
That's what the man in the white man said.
 
@ThePhD I am happy too. The white does not look good If there has been a smoker there for 20 years. Same with std::
 
@Ell did you check out the benchmarks I posted, it was a matter of milliseconds to compare 20x20 bitmaps 2000 times, or I did it wrong
 
Ell
11:36 PM
Hmm I've forgotten what a static cast can do, besides all the implicit casts
 
@CaptainGiraffe Just for that, I'm putting back using namespace std.
Fuck std::vector. And <police>.
 
@Ell Its that or the const cast if you want to win competitions on undebuggable code.
@ThePhD You really need to cut back. As do I.
 
Ell
@Johan ahh sorry I didn't - I will check them tomorrow though - they are on paste bin or something similar aren't they?
@Johan milliseconds? Hmm maybe it is my masking. I didn't manage to figure out a profiler in time. What is your CPU?
 
@Ell yes but they might expire, ask me if the latest have expired. Dont run the earlier. Also, calculation a hash for the images sounds like a decnet idea.
 
ARRRG!!! i HATE windows XP
 
11:39 PM
@Ell 6 core 3.6 Ghz
 
Ell
Ooh fast
 
user142019
lol
 
might fail at remembering, checking, 3.2/3.8 GHz
 
user142019
Visual Studio asks me to save a file before removing it.
 
@Zoidberg'-- Are my eyes true? Vcs in VS?
 
Ell
11:43 PM
@Johan my old version consisted of checking specific hard coded values but I only managed to some tiles because it was too tedious checking for conflicts with everything but I assume that way would be much faster
 
user142019
@CaptainGiraffe huh? How is that relevant?
 
@Ell did you use my code or stick with your?
 
@Zoidberg'-- Only reason to save before delete.
 
I never tried your and compared
 
Ell
Also hashing the image data would mean at least reading every pixel versus reading and comparing each pixel so I assume hashing is slower
@Johan I used your code for bitmap comparison I think :)
 
11:45 PM
@Zoidberg'-- On some systems it is called "Local history"
 
Ell
But if it too slow I'll have to come up with some unique pixel algorithm
I can't really think of a nice way of generating the unique pixels in each tile though
 
@Ell but hashing could be done once and cached? HashSet<T> could work wonders
 
@Ell No.
 
Ell
@Johan the hashing could be done once for the tiles to compare to, but I'd have to generate a new has for each image coming in
 
hashing involves O(n) reads, and O(1) comparisons.
a direct comparison involve O(n) reads and O(n) comparisons
even if you don't cache the hash, a fairly trivial and significant optimization, it's algorithmically quite superior
 
11:48 PM
@DeadMG Quite, dear sir.
 
right
now to try and link my module with libstdc++...
or maybe I should save that for another day considering that I only got three hours sleep last night
 
Ell
I guess the difference read vs read and compare could be significant
If wish I wasn't so lazy haha
 
It was a statement of agreement dear Dead.
 
what would be a good way to calculate a hash for an array of bytes?
 
Ell
which is best dependss
Lots of different ways
 
11:56 PM
Why are there so many stars on the idiotboard?
2
 
LOLZ
 
user142019
I'm going to write Hexapoda in F#.
 
Stick to C#?
 

« first day (804 days earlier)      last day (4143 days later) »