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

@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.
16:00
@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.
16:01
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.
16:02
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
16:03
@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)
16:05
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
16:06
@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!
16:07
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.
16:07
@DeadMG What?
@Potatoswatter Right... except those other bits are LEAST significant.
as opposed to MOST significant.
user1182183
@EtiennedeMartel i.sstatic.net/kDSZ7.png
@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.
16:08
@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?
16:09
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.
16:12
@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
Xeo
And then you forgot?
no, I just had it
Xeo
Xeo
Do tell
well
Xeo
Xeo
16:19
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
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
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
Xeo
16:23
@DeadMG Eh, you'd easily be overallocating though, no?
@Xeo Arguably, you could simply pre-allocate with the new run-time stack arrays.
Xeo
Xeo
well, I don't like those either
user142019
Fuck you C.
user142019
Y u no decltype.
Xeo
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
16:25
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 *)
16:27
@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.
17:29
who killed the lounge again? oh, @DeadMG of course :)
17:43
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.
17:51
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.
17:57
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.
18:02
@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
@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

18:16
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?
18:19
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
18:23
@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
18:35
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
18:39
@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
@TonyTheLion Because you still can't survive only with the Internet for substenance.
But perhaps, in a few years...
18:41
@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?
18:46
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?
18:48
@Tuntuni Ape and Robot
@TonyTheLion Wat do there
stuff
have a beer
talk
laugh at Robot being trolled by Ape IRL
Xeo
Xeo
:(
@TonyTheLion LOL
Xeo
Xeo
@TonyTheLion He's good at that
18:49
@ScottW ohhh nice
@Xeo yep
I still need to come out and meet you Xeo
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
Xeo
@EtiennedeMartel lol
@EtiennedeMartel that's why I quit smoking
Xeo
Xeo
18:50
@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
18:52
@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
Xeo
18:53
@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
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.
18:54
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
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
Xeo
18:55
@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
18:56
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
18:58
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 (4212 days later) »