« first day (962 days earlier)      last day (3983 days later) » 

4:00 PM
...
 
@GamErix WTF, do you even know what a hash function is.
 
user1182183
@DeadMG ye one way "encryption"
 
oh I plonked that guy
 
Some extremely ugly example.
 
4:00 PM
@GamErix No.
 
@TonyTheLion plonkitty plonkitty plonk plonk
 
user1182183
@EtiennedeMartel at least I know it's one-way input into output and there "should" be no way to get input from output
 
@GamErix There isn't.
You're doing something very wrong.
 
@EtiennedeMartel Strictly, the SL could use MD5 or something.
 
@GamErix That's a cryptographic hash function.
 
4:01 PM
I mean, the hash isn't required to be cryptographically secure.
 
Hash table hash functions have different requirements.
 
@DeadMG Could be just a dumb CRC32.
 
the user cares more about getting a good distribution and fast execution than they do about the cryptographical security of it.
 
@Pawnguy7 Instead of randomNumber - weightSum you want randomNumber -= pair.weight.
 
so they won't want to be using bcrypt or SHA512 here.
 
4:02 PM
Oh. How did I miss that O.o.
No wonder the result is always the same :D
 
Or you could read up on <random> as the robot suggested.
 
Even with a cryptographically weak hash function, you can't (normally) recover the original input from the hash -- at best, it's easy to find some other input that produces the same hash.
 
Iam not using C++.
 
@thecoshman I guess we are two then
 
And I figured it would be good to learn the implementation.
 
user1182183
4:03 PM
@JerryCoffin hehe lol and then my cheat will display a unit as a building xD
 
@Pawnguy7 My algorithm isn't particularly good. It's linear complexity. Safe bet the "real" one is much better.
 
@JerryCoffin But being irrecoverable is not part of the design goals (I guess that std::hash<unsigned char> is perfectly reversible, for example).
 
Also, I'm adding you to my ignore list because you're not using C++.
 
I use it. Just not for this.
Well, I don't know much about.. the best algorithms, but I get the basic theory of yours, so that is good.
 
@R.MartinhoFernandes I would just return input << sizeof(std::size_t) * (CHAR_BIT - 1)
 
4:05 PM
std::hash<std::string> is typically built for speed alone.
 
@R.MartinhoFernandes For unsigned char (or plain char/signed char) sure, it's nearly a given. For a string larger than the hash, clearly not.
 
@GamErix Just store the key with the value.
 
@DeadMG Why not just return input? Pretty sure that's what all implementations do, for all integral types.
 
If you have a hash table, the key is stored there.
It has to be.
 
@Potatoswatter Speed and at least some attempt at semi-decent distribution. return 1; would be fast, but not very useful.
 
user1182183
4:06 PM
@EtiennedeMartel yeah why I was asking about the has stuff because making cheats requires sometimes reverse engineering a game ;F
 
user1182183
(or always, depends on the context you look at)
 
@JerryCoffin Yeah. But no more than 3 simple arithmetic operations.
 
@Potatoswatter Because the range is the range of std::size_t.
let's say that std::size_t is 32bit.
 
@Potatoswatter Bottom line: attempting to give the fastest results when used with a normal hash table (which, is what I suppose you really meant).
 
@JerryCoffin And it fulfills x == y => h(x) == h(y) perfectly for any type!
 
4:07 PM
if you return input; for an 8bit char.
you will only ever be using the lowest 8 bits of the range.
 
Clearly return 1; is the most generic hash function.
 
that's going to give a terrible distribution
 
@GamErix What the fuck are you doing, by the way?
 
@DeadMG Problem with that is? You're just choosing other bits to set to zero.
 
even if you have a perfectly uniform 8bit input.
 
4:07 PM
@DeadMG What?
 
@Potatoswatter Right... except those other bits are LEAST significant.
as opposed to MOST significant.
 
user1182183
 
@DeadMG And the significance of significance?
Say someone takes the modulo of that hash with a small power of 2. They'll get zero every time.
 
