« first day (1307 days earlier)      last day (3627 days later) » 

user3010322
1:03 PM
@R.MartinhoFernandes If you stored the password as a sequence of letters (represented only by the digit that represents 3 numbers), a discrepancy on where Q is placed could fuck that up.
 
user3010322
If they were storing the actual letter, it doesn't make any sense, yeah. But if you're only storing the number, uh.
 
@ThePhD Nope. Storage is irrelevant.
 
user3010322
(Why wouldn't you just store whatever the user gave you, numbers or letters?)
 
user1804599
@BartekBanachewicz Writing Funciton?
 
user3010322
@R.MartinhoFernandes No I mean, Q and Z could be placed on different numbers based on certain designs of whatever phone system. Some pads seemed to have Q on 7, others had it on 9 for some fucked up bizarre reason. So if someone was calling in and they typed in what they thought was the pad told them was Q, it would actually not be Q if they signed up on phone using a different touch pad where the Q key was placed in some other bizarre location.
 
1:06 PM
@rightfold oh lol
 
user3010322
It's a leaky abstraction, because it's not storing the letters, even though it's asking people to store it in their brains (i.e., how to think about it) like that: it's just storing the sequence of digits.
 
user3010322
In today's day and age, however, there's really no excuse to keep that restriction...
 
@ThePhD Doesn't matter.
What's labelled on the keys is irrelevant.
It's always been.
 
user3010322
It matters when the user translate their password into a series of digit presses that logically reads like a collection of letters should, but in actuality it's just a bunch of digits that don't distinguish between the letters at all.
 
user3010322
It's a derp in telling the user to act like their password is letters, when at the time it wasn't letters at all.
 
1:10 PM
The user just types the password the same way they always did.
It doesn't change anything.
Why do programmers insist on leaking encoding everywhere through their thought processes :<
Who cares how it ends up on the other side. On the keypad, it's always the same thing.
 
user3010322
On one keypad.
 
How does it differ if you use different ones?
 
user3010322
That's the argument in those answers. Some of the keypads assigned different letters to different keys.
 
Yes, and the labels don't matter.
You can black them all out and they're still functional.
 
user3010322
I'm the user. My password is "ABCDQ". On one old touchtone pad, that's 11127. On another, it's 11129, because Q is on the 9 key.
 
user3010322
1:12 PM
As a user, I'm being told to think in terms of letters. So I hit letters.
 
user3010322
But the system takes numbers.
 
@ThePhD Not the point.
Some keypads don't have Q.
 
user3010322
Yes, at which point the user just tries to remember the numbers. Or panics.
 
@ThePhD No.
At which point they don't have Q in their password because they can't type it.
(Q and Z are the highest scoring letters in Scrabble least frequent letters in English, and dropping them leaves exactly three letters per key)
 
user3010322
There's the case where someone who had a Q and Z touchpad and then goes to a non Q and Z touchpad.
 
1:14 PM
@ThePhD Why did you buy it?
Why is that even worth caring about at all?
 
user3010322
It's not a question of buy. You're in a different location. You're just using someone else's stuff.
 
user3010322
There's lots of reasons.
 
user3010322
And, I don't know!
 
@ThePhD Who cares?
 
user3010322
The company did, obviously.
 
1:15 PM
If I'm using someone else's box I have that problem still.
 
user3010322
vOv
 
user3010322
That's how they decided to 'solve' the problem.
 
They didn't solve it.
They created a different one.
@ThePhD What if my keypad is with 1 at the bottom?
What if my keypad has only Ctrl+Alt+Delete?
 
Stop using vOv I always think it's the Cat
 
It's a clear SEP.
 
user3010322
1:18 PM
I'm not saying you're wrong. I'm just saying that's how they thought of the problem.
 
user3010322
It's dumb, but that's what they did.
 
That's what the message you replied to initially said.
 
user3010322
Hm. You're right.
 
user3010322
I've wasted both of our times. I should RTFMessage.
 
user3010322
Question. How do you keep skirts on?
 
user3010322
1:22 PM
Are they like, clipped on the side where you tie it in / button it in?
 
user3010322
Or are they just elastic?
 
I think they're just elastic. I've never seen somebody clipping or unclipping a skirt.
 
user3010322
Huh. I just realized there's a lot about certain kinds of clothes I know nothing about.
 
lol, they also say they must be case sensitive. Makes total sense when you think about phone pads.
 
1:24 PM
@presiuslitelsnoflek :lol:
 
Or maybe they're like kilts and there are a lot of ways to do it; pinning, clipping, strapping
 
@ThePhD Like trousers?
 
user3010322
@R.MartinhoFernandes But you don't see like, a front zipper.
 
Xeo
^
 
@ThePhD there's a side zipper. Or a back zipper
 
Xeo
1:25 PM
From what I've seen, it's on the side
 
user3010322
And I can only recall some skirts with like, a button on the side.
 
Xeo
or buttons
both work
 
why are we discussing this again
 
user3010322
Huh. I wonder if they DO make elastic skirts....
 
Xeo
3 mins ago, by ThePhD
Question. How do you keep skirts on?
 
user3010322
1:26 PM
Or if they're predominantly button/zipper.
 
@Xeo yes I saw that
 
Xeo
Random question vOv
 
user3010322
Curiosity compels me. :(
 
Or he's planning something involving skirts
 
Xeo
To everyone his own
 
user3010322
1:26 PM
Besides, much safer to ask here than go up to a lady "Hey, how do you keep that skirt on?"
 
@ThePhD So, like trousers.
 
Xeo
@ThePhD Is that the beginning of a pick-up line?
 
user3010322
@Xeo It very well may be.
 
Xeo
nanana
 
user3010322
1:27 PM
Need a clever punch line.
 
@Xeo What does it end with? Calling her fat?
 
oh god damn
 
Or maybe anorexic.
 
Xeo
@BartekBanachewicz Lesson learned: Don't 'nanana' room owners. :P
3
 
Xeo
1:30 PM
There is no point of reducing 99% of C++ questions to "use boost" - boost turned into a monster conglomerate and not only that no one has the time to track it anymore, but also no one has the time to read through it. For simple things people don't want to incur dependency on yet another corpus of code and it's cross dependencies. That's the downfall of all big libraries and "frameworks" - they move like a herd. — ZXX Aug 7 '10 at 23:25
Boost was the new jQuery in 2010 already!
 
lol
@ThePhD The zipper on the front doesn't keep the trousers up, though. It just seals the fly.
 
@DeadMG It certainly helps, unless you already got the button done up
@ThePhD Or "how do you take that skirt off?"
 
@LightnessRacesinOrbit :D
 
1:45 PM
fair enough
 
user3010322
Hahaha.
 
user3010322
It's just that easy!
 
I hope this is fit's within the scope of c++ lounge... Can anyone please confirm, that cppreference.com is unavaliable? I have troubles accessing it since yesterday, I am not sure if this is my network or the site is actually down with no notice.
 
Xeo
no problem on my end
 
ahahahaha I have to try this
 
1:47 PM
@luk32 isup.me
 
@LightnessRacesinOrbit Why is this humourous?
 
@DeadMG hiding under a rock again I see >.<
 
I don't know either.
 
ah
 
1:50 PM
Brooker brings it up once in a while on *Wipe
 
so when you say, "Living under a rock", you mean, "Forgot reddit memes that weren't funny in the first place from years ago"?
 
@Xeo Damn it, thanks. I can't reach it with the ping and chrome says it couldn't connect. @Jefffrey Thanks for the tool mate! Appreciate.
 
because #2 sounds entirely reasonable to me.
 
@DeadMG Has nothing to do with Reddit. The video was shared all over the place at the time and anyone possessing eyes, ears and fingers was aware.
 
FWIW I wasn't
 
1:50 PM
As I say, popular TV shows have propagated it.
 
I wasn't.
 
Then you're all stupid and ignorant.
how about this one
 
Xeo
I don't watch TV :)
 
@Xeo what, none at all?
 
Xeo
none
 
1:51 PM
me neither
 
Xeo
don't have a TV at home
 
user3010322
Same.
 
you have a computer
 
user3010322
1:51 PM
No TV.
 
@LightnessRacesinOrbit exactly, why watch tv then
 
user3010322
Haven't watched traditional cable/satellite in yeeears.
 
@BartekBanachewicz watch TV programmes on your computer, dumbfuck
 
@LightnessRacesinOrbit For about the two minutes it took to laugh, close the tab, and move on.
 
user3010322
I would watch more TV but need to buy netflix.
 
1:52 PM
@LightnessRacesinOrbit why would you do that if you can watch other things or play games?
 
also, fuck popular TV shows.
 
I mean, I watch "whose line is it anyway" sometimes, if that counts.
 
user3010322
DeadMG too hip for mainstream TV.
 
most of the popular TV in Britain is just shitty "reality" TV or game/panel shows that aren't funny.
 
but fuck mainstream tv
 
1:53 PM
@DeadMG I thought you watched some.
DW and stuff.
 
it's pretty exclusively American/Canadian sci-fi.
 
@LightnessRacesinOrbit Why do they make 3D models of the save icon in the first place?
 
eh
I did watch DW when I was younger but not anymore.
besides, DW's grand total of about 6 episodes a year hardly qualifies it as a TV show, IYAM.
and most of that runtime is just "How great is the Doctor, rite? HUMAN SPIRIT SOLVES ALL PROBLEMS! YUMMY WARM GOODNESS IN OUR HEARTS!".
 
@Jefffrey -.-
@BartekBanachewicz What do you mean "watch other things"? What other things?
 
@LightnessRacesinOrbit FIA GT races. Premier Guitar's Artists' Rig Rundowns. League of Legends streams.
 
1:56 PM
@DeadMG Okay, except it hasn't been like that for about 5 years. But sure, since you don't watch it, you know best.
@BartekBanachewicz <H2CO3>MIND BLOWN</H2CO3>
 
@LightnessRacesinOrbit what
 
well, actually, it's been more like that recently, that's why I stopped watching it.
 
@BartekBanachewicz just wanted to say that
@DeadMG No, not really...
"human spirit solves all problems" where did you get that nonsense from?
although if you're talking about Clara's revealed purpose then I agree
that was hammy
 
eh, it's not fundamentally different to what Rose did in the first season finale when 9th doctor becomes 10th.
at least having Clara be a mystery in her own right was semi-interesting until the finale itself.
 
Xeo
I still have to watch the latest season
 
1:59 PM
@LightnessRacesinOrbit too obvious?
strawberries are motherfucking great
 
hmmm.
this expression is a pointer to a pointer to a pointer to a function pointer.
not sure if correct.
 
Who wrote it?
 
me.
 
Why?
 
implementing vtable
pretty sure this should only be a pointer to a pointer to a function pointer.
 
2:04 PM
Why not a pointer to a function pointer?
 
the pointer to the vtable is a pointer to a function pointer.
then I need to point at that pointer so I can issue stores to set it.
 
@DeadMG Okay but Rose's win had nothing to do with the human spirit. So you're just talking out of your arse really
 
@DeadMG that statement implies that the vtable is a function pointer, which I know is not what you meant
 
@Jefffrey not entirely. a pointer to a contiguous block of ints of unknown bounds it also a pointer to an int
 
@Jefffrey It's an array of function pointers, and the vtable pointer points to the first element, which is a function pointer.
 
why are you not using a container again?
 
er
 
arrays are containers
 
how about you implement std::vector in LLVM IR.
 
user1804599
Hmm.
 
user1804599
2:08 PM
So I just found this website where if you try to log in with invalid credentials, it prints the SQL query.
 
user1804599
> SELECT id FROM users WHERE id = 'foo' AND wachtwoord = 'bar'baz'qux' LIMIT 1
 
@DeadMG why are you doing it with LLVM IR?
 
... so that I can code-generate it into an executable or JIT in memory and then execute it?
why else would I do such a thing
 
I mean, why are you not using an higher level language like C++?
 
> ORDINARY people. Make yourselves feel more important by carrying a bugle everywhere you go and sounding it before you enter.
 
2:11 PM
@Jefffrey The compiler is programmed in C++.
 
I'm totally doing this
@rightfold Now you are an elite hacker. Congratumalations.
 
Xeo
Congratuwelldone.
 
@rightfold link
 
user1804599
@Jefffrey Uh, no.
 
unfortunately
 
user1804599
2:12 PM
I think I better fix it first. :v
 
I'm up to six TUs with an MSVC bug and the 7th has an ICE.
 
@DeadMG So?
 
@Jefffrey So I am using a higher-level language like C++.
 
Xeo
Jefffrey seems to be misunderstanding how this whole 'compilation' thing works.
 
@DeadMG whistles
 
2:13 PM
yeah... I'm not sure what he's talking about.
@R.MartinhoFernandes Well, at least when Wide ICEs, I've only myself to blame :P
 
@LightnessRacesinOrbit Don't bring it to the unconference. I am dangerous with knives.
More to me than others, but still.
 
@DeadMG So, you have to implement a vtable in Wide. Correct?
 
Xeo
@R.MartinhoFernandes What does a bugle have to do with knives?
 
@Jefffrey no, in C++ :)
 
no, I'm implementing the vtable in the compiler.
 
2:15 PM
@Xeo It's a threat.
 
you, the user in Wide, do not have to implement a vtable, because it's implemented as a compiler feature.
 
@DeadMG In the Wide compiler, right?
 
yep
 
2:17 PM
Ok, good. The compiler is written in C++. So why can't you express the vtable structure with standard C++ containers? Just like cpp("<vector>").vector (or whatever the syntax was) represents an std::vector.
 
because
how the fuck am I going to code-generate into my executable a container that exists at run-time in the compiler.
 
How do you do it with cpp("<vector>").vector?
 
Xeo
5 mins ago, by Xeo
Jefffrey seems to be misunderstanding how this whole 'compilation' thing works.
 
I load <vector> with Clang at compiler run-time.
then I ask Clang to kindly code-generate the functions I need.
and by that I mean I spent months bashing it over the head until it finally did that
 
Xeo
Also, a vtable has a fixed number of entries, so the correct representation would be std::array<funptr, N> and.. gasp, that's basically funptr arr[N], which is stored somewhere in static memory. and then the the class gets a pointer to that.
 
2:21 PM
right.
creating and initializing a dynamic container would require thread-safe initialization of such a thing
 
So when your parser (?) interprets "cpp("<vector>").vector" it loads <vector> and Clang kindly generates the code for you. Can't you do that when you parse a class definition you load <array> (or whatever) and let Clang generate the code for you, again?
 
Clang does not contain routines to generate code for Wide vtables.
 
But it contains the data structure that represents the vtable. Which, apparently, is std::array.
 
yes, but Clang won't code-generate anything to do with a std::array unless you're a C++ function.
unless you want to manually stitch the calls together yourself, which would be even more problematic than what I'm doing now.
 
Which would theoretically be possible.
 
2:26 PM
sure, it would be.
 
Xeo
It would bring absolutely no benefit, though
 
the fundamental structures would be identical, I'd just be needlessly adding a layer of indirection over every type and operation.
 
So, what exactly didn't I understand about compilation? @Xeo
 
> the saner level of discussion on Hacker News
lol, someone wrote this.
 
it was five years ago
iirc
 
2:30 PM
@R.MartinhoFernandes I can bring unknives
like a bugle
 
@Jefffrey I don't know. Maybe just because I have sent it somewhere. I use * every time a have public vars in my classes that are going to be accessed from another classes. For example, if my class Player has a vector of Pieces that is going to be accessed by Board, then I make Piece* a pointer. I understand, maybe incorrectely, the no-pointers as data local to the current scope, and I use pointers to "more important" less local data. — Tatanan 13 mins ago
 
lol
 
user3010322
Good
 
user3010322
I hope everyone ablocks that shit and they go under.
 
2:37 PM
@R.MartinhoFernandes What's funnier is cppreference taking buttcoin donations
 
I think the guy actually posted it as a funny pic.
 
user1804599
Even donating to Tomalak would be more worth it.
 
Dude... Elegance is just a fancy way to say "efficiency-that-looks-pretty" in my book. Don't shy away from using C functions and quick methods to accomplish anything just because it is not contained within a template ;) — nlaq Oct 25 '08 at 9:04
 
@rightfold Be my guest
 
user1804599
nlaq, Anacortes, WA
11k 6 44 58
 
2:42 PM
@rightfold :D
 
cppreference asks for donations in Bitcoins? really?
 
@MartinJames not a chance, never had such issues
 
dude, they're called "buttcoins"
 
@rightfold What about it?
 
user1804599
 
@R.MartinhoFernandes Well.
 
@LightnessRacesinOrbit Or buying mugs.
 
@R.MartinhoFernandes You're a mug.
 
Your mug is a mug
oh man are the Americans still going on about 9/11 and dedicating museums?
a few thousand people is not actually that many in the grand scheme. America has killed many, many more civilians than that
they should stfu
it's all this "American lives are more valuable" bullshit
 
they killed way more people on both sides and lost way more money in the wars
 
2:49 PM
@LightnessRacesinOrbit the US needs to keep its people patriotic and brainwashed (are these synonymous in this context?)
 
@LightnessRacesinOrbit Oh, shut up.
You can't quantify death.
 
@AlexM. They're always synonymous
 
@EtiennedeMartel He just did.
 
I'm questionning whether it's appropriate to do so.
 
@EtiennedeMartel "Appropriate"?
 
2:51 PM
Morality and shit.
 
When you say "to honor the memories of those killed on 9/11", it makes sense to think of the memories of all those other killed as well.
 
@EtiennedeMartel So, you think I should be banned from discussing any topics in which people died?
 
@R.MartinhoFernandes Yes, but his point is more like "since they're not honoring the other people, then they should not honor those either".
 
huh, got a message from moderator about my account.
maybe I should read this one?
ah, that'd be effort
 
@EtiennedeMartel it's fine, the point of the honoring isn't really honoring, methinks
 
2:53 PM
@EtiennedeMartel I didn't say they shouldn't honour them
 
it's really just to remind people that terrorists are bad and america beats them all
 
@LightnessRacesinOrbit You said "stfu".
 
I said they should stop going on about it at every available opportunity whilst ignoring the fact that they are hypocrites
@EtiennedeMartel Reading is fun! (Try it sometime)
 
You seem to consider "Americans" as an homogeneous hive mind.
 
They totally are
 
user3010322
2:54 PM
an homogeneous... a homogeneous?
 
user3010322
I never knew whichone to take. I switch it up from time to time.
 
Mix it up.
 
@ThePhD "an" is old, "a" is new.
 
"h" used to be silent but now is generally not.
 
Xeo
2:56 PM
if (a == 2)
  b = 1
else if (a == 1)
  b = 2
else
  b = 0
I'm trying to think of a simple formula, but nothing comes to mind
 
@LightnessRacesinOrbit Eh, whatever. I don't know why my sarcasm-o-meter always fails to register when you talk.
 
b = (a-1)%3; // assuming unsigned
maybe
might need to do some subtractions from 3 before and after
no wait
 
@LightnessRacesinOrbit nope
 
nm
@EtiennedeMartel I wasn't being sarcastic.
 
See? That's what I mean.
I can never say if you're trolling or if you're serious.
 
2:57 PM
@LightnessRacesinOrbit +
 
Xeo
Maybe I should just switch around the b = 2 and b = 0. Then it simply becomes 2 - a
 
@EtiennedeMartel I'm not.
 
@R.MartinhoFernandes nope either
 
user3010322
b = a ^ 0b11, maybe?
 
user3010322
I mean, ignores al the other numbers but does the switching when it's not that...
 
2:58 PM
enjoy
 
I'd rather read the if version
 
Xeo
Hm, what I'm trying here is actually inverting a tri-bool. true becomes false, false becomes true, and indeterminate stays the same
 
but if you're golfing code, then it's a whole 'nother matter :D
 
:16494132 for a == 5 the original code should return b = 0, which yours does not
 
the if version is fine frankly
 

« first day (1307 days earlier)      last day (3627 days later) »