#๐ช -progaming
1 messages ยท Page 130 of 1
just get a bunch of errors
i'm on AMD
try
--use-gl=angle
--use-angle=vulkan
--enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,UseMultiPlaneFormatForHardwareVideo
half of these flags are probably dead
*for brave, not the system
NIX IS EVIL
@royal nymph love?
nix users have lost it
first 3 defo are still used
you need them on linux for webGPU to work
hold on while my system takes a few minutes to rebuild

guhhh
nixos bug
time to use nix-ld
yeah ik i use those #๐ช -progaming message
i think the --use-gl and --use-angle ones are obsolete
use-angle is for overriding angle
defo still used
seems normal
isnt DefaultANGLEVulkan the same
no
that changes the default vulkan
aka disables auto detection
--enable-unsafe-webgpu --ozone-platform=x11 --use-angle=vulkan --enable-features=Vulkan,VulkanFromANGLE
mmmm
:))))
i hate chromium on wayland too but does it matter for webgpu?
no
ah yeah makes sense
chromium on wayland just sucks
devtools are so cooked
i love the context menus being below the window
did u show u my webGPU shit btw?
im turbo proud of it
dont go into src/wasm tho
thats all emscripten generated shit
i wish chrome supported %.2f
this is why fragmentation of system component is horrible
only either wayland or x11 should have existed, not both
can you send what they were replying too
@nimble bone
well you can't just switch the entire ecosystem to wayland suddenly yk
That's hard when programs I use just don't work under wayland
I like rust because I can write cursed code like this and it works 
impl EventStream {
pub fn try_new(dpy: Arc<X11Display>) -> Result<Self> {
let x11_fd = dpy.connection_number();
assert!(x11_fd > 0);
Ok(Self {
dpy,
x11_fd: AsyncFd::new(x11_fd)?,
})
}
pub async fn next_event(&self) -> Result<XEvent> {
let mut guard: Option<AsyncFdReadyGuard<'_, i32>> = None;
// XPending is not always accurate, so loop until we have an event so we don't sleep the thread
while self.dpy.pending() == 0 {
guard.take().as_mut().map(AsyncFdReadyGuard::clear_ready);
guard = Some(self.x11_fd.readable().await?);
}
let event = self.dpy.next_event();
if self.dpy.pending() == 0
&& let Some(mut guard) = guard
{
guard.clear_ready();
}
return Ok(event);
}
}โ
come to embedded land, where the manufacturer-specific compiler was released 6 years ago with a gcc version 5 years out-of-date when it was uploaded, and ram is plenty (only 32mb tho
)
Real
Force all web/js developers into embedded world
#KillAllWebDevs
embed v8 
#LoveAllKotlinDevs
$ echo 'int main() { puts((char *)&((int){0x557755})); }' | tcc -run -
-:1: warning: implicit declaration of function 'puts'
UwU
./run
i = 0x557755
while (c = i & 0xFF) {
i >>= 8;
console.log(String.fromCharCode(c));
}
Here is your js(18.15.0) output @jade stone
U
w
U
./run ```rs
println!("{}", std::str::from_utf8(&0x557755u32.to_le_bytes()).unwrap())
Here is your rs(1.68.2) output @fleet cedar
UwU
In France we say : " Le Octet "
you love windows apis
as a web dev, please end my suffering
@jade stone, <t:1767829641:R>: comment on report
because not everything is a file
salad moment LOL
LOL
How does discord call voice channel statuses internally? i cant seem to find them in VoiceChannel objects
check ChannelStatusStore
so i might have gone a bit hard on the subtitle optimisation shit
turns out webgl2 is simply faster than webgpu
29-30ms webgl2 vs 30-31ms webgpu for worst case stress test
while offering much better backwards compatibility
oo what is this for?
ASS renderer
is it a good idea to use this?
???
is this good to use
no it doesnt cure cancer, nor will you revive ur dead monther
you're trully the master of weird questions
ass
you're asking the person that made the software, if their software is good, based on some non-specified requirements you keep to yourself
so you want a biased, unobjective answer
so yes this is the best software ever made in the world
thanks!
why didnt you tell me that directly?
momentary lapse in judgment
I unironically believe that there's no better tool out there to watch anime
best possible video, audio and sub qualities, with insane speeds, offline support and a bunch of cool features like AL integrations, social forums, and a bunch of other goodies
interesting conversation
bro vibecoding https://github.com/torvalds/AudioNoise/commit/93a72563cba609a414297b558cb46ddd3ce9d6b5
yes because he has better things to do than visualizing audio in python
he should become a vencord contributor
Torvalds vibecoding python is in fact not something I thought Iโd see
I'm pushing it out to github not because it needs to be public, but
because of my policy of using the internet as my backups. And because
it makes it so much easier to just sync between machines.
Old ahh project>npm i
added 1138 packages, and audited 1139 packages in 43s
235 packages are looking for funding
run npm fund for details
42 vulnerabilities (11 low, 9 moderate, 18 high, 4 critical)
To address all issues, run:
npm audit fix
Run npm audit for details.
i think it needs updating
i fixed it with somehow no problems just npm audit fix then npm audit fix --force
To be honest, this is pretty much the only reason I use GitHub
this is the reason i use private repos
i have no idea what this is
(actually i do i was messing with discord.py for some reason)
(but never pushed. lol)
lol i was such a pro java programmer in 2022
just create a class called global to put global vars
i love when i put random titles that ill look back in a year and think "what the fuck was he thinking"
I sort of find it reassuring how crap some of my fairly recent code was?
i still dont know what "its gonna work this time trust" is
I feel like I have not got that much better until I look at stuff from just a few years ago
how does this even compile
npm audit fix most useless npm command which breaks my deps each time
just use pnpm โค๏ธ
what even is this
well my brain like 2 years ago didnt know what a pnpm is
at least not using b*n or yarn
does that make a pointless file then order pizza?
What language even is that?
I love C++ as a language but I think I'd use it more if it had an actual build system /package manager
Cmake just sucks to use
not a particularly impressive project anyway as i don't think the tokenisers do a whole lot
i was trying to do syntax highlighting with probably no research on how syntax highlighters work
this is just weird
C++ is the sort of language where "it's not that bad" is a compliment
if you say you love it you most certainly are insane but on the right occassion I also love it

the best thing about C++ is how smart typing out std::vector makes me feel
Yeah
Doing rust right now and the more I do rust the more I long for some of the features of C++
At the same time when I program C++ I often miss out on some of the features from rust
The grass is always greener I guess
I will probably always say I will learn rust but never actually do it
(learn it properly, not like my really limited experience)
C++ should just add all the good rust features
I feel like the features I love about rust are virtually impossible to add to C++

Although it is getting reflection in 26
But that's still just one of the few
I'd love to see C++ get checked. Generics
As well as a unified build system
And package manager
And modules become a real thing
i'm not sure if i'm missing features from rust but it feels like i'm too c++ brained to learn it properly
learning c and c++ was already very hard for my java brain in 2022
Tbh rust lambdas suck compared to c++ lambdas
I love c++ lambdas and not having explicit capture groups sucks
I keep thinking surely it wouldn't be that hard to make one for c/++ but then every time a new one pops up it sucks ass
like given makefiles are literally just fancy bash scripts how is making an actually good program around that so hard
never really thought about this
my rust experience is v. limited
I feel like it matters a lot more in rust where moving versus capturing by ref matters a lot for the borrow checker
Also, something I hate about rust is there's no way to implicitly clone a value
So reference counted types are a pain to use
Because every time you want to pass them to something you have to manually call .clone
horror
what is sabre and how did it fail?
some DOM based rendering library
it failed by not working and not having accurate documentation
so it doesnt even construct
i copied the docs 1:1, didnt work
@jade stone loves gradle for C++
Tbh gradle is nice
Rebuilding your gradle
10000 ancient runes errors and warnings
after having tried it i agree
trust me, you did not have time to even use 50% of it
yes
yes
yes
you are correct
but from everything i tried in 5 minutes i am already a fan
open relations for shit like attack on titan, or sign in to anilist and unplug ur internet, or turn on persist files and download a bunch of shit so u can view it in library
play some super popular torrent and watch the peers show up on the globe in the torrent client [where they actually are irl]
shit just automagically works offline
its sick
you can even edit list entries, make forums post etc, all while offline
i wont use any of these features 
you will
hayase auto-tracks episode progress
so if u sign in with anilist, and watch shit while offline
then thats editing list entries
it can also auto-skip filler episodes etc
there's little u cant do
even reverse search anime by screenshots or images
live human dubbing when
there are dub extensions for english
that's as close as you'll get
and ofc the video player that's goated as fuck
i want the app do have an integrated ai meant to torture a human so the human automatically translates the animes i watch
the vid player is cracked as shit
the ui is a bit weird when i move it between monitors with different aspect ratios
its normal
waow
idk what u expect to happen
yea
i expect to die
yop
Wow what i just uploaded an invalid isic card to verify for student membership on GitHub and got accepted lol
I still hate Web dev
But i gotta say yes deno + vue is very easy to use and i know why people would want to use it for everything
2 milliseconds is crazy btw
i know
this lib is faster than all native C++ implementations of this
im faster than mpc-hc, vlc, mpv
not more resource efficient tho
i INHALE resources kekw
fuck resources
if i can render say gex in subtitles i dont care
gradle is sooo good when you know how it works
i love guhradle
guh
kys
they call it bun because its buns
react is death
and idk bun seems more complex and with bs than deno
genuinely this is all i had to create for deno to work
{
"tasks": {
"dev": "deno run -A --node-modules-dir npm:vite dev",
"build": "deno run -A --node-modules-dir npm:vite build",
"preview": "deno run -A --node-modules-dir npm:vite preview"
},
"imports": {
"vue": "npm:vue@^3.5.24",
"vite": "npm:vite@^7.2.4",
"@vitejs/plugin-vue": "npm:@vitejs/plugin-vue@^6.0.1",
"vue-router": "npm:vue-router@^4.6.4"
},
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"dom.asynciterable",
"deno.ns"
],
"jsx": "react-jsx",
"jsxImportSource": "vue",
"types": [
"npm:vite/client"
]
},
"lint": {
"rules": {
"tags": [
"recommended"
]
}
},
"fmt": {
"indentWidth": 4,
"lineWidth": 2147483647,
"useTabs": true,
"useBraces": "always"
},
"unstable": [
"fmt-component"
]
}
node is a curse
the less i can touch it the more happy i am
i am a bun + sveltekit guy
Hammers
i'm a C(++) guy until this happen
my fucking god
this is not normal
but it works
even AI is shocked
what are you yapping about
uh ?
But still way better than maven
I like gradle with kotlin dsl a lot
why
Kotler
@young flicker loves gradle with groovy
I prefer the groovy dsl
For the build.gradle it's good enough
horrible
yes
Groovy is good and much better than kotlin dsl
ykyk
idk why google is trying to force kotlin in absolutely everything you know you know
nop
groovy makes me want to kill myself
what
google has nothing to do with this
kotlin everywhere dsl compose everything whatever
thats literally jetbrains
Jetbrains basically a google puppet yk
groovy needs to die
useless ugly and slow
can't wait for the day Gradle fully drops groovy support
Does anyone know what to do when docker is stuck on this
(I've never used docker but its the only recommended installation method for this thing)
if you expand the terminal window enough it should show progress iirc
why is it downloading at like 1kbps wtaf
Does anybody know how window transparency (on linux) is acheived and/or where the source code for this is or just how I can make an electron window transparent?
I've only found this: https://github.com/Vencord/Vesktop/blob/main/src/renderer/components/settings/WindowsTransparencyControls.tsx, but it seems like it's specifically for windows, and is a selector instead of a switch, unlike what it is on my linux client
@solemn ravine This is the example they give for a simple counter
use iced::widget::{button, column, text, Column};
pub fn main() -> iced::Result {
iced::run(Counter::update, Counter::view)
}
#[derive(Default)]
struct Counter {
value: i64,
}
#[derive(Debug, Clone, Copy)]
enum Message {
Increment,
Decrement,
}
impl Counter {
fn update(&mut self, message: Message) {
match message {
Message::Increment => {
self.value += 1;
}
Message::Decrement => {
self.value -= 1;
}
}
}
fn view(&self) -> Column<'_, Message> {
column![
button("+").on_press(Message::Increment),
text(self.value),
button("-").on_press(Message::Decrement),
]
}
}โ
ya
But I haven't seen an easy to break this up into a counter component, with its own self-contained state
I found this, but it is way to much boilerplate to be reasonable
Also it doesn't solve the issue at all
You still have to add the component as a part of your state
god i cant imagine not having an ultrawide for coding rn
@jade stone your ui
Delete
its a quite big project
so this is kinda normal
i love the wrapping rows they added
so fucking useful
here's what that looks like on 'le ultrawide
Have you considered foregoing tabs in your editor for having them in the sidebar along with your files
the output build for this app btw
sveltekit
who puts their shell on the left
who use powershell as their shell
who keep the filetree open at all times
who don't use scrolling tabs
can yall push to github?
i know there was an incident earlier today, but github status doesnt show anything
so much horror
at this point using ctrl-P becomes way quicker than scanning 20+ files with like four page.svelte's
huge
I do that too
the that's usually are "the feature I'm currently working on"
which I then all close once I finish it
i love sveltekit
sleep two
wizle
This is not normal
I don't have 50 tabs open when developing a big project
Maybe 7 or 6 but not higher
then its simply not a big project
for this shit i'll have all these tabs open, and then another 2 vscode instances
one for the native wrapper, and one for the ipc bindings
resisted the urge to 6 7
anyways i am currently developing a very small project and have 2 tabs, 50 tabs is bad
You're just isnane
no, its simply a big project
You're a big project
@deep mulch @jade stone @balmy lintel @fierce pendant i can show off the project in vc sometime if u guys want
you'll understand how utterly insane it is
what project
the one i just showed off
what do it do
plays the uwu
what
i dont understand anything anymore
what is there to not understand
i want to show off the cool codebase of the project ur calling me insane for
and whats that project
hayase
uwu button in hayase when
right here
will you uwu for me if i donate?
sure
why do i feel like the best way to work on a bytecode vm is to start on the bytecode vm

use butterflies and flip some bits
I feel like it'd be better to establish the runtime semantics
and focus on the bytecode by just parsing a simple assembly language instead of having to work on a lexer then a parser then the runtime before being able to see results
i feel like having excel filler and pdf convertor are things in my web app which will make my server explode
we need assembly but platform independent
isn't that node internals
probably?? i have a code which fills out excel worksheet using ExcelJS and then exports it to PDF using libreoffice-convert, but it just hangs after writing the pdf to disk
@jade stone sloppy sadan
@nino
who needs friends when you can have hayase
deno good
use python instead, it has good shit to deal with excelt and pdf
ewwww
hello
so good
if the array is empty it will invoke UB
when i do things like that i normally add a debug assert false
not sure if unreachable aborts in debug builds
I made a msitake though
in my language it will mean it's ub to have an empty block
like if (true) {} is ub??
yeah
Why ub and not compile error
yeah...
what about if (foo) {} else if (bar) {do_thing()} else {return;}
not the best
Interpreted languages can have errors
but still should not be ub
yeah but it is particularly funny for an interpreted language to have ub
it's because I didn't consider the fact a block could be empty when evaluating it
evaluating it is meant to return the last expression
std::unreachable() tells the compiler the code is unreachable but in this case it's a lie
Any way to hide mic and speaker button on user bar?
i guess i could require something to be in every block but that would be annoying
ohh I get you now
I would prefer neither 
just return nil like every sloplang
this is such a sloplang let x = 0 works even though I didn't add variables yet
it's parsed as let; x = 0;
and that's not a variable that's just a global assignment
please for the love a god pick a sane naming scheme for types. how do you use that unholy amalgamation of snake_case and PascalCase.
don't worry there are plenty of projects where i use pascalcase
I switch between coding styles all the time
in this project i decided to not use this monstrosity i am using in some other projects
if (true)
func_call();
else {
func_call1();
func_call2();
}
i have to remember which projects i use the insane style and which i use the sane style for consistency
do you not use clang-format
clang-format's cool with this formatting
though i don't really use it in personal projects as there are certain things i can't configure to work how i want
oh wait i guess clang format could enforce consistency by adding braces for you but i don't think it has something to automatically remove them
good
still clang format aligns things in dumb ways with seemingly no way to fully get rid of that
it's made me ask myself how hard it could be to write a formatter
for C++ it's probably a nightmare
afaik clang-format uses a custom AST thing instead of the normal clang one because of how complicated c++ is to parse
i think there's a reason why clang-format is the only c++ formatter (i've never heard of any others)
there are others
astyle
uncrustify
I wonder if you could make an LLM based formatter
I think people would be unhappy if your formatting is nondeterministic
just send your whole codebase to chatgpt
Though I think you can make deterministic llms, people just don't want to
it would be so boring if chatgpt gave reliable answers
mis-match your braces with clang format and that's what you get
gave me an idea
what if there was a compiler that made random mutations to your code until the error is fixed
(eventually by chance it randomly comments out everything)
whats the easiest way i can add a custom plugin to vencord
without having to fuck around much in the future?
is this even possible or will i need to rebuild it each update?
the easiest way is to have a local build of vencord
if there are no git conflicts, you will not have to manually update, vencord's update will git pull and rebuild for you
you can make your own plugin under the src/userplugins folder
also if you're going to make a vencord plugin you should try out my vscode extension for it (not biased
)
how does that work?
like what, does it run pnpm builds when it auto-updates?
it just shells out and runs git pull and pnpm build (--dev)?
when does vencords updater run when it does that?
oh that makes sense
I always thought it just magically updated vencord at runtime
via discord?
like when u open discord it does git pull and pnpm build and then re-injects?
im so turbo confused by how this works
you only need to inject once
it just rebuilds
but what invokes the rebuild
like i launch discord
and what, there's vencord code in discord with my custom path that re-builds it?
and when i restart discord that re-build version is applied?
something like that, yeah
whats the "vencord's update" in this context
when you're using the git updater, if there are commits to pull it will try pulling them
if that didn't error, it will rebuild
what is the git updater?
updater for dev builds
i only know of the vencord installer binary, and the source code that u manually inject via pnpm inject
it just uses git from your source tree
is that just part of the pnpm inject shit?
idk tbh
i use vesktop
which doesn't install via pnpm inject
but the updater code is here
like the fucking discord custom plugin shit is so ass documented
the docs is just ask for help
nobody who knows enough to make them wants to
fuck me...
just tell me what you want to make and i can point you in the right direction
wait that's inside electron's main process?
that its embedded?
i want to load custom js to patch some turbo cursed shit, before login phase occurs
i dont even care if its done via plugin, it probably wont be, i'll likely make an empty dummy plugin, and embed it as top level code
this sounds like something to do with a patch
unless you don't need to interact with discord's code at all
i'd need to know what the "turbo cursed shit" is
i dont know the details, thats what i was just hired to do
web socket sign-in proxy
like sign in to discord over a websocket
yeah
the guy already has the code for it
its just about injecting it on launch each time
it doesnt need to be clean, it doesnt need to be stable, it doesnt need to be "correct"
for all intents and purposes its "run console.log('hello world') before sign-in occurs"
are you signing in with a username/password or a token
doesnt matter
.
anything is
will top level code in a dummy plugin do it?
you can fully patch discord's code
does ven inject b4 sign-in?
vencord injects before any of discord's code runs
perfect
you can use regex to find and replace any part of it
so just an userplugin in src/userplugins
that's what the patches are
then pnpm inject
and auto updates and eveyrthing else just works
as long as there are no git conflicts
sounds about right?
yes
great, thx for the help
if you're going to write patches, which you should, i'd highly reccomend my plugin you can use LSP features with discord's minfied code (go to definition, show all usages) and get a live preview in your editor of the patches you write
this is just a shit JS monkeypatch
not a proper ven plugin
not that i'd ever attempt to submit another plugin to this project after being ghosted for half a year
i just want to run some custom code, for my friend
still helps with being able to browse discord's bundle
afaik he's patching the JS builtins not discord
yes i know its not a good idea
we both dont care tho xd
nice sesson token sir
@hoary sluice @deep mulch
whats qbe
hi
afaik wrapper around LLVM IR which makes it easier to use
just make it compile to rust thats an llvm wrapper too
nop
(i also wouldn't say rust wraps llvm, it uses it as a backed, but doesnt publicly expose any of it)
no
it's an alternative to llvm ir which is less bloated
when you are unable to lock in so much that you install cursor
im sorry
nvm im not installing it
did anyone here got worker threads working with nextjs
@jade stone uses cursor
I just made this basic shit for fun, can somebody just read the start of the readme and tell me if the concept is good ?
me when i noticed discord is weirdly slow and i see this : OOF
I tried decompiling my own project and it seems to using sentry??
I didn't consent to this
god this latest discord update is trully enjoyable
yes you did
yippee
also this is not sentry
I almost typed cargo build on my C++ makefile project ??
it was ages ago i last wrote rust
i think it's because recently i was compiling a rust project (not mine)
well I just got distracted by rust again 
this is reasonable
this is like when your only dependency is express
you still have like 500 transitive dependencies
tbf it's already probably way less bloated than most ui solutions
stuff like qt invents its own wheels for everything :D
even basic data structures
eh maybe i'll just use imgui

instead now it just depends on a whole compiler
oh, thank goodness, that was slightly worrying lol
weird-exprs.rs: Lines 40-60
fn zombiejesus() {
loop {
while (return) {
if (return) {
match (return) {
1 => {
if (return) {
return
} else {
return
}
}
_ => { return }
};
} else if (return) {
return;
}
}
if (return) { break; }
}
}
how does this work
I should not be allowed to write rust
(protip: posting your rust code and saying that you should be "banned from writing rust" is a good way to get people in chat to act as a linter and works consistently)
I think I overengineered my B.F. parser anyway
boyfriend parser <3
brainfuck interpreter is probably something you can easily do with no parser
and really code golf it
delete
Some horror rust that I wrote yesterday
wtf
Satan.
how does vencord on vesktop grab the webpack modules with sandboxing AND context isolation? I'm trying to do the same for another webpack-built website from an electron instance I made
I can successfully make it work with both disabled, but I was wondering how y'all do it
by using a preload script to inject js into the webFrame
are you trying to make an electron app for a website?
learn how the different electron processes (main, preload, renderer) work
I'm trying to create a modded client for Whatsapp web lol
im loading web.whatsapp.com in the main window
This guide will step you through the process of creating a barebones Hello World app in Electron.
and then I'm grabbing the webpack modules though window.require('__debug').mainModule
that's exactly what I'm doing, but if I enable context isolation I can't access window.require anymore
because require is a nodejs thing
ans require("__debug").mainModule doesn't even make any sense, what are you trying to achieve?
holdup
I just got home one sec
lemme show
modulesMap mybad
We are joining Cloudflare!
๏ธ๏ธ
๏ธ๏ธastro.build/blog/joining-cloudflare/
hm
Sounds good
interesting
at least it isn't vercel 
@worldly sigil @worldly sigil @worldly sigil @worldly sigil
hi
GUYS
IMAGINE.
creating.
a script on your bot.
a command*
that gives you the role just below the bot.
tracks bug for 3h
it was Vite
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@jade stone help me
love
TLDR vite is not outputting workers inside its manifest file
oh god
so that means sveltekit doesnt pick it up in its build output
that sounds like a pain
so that means my service worker cant cache it
so that means when u open my app offline the worker doesnt load
which means subtitles dont render
which means a white box renders
which means u cant see the video
THE RABBIT HOLE HOLY FUCKING SHIT
have you found the source of the bug
vite!
no
its somewhere in 2 plugins
they use 2 different pluginms for handling workers
which vite themselves doesnt handle
idk how to debug vite tbf
@jade stone you got experience with that?
cuz im honestly at my wits end
yeah actually
fuck man actually idk where to start
wanna hop in a vc real quick?
i'll show the issue
sure
cuz this me rn FR
@jade stone
@deep mulch
stinky sadan!
nop
satanic salad
omg
i did it
i used all the credits a paid gemini account can use
and it's asking me to upgrade to the 150โฌ/m
it's very good to make my detailed C# exam that needs me to use entity framework and clean architecture and create corpo code
i still have to direct it a lot but to do all the boilerplate it's nice
and even to just translate the french logic into english code
sadly i can't let myself vibecode tho so it still takes time
but it's way less annoying being a manager than a typing machine
we couldnt fix it
monkeypatch it is!
Lovely
if a worker spawns a worker, the 2nd nested worker cant listen to message events
:))))))))))))))))))
so shit like postMessage() wont work
oh, another firefox bug!
hahahaha this browser is so dogshit
At least Firefox finally supports css anchors
fuckiong it supports jack shit
barely anything works in this browser
this is crazy
oh my fucking god
if your video is looped, and u use requestvideoFrameCallback
and the video loop
the time doesnt reset to 0, it keeps adding

pathetic excuse of a browser
does anyone here knows how to use loki + grafana? im trying to setup the dashboard but id like to know one specific thing
vcotd
terry taco bruh

how is that related to my question
bro terry taco etnered the lobby
sir this is wendys
oh nice
I'm working on a new website that depends on anchors and it just didn't work on Firefox when I was working but I figured by the time I'm done it'll be supported

i wish firefox supported any of the shit i do tbf
had to perform these actions against humanity
just to get shit running on firefox
at least offscreen canvas with webgl2 context isnt as fucked as offscreen with 2d context
that shit's completly fucked on ff, random errors when resizing, random detaching etc
so in comparison this is relatively mild
still, no multi-threading, so like >x4 slower than chrome, and almost x10 slower when ANY form of rapid memory growth occurs
but FF has always been dogshit with memory allocation and gc
at least its competetive with chrome in single threaded when the memory has already been pre-grown
actually its faster in those cases
but yeah "faster if you ignore problem A, B and C"
at least WebAssembly.Memory.prototype.toResizableBuffer is no longer experimental in browsers as of last week, so me using it doesnt make me unhinged!
@jade stone check these are the fixes for ff

I LOVE this one: // Firefox cries about uninitialized data, but is slower with zero initialized data...
but then when u actually go to pre-initialize the memory to make this shit go away, its >10% slower
also when looping a video in ff, requestVideoFrameCallback doesnt reset to 0 for mediaTime on a loop, it just keeps counting up
so you can be on the 30th second of a 5 second video... fun!
@lyric latch has cobwebs in his room
whats that
which person do you think i am ๐ญ๐ญ
my framework have better name tohuhg
i plan on maybe supporting vue components in torch but you aint getting react
but like
the torch philosophy is "you should kill yourself instead of sending too much js to the client"
mine too!
mine is
Zero Interactiveness with zero JS
thats like 3 wikipedia pages
mine is just
class HomePage implements estrogen.Page {
render() {
return `<h1>Hi!</h1>`
}
}
๐ yuvea is 99.98% gay
its your decisions if you wanna
import * as torch from "@usetorch/torch"
or
import * as estrogen from "@usetorch/torch"
can you help me implementing atleast some typesafety
i dont want this to be so bad
i dont know if what i wanna do is even possible to do type safe
import { Context, Hono } from 'hono'
import * as estrogen from "@usetorch/torch"
const app = new Hono()
class HomePage implements estrogen.Page {
load(ctx: Context) {
var definitelyAString: string = "meow"
return {
definitelyAString
}
}
render(data: any, ctx?: Context): string {
return `${data.definitelyAString}`
}
}
export default app
could i make data have type-safety when used in render()
what the fuck is a generic and what the fuck is a parameter
oh
why would i need to have that though
interface TorchPage {
route?: string;
layout?: Layout
load?(ctx: Context): Promise<any> | any;
render(data: any, ctx?: Context): string;
}```
does this even deserve typesafety
ok
Why not using unknown along with a TypeGuard ?
i am too dumb to understand what this does
when i extend it what
i dont see the point of that as long as i didnt also add type validation
hi axy 
i lost my sanity when i was six
i dont fucking care anymore
time to make a website with my framework!
this is so cursed why does jsx return a function
await (
<>
<h1>My Todos</h1>
<Defer>
<TodoList />
</Defer>
<Defer>
<TodoList />
</Defer>
</>
)(ctx);
@delicate root teach me web development and webgl
and web data visulization
i need to render 200 mb of data
lmao
vhg
๐ You are 77.41% gay
@delicate root i build the first website with my framework
code here: https://github.com/usetorchjs/website
uhh the github repo was private on acvident i just made it public if you wanna take a look
@supple whale sonarr wont import it so i just downloaded it with filezilla and am using VLC 
told ya to just use hayase
;P
u can mount a network drive and download to said network drive

