« first day (418 days earlier)      last day (4532 days later) » 

2:00 PM
It's tedious.
And hell breaks loose when you forget one.
 
Compiler goes all medieval on you if you do.
 
all medieval, lol
 
It's from Pulp Fiction (slightly).
Anyway, get rid of semicolons and cryptic operators!
 
hey
if you dislike my grammar, then write your own, my in-language libraries will make it easy as hell
 
lol
But I have to read the code everyone else wrote!
 
2:07 PM
true true
 
What are you gonna do about iteration btw?
 
what do you mean?
 
Iteration on standard containers.
Iterators?
 
probably going to end up with container.for_each(lambda);
 
They suck and you're aware of it, so I expect you not to copy them.
@DeadMG And how do you implement for_each?
Oh silly, with a while.
 
2:13 PM
well, I could choose to leave the implementations undefined and let other people worry about it :P
but I'd probably choose to have range objects with begin and end iterators, where the container is implicitly converted to one
also
I'm going to stop that vector iterator stupidity and effectively force implementation as vector<T>*, index
if you want something like a pointer, then do &vector[0] and get a pointer
 
@DeadMG Why force it? There's no reason to forbid T* instead.
 
because I feel that the performance decrease doesn't justify the invalidation rules
 
Well, unless you want to force checked iterators.
 
in this case, I feel that you should have to explicitly ask for T*
 
@DeadMG Ah, invalidation. Good point.
Still...
 
2:18 PM
especially considering that X86 can do that in like, one instruction
and the vector will almost certainly be in cache
 
it := vec.get_iterator_to(5)
vec.clear()
Bam! Invalidated.
 
true
but vec.push_back(another); not invalidated
 
Xeo
vec.insert(iter_to_4, item)
now what does it refer to?
 
the new item
 
That was easy.
 
Xeo
2:24 PM
so it's basically a bound index
not an iterator per-se
 
@Xeo It's still an iterator.
Just less fragile to invalidation.
 
Xeo
I'd expect an iterator to point to a certain item and continue doing so until it is invalidated, not a certain place. But maybe that's just me
 
user406009
Hey, can a std::map be read by multiple readers concurrently?
 
yes
 
user406009
Good
 
Xeo
2:26 PM
concurrency problem are only problems when you have write access anywhere, most of the time. save cached lookups and things like that
 
user406009
Also, what would be your suggestion for program configuration? I was thinking of just using a singleton string to string map, but this sounds "clunky".
 
Oh, oh. You said that word.
Duck!
 
Xeo
loads the singleton gun
 
user406009
Thus I came here asking for a different solution.
 
why not just have a configuration object?
 
2:28 PM
@xeo serious shit about to go down
 
user406009
@DeadMG And pass it all down the program?
 
if they need to access the configuration
why not?
 
extern configuration_t configuration;
 
if your configuration is so extensive that virtually everything needs to access it, then obviously either you're trying to sell massive configurability, or you need to re-think the configuration options you offer
 
user406009
Ok.
 
2:30 PM
but more importantly, I'd usually implement configuration options by changing other method calls
 
user406009
?
 
not give those methods the config object
 
user406009
Oh, abstract classes and factories and the like?
 
Make it a Borg!
 
user406009
2:33 PM
Well I guess I will just pass down the configuration options to the ~5 classes that need it.
 
hmmmmmm
I might have an idea that might be awesome
 
I'm scared.
 
lol
I figure that as long as the token values I'm using are constant
I could put them in an MPL vector
 
What for exactly?
 
well, because then, if I have two or branches that clash, I can detect that at compiletime
i.e., detect ambiguities
and if it goes tits up, I can throw an exception which has the names of the expected tokens
 
2:42 PM
lol
 
I'd have to diverge the parser FSM code from the lexer FSM code, though
it neither needs nor wants this
 
The part of throwing the names of the expected tokens can be done with a std::vector no need for MPL.
 
true
 
Xeo
I think @DeadMG just wants to use MPL. He just wants to.
 
2:46 PM
Hey guys
 
well, if I want to statically assert that my grammar is unambiguous
then I will have to statically construct the follow set and statically verify that it is unambiguous
 
Are we talking compilers here?
 
yes
 
as long as I have an MPL vector of the follow set, then I may as well just damn use it for exception construction too
 
2:49 PM
Do you have any repository?
 
Beware that you promised something working for... I don't remember when, next week?
:P
 
