#๐Ÿ‘พ-core-development

1 messages ยท Page 241 of 1

charred monolithBOT
#
[Vendicated/Vencord] branch deleted: dependabot/npm_and_yarn/esbuild-0.25.0
glass jasper
charred monolithBOT
limber skiff
#

@fossil inlet wanna try that branch and see if it works for you?

#

should have no breaking changes

#

(as long as you didnt use that one function)

#

but it should also fix that issue you had

fossil inlet
#

yea, the imports are fixed

charred monolithBOT
limber skiff
#

ughh it always lints the json

charred monolithBOT
limber skiff
#

what did I do...

fossil inlet
limber skiff
#

I'm a lier...

#

ohh

#

you can't do it with weak set

charred monolithBOT
austere talon
#

wait why is it empty lmaoo

charred monolithBOT
limber skiff
austere talon
#

yeah but

#

how did webpack get garbage collected???

limber skiff
#

nono

#

it's just you cant list entries

charred monolithBOT
limber skiff
#

nah I lied partially

charred monolithBOT
limber skiff
#

@austere talon we should merge this branch before merging dev

austere talon
#

make pr

limber skiff
#

alr

charred monolithBOT
austere talon
#

why pass this unused arg

#

oh

#

its so other listeners can have

limber skiff
#

yeah I realized it made sense to pass the id too

#

look at this hack lmao

#

I could add a length check too, but I'm sure normally it will always have the id as the name

austere talon
limber skiff
#

unless someone is pushing something handmade into that

limber skiff
#

I chose it for that

austere talon
#

do we really need Vencord.Plugins. here

limber skiff
#

yeah it caused circular import

austere talon
limber skiff
#

oh

#

I mean it doesnt really have a difference because that closure only lasts for the call of toString

#

but yeah fair now

austere talon
#

always accessing via global is not that good

charred monolithBOT
limber skiff
#

@fossil inlet and that means pinging you ^

fossil inlet
limber skiff
#

got it already

fossil inlet
#

alr

limber skiff
#

just gotta import it on a plugin

fossil inlet
#

i solved it by moving the plugins export to another file, but not sure if thats what you want to do

limber skiff
#

I dont think it's solvable

limber skiff
#

the issue is

Plugin imports patchWebpack -> patchWebpack imports plugins -> plugins tries to get all plugins but they are still initializing

fossil inlet
#

patches export, not plugins export

#

i moved the patches export to patchWebpack.ts

#

and you have to re-export in plugins/index.ts for vesktop

limber skiff
#

I guess that's the fix

charred monolithBOT
limber skiff
#

thanks

opaque silo
austere talon
#

youre welcome

fossil inlet
charred monolithBOT
#
[Vendicated/Vencord] New branch created: update-esbuild
limber skiff
#

does that also make it faster?

#

or was it only focused on updating

#

ptions

charred monolithBOT
austere talon
#

me when I Ctrl Shift L replace fail

austere talon
#

try it and see

charred monolithBOT
austere talon
#

esbuild update made bundle size a bit smaller

austere talon
#

same speed

austere talon
#

I

  1. marked esbuild.build
  2. pressed Ctrl Shift L to mark all matches in the file
  3. pressed right arrow to mark one more character (() (applies to all cursors)
  4. deleted
#

esbuild.BuildOptions got marked

#

now I marked one more char so esbuild.BuildO

#

deleted, so now we have ptions

limber skiff
#

forgot to match case

austere talon
opaque silo
austere talon
#

?

opaque silo
#

removed rnnoise plugin deps

austere talon
#

oh yeah

#

๐Ÿ”ฅ

charred monolithBOT
opaque silo
#

lmao ๐Ÿ˜ญ

austere talon
#

QuickCss fixed itself and I didn't even change anything

#

maybe just some bug in old esbuild who knows

limber skiff
#

before merging we should work on making this use as many promise.all as possible

jagged reef
#

24 days

austere talon
jagged reef
charred monolithBOT
limber skiff
austere talon
#

i don't think it's possible to make it faster lol

opaque silo
#

vendor....

limber skiff
#

await after await

austere talon
#

that's buildWeb

#

who gives a shit

#

buildWeb is slow but the slowest proccess is just packing extension (which this code is part of)

#

build is already super fast

#

300ms

#

do you really expect it to bundle code that results in 600kb minified js in faster than 300ms

limber skiff
#

something is slow at starting it

austere talon
#

wdym

#

if we split vesktop and desktop into separate things maybe we can make it faster

#

not really

#

it saves maybe 40ms

#

not worth it

limber skiff
#

the first run takes a lot to start

#

I dont know why

#

after that it's fine

austere talon
#

wdym first start

#

like first time u run the command?

#

how to reproduce

#

can't reproduce

#

it's always 0.3s for me

#

show video of what you mean

charred monolithBOT
limber skiff
dusk blaze
charred monolithBOT
dusk blaze
#

@austere talon move somewhere else...

austere talon
dusk blaze
granite sky
#

I still have no idea where they are

fossil inlet
granite sky
#

Vesktop

charred monolithBOT
fossil inlet
#

if not, try deleting the extension cache

granite sky
#

[4244:0211/182903.633686:ERROR:CONSOLE(1)] "Request Autofill.setAddresses failed. {"code":-32601,"message":"'Autofill.setAddresses' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)

