« first day (879 days earlier)      last day (4067 days later) » 

7:00 PM
I tossed it around, kickde it around,
 
Xeo
@ThePhD Everything from Nintendo is durable as fuck.
 
You can use nintendo consoles as weapons
 
I think even once it entered water.
 
Any fans of the N64>
 
And it still played.
 
7:00 PM
@MooingDuck You also need to supply company data and prove that you don't suck dick. (The latter part is rather non-trivial).
 
my Ng64 is still kicking.
 
Metroid Prime 1 and 2, Double Dash, Melee, Thousand-Year Door, RE4...
 
@EtiennedeMartel durability, asthetics, and load times
 
@CaptainGiraffe If you use a splay tree (for example) you'd never resize (you allocate nodes individually, just like in most trees).
 
My Genesis died, though...
 
Xeo
7:00 PM
NASA should make their shuttles out of fucking Nintendo handhelds.
 
I add stuff to a vector, resizing happens, I add stuff to a std::list addition is trivial, I add stuff to a map O(log N ) I add stuff to a hashtable (O 1 ) or ?
 
My NES is still alive, partially.
 
ahaha Sega
 
@Pawnguy7 the N64 runs cool enough it doesn't need a fan.
 
@MooingDuck Aesthetics? You mean you look at your console while you play?
 
7:01 PM
@JerryCoffin Any balanced tree
 
@EtiennedeMartel You mean you don't?
 
@EtiennedeMartel no, but the XBox was ugly
 
@Xeo or nokia 3310s :p
 
@Xeo DShuttle 360
 
Xeo
I lost my Sega MegaDrive a looong time ago. ;_;
 
7:01 PM
@JerryCoffin no fan? Neat. I feel like Apple started their computers with no fans as well for some reason...
 
@MooingDuck Once you started playing, it didn't matter anymore.
 
@JerryCoffin And that voids the contract
 
@EtiennedeMartel certainly, but to some people the physical asthetics might matter.
 
@EtiennedeMartel putting CD in "Jesus Christ this thing is hideous" rinse and repeat
 
@Rapptz Hide it behind something, then.
 
7:02 PM
fucking chat won't stay scrolled down
 
Xeo
Refresh
 
@LightnessRacesinOrbit Back from repwhore land to grace us with your beauty ?
 
I'm also not the kind of guy who cares too much about the aesthetics of my PC case.
 
@Pawnguy7 True -- the Apple I had no fan (nor a case). The Apple II didn't either, but run just hot enough that a fan was a fairly popular add-on.
 
user142019
I like consoles because I don't need to care about hardware and I can use a controller without problems.
 
user142019
7:02 PM
Because I'm lazy as fuck.
 
@ThePhD so beauty
 
user142019
Seriously keyboards and mice for gaming suck tremendously.
 
@Zoidberg no u
 
@JerryCoffin I seem to recall it was Steve's decisions, something about inner beauty?
 
@CaptainGiraffe What contract does it void? Nearly everything in a hash table is linear worst case -- and a splay tree likewise.
 
7:03 PM
@JerryCoffin lookup
 
@Pawnguy7 I think you're thinking of the original Mac.
 
@Pawnguy7 I loved Super Mario 64 back in the days.
 
The N64 had a lot of good games..
 
@JerryCoffin It is my understanding that it should be o(1)
 
@JerryCoffin quite possible. It was before Steve's ousting though.
 
7:04 PM
PS2 had good games too.
 
Ah, SM64. Good game. I seem to recall a few bugs, though.
 
@Rapptz Most of them either by Rare, or by Nintendo.
 
@CaptainGiraffe Worst case is O(a_uniq.size()).
 
With Turok 2 being a possible exception.
 
@EtiennedeMartel Nothing wrong with that!
 
7:05 PM
@Rapptz The PS1 had a better line up.
 
@JerryCoffin what is a_uniq?
 
(Although the N64 had Ocarina of Time, so...)
 
Apparently they elected the new pope
 
Another wrinkly old white guy?
 
probably
 
Xeo
7:06 PM
Where did I read that again...
 
@JerryCoffin I also read that in NXXXX and was left unsatisfied
 
@Rapptz PS2 had squareenix.
 
Xeo
The Pope, chosen by God - and a 2/3 majority vote.
9
 
@CaptainGiraffe Oops -- that's for insert. For find it's O(b.size()). The a_unique() is dealing with number of unique keys in an unordered_multimap.
 
