#πŸͺ…-progaming

1 messages Β· Page 141 of 1

lyric latch
#

theres like 6-7 pms already πŸ₯Ί

winged mantle
#

lol trumpmobile uses radio buttons for checkboxes lol

#

wait ig this isn't very on-topic sorry

fierce cypress
#

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

fallen nebula
fierce cypress
dense sand
#

Is bun a JS version of "we built a c compiler that can compile linux kernel in Claude"

fierce cypress
dense sand
#

Yea i know

#

One of the damn useless things they added

fierce cypress
#

it used to just be "js tooling with some more batteries and fast"

winged mantle
fallen nebula
fierce cypress
#

normal input checkbox elements are styleable now so they must've actively been trying to make it worse?

hallow jungle
#

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

tired vigil
#

You have to press ctrl-R

dense sand
lavish cloud
#

node+webpack is good enough tbh
anything more complex I just don't use JS for

supple whale
#

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

supple whale
#

@jade stone end me

astral sand
fallen nebula
astral sand
#

this is my server btw

fallen nebula
fierce pendant
#

remaking my website every month because i am never quite happy with it

fierce cypress
lavish cloud
solid gazelle
#

pnpm create vite

lavish cloud
#

why would i

solid gazelle
#

it sets up dev environment and build script for u

#

its a must use in node js haha

jade stone
#

vite is a bundler for the web with a rollup-based plugin api

#

really good, batteries included

lavish cloud
#

I mean, if all I need is a bundler and minifier why would webpack not be enough

jade stone
solid gazelle
#

well it doesnt take anything to set it up and as sadan said the DX is better and so are the results

jade stone
#

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

solid gazelle
#

its like "would you take 100 dollars or 500 dollars" and you said you only need 100 dollars so why would you take 500

fallen nebula
#

vite is just rolldown isn't it ?

lavish cloud
#

webpack is like half a second at worst?

fallen nebula
#

it's a wrapper

jade stone
lavish cloud
#

typically like <500 loc

jade stone
#

why are you even using a bundler 😭

lavish cloud
#

for deps

jade stone
#

just use esbuild

#

for that little code, it's the best option by FAR

fallen nebula
#

just use deno smh

jade stone
#

as a bundler for the web???

fallen nebula
jade stone
#

you're better served by other options

fallen nebula
#

deno bundle is actually esbuild btw

jade stone
#

oh 😭

fallen nebula
#

the advantadge is i guess you don't have to mess around with shit

#

you just have deno and that's it, nothing else

jade stone
#

it has a very powerful CLI API

fallen nebula
#

tbh i'd argue if you have 500 lines you should have written proper optimized js by hand

solid gazelle
#

you need bundler for TS and JSX though haha

#

Or not bundler other word

fallen nebula
solid gazelle
fallen nebula
#

i forgor which shit was spitting out ternaries so fucking deep it made a stack recursion error on firefox

jade stone
#

tbh that's on spidermonkey

#

it should have been able to handle it

solid gazelle
#

@jade stone @jade stone look

jade stone
fallen nebula
#

just don't have deps

solid gazelle
#

new way of making objects haha :)

fallen nebula
#

but why

#

this shit could be x += 2

jade stone
#

(the compiler)

fallen nebula
#

why are we doing OOP in Javascript

solid gazelle
#

javascript is the OOP

fallen nebula
#

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

jade stone
lavish cloud
fallen nebula
#

i have a balanced diet

supple whale
#

but yeah for web sure

jade stone
supple whale
#

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...