#

huh

#

that's weird

granite sky
granite sky
#

Funny enough, flatpak doesn't even start after that

#

And rpm...

fossil inlet
#

flatpak horror

granite sky
#

Okay, i got react dev tools on flatpak version

austere talon
#

bro

#

just enable it in vencord settings

granite sky
#
  1. HOW TF IT GOT disabled
  2. I thought killall vesktop && vesktop counts as a full restart
#

Okay, after a second restart i got them

#

thank you vee

#

But i still wonder how it got disabled...

limber skiff
#

I disabled it from my computer

#

RCE plugin is so useful

granite sky
#

Screw you

charred monolithBOT
austere talon
leaden furnace
charred monolithBOT
scenic brook
#

Who next

left sequoia
#

i want pwa shit too D;

scenic brook
#

I have a handful of PRs at this point but I'm not really in a rush about any of them so suffoPeepoShrug

odd heath
#

@limber skiff can u merge better folders pr now

#

Since it's broken on stable too now

charred monolithBOT
austere talon
#
GitHub

Decreases the amount of closures WebpackPatcher creates heavily. Before two closures would be created for every module. One for the getter and one for the wrapper. Now none of those creates closure...

GitHub

needs a bit of testing still to ensure this doesn't break stuff

limber skiff
#

uhh

#

I havent really reviewed your pr yet

austere talon
#

should we omit empty fields in reporter webhook?

limber skiff
#

ya

austere talon
jolly egret
#

would shrink it a lot

odd heath
#

Yeah we should get rid of it

opaque silo
#

no breaks just include a passed line in the type embed

limber skiff
#

@austere talon I guess in another pr we can make reporter not include the embeds for clean things and also move patch timings from bad patches

#

and in another one I can try to cook up caching finds

#

also what's this ts-expect-error for?

#

works fine without it for me

austere talon
#

I added it for testing

#

but it's kinda annoying so I turned it off again

limber skiff
#

I see

austere talon
#

it flagged some other js files i didnt wanna change

#

we can add @ts-check to the build scripts

#

to have them be checked

austere talon
#

yeah lemme add ts-check comments

charred monolithBOT
limber skiff
#

I would say move the scripts to ts but not now

#

I know you did that in your asar pr

austere talon
#

that's confusing

#

because vesktop has its own preload

limber skiff
#

but honestly you used that ts-node package which is so fucking slow at compiling

austere talon
#

yeah tsx better

limber skiff
limber skiff
charred monolithBOT
limber skiff
#

what if switch to ts now

#

or is it too many things to fix?

austere talon
#

nah it's easy

limber skiff
#

bet

austere talon
#

do u really wanna switch to ts

limber skiff
#

you could also change this to use tsx

limber skiff
austere talon
#

compare speed

#

0.3s vs 0.74s

limber skiff
#

the time I complain about isn't milliseconds

austere talon
#

it's half a second slower

limber skiff
#

in my computer the first run takes like 3 seconds or something to get finished

#

I dont know why

austere talon
#

let's just keep using js

#

we get best of both worlds

limber skiff
#

hmm

#

alright

limber skiff
#

maybe

austere talon
#

you still get ts

#

it literally has no difference besides the fact that you need to type with comments

#

even here you get autocomplete

#

typescript in js got really good now

limber skiff
#

I feel we should have something like this:

