« first day (617 days earlier)      last day (4557 days later) » 

13:00
@Cicada That's not the point. Read the content of the messages
pretty cool
Also, IME a roll-your-own tracking agent beats any standard software, because thieves will learn how to look for and eliminate 'known' agents (in offline mode)
Why would the thief format if they don't know that it's there?
@sehe I second that
@TomW Actually I think formatting would be the first thing that a computer thief would do with it (assuming said thief is competent)
Then again, perhaps there'a actually a lot of incompetent thieves.
13:03
Mobile phone thieves aren't normally the most intelligent sort of persob
@Insilico A lot of thieves have been proven incompetent. Also, I think 'laziness' is by definition a character trait of thieves.
^ that's what I thought of
@sehe Aren't programmers also a bunch of lazy people?
@Insilico Yeah. So?
13:04
@sehe Just making sure. :-)
@Insilico I'm not an authority
@sehe I didn't say you were.
So, you didn't actually make anything sure
@sehe Oh don't make me go down the pedantry road again.
:)
I can't. You can only blame yourself :)
13:06
0
A: What's the difference between arrays of arrays and multidimensional arrays?

FredOverflowI would expect multidimensional arrays to offer operations such as "Give me the number of dimensions" or "Give me a certain column" or "Give me a certain sub-view". C arrays don't offer these operations.

mm
i don't know how to explain, the definition of multidimensional array vs array of array seems pretty intuitive
So only women can understand it? :(
;)
A multidimensional array of T can only be accessed when you fully specify all the coordinates in every dimension. And you get a T back.
An array of array is, well, a monodimensional array of monodimensional arrays (and so on).
how do you XOR a bunch of char and end up with two bytes at the end?
@FredOverflow Here's an analogy that probably incorrect but here goes.
13:09
Specifying all the dimensions gives you back a T. Not doing so gives you an array
I don't get it
@TonyTheLion Sex
A multidim array is like one of these things: theartistsdepot.com/images/Site_Ready/storage/HPB1107.jpg
@TonyTheLion For what purpose? Hashing? How many chars?
An array of arrays is like putting bookshelves within bookshelves.
13:12
@Insilico I want a picture :)
What's the difference between inheriting from a trait and inheriting from an abstract class?
@Cicada In what language?
Generally speaking
(= Consider multiple inheritance allowed)
Ell
Ell
what is a trait?
trick or trait
13:15
@Cicada Can’t, trait are defined in very different ways, and I honestly don’t know which definition you refer to
Oranges are orange. Apples aren't.
A head of a traitor.
@FredOverflow 40 char line
@KonradRudolph Scala has traits. She probably means traits as in Scala.
@TonyTheLion And what is the purpose of XORing them together?
@KonradRudolph Let's say C++ then?
13:17
C++ traits have no relation to abstract classes.
Then not C++
Scala traits look like Ruby mixins.
Crap. I can't think of any language supporting both traits and multiple inheritance
13:18
Mixins usually are a workaround for lack of multiple inheritance.
Ell
Ell
luncheon time bai guys
unsigned short XOR_ALL_THE_CHARS(unsigned char * p, size_t n)
{
    unsigned hash = 0;
    while (n--)
    {
        hash = (hash * 31) ^ (*p++);
    }
    return hash;
}
Or just partially implemented classes when there is multiple inheritance.
@TonyTheLion Does that help?
@Cicada Ruby
But yes, the Cat is right, they are usually a (way cleaner!) workaround for lack of multiple inheritance
13:19
But here bikipaedia sez:
> Mixins are synonymous with abstract base classes
I have no idea why Ruby has both
@Cicada bikipaedia is full of shit
Either way they're not really related to abstract classes.
@Insilico Did you draw that just for me? Thanks.
If they had no implementation, they'd be simply interfaces.
@FredOverflow Yeah pretty much. No guarantee about its accuracy
13:20
What I mean is "what's the point of traits when you can have mutliple base abstract classes"
@Cicada Traits are way more elegant
abstract base classes fall prey to the diamond of death
Mixins are pieces of functionality you compose together into a class.
traits, not so much
Yes, we've seen this picture.
13:22
traits also extend the type system and make it more flexible
@FredOverflow i look at it the physical way
for example if you have a 2d picture, you can ignore the y component and only move along the x component
Okay, looking at tit the physical way...
Oh. Well I hope nobody minds the picture :) Apparently so :(
13:24
Oh look, meat hanging from a primate
Some people might be at work on sunday :)
i initially wrote "at tit"
i guess that motivated him to gimme a weekend present
want another one? :)
yes! Not really. I've got plenty
13:25
@sehe People here don't work even during the week.
the polar bear is jealous because he only gets polar bear tits
Proof? (a) I'm working. (b) those pics aren't SFH either
So on what day of the week would it be acceptable to post pictures?
52 secs ago, by sehe
yes! Not really. I've got plenty
@FredOverflow Come on. Engage puny brains Take three guesses
@FredOverflow Depends on the nature of the picture, no?
13:26
@Insilico i think the previous ones looked pretty natural
@Insilico human nature
I don't think someone would mind if I post pictures of cute puppies.
You can always link NSFW
Actually someone might.
@Insilico Depends on the quantity and quality
13:27
@sehe Link is broken.
@sehe So I just have to make sure I don't take pictures using a potato?
@Cicada *you don't say.jpg*
@Insilico Be my guest. But don't post them anywhere it can inflict permanent psychological trauma
@sehe Well, try clicking on it. Or maybe server is just down.
ROFL trøll øn
13:29
Oh, really?
tits = bird, asses = mule?
@JohannesSchaublitb I'm opening that link in a VM. :-P
Donkey, not mule.
One of my favorites is penisland :)
The donkey or ass, Equus africanus asinus, is a domesticated member of the Equidae or horse family. The wild ancestor of the donkey is the African wild ass, E. africanus. The donkey has been used as a working animal for at least 5000 years. There are more than 40 million donkeys in the world, mostly in under-developed countries, where they are used principally as draught or pack animals. Working donkeys are often associated with those living at or below subsistence levels. Small numbers of donkeys are kept for breeding or as pets in developed countries. A male donkey or ass is calle...
13:30
@FredOverflow Or expertsexchange.com.
@JohannesSchaublitb So cute
perhaps you will enjoy his ass too:
Buridan's ass is an illustration of a paradox in philosophy in the conception of free will. It refers to a hypothetical situation wherein an ass is placed precisely midway between a stack of hay and a pail of water. Since the paradox assumes the ass will always go to whichever is closer, it will die of both hunger and thirst since it cannot make any rational decision to choose one over the other. The paradox is named after the 14th century French philosopher Jean Buridan, whose philosophy of moral determinism it satirizes. A common variant of the paradox substitutes two identical piles...
lol
That was new for me ^
@sehe: Yeah, there was a whole segment involving URLs like expertsexchange.com and penisland.net.
"therapistfinder.com" and "whorepresents.com" are also featured.
13:34
@LucDanton Oh, cool.
don't understand therapistfinder.com
what's naughty about it
ohh wait. now i see lol
"the rapist finder" vs. "therapist finder". lol
still doesn’t beat Tobias Fünke, analrapist
analyst/therapist
0
Q: Ackermann function don't work properly in C++