jade stone
pearl stagBOT
# jade stone https://github.com/sadan4/sadan.zip/blob/web/scripts/rollup-plugin-copy-native-m...

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});
            `;
        },
    };
}
supple whale
#

vite can be good if u dont use the cli, but instead home-cook ur own shit

jade stone
supple whale
#

but almost no1 does

#

oh no createRequire

#

anything but

#

sir use .cjs

pearl stagBOT
pearl stagBOT
supple whale
#

if you dont do this for .node files you're a fucking monkeyh

jade stone
supple whale
#

jesus fuck

#

that is horrific

jade stone
supple whale
#

ya ik

jade stone
#

cjs is a plague

supple whale
#

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

fierce cypress
#

it is technically there but idk if it even counts

supple whale
#

because with this you can have header stripped prebuilds

#

which are ABI agnostic

#

and run from node 10-26+

#

rather than being ver specific

jade stone
jade stone
#

how

#

all of my node modules use napi-bindgen

supple whale
#

SIR YOU LEGIT IMPORT .NODE MODULES

#

OH NO

#

anyways

#

that code is for dynamically resolving prebuilds based on platform

#

not actually compiling anything

jade stone
#

yeah i figured as such

supple whale
#

its so good

jade stone
#

i've had issues with node-gyp on windows arm64

supple whale
#

yeah you will

supple whale
#

ABI agnostic prebuilds are fucking bae

jade stone
supple whale
#

i fucking ship prebuilds for android and iOS

#

and they work

#

XD

pearl stagBOT
# supple whale https://github.com/ThaUnknown/node-yencode/blob/master/.github/workflows/build-r...

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
supple whale
#

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

fallen nebula
#
rxddit.com

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...

woeful perch
patent vortex
#

awesome code! what prompt did you use?

inland palm
#

oppression

fierce pendant
#

pretty sure i just made an infinite loop on cloudflare infrastructure and am costing them money

fierce pendant
#

uhhh

#

what

#

nvm its missing something

#

wtf are you even doing cloudflare

#

i need to switch to github actions i cant do this anymore

queen jasper
#

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

fierce cypress
#

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

queen jasper
#

also is there a less ugly way to this

fierce cypress
#

mango

fierce cypress
queen jasper
#

ionno i just got the regex from stackoverflow

fierce cypress
#

idk I don't think it's that ugly

#

actually wait fucking parseInt lmao

unkempt ember
winged mantle
lyric latch
#

100x more beautiful

fierce cypress
#

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

lyric latch
#

just slice 2 more chars and iterate through a normal string...

fierce cypress
#

I forgot how to use this language

lyric latch
#

oh its take two

#

i see

#

still evil

fierce cypress
#

functional programming has gotten to me I guess idk what to do when I can't reach for my fancy iterating things

crimson sparrow
#
const hexToRgb = (h: string) => h.match(/\w\w/g)!.map(x => parseInt(x, 16))
fierce cypress
#

\w includes numbers?

crimson sparrow
#

yes

winged mantle
#

vcook 🐫 husk

elder yarrowBOT
crimson sparrow
#

though to be fair I'm pretty sure this would do some funny stuff if it get's invalid characters

winged mantle
#

wait what I just looked at what you're doing why would you use regex 😭

fierce cypress
#

it doesn't deal with the hash thing at the start

crimson sparrow
#

ignores it completely

winged mantle
#

if you just do parseInt("FFFFF", 16) it'll give you a colour int

fierce cypress
#

it's supposed to be three element array

fierce cypress
winged mantle
crimson sparrow
winged mantle
#

this feels like the natural way to do it to me, idk

winged mantle
#

you don't need multiple parseInt calls or regex lol

fierce cypress
#

I struggle understanding bitshifts for the most part

lyric latch
crimson sparrow
fierce cypress
#

regex felt unnecessary yeah but my solution was dumber

fierce cypress
lyric latch
fierce cypress
#

that's what it was intended for I think

winged mantle
#

yeah, that was the idea

crimson sparrow
winged mantle
#

trolley

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

lyric latch
#

type branding

winged mantle
#

❀️ type branding

lyric latch
#

i actually use unique symbol for this

winged mantle
#

idk i have probably been doing too much go

fierce cypress
winged mantle
#

forgot

fierce cypress
#

you seemed to check for it with the length thing idk

winged mantle
#

it would also allow @00000

fierce cypress
#

what no now you're checking it twice

lyric latch
#

you should check if its 6 or 7 characters

fierce cypress
lyric latch
#

because if its 7, its likely a hashtag

fierce cypress
winged mantle
#

and you need to both check for the prefix and remove it

#

btw bitwise operators are not that hard to understand

fierce cypress
fierce cypress
lyric latch
fierce cypress
#

I don't really know what direction the shifts are either

#

why can't it be big shift and little shift

winged mantle
lyric latch
#

endianess doesnt matter

#

because its a representation

winged mantle
lyric latch
#

bitshifts dont care about representations

winged mantle
#

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 blobcatcozy

fierce cypress
#

LE is the more common one though :(

#

maybe not when c was made up

winged mantle
#

nah palm is right it's just independent of the representation

fierce cypress
#

vee no please don'\t look at that

winged mantle
#

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

fierce cypress
#

it must be the slepe deprivation

fleet cedar
#

Our customary way of writing numbers is big endian

#

So compared to that, le is indeed reversed

winged mantle
#

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

fleet cedar
#

Unusual but not conceptually strange

winged mantle
#

does the concept of little endian even exist without a form of memory with numeric addresses

fleet cedar
#

Obviously?

winged mantle
#

I thought it was the concept of byte order rather than digit order lol

fleet cedar
#

Bytes are digits

#

Computers are base 256

winged mantle
#

never heard anyone say that before, but I guess it's debatable

fleet cedar
#

They're also base 2⁢⁴

winged mantle
#

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

fleet cedar
#

It literally means what end you eat eggs from

winged mantle
#

not in computer science 😭

#

isn't that fictional anyway

fleet cedar
#

Eggs are very important to computer science

fleet cedar
winged mantle
#

i hope you do not teach computer science to people

#

then again I guess it is relevent historical knowledge

worldly sigil
#

another multimillion line diff has hit the pr tab again

winged mantle
#

they ported the github issue templates to assembly

lucid forge
#

guys its javascript

#

v8 is holy and probably knows when to use an u8[] tbh

fierce cypress
#

what no compiler does to an mfer

lucid forge
#

v8 knows best

winged mantle
#

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 😭

fierce cypress
#

implicit reference types and ZERO way to say you just want a pointer for efficiency but you won't mutate things

winged mantle
#

wasn't trying to debate golang vs js lol

fierce cypress
#

I'm just upset by it being like this

winged mantle
#

golang is a little better though in terms of values in my opinion since you're not forced to use reference types

fierce cypress
#

I still don't understand semantics of slices, more specifically when they have to reallocate

lucid forge
#

use a functional programming language where everything is immutable

fierce cypress
#

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

fierce cypress
#

I'm gonna be writing a lot of lua and emacs lisp in the coming days/weeks though weh

winged mantle
fierce cypress
#

yeah that's my issue with them

#

also wish iterators didn't have to cheat to work

ornate quiver
royal nymph
#

it can happen anywhere

ornate quiver
#

its satire mimicking the onion

frosty obsidian
ornate quiver
fierce pendant
ionic lake
fierce pendant
jade stone
#

Why use macros when you can just have codegen scripts

jade stone
fierce pendant
#

i like gnu m4 unix hell more

stoic depot
winged mantle
#

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

fierce pendant
#

i do watch tsoding but i got m4 from grok <3

fierce cypress
#

what was your query lmao

fierce pendant
#

idk i forgor

jade stone
fierce pendant
supple whale
#

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

frosty obsidian
#

there is no "no slop" option

winged mantle
#

-S0

vagrant crescent
#

yeah node was always the way to go

supple whale
#

BUNSLOP MENTIONED

#

SLOP SLOP SLOP SLOP GET PREGNANT GET PREGNANT GET PREGNANT

pearl parrot
vagrant crescent
#

you should send that to ibro

#

he will enjoy that

winged mantle
#

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

jade stone
fierce cypress
winged mantle
#

idk I think i am just sticking to c because i am too lazy to learn a new lang

winged mantle
#

could just do this

#

just kjsekjg idk

frosty obsidian
frosty obsidian
stoic depot
#

c++30 standard leaked

lyric latch
#

why is there a buttplug after pre and post

pseudo sierra
#

looks like tee and the ligeature for |> some fonts have

fierce cypress
stoic depot
#

is this an april fools language

worldly sigil
#

100 tons of syntactic sugar

stoic depot
#

it looks awesome. I'm porting vencord to it rn actually

#

thanks for showing me it

#

unironically this is kinda sick

jade stone
#

Text is more descriptive than a symbol

#

And you don't have to remember anything

stoic depot
#

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

jade stone
stoic depot
#

because they are logogram languages

#

seems very difficult to learne

#

even arabic is easier

#

well at least to me

#

KILLLLLLLL

tired vigil
jade stone
#

it's easier to read the name of something and infer what it does compared to a symbol

lyric latch
fierce cypress
#

I don't know any math symbols and whatnot so text always works better for me

fierce cypress
stoic depot
#

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

indigo yew
#

border-radius 0 then measure in image editor app

signal wadi
#

Compiled ffmpeg myself for my app because i aint need no support for obscure formats

#

and damn

#

100MB -> 16MB

dense sand
#

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 fr

lyric latch
#

do they update their dependencies every 2s

wide current
#

has anyone noticed the native discord app spawning hundreds of X11 clients πŸ€” vesktop doesn't, luckily

lucid forge
#

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

stoic depot
#

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

fierce pendant
lucid forge
lucid forge
#

uiua doesnt actually have an insane amount of characters

#

though tbh its grown quite a bit

stoic depot
lucid forge
#

that's 'both' and 'transpose'

stoic depot
#

that's awesome

fierce cypress
stoic depot
#

why should that matter

#

honestly looking at it again it looks fine, but every now and then it just looks off

#

its my eyes

stoic depot
#

but here

#

it is intentionally longer for the scrollbar

#

the rest of the sides are 8px

fierce cypress
#

ohh yeah that would annoy me too

stoic depot
#

i think its just an illusion

fierce cypress
#

I might like it if I could just always make it ascii

stoic depot
#

im gonna be honest anyone who uses an avatar decoration that blocks off your everything for like a good 4 seconds pisses me off

fierce cypress
#

the one that flooded their profile with "milk" was really sudden and I couldn't stop laughing when I first saw it

tired vigil
#

I love obnoxious profile decorations

supple whale
#

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

stoic depot
#

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)

jade stone
stoic depot
#

im: so !important;

calm ruin
jade stone
#

@supple whale FIVE FUKCING LINKED PRS

#

NONE MERGED

#

oh hey

#

my exact fucking issue

pseudo sierra
#

satan banned from ever touching software again cuz he'll some fucking how always find a million bugs in it

jade stone
#

it isn't just me this time :D

pseudo sierra
#

I mean still ur fault for using react tbh

jade stone
pseudo sierra
#

yop

worldly sigil
#

at this point react is going to become the next cobol

stoic depot
#

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

fierce cypress
#

I don't think that's true

worldly sigil
#

meant it in more of a "fragile 10000 line jsx file that no one wants to maintain or touch"

stoic depot
#

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

stoic depot
signal oakBOT
stoic depot
#

dude what is that and why is it so cool

fierce pendant
austere dragon
#

weneed to say grace

fierce cypress
stoic depot
#

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

fierce cypress
stoic depot
#

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

fierce cypress
#

typst is just supposed to be latex but less stupid so idk how much value you'd get from it

stoic depot
#

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

stoic depot
#

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 !!

fierce cypress
#

oh pawsome

#

I like it more since it seems more similar to programming languages than markup so easier to remember

stoic depot
#

yeahh

#

it basically is a programming language too

#

it has a lot of stuff omg

#

literally variables

stoic depot
#

never thought I would have the need to do this but now that I can I want to

signal wadi
fierce cypress
vagrant crescent
#

WHAT THE FUCK

#

ON LIVE TOO 😭

stoic depot
#

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

fierce cypress
# stoic depot why does zoom out of all apps need ai
  • 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
stoic depot
#

yeah no literally

jade stone
#

@supple whale

fierce cypress
supple whale
#

haha

#

hahahaha

#

hahaha

#

hahahahahahah

#

actuall fucking idiot monkeys on typewriters

stoic depot
#

:3

jade stone
supple whale
#

no the person who wrote that component

fierce cypress
supple whale
#

HAHAHAHA

#

that makes it like x10 funnier

stoic depot
jade stone
supple whale
fierce cypress
#

I totally fell for it

stoic depot
#

idk if this is my autism but I've been collecting error pages

#

I used one of those for a fake page

fierce cypress
#

I was very confused how it managed to say my ip AND ask me to click to reveal

stoic depot
fierce cypress
#

interesting

supple whale
# jade stone wdym
// 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
fierce cypress
#

my ip starts with 93 I think

#

it's always 93

jade stone
supple whale
#

likely because it attaches to gpu

#

because inser linux gpu config skill issue here

fierce cypress
#

nix fixes this

#

nvidia stuff is one of the biggest eye openers for nix being life

jade stone
#

i'm using AMD 😭

supple whale
#

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

supple whale
#

we're talking O(n)=n^2 where N is the number of sampled pixels

supple whale
supple whale
#

react is likely being react, and spamming repaints, or you're animating something like width/height like a typewriter monkey

#

and its spamming repaints

jade stone
#

OH

#

@supple whaleHOW

supple whale
#

which re-computes blur EVERY FRAME

#

so open this in devtools

#

and check how much CSS cope you're experiencing

fierce cypress
jade stone
#

a generic canvas animation will trigger it

supple whale
#

come VC

fierce cypress
#

not interested in a 9070 xt because it's weaker with raw performance and that's all I care about

fierce cypress
royal nymph
#

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

jade stone
#

close brave

#

now gpu acceleration works even without the flag

#

how

supple whale
pseudo sierra
#

more reasons to ban salad from ever interacting with puters tbh

#

forced to become a monk in the alps

supple whale
#

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

pseudo sierra
supple whale
#

idk i do it

#

i go to insane lengths to optimise my code

pseudo sierra
#

you see you have a brain

#

salad does not

#

salad is the common webchud

fierce cypress
pseudo sierra
#

pretty much like any other optimization just reduce the amount of work needed to do for the same result

fierce cypress
#

I guess browser devtools do have profilers

jade stone
fierce cypress
#

I once saw a showcase on all the cool shit you can do with the debugger but I forgot most of it

jade stone
#

the profiler can give you a line-by-line breakdown in your source code

fierce cypress
#

"breakdown"
husk

stoic depot
# jade stone

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

stoic depot
#

I've never used it before but I would like to understand

#

I seeee

jade stone
#

like a flamegraph

stoic depot
#

that does make more sense

fierce cypress
#

along with "hit the nail on the head"

stoic depot
fierce cypress
#

god damn it

stoic depot
#

only gemini bro

fierce cypress
#

outing ourselves 😭

stoic depot
#

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

fierce cypress
#

I hope I'll have my next gpu by the time they stop free tiers

stoic depot
#

using ai with respect is different then just pasting the output of an ai in a pr

fierce cypress
#

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

royal nymph
fierce cypress
#

vencord should move to codeberg for this reason

vagrant crescent
ivory heath
jade stone
ivory heath
#

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

supple whale
#

yeah codeberg solves nothing

#

its github or self-hosted

#

there's really nothing else

ivory heath
#

it solves uptime at least

#

download speeds however

fierce cypress
ivory heath
#

the slop will continue till moral improves

#

also pyqt is kinda cool

fierce cypress
#

idk why their servers hate me, i tried fixing it

pseudo sierra
#

git over mailing list would solve slop prs tbh

#

at least partly

fierce cypress
#

worse for reading

ivory heath
#

if one were to actually get into JS slop development for basic guis..... is there some new hype other than react

fierce cypress
#

svelte was pretty cool i guess

jade stone
royal nymph
jade stone
#

React, svelte and vue are all good choices

royal nymph
ivory heath
royal nymph
#

unless they fixed it

ivory heath
#

for a few weeks i could barely clone any repo

royal nymph
#

main reason I stopped using codeberg at all is because of way too much downtime and lag

jade stone
royal nymph
#

that's nice

fierce cypress
#

oh yeah you'd probably like go templ

ivory heath
#

i do

royal nymph
#

the zoomers love shilling this

ivory heath
#

i TRY and ask what JS slop i should use and the first responses are DONT USE JS

fierce cypress
#

no your first response was svelte

royal nymph
#

svelte isnt slop

fierce cypress
#

this person sees all js as slop

#

(i think)

ivory heath
#

yes

fierce cypress
#

i enjoyed using it when i did frontend for a little bit

pseudo sierra
#

but yeah svelte is less slop than average for js

fierce cypress
#

scoped styles my beloved

royal nymph
#

erm not all js is slop

fierce cypress
#

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

ivory heath
fierce cypress
#

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

royal nymph
#

tailwind is slop

#

ai solidified tailwind's slopness even further

young flicker
#

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

fierce cypress
#

configration got a lot better with tailwind 4 at least

#

i'm unsure if i'd prefer scoped styles or tailwind at this point

young flicker
#

they don't know how to make a good api it's insane

#

hop on astro

fierce cypress
#

i hated reading even small components without tailwind because i kept having to scroll back and forth to see what styles were going where

royal nymph
fierce cypress
#

i already use astro

young flicker
#

svelte is already so ugly you might as well use tailwind to make it uglier

fierce cypress
#

i strongly believe in locality of behavior

royal nymph
#

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

fierce cypress
#

yeah i know

#

i still found it harder to read

young flicker
#

svelte syntax weirder than nix

royal nymph
#

astro/svelte styles also encourage using semantic html elements more so you have unique selectors without classes

young flicker
#

yoppp

fierce cypress
#

you should be using those anyway though

young flicker
#

something like astro but with less dependencies and uses deno would be so good @delicate root

royal nymph
fierce cypress
young flicker
#

ydgi

young flicker
royal nymph
#

no because why would i

#

nodejs is good

young flicker
#

it's significantly better than it used to be

fierce cypress
#

the only weird parts about nix syntax to me is escaping ${ in a multiline string and the url string syntax (now deprecated)

young flicker
#

deno just simplifies everything and has an amazing stdlib

fierce cypress
#

node stdlib is also pretty good, just that docs aren't that pleasant to navigate (last time i chekced)

young flicker
#

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

young flicker
#

it has great async apis

fierce cypress
#

i haven't used deno outside the repl but i might if i ever need to write js again (used to be a bunner)

young flicker
#

doing parallel async in deno is also dead simple

#

there's a ton more but I haven't explored much

ivory heath
#

parallel async is a funny thing to say

royal nymph
#

why

young flicker
#

wdym

ivory heath
#

async often (and in the case of js isnt) parallel

royal nymph
#

the waiting parts are parallel

#

so yes it is parallel

young flicker
#

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

fierce cypress
ivory heath
#

its just a weird way to phrase it

#

What is the difference between a promise and a future?

young flicker
#

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

fierce cypress
ivory heath
#

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.

fierce cypress
#

useless vagueslop

ivory heath
#

or youre python and just call it all a future

fierce cypress
#

rust futures and js promises have basically no difference other than eager/lazy but that's not from the name

ivory heath
#

i wish some sort of future system was in the GO! stdlib

young flicker
#

I think I misunderstood what parallel means

ivory heath
#

did you you mean concurrent

young flicker
young flicker
royal nymph
ivory heath
#

oh tailwind is cool

young flicker
#

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

ivory heath
fierce cypress
royal nymph
young flicker
#

horrible

fierce cypress
#

actualy my favorite part of golang

young flicker
#

why

young flicker
royal nymph
#

which is 0, "", nil, etc depending on type

ivory heath
fierce cypress
#

unironically stdlib uses pointer field as a way to mark field as nullable for json marshalling

young flicker
#

also by optional I mean nullable

ivory heath
#

pointers are nullable in go, it is the default

royal nymph
#

you dont use pointers that much in go

fierce cypress
young flicker
#

so navidrome's api is terrible just because of go lol

royal nymph
#

no

#

it has nothing to do with go pal..

pseudo sierra
#

just incompetent devs

royal nymph
#

bro do you realise how fucking old subsonic is

young flicker
#

zt's library had so many nullability issues because navidrome just makes things null when it wants to

young flicker
#

there's 2 apis

#

both are terrible

royal nymph
young flicker
#

the issue where artist id can be null is still an issue in navidrome's api

royal nymph
#

and subsonic/navidrome's fault for not documenting well

young flicker
#

why isn't it just defined in the struct

royal nymph
#

because go just doesnt work like this

fierce cypress
royal nymph
pearl stagBOT
# royal nymph btw unless I am looking at the wrong struct, ID cant ever be null, only empty st...

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"`
}
ivory heath
# fierce cypress I still can't manage to read this properly, please clarify

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