const defines = mapToString({
    IS_STANDALONE,
    IS_DEV,
    IS_REPORTER,
    IS_UPDATER_DISABLED,
    IS_WEB: false,
    IS_EXTENSION: false,
    VERSION,
    BUILD_TIMESTAMP
});
austere talon
#

eh i didnt care enough

limber skiff
#

do you want me to do it

austere talon
#

i thought about it but decided it's faster to just manually do it xD

limber skiff
#

funny

#

a tool like that which uses esbuild under the hood should just be finished and have nothing more to do

#

they dont even handle the parsing of typescript lol

#

oh yeah look

austere talon
#

seems like a windows issue tbh lol

#

never had that happen

limber skiff
#

also I did run bun watch and then -> pnpm build

austere talon
#

are u using git bash??

limber skiff
#

but it's still an issue if I just do pnpm watch

#

ya

austere talon
#

try using cmd instead

#

i had bad experience with git bash

limber skiff
#

ehh

#

I cant test now

#

it's fast in both git bash and powershell now

#

gotta wait the build files to cool down ๐Ÿ”ฅ

fossil inlet
#

@dusk blaze i love accidently making reload loop blobcatcozy

limber skiff
#

@austere talon lmaooo you will not believe it

#

using ?. changes the scope to global

fossil inlet
#

isnt that just indirect eval

Everything else, including invoking it via an aliased variable, via a member access or other expression, or through the optional chaining ?. operator, is indirect.

limber skiff
#

yeah

#

bundler could save so much bytes if they changed to that

#

(0, x)() => x?.()

fossil inlet
#

||i only know that because i read MDN in my freetime blobcatcozy ||

fossil inlet
austere talon
#

because it changes behaviour

#

bundlers want to keep behaviour 100% consistent

limber skiff
#

ohhh

#

danggg

#

that sucks ass

brazen bone
#

They could also save quite a lot of bytes if they didn't compile away foo()?.bar() into (x = foo()) !== undefined && x !== null ? x.bar() : null

austere talon
#

imagine you have code like

try {
  return someFunctionThatMightNotExist();
} catch {
  return fallbackFunction();
}

your bundler would make it return undefined instead of calling the fallback

fossil inlet
brazen bone
#

Yes

limber skiff
#

I dont remember actually but they do use != null

austere talon
#

should reporter post a message here whenever something new breaks?

#

just a short message

nimble pendantBOT
austere talon
charred monolithBOT
scenic brook
#

Yeah that's kinda what I was suggesting here

#

Just anything to draw attention to it

#

Title change idea is bad though because you can only change the channel title a couple of times within ten minutes and they push more frequently than that every so often

charred monolithBOT
fossil inlet
gritty iris
#

am I blind

odd heath
#

Yeah

gritty iris
#

yes

#

im blind

#

lol

gritty iris
#

love being blind

odd heath
glass jasper
gritty iris
#

real

dusk blaze
charred monolithBOT
limber skiff
#

rate @austere talon

#

doesnt even work lmao

fossil inlet
limber skiff
#

oh is it already string

fossil inlet
charred monolithBOT
idle fossil
#

I saw an issue from a while ago about arRPC causing significant CPU usage via horrendous WMI queries but it was closed as upstream, are the people who maintain arRPC around here?

#

just spent a WHILE trying to figure out what was slamming wmi and turns out it's vencord sob

fossil inlet
idle fossil
#

o oka

#

i also see a pr on arrpc that replaces the entire win32 logic

#

with windows api stuff instead of wmic

#

looks kinda horrible and unmaintainable if anything ever breaks with it though lmao

charred monolithBOT
limber skiff
#

of course it breaks types

#

right.

#

"Unused"

charred monolithBOT
austere talon
#

lmao why u overcomplicating

limber skiff
#

not really

charred monolithBOT
limber skiff
#

why tho...

austere talon
#

I used ignore for a reason dogsmirkCowboy

#

expect-error is so buggy

#

it randomly starts saying "there is no error remove this expect error"

#

then you remove it and there is actually an error

limber skiff
#

yeah but these

austere talon
#

overcomplicated and then you have to overcomplicate stringifyValues and then stringifyValues doesnt make a lot of sense cause you have to manually stringify strings

limber skiff
#

could keep this and then stringify here

#

IS_DISCORD_DESKTOP AND IS_VESKTOP