@JerryCoffin b is?
@JerryCoffin bucket?
 
Why is it, that the pope needs a new name?
 
iunno
 
I mean... "Pope Innocent"? Changing your name does not make you innocent.
 
@JerryCoffin Now that I have you online, would you mind critiquing me on my original statement, and why it would not display as English? I am not native speaker, I'd appreciate the input.
 
user142019
@Xeo Oh there's a new pope. :(
 
user142019
7:10 PM
The world would be nicer if it were popeless.
 
Curious about it, I wikipedia-ed a list yesturday. One pope.. "reigned" for 33 days, then died.
 
@CaptainGiraffe I believe b is just an object of type unordered_map, unordered_set, etc.
@CaptainGiraffe It displayed fine -- just the words didn't make any sense together.
 
Wow
 
@Pawnguy7 John-Paul the first.
 
The guy in red looks kind of messed up
 
7:13 PM
Poll: In constructors, should the parameters have the same name and use this->, or should it be like so: Constructor(Type newX, Type newY, Type newZ)
 
LIVE: one of three people that actually speak Latin on TV
 
@JerryCoffin yes, that was it
 
@Pawnguy7 this-> is an abomination that should normally be avoided.
 
@JerryCoffin :I have read my message again and again, I can't find why.
 
user142019
Maybe the new pope falls off the balcony and dies.
 
user142019
7:14 PM
There is still hope.
 
@CaptainGiraffe Too far back for me to find easily now.
 
@JerryCoffin m_ ftw.
 
Xeo
@JerryCoffin It's necessary in certain templates, though.
 
@Pawnguy7 You don't need this in init list
 
@Xeo Yes (or at least the alternatives are generally even worse). That's why I said "normally" instead of "always".
 
7:15 PM
@CatPlusPlus true, I had forgotten. Are you, then, a supporter of same-named parameters?
 
@Pawnguy7 MyClass(int x, int y, int z) : x(x), y(y), z(z) {}
29
Q: What is this weird colon-member syntax in the constructor?

nilsRecently I've seen an example like the following: #include <iostream> class Foo { public: int bar; Foo(int num): bar(num) {}; }; int main(void) { std::cout << Foo(42).bar << std::endl; return 0; } What does this strange : bar(num) mean? It somehow seems to initializ...

 
If we're going in that direction
 
Xeo
Are they screaming "jan-ken-pon" or am I mishearing?
 
LIVE: /r/jailbait moderator elections
 
7:16 PM
The new pope's name is Jorge Mario
 
@Fred if this is true, why do so many use, say, "newX"? Is it needed in other languages?
 
@FredOverflow MyClass(T x, int y, int z) : x(x), y(y), z(z) { x.foo = 1; }
 
@JerryCoffin The message was in the context of hashtables @JerryCoffin I for one, I guess you too, are keen to look at the actual implementations of this.
 
@Pawnguy7 because it's less confusing if the names are different. I tend to make member variables end in a _, so I can tell members from parameters easily, and so the interface has no wierdness.
 
@CaptainGiraffe Based on your later message, it's apparent that you were saying you thought I'd like to look at implementations (and you would too). I suppose I missed that interpretation primarily because it's so trivial to look at the implementation -- it's essentially always right here in the header, so you can read it whenever you want.
 
7:19 PM
@Pawnguy7 Because noobs don't know the syntax?
 
My first name Francis. I'm just like the pope!
 
@Xeo Fransceco, I think
 
@MooingDuck I find it less confusing if the names are the same.
 
@MooingDuck, what is your avatar. I know I have seen it, somewhere...
 
Xeo
Pokemon, Psyduck
 
7:20 PM
@JerryCoffin I feel uneasy having a function using two variables with the same name.
 
So, the new pope has been chosen. Amount of fucks given: 0.
 
Ah, that's it, yes.
 
Jorge Mario Bergoglio, SJ (born December 17, 1936) is the current pope of the Roman Catholic Church, elected on March 13, 2013, and taking the regnal name of Francis. Prior to his election, he served as an Argentine cardinal of the Roman Catholic Church. He has served as the Archbishop of Buenos Aires since 1998. He was elevated to the cardinalate in 2001. Early life Jorge Bergoglio was born in Buenos Aires, one of the five children of an Italian railway worker and his wife. After studying at the seminary in Villa Devoto, he entered the Society of Jesus on March 11, 1958. Bergoglio ob...
 
