Giter Site home page Giter Site logo

power-of-bdj's Introduction

Power of BDJ

This BD-J Xlet was created to demonstrate the possibility of using more memory than officially allowed. It allocates 32 1000x1000px DVBBufferedImages, with each RGB pixel holding 24 bits of data, resulting in 96 MB total (instead of 6 MB available via normal arrays).

The calculation of 32 million powers of 3 (hence the name) and the verification of a result takes 2 seconds on my PS4, giving an effective BogoMIPS of 32.

Compiling and running

This demo has been built using the so-called Minimal PS3 BD-J SDK, which has been tweaked to be compatible with a PS4.

Math behind the sanity check

The program calculates 3**n (i.e. int("1", 3), int("10", 3), int("100", 3)) for each n=0..32000000. Then it sums the powers for n=0..31999999 to get int("1"*32000000, 3). int("1"*32000000, 3) * 2 + 1 == int("2"*32000000, 3) + 1 == int("1"+"0"*32000000) == 3**32000000, which has been calculated earlier. All calculations are performed modulo 2**24, as there are only 24 bits of precision in DVBBufferedImage.

power-of-bdj's People

Contributors

sleirsgoevy avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.