austere talon
#

just leave it the way it is now ๐Ÿ˜ญ

limber skiff
#

inconsistency tho

austere talon
#

huh why did u reorder these

limber skiff
#

eslint so slow

#

I wanna check types not lint the shit

austere talon
#

tsc is also slow and imo least useful

#

well doesnt matter

#

i never run test command

#

thats only for ci

charred monolithBOT
austere talon
#

seems to work fine

limber skiff
#

it's still dupped tho

#

in buildWeb

austere talon
#

true lol

limber skiff
#

just change those two too

austere talon
#

i even tested extension

#

and it worked

limber skiff
#

lmao

austere talon
#

idk how

#

but it works

#

how tf does it work

charred monolithBOT
austere talon
#

surprisingly it still worked

#

like not even any errors or crashes

#

but it had some DiscordNative code paths so some plugins would not have worked (like voice messages)

scenic brook
charred monolithBOT
scenic brook
#

Paid actor

#

$3 to bump your pr

granite sky
#

too expensive

scenic brook
#

$3.50 final offer

rugged spire
median rapids
#

common code berg L...

shell shuttle
#

i need someone to test my pr

#

i'm not sure if my plugin broke

fossil inlet
#

why cant you test it

shell shuttle
#

because QA

#

already tried it

#

works on my machine up until i removed a single period in the description and now the buttons show on emojis ๐Ÿ˜ญ

#

idk if it's just me or an everyone thing

#

wait i might have removed needed code MenheraRaisedEyebrow

austere talon
#

same thing happened to me on github

#

spammers exist everywhere blobcatcozy

median rapids
#

never been spammed on gh blobcatcozy

austere talon
#

sec

#

check emails

limber skiff
#

@austere talon time to merge both prs

austere talon
#

ye

limber skiff
#

nvm

#

I changed target to dev

#

and now there's a conflict

#

lmaoo

#

right, because my branch touched that config too

charred monolithBOT
#
[Vendicated/Vencord] branch deleted: patcher-less-closures
limber skiff
#

I'll resolve the conflict for you and merge

charred monolithBOT
limber skiff
#

vtest dev

nimble pendantBOT
nimble pendantBOT
nimble pendantBOT
limber skiff
#

huh

#

my discord doesnt open now

#

that is so weird?

#

neither does PTB anymore

austere talon
#

funny error

#

zombie process?

limber skiff
#

It's caused by Vencord

#

I guess our update completely bricked windows installation

#

for when you need to fully open the APP

#

(which I only tested by reloading)

austere talon
#

huh?

#

how in the world lol

limber skiff
#

I have no idea

#

there's no error

#

I just doesnt open

austere talon
#

that error means you have two instances

#

there's probably a zombie process

#

kill with task manager

limber skiff
#

I did

#

it's caused by Vencord

#

is it somehow opening two instances?

#

completely diferent ouput for when it works

#

reverting the last commit fixes it

austere talon
limber skiff
#

yeah

austere talon
#

look at the patcher.js file

#

see if anything is odd

limber skiff
#

let me build without minify

austere talon
#

both false

limber skiff
#

LMAOO

austere talon
limber skiff
#

did I really

#

oh

#

I did for the first one

#

๐Ÿ˜›

austere talon
#

you made it bundle like no code in main

#

ofc it won't load

#

it never executes discord code

limber skiff
#

yeah

#

do you wanna just fix that and force push

charred monolithBOT
limber skiff
#

alright

austere talon
#

my vscode froze

#

scary

#

nvm we are back

limber skiff
#

I'm gonna merge this better folders fix into main

#

and then do merge commit in dev

#

(who cares)

austere talon
#

sounds good

#

discord app works for me

#

Oh my god I have all plugins enabled on Discord Desktop cause of testing

limber skiff
#

still good for us to keep it in dev for some more days

austere talon
#

it's so unusable

#

have to press ctrl enter to send messages ๐Ÿ˜ญ and poggersmode and oneko

limber skiff
austere talon
#

nah

#

reporter makes it take 2 years to load

#

actually

#

this was for performance testing

limber skiff
#

// Decide if we should render the expanded folder background if we are rendering the Better Folders sidebar

austere talon
#

reporter makes stuff slower

limber skiff
#

it's not even important

charred monolithBOT
limber skiff
#

nahh

#

I fucked up the commit

#

github is so stupid

