You are reading a single comment by @nogears and its replies. Click here to read the full conversation.
  • @AkosLukacs yeah i ran this in 336.30secs on a puck.js with the full 1000x1000
    this dropped to 77.00secs with dropping the k += j for assembly add r0, r0, r1

    and then 0.00064086914 secs with

    var c = E.compiledC(`
    // int loops(int)
    int loops(int k){
     int i = 1;
     int fiboPrev = 1;
     for(int i = 0; i < 1000; i++){
      for(int j = 0; j < 1000; j++){
        k += j;
      }
     }
     return k;
    }
    `);
    function go(){
      var t=getTime();
      var k=0;
      k = c.loops(k);
      console.log(k,' in ',getTime()-t);
    }
    setTimeout(go, 500);
    

    i didnt know about the "compiled" thing, thanks @Gordon

    @Gordon sad to hear that 100% opensource has been a negative on your.
    all your hardware is awesome, and your content and dedication is incredible
    i'd invest if i had a few 100 mil

About

Avatar for nogears @nogears started