4:08 PM
@GamErix That game was meh.
 
@R.MartinhoFernandes Well, one of many -- obviously return 0; or return 666; would be equally good (the latter being the obvious choice for Hell++).
3
 
wait, I think I got division and modulo confused.
 
@DeadMG Yes, you do.
Modulo leaves you the low bits.
 
yeah
then return input; would be fine.
 
@Potatoswatter am I wrong in thinking that higher weights are more likely to be chosen?
 
4:09 PM
return input; and % are the simplest implementation.
 
I wonder if any implementations do specializations for types like bool, etc.
 
bool keys don't sound very useful.
 
presumably they come up in generic code.
I think I used one in Wide earlier
can't quite remember though
 
Time to go. Bye.
 
bb
 
4:12 PM
@DeadMG return 0 or __cplusplus. Just to keep 'em guessing.
 
lol
@Potatoswatter I was more thinking in terms of storage. It'd be a total waste to dynamically allocate each node individually.
huh
I had an idea about how I might kill dynarray
 
Xeo
And then you forgot?
 
no, I just had it
 
Xeo
Do tell
 
well
 
Xeo
4:19 PM
I want to know the dragon-slaying story first-hand
 
I figure that the entire purpose of dynarray is for performance.
the whole reason of having it is for the extra performance
but if I can show that a memory arena can deliver competitive performance without the drawbacks
I think that should be a bit of a crippling problem
 
Xeo
Memory arena still needs the memory to be dynamically allocated, no? Or are you thinking of a static arena somewhere?
 
it does, actually
but you can pre-allocate (including preallocating off stack)
 
Xeo
To kill dynarray, you'd need alloca
To which dynarray is supposed to be the "safe version" IIRC
 
well
I think that if I can even cast doubt on it, they would have to prove their performance case.
whereas I don't believe this has happened
which should put a spanner in the works
 
Xeo
4:23 PM
@DeadMG Eh, you'd easily be overallocating though, no?
 
@Xeo Arguably, you could simply pre-allocate with the new run-time stack arrays.
 
Xeo
well, I don't like those either
 
user142019
Fuck you C.
 
user142019
Y u no decltype.
 
Xeo
I thought you included them with "dynarray" :P
@rightfold Because fuck you, that's why. Also, why would you need it in a language without generic facilities?
 
user142019
4:25 PM
Fuck it I'll use __typeof__.
 
user142019
@Xeo Casting to a very long ugly type.
 
user142019
I could typedef but meh.
 
@rightfold Generic expressions do much the same thing. Otherwise, can't you just compile the C in C++ mode?
 
@rightfold libvlc_media_list_player_t?
 
user142019
@Morwenn struct osl_object *(*)(struct osl_object *, osl_sel_t, struct osl_object *, struct osl_object *)
 
4:27 PM
@rightfold typedef struct osl_object *(*meh)(struct osl_object *, osl_sel_t, struct osl_object *, struct osl_object *);
 
@rightfold Looks ok to me.
 
user142019
__typeof__(&f) is much shorter and more readable. :)
 
@Jeffrey and @LightnessRacesinOrbit too I believe
 
@Xeo They probably will be hit by the same assessment. In any case, I think it will raise questions.
 
5:29 PM
who killed the lounge again? oh, @DeadMG of course :)
 
5:43 PM
oh joy, a wall of template compiler errors ¬_¬
might be time to give this some attention
 
@thecoshman You could also grab a pint.
 
@EtiennedeMartel too much effort
 
@ScottW Were it so easy.
@thecoshman It's never too much effort if beer is the goal.
 
@EtiennedeMartel meh
 
You have a severe case of lazyassitis, my friend.
@ScottW Pizza pizza pie.
Every minute every second buy buy buy buy buy.
 
5:51 PM
Man, the last Game of Thrones, what a surprise. :)
 
Everyone keeps saying that.
 
No wonder.
I have not read the books, so it is really surprising to me. :)
 