anyways, i hope you enjoy 86
its up there for me as some of my favorite shit
it has so many scenes i fuck with, and the major's personality is so fucking good, i love it
casual "just rendering subtitles"
average thaunknown activities
big chungus
tbf it is a pretty cool project
vsb 1 malware
Done! 
softbanned @lyric scarab
fucking vps running out of bandwidth:
this is with 93% of data being cached by cf
after write a javascript framework yesterday, i am writing my own "quick dev enviroments" platform now
its planned to be self hostable
Hetzner gives 1tb
electron app installers

issue is, vps says im doing like 100-200GB a day
and cf says only 5-10GB a day actually reaches the vps
so idk if i have some firewall missconfig, or if some1 is attacking me and the IP somehow got leaked
idk
new anime season started, so there's been a surge of users
Does anyone here know about any lightweight solutions to puppeteer? It seems so bloated to me
Afaik puppeteer emulates a browser
Yes
Lightweight and browser don't belong in the same sentence
I need it for testing with vitest
Thats true, building the docker image with pptr takes a lot of time tho
My friends have been shitting at me for it being so slow
selenium, then electron
but yeah its all just chromium
both pupeteer and selenium and electron
pupeteer is already as lightweight as you'll get it tho, considering its headless
they will all run roughly the same as they use chromium's testing framework, which is chromiums API for remote interfacing with the browser
or chromedriver, w/e u want to call it
airtap has something called "airtap local" where it uses system installed browsers to run tests, idk how it detects them doe, maybe vitest has something like that too?
I mean you can set up puppeteer to use local browser
then u wont get less bloated than that lol
Is there a plugin made that lets you search for messages with a specific reaction?
๐ #๐ฅ-vencord-support-๐ฅ
(Auto-response invoked by @deep mulch)
My bad
v+ no prog
holly what a hit
1.3k commits in a year isnt bad tbf
time to learn go
do not
do not
do not
@lyric latch rate
class {
getExportMapWreq_d(): RangeExportMap | undefined {
const wreqD = this.findWreq_d();
if (!wreqD)
return;
// function (module, exports, wreq)
// wreq.d(exports, {exportA: () => a, exportB: () => b});
const [, exports] = wreqD.arguments;
return Object.fromEntries(exports.properties
.map((x): false | [string, RangeExportMap[string]] => {
if (
!isPropertyAssignment(x)
|| !(
isArrowFunction(x.initializer)
|| isFunctionExpression(x.initializer)
)
)
return false;
let lastNode: Node | undefined = findReturnIdentifier(x.initializer);
lastNode ??= findReturnPropertyAccessExpression(x.initializer);
let ret: RangeExportMap | ExportRange | undefined;
ret = this.tryParseStoreForExport(lastNode, [this.makeRangeFromAstNode(x.name)]);
classDecl: {
// check for ret here instead of using ||= because we can't short-circuit
if (!lastNode || ret)
break classDecl;
const rawMap = this.tryParseClassDeclaration(lastNode, [x.name]);
if (!rawMap)
break classDecl;
ret = this.rawMapToExportMap(rawMap);
}
ret ||= this.makeExportMapRecursive(x);
// ensure we aren't nested
ret = (function nestLoop(curName: AnyExportKey, obj: RangeExportMap | ExportRange):
RangeExportMap | ExportRange {
if (Array.isArray(obj)) {
return obj;
}
const keys = allEntries(obj);
if (keys.length === 1 && keys[0][0] !== WebpackAstParser.SYM_HOVER) {
if (obj[curName]) {
return nestLoop(curName, obj[curName]);
}
const [[key]] = keys;
assertNotHover(obj[key]);
obj[key] = nestLoop(key, obj[key]);
return obj;
}
for (const [k] of keys) {
if (k === WebpackAstParser.SYM_HOVER) {
continue;
}
assertNotHover(obj[k]);
obj[k] = nestLoop(k, obj[k]);
}
return obj;
})(x.name.getText(), ret);
return lastNode != null ? [x.name.getText(), ret] : false;
})
.filter((x) => x !== false));
}
}
whyyyyyyyy
i havent slept
for 3 days
i dont even know actualyl
ive been trying to deobfuscate this thing
and make a tool for deobfuscating
that obfuscator
its so over for me
and i have realised i have been sitting and staring at the viewer for approximately 12 minutes, reading with my eyes not my brain
@jade stone have you seen that yet
@frosty obsidian use in gloom
Insane
creating my own website now
so I was wondering
i didnt expect the 4 letter p word to be blacklisted
why doesn't vencord just bundle its own react and other libs and just inject the code into the page instead of hooking into discord's webpack modules?
except for patching some methods
let's say I make a plugin that simply adds a button, made with react
im pretty sure its for like package size
why can't you bundle and inject your own react and render the button?
and if you bundle vencord with its own version of react, i think there could be conflicts with discord
's version
you can give it a different name at compile time I think
dont take my word as gospel, i dont do web dev that much anymore
especially if you use vite

