#πͺ -progaming
1 messages Β· Page 132 of 1
@solid gazelle one day your day of reckoning will arrive and you should not be surprised at the occasion as you are aware of your devious sins
oh-
yes!!!! i used to use maple mono but imo this font is nicer to read text with
lmao
at least to read code with
excellent! I work in accessibility but don't have dyslexia myself, so very much apprecieate the response β will be helpful to suggest to people
i thought i should make it clear that i am not clinically dyslexic, it is just easier to read code in my opinion having used both fonts for several months now
also I love this:
I just tried to hand edit dotnet il to get something to work properly in wine
this did not go to plan
(I was just trying to remove a line)
oh, managed to do it with dnSpy's recompilation feature
oh my goodness gracious you dont know the atan lore
atan(v) was the original function, but for quadrants they wanted to make one that takes in x and y individually, since you would usually do atan(y / x), so they made atan2, but to make refactoring easy, they make it take in the args in reverse order, as in atan2(y, x). people always get confused on this so as a joke i made atan3, which basicaly does atan3(x, y) = atan2(y, x). i thought it would be really funny to make atan4 take in a direction so you can do both with a single function, and then i came up with the most cursed possible way to achieve that
like the c working group idk
imagine people working on enterprise elle code not finding this joke funny
whoever is in charge of the c standard library specification
John C
c standard committee
yeah that
no it's John C
the c standard librarians
@valid jetty # ulgy
isnt it wonderful
rosie will never add explicit return types
i would rather #cast than cast
no one would know what this method returns without prior knowledge of the stdlib
__internal_builtin_elle_cast_this_variable_to_another_type(f32, x)
seriously though can't you just make it β¨β¨as i64 *β©β©
or (i64 *)
or github
parsing ambiguities
parsing ambiguities
it's very bad for readability
how
true i guess
honestly doesnβt #cast<T>(x) make more sense
no one can infer the type without knowing the stslib or using an editor
yes
# is for compiler builtins
a
Think that's for macros or something
Or for shouting real loud yeah
Elle is twitter lang
weve talked about this before
minklang will be Elle with oop and better syntax
i@valid jetty @valid jetty
what if
minklang and Elle interop
@young flicker go play with your abacus
if you can figure out how to do that sure
your abacus
the majority of languages do just fine without this
yes but it now doesnt pollute the namespace for other bindings
in clang/gcc compiler builtins are __builtin_name
which is stupid
would you rather #cast(T, x) or __builtin_cast(T, x)
I'd rather #cast(x, T) if anything
we should all use β¨m4β© on our c files
I'd rather have no "the" namespace
ignore the fact that m4 is for asm and c has its own preprocessor
i polled this a while ago and #cast(T, x) won over #cast(x, T) π
i love m4 its like lost media
cast is common enough that it makes most sense as a keyword to me
yop
We all know what the best macro processor is ||tex||
as opposed to a member of a special builtin namespace
@deep mulch
not enough votes imo
well since casting is a builtin it would be weird if it was the only one without a #
Why is it a function anyway
its. not
Except first arg is a type instead of a value which is cursed
also in c plenty of things are built into the language without being prefixed with β¨__builtin_β© aren't those just compiler specific
well sizeof... OK now I think about it i can't think of anything else
its a builtin, it can take anything
#size takes an expr or type
In c sizeof isn't a function at all, it's an operator
x as T
Just everyone always uses it with parens
indeed
i only use them for types (where you need them) 
I might be strange
my argument might not have been very well constructed when I used the phrase "things"
plenty of things certainly are built into the language
in any case i think its useful to have a generalized, unambiguous-to-parse way of using builtins
they all follow the same format
I guess I find it hard to identify what counts as your criteria of being a builtin is
I mean β¨ifβ© is another built in thing which applies to an expression
seems like an implementation detail leaking to the user of the language
whatever there are no jobs in elle anyway
I'll use zig instead
yeah lemme go write 1 million lines of code
made with elle and raylib btw !!!!
I made something which converted C arithmetic expressions (only with integers) to the most innefficient x86 assembly