Ashiqur RahmanIn my home work of Ackermann function i have solved the problem as following int main() { int y = ack(4,1); cout<<"ans is :::: "<< y; getch(); return 0; } int ack(int m, int n) { if(m == 0) { return n+1; } else if(m > 0 && n == 0...

Someone doesn't quite seem to understand what the Ackermann function does.
Pre recorded laughs D:
13:38
Clap track
@KonradRudolph Well, you'd have to get in on a long queue right now. I just ordered mine last week (after a two month wait for the opportunity to order), and expected delivery time is 9 weeks.
`"did not worked properly"` - pure genius — sehe 4 secs ago
@RMartinhoFernandes I've just signed up for ordering last thursday
@RMartinhoFernandes Yup. Actually it’s not for me, I don’t get what it’s supposed to do anyway, it’s for the girlfriend
13:39
@sehe Maybe you'll get it for Christmas. ;)
@KonradRudolph It's just a small cheap computer.
@sehe To be fair, he does describe the error in more detail in the actual question
My goodness is the waiting list for Raspbery Pi's that long?
@Insilico bigger
Why the hype about that thing
I assume there's a contract manufacturer that can deal with the volume, no?
13:40
@KonradRudolph Still makes the code itself sheer brillance
@Insilico There wasn't at first.
the BBC have been going on about the Pi for years
That's the main problem.
well, basically as soon as it was conceived
they see it as the inheritor to their legacy with the BBC micro and the whole computer education thing they spearheaded
they wanted to manufacture it in Britain but tax weirdness made it uneconomical, so it's made in china
@TomW So who's making all the Raspberry Pi's now?
13:43
some nameless chinese company
Not sure if I want to go to a nameless company for the purpose of making lots and lots of Raspberry Pi's.
It's what every other tech product does!
@TomW So companies like FoxConn are nameless?
@TomW Tax weirdness? Didn’t they circumvent this by being a charity?
(Really?! Why are they a charity anyway?)
13:45
@KonradRudolph For education?
Aren't Raspberry Pi's made out for hacking around and learning about computing in general?
Who'd care abourt Foxconn if they weren't i) in the news for employee relations issues and ii) also manufacturers of consumer PC components with their own name?
is a arr[r][c] or arr[c][r] where r = row and c = column in a 2D array?
I want to traverse row first
@Insilico They sell a device. A charity would be giving the devices away to schools, in my view.
@TonyTheLion Depends. Column major or row major?
I want row major
13:46
Then row is first
i want litb major
there was something silly about it being cheaper for tax reasons to manufacture abroad and import the whole unit than it is to import components and assemble them here
@TomW They manufacture iDevices and Xboxes. That alone makes them pretty significant, IMO.
@TonyTheLion Then do so.
Row major vs column major only matters if you're iterating over a single dimension array.
@RMartinhoFernandes i disagree
13:47
@RMartinhoFernandes Uh. No.
@RMartinhoFernandes Do processors predict memory traversals with stride?
Or do they only optimize for the sequential case?
Otherwise what counts as a row or a column is purely convention.
@RMartinhoFernandes Exactly. And there are several conventions. Row major & column major.
Row-major is what maths+sciences prefer, IIRC
if my definition of row-major is correct
That's just storage format.
13:50
yes row major and column major is just about the storage format i think
otherwise you don't notice it
Yes and therefore it also applies on how you access data
@Cicada No, I'm saying that whether x[i][j] means row i column j or column i row j is just preference on whatever you want to call the things.
@Insilico They optimise for sequential case but modern caches are wicked smart, I think I’ve read that they can actually predict strides
@KonradRudolph i multidim arrays are more efficient to garbage collect
because you only have one reference to keep track of
@RMartinhoFernandes Then we violently agree
13:51
@JohannesSchaublitb Yes, definitely. Also potentially more efficient to access (again, cache locality)
But that's what Tony was asking: which dimension was rows and which was columns.
Well that's up to him
That was what I was saying
I don't care. I don't want to agree with you. :P
Then say something wrong
Just use a proper implementation of MD array and stop caring about silly implementation details.
13:55
Do modern processors have instructions that give hints to the compiler about things like which branch will be executed more often, etc.?
Find a precedent to support your convention, and dump it in the copyright header of each file that does matrix arithmetic
@Insilico I don't think so
There are compiler hints though
In my case, my precedent would be that when I write vectors (1-D) arrays in physics, they are vertical down the page, and indexed with i - therefore i is the row index
@TomW Just use the standard mathematic conventions
And stop confusing everyone
@Cicada Right, but if for example using profile guided optimization how does the compiler make it so one branch will be pipelined first by the processor?
13:56
That is standard
What about i is the first dimension, j is the second? No confusion whatsoever.
I don't know of any other way of doing it
@TomW There are
Column vectors are more common than row vectors.
They make more sense when you multiply matrices and stuff.
@Insilico I'm not sure but I think GCC has intrinsics for that
13:57
i wonder whether LLVM supports runtime optimizations based on runtime profile data
(hotspot optimization)
@TomW In languages that work with matices like MATLAB and Mathematica 1-D vectors are accessed the same way whether they're row or column
@CatPlusPlus That's purely a visual representation
@Cicada No.
So (1, 2, 3, 4) and (1; 2; 3; 4) are essentially the same
@Insilico Wouldn't a 1D vector be a scalar in disguise?
13:58
It's 1xN matrix vs Nx1 matrix.
guys, we are all right in our own way
right?
I'm sorry, a first rank vector.
@Insilico Well exactly, syntactically there's no reason for there to be a difference - the point is that if you care whether they're one or the other, you need a convention
It matters when you multiply it.
a language could define that there are no 1d vectors
13:59
Memory wise you have a horizontal vector :)
@CatPlusPlus Yes, and when you multiply them you can specify if you want to treat said first rank vector as row or column.

« first day (617 days earlier)      last day (4557 days later) »