fierce cypress
#

oh python doesn't have function coloring?

ivory heath
#

it does with async io

#

but you dont have to use it

#

threading.Thread spawns a coroutine just like go in GO!

fierce cypress
#

can you fully use futures instead of async io without it being worse?

ivory heath
#

yes

fierce cypress
#

very intriguing..

ivory heath
fierce cypress
#

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)

fierce cypress
ivory heath
#

No but it will undeniably be slower than "native" as i have to do some black magic/runtime reflection to get the "AsCompleted" working

fierce cypress
#

awh

#

same thing as high level iterator libraries then..

#

slices in stdlib is pretty nice at least

ivory heath
#

Funnily enough i dont think what ven posted supports ascompleted

ivory heath
#

which yes i do use a lot

ivory heath
#

i just forget sometimes it exists

fierce cypress
#

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

ivory heath
#

use pylance and venv

fierce cypress
#

do I just hope I won't need a native dependency?

ivory heath
#

wdym native dependency

fierce cypress
#

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)

ivory heath
ivory heath
#

or you can run a command to do so

fierce cypress
#
ο…Έ  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

ivory heath
#

never used nix so dunno

#

shoulda used arch

fierce cypress
#

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

ivory heath
#

i know a few autists who use gentoo

worldly sigil
jade stone
#