lol
that's the thing
I could do that, but instead, I could fuck around with MPL
:P
@ManofOneWay Technically, I have a bitbucket repository, but it's passworded.
 
besides, you might steal my ideas!!!oneone!111oneeleven!111!!11oneeleven
also, the code there is months out of date
 
Then upload the new code and remove the password
 
2:52 PM
I'm pretty sure your password is "IAmAGenius3"
 
so that I can steal it
 
no thanks
I'd rather it worked, and I could tell my parents that I got an income from it, before sharing it for free
 
Or maybe "1h4t34ppl3"
 
nope
you won't guess the password, it was produced by my best friend seven years ago bashing his face on the keyboard
 
IAmAGenius4?
I could go on.
 
2:53 PM
holy shit, that was seven years ago
I'M SO OLD
2
 
Yeah, right.
 
my only childhood memory should be programmatically insulting my siblings
 
Now, the question is: you haven't changed your password in seven years?
 
Did they support numbers in passwords 7 years ago? I guess its just "IAmGenius"
 
well
technically, I currently operate with at least four passwords
 
2:54 PM
But they're seven years old.
 
no
one is ten years old, one five, one two, and the other seven
 
One of them is. The one that is protecting your most precious secret.
 
what makes them stronger is that they aren't dictionary attack vulnerable
and include numeric
 
Woo!
correct horse battery staple
 
also, my code on the repo is months old, so even if I gave you the password, there'd be nothing there to see :P
 
2:56 PM
That's why you should upload the new code
 
Mandatory xkcd:
 
my muscle memory is easily up to the job of much longer passwords than I have
the problem is my regular memory, I keep forgetting my 4-digit PIN for one of my cards:P
 
If you tell me, I can remember for you!
 
@RMartinhoFernandes funny :) but it's not that fun to type 30~ letters every time
 
@ManofOneWay One of my passwords is hundreds of letters long.
Lemme measure it.
 
2:59 PM
lol
 
maybe it's just me, but I'm totally unable to remember that xkcd password
4
 
Xeo
@RMartinhoFernandes Is it a private key used wrong? :P
 
"something with a horse and a battery,bwuuuuh...."
 
140 characters.
 
nasty
 
3:00 PM
well I figure that it should be trivial to write passwords that are easier to remember
 
I guess it's your stackoverflow password
 
@jalf I always get it wrong like "battery staple correct horse".
 
#include <iostream> int main() { std::cout << "This is the password, fuckers!"; }
that looks like a fine password to me
 
@ManofOneWay I use Google OpenID on StackOverflow.
It's the password to my password database.
 
Xeo
@DeadMG Use void main, much less vurnurable to attacks! :P
 
3:01 PM
yeah, I've been thinking about using stuff like KeePass
 
That's what I use.
On Windows anyway.
 
@DeadMG Right, but you're gonna mistype it for sure
 
why?
I follow my own whitespace convention, my muscles will always remember it
 
What I like about KeePass is that I can type my 140 characters long password and see it.
I.e., no silly asterisks.
 
lol
 
3:03 PM
If someone is behind me and doesn't go away, I can just punch them in the face.
 
user406009
Why would you need a 140 character password? You do not need to type an essay into the password box.
 
if I had a massive password, I'd just write a program to generate the first 500 digits of, say, pi
and then copy and paste that into the box
 
@DeadMG Then remember it.
 
or something equally silly
it'd be easier to procedurally generate large content than to recall it
 
Xeo
@DeadMG It'd be easier to remember the code that produces the output :D
 
3:05 PM
exactly what I just posted above
essentially
except the output is the code
 
@EthanSteinberg It's easy for me to remember, and it's protecting all of my other passwords, so I might as well make it hard to brute force.
Because if you crack that one, you're effectively cracking them all.
 
Hmm, I have several 19-24 character passwords that are hard to remember. I think I like your approach better.
 
I don't even remember the passwords per se, my fingers remember the key patterns to press
Change my keyboard too much and I can't login :/
 
@RMartinhoFernandes can't something just image scrape KeePass and get all your passwords.
I keep my passwords written down beside my desk.
I suppose that if someone knows to break in my house, shuffle through the messy stack of papers on my desk, look on the back of that ugly drawing, and copy them, then they win.
 
3:18 PM
@Xaade Well now they do
 
@Xaade Who?
There's no one here.
KeePass has the added bonus of typing the passwords for you.
As much as I like pencil-and-paper, a piece of paper can't do that.
 
