#πͺ -progaming
1 messages Β· Page 94 of 1
you should probably put that in postinstall
need to run sveltekit sync to generate types
pluh transcribe endpoint is on the other api i cba to log in to that rn
a fix addressing this critical issue is out on gramo fone now
Iterator.from(['a', 'b', 'c']).reduce((acc, x, i) => acc + (i > 0 ? ', ' : '') + x, '');
no intermediate array
this is technically intersperse
No thanks I value my sanity
yes and this is dogshit
.join(", ")
Would be surprised if the jit doesn't optimize out the intermediate array anyway
or .joinToString(", ") if u want to be more explicit (but that doesn't match the array join)
alternatively Iterator.from(['a', 'b', 'c']).flatMap(x => [', ', x]).drop(1).toArray().join(', ')
but that does toArray
Yeah that sure avoids intermediate arrays
Also
/run ```js
console.log(Iterator.from(['a', 'b', 'c']).flatMap(x => [', ', x]).drop(1).toArray().join(', '))
@fleet cedar I only received js(18.15.0) error output
/piston/jobs/468d2c37-d470-471f-a293-1e45d5c191a5/file0.code:1
console.log(Iterator.from(['a', 'b', 'c']).flatMap(x => [', ', x]).drop(1).toArray().join(', '))
^
ReferenceError: Iterator is not defined
at Object.<anonymous> (/piston/jobs/468d2c37-d470-471f-a293-1e45d5c191a5/file0.code:1:13)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.15.0
Huh?
because that is wrong
Anyway, that gives triple commas
Iterator.from(['a', 'b', 'c']).flatMap(x => [', ', x]).drop(1).reduce((acc, cur) => acc + cur, '')
/run
Iterator.from(['a', 'b', 'c']).flatMap(x => [', ', x]).drop(1).reduce((acc, cur) => acc + cur, '')
@valid jetty I only received js(18.15.0) error output
/piston/jobs/2f9fbcef-d7b1-433f-a493-3a94e18b1718/file0.code:1
Iterator.from(['a', 'b', 'c']).flatMap(x => [', ', x]).drop(1).reduce((acc, cur) => acc + cur, '')
^
ReferenceError: Iterator is not defined
at Object.<anonymous> (/piston/jobs/2f9fbcef-d7b1-433f-a493-3a94e18b1718/file0.code:1:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.15.0
node 18 lol
Mdn says that's in node 22
wtf is github cooking
they allow you to copy the sha256 of a file now
for me, the worst thing, is that typescript doesnt support JSDoc's @throws
so there's no way of statically analysing if we're not catching errors or not
i've been looking for a solution to this for almost half a decade now
and still no go
this error shit u mentioned can be mostly worked around, by allowing to only throw errors, which then lets u assume that only errors are thrown
fn error() -> Result<_, Error> {
Err(Error::new())
}
fn main() {
let result = error();
match result {
Ok(_) => {},
Err(e) => match e.kind() {
Error => {...},
_ => // what the fuck are u throwing man
}
};
}
bonus points if you actually dont return an error but return Result<_, String>
ulgy
js should simply never have allowed throwing anything except proper errors
even before classes they could have done some kind of duck typing and made it so you can only throw "ErrorLikes" (an object with a "message" property)
i love throwing strings
@young flicker is it hot
cute
Jolly
ok, used github and it worked
annoying tho
i have to manually fix
instead of having free labour do it for me for 0$
SOYCIETY!
can local themes use local resources?
did you upload apple store to apple store
what
No im showcasing an animation i did
turns out actually they can
(also csp isn't why they can't use local resources)
hilariously unintended
most creative solution award
i respect it
can you do path traversal with that

no
sucks can you please add path traversal
pls fix
Any pano scrobbler alternatives guys?
why
Because this
It wont even scrobble when having it open...
I tried to get all the potential fixes, but still nothing
looking for an alternative app due to an issue caused by your system?
Did all the shit which is here
Ii thought it would atleast scrobble when its open... But no
whats ur oem
Xiaomi
ah the classic
what is that?
lastfm scrobbler
i have never seen the term scrobbler in my life ngl
i see its some music app
but idk what problem it solves
lastfm brainrot slang
scrobble = stream = play
Scrobbling now
I got this book and I'm worrying if it was worth it (50 gbp / 65 usd π)
cool cover though...
also got "laws of ux"

HORROR why is it talking about using a makefile with go
also does not mention installing go with package manager on linux
but it does recommend chocolaty and brew on windows and mac respectively
still seems like good book
also i do love makefiles
β€οΈ
but i never saw it used with go
horror
65 usd for something you could pirate
book piracy is called shoplifting
i like having physical book
I am wondering if i should've used go for my moderation discord bot in typescript
attempting to rewrite it probably not worth it though
maybe i should start with trying to do a smaller modmail bot project i did in rust in go
by start i mean... after i've done plenty of less crazy stuff
but still... it's not like typescript is bad (IMO)
rust isn't bad either... but this is an easier project just to rewrite for fun but possibly keep using rust for anyway
though idk i do not like the compile times
that's my biggest issue with rust and c++
i don't like how go playground doesn't dim comments
i don't really care that it's missing syntax highlighting but having comments look like the rest of the code is actually confusing
if you get caught shoplifting books, you pay a fine or go to jail
if you get caught pirating books you might get a warning from your isp
also not their fault but firefox is really buggy with text insertion
the cursor often moves backwards while you're typing forwards
the text is inserted fine but the blinking line moves backwards
how did his text editor render a 3d object
can't find anyone having the same issue on google
Templeos is a magical thing
Well thats templeOS what did you expect
this is pretty funny
i tried using direct file paths file:/// and they were blocked by electron understandably
this is not a plain text editor
wow
why did he make templeos have C:/
for await const chunk of stream
its an async iterable, not a sync iterable
that'd block the entire thread
strictly its possible, but i'd advise against it
there are ways to convert promises into sync calls using atomics, but i'd only ever use it inside workers
trynna read server.properties from docker container:
async function streamToString(stream: NodeJS.ReadableStream) {
const chunks = [];
for await (const chunk of stream) {
chunks.push(Buffer.from(chunk));
}
return Buffer.concat(chunks).toString("utf8");
}
const container = docker.getContainer(id);
const stream = await container.getArchive({
path: "/data/server.properties",
});
const content = await streamToString(stream);
const properties: Record<string, string> = {};
for (const line of content.split("\n")) {
const [key, value] = line.split("=");
if (key && value) {
properties[key.trim()] = value.trim();
}
}
cant tell how effective this is though
damn
- the stream should be utf8 encoded, instead of converting the chunks to an uft8 blob at the end, that's way too expensive
- buiffer concat is insanely expensive
rest is fine
but its already way better than like 90% of devs i've seen do the same thing
also that buffer.from
i should twist ur balls for that
you're copying data for no reason
you're legit just creating a memory copy, when its not needed
its like
auto obj = new object()
auto copy = new object.from(obj)
like why are u allocating twice XD
omg, this lib is undocumented
so you dont know if it even supports an encoding option
yea
i mean its just a docker api wrapper
// global constant somewhere
const decoder = new TextDecoder()
// to text function
const data = new Uint8Array(length)
let offset = 0
for await (const chunk of stream) {
data.set(chunk, offset)
offset += chunk.length
}
return decoder.decode(data)
this should be perfect for those very existing server.properties files which are 10GB in size
XD
yes there will be definitely one of this size!
this is "best practice" shit when it comes to handling memory in JS, what you wrote is perfectly usable for 1 kb file
tbf i cant even tell if the ReadableStream contains the file contents
its just an assumption
yeah
i'm just busting ur balls tbf
because your code is perfectly fine
i'm just used to handling insane large filesizes in node, so this kind of optimisation shit is written in blood for me at this point
anyways its shouting at me
yeah because you didnt specify type of the nodejs stream
ah right
huh but ReadableStream is not a generic
i forgot the nodejs types are dogshit and dont support generics
or like
i remember why i wrote my own types for nodejs
should i just as unknown as any
welp, chunk as Buffer it is then
i should write some tests for this before it becomes too much of a mess
if you ever find a better lib for nodejs types hit me up
cuz @types/node is a fucking joke
and i'm sick of re-implementing types myself
actually
you could just do
let str = ''
stream.setEncoding('utf8')
for await (const chunk of stream) {
str += chunk
}
miiight work
idk about the perf of it, i never checked how nodejs handles string conversion on streams
i know for native its faster for <1024 bytes, but for >1024 bytes textencoding is faster
like this doesnt even make sense?? why does it return a stream...
theres not supposed to be not
but like
why?!
whats the purpose of it π
its a nodejs ReadableStream
yeah but i mean its contents
but i mean its probably based on docker rest api so i wouldnt evne be surprised
it probably just returns the return of http.post
which is a stream
which is either empty or a status response of REST
XD
btw the file returned is a tar archive π
from the getArchive i mean
i mean this is what the docker rest api returns
so its not really a libs fault
i hope its possible to create a extract a tar archive without creating temp file
in js?
well
unencrypted and uncompressed files can be zero copied
zip-go does that
its not the fastest lib, but its the smallest, cross platform and zerocopy
does it support tar archives?
honestly?
never tried
it might?
if it doesnt, you could just pipe the stream tru a decompressionstream
this could work https://www.npmjs.com/package/tar-stream
tar-stream is a streaming tar parser and generator and nothing else. It operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.. Latest version: 3.1.7, last published: a year ago. Start using tar-stream in your project by running npm i tar-stream. There are 888 other projects in the...
mafintosh
yeah
that's probably a good lib
worked with the guy a lot
b4a
eh, him and his libs
eh its a streamx stream
so it might be fucky
but should work for the most part
thius is probably better for u
this guy and his streams
is there a plugin thats a gif folders thingy?
where do i go then
vns
thanks e thug
@supple whale do you work with Bun? if yes, do you think its a good idea to go with their test framework or should i use smth like jest
i use primarily bun in my app
why
oh but thats a different readablestrream...
again its just
let str = ''
stream.setEncoding('utf8')
for await (const chunk of stream) {
str += chunk
}
i dont use bun because from my experience its unstable, and doesnt support a lot of apis correctly
which is.... supposedly a controversial take, according to many people
its not a controversial take, it does support apis correctly they just made changes to the apis π if you dont know the difference between intentionally making a change and bugs/breaking something thats on u π π
meanwhile nodejs:
import { text } from 'stream/consumers';
const str = await text(stream);
i dont like platform specific code tbf
i mean in a library sure
but if you're targetting desktop no reason not to use node stuff
actually
imma look at node's code for this
shocker
its the same code as i sent u
XDDDDDDDD
this is the same as i've written previously
jsonisnt even streamed
LMAO DENO STRAIGHT COPIED THEIR CODE 1:1 https://github.com/denoland/deno/blob/64a95cb5fb26ad86f26f6923b17f1726cdd4bc02/ext/node/polyfills/stream/consumers.js
consumers.js: Line 4
import { primordials } from "ext:core/mod.js";
maybe the same guy who wrote it for node copy pasted his own code for deno
streaming json is complicated and probably not worth it unless ur data is biiiig so it's fair imo :P
just use ndjson if u need good streaming tbh
json isn't really suitable for streaming cause what if you have json like this:
{
"massive-prop": [
// 3 billion elements
]
}
newline delimited json
you can just read it line by line
you mean jsonl?
i love go so far
:gophertroll:
my be preemptive buit it seems like something that could easily become my favourite language
its a good language
but the best way i'd describe it is "there's only 1 way to write a solution"
and i dont like that
i like my giga flexible js
the biggest part of it tho is probably the packages
its very npm like, which is an outlier for native code
it doesnt feel like native code thanks to that
like, you just run compile.... and it fucking compiles
imagine that for C
black magic
use vitest
i would probably like the named return values more if there was a returnall keyword
instead of having return implicitly return everything
also it 's wacky how defer can only modify return value if it's a named value
yeah
go also has a lot of "traps" because of the weird async nature of it
its syntax is quite a bit different than a lot of languages, it abstracts away a fuckload of complexities of async operations, which is fucking amazing, but boi should you not fuck up your declaration syntax or you'll introduce a lot of vulns xD
but if i had to learn any native language, it'd probs be go tbf
rust would be second, if not for the insanely overcomplicated syntax
i'm still not sure if bytecode compiled js should count as native tbf
I feel like rust is less natural to program in than many other languages and needs more practice to convert your mental model of a problem into code
and I feel weird writing stuff in rust that's not completely performance critical
meanwhile go feels like a tool that solves all problems for you
where as in rust you're the one solving the problems
it sucks
and often you'll fuck up shit enough, that you'll loose perf vs go tbf
just because of the complexity
Yeah thereβs nothing quite like go
The easy to write/performance ratio is unmatched
yeah the fact we still dont have "just make this function threaded" in js is insane
there are libs for it, but imports and shit get fucky
concurrency or parallelism?
parallel
there are libraries that can do that??
concurency we have via async and event loop, but it kinda fake
not fully no
at least not inline
in separate files, sure i wrote libs like that too
but not inline
like go can
js is like the most single threaded thing ever
i think we touched this topic b4 here
almost all of the w3c API's are multithreaded
but ecmascript itself is single threaded
which sucks
wdym the w3c APIs? the runtime implementations?
fetch, fsa, blob, crypto, compression, bluetooth, etc etc
all that shit is multithreaded
but shit like arrays, typed arrays, pritmitives, iterables etc are all single threaded
In Python: we have threading at home
Threading at home: asyncio (single-threaded)
Okay while looking at firefoxes advanced preferences I found this "extensions.signatureCheckpoint" does anyone know what it does
@grok what does this do
The "extensions.signatureCheckpoint" preference in Firefox relates to extension security.
It likely verifies the digital signatures of extensions during startup or updates. This helps ensure extensions haven't been tampered with and are from a trusted source. I hope this helps!
@nimble bone
remember that hiding away the complexity in the lang only brings more complexity into your code
go is very simple but it is NOT easy
looks like a max line length limit thats too low?
wrong β
yeah it doesn't really solve anything
if it feels like it makes it easier that's because the complexity is hidden elsewhere
gender is not implemented
ig OTHER could just be default
why does any number automatically fit into Gender

basically
CREATE TABLE husbands (
id SERIAL PRIMARY KEY,
wife SERIAL REFERENCES wives
);
CREATE TABLE wives (
id SERIAL PRIMARY KEY
);
probably not valid
pub struct Person {
pub name: String,
pub age: i128,
pub is_female: bool,
...
}
fn somewhere() {
let person = get_some_person();
if person.is_female {
apply_privilege(person);
}
}
why are rust developers alcoholics
idk
actually im sorry i forgot the real is_female implementation
pub struct Person {
pub name: String,
pub age: i128,
female: bool,
...
}
impl Person {
pub fn is_female(&self) -> bool {
if self.female { true } else { is_female_name(self.name.as_str()) }
}
}
fn somewhere() {
let person = get_some_person();
if person.is_female() {
apply_privilege(person);
}
}
im non woke in the woke way yk
wasn't expecting the new csp changes to also break my favourited gifs from GifCollections, that's quite annoying
guess time to patch vencord again
go enums so cursed
/run ```py
print(bytes.fromhex("21 27 27 29 21"))
Here is your py(3.10.0) output @fleet cedar
b"!'')!"
@winged mantle I only received go(1.16.2) error output
# command-line-arguments
./file0.code.go:6:17: undefined: iota

bad
/run
package main
import "fmt"
var i = 0
func iota() int {
i++
return i
}
func main() {
fmt.Println(iota())
fmt.Println(iota())
}
Here is your go(1.16.2) output @winged mantle
1
2
Likely because random generator is initialized with same seed
but why is it always the same lol
by default
/run
#include <iostream>
using namespace std;
int main() {
cout << "vencord epic!!!!11!";
}
@tawny fjord
Unsupported language: None
Request a new language
Tf
/run
#include <iostream>
using namespace std;
int main() {
cout << "vencord epic!!!!11!";
}
Here is your c++(10.2.0) output @tawny fjord
vencord epic!!!!11!```
Yeah how else would it know what language it is
(I guess you could use a llm for it but that's
)
/run
#include <iostream>
template<typename T> void _print(T x) { std::cout << x; } template<typename A, typename... B> void _print(A a, B... b) { _print(a); _print(" "); _print(b...); } template<typename... T> void println(T... args) { _print(args...); _print("\n"); }
int main() {
println("MEOW!");
}
Here is your cpp(10.2.0) output @austere idol
MEOW!
horrible
no, its actually BEAUTIFUL!
template<typename T> void _print(T x) { std::cout << x; }
prints out one thing
template<typename A, typename... B> void _print(A a, B... b) { _print(a); _print(" "); _print(b...); }
overloads the first thing and accepts multiple args until only one is left, then the first function is used instead
template<typename... T> void println(T... args) { _print(args...); _print("\n"); }
is self-describing
horrible
ok u just wrapped cout
whats so cool
its cool but pointless & it looks horrible
"using namespace std;" 
use std::*;
Most stuff in std::* is already in the prelude, except the modules
is_female
wtf
make an enum
functional programmers hate you
you missed the joke
rust developers have no sense of humour
rust more like husk
rusk
i love go's named retursn
go is the only language i've seen where using pointers is deemed a premature optimisation though
i just see go as another one of those useless languages because they have nothing to set themselves apart and i know this for a fact about go because all go devs ever boast about is compilation speed like that matters
and i dont plan for working at google anytime soon so there are also virtually no jobs that require it
if you have this and it copies the whole stack data that's horrific
func (s MyStack[T]) Length() int {
return len(s.data)
}
idk needing to wait like 30 seconds every time you make a change with rust is pretty annoying
π
id agree if that was true! sadly even as a rust dev ive yet to run into that and now with dioxus support more and more projects are slowly implementing hotpatching so making changes in something with bevy is sub second, practically instant
it depends how fast your computer is
seems like it was more like 20 seconds
still pretty annoying for debugging
and this is a relatively small codebase
honestly with rust it feels pretty rare to acutally need to use it lol
my computer is built for raw GAMING βΌοΈ βΌοΈ βΌοΈ the x3d chip inside would rather kill itself than run something that is not a game (i move files and i instantly get a temp spike + slowdown) so its very much average in tasks like compilation
you can use rust for practically anything, if im low on time or cba sure i might switch to python and i guess when making web frontends i use js/ts but other than that i see no reason not to use rust
sure i can make a programming language/webserver/discord bot/cli tool/whatever in fucking typescript/go/even c++ but also no reason to use those either and with rust i get the extra speed + the safety is nice and always a big+
and of course personal reason im most comfy with it
i find it weird when people use rust for something simple where there's not really a benefit to using a gc free language
or anythign really
feels like premature optimisation when you already know it doesn't need to be optimised lol
though I do understand that some people might simply like the language
you are missing that rust isnt an optimisation its a language
you can twist your argument around and just say "i find it weird when people use go for something simple where there's not really a benefit to using a fast compiling language"
not really
this is about gc and i think lack of gc can make a big difference to how you need to approach problems
"i find it weird when people use typescript for something simple where there's not really a benefit to using a typed language"
"i find it weird when people use javascript for something simple where there's not really a benefit to using a browser optimised language"
.........
its all the same
IMO borrow checking based languages or languages with memory management always have the biggest barrier
types are something you always think about even in a non typed language, at least i hope
but also once i learned how to properly use the borrow checker i stopped having problems with it, after that it just comes down to logic/thinking errors
@lavish frigate try programming with vala
Why
Stolen from python apparently
actually having first class events is kind of cool
Its syntactical sugar that throws me off
i dislike 8 width tabs
Every language I use has conditioned me to think in expressions, a < b evaluates to true, true < c doesnβt make sense to me
wait idk that it's officially a gnome thing
it's probably older than you though: https://en.wikipedia.org/wiki/Vala_(programming_language)
Vala is an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.
Vala is syntactically similar to C# and includes notable features such as anonymous functions, signals, properties, generics, assisted memory management, exception handling, type inference, and foreach statements. Its d...

you know its premium slop when they have an older maintained version with unmaintained versions in between
vala is so ass
it's python flavored c#
can we stop with the x flavoured y languages i hate all of them
microsoft flavoured java
spits out water in mouth
rider is so fye - i checkout a branch and audio in my whole os disappears
what even is that macro
its a runtime check for versions
and how do you use ios 19 without quotes
oh
yeah but like iβm not really sure what iOS 19 is. if itβs a string, then why is there no quotation signs. if itβs some const, then why does it have a spacebar
it is not a string
is it kinda stuff u can do with macros in swift
i cant expand it or view info on it in the editor, but all I can say is that I can do stuff like
if #available(watchOS 5, *) {
}
I suppose it takes in an enum and a floating value
also * is a wildcard, meaning for potentially future versions also run as well
dont know exactly what it is
does anyone know if it's possible to clip the hover effect to the rounded image
site:
https://hover-effect.sadanslargehole.pages.dev/
code:
https://github.com/sadan4/sadan.zip/tree/hover-effect
hover over the profile picture to see what i mean
just.....
apply the same rounding as the image?
so border-radius 50% overflow: clip?

like are people actually this clueless about HTML?
that works, but is there any way to do it dynamically?
??????????????
???????????????
????????????????????????????
BRO
WHAT ARE YOU SAYING
crashout over html π
this is a channel to discuss/ask for help/help with programming, not to mock people over trivial things

or:
overflow: hidden on the image then apply the effect as ::before/::after
fair, but still
man I wish crystal had a half decent language server
the language is so nice but I need my completion suggestions
dude mood
whenever i'm forced to write anything java i just wish i could use kotlin
but 0 vscode integration
i feel ur pain
Huh Iβve had great experience with Java in Vscode
Just takes 10 years to start tho
kotlin sir
i said kotlin
i want to use kotlin cuz u can just compile it down to java
and i dont get testicular cancer when i use it, like with java
theres a kotlin lsp now
an official one
that being said, vscode is not what you should really use for it
I wish there was a language like kotlin but closer to java
damn it vencord
it is linux/macos only for now
π
I'm on Windows and cant use linux (nor do i have mac)
but people do often use kotlin in place of java
i like that you're just thinking out loud
kotlin rant incoming
?
ig you can't fault it for being different to java but there are things i like about java that it doesn't allow lol
*many things i like about java that are different in kotlin in general
why
like what can even be the reason it can't run on windows
idk im not jetbrains
enum Gender {
LATINX
}
why would you wanna be closer to java
as a language that's popular as a substitute to java, it doesn't feel very faithful to various things people choose java for lol
me included
i don't think many people choose java because of stupid stuff like needing to implementequals but people do tend to like how explicit things are
at least, if they like java
i guess kotlin is a good java replacement if you don't like java, but not so much if you do like it
update 
might try that
I don't think that's true
the only reason java is popular is because it's embedded into enterprise, schools, and legacy stuff
it's because the default backend language
i think you're speaking as somebody who does not like java
i stand by this
well true but you're not seeing the bigger picture either
the amount of people who use specifically java because they like it is dwarfed by it being the default language for a lot of things
i mean if people actually like java reasons probably include ... the main things it's known for like being explicit
that's why i said
at least, if they like java
i wasn't saying people tend to like java
i haven't surveyed people

java is popular because it was innovative and the best option out there back when it was invented
but they wanted to be backwards compatible
so its not up to modern standards
There is full backwards compatibility (the language has to keep in all the technical debt from 10 years ago)
No backwards compatibility (the language actually fixes shit on major updates)
And then Python (dice roll every release, even minor updates and patches, to see if you keep backwards compatibility)
Vencord: v1.12.2 β’ 550a2266 (Dev) - 10 Jun 2025
Client: stable ~ Web (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36)
Platform: Win32
HMMM
oh i see
my automated tests failed
insane
yeah i automated forking vencord for my local browser dist
wtf
it fails on git push
what the fuck happened
Vencord: v1.12.3 β’ 90990722 (Dev) - 11 Jun 2025
Client: stable ~ Web (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36)
Platform: Win32
there we go\
ALL MY CSS BROKE
NOOOO
cant use jsdelivr anymore
ah, just a bad cache hit
you can add a plugin that modifies the CSP
or just be normal and wait for https://github.com/Vendicated/Vencord/pull/3476

Is there any way to see whatβs already in the allow list
sir i'm not doing any more waiting
i waited 6 months for you
to look at 20 loc
this is 300
so i'm not waiting till next year
x)
Iβd send my plugin because it already works well but unknown has me blocked and doesnβt check my messages 
no we kept the code proprietary to stop users from bypassing it
What ππ
it's true
so there is also no way to remove something from the allow list again..?
girl have u looked at the pr π
no
i looked at the video (on my phone) ignored 90% of the screen and am too lazy to read anything else
you know at least im honest about this
programming is fun until gradle is involved
god i hate ts
{
"compilerOptions": {
"typeRoots": [
// these overrides are required, because we want a custom typed eventemitter, importing node types in any fashion will fully override the typed event emitter, making life a pain
// disabling type acquisition does NOT prevent type acquisition from working, WE LOVE TYPESCRIPT, INDUSTRY LEADING TECHNOLOGY
"./src/types"
]
},
"typeAcquisition": {
"enable": false
},
"files": [],
"references": [
{
"path": "./tsconfig.node.json"
},
{
"path": "./tsconfig.web.json"
}
]
}
this is my fucking tsconfig
there are 4 more after this
just to make TS work correctly and not pollute every file with random garbage
programming is fun until any language other than my sweet sweet baby is involved
how much config do you want before u even start writing any code? yes.
the fact that i cant import node:fs types in typescript, because that includes DT's node:events types, WHICH ARE INCORRECT AND DONT SUPPORT EVENT TYPE MAPS, that override my own implementation of events with event type maps
and there's NO WAY to change that
makes me want to kms
btw yes it IS my favourite programming language ||php||
mfw epic games is giving away free nitro, and its not a scam, the day came where its not a scam XD
remember the day when that first came around and discord didnt even check card credentials, so everyone and their alts had nitro
was a funny 4 months
what
yeah i dont get it too
oh the calc isn't evaluated
it isn't expanding the calc
computed tab also doesnt expand auto
cursed horrorcode
if the number is in your sourcecode, just calculate it manually and include the result instead
if the number comes from js just do the math in js
you could use it for log scaling with something like calc-size
they should add methods that make it properly turing complete on its own (only requiring an empty html document)
insane
dont see the page on mdn yet, have any browsers implemented it?
its only been standardized for now
not added yet
relevant ciu page
https://caniuse.com/mdn-css_types_if
at least i think thats the right one
bro uses web
the csp changes arent on web
guhhh
So dose that Allow firefox run unsigned extensions
no
use https://waterfox.net/ if u want stable firefox and unsigned extensions that don't disappear on restart
man
i am currently compiling waterfox
so in the translate plugins languages.ts it shows a way to generate a list of languages from google translate itself by doing this
``To generate:
- Visit https://translate.google.com/?sl=auto&tl=en&op=translate
- Open Language dropdown
- Open Devtools and use the element picker to pick the root of the language picker
- Right click on the element in devtools and click "Store as global variable"
copy(Object.fromEntries(
Array.from(
temp1.querySelectorAll("[data-language-code]"),
e => [e.dataset.languageCode, e.children[1].textContent]
).sort((a, b) => a[1] === "Detect language" ? -1 : b[1] === "Detect language" ? 1 : a[1].localeCompare(b[1]))
))
*/
`
i generated my list and put it in the table but im still not getting them as options from the dropdown
theres a lot of languages in my new list compared to the more common ones that were generated for the plugin
but theres only the stock ones in the dropdown
is there more i have to do to be able to use these languages?
you either are using deepl (change it to Google in the plugin settings) or didn't actually install your own build of vencord
follow this to install your own build
i was using google i just never rebuilt
but mi tink it a work jus fine now
patois is so fun
what the freak is nest.js
just another version of node lol
huh?
isn't it just a nodejs framework
yeah
oh god it's javascript spring
but why use that when you can just use https://astro.build/ fr

after learning about goroutines and learning go doesn't even have corountines (and goroutines are just like java's virtual threads) I feel disappointed that the discord libs for java use callbacks instead of what discordgo and other go libraries do to avoid callback hell