@DeadMG Added restore button in the toolbar.
 
cheers
 
Also ctrl-s is now mapped to empty functor. (This was requested by various people.)
But, that only works if the editor has focus.
I would like to show a popup of a screaming man when Ctrl-S is pressed.
With sound at max volume.
 
5:57 PM
what about ctrl-t?
 
New tab?
 
sup kids
 
Or is it overriden by ACE on Windows?
 
ISTR that it's overriden on Coliru
 
It should work now.
At least it does for me.
 
6:02 PM
@StackedCrooked You do that, and I'll find a way to mail you a slap in the face.
Oh, I know what you guys need.
You need a picture of Thomas Mulcair looking pissed.
Voila.
 
@ScottW Hi
 
image not found
 
image not found
 
found not image
 
6:13 PM
 
@ScottW Hey! How's tricks?
 
So much love in this room; I can smell it!
2
ewwwwwwwww
 
@ScottW I ain't bad. I've been actually getting a lot of work done.
 
Love, uh, what is it good for? Absolutely nothing!
 
posted on June 04, 2013 by Sana Mithani

Since our last release, the C++ REST SDK team has been working on improving the overall quality of the SDK to transition out of the beta phase.  We are excited to announce that the C++ REST SDK has reached release quality and that v1.0.0 is now available for download! With the recent NuGet support for C++ projects, we’ve also decided to also release the C++ REST SDK as a NuGet packag

 
6:16 PM
also nice and sunny here for once
hey that sounds like fun
 
@Feeds, you aren't spamming boring shit or hanselman? le shock.
 
@ScottW I haven't actually use Google Music
anyone planning to get Google Glass when it comes out?
 
No
Its a waste
 
I heartily endorse people trying stuff
 
what language will the API be?
 
6:19 PM
If I have a ton of money when it comes out, I might get one - but I'm not expecting it to revolutionise my life
it might be really annoying, but it might also be fun to be the first to find that out
 
@TonyTheLion java, php, python
 
Python is cool
 
> 32-bit registerkin. Preferred pronouns: eax, ebx, ecx, edx
heheh.
I think I'm the only one who appreciates this one. :(
 
@TonyTheLion Google usually use the C++, Java, Python trio.
 
Yeah
 
6:23 PM
@Rapptz I think I get it
 
a,b,c,d?
 
hmmmm
I have never used Go
and from what @rightfold seems to say, it sucks
lol
<3
 
lol @ pin message
 
yea I saw that too
 
hai
 
6:35 PM
hai
 
Instead of throwing NotImplementedException in ConvertBack, throw NotSupportedException. NIE is for code that is not yet implemented but will be soon. Here: stackoverflow.com/questions/410719/…R. Martinho Fernandes Jan 5 '10 at 13:15
I like stumbling on old comments by Loungers.
 
@EtiennedeMartel those were probably the days that Robot didn't know much C++ yet
he only really started learning it when he joined the Lounge
AFAIK
so
 
Ahaha
 
6:39 PM
@TonyTheLion And now he's the most active user on here. So strange.
 
I know, weird
where is he now?
 
@TonyTheLion Probably living his life somewhere.
 
hmmmm
who lives life when you can be in the Lounge?
8
<3
 
<3
 
@TonyTheLion Because you still can't survive only with the Internet for substenance.
But perhaps, in a few years...
 
6:41 PM
@EtiennedeMartel I wish TCP packets would be my food
 
room topic changed to Lounge<C++>: Also a decent substitute for life. [c++] [c++11] [c++-faq] [no-helpdesk]
5
 
haha
Well I have been here for over 3 years now
@ScottW so love, what are you doing with Google music?
hmmmm dat feeling when no amount of food can satiate your hunger
 
Is slicing pathological, or are the valid use cases for it?
 
oh yea I'm a Lion
@StackedCrooked actually, Ape had a use for it once, afaik. Ask @R.Martinho
 
@TonyTheLion So, does that mean you have you very own harem?
 