have fun getting pass a shotgun and pitbull
@RMartinhoFernandes if message sender == keepass... copy keystroke.
 
@Xaade If my machine is compromised what can I do?
Typing it myself won't help.
 
ask people to start incorporating softkeyboards.
softkeyboard with randomized letters is pretty solid.
 
Yeah, but requires me to remember the password, and makes typing it a pain.
 
3:24 PM
@Xaade and maybe the most annoying thing ever conceived
 
the most secure thing to do would be to simply run your own hand-rolled operating system
nobody will find the vulnerabilities because nobody else has the code
 
And on a compromised system you could just screen scrape the keyboard and log the mouse clicks.
Oh yeah, did I mention it requires you to use the fucking mouse?
 
I still think that something like the first 500 digits of Pi would be a fine password
 
Xeo
Except for when the password lenght allowed isn't bigger than 30 characters :P
 
@DeadMG Sure. But now that you told us...
@Xeo For those cases you want a unique password anyway.
You can't trust those guys with a password that opens important doors.
 
3:28 PM
meh
I'll just make it random offset, random sequence duration, and random irrational
the 252525th 8888 digits of square root 2
 
@RMartinhoFernandes he could have a pass that hashes pi. Mentioning that he hashes it would prevent any knowledge.
My password for WoW hashed is 42.
 
lol
What about: "the 252525th 8888 digits of square root of -1"? :P
 
I considered i
but it has digits?
 
Everything hashed is 42, given a good enough hash algorithm.
2
 
3:30 PM
@DeadMG lol, no. It's not irrational.
 
oh well
I could also do something hilarious and say, like, the 252525th 8888digits of 0.9recurring
 
@RMartinhoFernandes um... square root of -1 doesn't have that many digits.
What about the 252525th 8888 digits of 1/3!!!
 
... in binary!
 
NAIS
or how about Pi as an IEEE754 64bit or 128bit floating-point number
in hex
 
@DeadMG Sorry, I have to manually refresh. Corp is blocking ajax for some reason.
 
3:32 PM
"Some reason".
@DeadMG Too short?
64 bits are only 16 hexits.
 
ok
 
Which is like "awesome", because our project management site could use some auto-refresh. Too bad, they can't bother refreshing on changing pages (It causes too much network traffic)..... sigh...
 
then make it pi, square root two, e, and phi
 
lol
Also, why is it so hard to find sites that accept Unicode passwords?
 
Yeah, I have to manually refresh on our project management site. Why can't they just give me access to the database and be done with it. I can write a way better shell.
@DeadMG pi * 2^(1/2)
 
3:35 PM
lol
but that would still only produce 16hexits
 
Markdown 2-0 Xaade.
 
you have to write * as %2a
it's pretty much status-won'tfix
 
I keep forgetting which side is the link, and which is the text
 
@awoodland Wolfram can handle multiplication by space.
 
3:37 PM
@awoodland YAY... thanks.... fixt
 
No, you didn't fix it.
 
Yeah, but when I used space for *, it didn't recognize the ^
 
Thus it ended up pi*2*1/2
 
3:39 PM
I got the exact same for both
 
@RMartinhoFernandes that works.... but you guys are missing the point!
 
What's the point?
 
Xeo
@Xaade template<class T> unsigned hash(T const&){ return 42; }
 
@Xeo no, you need a convoluted algebraic formula that turns any input into 42.
 
Xeo
@Xaade I have, there it is!
 
Ah, it interpreted it as if you were asking what the question was.
@Xaade Sorry, I'm unpinning that because it is wrong.
 
love the tiny subtext
man
wtb variadic templates :(
 
huh... better then monty pythons answer
 
Xeo
@DeadMG Switch to Linux :P
And hope something there provides the API you need
 
3:47 PM
Or use MinGW.
 
in the chicken or egg coming first debate; I state definitely that the egg cam first. We know that chickens are birds; birds evolved from reptiles; reptiles lay eggs. Thus without any doubt, eggs came first. QED
 
"Open the pod bay doors, HAL." is nice too.
 
Xeo
waits for you to put the link in
 
Just type it dammit.
 
@thecoshman The egg came first because birds must come from eggs; but the reverse is not true.
 
@DeadMG I prefer my logic... but yours also works
either way, egg came first
 
agreed
 
3:54 PM
You're missing the point.
 
go on...
 
@Xaade Am I missing something?
That shows nothing interesting.
No, go ask Wolfram about "88 mph".
 

« first day (418 days earlier)      last day (4532 days later) »