i think it used push a ton
even just for constants
you can do it probably
you're an ai after all
I then discovered QBE just determines the result at compile time
compiler backends are magic
what if somebody made a gamemaker language runtime that runs without the rest of the engine
and then raylib bindings
wait i think gamemaker does allow plugins
@valid jetty is the worlds smartest person
so maybe you could make a plugin that allows using raylib
but then you would have multiple windows which is bad
just wondering because gml is the best language ever created but raylib is the best game engine
@winged mantle loves unity
unity ishorrible
unironically i am torn between gamemaker and godot and idk if i'm weird for that
godot seems kind of difficult to use 
also gdscript seems limited
C# feels too oop (you can't just have a function somewhere)
python (/j)
at first i thought i liked C# but i might even prefer to write kotlin
electron? (/j don't do this please)
a game in electron feels like the dumbest thing
yeah
surely you could just have a headless js runtime with a canvas compatibility layer
no stop
which renders to a native window
better than electron
don't use electron either
it's like what tsoding was trying to make
hate2d
like love2d but with javascript
flutter
imagine if there was a framework based on an actionscript like language using a port of flash apis with backends such as web and x11
HaxeFlixel is a 2D Game Engine that lets you create cross-platform games easier with free, open source technology!
wth
presumably supports windows too
launched as an x11 app on my machine though
said language is also designed to transpile into other languages
like javascript
letting it run on web without wasm
on an entirely unrelated note, how does one get the fun language roles?
are you a member of anti vencord aktion
no
one even exists?
ah that makes sense
@lyric latch @supple whale you love tailwind
isnt that just also tailwind
but different
you can do that in tailwind too
you can make custom rules in both js and css iirc
what are those attributes
i use tailwind for the final styles
and scss for styles on components that will be reused
yeah, but scss still has some nice things
my site is 15mb across all routes, but i have a lot of heavy deps
the main page loads 223kb over network, 630kb decompressed
huge
saladdd
saladd make me a blog with svelte
or astro
2 copies of typescript, handful of textmate grammars and themes, monaco editor, regex engine (wasm), demangler (wasm)
That's most of it
true
true
hallo #π§©-plugin-development is read only so imma ask here
is there a way to do an http request without actually using fetch?
I wanna fetch some data from a website that doesn't have CORS headers
i mean yes this won't work for browser vencord but I wasn't planning to use it on the browser version anyways
Native.ts, also #π-info
Other plugins do native fetches for cors
Thanks, also I don't think they'll approve if I ask for plugin dev roleπ₯Ί
All I'm planning to do is make an unofficial plugin that will automatically do quests for me
Now that I think about it, I don't think that even requires native fetch holy moly
That's already a thing lol
Check out aamiaas script and questify from equicord
Yeah, what I thought was I would fetch the latest script from the gist and then eval the script
Because a bunch of my friends have zero knowledge of webdev and it's kinda annoying having to tell them what to do every single time
I'll take a look at questify
oh you fixed that?
it broke?
some broken patch idk
true
i'll check again tomorrow
Vencord WebpackPatcher Patch by QuestCompleter had no effect (Module id is 409389): /className:\i.headingControls,children:[/
okay i fixed @patent vortex
that is exactly what I needed thanks!!!
anyone here know how vencord fetches updates and applies them?
does it check the github repo for newer commits than what the client is on?
and then it just builds off of the latest available commit or does it work differently than that
Something like that
Just read the source
@deep mulch help my tests take five years to run
run them concurrently
all at once
simply
they are 
28s for tests isnt bad
or split the long tests into sub tests
or write good code :))))
XD
this project is very small, the issue is that it takes a bit to parse 850k lines of js
rewrite in Rust
so it's blazingly fast
@jade stone
purchase
okay
concurrently wouldnt help me, this is cpu-bound. Vitest does not support parallel tests, only test files
wow the lights make a big difference
rosie discovered the electric light bulb
I'm not even gonna ask
anything salad does is fucking insane
at some point you just stop questioning his work and start questioning where it all went wrong
ZSH SCRIPT
cygwin
how come this swift code looks like zig
it is zig lmao
my theme just makes it look that way probably
@supple whale i think i've reached peak insanity
couldn't get vite to minify ssr output, so ran rspack over the generated vite output
we love vite
insane
press don't save
saves
what did they mean by this
that freeze isn't the video, thats zed being very fast
idk i tried zed but nothing can beat vs code
i tried it in a very early stage before windows was even officially supported tho so
i think zed could get there, but it would take a few years at the very least
vscode is very polished, ive never found a bug nearly as bad as this
I just use nano
lately though I've had to use windows so I'm using textedit which isn't as nice as nano
sadan doesnt know how to remove input from obs
@deep mulch I'm using roll-up now
@jade stone saladd
no just use bun and nextjs
Least obvious rage bait
yall just not ready for Bun
Guys i need to generate mock data for my database, theres like 12 tables each referencing each other with some relationship. any ideas how to "duplicate" these entries and generate like 100 of them?
do you not have a seed script to populate the db with test data?
No
I have tried using Bun for this for my nextjs project but ot seems like bun cant do that
well maybe look into that
if you're using an ORM they might have documented support for standalone seeding
what do you mean by ssr output? the server side code or the html sent to the client?
i assume the former because rspack can't minify html, can it?
INSANE
get a better pc
but at the same time you should just kill sadan.zip and rewrite
teach salad how to remove input sources from obs
@royal nymph
GNU tag
gang do I /ignore them?
wha?
yop
he doesn't know
FAKE OBS
rms
Depends
I agree honestly
depends on what though?
nvm that question was answered
i thought he was holding a Wii
how
make venbot auto mute satan videos @royal nymph
i did
but i disabled it
what does that mean and how do I do that?
dw about it
Apparently rms on new year π£
Didnt though he changed that much
enable
that pic is ancient
he looks way older now
he looks like a samurai now
like actually
uh oh...
Server side code
:clueless:
Cf workers has a limit of 3mb for code after gzip compression
how is ur code >3mb π
what the bloat
is that the thing where u bundle typescript etc
Well, be default vites SSR output doesn't do any minification you have full variable names, etc...
3mb after gzip
yeah for better stacktraces
minifying on server is pointless
yeah but u need so much code to get 3mb π
Vencord source is 1.5mb with inline sourcemaps and it's 50k lines of code
so you need to have like 100k lines of code to get to 3mb, and like 200k if you don't use inline maps
?
I don't think so
The SSR bundle is a lot smaller than the client bundle
15
poor pakistani child loading your website on a 3G connection waiting 50 seconds for it to load
Nop
All main pages have ssr
Plus most only actually load 200kb or smth
how does that change the fact that it's 15mb
Most of the chunks aren't used by the main page
You mean like for the API? Or in the editor
for ur project where u use it to parse stuff or whatever
Haven't really but I don't think it will be worth it
I'm only doing parsing, not type checking
Typescript parser has always been very fast in js
I don't think the ffi overhead will be worth it
i dont think there's much overhead in nodejs if any at all
Also I don't think they have a wasm output so it's a non-starter anyway lol
it's pretty trivial to compile go to wasm iirc
but yeah from my experience there's quite an overhead from copying data to wasm
bloatt
I tried loading SWC wasm into Discord and using it to parse Discord code but it was terribly slow
salad loves bloat
Also I feel like using wasm would make the bundle size balloon
Salad adding thousands of deps
Not sure tho
@jade stone
That's like the worst option
which I assume was due to copying large string to wasm and large json back
Have you heard of acorn
One of my python projects is like 64698 lines (56197 actual lines of code) and is 5 megabytes total lol