what in the typescript

fierce cypress
jade stone
#

shockingly, i didn't write that

fierce cypress
#

it has to be an edge case used as a feature right?

jade stone
fierce cypress
#

"you" as in the anonymous 3rd person thing

jade stone
#

the compiler has just deferred expanding it

#

for perf

fierce cypress
#

I'd really want to see how it happened

stoic depot
#

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

jade stone
ivory heath
#

I know that VS code will do it, slowly

jade stone
#

i always use kate for massive files

#

best perf out of any editor i've tried

ivory heath
#

but it does tend to choke on large files
That’s what I meant lol

ivory heath
delicate root
young flicker
#

a little

ornate quiver
#

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.

lucid forge
#

lets go when r they putting it on chinese git websites again

ionic lake
#

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

pseudo sierra
#

inch resting

pseudo sierra
ionic lake
#

yes

pseudo sierra
#

love

worldly sigil
#

rewritten with copilot x claude pro just like bun‼️

fierce cypress
jade stone
fierce cypress
#

I haven't noticed any slowdowns in either like ever other than opening the file in helix but it's perfectly fine after that

jade stone
#

isn't helix a TUI editor

fierce cypress
fierce cypress
jade stone
#

they have a LSP client

#

not an extension API

fierce cypress
#

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

jade stone
#

