Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)IF
iFarmGolems @lemmy.world

I like turtles and carbonara.

Posts 1
Comments 17
Big projects are ditching TypeScript… wtf? - The Code Report
  • I do this daily and believe me when I say that I'd trade my kidney for the ability to use TS natively. This looks good on paper but jsdoc notation has lots of flaws and you literally can't do some things with it. Also, it doesn't check if the function actually does the thing you described so it needs manual review every time it's changed.

  • Why is the sleep duration taking so long in some cases?
  • I tried it in about:blank but it does the same. Maybe there is some extension in my browser that slows it down (somehow). Im running tampermonkey but it's not active on any pages I tried this on.

    I ran the script in nodejs and everything works perfectly, the sleep time is very close to the original value so it's definitely something inside browser that causes it to lag.

  • Why is the sleep duration taking so long in some cases?
  • I said all over the place because I've seen numbers like 1.7 seconds, 2.8 seconds and so on. But it does mostly land on integer multiples.

    Anyway, tried to run this in nodejs and it works as expected - so the conclusion is that it's somehow a limitation in browser engine (V8 in this case)

  • What are you playing on?
  • No Skyrim but I play fallout 4 modpack "life in the ruins" and it runs really well.

    This processor basically doubled my fps in escape from tarkov and other games which are CPU bound. It's a beast.

    In most games, this processor will be similar performance to 7800x3d cpu.

    My previous cpu was Ryzen 3600.

  • Why is the sleep duration taking so long in some cases?
  • It's not. I am running process lasso tough but doubt that's the issue.

    I have Ryzen 5800x3D and tried the code on latest Ms edge (chromium) browser.

    Which browser did you try it on? Or did you try to run it in node?

    The browser tab was active and focused also.

  • Why is the sleep duration taking so long in some cases?

    Hi, I need to create a infinite (but breakable) cycle where I can slow down the cycle by awaiting promises inside. While cycle should be able to do this, but as you can see in the image, the duration is all over the place.

    Why is this happening? Is there a way to make it close to the original sleep duration?

    13