#🪅-progaming
1 messages · Page 139 of 1
Node_modules/.vite?
YOU WISH
Have you git clean -dfX
thats not a good idea for this project
After looking a bit, it seems people use vite --force to regenerate the cache.

im using a superset of vite
so i cant pass that
Fuxk.
it was pnpm hiding the true path somewhere else
holy
it was in %appdata% cuz the same module was imported twice in the project
?>
now electron-rebuild is not detecting the module....
end me pls
WHAT THE FUCK I TOLD U WHICH MODULE
WHY ARENT U REBUILDING IT
WHAT THE FUCK

NO THIS JUST DOESNT WORK
why do i always run into the most insane bugs
holy fuck
@jade stone you should have seen me compiling nodejs 24 for android yesterday
jesus fuck my desk is like 2cm lower now because of how much i smashed it
😭
@supple whale you love discord's insane rspack config
same module id
different contents
meanwhile my current mood:
imported as destructuring
but imports the entire fucking file
what the fuck
The problem is always electron and javascript
how do you pronounce this
git clean - dafux?
Guys, I got Claude Code to write a VAAPI driver for encoding streams on Discord using nvenc. And it seems to be working—at least the debug window shows the VaapiVideoEncodeAccelerator codec.
12 mins of waiting for nothing
I'm currently fixing bugs, but the fact that I got it to work—I consider that a victory
it's okay to have wrong preferences, but don't spread misinformation to try and drag others as well ❤️🩹
dog, the first thing i do when i see some new project is check if it's someone actually doing it, or AI for the bajilionth time
vibe coding is okay if the end product works
" end justifies the means " -ah mentality
How do you even know that ?
it's pretty easy actually
many times they just have some agentic bullshit file
like CLAUDE.MD just chilling there
or the commits are co-authored
I don't go on a peck and hunt for em-dashes or other bullshit, it's more of a quick "vibe" check
either way, code either sucks or it doesn't, just so happens that AI code sucks disproportionately more often
and it doesn't have the whimsy of someone struggling to write it on their own, the AI cannot write comments like they are on their death bed
Will be fun to have an AI commenting shit like : " It's the forth he told me to " redo it ", please unplug me. "
no
Because it is not real agony which I can relate to
It is store-bought processed agony which i am allergic to
I get it.
good
if i'm just gonna use the product and not contribute, i wouldn't care
genius
except the unused_no_op function is now unused
the inline keyword gets rid of this warning
weird, because the impression i got is inline is basically useless in c (not C++) with modern compilers
Oh yeah if the product just works then I can forgive it, as long as I'm not paying for it. I still believe morally wrong to make money off the license violation machine 9000, but sure some random one-off tool I don't car
However as of recently I am readjusting my attitude towards AI, I feel like I've been a lot more tolerant.
I wish it was socially acceptable to sacrifice induviduals to God's of my own choosing 
inline does in modern compilers not mean "pls inline this function"
it means "this function does not obey ODR"
you have to use compiler specific attributes instead of the inline keyword
it's so bad

