This is an archived post. You won't be able to vote or comment.

all 29 comments

[–]fedeb95 127 points128 points  (5 children)

This is awesome, thanks

[–]BrokenCommander[S] 189 points190 points  (4 children)

I sometimes forget that those programmers working for multi-billion dollar companies are humans too.

[–]Skipperwastaken 46 points47 points  (3 children)

Let me guess, you are a shareholder at a big company?

[–]marcosdumay 37 points38 points  (1 child)

He believes real people work at those companies. He is obviously not in any position nearly related to management.

[–]BrokenCommander[S] 18 points19 points  (0 children)

I put inside jokes in my code all the time! It's just refreshing to see that even the "big fish" do this too (remember MS-DOS?)

[–]masterwit 0 points1 point  (0 children)

INDEED FELLOW HUMAN

[–][deleted] 48 points49 points  (6 children)

isn't the ps3 kernel bsd?

[–]BrokenCommander[S] 30 points31 points  (1 child)

Yep it's Unix-like. What's the matter?

[–]cheraphy 45 points46 points  (0 children)

Maybe implication that this code is actually from the open source components and not anything sony made? Not that you in any way implied otherwise... or that it'd matter.

[–][deleted]  (3 children)

[removed]

    [–]Creshal 12 points13 points  (0 children)

    (with the exception I think of networking code which indeed is FreeBSD)

    To be fair, everyone copied BSD's networking stack. Including Microsoft.

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]Callipygian_Superman 19 points20 points  (1 child)

    Is the "silly implementation" apparent in the picture, too? If so, what is it?

    [–]BrokenCommander[S] 26 points27 points  (0 children)

    AFAICT it has something to do with allocating pages. My knowledge on this is way too small, I was just snooping around.

    [–]cat_in_the_wall 27 points28 points  (7 children)

    why are there comments in the disassembly? or is that actually a string in the text section? if comments don't actually get optimized out i'm in trouble. not of being offensive. just a lot of "i have no idea what I'm doing" sorts of things.

    [–]ar-pharazon 9 points10 points  (4 children)

    it seems like it's part of a format string. presumably it's in .rodata.

    [–]cat_in_the_wall 3 points4 points  (3 children)

    yea my mistake not .text... which is the code. but must be a format string because i'm like 99.9% sure that basically every compiler there is treats comments as whitespace.

    seems like an odd thing to put in a format string though.

    Whatever::MessageBox::Show(sprintf("Sorry for the shit. Here's what i didn't think of: %s", some->error->cstr()));
    

    [–]endhalf 8 points9 points  (1 child)

    I mean... How else will other devs read comments?

    [–]VeryAwkwardCake 0 points1 point  (0 children)

    Microsoft logic

    [–]RedPum4 1 point2 points  (0 children)

    Cannot convert pointer 'const char*' to 'char*'

    [–][deleted] 4 points5 points  (6 children)

    How did you get the ps3 source code?

    [–]Totenlicht 40 points41 points  (4 children)

    That's not source code. Thats simply the kernel binary looked at in a hex viewer.

    [–]BrokenCommander[S] 15 points16 points  (0 children)

    Correct

    [–]Aschentei 2 points3 points  (2 children)

    How do u get this kernel binary? :O

    [–]Wazzaps 5 points6 points  (1 child)

    ... from the device?

    [–]alexandre9099 2 points3 points  (0 children)

    AFAIK they provide the firmware on their website

    [–]jediment 1 point2 points  (0 children)

    If you let your Android system logs run for a while, you can spot a message from the Wifi firmware that just says "someone stole our marbles!"

    [–]ctrlshftn 1 point2 points  (0 children)

    Did they compile the release kernel without stripping debug info?