wouldnt a separate react instance for vencord
be isolated from default discord component tree
making it pretty hard to do stuff in plugin dev
we need to go to the 2005's iframe layout, where navbar, sidebar, main content were all separate iframes
having shit like channels, or users in its own iframe would make this app run x10 better
assuming they do origin isolation so that the iframes are multithreaded lol
I don't have much react experience, but can't you just document.querySelector(?)
and then add a component there?
@royal nymph don't explode me for the ping but I need answers 
why in the world would we do that
and no, you can't have multiple versions of React
why's that? for as much as I know, you can technically rename the module object to something different than "React"
because they will conflict
and like I said there is no reason to have your own react
if you keep them in separate react roots then yes it will work but if you try to inject elements created with React1 into the React2 tree you will instantly crash
why would you do it this way? to access something else in the tree? again, I don't have that much react experience, is it not possible to querySelect the target element, append a new element to it, make that new element a 2nd react root, and then add the components in?
yet another svelte W
running svelte inside svelte?
react inside svelte?
svelte doesnt care
fr, svelte on top
no and why in the hell would one do this
dunno
i really love svelte but i am trying solid
nop
so infefficient
you will use a for loop
salad hates efficiency
soon
this code has like four nested for loops at the bottom
this.vars.get(decl)?.uses?.forEach(({ location: { parent } }) => {
if (!isCallExpression(parent)) return;
// your map((calledUse) here
if (use)
uses.push(use.at(-1)!);
})
same code but way more efficient and way more readable
excessive array method chaining is evil
it's way more readable imo
nope
this is more readable
vai rewrite this code to use a single for loop like this:
this.vars.get(decl)?.uses?.forEach(({ location: { parent } }) => {
if (!isCallExpression(parent)) return;
// map((calledUse) code here
if (use)
uses.push(use.at(-1)!);
})
make sure to include all logic and have the identical result
if (!isCallExpression(parent)) return;
const calledUse = parent;
let use;
if (exportName === WebpackAstParser.SYM_CJS_DEFAULT) {
// TODO: handle default exports other than just functions
use = isCallExpression(calledUse.parent)
? [this.makeRangeFromAstNode(calledUse)]
: undefined;
} else if (typeof exportName === "string") {
const expr = findParent(
calledUse,
isPropertyAccessExpression,
);
// Replicating original logic
-# Response generated by gemini-2.5-flash. AI may be incorrect or misleading.
@royal nymph love?
yea
nop ๐ญ
the method is so unreadable
Contribute to sadan4/DiscordBundleParser development by creating an account on GitHub.
well nit but personally I find this unreadable, I would do this instead:
for (const use of this.vars.get(decl)?.uses ?? []) {
const calledUse = use.location.parent;
lmao
i mean
you should probably split that up in smaller functions
yeah
sloppy sadan
that's so real
why tf is it any
what is ts cooking
its not any if i dont use then
wtf if i set noImplicitAny to true it isnt any
it was because of overloads
the fix: casting to PrivateThreadChannel (before it was Private | Public)
so i was right
tanstack router ๐คค
If only it supported css modules ๐
tbh it cant be that hard doing that manually
Css modules work normally but break with ssr
You get FOUC
whos fouc
Oh
Looks like it was fixed
A flash of unstyled content (FOUC, or flash of unstyled text) is an instance where a web page appears briefly with the browser's default styles prior to loading an external CSS stylesheet, due to the web browser engine rendering the page before all information is retrieved. The page corrects itself as soon as the style rules are loaded and appli...
oh
why would css modules improve that though?
It's an issue caused by css modules
They aren't properly handed with ssr
haha
only reason i am moving my website to tanstack start is because i wanna use mdx
you can use mdx within anything
but i don wanna
svelte-jsx sounds like the thing i will use shortly before killing myself
well okay have fun
I meant something very simple, but whatever whets your appetite, I guess
oh i also want a preloading router for no reason
isn't this usually solved by bundlers just inlining the css if its not too big
astro does that for ex
Afaik don't need to inline the css, the browser will load any <link rel="stylesheet"> before display the content
The problem with tanstack is that the initial payload of html to the client did not contain these tags (for css modules)
The css was loaded by vite on the client instead
Which happens after the initial render of SSR html
lol
@jade stone have you used tanstack data table
no, that's something i'd write from scratch if i needed it i think
it seems nice for more complex stuff
@jade stone teach me typescript instantly
what do you want to do
make website for work
no like what do you want to specifically that you need help with in typescript
good practices
the type system