That... somehow makes sense.
@young flicker
in C++, but i don't think so in c
but hey at least it's supressing an unused warning in C
i thought it meant that the linker should merge all instances of that symbol across object files into one in the final binary
(pretty much the same as it doesn't obey odr)
guys i think AGI is here
Skyblock mentioned
@jade stone
agi so good it's learning how to game git commits count
to force it to inline yes
the inline word will lower the cost of inlining a function accoring to llvm, basically "conside it more"
the compiler is much smarter about when to inline then you, and if you want llvm to know exactly when it makes sense to inline, run a PGO run
please dont mislead people. inline still means inline
You should do PGO runs for best performance, enable x86_64-v3 instructions, and probably use a -mtune znver3
@ivory heath haiii
haiii 
hru
oh
got fed up of cross compiling to aarch64
ohh what host/cpu are you trying to migrate to?
nothing i really do has intrinsics written for arm NEON so i cant use them
but for node js webservers or whatnot its pretty good
oracler user spotted
hetzner has arm ?
the arm cores on oracles free stuff are so slow
not really worth using unless you just wanna be as cheap as possible
I've been using it for years and it works well for me
when I got this ampere was a bit cheaper so I just went with that but now x86 is cheaper for same vcore count and mem 
ideally you self host and use cloudflare tunnels for free to
ideally you self host? maybe ideal if you're crazy
I self host most of my shit
remember that vcore on arm means a real cpu core while it means 1/2 a core on x86
yeah that's the plan once I move out
I'm definitely not about to serve 500gb a day to 2 million unique clients from my fucking home network 
thats why you dont self host large static objets and use yet another cloudflare feature for that
I don't exactly care about the cpu performance since most I'll be running on this is gitlab, vw and some dc scaper for sadan 
oh all gitlab wants is a assload of ram
I love slop software
I love gitlab but why ruby on rails 
well ik it was built a decade ago and too late to refactor but ykwim
still too much traffic even if it's cached
literally the only reason to run your own servers is if you really need that level of control for some reason
yop
so much cheaper to just use cloud servers
cloud servers and cheaper do not belong in the same sentence
unless power is stupid expensive for you
which i assume it is because youre german
bro if you're not building a hobby project hosting at home is not going to cut it
you'd just be building your own data centre
if/when I can afford it I'm just gonna buy rack space from a data center 
if it really was so economical to run your own servers, more companies would do it
almost no one does
it's just not worth it if you're not a giant
they dont because they want to be able to scale quickly and its less of a liability for them
they dont mind spending more for that safety
you need the safety if its not a hobby project
like yeah sure you can build your own personal jellyfin server cheaper at home than it'd cost to rent a vps with good gpu
but now try making a public streaming service from home 
wheres that one hetzner gif with the email saying something like "hello, we forgot to turn on the power for your server"
when i was like 13 i used to host a public shell service i advertised mildly on freenode from my laptop at home running arch linux. dont ask me why
i selfhosted so much stuff from like 13-16 lol
i distinctly remember some skid taking it offline by doing sudo ping -s 2048 -f and crashing my router
i still do selfhost some things
selfhosting shit is one thing but giving people accounts with ssh access is another
eventually i moved to vps/dedis for it
and at some point it became fully private and only gave access to friends
and then eventually it just died
This is a strawman for stuff the vast majority if not no one is gonna do here
Yeah if you wanna be fucking Netflix hosting outside your house isn’t a option
the biggest bottleneck was people running teamspeak servers
if you wanna be anything big, hosting outside your house isn't an option

i wasnt exactly drowning in users it was like a dozen or a couple dozen at best but yeah
Maybe not out of your house but out of a business park with a enterprise connection
Which if you have a office you will already have
And if you don’t have a office why don’t you, it increases productivity
I wonder how much 10gigabit would cost for us 
maybe because I have normal people money and can't afford renting my own office 😭
and how would that be cheaper than just renting a vps
These are things you will already have as a business because connection speed and uptime is money
apparently enough that you need to contact sales to get a number
tetover
ig I could just ask my dad he works for these fucks
horror
in switzerland u can just get 10gigabit in normal households
It entirely depends on if fiber was ran to your location already or not
we already have gigabit fiber
nope
there's fibre everywhere in my city and yet it's impossible to get anything close to 10gbps
I think we can get 5 gig symmetric here just on demand, we only have 1 gig tho
there are some niche providers in some areas but they're insanely priced
meanwhile in switzerland you can get 10gigs for cheaper than 1gig here 
germany moment

not that anyone should need those kinds of speed xD
yeah I can't find anything about 10 gigabit for home users it's all contact sales
tetover
ME I DO
300 is too little for large downloads
unless you have some sort of job where you need to constantly download data i disagree
I'm fine with waiting an hour for my 100gb game download 
you love downloading games from steam at 500
I download large things like that maybe twice a month at most
Me when I try and download a 100 gig torrent

for me it's absolutely not worth the higher price
if it was same price obviously no brainer lol
how much does ur thingy cost rn?
too much man, too much

gigabit would cost even more too much
internet situation is catastrophic in this country
a lot of "new" tech's situation is catastrophic
scary
it's what happens when you keep retarded boomers in charge for too long
we get gigabit up/down for like idr 30 or 40e a month
my family has 1 gigabit, but its fortunately its only about $75-80USD/mo (~70EUR) which isn't that bad compared to the only other option which was comcast
scary
there was a guy i was talking to who lives in toronto, and he gets 6 gigabits for like 60CAD/mo cuz he lives in an apartment complex
holy shit need
here it's like 55€/month at least and you need to switch provider every two years to keep the price low
insane
That’s everywhere for any speed honestly
nah bro when I look at other European countries they're all way better and cheaper internet 😭
nearly all ISP give a 1-2 year promotional period where its cheaper
so its cheaper to just switch the one your'e using
oh youre talking about the switch every 2y part
yes
SATAN INTERNET
SATAN INTERNET
my isp only goes up to i think 33/mo after 2 years (we've been with them for almost 1 now) which for 1000/300 i think is totally reasonable
i should make a game
i sure hope you know what you are doing
Cloud servers are like $3
Good server hardware itself is like over $100
That sounds like recipe for killing sandy cpu users
i like the idea of xlibre but why are they nazis
Why are you using ANYTHING pre skylake in the big 26. Also usually people who do that also offer -v2 builds
33 what? USD? Where do you live?
For 1 vcore on an Intel platinum from 2017 yeah? A raspberry pi is just as fast if not faster in some aspects
The CHEAPEST you can get with a reliable host like hetzner is 5 USD a month
Wow that’s really cheap
we do have i think the fifth best fiber infrastructure in all of europe
Is it govt owned?
If it works then don't touch it
wdym by government owned
I don't see a point of replacing my current hardware if it still works
Because newer hardware will pay itself off in the power bill alone
Is the infrastructure privately owned or by the government?
For example a lot of buildings in NYC are owned by the port authority not a company
(It won't)
Efficiency is not the reason why would I upgrade to new hardware
In fact new hw will eat more
This pisses me off even more because you’re fucking over everyone else to support some shitty platform no one should be fucking using in the big 26
On yeah my PC could run 30% faster but much haswell/sandybridge
It will eat less because the total time your cpu spends pegged at 100% is only a fraction.
Unless you go with AMD an Infinity fabric will fuck you over with a 30 watt idle power draw
2012 hedt eats less than 2026 hedt
so cap
In applications where AVX2 can be used its literally twice as fast if not more due to more complex instructions
Only reason why would i even upgrade is really security and software/firmware support
Mmm yeah keep using your platform that’s 50% slower since launch
Why are you even comparing 2012 HEDT to 2026 when it’s an order of magnitude faster
You should be comparing entry level hardware to 2012 HEDT
Perf per watt has also gone up accordingly too
Anything 2012 is DDR3 as well so it’s not like you’re losing anything by losing the 2-4 channels extra HEDT has
Something something some stupid cope about ECC ram when consumer platforms support it now?
sorry bro surely everyone has at least $4000 to buy ram and gpu
Where are you making up these numbers from? You can very healthily build something 12400 based or whatever Intel has now for less than 500 USD
unless you just need 256 gigs of ram or something?
Shortage
Alder lake cpus stopped getting produced recently so no (and yes i need lots of ram for ai)
And no im not american
A CJS-compatible and battery-included fork of JASSUB. Workers and WASM are embedded as strings for seamless integration in environments without ESM or complex asset loading. - mrcanelas/jassub-embe...
HOLY FUCKING SKILL ISSUE
tell me you dont know how to configure a bundler without telling me
i should make a game
Yes, you should.
running ai on 2012 HEDT (no matter the vendor or the specific chip) is hilarious
running ai is hilarious
decided to try local AI
so far i have BSOD's like 8 times, and once i booted without windows detecting ANY drvies
33 kb for a fully transparent image is wild
https://hypixelskyblock.minecraft.wiki/w/File:Blank_Icon.png
skyblock mentioned
tried this out a bit today
good lord this is VERY alpha
ran into 2 bad compiler bugs in the first two files i tried
the typescript integration needs heavy work
Like their compiler is so bad it can't handle scopes
It just ICEs on that
seems promising
I have high hopes but low expectations
is this a thing, or just something i installed
this is a vanilla thing
idk i think i pressed f3+ something to edit
f3+f6
yea
Sounds like horrible hw for ai
Well why not
But i meant on new hardware
guys is anyone of yall good in sending webhook msgs?
i tried "agentic engeenering" for the first time
just vibing a project without looking at all at what the AI is doing
it seemed to go quite well with lots of hiccups, but eh
and then i peaked behind the curtain and what the flip, how did the AI delete /dev/null, i don't even want to know
whats dev/null
yo mods is this real
mods can we confirm this
mods
mods
@Moderators can we confirm this
mods
mods
vsb 1 scam
Done! 
softbanned @meager spade
a system file that you can write anything to and it'll just discard it
what does softbanning do


bans, deletes messages sent in the last day (by default but can be changed) then unbans
its a glorified kick

i heard some bots do another unban and ban after that just to make sure
i think discord made purge more consistent now though
/dev/null on linux is a black hole
what you pipe or redirect into gets deleted from existence
should be a name of an achievement
i imagine the description is just "why the fuck would you do this"
@eternal gust I added an animation to the button to see the friends page of my site so people will actually find it
thoughts
(just visit https://sadan.zip to see it)
try not using something from 2003 👍
it's for security but mostly not having to load insane effects
can you still visit discord web
do they require wasm now
or do they still have a fallback from libdiscore
still works for me
@jade stone what if for the snow you spawned 200 svgs
and animate them using JS
husk
i already animate a canvas with js
i don't think svgs would be any more performant
nice. i will say, the interval for the friends modal should be shorter
@lyric latch try now, i just wrapped wasm in try-catch
if someone doesn't have it and visits a page that needs it
well 
wdym
which interval
well ok not interval but the amount of time needed to hold the button
in order to trigger the modal
how much shorter
maaaybe by about 2x. the start is fine but it really slows down near the end
otherwise looks good
pushed a change, try it now
awesome ty sadan
idk if this is the right channel, but does anyone know if its possible to spoof being on mobile to get higher upload limits?
i noticed its possible to upload larger files from my phone on the web version of discord
how much larger? are you sure it isn't 1000 vs 1024 fooling you?
i uploaded a 12mb image from my iphone, i copy the same file from my pc and i get the upload limit message
was it byte for byte the same file? maybe it's HEIC vs JPEG
yes
interesting
i have set my phone to save images as JPEG
is this a T420?
yeah
the drive im messing with is out of the NUC in the background
my T430 had the T420 keyboard mod until a few months ago
im thinking about buying an x230 and doing that
i love the keyboard, it feels better than my mechanical keyboard
it died because I didn’t tape the pins 
i heard that sometimes it just burns out that one pin and then works fine
Rip minio
What
It's now Aistore
and went closed source
I knew something was sketch of it either way but they need to make money somehow so respect it, just not the bait and switch
would take a look at https://github.com/deuxfleurs-org/garage
(Mirror) S3-compatible object store for small self-hosted geo-distributed deployments. Main repo: https://git.deuxfleurs.fr/Deuxfleurs/garage - deuxfleurs-org/garage
i haven't done anything productive for like 4 to 5 days straight after installing linux
guys what's the way in javascript to deal with zip files
ideally with the least amount of dependencies, proper modern support stuff tiny and fast
because i hate that when i search i find thousand of impl
i just want a single good one...
tiny and fast? https://www.npmjs.com/package/fflate
but it's way less convenient than some alternatives
This is one of the things i've found
Seems to have correct handling, no dep itself, relatively modern, not bloated work on all JS env and OS agnostic
Honestly the js world is such a pin the js env should have a proper API to handle compressed files and stuff i shouldn't have to worry about it...
I used this in the past for making chrome + firefox extension zips in Vencord's build pipeline but something about the zips it created wasn't fully compatible with chrome and I was too lazy to debug so I just switched to a more simple library
Wdym not fully compatible with chrome ? And what did you swap to ?
I use https://www.npmjs.com/package/zip-local now which is way simpler than fflate too but there are probably better alternatives
fflate isn't that convenient to use
e.g. if you want to zip a folder you have to manually load all files as Uint8Array and pass them to fflate afaik
there are other libs which just let u do things like `zip.sync("./dir")
4 dependencies : sus
it really depends on what ur use case is
fflate is great if you want speed or something tiny you can ship to your frontend
maybe look for an alternative if this is for nodejs developer sided stuff
I want ideally to really not explode deps
Technically it shouldn't ever be used in frontend
I want to use it in a lib used in dev env / CI via node / bun / deno / whatever one might imagine to run js in the future
And work on every OS and stuff
why do dependencies matter this much if it's just for some ci and dev env
I get it I hate having too many dependencies too but some are okay
well just use fflate if you want zero :p
Because dependencies is risk
Also fflate seems mostly good
Need to read it entirely tho
I wouldn't really recommend that package (I don't even remember why I chose it) but if you look at its four dependencies, they all have >10million downloads a week
dependencies aren't inherently bad, just check them and if they're very unpopular maybe don't
and wait a few days after new releases before updating packages (you can configure minimum age in most package managers)
with dependencies with that many Downloads as long as you wait a few days people/npm will always notice if they add malicious things
Pain
I think i'll just give up on js
I honestly get why Web devs like vibecoding now
Stop worrying about stuff
why r u acting like dependency hell doesn't happen in most languages 😭
have u ever seen how many dependencies the average rust project has
but yeah I'm not a fan of dependency hell either I get you
I'm very cautious about which dependencies I add and still end up with hundreds of deps
lol i remember getting 10% of my storage eaten by a tauri project, doing the most bare minimum thing
Actually when i do Java i nearly never install any dep
When i do C i never have deps as i just vendor stuff, i stop depending on it and just incorporate
In python i kinda already stopped caring because it's such a pain
I like using pure vanilla javascript for making my website and i use 0 dep and i just do everything myself
But here i decided to try out do it the good way use node bun deno (deno seems to actually be the closest to something i can appreciate, has not much bs) and use typescript and dependencies if needed but it just doesn't feel good
Like rn i'm using a single dependency which is eemeli yaml thing because it itself has no dep and is quite clean
https://jsr.io/@eemeli/yaml
It has a lot of code alr but it's yaml and yaml is like json but even worse so pain but fine
yeah rust eats your disk like nothing else 
and ram when compiling because of the deps 
I have to close everything else when compiling impactor on my 16gb computer
i bought my ram, i will use 100% of my ram
insane
Why do you need yaml
because i want to do something related to yaml
Just use less compiler instances
If rust had tree shaking the dependency hell it’s in wouldn’t be as bad but due to it being… rust it’s very hard to do so

What?
We love -j1
Does rust use LLD? its just the systems default. You can try mold to decrease ram usage
uses lld by default on linux
It’s whatever CC defaults to
no, it uses lld by default on linux
On other platforms, it uses the system linker
Oh it changed in 1.90
No, 1.90
I’m surprised they haven’t hand fisted mold
I still need to try mold with rust
you're eating mold with rust?
Yes
@rancid galleon hey, for the tenor textreplace you did, the 2nd rule seems to not remove the language part
works for me
idk i updated yesterday cuz it stopped working for me after some update
It doesn't work with 2 letters locale https://tenor.com/es/view/sigh-ugh-gif-20357661
oh
well i got gpt to spit out this monstrosity
https:\/\/tenor\.com\/(?:[a-zA-Z]{2}(?:-[a-zA-Z]{2})?\/)?view
That's not necessary, Discord has NVenc support natively on Linux nowadays
NVenc and Vulkan Video, you can choose
really?
Why does OpenH264 get selected as the default codec in that case?
It's an experiment that you need to enable
I guess it's not very known because I never seen anyone talk about it
Oh, I saw that. But when I tried to enable it on my vesktop*, it didn't work for me.
It won't work in Vesktop
That's a feature in the Discord client and afaik Vesktop is just a Chromium wrapper for the Discord Web
But I need a version that will work for Vesktop
From @jade stone (video muted):
i dont like discord toasts cuz theyre so tiny
it mutes too
tiny? i think it's average
my bad
@supple whale GUH
i found an annoying bug with vite
it just doesn't emit css files
@supple whale it gets weirder
setting inlineConst to {} or {mode: "all"} will cause the issue
setting inlineConst to {mode: "smart"} does not cause the issue
the weird part is that the default for inlineConst is {mode: "smart"}
guh
rolldown momen
@supple whale tanstack start recently added support for rsbuild
might try it to get away from vite
sadan.zip is so bloated
look at that DOM isn't it clean as hell
GUHHHHHHHHhttps://github.com/unjs/unplugin/issues/47
ESBuild: https://esbuild.github.io/plugins/#resolve Rollup: https://rollupjs.org/guide/en/#thisresolve Rspack: wait PR web-infra-dev/rspack#2080
average recursive react useEffect
i dont even use anything from react, i was just scaffolding my site with simple jsx and tailwind
why is it infinitely loading though
okay i found the cause
for some reason when i put tooltip into a dialog trigger in baseui it leaks memory?!
@solemn ravine
become one yk
Discord is shitting themselves venbot will probably get them
wouldn't that make venbot less likely to get it 
@solemn ravine
@solemn ravine
vsb 1 scam
Done! 
softbanned @slim axle
samager
anthropic and openai infecting oss 😁
oh god this is horrid
just use a keyword
At least your documentation is up to date.
i guess i should keep "waiting for" zig
anyone know how to bypass the drm in microsoft vsc extensions that lock them to official vscode builds and make using 3rd party vsc forks impossible?
Which one in specific
the remote development over ssh extension
microsoft one
I thought vscodium had a reimplementation of it
@ornate quiver https://open-vsx.org/extension/jeanp413/open-remote-ssh
does it?
the most i see by default in vscodium is "open a remote window"
and the options menu is empty
guhh is there one on the official vsc extension store
i made vscodium use the official store
yeah and then updates wont work
I thought you said there was drm
there's drm in some of the microsoft extensions themselves
doesnt mean the rest dont work
+:hus
okay thanks i got it working
husl more like musl haha
LMFAO
ikr 🤣
😂
Die
On my way!
jsdoc c 🥀
hey everyone
what yall cooking today
i wonder what y'all definition of vibe coding? is it because of not understanding the code or you code that you've made something you self proclaimed that you coded but you just don't want to say that you use ai.
its vibecoded if you let the ai do everything and you dont touch it at all
if there is human intervention it depends
if you only use ai to write a couple lines or fix some errors its not vibecoding
but if its all ai written and you're the one to edit a few things here and there id still say its vibecoded
thats just my opinion though
it's vibecoding if @royal nymph made it or if you blindly let ai make code
i think it depends on how much effort you put into generating the code
elaborate
like if you already have the architecture planned and you type it out to the ai to generate it for you and review then its not really vibecoding
you already know what you want
ehhhh
its faster for ai to type it out for you since natural language is less verbose than code
i just iterate with cheap models nowadays, i hate having to type the same thing for the 100th time
(if i find myself fighting with the model more, i just end up doing it myself)
If an LLM wrote every line of your code, but you've reviewed, tested, and understood it all, that's not vibe coding in my book—that's using an LLM as a typing assistant.
jetbrain IDEs have this feature thats like a really tiny locally run llm to autocomplete the rest of the line you're typing
really advanced autocomplete that for some reason loves popping up right as im about to press tab for regular code completion and fills my code with broken slop <3
#need this in vscode
Whoever decided ai complete should use the same hotkey as lsp complete should be fired
make an amoeba whos only purpose is to write code slightly faster than you
i want that guy SHOT
that's a nice take
personally i just use ai if i have any questions then proceed to code it myself
HELL YEAH
ai is surprisingly decent for research
and to give answers so stupid that my rage figures it out for me
TRUE
turn ai complete off gang 🥀 😭 😫
I have it off most of the time but then there's something that it would be really nice for (eg: editing a bunch of lines at once where it can predict the next changes) so I turn it back on and then forget to turn it off
i installed nvim to larp during screenshot and couldn't exit it after, help
:qa!
you saved my life
add ! to :q force, but if you want to also save the file you need to do :w first
you can also :x to do :w and then :q
if you do :w first you wont need to :q! to quit, :q would work fine
:wq saves and quits too
:!pkill vim
do i risk ban using vencord?
this is the programming channel
oh
Ty
what
I feel like C would be so much better if types weren't just a suggestion
That looks unsound, that *blah = item; will drop an uninit
just one more c-like language and we'll replace c forever guys just one more just one m-
linux is literlay awesome, i would never experience such luxury on my window
my minceraft in window would hardly get consistent 60
yeah because you run minecraft in a computer, not in a window 🤣
😂 😂
i just got job in a fucking Vue field and ive never written a line in vue
Yes
well yeah but :x is more fun
amazin
translation be like
what's wrong
there's no better way to do that
anything unicode is always going to be insane code
Missing some leading zeroes otherwise true
67
LMAO
ass
theres a bunch of these where they could just do == but i suppose it doesnt matter since it's c so its gonna be optimized away by the compiler anyway
crazy how we are gonna call vscode users boomers soon
i will always continue using vscode
lol what kind of software is free for linux does brave just know linux users complain about things more
This has to be ragebait?
No real person would do this
a person who wants consistent formatting would
its probably autogenerated and they forgot to check if start = end
parsing the arse
Now that I look at it in context, voxxus theory seems likely
i saw lots of code like this in ai generated stuff
they just use the platform dependent int for codepoint
use uint32_t smh
does it matter tho
no one running ts on a 16 bit cpu
usually better just to be explicit about the number of bits because e.g. long is 32-bit on windows and 64-bit on linux
and nobody wants to write unsigned long long
honestly imo they should've gone with loong instead of long long
lng = 16
and there's also lOng which is bigint without bit limit
😭 imagine C having types which automatically do heap allocation
shrimply
#define loong long long

#defien looong __int128
i find it amusing how in my editor long still renders as a keyword even with more os
also #define us unsigned
@winged mantle
#define u8 int
#define u16 int
#define u32 int
#define u64 int
#define u128 int
#define i8 int
#define i16 int
#define i32 int
#define i64 int
#define i128 int
i am genuinely programming in civet rn
fixed
#define u8 int
#define u16 int
#define u32 int
#define u64 int
#define u128 int
#define i8 int
#define i16 int
#define i32 int
#define i64 int
#define i128 int
alrighty so question time.
im trying to make a wallpaperengine on mac, and they have heavy sandboxing for their main desktop background thing and their lockscreen background so im using a frame approach where it preloads a screenshot for each frame of the video and stores in ram then pulls it from ram to then show it which causes the black screen stutter thing. i know this is a bad method but its the only one i can think of, any ideas?
why does it look like an ipad
apple things
and why is ur shit in ggrandpa mode 😭
what does thta mean
ohh 😭
yes
i like it big
easier on the eyes
do not take that out of context
also i dont even think thats a bad approach lol
for anyone who wants to tinker around with it
https://github.com/686udjie/Wallah
yes the icon is Shoe0nHead
wallah 😭
wallah
i fell into the overengineered pit
apple uses HEIC/.mov for animated wallpapers, as they call it
but using avplayer +the frame approach (if it will work) will support all mac versions
(with the downside of using a lot of ram/battery
GUHHHH
at most i can js add a function that checks software version and if its old i can use the approach im using rn
ts so stupid i thought this can be done in a few hours
metadata (in the actual wallpaper file) is also an issue
avfoundation might be able to remux
yea well this is a TanStack project, why is it recommeneding me nextjs shit 😭
😭
this is like comparing kendrick lamar to femtanyl
is that AI or some linter
biome
hop on eslint
You might have enabled the nextjs lint rules
If you care there's also oxlint

yea i just copied the config from the nextjs project
All good mate
Cap
Embedded and 16-bit computing must be still supported
css is hard
@jade stone did JS ever tell u to drink cocoa
or smth? idk
but man, you know you're fucked when the browser throws an error
you google it
and there are 0 results
but man
apple users
are so milkable
the cash
imagine
cow therians exist because of that
civet has what tsrx only has now since quite some time
from "preact/hooks" import { useState }
from "preact" import { render }
Counter := () =>
[count, setCount] := useState 0
<p>Count: {count}</p>
<button onClick={() => setCount(count + 1)}>+</button>
render <Counter />, document.getElementById("app")!
maybe<T> ::= T?
can we not use rust
this is functional typescript, not rust
oh god
Message ::=
| "good"
| "bad"
this is funy enum
TSRX is a TypeScript language extension for building declarative UIs in an agentic era.
says the next.js user
i dropped nextjs
i dont want to touch that thing anymore
make websites manually using civet and preact
i use tanstack and spring boot
heck why not just
Counter := document.createElement "div"
Count := Counter.appendChild document.createElement "span"
||> .textContent = "0"
Counter.appendChild document.createElement "button"
||> .textContent = "+"
||> .addEventListener "click", () => Count.textContent = String Number(Count.textContent) + 1
document.getElementById("app")!.appendChild Counter
i dont need reactive state
bruh
you need to be lobotomized
why
The fuck is that abomination of a language
Scala ja hybrid?
disgusting
why
just use Effect
write code like a normal person
they are noway similar
even more disgusting
no i am writing code like people did with coffeescript in 2015
look ive got no idea how to use it, but i felt like if one knows how to use it, it can be pretty cool. its got a pretty steep learning curve (imo); whats wrong with it?
effect is only good if you do error handling. i dont catch my errors, i let them happen
I hate fp so personal bias
also forcing it into a non fp language is insane
just use proper fp
hey v
you're writing more less understandable code to achieve the same thing
hoi
i never asked but can i add your such a lit dev
i mean to me it looked pretty neat how you can get the nice "fluent" approach along with nice error handling when doing backend calls or something like that. do i just not do that, am i having skill issue or is there any other good library for this
multiline for loop without braces makes me uncomfortable
ew
https://lit.dev/ i hear
you can use braces if you want
the language is fully compatible with js
<mrow> is a cool name for a xml tag
https://www.qt.io/ what about the goat
from this picture i would guess qt is a car company
Insane. Why does everyone hate braces. One of the reasons I dislike python is because it doesn't use braces
i love braces, but i just like this syntax
How
Some of the design choices are insane
What do you mean Jsx doesn't need closing tags
i dont write jsx in this language
I'm not saying you do?
then why does it amtter
they have the penis opperator and a version with only one ball 🙁
this is shithubs fault
Lol
This looks like someone had fun writing a parser but then somewhy decided to market it as a language
nevermind
this is nothing like Haskell!!
/run ```js
<!-- this is already javascript
console.log("hi")
Here is your js(18.15.0) output @lucid forge
hi
if you use vscode, yes
what would cause my game when i use npm run dev to show rpc but when not using it, it wont show the stats
↩ (@NINtendo_maya)
@NINtendo_maya it's like the software version of not being able to find the clit
i love how this debate between tech illiterate users complaining about github usability is still going in 2026
It's like me when I started using Linux wondering where the installers for every package were
unc gotta chill bruh
(Auto-response invoked by @fierce pendant)
I unironically like Civet
It compiles to JS/TS in the end so it kind of acts like a fun language to me
(the pipelines is what sold it to me)
(the lang itself just feels like gayer scala to me)
/run ```js
const pipe = (a, ...fns) => fns.reduce((a, f) => f(a), a)
pipe(
{ foo: "bar", baz: 1 },
Object.entries,
e => e.filter(([, v]) => typeof v == "string"),
console.log,
)
Here is your js(18.15.0) output @lucid forge
[ [ 'foo', 'bar' ] ]
illegal
?remind 7h is this possible to type properly
Alright @jade stone, in 7 hours: is this possible to type properly
i think it is
doesnt even work lol
oh wait
i'm dum
i also was confused for a sec "wait why did it return both keys"
not really
there are no variadic types
not possible because each type needs to depend on the previous type
Recursive type
you need to write overloads manually
Wdym
type F<T, R> = (v: T) => R;
function pipe<T, R1>(initialValue: T, ...fns: [F<T, R1>]): R1;
function pipe<T, R1, R2>(initialValue: T, ...fns: [F<T, R1>, F<R1, R2>]): R2;
function pipe<T, R1, R2, R3>(initialValue: T, ...fns: [F<T, R1>, F<R1, R2>, F<R2, R3>]): R3;
// ...
Yeah that's what I want to avoid
there are no variadic generics so you can't do this in a way that doesn't require manual overloads
surely if you do like 7 of them u wont need more
I'm still going to try when I wake up
at least I can't think of any possible way
if u do it with smth like
pipeline(value)
.pipe(x => x)
.pipe(x => x)
.pipe(x => x)
.pipe(x => x)
.result()
thats easy
but not without some form of curry

Recursive type, keep track of the current input, if only one left, return output else recurse with new output
Type check as you go and return never if it fails
Bad errors tho
Idk how to get around that
I've written various recursive types but I really don't think this is possible
Getting the return type after all operations is possible but I don't think showing you the right type in each function you pass is possible
Yeah I think that would need generated overloads
if u write it like this u can type it pretty easily
function pipeline(value) {
return function(transform) {
return arguments.length ? pipeline(transform(value)) : value;
}
}
pipeline({ foo: "bar", baz: 1 })
(Object.entries)
(e => e.filter(([, v]) => typeof v == "string"))
(console.log)
()
u also make it look like lisp
peak
God my formatter would mangle that so badly
We just need tsserver support for the pipeline operator
we have pipeline operator at home ```js
const pipeline = v => Object.assign(() => v, {"|":(t)=>pipeline(t(v))});
pipeline({ foo: "bar", baz: 1 })
["|"] (Object.entries)
["|"] (e => e.filter(([, v]) => typeof v == "string"))
["|"] (console.log)
()
@royal nymph have you seen c++ pipe operator
/run ```js
(async () => {
await Promise.resolve({ foo: "bar", baz: 1 })
.then(Object.entries)
.then(e => e.filter(([, v]) => typeof v == "string"))
.then(console.log)
})()
Here is your js(18.15.0) output @lucid forge
[ [ 'foo', 'bar' ] ]
u just reinvented .then chaining @royal nymph
foo bar 😱
Me when each chain adds a task to the event loop
the more u yield the better
my beloved kotlin Function22
i managed to find a bug in firefox while just trying to make it so you can enter tab characters
https://julienraptor01.ddns.net/Tab is the way.html
also am i not a fire web designer
@jade stone, <t:1777876832:R>: is this possible to type properly
chat what should i do
super cool
not necessarily a bug, I mean trapping tab is something you have to implement yourself right? (and isn't necessarily encouraged?)
(IDK just going off my vague memory of codemirror)
hmm i wonder if codemirror has a workaround
i think what they do is just stop trapping tab when escape has been pressed rather than unfocusing the elemnt
no no, try it on chromium and firefox and you can see the bug
on chromium which act like you expect, if you use blur then tab it goes to the next element
on firefox it refocus
even if you don't trap tab
this makes it clearer
https://julienraptor01.ddns.net/Firefox Bug.html
just see the difference when you press escape to unfocus and press tab vs just tabbing
I see this, but is the browser obligated to have chrome's behaviour by the standard? (don't really know, that's why I am asking)
well i don't know so :
guys can someone tell me how this goes on safari
does it do the same behavior when you keep pressing tab and when you alternate tab and escape like chromium or does it do weird shit like firefox ?
also the chromium behavior is what i would actually expect and it's consistent while the firefox one is all over the place actually
like some of the stuff refocus on itself, some refocus on earlier, it's really weird and unexpected
firefox does not refocus on non-text fields
love
another day another....
sometimes i wonder how nobody else has ran into this
do people really not use css modules via namespace imports
import * as styles from "./styles.module.css";
| and ranges?
yes
I use import styles from "module.css"
hop off * import
they're quite good
i would prefer
template <std::number T>
T multiply_and_sum(std::span<T> const values)
{
auto mulitply = [](T const& x) -> T { return x * 2; };
auto multiplied = values | std::ranges::transform(multiply);
return std::ranges::fold_left(multiplied, T{0], std::plus<T>{});
}
over std::accumulate
you love no tree-shaking, inlining or bundler warnings
tree shaking
don't have unused classes
inlining
sure but who cares
bundler warnings
?
if you use a namespace import, your bundler should warn you if you're referencing a undefined class
@royal nymph 
why not do this via type system
i use import './styles.css'
miss me with that gay shit
wdym
type error
wow actually good interrupt controls
sup
@lyric latch found insane bug with tanstack router
this code errors only when building for rsbuild
export function cast<T>(value: any): T {
return <T>value;
}
it doesnt bother with the extension of the file and always parses as JSX only for rsbuild
this came from code i was vendoring
they minified it so i couldn't use pnpm patch
guhhh
ofc the same people who use that horrid cast syntax also minify their library

microslop
theme.ts: Line 510
const emptyParentScopes= Object.freeze(<ScopeName[]>[]);
love
THATS WHAT YOU GET FOR USING RUST ON WEBAPP
fixed already 
@royal nymph love? https://rsbuild.rs/guide/styling/css-modules#type-generation
just found out that it exists
i see no problem with that
its 4AM so answer may take some time
never ending
@supple whale who needs three bugs when you could have 4
curl is preventing you from finding this bug
Whar
[BUG] Stinky Satan
Can you also fix nextjs
Like remove vercel
And all bloat
simple
stop using dogwater software
sveltekit would never
[except for workers emitted via service workers, but it was an easy fix]
just a post-build hook to list worker urls myself kekw
0: content-type

Javascript has uses
Huh, really?
These are the valid use of JS
Js should be a minimal Web scripting language, it can save values, import some json into a table or make some something change based on simple state
That's what it was made for
That's what it's great at
that was what it was made it for
why are there 3 runtimes and 70 billion libraries and frameworks
Ive tried to use next.js like three times. Each time I give up because of how terrible the build system is and how bad the docs are.
okay socialist
because stupid people tought i don't wanna learn anymore let's use this everywhere
there should be a single runtime for JS and it should be the browser






