#πͺ -progaming
1 messages Β· Page 141 of 1
lol trumpmobile uses radio buttons for checkboxes lol
wait ig this isn't very on-topic sorry
ok but are any of them not slop
i haven't heard of anything other than npm, deno, bun, pnpm, or yarn (but yarn really sucks)
actually i haven't used yarn but someone told me it was bad so it must be true
bruh it's so that you can't uncheck it i imagine
there isn't a web development or frontend channel so I think it still counts
Is bun a JS version of "we built a c compiler that can compile linux kernel in Claude"
funnily enough they do actually have a c compiler in it
it used to just be "js tooling with some more batteries and fast"
now yes
you can uncheck them though
idk then
it's just cursed, they didn't knew how to do CSS to have a round checkbox but wanted one
normal input checkbox elements are styleable now so they must've actively been trying to make it worse?
Hey guys um weird question.. but am i suppose to install something else maybe the extension on my browser or something to enable react dev tools? ive enabled it on the settings but i dont see it at all
You have to press ctrl-R
ps/2 beloved
node+webpack is good enough tbh
anything more complex I just don't use JS for
me: lets make subs nice, for dub enjoyers
me 4h later: what the fuck do you mean lt_donthave has been malforming packets for 3 years, no1 noticed, and its causing nzb webseeds to fail silently and only create 4 connections which time out after 3 minutes and i cant download my test file for sub testing
me 5h later: okay... back to subtitles, finally
@jade stone end me
is this enough rules?
what the flip send me all of them
is my deno.json sane ?
remaking my website every month because i am never quite happy with it
is there a reason you don't use vite or did you just never consider it
What the fuck is a vite
why would i
not webpack <3
vite is a bundler for the web with a rollup-based plugin api
really good, batteries included
I mean, if all I need is a bundler and minifier why would webpack not be enough
if webpack works for you, that's fine, but i'd argue that you will have better DX with vite or rspack
well it doesnt take anything to set it up and as sadan said the DX is better and so are the results
both vite and rspack are faster than webpack (by quite a bit)
and vite is very easy to configure and customize to fit your needs
its like "would you take 100 dollars or 500 dollars" and you said you only need 100 dollars so why would you take 500
vite is just rolldown isn't it ?
webpack is like half a second at worst?
it's a wrapper
how big is your project?
typically like <500 loc
why are you even using a bundler π
for deps
just use deno smh
as a bundler for the web???
you're better served by other options
deno bundle is actually esbuild btw
oh π
the advantadge is i guess you don't have to mess around with shit
you just have deno and that's it, nothing else
well with 500loc you don't have to with esbuild either
it has a very powerful CLI API
tbh i'd argue if you have 500 lines you should have written proper optimized js by hand
tfym by "proper optimized"
not some bs shit that come out cursed from compilers
write already minified JS
i forgor which shit was spitting out ternaries so fucking deep it made a stack recursion error on firefox
@jade stone @jade stone look
also you need something to bundle the deps for the web
just don't have deps
new way of making objects haha :)
wait until you see how typescript is written
(the compiler)
why are we doing OOP in Javascript
javascript is the OOP
no it's functional /hj (baited)
also Java is the real OOP
Java ftw
i miss when we could use Java on the web
we should bring back applets
@solid gazelle typescript's Scanner "class"https://github.com/microsoft/TypeScript/blob/main/src/compiler/scanner.ts#L1022
Kotlin/JS and Kotlin/WASM
i said Java not sugary java
i have a balanced diet
not for nodejs/electron!
but yeah for web sure
yeah for node.js i use either roll(up|down) or esbuild
i use webpack
simply because good node:module and .node handling
and webpack is still the only bundler that handles import.meta.url correctly
which is fucking nuts
throwback to our worker woes...
i thought you said rspack instead of webpack and was going to say how rspack has bugs related to node

rollup-plugin-copy-native-modules.ts: Lines 12-32
export function copyNativeModules(): Plugin {
return {
name: "rollup-plugin-copy-native-modules",
async load(id) {
if (id[0] === "\0" || !NATIVE_MODULE_REGEX.test(id)) {
return;
}
const assetId = this.emitFile({
type: "asset",
name: basename(id),
source: await this.fs.readFile(cleanUrl(id)),
});
return /*js*/`
import { createRequire } from "node:module";
export default createRequire(import.meta.url)("./" + import.meta.ROLLUP_FILE_URL_${assetId});
`;
},
};
}
vite can be good if u dont use the cli, but instead home-cook ur own shit

