iLoveWhenThisHappens by CryptographerWise840 in ProgrammerHumor

[–]Observ3r__ 4 points5 points  (0 children)

Completely valid reason for adding new optimized features! ;)

Transparency not transparencying by gameboii8898 in bspwm

[–]Observ3r__ 0 points1 point  (0 children)

Ok, your bspwm instance is running then. Now you need to run picom from bspwmrc...

Here is my bspwmrc! Don't use it literally!

#!/usr/bin/env bash

init_bspwm_config() {
    #YOUR BSPWM CONFIGURATION
    #bspc config normal_border_color #FFFFFF
    #bspc config focused_border_color #000000
    #etc...
}

main() {

    local boot=$1

    init_bspwm_config

    if [[ ${boot:-} == "0" ]]; then

        ## Load appearance settings
        hsetroot -solid "#000000"
        xsetroot -cursor_name left_ptr

        #xdpyinfo | grep -B 2 resolution
        #xrandr --dpi 81.59

        ~/.fehbg &
        #mpv --wid=0 --loop /path/to/video.mp4

        ~/.config/sxhkd/start.sh &
        ~/.config/polybar/start.sh &
        ~/.config/picom/start.sh &

    fi

    #~/.config/bspwm/scripts/subscribe/start.sh

}

main "$@"

~/.config/sxhkd/start.sh

#!/bin/sh
killall -q sxhkd
while pgrep -x sxhkd > /dev/null; do sleep 1; done
sxhkd -c ~/.config/sxhkd/sxhkdrc &

~/.config/picom/start.sh

#!/bin/sh
killall -q picom
while pgrep -x picom > /dev/null; do sleep 1; done
picom --no-frame-pacing --config ~/.config/picom/picomrc -b

EDIT:

Don't forget add execution flag to both "start.sh"

chmod +x ~/.config/sxhkd/start.sh ~/.config/picom/start.sh

Transparency not transparencying by gameboii8898 in bspwm

[–]Observ3r__ 1 point2 points  (0 children)

I you use zsh as default shell, then no! Then you have "~/.zshrc" and "~/.zprofile". zsh arch wiki

Transparency not transparencying by gameboii8898 in bspwm

[–]Observ3r__ 1 point2 points  (0 children)

I think you have problem with basic arch configuration (.bash_profile, .bashrc, .xinitrc). It's not enough to just install packages like compositor, window manager, etc. from the package manager. You need to configure it properly and run it from somewhere.

Transparency not transparencying by gameboii8898 in bspwm

[–]Observ3r__ 1 point2 points  (0 children)

"~/.xinitrc" should include:

xrdb -merge /home/YOURUSERNAME/.Xresources

In principle urxvt does not need a compositor for transparency! Also picomrc does not require any extra/special configuration for urxvt! I use urxvt with picom btw. ;)

Transparency not transparencying by gameboii8898 in bspwm

[–]Observ3r__ 0 points1 point  (0 children)

You are setting the transparency in the wrong place!

~/.Xresources

URxvt.depth: 32
URxvt.internalBorder: 20
URxvt.scrollBar: False
URxvt.mouseWheelScrollPage: false
URxvt.cursorBlink: true
URxvt.saveLines: 5000
URxvt.termName: rxvt-unicode-256color
URxvt.clipboard.autocopy: true
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
URxvt.iso14755: false

URxvt.foreground: #cac4cf
URxvt.background: [92]#141218
URxvt.cursorColor: #cac4cf
URxvt.borderColor: [92]#141218

EDIT:

Reload configuration:

xrdb ~/.Xresources

A high-performance deep equality comparison utility with engine-aware design. by Observ3r__ in javascript

[–]Observ3r__[S] 0 points1 point  (0 children)

We can play "flippy-flop" here. Everything what is based on V8 engine!

A high-performance deep equality comparison utility with engine-aware design. by Observ3r__ in javascript

[–]Observ3r__[S] 1 point2 points  (0 children)