I tbh didn't even know you could use go for discord
but tbf I only really program in Swift/C++/Obj-C
that's like not knowing a spoken language had a word for chair
even if you don't know a language's word for chair or even whether the language has a word for chair, you can still assume it probably does 
otherwise what would they say instead
sitting thing
actually i have no idea if some languages have no word for chair and instead you use a combination of other words
TIL https://github.com/SwiftcordApp/DiscordKit exists
I don't mess with Discord bots really it's not my thing
That's why I was surprised that you could use Go for it
the only language i know of that doesn't have a discoord bot implemented in it is assembly
which i find very disappointing
bro I might have to mess with Discord bots more https://dpp.dev
even C has a discord library
ig it's not quite like a language having a logging library
but discord libraries are still pretty widespread
who even likes objective c
why do norwegian words look like c standard library functions
why are you obsessed with chairs 
imagine a world without chairs
come on though
very close
utskrift also could pass as a c standard library function
even though it's not close to anything
(it just means "printing")
lol
it's the same in german
Stuhl
stool in english :P
hallo welt
#beinhalte <cstdea>
Ganz Haupt()
{
druckef("Hallo Welt.");
zurΓΌck 0;
}
will never be https://github.com/michidk/rost
@native spruce hey why is protokolle uploaded on app store under MacCompany rather than like your personal account or something
a16 released without the full build of the new terminal
no display activity
no x11 server
u can use virtual threads and use .complete if you use jda
i will use cdiscord (official discord lib in C) for discord bots /j
is it at all possible (probably is) to automate the cli installer's questions? as in, write a script (bash, powershell etc) that automatically selects the Install and the Stable options?
trying to pipe a newline didn't work so I assume it's more complex
./installer --help
oh shit
i didnt know you could do pnpm inject --help and it would just work lol
thank you!
powershell script that automatically installs vencord from source on windows. - hyperlexus/vencordautoinstall
i made a thing for the few windows users running vencord from source
(probably only me while dual booting lol), it keeps removing itself so this automatically installs it, all you need to do is run the script
i see, tysm!
also that means in theory if i were to put my stuff on app store, i could just find some company with apple devloper program and ask them to do it for me?
and like they can add me as a developer with full access ig
fitting
fireship looking image
yes he did and its annoying
trying to make go cloc implementation 
I feel like there's a mainstream language I'm missing but i can't think what