How long are those lines
average python line is 300 characters tbf
well
3.5MB unminified
663kb minified (not compressed)
240kb gzipped
196kb brotlid
satan loves brotli
brotli makes me hungry because brot is german for bread so brotli is like breadly
oh it literally is bread (roll)
While Google's zopfli implementation of the deflate compression algorithm is named after ZΓΆpfli, the Swiss German word for a snack-sized braided buttery bread, brotli is named after BrΓΆtli, the Swiss German word for a bread roll.[3]
Nop
the brotli authors have funny names
Might move to rspack because it has so much better minification
nvm its 2.8 mb
half is real code, other half is pycache
Yop but I think it's funny to try and get my output as small as possible given the insanity of what I'm bundling
see how small the difference is between completely unminified and minified considering the input is 2.5x as big
if u have a minor minification difference of maybe 50kb, the brotli difference will be tiny
50kb is already very generous
I assume the diff will be more like 10kb at most
so brotli difference maybe 2kb
Guhhhhh
Zed extension api so bad
It's useless
All you can really do is give an LSP server to load
Nop
Can't even close a file
I use zed for large files because it has a bit better UI than kate
So auto save would lag zed so much
Tbh vscode extension api isn't great either
Jetbrains extension api is really good

u love java
hop on webstorm
idk how people use webstorm it's slow and clunky
Me when it takes five minutes to open my editor
the people who complain about vscode being slow (it's really not) would love webstorm
yeah lmao it's so slow
i really don't get why jetbrains ides are so slow
how is ur jvm app so much slower than electronware
Does more
i guess? but doesn't it just use the ts lsp like vscode
i get it with java, gradle is a chonky boy
but not with typescript
does jb have their own ts lsp
No
They use tsserver
(iirc, could be wrong)
salad has PC from 2006
webstorm loads fast for me
it's idea that's slow especially with new projects
has to index and download dependencies
HOP OFF WEBSTORM
zt uses webstorm then wonders why he hates web dev
I dont use webstorm
vscode more annoying web dev
I love opening it and 400 extensions load up
dont install 400 extensions easy
good, my son
Nop
Soon
i will send u my 6700xt
67
familiarity
it is a bit slower but it works completely fine
How does one get familiar with it in the first place
by using other jetbrains IDEs
dooo
my card is 6 years old @royal nymph
it's older than fres
My gpu is 14 years old π£
turns out i was accidently bundling typescript, i removed it from the ssr bundle and it went from 6mb /1.7mb gzip to 3.5mb/800k gzip
classic sadan behavior
jassub sitting at 4k weekly downloads

is a server copier plugin possible
what specifically do you mean by copy
Its called Templates
like i want a plugin that basically copies servers even if i dont own the server like channels and stuff
thats not what a template is
okay what specifically do you mean by copy
what do you mean i mean like copy the channels and stuff
Theyre certainly are
Just ask admin for a template link
i explained
like you just want to create channels with the same name, you want roles and permissions to be the same, you want everybody to be invited...
no every admin gonna do that
i dont care about anyone being invited is it possible to a pluggin to copy a server i dont own by coppying the channels and possible the roles and permitions
I'm not sure about plugins specifically, but it would certainly be possible to create a script of some kind that makes channels with the same name
roles and perms would be harder because you can't see all of them if you don't have perms anyway
ik thats why im asking if its possible
No you dont lol
Theyre still returned in the API
All of roles are visible in the api
thanks becuase i was wondering and i didnt want to get a virus from a fake pluggin
true but are the associated perms?
Same thing
wait what plugin are you talking about?
yea i realised sorry i'm dumb ignore
you're not dumb
one like this https://www.youtube.com/watch?v=ZBoh6mlGA5M
Plugin: https://github.com/BlockTol/Discord-Server-Cloner
Vencord Download Tutorial: https://youtu.be/XmVNRKrphlw?si=INv-_2PIGud871_Q
Discord Server: https://discord.gg/9ra6MwHTHy
Discord, Vencord, server cloning, server backup, Discord plugins, Discord mods, Discord bots, Discord communities, Discord servers, server copy, Vencord features,...
i mean you can read the code, it's there
ik that but idk what the python part is
nvm powershell
I skimmed the code and I didn't see anything off
thats what i was thinking but the vid just felt of including his others yk
so i was just being safe
fair
did very much feel off
personally I wouldn't update without checking the repo again, but right now it looks totally legit
does vencord really have 215 roles
donors
you love donor roles
yesnt
I LOVE SLOP
When the channel also has that, i wouldn't trust it to not eat your token
https://youtu.be/kamhyCvhylw
discord link: https://discord.gg/jcqfTmBX2x
This video is for educational purposes only. The content shown is intended to provide knowledge and awareness, and it is not meant to promote, endorse, or encourage any illegal or harmful activities. Please respect all laws and regulations, and use this information responsibly. We do not support the ...
I mean it looks fine now though
(definately don't update though β roughly the first half of the code is dedicated to checking for updates and prompting you)
I mean idk i didn't read the code
There's enough red flags for me not check the code at all
day 1300 of AI not understanding flexbox and grid
div padding 20
div margin 10
TIL tuples can have optional members
type MyTuple = [foo: number, bar?: string];
declare function doThing(param: MyTuple): void;
doThing([1]); // valid
doThing([1, undefined]); // valid
doThing([1, "myString"]); // valid
congratulations, you just invented array
because thats not a tuple thats a const array
@valid jetty hiii
hiii
this is kinda useful if you want to represent alternative function signatures without using overloads
cuz u can then do something like ```ts
function asdf<T>(...args: T extends something ? [first: number, second?: number] : [value?: string]) {}
have you ran this in Bun environment though for blazingly fast performance?
can we ban this individual
bun trully is the firefox of js runtimes
ok but can your deno compile typescript to a .exe
that sounds like the epitome of performance
yes....
it could before bun existed iirc
oh
hmm yes good idea maybe i should open a second PR
oh it just lets me open another PR
yea thats why i said there vids seem sketchy
Big thing for Vencor
https://github.blog/changelog/2026-02-05-pinned-comments-on-github-issues/
feature will be useless bc no one reads
lmao
Bros image is corrupted
this might be amazing
Oh yes forgor that
microsoft wins yet again
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:
Please contact your system administrator.
Add correct host key in C:\Users\nexpid/.ssh/known_hosts to get rid of this message.
Offending RSA key in C:\Users\nexpid/.ssh/known_hosts:1
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
love
oh sorry
stop eavesdropping
are you saying you love this or calling borb your love?
How
MASSIVE
malware
salad bloat
earn free Discord nitro right now now now
oh they pivoted https://salad.com/
lame
ugly ass cat wow
love
how do iii make the elements draggable
i once saw a project that advertised "crypto" as one of its features, and for the details on that they said 'our code is tracked with cryptographically secure hashing mechanisms and stored on the blobchain'
Github but it uses a blockchain to store everyones repos
you have to implement drag and drop urself
if you want the easier route just use arrow buttons to move up/down one at a time
doesnt discord use react dnd
smile
@lyric latch you mentioned you made m3 in solid, right
how did you end up doing the slider
when i did the m3 slider a while ago it just ended up being really cursed
oh i already wrote it a while ago
@jade stone
cursed css if anyway wants to have a look
salad will be banned from writing code
everyone writes bad css, theres no other way to write css 
oh no that css isn't even that bad for css I mean all of your other bs
π
this is also bad css 
you're proving his point!!
what is bad about that?
could at least use nesting
- hardcoded colours instead of using variables
nav *doesn't do what you mean to do, you want at leastnav > *chisn't really a great unit to use*:not(figure)the * is redundant
fair
css has so many funny units
TIL Hz and kHz are in css
nothing, its in the spec tho?
of course we also have Q for quarter millimeters
finally, did you know px is 1/96 of 1 inch?
pc and pt are 1/6 and 1/72
i did actually
animations probably
i just use matcha.css or daisyui
i dont get yall
why is that just the songspotlight logo
soah
paige sharing coolest thing ever but no link
horrifying
wing would charge $500 to do that
we need to put wing out of business
oh i forgot
woah I love
you were trying to scam paige
showw gif
paige you're so smart and cool
wing you're evil
wing be like: give me $5000
I should unsponsor wing he's taken like $200 from me at least
a wavelength is a measure of length ππππππ
youβre looking for frequency
color: wavelength(3inches)
insane
that's only 3 ghz
light is in terahertz
like 483 THz for red light
die koda die
write by hand
Don't forget amplitude and excitation or whatever it's called in English
haxe is a good language
Yeah but what about the thing corresponding to saturation
so ive got this PDF or XLSX worksheet, which i need to fill data with, and then convert to PDF. how should i effectively approach this in typescript? currently, i have this flow: fill data using exceljs -> convert to pdf using libreoffice-convert, but this takes 6s to process a single one
I mean, how many do you have where six seconds will be a major issue
250
BUT
i have discovered a fix
in the meantime
i can just convert it to PDF one time and use pdf input fields and fill them with pdf-lib
didnt know libreoffice supported these
I mean you could probably just eat the second cost and multi-thread it or something
asincjrobous
Why does youtube keep telling me to learn haskell...
https://youtu.be/gK0hMxJhqwM
Hope you liked the video! This took a while to make (mostly bc of uni stuff getting in the way).
In this video, I will be going over the basics of Haskell syntax. Haskell is syntactically very different from other languages, so this video should clear up a lot of confusion around Haskell code. I won't assume you understand everything covered i...
Because Haskell is intriguing.
i like that
oh lol i had to do exactly this but in like web
very awesome
i do it on server so i can cache it, altough pdf-lib supports browser as well, so ondemand would work too - not sure about its efficiency
watch some 9-5 mfr try to export 200+ PDFs and you OOM
XD
that will hopefully not happen 
would you say its better to do it on client?
100% better do it it on the client, but you defo shouldnt be doing all in memory on a single block
zip is a streamable format
yea but you need to generate the contents of the zip
yeah, then cache them in OPFS/IDB
preferably OPFS because then u can have file references to zip, rather than raw memory
and u could do shit like zip-go stream it to a fsa handle
so do i just scrap the worker approach, send the data required to generate the json and generate it purely on client
whats opfs
origin private file system
the thing is the cache can be invalidated on server
idk if opfs is a client or server thing
client
yea so i couldnt really cache it on client
The origin private file system (OPFS) is a storage endpoint provided as part of the File System API, which is private to the origin of the page and not visible to the user like the regular file system. It provides access to a special kind of file that is highly optimized for performance and offers in-place write access to its content.
wait let my try to generate all 200 applications

my system runs on 30gb of free memory rn
lets see
doesnt matter
browers have their own memory limit per page
which is anywhere between 400MB to 4GB
it depends on a lot of factors
i see
i will be doing edits to the generation system anyways
so plenty of time to rethink this
doing it on server didnt even take much time
only about 5 seconds
and my memory wasnt even touched
atleast task manager didnt show that
hey
π΄
jarred summer should get a nobel prize
@pearl parrot how did you get that?
nobel peace prize
can we ban you again
Jarred summer should be imprisoned
should be a crime to make such garbage software
look how fast nextjs is! blazingly fast
Rewrite oxfmt in Zig. Make no mistakes.
true
did the whole ai conversations get deleted or am in just in the completely wrong chat?
you were in #π¨-theme-development during that
Imagine discord users not getting side tracked
lmao
i pushed the branch but basically skip is having issues
might make an issue on their repo
one problem is OptionSet cant be bridged
today was a normal day like any other, I have decided to finally deploy my web application to the school server, yet my sysadmin told me I cant use Bun because "its not mature yet". I have tried to overargue him, but to no success. any ideas what to do? We dont use docker either :p
based sysadmin
Ai slop?
which is crazy considering its an actual drop-in replacement for nodejs
unlike bun, which promises that, but lies
and you end up with "firefox type fixes" in libraries just so they run on bun
i mean its biggest thing is the rust bindings vs the C bindings
and the TS ""support""
other than that its just fancier nodejs
that said its webgpu support is kinda goated with the sauce
well there's no deno for android i guess
thats the big diff between it and nodejs
testin smt dw
if only there was a channel to use bot commands and test shit in
mb π
They said that docker isnt production ready and we will stick to lxc
multiple people tried to convince him
LOVE
My teacher said its impossible because he can talk to you in monologue on why ur statement is wrong for literally 1.5hr 
yay or nay for this?
i like it
i decided its overkill af and removed it XD
anilist
nah i meant the card transitions
?????????
π
f# may be a good programming language
seriously
bruh
welp re-introduced the animations
in real-world its not actually ever that big, and actually looks nice in most cases
glad to hear that
like when this happens
iz nice
i have a feeling that with this UI i could convince people that this isnt electron/web
the app looks real nice
i'd need to change the scrolling tho, the scroll animation is still very much "web"
but i tried making my own smooth scrolling many times and it was never good
always some compromise
chrome had its own impulse scrolling, but then they removed it for some reason......
even tho it was great
contain and intrisic height will do 60% of the work
with almost 0 effort
[content-visibility:auto] [contain-intrinsic-size:auto_152px_auto_290.4px]
and contain-strict
in parent
The CSS content-visibility property enables web content rendering performance benefits by skipping rendering of off-screen content. This article shows you how to use this new CSS property for faster initial load times, using the auto keyword. You will also learn about the CSS Containment Spec and other values for content-visibility that give you...
LEARN
LEARN NIBBA LEARN
never heard of that lol
it will greatly improve render times
but it wont unfuck react's bad managment of component lists
i use it a lot in my discord custom css to try to unfuck perf a lil
[doesnt help much, react is ass]
svelte would never ^^
<script lang='ts'>
const modules = Array.from({ length: 28175 }, (_, i) => i)
let selectedModule = 0
</script>
<div style='width: 100vw; height: 100vh; overflow: auto; contain: strict'>
{#each modules as module (module)}
<div style='width: 100%; height: 20px; border-bottom: 1px solid #eee; contain-intrinsic-height: 20px;' style:color={module === selectedModule ? 'red' : 'black'} on:click={() => { selectedModule = module }}>
Module {module}
</div>
{/each}
</div>
thats with me spamming click and scrolling around the list
most of the lag is from devtools tho
we love react
solve bad code with more code
:)))))
?remind 3d replace unloaded elements with an empty div so the scrollbar actually means something
Alright @jade stone, in 3 days: replace unloaded elements with an empty div so the scrollbar actually means something
sveltekit salesman will keep trying

OH LMAO I FORGOT CONTENT VISIBLITY ON MINE XDDDD
but yeah this is why you need to define intrinsic height
so that the browser knows what the "not rendered/processed" elements should be sized as
in your case you'd probably add margin on the top and bottom with the number of els hidden * height
or you know
you could just use 2 lines of css and a functional UI framework
eh?
eh???
:DDD

I can't wait until we all add this to our themes and then discord adds it to discord and all our themes break
again, this doesnt work in react
because react is shite
so discord uses virtual scrollers
which is why u cant really style the channel and user lists
because they stop rendering
so this is already a problem for discord themes

imagine not having a lint rule for that
smh my head
:)))))))))))))))))))
impossible
you do get a console warning tho
wait nevermind
it's a thing
just don't have the plugin installed
i wasn't π
I SAID SMH MY HEAD
I once found a video with this same song, it was basically the same as this video but I can't find it anymore no matter what so I made my own version.
2025 note: My apologies for not doing this earlier, turns out the original video was out there, made by Laurennnx2tiu, here's the OG:
https://www.youtube.com/watch?v=YJX7RBGVur4
Special thanks t...
tf2 my beloved
rust my beloved
this is my teammate i played most of the time with
i've got the least hours of my entire 5 man team
yeah, we gamed hard
smh last played aug 31st 2025? wheres the 9-5 every week wipe grind... /s
I thought rust is faster than this... Yet you spent this much time compiling
||/s||
Iβm on mobile
there's so many things wrong here
null
[object Object]
No swearing in this christian minecraft server
I object
null
((void*)0)
we are [object Object]
isn't the literal 0 implicitly convertable to a pointer
This reminds me of smth...
https://fxtwitter.com/henrikkniberg/status/2021203016679059847
join the phase servers
DONT
Update: this technique no longer works since name reflection was removed in later versions of Java. Here is another approach. Another use of lambda parameter reflection could be to write html inline in Java. It allows us to create builders like this, in Java, where weβd previously have to use a language like Kotlin and... Read more Β»
hi i made a plugin for the Frosted Glass theme that makes the background what you are playing on spotify where could i put that?
death of electron
i don't think this will happen unfortunately
or just use kotlin
sorry if this is the wrong channel to ask this in, but does anyone know if this works
idk if it's been fixed yet or wtv
nvm it has
guys I'm actually getting my friends to move to matrix
it's a miracle
prase be to the fsm and his noodly apendages
lmao tcc happily compiles *NULL = (void)0;
you just need to cast it to void otherwise the type doesn't match i guess
Do you mean void* not void?
no I mean void
I didn't know you could cast to void
you can
usually it's to ignore a [[nodiscard]] function's result (the cpp core guidelines prefer using std::ignore =) or unused variable (in cpp you can use [[maybe_unused]] obvs)
somehow tcc allows assigning it to a void *
turns out this is legal in C++ but not C
void test() {
return (void)0;
}
ok actual question: at what point does it makes sense to use typescript instead of javascript?
beginner at programming in general or js specifically
(I was under the impression that ts is just js with types)
but also if you're just writing a short script js makes sense because you don't need to compile
like my bookmarklets (archive) are straight js because they're literally just bookmarklets
will look into this
Use typescript for anything over 50 lines
I made a very significant part of the largest script in entirely one line before properly structuring it lmao
it was like 2KB
in notepad
this sort of stuff i find very interesting
modern languages are not so ...interesting
what the odin is that
Use typescript if you have to do anything with types in my opinion
if you have to ever write a comment like "this is what the object should look like" then you should be using typescript
same
if you have to ever write a comment like "this is what the object should look like" then you should be using typescript
that's a very good line
does that include jsdoc in your opinion?
Unless it's an already developed codebase and you're just adding jsdoc on top, I'd say so
typescript has replaced jsdoc in my eyes unless you really need to directly run the code without transpiling
what are your thoughts on jsdoc in ts?
like I'm coming from a javadoc perspective where the point is really to generate documentation, not to say "this is what the types should be guys"
https://typedoc.org/ you can use typedoc instead
Documentation for TypeDoc
It's basically jsdoc but with less repetition because it can take in info from the typescript types as well
gdscript bad I tried to do ++ and it just made the integer positive twice
actually no unary + just does nothing on an integer
why can't you do |i| in most programming languages :D
just make it whitespace significant
we have to ban sadan

Love 
why
that's what the lock file is for
but that repo hasn't been worked on in so long that the pnpm lock file became incompatible with the pnpm version cloudflare uses so it got ignored
Just use core pack, cloudflare uses the version defined in the packageManager field
corepack evil
Nop
It's needed because pnpm loves backwards incompatible changes across minor versions
corepack is so good
i hate that nodejs committe removed it from new nodejs
so fucking stupid
finally had a builtin way to manage different package managers
I never got why they did that
microsoft will introduce Microsoft Package Manager, which will combine the power of npm and nuget into one using Copilot AI π₯ /j
@lyric latch what do you think about moving my app from nextjs to kotler w/spring
I like the idea of data classes for entities, really love how it basically replaces lombok
- im already familiar with spring, just need to rewrite it. Not sure how can ktor handle mvc and stuff like that
Will take a look at it tho
spring isn't really used with kotlin
ktor replaces it
What about jpa?
never heard of it
Exposed my beloved
Only downside of Exposed is that it technically isn't async so I usually set up a threadpool worker with completablefuture
anything away from nextjs is gonna be good
Well yea im moving my midsize project to kotlin, because it's a bunch of mess in typescript
why would spring fix it 
isn't spring kind of overengineered
guhh
or maybe that's the wrong word... idk it's weird