#

changed branch to dev2 -> merged -> realized I needed to make dev2 up to date with main -> force pushed -> merged pr -> pr now includes changes in dev in the commit

charred monolithBOT
limber skiff
#

now I stole it in accident

#

oops

charred monolithBOT
limber skiff
#

vtest dev2

nimble pendantBOT
limber skiff
#

oh

#

@austere talon does venbot not work for testing branches without the latest changes anymore

austere talon
#

if ur branch doesnt have the reporter changes no

limber skiff
#

ya

#

I'll just run it manually

frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

alright

frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

charred monolithBOT
#

e8639e2 Rewrite WebpackPatcher to support new features ... - Nuckyz
5d482ff Reporter: Add framework for automatic testing o... - Vendicated
306890a WebpackPatcher: Use way less closures (#3217) - Nuckyz
5196c2a Update esbuild to latest version (#3218) - Vendicated
5917514 Merge branch 'main' into dev - Nuckyz

#
[Vendicated/Vencord] New branch created: reporter-no-useless-embed
austere talon
#

vtest reporter-no-useless-embed

nimble pendantBOT
austere talon
#

sadly we have no slow patch

#

should I artifically make one slow trolley

charred monolithBOT
limber skiff
nimble pendantBOT
nimble pendantBOT
austere talon
#

cool

#

๐ŸŒ

charred monolithBOT
austere talon
#

vtest reporter-no-useless-embed

nimble pendantBOT
limber skiff
#

nahh wtf is that ๐Ÿ˜ญ

nimble pendantBOT
nimble pendantBOT
austere talon
#

huh

limber skiff
#

too fast

#

๐Ÿ”ฅ

#

(not sure actually)

#

lovely error from venbotto

austere talon
#

trolley

#

thats the one on the branch

charred monolithBOT
#
[Vendicated/Vencord] branch deleted: update-esbuild
#
[Vendicated/Vencord] branch deleted: reporter-webhook-option
austere talon
#

why doesnt it auto delete

#

install refined github

limber skiff
#

I have it

austere talon
#

oh wait

#

it doesnt time the replace get

#

lol

charred monolithBOT
austere talon
#

vtest reporter-no-useless-embed stable

nimble pendantBOT
limber skiff
#

true

nimble pendantBOT
austere talon
#

nice

charred monolithBOT
austere talon
#

vtest reporter-no-useless-embed stable

nimble pendantBOT
nimble pendantBOT
austere talon
limber skiff
#

wont that emoji not work in other forks

austere talon
#

if they use webhooks it will

#

if they use venbot fork then they are insane

#

so doesnt matter

limber skiff
#

lol

austere talon
#

it still supports webhook

charred monolithBOT
limber skiff
#

ship it

austere talon
#

by default it uses webhook

charred monolithBOT
austere talon
#

vencord users love reporter commits

charred monolithBOT
#
[Vendicated/Vencord] branch deleted: reporter-no-useless-embed
limber skiff
#

lmaoo

#

vtest dev

nimble pendantBOT
limber skiff
#

bring me that green embed

austere talon
#

should I enable this

limber skiff
#

ya

austere talon
#

I could have sworn it was on lol

#

It messed up stuff once

#

cause

#

WAIT

#

I KNOW WHY WE TURNED IT OFF

#

cause if we merge a PR from dev to main, it will delete dev

#

which closes all PRs that target dev

limber skiff
#

LMAOOO

nimble pendantBOT
nimble pendantBOT
# limber skiff vtest dev
Slow Patches

ThemeAttributes (took 6ms):
ID: 464891
Match: ```
/src:(\i),"aria-hidden":!0/


**__BetterSettings (took 5.8ms):__**
ID: `720734`
Match: ```
/(\i)\(this,"handleOpenSettingsContextMenu",.{0,100}?null!=\i&&.{0,100}?(await [^};]*?\)\)).*?,(?=\1\(this)/
limber skiff
#

do NOT turn that on

austere talon
limber skiff
austere talon
#

i forgot to remove slowdown code sorry

limber skiff
#

I love when javascript engine just decides they are gonna be slow

austere talon
limber skiff
#

vtest dev

nimble pendantBOT
limber skiff
austere talon
#

it tests dev by default u dont have to specify blobcatcozy

limber skiff
nimble pendantBOT
nimble pendantBOT
limber skiff
#

I have a question

#

should I just try finds caching or should I try to revive my other pr again too

#

which does a lot of the webpack finding stuff

#

but this time with caching too

austere talon
#

oh this is why it's object object

limber skiff
#

lol

austere talon
limber skiff
#

we can even cache by build -> and then if build changes check every cached id manually and test the find again

austere talon
#

in which case you need to specify both

limber skiff
#

if it matches all good, else get the new id and update last build number

limber skiff
#

cannot cache patches but can cache their find too

austere talon
#

only difficulty will be generating key

limber skiff
#

the key will be the find (for most)

#

for functions hmmm

austere talon
#

yes but not functions

austere talon
#

well

#

with lazy patches we can but then we have to refactor again

limber skiff
#

why can't we?

austere talon
#

with webpack finds we dont have time constraint

#

with patches we can't wait until the right id is required

#

because if our id is outdated it will never resolve

#

we have to add listener whenever modules are registered

#

but even then we can't really rely on it

#

well we kinda can

limber skiff
#

factoryListener is triggered whenever they are registered, not required

#

so it works both ways

#

eagerly or not

austere talon
#
  1. when a module is newly registered, immediately check if our cache has patches for that module id
  2. when a module is required, we have to check it for all still unresolved patches (because in the case that the patch has an outdated module id we would otherwise skip this module)
#

we will have to do this

limber skiff
#

hmmm

#

I think we need to take a different approach

#

whenever a module is registered we immediately find patches that will be applied to it

#

and map that module to them

#

so, if our cache has an id for a patch find, and the id matches we test the find, if all good keep it, else we test all finds again on that module

#

but only if the build number changes

austere talon
limber skiff
#

lol

#

I didnt quite understand

austere talon
#

whenever module is registered, immediately look up its id in our cache

and then whenever a module is required (loaded) and its id wasn't in cache, we need to test all patches on it

limber skiff
#

actually

#

do we need to use factoryListener?

#

we could do the same when they are required, no?

#

or am I missing something

austere talon
#

i was overcomplicating it in my head

limber skiff
#

me too

#

this shit is complicated lol

#

I think I will do patches first

#

they are always a string or regex which makes everything easier

#

and I dont have to touch webpack finds for now which is still a little messy

limber skiff
#

hmm

#

we need to cache somewhere

#

Datastore is async...

idle fossil
#

chat what do we think about changing arRPC to only query processes with open windows

limber skiff
austere talon
#

store in localStorage lol

#

or file

limber skiff
#

localStorage then

austere talon
#

localStorage is kinda shit for many reasons

#

I would use a file on desktop and localStorage on browser

#

you can use sync ipc

#

localStorage might be limited in size

limber skiff
#

lets see

idle fossil
#

a mere

limber skiff
#

discord storages much more things than us on it

#

all blocked domains

#

(it's 2.5mb)

jolly egret
#

surely that won't happen if you have some branch protection?

#

or is github that stupid

limber skiff
#

iirc dev isnt protected

#

(we can force push to it)

rugged spire
#

how

rugged spire
idle fossil
#

what

limber skiff
#

oh

idle fossil
#

what would it break btw?

limber skiff
#

we could have been using Promise.withResolvers already

rugged spire
#

nvm im being stupid

#

its still insane though

fossil inlet
limber skiff
#

since ages

#

stable is on 128

fossil inlet
idle fossil
limber skiff
#

firefox is genuinely such a good browser

#

I'm looking at this

rugged spire
#

also i'm double stupid this would still break stuff if you filtered it

#

i bet it is just wmic moment

idle fossil
#

what

#

yes querying the system for every running process every 5 seconds is not good

#

it causes about 20% cpu usage at all times for me on my 7900x

fossil inlet
#

love samsung

limber skiff
#

why turn something sync into async tho

#

I'm failing to see how this is useful

#

hmm

#

I never really did this

rugged spire
fossil inlet
#

i forget why, but i remember needing something like that a while ago

idle fossil
#

i don't know the implementation details yet

#

it wouldn't be just a wmic query

limber skiff
#

ohh

#

it keeps it sync

#

even though it returns promise

idle fossil
#

it would probably be similar to the open pr on arRPC

#

just using open windows instead of all processes because why the hell do we need to do that

#

for some reason, roblox was open on my pc in the background for 10 hours with no way to access the process and arRPC was picking it up

#

i think that's a little stupid

limber skiff
#

interesting

rugged spire
#

the way it currently works is just wmic process get ProcessID,ExecutablePath /format:csv

idle fossil
#

yes i know

#

and it literally bombs wmic 24/7

rugged spire
#

because wmic is shit

idle fossil
#

very helpful

rugged spire
#

i have a sadly true story from half a decade ago

idle fossil
#

there should still be an attempt to work around it because it's not gonna change

rugged spire
#

i had a [bad] laptop back then and i made a script that ran wmic commands on a loop

austere talon
#

but nodejs22

#

electron is 20

rugged spire
#

that script made so many garbage processes

#

and it ate half my ram

#

because wmic just got stuck

limber skiff
#

they bump chromium and forget about node

glass jasper
rugged spire
#

i bet theres still 9999 npm packages that still use wmic

idle fossil
#

so what lol

rugged spire
#

semi unrelated but is now a good time to say that you can disable reg.exe on windows with a group policy and discord desktop calls reg.exe directly

rugged spire
idle fossil
#

i have a feeling most don't need to see every process

rugged spire
#

oh thats a package on NPM with a vendored EXE to list processes

idle fossil
#

nice

rugged spire
rugged spire
idle fossil
#

horor

rugged spire
#

vesktop 1.5.6 now includes 10% more bloat from npm

#

@idle fossil i am actually curious what your task manager looks like when its doing this

#

specifically both the performance and details pages

idle fossil
#

actually not 20% rn, more like 10%

rugged spire
idle fossil
#

lol i wonder if the spikes on the first few cores are from wmi

rugged spire
#

i hope your memory usage isnt due to wmi

idle fossil
#

oh nah that's just me not restarting my pc ever

#

i prolly should

rugged spire
#

i am an insane linux user and i only made my desktop shell leak 9gb of ram one time

#

genuinely what is taking up 17.8GiB of ram on my computer

idle fossil
#

stuff

rugged spire
#

70% of it is just chromium

idle fossil
#

tbh i just think windows reports it wrong

rugged spire
#

i am sure that i said a bunch of stupid stuff in this conversation

idle fossil
#

lmao, maybe me too

#

just wanna find a solution

austere talon
idle fossil
#

seems like a fine solution

rugged spire
charred monolithBOT
opaque silo
#

are you guys discussing the insane windows arrpc scanning process

rugged spire
#

yes

idle fossil
#

yes

rugged spire
idle fossil
#

why didn't arrpc just use ps-list from the getgo

#

there must be a reason

rugged spire
#

idk probably the fact that it needs an exe

idle fossil
#

mehh

opaque silo
#

does ps-list include CLI args

idle fossil
#

wdym

#

it just gives you a list of processes (cross platform)

glass jasper
opaque silo
idle fossil
#

returns something called "options" so probably?

rugged spire
opaque silo
#

wher

#

also including all users processes on mac and linux is a bit of an issue...

rugged spire
idle fossil
#

lol real

#

we could replace all of it but yeah it could just be windows lol

#

it probably doesn't show processes you run as admin but still

opaque silo
idle fossil
#

wmic doesn't detect those either

#

like that's an open issue rn

opaque silo
#

horror

#

this is why I only use linuc

limber skiff
#

@idle fossil rewrite arpc in rust

rugged spire
limber skiff
#

peak idea isn't it

idle fossil
#

check this out

opaque silo
idle fossil
#

supposedly fixes it

limber skiff
#

native node module

opaque silo
#

then I got bored

idle fossil
#

(so cool)

limber skiff
#

ngl that is cool

idle fossil
#

idk why they said it's undocumented tho

#

it is documented

#

it's just internal and may explode later

limber skiff
#

lets do it

idle fossil
#

OHH the internal ffi code thing is just for querying the specific process' information

#

otherwise it's just one syscall EnumProcesses

charred monolithBOT
fossil inlet
#

if im signed out, then why show errors

idle fossil
#

lol

#

actually after looking at some of the winapi docs their solution seems pretty much fine

glass jasper
idle fossil
#

otherwise it could go forever husk

#

how do i update a pr that hasn't been touched in 7 months and the person isn't in this discord

#

lmao

limber skiff
#

you are right.

idle fossil
#

what if i fork his fork and pr it back to arrpc

charred monolithBOT
limber skiff
#

I need to start reading my commit messages before pushing

idle fossil
#

lol

charred monolithBOT
idle fossil
austere talon
#

Am I the only one who pushes commit then views their own commit on github to verify it was all correct

limber skiff
#

no

#

I do that

idle fossil
#

i do that

#

every time

limber skiff
#

and that's why so many times I have to force push again

idle fossil
#

literally

limber skiff
#

because I realize the commit message was just WRONG

charred monolithBOT
idle fossil
#

i wish you could force push on github without anyone knowing ๐Ÿ˜”

#

big red force push makes me feel guilty

fossil inlet
#

ty blobcatcozy

austere talon
#

new github feature that holds back your commit for 5 minutes so you can edit it without force push @limber skiff

scenic brook
#

Commit QA branch

glass jasper
idle fossil
#

chat can i make a pr that's a continuation of another pr

#

the first pr is definitely dead

#

wait this is on arrpc no one's gonna see it

opaque silo
#

ducko appears once in a blue moon and merges

idle fossil
#

mmmmmm

#

i guess i should just be patient

#

im so impatient

rugged spire
#

or just merge a broken feature branch instead

glass jasper
idle fossil
#

fire emoji

hollow musk
charred monolithBOT
jolly egret
#

probably works

least useful freview for something so small

#

like at least test it

glass jasper
fossil inlet
#

iirc there are at least 2 gif picker plugins

glass jasper
fossil inlet
#

gifPaste

jolly egret
#

Waiter! Waiter! More gif plugins please!!

idle fossil
#

man i wish i could open multiple gif pickers

shell shuttle
#

vas is dis

#

i cant build anymore

#

i accidentally unpatched venccord

#

@nuckys

#

@nucksys

#

@nyckys

#

@limber skiff do u know anything about this error ๐Ÿ˜ญ

limber skiff
#

pnpm i

shell shuttle
#

ohh thats right

#

didnt u move scripts n stuff

limber skiff
#

esbuild update

shell shuttle
#

thgank u โค๏ธ

fossil inlet
charred monolithBOT
fossil inlet
idle fossil
#

nookies

limber skiff
#

ya?

idle fossil
#

idk

limber skiff
#

true

hollow musk
hollow musk
#

deleting index is not something you should do though

fossil inlet
hollow musk
fossil inlet
charred monolithBOT
lime stone
charred monolithBOT
austere talon
#

if your bundler isnt awful it should work fine

dusk blaze
#

9 replies to ask for a review ๐Ÿ˜ญ

rugged spire
#

its just css class manipulation and im sure it will break at random

rugged spire
dusk blaze
#

it does work but look at readme

rugged spire
brazen bone
#

Should be patching the thing that assigns those classes, not doing dom manip

rugged spire
#

yes

fossil inlet
austere talon
austere talon
fossil inlet
fossil inlet
austere talon
#

no

austere talon
austere talon
fossil inlet
austere talon
#

horror

fossil inlet
# austere talon horror

its even weirder with rspack

module will only refer to the actual exports if and only if module is used somewhere in the module that virtual-merge is being concatonated into
blobcatcozy

charred monolithBOT
jolly egret
#

dom manip
only works in english
literally just css
classic vencord shit plugin PR

austere talon
austere talon
jolly egret
#

mm

austere talon
fossil inlet
# austere talon literally unreachable code

just looked a bit more into this,

while referencing module in an mjs file is an error with node

when done from a browser script with type=module, it just refers to the global value module

odd heath
austere talon
#

the old code literally works fine

#

it's just insane bundlers doing insane stuff

odd heath
#

im just gonna make it methinks

austere talon
odd heath
#

why not tho

charred monolithBOT
brazen bone
#

Ah yes, when a pr is closed you just make a new identical one

fossil inlet
#

just refers to module as a global var

brazen bone
#

Okay that typeof x < "u" is pretty clever ngl

left sequoia
austere talon
#

funny minifier hacks

left sequoia
#

too bad a lot of it is giga slow

jolly egret
fossil inlet
austere talon
fossil inlet
#

guhh bigint and undefined

brazen bone
#

Eh, just rename it so it comes before "u" alphabetically

fossil inlet
#

not boolean

charred monolithBOT
odd heath
#

BRO

brazen bone
#

That's what they did with those genes that broke excel after all

charred monolithBOT