no, not really

#

they already have it

#

it's just all it can do is load a LSP server

fierce cypress
#

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

jade stone
#

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

fierce cypress
#

you have the sidebar buttons and stuff like thunderclient and sql browsers

fierce cypress
jade stone
fierce cypress
#

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

jade stone
#

webview is just what the vscode API calls them

fierce cypress
#

copium from vs code devs about making browser based editor I guess

stoic depot
#

it all started as monaco...

fierce cypress
#

github atom?

stoic depot
#

I meant vsc started from monaco

fierce cypress
#

they made electron or whatever

fierce cypress
jade stone
stoic depot
#

wait really?

jade stone
#

yes

fierce cypress
#

monaco just vs code without vs

stoic depot
#

yeah

fierce cypress
#

textual studio code

stoic depot
#

I only use it for websites where I don't care about mobile support

#

codemirror has better mobile support

fierce cypress
#

only mobile thing I know is acode

jade stone
#

monaco is made from the extracted sources of vscode

fierce cypress
stoic depot
#

😭

fierce cypress
#

unironically prefer using raw vi in termux

fierce cypress
stoic depot
#

I just really really like monaco on pc, I made this little page with it

#

ignore the output

#

I thought it was neat

jade stone
#

i've made a few things with monaco

fierce cypress
stoic depot
#