6:46 PM
IIRC they explained that to me when I was in Berlin
@EtiennedeMartel it means when I'm hungry you better not get in my way
 
@ScottW mm
 
Python has slicing?
 
@TonyTheLion Lions actually don't hunt their own food. They have females for that.
@TonyTheLion Array slicing. No the same thing.
 
@EtiennedeMartel Yea I know, but I ain't got females. :(
I'm a lonely lion
@ScottW oh that
 
@TonyTheLion Who did you meet up with?
 
6:48 PM
@Tuntuni Ape and Robot
 
@TonyTheLion Wat do there
 
stuff
have a beer
talk
laugh at Robot being trolled by Ape IRL
 
Xeo
:(
 
@TonyTheLion LOL
 
Xeo
@TonyTheLion He's good at that
 
6:49 PM
@ScottW ohhh nice
@Xeo yep
I still need to come out and meet you Xeo
 
Xeo
Heh
Not that Oberhausen has much to offer :P
 
@Xeo same with my place here, but it's not the location, its the people :)
 
Xeo
@EtiennedeMartel lol
 
@EtiennedeMartel that's why I quit smoking
 
Xeo
6:50 PM
@TonyTheLion For your employer? That's what I call dedication to work!
 
also, I can't remember the last time I was sick
@Xeo Inorite
@ScottW <3 I should come out to Detroit and hang out
 
Good evening!
 
Evening stranger
 
I answered my first SO question in a while. :D
 
6:52 PM
@TonyTheLion He changed his name. Was known as unNaturhal before.
 
@EtiennedeMartel I still don't know who that is.
 
@TonyTheLion A noob who comes here for help.
 
@ScottW oh suckage :(
 
Nothing wrong per se.
 
@EtiennedeMartel you know what I do with that?
 
Xeo
6:53 PM
@EtiennedeMartel Is he one of the good noobs?
 
@TonyTheLion You rub your face with a lemon?
@Xeo Never had any problem, for now at least.
 
lol
@Xeo there is good noobs? :P
 
-3
Q: C++ code for Staff sign-in program (I've got the algorithm)

Joseph RamenRocks OdinaAnybody wanna help me out in writing the C++ code for a staff sign-in program? I've got the algorithm and stuff, just need the code. Thanks.

What can I say?
 
Xeo
Eh, but what am I to do with this loaded laser gun now? :(
 
@TonyTheLion Of course. Any regular here was a noob at one point.
 
6:54 PM
lol
 
Sure, I'll send the code, then you can see if it matches your algorithm. — juanchopanza 30 secs ago
@JerryCoffin Some of your trademark snark, as always.
 
@EtiennedeMartel I was a terrible noob
 
Xeo
@TonyTheLion Remember that guy who apologized for suddenly asking in here after seeing ? :D
 
@TonyTheLion s/was/am/
2
 
@Xeo yea that guy, remember him, I do.
 
Xeo
6:55 PM
@EtiennedeMartel lol
 
@EtiennedeMartel "...snark, as always." Do you honestly think I'm usually snarky?
 
@EtiennedeMartel you know it, son!
 
@Xeo Poor guy.
 
@JerryCoffin Maybe you're not IRL, but your Stack Overflow persona is.
 
I don't think he's snarky
 
6:56 PM
I'm having a Lounge bday party at the end of this month!!! YOU'RE ALL INVITED!!
 
Is there cake
 
@TonyTheLion I hope that doesn't mean you'll spend your birthday online...
 
@EtiennedeMartel No I'm not, but I am partly.
 
Because birthdays mean going out, drinking lots of alcohol and making generally bad decisions.
 
I don't make bad decisions on my bday
 
6:58 PM
I don't celebrate my birthdays.
 
Neither do I get drunk mostly
I haven't celebrated really for years, but this year, will be different
 
I no longer have birthdays. In fact, nobody remembers the calender that was in use when I was born.
 
hahahahahaahah
How do you never fail to make me laugh?
 

« first day (962 days earlier)      last day (3983 days later) »