crystal
also js has three billion more extensions
[cm][tj]sx?
also 
you will use a big database and autogenrate
you know very well that js doesnt require extensions in any way
its how u configure ur compiler
you can make your compiler treat cjs as mjs if you ever so desired XD
but official js extensions are only js and mjs afaik?
what the hell is cmsx
not a thing
but i think mjs no longer does anything because of import assertions?
mjs = force esm
cjs = force commonjs
π
can you please use a better way of writing that like [c|m][t|j]s? (regex inspired)
i literally used regex

i dont believe you
i mean yeah lol if you're talking about js itself it doesn't even know what a file or module is
you forgot the // XD
[cm]?[tj]sx?
yes
js so big & greedy why does it need so many extensions
json imports are like the best thing ever doe
fucking 200MB module, reduced to a few kb, just because you can split the data into chunks and only request the data u need

nope, city based ip maps are roughly that size
ip->city databases are roughly 100MB, 200MB is you include more data
with ipv6 its like 300MB?
nope, this is the most efficient way i researched
in binary format
this is binary searched
it binary searches based on ip mask
and imports a 16kb json
instead of a 200MB file
since the 200MB file is split into a few thousand json files
this also means you load very little data into memory
most other solutions gzip a csv file, which then u need to uncompress in memory, ends up using over half a gig of ram
its nuts
just to get info on 1 IP
you fuck your server and your client, just for barely any data
like 99.9% of data wasted XD
which is why importing json in js dynamically rocks
dont need to fuck with no network shit with fetch etc

