Browser hacking: Let's work on not sucking at Octane/zlib.js

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2023
  • Going faster, one step at a time :^)
    PR: github.com/SerenityOS/serenit...
    Follow me on X: x.com/awesomekling
    Sponsor me on GitHub: github.com/sponsors/awesomekling
    Support me on Patreon: / awesomekling
    Donate via PayPal: paypal.me/awesomekling
    Discord: / discord
    Merch: store.serenityos.org/
    SerenityOS is a new operating system that we're building from scratch. serenityos.org
    Ladybird is a cross-platform web browser, also part of the SerenityOS project. :^)
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 15

  • @mr_waffles_the_dog
    @mr_waffles_the_dog 7 หลายเดือนก่อน +35

    UInt8ClampedArray is my fault - it followed from CanvasPixelArray which was the additional type added to support the pixel data APIs. Most usage of those APIs benefited from clamping, and it dates to an era where that much additional work in JS would be monstrously expensive. Then when we added typed arrays to JS (technically the DOM first, to support WebGL) that CPA was definition was merged but needed to retain the clamping semantics.

    • @SimonBuchanNz
      @SimonBuchanNz 7 หลายเดือนก่อน +1

      I always wondered why it only had uint8 variant!

  • @mariocamspam72
    @mariocamspam72 7 หลายเดือนก่อน +24

    My organs almost failed from a lack of AK videos

  • @FikiCar0
    @FikiCar0 7 หลายเดือนก่อน +27

    We got a video, so far best blackfriday deal this year

  • @vcokltfre
    @vcokltfre 7 หลายเดือนก่อน +16

    Awesome a new video! I've found myself really looking forward to your JS engine optimisation/JIT videos, they're perfect to just stick on for an hour and just absorb stuff about JITs and see the inner workings of a JS engine guided by someome who actually understands it

  • @alice-smith
    @alice-smith 7 หลายเดือนก่อน +11

    No yak background today? 🥺

  • @sammmba
    @sammmba 7 หลายเดือนก่อน

    "Thank you Copilot, but it's gonna be a bit more complex than that" 😆

  • @will1am
    @will1am 7 หลายเดือนก่อน

    Someone who uses Ladybird: Is the peformance improvement with JIT noticable during regular browsing already?

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff 2 หลายเดือนก่อน

    10:55 why "non-typed arrays" quotes and typed arrays no quotes?

  • @stasyaner
    @stasyaner 7 หลายเดือนก่อน +1

    Is it the Shrek toilet door on the back? :D

  • @RandomGeometryDashStuff
    @RandomGeometryDashStuff 2 หลายเดือนก่อน

    32:13 can c++ function be that helper?

  • @-lolus-
    @-lolus- 7 หลายเดือนก่อน +1

    6 sec reaction time

  • @nopair5688
    @nopair5688 7 หลายเดือนก่อน

    💛💚❤

  • @Maxjoker98
    @Maxjoker98 7 หลายเดือนก่อน +5

    Just a nitpick(not even JS or serenity-related), but why does your top look so ugly? :D
    Open top, press the following keys in order(case-sensitive): l, t, m, Z, enter.
    Should give you much nicer display with colors and graphs. You can also press 1 to toggle between one graph per CPU and one graph for all.

  • @spaculo
    @spaculo 7 หลายเดือนก่อน

    Uint8Array vs Uint8ClampedArray:
    > // Wraps numbers outside range (max + 1 = min, min - 1 = max)
    > a = new Uint8Array([-1, 256])
    Uint8Array(2) [ 255, 0 ]
    > // "Clamps "the values outside the range, so everything larger becomes the max, and anything smaller becomes the min
    > b = new Uint8ClampedArray([-1, 256])
    Uint8ClampedArray(2) [ 0, 255 ]