index.ts: Line 1
import y from './y.cjs'
y.cjs: Lines 1-9
module.exports = (() => {
try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
return require('node-gyp-build')(__dirname)
} catch (err) {
console.warn('yencode not supported in this environment', err)
return {}
}
})()
if you dont do this for .node files you're a fucking monkeyh
wanted to but couldn't get rollup to interpret the result of load as cjs instead of esm
rollup doesnt support cjs at all by default 
ya ik
cjs is a plague
this guy home cooked his own vite setup
and this vite is actually good for node
i use it quite a bit, it rly good
it's a weird half baked OOP implementation added on later into a mostly procedural language
it is technically there but idk if it even counts
but yeah @jade stone if u dont do this for .node modues we're not friends
because with this you can have header stripped prebuilds
which are ABI agnostic
and run from node 10-26+
rather than being ver specific
if i ever have to touch node-gyp something has gone very wrong in my life
i mean.....
you do
SIR YOU LEGIT IMPORT .NODE MODULES
OH NO
anyways
that code is for dynamically resolving prebuilds based on platform
not actually compiling anything
yeah i figured as such
i've had issues with node-gyp on windows arm64
yeah you will
but the package i linked supports resolving that
ABI agnostic prebuilds are fucking bae
no i mean runtime linker errors when loading the node module
yeah ik
u meant builds
build-release.yml: Lines 1-70
name: Prebuild
on:
workflow_dispatch:
permissions:
contents: read
jobs:
prebuild:
strategy:
matrix:
include:
- os: ubuntu-22.04
platform: linux
arch: x64
- os: ubuntu-22.04-arm
platform: linux
arch: arm64
- os: ubuntu-24.04
platform: android
arch: x64
- os: ubuntu-24.04
platform: android
arch: ia32
- os: ubuntu-24.04
platform: android
arch: arm64
- os: ubuntu-24.04
platform: android
arch: arm
- os: macos-14
platform: darwin
arch: x64
- os: macos-14
platform: darwin
arch: arm64
- os: macos-14
platform: ios
arch: arm64
# - os: macos-14
# platform: ios
# arch: arm64
# tags: -simulator
# flags: --simulator
# - os: macos-14
# platform: ios
# arch: x64
# tags: -simulator
# flags: --simulator
- os: windows-2022
platform: win32
arch: x64
- os: windows-2022
platform: win32
arch: arm64
runs-on: ${{ matrix.os }}
name: Build / ${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}
steps:
- uses: holepunchto/actions/bare-base@v1
- uses: holepunchto/actions/compile-prebuilds@v1
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
flags: ${{ matrix.flags }}
tags: ${{ matrix.tags}}
upload: true
merge:
runs-on: ubuntu-latest
needs: prebuild
name: Merge
steps:
- uses: holepunchto/actions/merge-prebuilds@v1
ya can just throw in this gh action, and it will generate prebuilds for every system
its bae
actually that one is for cmake
for node-gyp u need smth else
Joined a new company and inherited a backend repo from an agentic engineer. Rewrote it in a week with Claude while keeping the same functionality, with a more stable architecture and proper integration tests.
So basically it was a bloated repo, completely out of touch with what actually needed to be build for a product. But everyone celebrat...
awesome code! what prompt did you use?
oppression
pretty sure i just made an infinite loop on cloudflare infrastructure and am costing them money
okay my build works now even though it errors.......
uhhh
what
nvm its missing something
wtf are you even doing cloudflare
i need to switch to github actions i cant do this anymore
[custom build]
after all these buns talk, i only just found out there are alternative to nodejs
-# rather i never bother to look for alternatives
and saw this deno, it has syntax highlighting in the repl, pretty kewl
my favorite part of it
I use it on my phone in termux when I need to test a snippet because the web things suck
tuff
also is there a less ugly way to this
mango
I think you could at least do /^#?([a-fA-F\d]{2}){3}$?
ionno i just got the regex from stackoverflow
Why not just use substrings ? The hex Will Always be 6 digits or do you allow 3 digits shorthands ?
hello? another js snake case user? β€οΈβπ₯
yes, not using snake case
100x more beautiful
idk if it'd be cleaner but I'll write something for it (on my phone so it might look bad)
// ignore this
let hex: string
if (hex.startsWith("#")
hex = hex.slice(1)
const wawa = new Array<number>(3)
for (const chars of Iterator.from(hex[Symbol.iterator]()).take(2)) wawa.push(Number.parseint(chars.join(""), 16))
I think this is a stupid fucking solution now actually but im not a quitter
oh my god
just slice 2 more chars and iterate through a normal string...
I forgot how to use this language
this sure is something lmao
functional programming has gotten to me I guess idk what to do when I can't reach for my fancy iterating things
const hexToRgb = (h: string) => h.match(/\w\w/g)!.map(x => parseInt(x, 16))
\w includes numbers?
yes
vcook π« 
π§βπ³ No recipe found π«¨
though to be fair I'm pretty sure this would do some funny stuff if it get's invalid characters
wait what I just looked at what you're doing why would you use regex π
it doesn't deal with the hash thing at the start
it does
ignores it completely
it's easier to write
if you just do parseInt("FFFFF", 16) it'll give you a colour int
it's supposed to be three element array
change return type to [number, number, number]
couldn't you just do this
function toArray(colorInt: number) {
return [(colorInt & 0xFF0000) >> 16, (colorInt & 0x00FF00) >> 8, colorInt & 0x0000FF];
}
I feel like that would be a step in the wrong direction of making a clean solution though
this feels like the natural way to do it to me, idk
depends on your background
you don't need multiple parseInt calls or regex lol
I struggle understanding bitshifts for the most part
was gonna say beginners will read this and explode but i realize the other code was already using regex anyway so this is fine
To split out the color int, sure, but maybe to the initial problem...
regex felt unnecessary yeah but my solution was dumber
this is why functions have names
couldnt u just parseInt the whole hex first and pass it
that's what it was intended for I think
yeah, that was the idea
beginners should learn regex 

type ColorInt = number & { __brand: "ColorInt" };
function parseColor(s: string): ColorInt | null {
if (!s.startsWith("#")) {
return null;
}
const bare = s.slice(1);
if (bare.length !== 6) {
return null;
}
const parsed = parseInt(bare, 16);
if (parsed === NaN) {
return null;
}
return parsed as ColorInt;
}
function r(color: ColorInt) {
return (color & 0xFF0000) >> 16;
}
function g(color: ColorInt) {
return (color & 0x00FF00) >> 8;
}
function b(color: ColorInt) {
return color & 0x0000FF;
}
avoids needing to allocate an array, and also should only allow valid inputs
DON'T HUSK
type branding
β€οΈ type branding
i actually use unique symbol for this
idk i have probably been doing too much go
is it not valid without the #?
forgot
you seemed to check for it with the length thing idk
it would also allow @00000
what no now you're checking it twice
you should check if its 6 or 7 characters
oh I guess
because if its 7, its likely a hashtag
you...
and you need to both check for the prefix and remove it
btw bitwise operators are not that hard to understand
you seem like the type of person who'd like it
I know how they work I just struggle processing what it would actually do in practice when reading the code
yea until you realize JS coerces them to 32b
I don't really know what direction the shifts are either
why can't it be big shift and little shift
i guess you just gotta not do rgba
its left and righr
endianess doesnt matter
because its a representation
i mean if you have something like
0000 0010
shifting right will literally move the digits right
0000 0001
bitshifts dont care about representations
i guess it always works as though the endianness is big endian
probably a dumb way of describing it idk but that's how I think of it 
nah palm is right it's just independent of the representation
wtf is this
vee no please don'\t look at that
like little endian encodes 1111111100000000 as 00000000 11111111 and big endian encodes it as 11111111 00000000, big endian just happens not to do the swapping
it must be the slepe deprivation
Our customary way of writing numbers is big endian
So compared to that, le is indeed reversed
imagine little endian in base 10 π
000,100
idk I think the conventional way of writing numbers isn't big endian or little endian because we're not splitting it into bytes π
splitting into 8 binary digits is arbritary anyway
Yeah that's just writing a million as 0000001
Unusual but not conceptually strange
does the concept of little endian even exist without a form of memory with numeric addresses
Obviously?
I thought it was the concept of byte order rather than digit order lol
never heard anyone say that before, but I guess it's debatable
They're also base 2βΆβ΄
I'd say bytes represent numbers or characters as opposed to digits lol
even with bcd you split the bytes into two halves so it represents two digits not necessarily
idk, endianness literally means byte order lol
this is just making it confusing lol
It literally means what end you eat eggs from
Eggs are very important to computer science
Sure but it literally is where the word comes from
i hope you do not teach computer science to people

then again I guess it is relevent historical knowledge
another multimillion line diff has hit the pr tab again
they ported the github issue templates to assembly
but you need to allocate a float
guys its javascript
v8 is holy and probably knows when to use an u8[] tbh
still a heap allocation I think?
what no compiler does to an mfer
v8 knows best
reference semantics are kind of annoying too so...
idk I've been writing mostly C and go lately where things are automatically copied and I like it π
I don't think golang does it any better sadly
implicit reference types and ZERO way to say you just want a pointer for efficiency but you won't mutate things
wasn't trying to debate golang vs js lol
I'm just upset by it being like this
golang is a little better though in terms of values in my opinion since you're not forced to use reference types
I still don't understand semantics of slices, more specifically when they have to reallocate
use a functional programming language where everything is immutable
zig and rust do it the best I think cause you only think about how you're using the thing and the compiler chooses if you get a pointer or not
I tend to when I can yeah
I'm gonna be writing a lot of lua and emacs lisp in the coming days/weeks though weh
slices are weird in go as they are conflating array views and dynamic arrays lol
Kevin Patel - Application Security Engineer @ NISC
bro thats just bs lmao
it can happen anywhere
its satire mimicking the onion
ai slop header, disregarding
hmm i should make an m4 macro for tailwind
m4 what
gnu m4, a universal macro processor. my new website uses it https://loudsynth.moe/articles/the-worst-web
Insane
Why use macros when you can just have codegen scripts
nah
nop
Codegen scripts so good
i like gnu m4 unix hell more
oh god my curse of reading "ts" as "this" is back
afdkjdfjk key will also replace the access of the key field on the hash table entry i hate this
using macros for generics is super annoying
I guess there's only one good way and that's template headers
did you find it from tsoding
no
i do watch tsoding but i got m4 from grok <3
what was your query lmao
idk i forgor
You should rewrite my entire website using m4
gnu m4, an open source rifle
you should read my blog article
in the next version of bun
you choose the slop level of your code execution
bun run index.js --Sfast
bun run index.js --S3
bun run index.js --S2
bun run index.js --Ss
bun run index.js --Sz
XD
there is no "no slop" option
-S0
why not js keep it in zig π
yeah node was always the way to go

@Shylily:
π³Twitch: https://www.twitch.tv/shylily
π³Twitter: https://twitter.com/shylilytwitch
π³Youtube: https://www.youtube.com/c/shylily
Personal Socials:
π¦https://discord.gg/c5PUkCwc
π¦https://www.twitch.tv/shyslicer
π¦Shorts: youtube.com/channel/UCWivgsAholCYd4095lBozYA
This channel isn't running by Shylily.
If you are a stre...
@xibrox
you should send that to ibro
he will enjoy that

as fond as I am for C I feel like generic programming in it is not something I'd wish upon my worst enemy
I feel like there really is no good way to do templates idk
well I gave up because template headers are annoying and for macros I needed typeof and wasn't using c23 or something
Just use c++ with only templates
why would you even use bun at that point?
you'd like comptime in zig
idk I think i am just sticking to c because i am too lazy to learn a new lang
do know a fair bit of C++ though
could just do this
just kjsekjg idk
fails with an exception
bun users love slop what can i say
c++30 standard leaked
why is there a buttplug after pre and post
looks like tee and the ligeature for |> some fonts have
you should try uiua
is this an april fools language
100 tons of syntactic sugar
it looks awesome. I'm porting vencord to it rn actually
thanks for showing me it
unironically this is kinda sick
How
Text is more descriptive than a symbol
And you don't have to remember anything
well specifically just the dice being a random number "call"
everything else seems horrible
like imagine inserting these
having to scroll and scroll
that's why I don't get chinese or japanese
That's terrible too lol
because they are logogram languages
seems very difficult to learne
even arabic is easier
well at least to me
KILLLLLLLL
You can just type the ascii name of a function and it will convert it
that's not what i really meant
it's easier to read the name of something and infer what it does compared to a symbol
depends
I don't know any math symbols and whatnot so text always works better for me
I sometimes feel shame for knowing so many useless programming languages
are my eyes genuinely broken
or does the white pill inside look like its off center
like it needs to be shifted to the left, even though it IS pixel perfect
like by source it has 8 pixels of width and 8 pixels of height of margin, upscaled it might be different but they're still equal
and it just doesn't feel that way
border-radius 0 then measure in image editor app
Compiled ffmpeg myself for my app because i aint need no support for obscure formats
and damn
100MB -> 16MB
Today i defended my final theses and when i mentioned my plans about rewrite to tanstack the oponnent started laughing about the recent security vulnerabilities 
do they update their dependencies every 2s
has anyone noticed the native discord app spawning hundreds of X11 clients π€ vesktop doesn't, luckily
thats not how you type uiua or chinese or japanese
you need an input method
on uiua theres an lsp. or you can just let the formatter run
for east asian languages you can type what the character is read like
and also they existed before computers ? π
actually apl is so old they had typewriters used for it. u could just make an uiua keyboard
I wasn't saying that you type those using that menu
I was pretty sure kanji from japanese and stuff and hanzi iirc from both mandarin and cantonese have logogram characters and they use input methods like romaji and pinyin respectively
and specifically uiua must've been typed in some way, and I didn't really expect it was the actual symbols thing in windows+. page
uiua mentioned peak
this is actually just lean tho
yeah but you still dont scroll anything
uiua doesnt actually have an insane amount of characters
though tbh its grown quite a bit
what do the bisexual and trans colored glyphs do π
that's 'both' and 'transpose'
that's awesome
well your screenshot doesn't show the other side so I can't tell
why should that matter
honestly looking at it again it looks fine, but every now and then it just looks off
its my eyes
since im not talknig about the entire thing being pixel perfect but the top left corner
but here
it is intentionally longer for the scrollbar
the rest of the sides are 8px
ohh yeah that would annoy me too
i think its just an illusion
stuff like this is really hard to remember for me idk
I might like it if I could just always make it ascii
im gonna be honest anyone who uses an avatar decoration that blocks off your everything for like a good 4 seconds pisses me off
the one that flooded their profile with "milk" was really sudden and I couldn't stop laughing when I first saw it
I love obnoxious profile decorations
wait till i show you some cool CSS
that removes EVERYTHING nitro related from discord
well i would, but it brokey and i cba fixing
XD
it only removes like 60% of the shit
thanks developer
this is like when minecraft mods make their mixin priority like super high because they think they're so good (when it can clash with others)
@calm ruin
nah that's !important
im: so !important;
ngl I would write that code
@supple whale FIVE FUKCING LINKED PRS
NONE MERGED
oh hey
my exact fucking issue

satan banned from ever touching software again cuz he'll some fucking how always find a million bugs in it
it isn't just me this time :D
I mean still ur fault for using react tbh
i should try out astro again
yop
at this point react is going to become the next cobol
just tried using microsoft word i wanna kms
im gonna need like 10 hours gameplay time to remember keybinds to insert latex and stuff
otherwise its unusable for me
like a billion college students learned react in hopes of getting a job
I don't think that's true
meant it in more of a "fragile 10000 line jsx file that no one wants to maintain or touch"
try pandoc
can I still export to microslop's docx format
or if there is a converter
because anything would be better
my most important thing is just latex honestly
my school forces me to
,i wanted to ping
dude what is that and why is it so cool
yes
weneed to say grace
like they actually take latex files or is it the only one with docx support?
they force me to upload .docx stuff and no other formats
but I'm going to test out pandoc since uh loudlysynthesized talked about it and anything will be better than microsoft word
since it can convert to docx
pandoc seems to maybe support typst too but it seems vague
https://github.com/typst/typst/discussions/2561#discussioncomment-16011826
it might be good to start using typst then and converting with pandoc but this is all like kinda brainstorming I'll test it all later
typst is just supposed to be latex but less stupid so idk how much value you'd get from it
hmm...
no I see that, I'm testing out it's math thing right now
this is honestly pretty neat
I like typing latex like like the desmos kind of latex where you're like typing in it
but I love this a lot
it's weird since I think most people would prefer the latter but I don't mind the typst math mode
I'll try to use it more and see it's capabilities like whitespace and other stuff and see if I end up hating it
ty !!
oh pawsome
I like it more since it seems more similar to programming languages than markup so easier to remember
yeahh
it basically is a programming language too
it has a lot of stuff omg
literally variables
oh god what is this
scroll up
π΄ GEMINI 3.5 AND GEMINI 3.2 JUST DROPPED. Google just entered the chat with two new frontier models and we are testing them LIVE. We are stopping everything to run Gemini 3.5 and Gemini 3.2 straight through the BridgeBench gauntlet. Do they finally challenge Claude Opus 4.7 and GPT 5.5? We are getting the live leaderboard scores and doing the...
WHAT THE FUCK
ON LIVE TOO π
why does zoom out of all apps need ai
also holy fuck social anxiety is over
I can't stand another minute in that meeting
- text search but worse (assuming this had a competent one to begin with)
- lose or misinterpret important details by hoping the slop machine gets the right ide
- vague
- mutuals tab (again, if the app was good in the first place)
- clicking on their profile
- lies. no llm can actually figure out how to look things up unless you blackmail it
yeah no literally
@supple whale
what did I do to deserve this
haha
haha
hahahaha
hahaha
hahahahahahah
actuall fucking idiot monkeys on typewriters
who? chrome devs?
no the person who wrote that component
what do you think is under the red scribvle
was it you?
HAHAHAHA
that makes it like x10 funnier
just click it
what should i have done π
want to know how i read what is written there?
idk if this is my autism but I've been collecting error pages
I used one of those for a fake page
I was very confused how it managed to say my ip AND ask me to click to reveal
wdym
that's how it is in normal cloudflare
interesting
// the end user cannot configure their GPU on linux correctly, generic linux shit
// they dont realise that blur is consistently some of the most expensive thing to compute in rendering, even with a gpu, and blur over 6px should never be used
// some1 explaining that
// another person explaining that
firefox handles it without issue 
i'm using AMD π
but yeah TLDR you're MEGA skill issuing here, and if you ever use CSS blur >6px ur balls should be cut off
as the compute for blur is EXPONENTIAL
chrome seems to pick up my gpu
4px blur
we're talking O(n)=n^2 where N is the number of sampled pixels
SURE DOESNT LOOK LIKE IT BUDDY
then yeah that's fine
react is likely being react, and spamming repaints, or you're animating something like width/height like a typewriter monkey
and its spamming repaints
which re-computes blur EVERY FRAME
so open this in devtools
and check how much CSS cope you're experiencing
I fucking wish but I'm waiting till 7900 xtx or xt comes down in price before bothering upgrading
no, this is an issue with anything moving in the background
a generic canvas animation will trigger it
come VC
not interested in a 9070 xt because it's weaker with raw performance and that's all I care about
why are you in the regulars one if you want people to join
discord has a vc background blur animation that they disable if no hardware acceleration
without it, it's giga laggy; with it it's fine
i launch brave with --ignore-gpu-blocklist once
close brave
now gpu acceleration works even without the flag
how


more reasons to ban salad from ever interacting with puters tbh
forced to become a monk in the alps
trully
man
he was painting on a canvas every frame, without using desnychronized
i mean every1 that ever used canvases ever has made that mistake at least once
why do people never optimise UI for minimal repaints

why are you asking webdevs to optimize you know full well most of them don't even know what that means
what does frontend optimization look like? do you use frontend frameworks at all?
pretty much like any other optimization just reduce the amount of work needed to do for the same result
I guess browser devtools do have profilers
they're really good too
I once saw a showcase on all the cool shit you can do with the debugger but I forgot most of it
you can do a bunch of fancy breakpoints
the profiler can give you a line-by-line breakdown in your source code
"breakdown"

does this mean like time over like 10 seconds or something because idk how one call could be 1.8 ms IN a render loop
total time over entire profile
like a flamegraph
that does make more sense
95% of the time I see this word it's from an llm
along with "hit the nail on the head"
"You've found the Smoking Gun"
god damn it
only gemini bro
outing ourselves π
it's ok
some guy made this pr in my repo and they made fixes to something that never was broken and idk if I'm trying to be too nice but this sentence keeps bugging me because
I hope I'll have my next gpu by the time they stop free tiers
using ai with respect is different then just pasting the output of an ai in a pr
exclamation mark really sells it
normal person would say like "oh yeah I guess so" or something after you explained your thing
I guess using me as a point of reference for "normal" isn't a good idea but I don't sound like a clanker at least
people on linkedin always sounded like this
lovely ai slop just close and block don't even have to feel guilty
vencord should move to codeberg for this reason
what if the guy actually meant it and it came from him https://cdn.discordapp.com/emojis/922302611238047774.webp?size=48&animated=true&name=Eyes&lossless=true
its funny how many people act like moving to codeberg will fix this.
the only thing that will actually be better on codeberg is uptimes as github can no longer sustain > 80%
It's bad, but they're only at 85% not sub 80
I meant to say 90
it is amazing to me they cant even keep one sigma of uptime
I should get gemini to slop make me GUI
yeah codeberg solves nothing
its github or self-hosted
there's really nothing else
idk i feel like a lot of linkedin ai bros only use github
downloads speeds max out at 2mb/s for me on gh but codeberg is a little better
idk why their servers hate me, i tried fixing it
worse for reading
if one were to actually get into JS slop development for basic guis..... is there some new hype other than react
just use anything and host a local website on end user's computer
svelte was pretty cool i guess
Use whatever you're most comfortable with
won't solve
React, svelte and vue are all good choices
codeberg has wayyy worse uptime than github
I dont know anything in the JS ecosystem and i want to subject myself to horrors
unless they fixed it
they did
for a few weeks i could barely clone any repo
main reason I stopped using codeberg at all is because of way too much downtime and lag
It has been snappier for me recently
that's nice
don't use js ecosystem
oh yeah you'd probably like go templ
i do
htmx
the zoomers love shilling this
i TRY and ask what JS slop i should use and the first responses are DONT USE JS
no your first response was svelte
svelte isnt slop
yes
i enjoyed using it when i did frontend for a little bit
cuz it is
but yeah svelte is less slop than average for js
scoped styles my beloved
erm not all js is slop
also the guide will tell you about deep state reactivity and runes in the first bit of it but i swear they're not trying to curse you
CSS drives me insane. I can see why there are multiple frameworks people use on top of raw css files
tailwind is pretty nice if you have reusable components
i used to hate it because it looks ugly on first impression but it makes sense if you give it some time
the fact that BOM exists should be reaosn enough to use tailwind
tailwind is nice but like usually I just end up writing normal css because astro makes it insanely easy to do so
also tailwind is aislop and the configuration is abysmal
configration got a lot better with tailwind 4 at least
i'm unsure if i'd prefer scoped styles or tailwind at this point
i hated reading even small components without tailwind because i kept having to scroll back and forth to see what styles were going where
simple, svelte/astro styles are best
i already use astro
svelte is already so ugly you might as well use tailwind to make it uglier
i strongly believe in locality of behavior
you just put the styles in the same file as your html and they're all scoped so you dont even need to use classnames if you separate components well
svelte syntax weirder than nix
astro/svelte styles also encourage using semantic html elements more so you have unique selectors without classes
yoppp
you should be using those anyway though
something like astro but with less dependencies and uses deno would be so good @delicate root
most people dont
idk it seemed normal to me after svelte 5
why deno π
ydgi
have you even used deno recently
it's significantly better than it used to be
the only weird parts about nix syntax to me is escaping ${ in a multiline string and the url string syntax (now deprecated)
deno just simplifies everything and has an amazing stdlib
node stdlib is also pretty good, just that docs aren't that pleasant to navigate (last time i chekced)
deno.json lets you configure basically everything and it keeps everything centralised and dead simple
package meta, lint and format config, experimental features, and scripts and more are all in deno.json
denos stdlib uses more semantic and modern js features from what I've seen
it has great async apis
i haven't used deno outside the repl but i might if i ever need to write js again (used to be a bunner)
doing parallel async in deno is also dead simple
there's a ton more but I haven't explored much
parallel async is a funny thing to say
why
wdym
async often (and in the case of js isnt) parallel
I had to make a image scraper script in deno and it was insanely easy to parallelise it
I forgot which deno package provides it
Promise.allSettled?
thats nearly always implicit cross languages
its just a weird way to phrase it
What is the difference between a promise and a future?
only thing I hate about deno is it's relatively undocumented and isn't well search indexed so I can't find what I mean
naming
a future is a read-only placeholder view of a variable, while a promise is a writable, single assignment container which sets the value of the future.
useless vagueslop
yeah cause a functions you are waiting the result of can be a "promise", invalidating this
or youre python and just call it all a future
rust futures and js promises have basically no difference other than eager/lazy but that's not from the name
i wish some sort of future system was in the GO! stdlib
I think I misunderstood what parallel means
did you you mean concurrent
https://jsr.io/@std/async@1.3.0/doc/~/pooledMap
I used this
yes
just use https://github.com/chebyrash/promise 
oh tailwind is cool
does go not have optional struct fields @royal nymph i was looking at navidrome's response structs and was confused why nothing was marked as optional or something
I wrote my own https://github.com/GreatValueCreamSoda/go-futures
message passing and green threads are so much more pleasant i think
everything is optional always lol
horrible
actualy my favorite part of golang
why
null pointers
I don't think node lets you do this easily
if you dont specify a field it just becomes empty value
which is 0, "", nil, etc depending on type
sometimes there isnt always explicit steps that a value will undergo/i dont wanna setup an entire explicit parallel pipleine. So futures is much easier
unironically stdlib uses pointer field as a way to mark field as nullable for json marshalling
also by optional I mean nullable
pointers are nullable in go, it is the default
thats only for pointers
you dont use pointers that much in go
the edit implies you have a choice
so navidrome's api is terrible just because of go lol
just incompetent devs
bro do you realise how fucking old subsonic is
zt's library had so many nullability issues because navidrome just makes things null when it wants to
I'm talking about both subsonic and navidrome
there's 2 apis
both are terrible
thats a client issue for not handling nullability correctly 
the issue where artist id can be null is still an issue in navidrome's api
and subsonic/navidrome's fault for not documenting well
why isn't it just defined in the struct
because go just doesnt work like this
I still can't manage to read this properly, please clarify
btw unless I am looking at the wrong struct, ID cant ever be null, only empty string https://github.com/navidrome/navidrome/blob/master/server/subsonic/responses/responses.go#L95-L103
responses.go: Lines 95-103
type Artist struct {
Id string `xml:"id,attr" json:"id"`
Name string `xml:"name,attr" json:"name"`
Starred *time.Time `xml:"starred,attr,omitempty" json:"starred,omitempty"`
UserRating int32 `xml:"userRating,attr,omitempty" json:"userRating,omitempty"`
AverageRating float64 `xml:"averageRating,attr,omitempty" json:"averageRating,omitempty"`
CoverArt string `xml:"coverArt,attr,omitempty" json:"coverArt,omitempty"`
ArtistImageUrl string `xml:"artistImageUrl,attr,omitempty" json:"artistImageUrl,omitempty"`
}
lets say for example i want to download multiple files in parallel.
instead of setting up an entire thread pool myself i can easily do something like
files: list[str] = ["totally", "sfw", "content"]
futures: list[Future[str] = []
with ThreadPoolExecutor() as t:
for f in files:
futures.append(t.submit(download, f))
for future in as_completed(futures):
#idk do stuff here
instead of having to make my own waitgroup, making sure channels properly close and no goroutines deadlock. Its a much more pleasant experience
using pythons concurrent.futures as an example but it almost maps 1:1 for any language with future support
oh python doesn't have function coloring?
it does with async io
but you dont have to use it
threading.Thread spawns a coroutine just like go in GO!
can you fully use futures instead of async io without it being worse?
yes
very intriguing..
also I think you'd really like how elixir handles stuff like this
https://hexdocs.pm/elixir/1.20.0-rc.4/Task.html#async_stream/3
idk about what ven posted but i tried to make it as easy as possible to duplicate this in go
language kind of sucks for smaller script-like things and stuff though since the runtime takes a while to start up and shipping it sucks (even with burrito)
have you tried profiling this vs equivalent normal go code?
No but it will undeniably be slower than "native" as i have to do some black magic/runtime reflection to get the "AsCompleted" working
awh
same thing as high level iterator libraries then..
slices in stdlib is pretty nice at least
Funnily enough i dont think what ven posted supports ascompleted
this is literally just .map on a ThreadPoolExecutor
which yes i do use a lot
and would actually be preferable here
i just forget sometimes it exists
maybe I'll try python again I guess
I had a bad time last time mostly due to tooling being lackluster on nix since nix wants to handle dependencies for you and uv doesnt work well with it
also tried the alpha lsp
probably a terrible idea but I like touching nightly stuff and whatnot
use pylance and venv
do I just hope I won't need a native dependency?
wdym native dependency
like dependency that needs a .so library instead of being pure python
also doesn't venv need you to source a file to do the thing instead of the toolchain just knowing you're in a project dir (like every js thing with package.json)
this question confuses me. Like if you wanna do something with pytorch or cuda it will still resolve your systems install
you run a python file to init the venv if thats what youre asking
or you can run a command to do so
nixos is different with that
ο
Έ ls -R /usr /lib
/usr:
- ξΏ bin/
- ξΏ local/
/usr/bin:
- σ°‘― env -> /nix/store/jjxngswsb214vb58qx485jhmilf0kxxy-coreutils-9.10/bin/env*
/usr/local:
- ξΏ share/
/usr/local/share:
- ξΏ fonts/
/usr/local/share/fonts:
- ξΏ i/
- ο m/
/usr/local/share/fonts/i:
1.4M ο± IosevkaCustom_Regular.ttf
/usr/local/share/fonts/m:
/lib:
ξΆξΆξ‘ ξ΄ ~ ξ΄ξ΄ξ΄ξ΄ ξΆ Wed 01:24:36 AM ξ΄
3ms ο
Έ
nixpkgs has pretty good ways to do python dependencies but tooling really doesn't like it
idk i've loved the stability and never having dependency errors (for things that aren't my own software)
it really is "write once, run everywhere (that has nix installed)" i feel
i'd probably use gentoo if not for nix though but i haven't actually tried it so can't say for sure
i know a few autists who use gentoo
what the fuck why would you do this
shockingly, i didn't write that
it has to be an edge case used as a feature right?
i don't think anybody wrote this explicitly
"you" as in the anonymous 3rd person thing
I'd really want to see how it happened
but why..
if notepad++ can open a 5 gigabyte file and let me scroll through all the lines without lagging why can't this 20mb file show up dude π
I was able to fetch it without preview and firefox displayed it fine so at least it's workarounded I don't need to search for a config
because who wants to optimize a file preview
I know that VS code will do it, slowly
vscode is ok for perf, but it does tend to choke on large files
i always use kate for massive files
best perf out of any editor i've tried
but it does tend to choke on large files
Thatβs what I meant lol
Cause QT is good
i was supposed to make a snarl subpackage like that
a little
TeamPCP post 4 hours ago:
QRT: github
We are investigating unauthorized access to GitHubβs internal repositories. While we currently have no evidence of impact to customer information stored outside of GitHubβs internal repositories (such as our customersβ enterprises, organizations, and repositories), we are closely monitoring our infrastructure for follow-on activity.
lets go when r they putting it on chinese git websites again
gh source code was already out there if you counted enterprise but its getting all rewritten in go so this will be nice to read
inch resting
wait like the entire ruby part is getting replaced?
yes
love
rewritten with copilot x claude pro just like bunβΌοΈ
have you tried helix or zed yet
zed sucks, it doesn't even have an extension api
I haven't noticed any slowdowns in either like ever other than opening the file in helix but it's perfectly fine after that
isn't helix a TUI editor
huh they have a built in extension thing?
yeah
hm yeah I guess it's just languages, themes, and snippeta
idk I guess it'd be harder to implement when it's not web stuff
I guess neovim managed but they have a very different way of handling ui that is easier to extend?
I've never tried making an editor so I'm mostly just guessing
i mean you can't do any custom UI with vscodes api compared to something like jetbrains or neovim
you just have webviews
but i don't think zed do webviews
so they will need some form of custom UI
you have the sidebar buttons and stuff like thunderclient and sql browsers
the entire editor is web so I think it still counts
yeah that's just all webviews
well you're stuck inside an iframe
idrk what webview would mean when you're already in chromium? like an iframe?
oh ok
webview to me is specifically stuff like the android api used in ksu manager
webview is just what the vscode API calls them
copium from vs code devs about making browser based editor I guess
it all started as monaco...
github atom?
I meant vsc started from monaco
they made electron or whatever
I thought it was the other way around
no, it's the otherway around
wait really?
yes
monaco just vs code without vs
yeah
textual studio code
I only use it for websites where I don't care about mobile support
codemirror has better mobile support
only mobile thing I know is acode
monaco is made from the extracted sources of vscode
monaco on mobile has got to be the most torturous thing someone can be put through
π
unironically prefer using raw vi in termux
if you need anything but inserting a letter then you're done
I just really really like monaco on pc, I made this little page with it
ignore the output
I thought it was neat
in life there's roblox
yes'nt
it's every discord webpack module extracted into a web ui
you can browse them
and use LSP features like ctrl-click to jump around
this is better than using sources in the devtools in the app imo at least
but I would've enjoyed that
that's somewhere down the todo list
if I have time are you friendly to prs
yeah
go for it
you'll see the build system/everything else and be horrified and give up 
plz be honest with me if my code is terrible btw I have winged everything I have ever coded
π
e
@stoic depot
doesn't look like a terrible reason to use multiple languages in one project
seems sensical
this malware is running on my server btw π
i need to update the web LSP client to be a shared worker
that way multi-tab browsing works properly
DO
it's written in ruby
gh code is so clean
I know
ruby
Ruby
crazy
true btw
ror yes but is it fr still mysql
i highly doubt its only mysql, their infra must be so big its not a single db
idk anymore
yes
you know mysql can cluster as welll
yeah
who wants github code samples
ME
send the entire thing tbh
pay
how much
slophub
$50k+
of what
@royal nymph pay

DMs ;)
coaxialed into a snafu