could have just used sql
theres also the ecmascript extension, .es
shouldn't exist but well here we are /shrug
it will just be typescript but a bunch loads of crack and meth of macros and all sorts of circus
funny how on ios 26 arm64e.old is just broken now so some apps just crash if their binaries are just too old
had to fix it in feather https://github.com/khcrysalis/Feather/commit/eea35807aa4a5bbb1896962434c5c9abc8e8010f lol
Feather(Utilities): simplify code for deleting unneeded files before signing
Co-Authored-By: Duy Tran 40482367+khanhduytran0@users.noreply.github.com
steal source assossiatons from linguist
because the js ecosystem is full of retarded people
@woven mesa NETWORKUI
peak shitpost
@woven mesa this is so cursed
im watching a wwdc video
the alert is in the corner

its bound to whatever action triggered it apparently
im sorry but does 323 mean how many videos there are
wtf
true
horror
@solemn ravine the new WebPage observable object basically lets you make headless instances easily
super cool
@woven mesa i cant get over how horrible this makes my app look
their corner radiuses is also absurd, buttons are too big too
this looks like scamsung
Whar
@native spruce
learn to be patient + have you actually tried compiling an appβ¦
or looking at apple documentation..?
it is not enforced?
yep, i just found out. thanks
https://pkg.go.dev/github.com/vencord/backend why does go crawl everything
can i use util.Hash from vencloud in my own project
tbf they also want you to move the search bar down to the tabs
It doesnt
It will though if you tell it to do so
why are random yagpdb forks there
PLEASE DONT
https://www.youtube.com/watch?v=y8OnoxKotPQ why is this so real
it's because of the way our backend works
// more krazam scenes: https://www.patreon.com/KRAZAM
// merch: https://merch.krazam.tv
well at least its not merge conflicts
this is MUST WATCH
perish brand
are there any actually popular bots using discordgo
apart from yagpdb
idk go ecosystem for things i want to do rn is bad