Xeo
Holy shit, those guys are fast
 
user142019
@StackedCrooked something not to be proud of.
 
7:22 PM
Yeah, well, it takes very little time to edit Wikipedia.
 
@Zoidberg But I looove children!
 
user142019
> 1936
 
@JerryCoffin That is a completely ridiculous analysis. How about one "Sorry dude, that was uncalled for"?
 
@Zoidberg Come on, you make it sound like that guy is the worst person in the world.
 
user142019
Yup, another disaster.
 
7:22 PM
@ShotgunNinja That was fast!
 
@Xeo Dude I linked it to someone on Wikipedia and then I refreshed the page and it said "Pope Francis"
I found out it was Pope Francis from Wikipedia before it even hit my stream
 
The history page already has dozens of entries.
 
Does Wikipedia have, say, source control?
 
@JerryCoffin Thanks
 
I would have to think in situations like these, you would have problems overwriting edits and such things.
 
7:24 PM
@Pawnguy7 No, it's all on USB stick :)
 
@Pawnguy7 It has revision history for all sections.
 
@Pawnguy7 it has rollbacks and a history, I guess it is source control.
 
user142019
> He strongly opposed legislation introduced in 2010 by the Argentine Government to allow same-sex marriage. In a letter to the monasteries of Buenos Aires, he wrote: "Let's not be naive, we're not talking about a simple political battle; it is a destructive pretension against the plan of God. We are not talking about a mere bill, but rather a machination of the Father of Lies that seeks to confuse and deceive the children of God."
 
user142019
Yup, disaster.
 
It has rollback by section? As in, per header?
Or, subheader, perhapps.
 
7:25 PM
@Pawnguy7 it has a rollback per page.
 
@Pawnguy7 That's a Sysop tool
 
@Zoidberg popes don't have a cvs
 
MediaWiki has rollback by section, as per header.
 
user142019
@CaptainGiraffe Do they use Git instead?
 
Let's say that, oh, ten people were to edit the introduction paragraph. The last saved edit is presented as its face, with the others as rollbacks?
 
Ell
7:27 PM
is interface a keyword in c++?
 
int is.
 
@Ell not yet
 