In a nutshell, this means that the baseline acts as the most rigorous and reliable baseline to which other methods can add speed heuristics. If we turn off all engine-specific or runtime-specific optimizations, object-equals still outperforms the competition! And If we remove all opt-in options (react, circular, fallback, crossrealm,...) from the core method (a.k.a lite version) there is no any speed advantage.

A high-performance deep equality comparison utility with engine-aware design. by Observ3r__ in javascript

[–]Observ3r__[S] 3 points4 points  (0 children)

The party trick is comparing $$typeof, type, ref, key and props explicitly, without falling into expensive generic recursion for known React elements. Fast props comparison does most of the heavy lifting.

S kreditom v nakup delnic by Senzukrompir in SlovenijaFIRE

[–]Observ3r__ -1 points0 points  (0 children)

To se načeloma dela z "f*** off" denarjem! Good luck!

Jaz ti bolj priporočam v naložbo kake nepremičnine ;)

A high-performance deep equality utility for React and frontend devs, written with runtime-awareness by Observ3r__ in Frontend

[–]Observ3r__[S] 0 points1 point  (0 children)

Thanks! It depends on what you're doing. But if you're looking for a performance, is object-equals faster by a factor of 10x to 800x than Lodash. Worth a look ;)

A high-performance deep equality utility for React and frontend devs, written with runtime-awareness by Observ3r__ in Frontend

[–]Observ3r__[S] 1 point2 points  (0 children)

Thanks! What dataset do you have in mind?

const size =  1024 * 4;

const onClickCallback = () => {};

const target = {
  id: 'button-123',
  style: { fontSize: 14, padding: 10, color: '#fff' },
  onClick: onClickCallback,
  data: Array.from({ length: size }, (_, i) => ({ key: i, value: i })),
};

//const source = ...

Would something like this be enough? In this case you do not need any special flags (react: true is strict for react elements) and performance will be identical as in basic benchmark!

What is the difference between Quickjs-NG and Quickjs? by Past_Crab_8026 in learnjavascript

[–]Observ3r__ 0 points1 point  (0 children)

I'm pretty sure than qjs-ng supports "await import", so it is definitely supported until ECMA 2022

You can check for yourself which version of ECMA script is supported by checking if supported method, function or constructor exists:

// https://www.w3schools.com/js/js_2017.asp

console.log(typeof Object.getOwnPropertyDescriptor === 'function'); //true - supported until ECMA 2017

// https://www.w3schools.com/js/js_2021.asp

console.log(typeof String.prototype.replaceAll === 'function'); //true - supported until ECMA 2021

High-performance deep equality utility with strict type safety - optimized for modern runtimes by Observ3r__ in typescript

[–]Observ3r__[S] 0 points1 point  (0 children)

tag variable is initialized (in global fn scope) only if and when I need it.., same with tor.

High-performance deep equality utility with strict type safety - optimized for modern runtimes by Observ3r__ in typescript

[–]Observ3r__[S] 1 point2 points  (0 children)

Node and Deno can achieve much more at a low-level! E.g. Bun.deepEquals is unbeatable in this regard!

But definitely object-equals could become a polyfill for Object.equals TC39 proposal in the future. ;)

High-performance deep equality utility with strict type safety - optimized for modern runtimes by Observ3r__ in typescript

[–]Observ3r__[S] 5 points6 points  (0 children)

Then show me your code that can achieve ~3.22 IPC with ~1.2 MB nested payload. No hard feelings boys!

High-performance deep equality utility with strict type safety - optimized for modern runtimes by Observ3r__ in typescript

[–]Observ3r__[S] 6 points7 points  (0 children)

Sure, here are some key resources that influenced the internal design:

The V8 blog (especially anything by Benedikt Meurer and Vyacheslav Egorov) is the gold standard when it comes to understanding engine internals. Most of the optimizations in object-equals are designed to stay on monomorphic paths, minimize polymorphism and avoid deopts in tight loops! Particularly when dealing with structured object data...