omg

jade stone
#

yes'nt

stoic depot
#

aw

#

I thought it was kinda like

#

the patch helper menu but in the web

jade stone
#

you can browse them

#

and use LSP features like ctrl-click to jump around

stoic depot
#

this is better than using sources in the devtools in the app imo at least

stoic depot
jade stone
stoic depot
#

if I have time are you friendly to prs

jade stone
#

yeah

#

go for it

#

you'll see the build system/everything else and be horrified and give up trolley

stoic depot
#

plz be honest with me if my code is terrible btw I have winged everything I have ever coded

lyric latch
jade stone
#

@stoic depot

lyric latch
#

@jade stone can you make a font that husks Nix

#

as a liga

stoic depot
#

oh my god LOL

#

nix

stoic depot
#

or "hmr"

jade stone
#

yes

#

cargo xtask run client to start dev server

stoic depot
#

doesn't look like a terrible reason to use multiple languages in one project

#

seems sensical

pseudo sierra
#

this malware is running on my server btw πŸ’”

jade stone
#

i need to update the web LSP client to be a shared worker

#

that way multi-tab browsing works properly

ionic lake
#

I know

#

they're rewriting it

granite notch
#

yea

granite notch
ionic lake
#

I know

granite notch
dense sand
#

ruby?

ionic lake
granite notch
ionic lake
#

yes

#

gh is built on ruby on rails and mysql i think

dense sand
#

crazy

granite notch
pseudo sierra
#

ror yes but is it fr still mysql

dense sand
ionic lake
#

idk anymore

granite notch
pseudo sierra
#

😭

#

you'd think they'd move to clustered postgres or smth but ig not

ionic lake
#

you know mysql can cluster as welll

pseudo sierra
#

yeah

granite notch
#

who wants github code samples

pseudo sierra
#

ME

pseudo sierra
#

send the entire thing tbh

granite notch
pseudo sierra
#

how much

dense sand
#

slophub

granite notch
dense sand
granite notch
#

@royal nymph pay

pseudo sierra
granite notch
stoic depot
#

my mouse does this when I goes afk

#

it has dvd plinko and um pong with the cursor

signal wadi
#

i totally didnt waste like a hour making a MCP server that does something

#

but now it can do this

#

so