what u wanna do
GO is ALWAYS bad, hop on php
i think i wanted to use it for backend stuff like mainly rn discord bots
but I also wanted to see how much of a joke go ui is and like many languages it doesn't seem great 
I feel like https://github.com/diamondburned/arikawa is probaly mainly being maintained for dissent (custom gtk discord client)
discordgo seems a mess
i feel like discordgo is probably the least likely to randomly disappear though
to me the only big bot i know of using it vendoring a modified version does not seem good
yes
but its good
insane
why not just manually set the clap arg name
Mostly useful for interacting with different editions, if some 2015 crate uses async or await as an identifier
But yes, some proc macros and code generators might make use of it as well
how did u not get lobotomized by @glossy cloak π
i dont own a brain
so by definition i cant be lobotomized
too much JS turned my brain into mush
now its just a fungal biomass
@woven mesa official app btw
not Exactly programming related but most aligned: does anybody here use fedora silverblue.... i am pulling my fucking hair out trying to install it
gay??
crystal is just ruby but compiled so it's fast as fuuuck boy
LLVM backend so it's similar performance as rust
aliucord server bot uses this
Aliuballs
i was really confused because there were multiple libs called disgo
but this seems to be lead by somebody also heavily involved with lavalink
so ig they probably know how to write production code

seems like it uses builders though
not compulsary though i don't think
Gowklang
i think i found discord.js for go
insane
SelfUser is optional
actually tbf it won't be available immediately
yeah what am i talking about
trol
In go it makes slightly more sense
since structs are zero initialised you can leave any field blank and it won't error
if you want to require specific fields to be set you have to make a function to create the struct
ah
discordgo was the weird one
to replicate behaviour just ignore the bool value from SelfUser()

and you'll presumably get a zero initialised struct if it's not available
will this be the third project i create prs relating to default allowed mentions for
(it only suports default allowed mentions for webhooks)
@valid jetty