@Ell no (without looking=
 
@Ell No. To emulate the interface concept, you'd have to make an abstract class with pure virtual methods.
 
Google says it might be a, for example, Microsoft extension.
 
7:27 PM
@Pawnguy7 I don't know how it handles collisions, but I'm pretty sure it's not that.
 
Ell
"invalid combination of type specifiers" msvc says o.O
 
Xeo
#define interface struct in some Windows header, IIRC...
 
How is an interface the same as a struct?
 
@Xeo sounds solid to me.
 
@MooingDuck I believe it just looks through full-page histories, and diffs the content under each header section into a subset of diffs.
 
7:28 PM
@Pawnguy7 rollbacks aren't available to users unless a sysop gives it to them
 
@Xeo #uninclude <windows.h>
6
 
@Pawnguy7 Why not?
 
@CaptainGiraffe Somehow I get this feeling that you skipped reading the newbie hints, or didn't catch onto the fact that many of us are rude at times, simply because it happened to catch our fancy at the time. You're clearly in the wrong place if you're expecting everybody to be even close to 100% polite all the time.
 
Night guys. If sehe comes, tell him I said thanks.
 
@melak47 Poco has an "unwindows.h" header.
 
7:29 PM
@StackedCrooked lol
time to unpimp msvc?
 
@EtiennedeMartel Well, I see structs as, in general, POD-type stuff, say for example a point/coordinate class. An interface, I would say, is more of a pure virtual class not meant to be created. Not the same at all from my perspective.
 
It contains mainly #undef statements.
 
@Pawnguy7 In C++, structs are for anything that's mostly public. Like, say, interfaces.
 
Ell
IntelliSense: variable "EMIT" is not a type name * 100. Haha, silly msvc. I much prefer gcc or clang!
 
@JerryCoffin No not at all. What does "int&i = 0" fail . Failbot.com. No not a serious answer. Still no harm no foul. No do not parse the first part of my message as us_us
 
user142019
7:31 PM
I use structs for dumb data objects.
 
@EtiennedeMartel many people still use struct as POD.
 
> mutually recursive lambdas
wut?
 
Xeo
@TonyTheLion a calls b calls a calls b...
 
@EtiennedeMartel Give the number of "classes" that start with class X : public Y { public: , I figure struct is what most people really want most of the time.
 
calls a calls b sees termination condition, dies.
 
user142019
7:32 PM
@Xeo I wanted to word it exactly like that but you were faster. :v
 
@EtiennedeMartel I suppose that is true. I think I am getting stuck java-style interfaces. I see an interface as a go-between, a middleman if you will. I suppose I see it, now.
 
@MooingDuck You mean former C programmers?
I don't want those on my team.
 
@EtiennedeMartel no, I mean it's still common. I still do it.
 
I still don't want those on my team.
 
Ell
@EtiennedeMartel what is wrong with POD?
 
7:33 PM
@Ell because their opinion is wrong. :P
 
@Ell The "struct ≈ POD" mentality.
 
Xeo
@MooingDuck And you're an example of good design. ;)
 
@Xeo But how would you do that when a lambda doesn't have a name to call it by?
 
@Xeo heh, fair enough
 
@CaptainGiraffe What?
 
Xeo
7:33 PM
@JerryCoffin std::function
 
Ell
@EtiennedeMartel Oh right
 
@JerryCoffin 600 instances of struct vs 125 instances of class!
 
Ell
@JerryCoffin Y combinator!
(maybe, idk xD)
 
Xeo
Although I guess it gets more complicated as he wants to copy those lambdas... hm
 
I always use struct because that's how class should behave hmpf
 
7:34 PM
-7
Q: Why do multiple C++ compilers exist?

MrJavaCoffeeWhy are there so many different compilers for c++? I came from java, and I am just beginning c++, and I'm used to having 1 and only 1 compiler. And, what do people mean when they say c++11 is an "upgrade" to c++? I thought you coudln't upgrade a language, but just the libraries. I am pretty much ...

 
user142019
@JerryCoffin guess and hardcode its address and layout. :v
 
@Ell Y combinator is always a good answer.
 
@Xeo Yeah, one more instance where std::function is the wrong solution.
 
From what I have seen structs are generally used in their original c way, in that it was, for the most part, a POD. I find this to work well - Say, a struct can be used for a Point class. In this way, you can be used to the style, and when you see a struct, you expect simple data, while classes have methods.
 
> I came from java
 
7:35 PM
> I thought you coudln't upgrade a language, but just the libraries.
Not surprising, for a Java programmer.
 
user142019
lol
 
It's not like their language gets upgraded often.
OHOOOHOHOHOH
 
@EtiennedeMartel It doesn't.
I don't see what's so funny about it, though.
 
@EtiennedeMartel No only security patches
 
I mean, last major upgrade was, what, 1.5?
 
7:36 PM
but, Java 1.7 does switch on strings!
 
Xeo
@LucDanton True.
 
user142019
Java can't be upgraded since it's FUBAR.
 
@melak47 Oooh, because that really makes my dick rock hard.
 
@EtiennedeMartel TMI
 
@Zoidberg Which normally would mean that there's nowhere to go but up... However, the legacy argument effectively kills Java where it stands.
 
7:36 PM
Switch on strings? That could be useful. I feel like VB.net did that as well.
 
@Pawnguy7 it did
 
user142019
Restricting switch to a limited set of types is terrible.
 
@Pawnguy7 Useful, but not enough to resuscitate a dying language.
 
Xeo
Hah, he came to his senses:
0
A: Is it possible to disable GCC warning about missing underscore in user defined literal?

cmeubAfter reading several comments to this question, I reviewed the C++ 11 Standard (non-final draft N3337). When I said "I understand why this warning is generated" I was mistaken. I assumed that an underscore was not technically required by the standard, but just a recommendation (hence the warnin...

 
Are there any inherent downsides with switch on strings?
 
7:37 PM
closest C++ has to offer is std::unordered_map<std::string, std::function<void()>>
 
user142019
It should work on every type that supports == operator.
 
Ell
^this
 
user142019
And not only with constant expressions.
 
Ell
^this too
 
7:38 PM
@EtiennedeMartel Relevant
 
@Pawnguy7 it's easy to implement with unique integers, and harder to implement with things that don't convert to unique integers easily.
 
@JerryCoffin Yeah, that already has my upvote.
 
for once I agree with zoidberg :p
 
@Zoidberg as what, a series of chained ifs? Kinda defeats teh point
 
Xeo
switch_(str)
  .case_("foo")([&]{ ... })
  .case_("bar")([&]{ ... })
  ...
Doesn't seem particularly hard to implement.
 
7:39 PM
@MooingDuck Isn't switch a less verbose alternative?
 
@EtiennedeMartel Ah, thanks. Honestly wasn't trolling for upboats though.
 
Ell
@MooingDuck mmmm sugar :3 :P
 
@EtiennedeMartel not much no
 
user142019
@MooingDuck optimizations for constant integral expressions can still be performed so it doesn't matter.
 
Xeo
@MooingDuck It saves you from typing str == every time!!
 
7:39 PM
@MooingDuck it makes sense. I mean to say, assuming switch on strings were, for example, implemented more directly in a C++, what would the downsides be?
 
@Pawnguy7 none
 
@MooingDuck I mean, why would you use a switch instead of a bunch of ifs? For integral types, I mean.
 
@EtiennedeMartel speed
 
Xeo
@MooingDuck You have no guarantees whatsoever about speed.
 
user142019
@EtiennedeMartel compiler can use a jump table for that in some cases.
 
7:40 PM
@Zoidberg Can't it also do it with ifs?
 
Xeo
For all it's worth, the compiler might generate a chain of if-else ifs.
 
@MooingDuck I guess one thing might be that C++ strings, as in "Hello world!", are not objects, but const char[], if it makes a differences.
 
user142019
@EtiennedeMartel in theory yes.
 
@Xeo it's designed to make it easy to optimize for speed. That doesn't always kick in, but it's far more likely to kick in than with chained ifs
 
@Pawnguy7 Primarily that people might actually use it. Most uses of a switch on string are probably better off as a map<string, something> or unordered_map<string, something>
 
7:41 PM
@EtiennedeMartel harder
@Pawnguy7 it doesn't
 
user142019
switch must be complete syntactical sugar for if-else if in my opinion.
 
I always use switches when they make more sense from a readability standpoint. Never for purrformance.
 
@Zoidberg it is in VB and C#. In C++ it's an optimization hint, like inline
 
Xeo
Reminds me of that thing we had in our Flash codebase... uargh
switch(true) ...
 
Learning C++, I heard it was faster: I don't know at what point that is. I think half of it, though, is readability in style, say switching on ten enum states.
 
7:42 PM
@Xeo o.o
 
@MooingDuck That's not what inline is.
 
@Xeo ..huh
 
@LucDanton it's an optimization hint with special mechanics to make said optimization easier. Just like switch.
 
user142019
@MooingDuck C# supports this?
my_type foo = lol();
my_type meh = rofl();
switch (foo) {
    case meh: moo();
    case muh(): mah();
}
 
@LucDanton the rules only mention the special mechanics.
 
user142019
7:42 PM
I don't think so.
 
@Zoidberg I don't know about user types, but I thought it does for strings
 
user142019
Who cares about strings.
 
@MooingDuck No -- inline is a way to modify the one-definition rule.
 
Cats
 
user142019
I want this to work for any type that works with operator==.
 
7:43 PM
@JerryCoffin I see that as a side-effect of making inling optimization easier. Not the goal.
 
In C++, is using unions really used for anything now?
 
Because we're not in the year 2000 anymore I won't discuss inline.
 
@JerryCoffin what possible purpose would there be to "modifying the one-definition rule"?
@Pawnguy7 no
 
user142019
@MooingDuck And switch is for readability and has a side-effect of making optimization easier.
 
user142019
@MooingDuck header-only libraries?
 
7:44 PM
@Pawnguy7 I've seen them used in C with Classes for DS development... but that's only to approximate the proper data layout for the sprite memory bank.
 
0
Q: How to force a longer `reboot` in Busybox v1.13.3?

Lightness Races in Orbitreboot appears to make the root file system read-only almost immediately, causing a race condition with one of my processes which tries to write settings out to a file during its approx 1-2 second shutdown. The result, intermittently, is an empty settings file as it's truncated but not filled ba...

 
@Zoidberg shouldn't be a goal if it's not about inlining functions.
 
@LucDanton lol, inline
 
@MooingDuck then again, I am yet to think of a situation where bitwise operators are particularly useful, but I hear t, here are some bitwise tricks
 
I got a spam email today! (@MooingDuck :p). they managed to spell my email address wrong in the body of the message. wtf
 
7:46 PM
@Pawnguy7 bitwise operators are handy with bitfields and flags and such. And interacting with C libraries. I guess C interop can still require union.
 
@MooingDuck ...except that (unless you're using a truly ancient compiler) inline has no effect on optimization at all, only on the ODR.
 
@melak47 wat
 
user142019
@Pontifex JE CAPS LOCK STAAT AAN
 
user142019
> YOUR CAPS LOCK IS ON
 
user142019
lololol pwnt
 
7:47 PM
@Pawnguy7 bitwise operators are barely short of necessary for implementing things like encryption and cryptographic hashes.
 
@ShotgunNinja melak47@email.thing is the address, and the mail goes "Hi! meelak47@email.thing"
 
@JerryCoffin can you expand on that? I have not heard of that before.
 
@JerryCoffin sure. Just because it's easier doesn't mean it's a necessary requirement. Modern compilers can do inlining the hard way too. That doesn't change the fact that inline has special restrictions designed to make inlining certain functions easier.
 
@MooingDuck It does, and it is also an optimisation hint. gist.github.com/rmartinho/5155474 (note the build up of the dictionary)
 
do they have some poor sucker writing these by hand? :p
 
7:48 PM
Just like everything else in the language.
 
@melak47 God, I hope not.
 
@JerryCoffin and if inline has no effect, then there's no real reason to create header-only libraries.
 
@Pawnguy7 How about a concrete example?
 
Ell
Hmm. Student webhosting only £1 a month. 25gb webspace, unlimited data.
 
@R.MartinhoFernandes error 500
and I'm late and gotta go
bbl
 
7:49 PM
Works here.
 
@Ell I can't into webthings
 
Ell
also free .biz domain name
 
@MooingDuck Not true at all. Just for the obvious, most compilers effectively require template libraries to be header only.
 
user142019
If I type "fi" into the omnibox in Chrome it does completion as if I typed "fi". :|
 
@JerryCoffin I see... Unfortuately, I could not comprehend what that does.
 
7:50 PM
@Zoidberg As expected.
 
user142019
Why? Normalization or something?
 
@Zoidberg how do you type fi
 
Don't use fi. It's a compatibility character that exists to roundtrip perfectly through some weird encoding.
 
@Pawnguy7 That's a cryptographic hash (SHA-256).
 
@Zoidberg Because identifiers should use compatibility equivalence. "fi" is equivalent to "fi".
 
user142019
7:51 PM
@melak47 ⇧⎇5
 
user142019
@R.MartinhoFernandes Oh I see.
 
Decent renderers will use ligatures automatically appropriately.
 
@R.MartinhoFernandes And how many renderers are there that qualify as decent?
 
user142019
Ligatures are beautiful.
 
@JerryCoffin The one I have here does ligatures.
 
user142019
7:53 PM
@JerryCoffin Apple's. *runs*
 
(Whatever FF uses on Windows)
 
Ell
@Zoidberg what is the packet sniffing type browser plugin you use to look at http traffic?
 
I think it's a rather common feature.
 
@JerryCoffin I gathered that. It just, to me, looked more like randomly shifting in a sort of random way that would totally deform a value, I am not sure quite how it works and why it is good.
 
user142019
@Ell I don't use a plugin for that. Why would I.
 
user142019
7:54 PM
@Ell Just use Web Inspector.
 
@R.MartinhoFernandes Fair enough.
 
Ell
@Zoidberg I don't know, I recall you using one
 
user142019
@Ell Web Inspector, which ships with Chrome and Safari.
 
@Ell any browser works pretty well for looking at http stuff :p
 
I am getting that scrap the whole project feeling. Considering this project only consits of ten files and less than 600 lines, it is probably time for a break...
 
7:57 PM
@Pawnguy7 For whatever it's worth, SHA-256 is one of the better cryptographic hashes currently known. The intent is to make it impossible for you (anybody) to figure out an input that will produce any given output, or to find two inputs that produce the same output.
In any case, the intent here wasn't to give a lesson in cryptographic hashes, just to give an idea of how heavily you use bitwise operators in implementing one.
 
@JerryCoffin I see. Although... can two inputs produce the same output? That sounds incorrect.
 
It's called a collision
 
I would think it would not work, because if either a or b is c, I don't think you could go backwards and determine a or b from a c.
 
And since the input space is infinite and output space is finite, there always are collisions
 
@Pawnguy7 It produces a fixed size of output (256 bits) so it's inevitable that with more than 256 bits of input, there must be (at least) two that produce the same output.
 
7:59 PM
It's just not really feasible to find them with space so large
 
Ah.
 

« first day (879 days earlier)      last day (4067 days later) »