#🪅-progaming

1 messages · Page 79 of 1

dense sand
#

Damn

placid cape
#

wtf 2 from religion????

valid jetty
#

how would you interface with the object from the js side

placid cape
#

POG

valid jetty
#

the size in bytes of js primitives is not really defined anywhere and afaik js objects themselves are implementation defined sooooo

supple whale
#

you need to deserialize and serialize it

#

but yes

#

look up embind

valid jetty
#

at that point might aswell send json surely

supple whale
#

no

#

thats way slower

#

since json is also just a string u need to serialize to an arraybuffer

#

so you're performing an extra operation for no reason

hoary sluice
#

however its still looks awful

#

however again, im banishing this report card to the drawer and probably never seeing it again and neither is anyone else

hoary sluice
#

@valid jetty parsing is so hard 😭

#

i just wanna do math

#

all day every day

#

not parse

#

im gonna finish aoc

#

mabe

#

maybe

formal belfry
#

salad is typing

jade stone
#

i don't understand people who format the & next to the ident instead of the type

fleet cedar
#

That is how the language is defined

#

But the language is dumb

#

int* a, b; declares only one of them as a pointer

#

(And it's dumb af)

jade stone
fleet cedar
#

Yeah but that's sinful

jade stone
#

yeah

#

just dont use declaration like that for pointers

valid jetty
#

dont declare more than 1 variable inline in general thats just silly

#

maybe instead of functional you could make a stack based lang

valid jetty
#

it looks cool

solid gazelle
#

@royal nymph dumb question but can i export methods from an astro component for example i have one with a bunch of checkboxes and i want to export smth to get checked ones like

<MyComponent handler={a} />
<script>
a.getCheckedBoxes();
</script>

maybe

royal nymph
#

whar

solid gazelle
#

idk if youd know

#

like react's useImperativeHandle i think

#

yeah

#

o

valid jetty
#
$u8size { #10 }

-- (row: u8 col: u8) -- (offset: u16)
@offset in
    u8swap u8size u8mul u8add #0 u8swap
    -- step by step
    -- u8swap -- (col: u8 row: u8)
    -- u8size -- push u8size lit to the stack
    -- u8mul  -- (col: u8 row*size: u8)
    -- u8add  -- (col+row*size: u8)
    -- #0     -- push lit 0 to the stack
    -- u8swap -- (size: u8 0: u8) -> (0: u8 size: u8) can now be read as u16

-- ( -- )
@main in
    while x < u8size in
        while y < u8size in
            offset &board u16add lda
            u8print
            -- step by step
            -- offset  -- push (offset: u16) on the stack
            -- &board  -- push (board_ptr: u16) on the stack
            -- u16add  -- (board_ptr+offset: u16)
            -- lda     -- push u8 from offset on the stack
            -- u8print -- print u8

board {  u8size u8size u8mul #0 u8swap #'*' fill }
-- step by step
-- u8size -- push lit to the stack
-- u8size -- push lit to the stack
-- u8mul  -- multiply together (ie 10*10=100)
-- #0     -- push lit 0 to the stack
-- u8swap -- (size: u8 0: u8) -> (0: u8 size: u8) can now be read as u16
-- #'*'   -- push literal char to the stack
-- fill   -- pop u8, u16, fill with u8 of size u16
$u8size { #10 }

-- (row: u8 col: u8) -- (offset: u16)
@offset in
    u8swap u8size u8mul u8add #0 u8swap

-- ( -- )
@main in
    while x < u8size in
        while y < u8size in
            offset &board u16add lda
            u8print

board {  u8size u8size u8mul #0 u8swap #'*' fill }
``` @hoary sluice
#

this could be so cool

solid gazelle
#

while flesh in Rosie
Rosie.flesh.remove()

formal belfry
#

while flesh in Rosie
Rosie.flesh.remove()

valid jetty
#

evil

jade stone
#

scary val

valid jetty
#

scary val

jade stone
#

if this is deprecated, then how else do you define an iterator type

solid gazelle
#

e

fleet cedar
#

Like everything else in the c++ template hellscape

winged mantle
#

so good

#

@solid gazelle you love

solid gazelle
solid gazelle
scarlet tendon
#

What is the vencord module for finding server boost?

#
(() => {
    // Get the GuildStore properly
    const GuildStore = Vencord.Webpack.findStore("GuildStore") || 
        Vencord.Webpack.findByProps("getGuild", "getGuilds");

    const guildId = "1015060230222131221"; // Your server ID
    const guild = GuildStore?.getGuild(guildId);

    if (!guild) {
        console.error("Guild not found!");
        return;
    }

    // PROPER boost property access
    const boostCount = guild.premiumSubscriptionCount || 0;
    const boostTier = guild.premiumTier || 0;

    console.log(`%c🚀 ${guild.name} Boost Stats`, "font-size: 16px; color: #7289da;");
    console.log(
        `► Current Boosts: ${boostCount}\n` +
        `► Tier: ${boostTier}\n` +
        `► Server ID: ${guildId}`
    );
    
    // Debug: Show all boost-related properties
    console.log("Boost Properties:", {
        premiumSubscriptionCount: guild.premiumSubscriptionCount,
        premiumTier: guild.premiumTier,
        premium: guild.premium,
        hasPremium: guild.hasPremium,
        _discovery: guild._discovery
    });
})();
winged mantle
#

whgar

scarlet tendon
#

I cant seem to firgure out how to get the boost number?

winged mantle
#

you don't need a plugin

#

lol

scarlet tendon
#

I just want to do it for my own sake

elder yarrowBOT
scarlet tendon
#

This isnt a plugin, this a snippet of js

formal belfry
#

id say its loosely related to plugins

#

you are using vencord api

#

nobody will help you if you use ai though

scarlet tendon
#

Real

formal belfry
#

im surprised it even managed to get some info

scarlet tendon
#

Do you think its ai...

#

I js be guessing

winged mantle
#

i didn't know premiumTier existed

formal belfry
#

comments with "proper" in them feel like someone's been vibe coding

#

// Your server ID

winged mantle
#

it's probably a synthetic property in the discord client shrug

#

it seemed to work

#

so what's the iussue lol

scarlet tendon
#

Oh

shrewd canopy
#

🤨

lavish frigate
# scarlet tendon Do you think its ai...

you gotta understand stuff is very obvious ai to someone knowledgable in a field
if you had written the code yourself it wouldve been very obvious to you that "premiumSubscriptionCount" doesnt exist and devtools dont autocomplete that property, instead autocompleting to "premiumSubscriberCount"

formal belfry
#

(if you just console.log guild you would have seen this)

#

or even just use the view raw plugin

#

using AI on something that is already relatively straightforward and has plenty of examples and code for you already my beloved

lavish frigate
#

never

timber root
#

my experience

lavish frigate
#

ill train ai on vencord dom manipulation instead of jsx plugins

formal belfry
#

vencord wouldnt be straightforward to an ai because vencord is a tiny fraction of its training data

#

im not saying ai hasnt stolen and been trained on vencord code because it definitely has haha
every minute or so i see cloudflare blocking the chatgpt scraper bot on my sites

lavish frigate
#

yea ai barely works on discord modding because its so niche

#

it will often recommend betterdiscord stuff to compensate about its lacking vencord knowledge Clueless

winged mantle
formal belfry
#

@grok is this true

scarlet tendon
winged mantle
lavish frigate
#

Im evil in an evil way guess who blew up the pentagon on the 6th July 2025

wispy kernel
solid gazelle
#

why can't you augment default on typescript

lavish frigate
solid gazelle
#

like why can't I export a type as a property in an astro component like

export namespace default {
  export type Color = number;
}

so that I could do

import Button from "./Button.astro";
let color: Button.Color = 2;

instead of rn what i do

import Button, { type Color } from "./Button.astro";
let color: Color = 2;
#

idk maybe im dumb

frosty obsidian
#

its all trained on stolen shit

#

the fact that these traps had to invented kinda proves that its intentional theft too

jade stone
#

how is getenv deprecated

#

as far as i can tell, it's not

worldly sigil
# jade stone how is getenv deprecated

probably not deprecated spec-wise, but microsoft/msvc considers it deprecated

https://learn.microsoft.com/en-us/cpp/c-runtime-library/security-features-in-the-crt?view=msvc-170

Many old CRT functions have newer, more secure versions. If a secure function exists, the older, less secure version is marked as deprecated. The new version has the _s ("secure") suffix.

In this context, "deprecated" means that use of the function isn't recommended. It doesn't mean the function will be removed from the CRT.

#

that reminds me, i think curl had some shenanigans with ai security slop github bots getting tripped up by something like this

they would use strcpy and the bot wanted them to use the secure functions i.e. strcpy_s
but curl explicitly checks the buffer length anyways whenever they use those functions and don't bother with the checked ones e.g.

#define MAX_SIZE 256
// [...]
char buf[MAX_SIZE];

if (sizeof(some_input) > MAX_SIZE)
  return;

strcpy(buf, some_input);
winged mantle
#

rate?

frosty obsidian
#

interesting

winged mantle
#

the problem is if there is optional data

#

also the > syntax automatically converts all lines into blockquote (that is the idea)

spark tiger
#

toml is cool but i wish it had support for arrays

winged mantle
#

it does have support for arrays wdym?

spark tiger
#

i mean lists

spark tiger
#

pretty sure it doesnt

winged mantle
#

people = ["bob"]

spark tiger
#

oh what

#

no way

#

TIL

winged mantle
#

the only problem is that it doesn't allow breaks in inline objects

frosty obsidian
#

not supporting lists would be news to me

#

use that feature all the time

winged mantle
#

carl.toml uses lists 😭

#

for feature flags

spark tiger
#

idk

winged mantle
#

when was this

spark tiger
#

i mean a few years ago

winged mantle
#

this is what the same thing looks like with hfon blobcatcozy

#

the config language that never was

#

(I made a spec for it)

#

json with semicolons

#

🔥

#

wait i think maybe it supported automatic semicolons

#

i think that is why i did this

#

not actually bad

#

maybe if you surround a section with [[]] make it so the whole section disappears if any of the values aren't present?

#

i donb't wanna create the turing complete sytem every bot seems to have

#

maybe just have <<>> quoted strings because they're my favourite [[<<for {{duration}>> <<forever>>]]

#

and the first to be valid gets rendered

hoary sluice
#

@valid jetty im forever doomed to watching functional programming talks

valid jetty
hoary sluice
#

EVERYTHING HE SAYS AND DOES

#

he said "i got this monitor cause i won the computer science fare a couple times" and i was like "ok he got amazon giftcards" and then he says "and i got a bunch of amazon giftcards", to which i thought "fuck amazon" and he said "tho i dont really like amazon as a company but i got the gift cards"

#

and i also got a bunch of amazon gift cards the same way

#

and we use the same keyboard

#

and we both hate windows

#

tho he doesnt use linux

#

and hes a typst vim enjoyer

#

lol so true

#

he literally doesnt have a mouse omg thats awesome

#

i rly wanna do that but im too lazy to set up keyboard browser

frosty obsidian
#

i see a mouse in the thumbnail

#

clickbait smh

nimble bone
#

a wing in the thumbnail

frosty obsidian
hoary sluice
#

oh and he doesnt use qwerty

#

does make sense with that keyboard

hoary sluice
#

and hes such a gigantic vim enthusiast its not that hard to not use a mouse

hoary sluice
#

@valid jetty i should make one of those beautiful 12 line haskell parsers and use that

valid jetty
#

did you watch the tsoding stream i sent you

#

for the json parser in haskell out of combinators

supple whale
#

has any1 ever encountered this?

#

like okay, but...? wtf?

#

oh my lord the amt of bullshit black magic

#

the d.ts file needs to be named the same as the module declaration name

#

so i need to name it events.d.ts

#

it cant be inside global.d.ts

#

fucking LOVE undocumented black magic

valid jetty
#

@hoary sluice

jade stone
royal nymph
#

but having imports/exports on the top level of a d.ts file changes how it works

#

it's either you must not have any top level imports/exports in the same file as your declare module (you can import inside the declare block) or you must have one on the top level (just add an empty export {})

formal belfry
#

@royal nymph

royal nymph
#

Also why are u typing events

#

did you forget to install @types/node

serene elk
#

Events typing def doesnt accept a generic for mapping the events and callbacks

#

it's shit

#

unless that has been updated recently

whole cove
#

hey guys what the fuck does this mean

#
#[ensures(forall<i:Int> 0 <= i && i < l.len() ==> (^l).get(i) == Some(0u32))]
#[ensures((*l).len() == (^l).len())]
pub fn all_zero(l: &mut List) {
    use List::*;
    let old_l = snapshot! { l };
    let mut loop_l = l;

    #[invariant(
        (forall<i:Int> 0 <= i && i < loop_l.len() ==> (^loop_l).get(i) == Some(0u32)) ==>
            forall<i:Int> 0 <= i && i < old_l.len() ==> (^*old_l).get(i) == Some(0u32))]
    #[invariant((^loop_l).len() == loop_l.len() ==> (^*old_l).len() == old_l.len())]
    while let Cons(value, next) = loop_l {
        *value = 0;
        loop_l = next;
    }
}
#

help

serene elk
#

very readable rust code

whole cove
#

it is not cool

glacial mirage
#

l.iter().product() == 0

placid cape
solid gazelle
valid jetty
#

you don’t need half of the things in that

formal belfry
#

rosie is incredibly intelligent

#

knows all of the best and most efficient ways to do literally everything

supple whale
hoary sluice
#

we have coding contests

hoary sluice
hoary sluice
frail turtle
#

I learned how to make a cookie for logging in today :D

winged mantle
frail turtle
#

ohhhh ok, i don't think it matters too much though it's for a relatively small school project

#

and also it's mostly for now just 'does the cookie with this specific name exist? if so log them in'

shrewd canopy
#

Easier to use than cookies

frail turtle
#

unfortunately i don't know what that is, nor do I get a choice

frail turtle
#

it has a cuter name

shrewd canopy
valid jetty
velvet fog
#

guys what's your favorite processor,
mine's iOS 18.0

spark tiger
royal nymph
pulsar elk
#

guys how do i make this look not ass

lucid trail
# pulsar elk guys how do i make this look *not* ass

it already looks pretty good. I think you could get away with using non ascii characters, and bold text as well.
Hyperfine is an example of a cli that looks very good to me.
You could also print the sizes in human readable format

pulsar elk
#

what else could i improve, other than the alignment of the colon

spark tiger
#

how do you record these

pulsar elk
#

oh

pulsar elk
spark tiger
#

the vid

lucid trail
#

i just stole it from their readme, but couldn’t you just screen record

spark tiger
#

like i keep seeing some gifs on github readmed that are links to some asciisometning site

worldly sigil
#

asciinema?

unreal sinew
#

ahh yes custom RPC

shrewd canopy
#

horror

unreal sinew
spark tiger
whole cove
#

formal verification for rust so u kinda need it

scarlet tendon
#

How does my script look ?

#!/bin/bash

echo "🔄 Updating Vencord..."
cd ~/Documents/Vencord || exit 1
git reset --hard
git pull
echo ""

# Update userplugins
USERPLUGIN_DIR="$HOME/Documents/Vencord/src/userplugins/"
echo "📦 Updating userplugins in $USERPLUGIN_DIR"

for d in "$USERPLUGIN_DIR"*/; do
    if [ -d "$d/.git" ]; then
        plugin_name=$(basename "$d")
        echo "➡️  Forcing update on userplugin: $plugin_name"
        cd "$d" || continue
        git reset --hard
        git pull
        echo ""
    fi
done

# Kill Vesktop
echo "🛑 Killing Vesktop (if running)..."
pkill -f vesktop || echo "Vesktop not running."
sleep 2

# Restart Vesktop
echo "🚀 Launching Vesktop..."
nohup vesktop >/dev/null 2>&1 &

echo "✅ Vencord + UserPlugins updated and Vesktop restarted."
supple whale
#

so

#

trying to find AES256 keys in memory

#

biiiiig mistake

#

decompile UE5.3 game

#

usually its quite easy

scarlet tendon
#

Why not google iot

supple whale
#

but embark

#

used some very non-standard methods

#

i think they encrypted the already encrypted file

#

and none of the existing tooling for this works

#

like i see you you little shit

#

hmmm

#

that statement isnt quite accurate

#

its UE thats made for fortnite

#

which is why everything else runs like shit

spark tiger
#

i mean if u enable lumen, ray tracing and nanite, that's gonna be your experience in fortnite

#

my rtx 4070 super couldn't handle it in 60fps lol

hoary sluice
#

@valid jetty hi gn

valid jetty
#

lmao

supple whale
#

trying to decompile arc raiders, for the most part embark is running a giga modded version of UE5

#

which is the only reason it runs halfway decently

storm yarrow
shrewd canopy
storm yarrow
#

yeah

#

and you have to add it the content security thing in the main vencord file so can't really share it. I might make it actually more than just a simple iframe and make it look nice and what not but

meager bobcat
#

i just managed to kernel panic my mac from a vencord plugin

#

oops

elder scaffold
#

🗿

valid jetty
#

@hoary sluice is this guy doing ai engagement bait or is he just stupid

winged mantle
#

why would you use a propriatary fork of vscode

elder scaffold
#

i love vscode with preinstalled plugins

pseudo sierra
winged mantle
#

i love js

#

i love web technologies

lavish frigate
valid jetty
#

every developer in vencord is a vibe coder

spark tiger
#

see: adobe

ionic lake
#

vscode isn't much open either

#

its barely usable without extensions and most extensions are closed source

valid jetty
#

this is why you use zed

#

zed is actually good i love it

formal belfry
#

i love neovim and emacs

pseudo sierra
#

I want to like zed just for the fact that it's not electron slop but it still feels weird to use imo

supple whale
#

idk vscode is the most exemplary electron app there is tbf

valid jetty
#

true

hoary sluice
nimble bone
ionic lake
#

its been a week or 2 of zed use for me and its worked great

hoary sluice
#

scary part is 70% of his audience uses vscode

ionic lake
#

most of these tech youtubers' audiences are kids starting to code or in college

#

so of course they will pick the easiest option, vscode

hoary sluice
#

yea ik

#

if he polled operating systems the results would prob be close to the global os market share

valid jetty
# ionic lake can you send your zed config im curious
{
  "features": {
    "edit_prediction_provider": "none"
  },
  "collaboration_panel": {
    "button": false
  },
  "chat_panel": {
    "button": "never"
  },
  "assistant": {
    "enabled": false,
    "version": "1",
    "button": false
  },
  "show_edit_predictions": false,
  "edit_predictions": {
    "enabled_in_assistant": false,
    "disabled_globs": ["**"]
  },
  "vim_mode": true,
  "theme": "Catppuccin Mocha Glass",
  "ui_font_size": 14,
  "buffer_font_size": 16.0,
  "buffer_font_weight": 300,
  "buffer_font_family": "Maple Mono",
  "buffer_font_features": {
    "zero": true,
    "cv02": true,
    "cv03": true,
    "cv04": true,
    "cv98": true
  },
  "ui_font_weight": 300,
  "ui_font_family": "Maple Mono",
  "terminal": {
    "font_family": "Noto Sans"
  },
  "format_on_save": "on"
}
pseudo sierra
#

maple mono <3

valid jetty
#

this is how it looks

valid jetty
ionic lake
valid jetty
#

so much wtf

pseudo sierra
#

rosie scared of config that's more than 1 screen length

ionic lake
#

yeah i like it

#

theres more for ssh which i omitted but idk why the fuck zed keeps it there

valid jetty
#

lmfao

pseudo sierra
#

it has a lot but most of them are poorly documented at least last I checked

valid jetty
#

yeah that would make sense

#

ghostty is the same

ionic lake
#

idk about ghostty it just feels like a regular terminal tbh

#

i mean that wasnt its goal anyway but /shrug

pseudo sierra
#

it's mid

valid jetty
#

i use it because it has blur and its very minimal lmfao

shrewd canopy
#

I usually use built-in VSCode terminal

fleet cedar
#

I don't know why everyone loves blur so much

pseudo sierra
#

it looks cool for the first year or so after that you realize it's ass

fleet cedar
#

Transparency without blur is much better

pseudo sierra
#

yop

hoary sluice
#

i just use the default no transparency no blur mocha

maiden creek
#

Is discord's code supposed to give me brain cancer? (I think I know JS)

formal belfry
pseudo sierra
maiden creek
#

Obviously not

#

There has to be several experts in here

formal belfry
#

no

#

they are

maiden creek
#

Crazy

formal belfry
#

@royal nymph's primary editor is Cursor

maiden creek
hoary sluice
#

Youre an expert in not getting the joke

formal belfry
maiden creek
#

Im dense as all fucking shit

lucid trail
maiden creek
#

I get the joke now

lucid trail
valid jetty
#

made to fit in the smallest file possible

maiden creek
#

Oh so it is compacted

valid jetty
#

chrome devtools adds spaces and indentation but the original file doesnt have that

#

yes

pseudo sierra
#

tbf even the non minified code gives brain cancer so

valid jetty
#

fair

maiden creek
pseudo sierra
#

read anything but discord code

valid jetty
#

^^^

formal belfry
maiden creek
#

Did not post the original video in fear of offending somebody

formal belfry
#

unminifies your discord

pseudo sierra
#

minifies your feder

maiden creek
#

Are the federals now hidden as code on your computer?

jade stone
#

what

how is stdio.h deprecated

fleet cedar
#

Because you're supposed to use <cstdio>

#

cstdio puts things in std:: namespace, while stdio.h dumps them in global

jade stone
fleet cedar
#

It doesn't

#

But c++ does, and you're using c++

#

And/or have configured your tools wrong

jade stone
formal belfry
#

lmaoooo

jade stone
#

@formal belfry you do c, right

formal belfry
jade stone
#

any idea why this returns an int and not a char

royal nymph
#

what language

jade stone
#

C

royal nymph
jade stone
#

insane

valid jetty
#

iirc it’s because it’s carried forward from B

#

the B language was so simple that it didn’t have types

#

only machine words

#

hence the functions accept int as a compatibility with B

#

it’s the same thing with putchar iirc

#

early C compilers allow B-style syntax too (no function return type) which supports that theory i guess

jade stone
versed cape
jade stone
versed cape
#

is an EOF character more than 8 bits?

#

i didn't think it was actually a character

#

im guessing its passed as -1?

jade stone
#

a char is a byte, and there is no EOF char

jade stone
versed cape
#

oh

jade stone
versed cape
#

i just realized this is libc you're discussing and not some other library

#

ofc its -1

#

oops

jade stone
#

it's older, legacy things

valid jetty
winged mantle
#

wdym

glacial mirage
#

char foo = EOF; // = -1

winged mantle
#

-1 will refer to something else

#

for it to support every byte a file can contain all the bytes a char can hold need to be reserved for that?

#

surely?

jade stone
valid jetty
#

well yeah but surely it just assumes ascii

#

its not like youre gonna raise cyrillic to uppercase

jade stone
#

i don't think so

valid jetty
#

lmao

winged mantle
#

depends on implementation?

jade stone
valid jetty
#

well yeah obviously it can hold other charsets

#

but i meant the toupper function specifically

jade stone
valid jetty
#

fun

jade stone
# glacial mirage `char foo = EOF; // = -1`

i'm not sure how integer casting works in C but wouldn't that be different from an int because wouldn't an int as -1 have 3 extra bytes of ones at the start compared to char

dense sand
#

sometimes clangd forces me to use C++ headers in C files too when its not configured properly

valid jetty
#

at least thats my understanding

#

because you cant pass chars between functions at a lower level, you pass a full width word

dense sand
#

just look at godbolt for god

jade stone
fleet cedar
#

I would if I had god's source code

jade stone
#

both show up as -1

jade stone
jade stone
#

yeah, the char is 0xff and the int is 0xffffffff

valid jetty
#

llvm ir is strongly typed so it reads i8 in the function but in things like qbe you cast sub-word types up to a word when passing them to functions, my understanding is that internally sub-word types are still word-size (but the compiler is lying to you when you do sizeof)

#

im pretty sure its duck typing, as in, as long as it looks correct to you as the user, it works, even though internally it works differently

#

shrug

supple whale
#

thank you bite for being fucking useless

fleet cedar
#

I don't know about other arches, but in x86 you have for example al, ah, ax, eax, rax which are different parts of the same register

supple whale
#

how the fuck does it transform const into conct

valid jetty
#

different parts of the register but overall the register still holds a machine word

fleet cedar
#

"Machine word" isn't really a thing

valid jetty
#

i mean i guess

#

by machine word i just mean like size_t/usize/whatever

fleet cedar
#

Some regs have 512 bits

#

Usize is about addressable memory, not cpu registers

valid jetty
#

maybe ive just been indoctrinated by arm

#

on arm32 registers are 32 bits and aarch64 they have 64 bits shruggies

#

also arent 512 bit registers specifically for simd

fleet cedar
#

Well yeah

#

The general purpose regs are indeed 64

valid jetty
#

well that defeats the point then surely lol

#

yes let me put my value for toupper in simd registers !!

#

i mean even then, the x86_64 calling convention wouldnt allow that xd

#

anyways

raven mortar
#

will you use batch for programming

jade stone
raven mortar
#

ive used visual basic for some time

#

it was fine

#

and which visual basic?

#

lc.i visual basic 1.0

visual shellBOT
raven mortar
#

this visual basic

jade stone
#

visual basic script

#

that's what the s stands for in vbs afaik

raven mortar
#

yes ik

jade stone
#

idk, which ever version windows uses

hoary sluice
#

@valid jetty clippy no workie

placid cape
#

1255 errors 😭

valid jetty
#

lmao

winged mantle
#

also supports doing timeout @user 1 millenium

formal belfry
#

mizuki_plush @valid jetty

jade stone
#

i give up on rust for now

#

how the fuck

formal belfry
pseudo sierra
#

mem leak?

jade stone
#

it's something with clap

formal belfry
#

👏

jade stone
pseudo sierra
#

😭

formal belfry
#

Silky sadan

jade stone
tacit fractal
#

Does vencord have its own version of SetWindowDisplayAffinity?

elder yarrowBOT
jade stone
#

anyone know if this is possible in rust

fleet cedar
jade stone
#

they're not, but they both impliment the same trait

fleet cedar
#

If they're different types, it is not possible to store ij the same variable

unkempt shuttle
#

the humble union:

fleet cedar
#

Oh yes, the union which is a distinct type from its members

unkempt shuttle
#

put one in so you can take it out and be friends with the unionbusters

still jolt
winged mantle
#

why is it so easy to trick typescript
it assumes tag will always be a string even though if it's not a string it could fit into just { id: string; }

#

i need to rewrite in rust...

fleet cedar
#

Are you sure it's assuming tag: string and not just tag: any?

winged mantle
fleet cedar
#

Fair enough

winged mantle
#

i also have an eslint rule to make any access an error

#

so i need to explicitly add a comment if it's intentional

supple whale
#

for me this errors

lavish frigate
#

omfg

#

ud

#

😭

supple whale
#

oh no, its just a bad union type

#

hah

#

cool, didnt know that was a pitfall

winged mantle
hoary sluice
#

@valid jetty math matura done

#

pretty sure i got a 98

#

i looked over everything multiple times

#

except i thought to make x^2 linear u need x axis log not log log

supple whale
#

ah yes

#

math matura good times

fleet cedar
supple whale
#

i almost shat myself 15 minutes in because i ate something bad the day before

#

and scored like a 70 before i had to end prematurely to make sure i didnt shit myself XD

#

shit almost prevented me from getting into a good uni

#

points from bilingual english exam carried hard

#

got a 93 on that iirc

supple whale
#

and the lowest tier uni denied me, because they gave me 0 for my english score because they didnt recognise the bilingual level

#

fucking hillarious

hoary sluice
supple whale
hoary sluice
#

we could

supple whale
#

how in the fuck

supple whale
hoary sluice
#

theres a supervisor in front of it to make sure theres not multiple ppl in there

supple whale
#

scores from competitions?

#

like math competitions etc?

supple whale
#

ya could only go once u finished

hoary sluice
#

well theyre not allowed to deny u toilet but they can fail u ig

hoary sluice
#

got into another one from interview

supple whale
#

ah

#

thats... effort

#

i just submitted my scores and they let me in

hoary sluice
#

they mostly care about interest not skill

supple whale
#

yeah idk, not here lol

hoary sluice
#

tho i did have coding competitions on resume maybe it helped

#

and i used aoc as a reason why i wanna go in interview

#

its not a masters so it makes sense why they dont care about skill

supple whale
#

what uni u going to?

hoary sluice
#

ur meant to learn there

#

fh technikum wien

supple whale
#

LMAO

#

that's a funny statement

#

holy shit

hoary sluice
#

except its true?

#

they dont look at ur skill

supple whale
#

nah i mean the "ur meant to learn there"

hoary sluice
#

whats wrong with that

supple whale
#

well in my country you wont learn fuckall for IT in uni

#

nada

#

you might learn some basic algebra

hoary sluice
#

oh well thats a different point

supple whale
#

but anything coding or IT related is just flat out no

#

shit's so back-ass-wards

hoary sluice
#

i meant they accept ppl who know nothing or almost nothing

supple whale
#

i'm on my 5th year now and the most advanced coding we've done is C++ oop WITHOUT inheritance

#

and mobile app dev with flutter

#

so basic C++ and drag-drop UI elements

#

this generation is doomed

hoary sluice
#

u can almost certainly get a masters without knowing anything yea

supple whale
#

yep, i know plenty of people like that

hoary sluice
#

not at every uni tho

supple whale
#

who have a masters in playing leauge of legends, since thats about all they did for 5 years

supple whale
#

not IT, mostly math and other shit

#

but yeah, good luck in uni

#

tho you'll probably be able to sleep tru most of it

hoary sluice
supple whale
#

my china phone finally got the android 15 update

hoary sluice
#

i can enter into 3rd semester cause i went to a technical high school

supple whale
#

and i finally have better functionality for my physical button than iOS

hoary sluice
#

and the stuff on curicculum is free and i alr know it

supple whale
supple whale
supple whale
#

so that's a nice benefit

supple whale
#

i found a better way to evade taxes than being a student, but still its often quite worth

#

since in my country as a student you get exemption for like $16k worth of taxes if you're a student <27yo

#

or you could just make a company and bring that up to like $22k and not be a studen XD

hoary sluice
#

lol

spark tiger
#

wdym

winged mantle
#

interesting thought

#

I have saved a lot of lines from not using braces everywhere

#

469 lines

still jolt
#

are you also using spaces instead of tabs as well

hoary sluice
#

@valid jetty @placid cape

#

i got 39.5 at best

#

actually 40.5 if my teacher loves me

#

37.5 if he hates me

#

still a 1 tho

hoary sluice
#

u get preferred student housing if u have a scholarship in austria 😭

#

i dont

supple whale
#

just got grades

#

being top 4% of uni or smth like that

hoary sluice
#

oh

#

well ill def get that but im tryna find one for before starting uni

#

i have a perfect gpa in high school im sure that would help but they seem to be mostly targeted at poor people

#

and my family is not poor on paper

supple whale
#

oh my uni just had a scollarship for all poor people

#

no gpa required

hoary sluice
supple whale
#

yeah i got the gpa schollarship

#

not the poor schollarship

hoary sluice
#

oh

supple whale
#

well i got it every semester but yeh xd

hoary sluice
#

ill look into getting one from high school gpa cause i wont have any gpa when i start so i cant have a scholarship immediately

lucid trail
#

i got deferred from uwaterloo cs to mathematics, thinking of still going

hoary sluice
#

how are u thinking of still going when ur not accepted yet

lucid trail
forest shuttle
#

@vale geode

jade stone
#

thanks cmake

#

2 minutes to configure

hoary sluice
#

you need a degree in timetable decoding just to get a normal degree

supple whale
#

holy

#

that's giga readable

hoary sluice
#

at least theres details

supple whale
#

thats like x40 better than what i had

hoary sluice
#

theres no way

supple whale
#

yep

hoary sluice
#

do u have ss

supple whale
#

give me 10 mins

#

im currently occupying my phone with crysis 3

placid cape
#

I'll check the document tomorrow

ionic lake
#

grok some bitches

supple whale
#

forgot to reply to ya

#

had to be a video cuz a pic doesnt portray how awful this scheudle us

#

oh yeah and the schedule is just a fuckload of iframes

#

so u can load the schedule iframe directly

#

and if u remvoe the ID it just dumps the entire SQL

#

and u can see the entire sql query

fleet cedar
#

One iframe is two too many

supple whale
#

and ofc u can drop the entire database of tables, since the ID isnt sanitised against sql injection

#

yes i tried that

#

yes we had no schedule for a week because of me

fleet cedar
#

Were classes cancelled or did everyone get late

supple whale
#

lmao no they werent

#

simply noone could see the schedule for the given specialization

#

cuz it displayed nothing

#

but yeah that schedule is just a bunch of aliases for class names

#

and the legend is at the bottom

#

ofc the profs giving the classes are also displayed with only initials

#

so to find them you need to go to another schedule and find them

#

its fun

winged mantle
#

🔥

#

why use js when you can use yaml

fleet cedar
#

It does though

#

You need a runtime that runs your particular flavor of ymlscript

#

Yes, and then you need to run it

#

Because... you're running things?

#

If you have yml-as-scripting-language, you need a yml-as-a-scripting-language runtime

lavish frigate
#

everyone is insane on this platform

#

no exceptions

fleet cedar
#

You need a runtime that runs your particular flavor of ymlscript

#

Whether this runtime is implemented in js or rust is irrelevant

#

It's still a runtime

lavish frigate
#

the act of parsing your yaml and executing actions based on the yaml is by definition creating a runtime

winged mantle
#

isn't the point here you can implement support for this on any runtime and it's not as heavy as using a whole js engine or whatever

fleet cedar
#

A way more specific runtime than a general-purpose js runtime

winged mantle
#

i don't particularly hate it i just found it funny

#

it kinda looks like automod in other bots

fleet cedar
#

Imagine how much easier things would be if people would just write proper dsls for things instead of shoehorning asts into yml

winged mantle
#

yeah that's the thing i don't think i ttcan replace plugins written in actual programming languages

#

i found it pretty funny how they were like no more paying devs instead you can write in something which is less flexible and less pleasant to use

lavish frigate
#

made rust ai bot give me js react code

#

love

winged mantle
#

lol there is

#

but it's not open source it's just public source and many plugins are paid

#

*addons

lavish frigate
#

4.1 mini

winged mantle
#

it feels like mee6 in this regard
base bot is free, even the most basic features are paid

#

anyway i kinda don't wanna be too mean

#

i thought i might add plugin support to my bot but not really a bot builder

fleet cedar
#

Is only one of many

winged mantle
#

i'm not really a fan of visual builders

fleet cedar
#

You can't do coding without code

winged mantle
#

coding's not that hard

#

anyone can learn how to code

#

i feel like there are many people who don't ever leave their comfort zone (python/scratch/whatever)

fleet cedar
#

Web pages are inherently visual

#

Bots are not, they're request-response

#

(Sometimes the response is visual)

winged mantle
#

discord bots are often incredibly stateful

#

oh yeah ig that's a big barrier

#

databases

fleet cedar
#

That's just state with extra steps

winged mantle
#

but idk how a visual builder could remove that

fleet cedar
#

Visual builder for nonvisual things is difficult at best

spark tiger
fleet cedar
#

Should we snitch

spark tiger
spark tiger
fleet cedar
#

The power is unrelated to the yml

spark tiger
#

oh okay nevermind

winged mantle
#

idea

#

discoerd library for shell scripts

fleet cedar
#

Great

hoary sluice
supple whale
#

need a vpn to open it

#

which works.... sometimes

hoary sluice
supple whale
#

secret underground partnership with america

#

why do you think poland is doing so good GDP wise

#

its all actually america underneath

#

nah the uni is called US

hoary sluice
#

ohh

supple whale
hoary sluice
#

but im visiting family

jade stone
winged mantle
#

i'm not usually that fussed as long as it has the primary advantages of free/open source software

jade stone
#

b. Paid Plugins: If you wish to develop and distribute paid plugins, you must obtain a Commercial Developer License from Us.
c. Commercial Developer License: The Commercial Developer License grants you the right to create and sell plugins for the Software. Terms and pricing for the Commercial Developer License can be obtained by contacting Us on discord: @itsme.to

winged mantle
#

however i don't really like charging for an addon to create embeds and i think in doing so you're going to drive most people away unless you can somehow convince people that it's somehow superiour

jade stone
#

Wouldn't a plugin just be an independent creative work

#

Or something like that

winged mantle
#

i doubt that's illegal?

#

is it also illegal when you have to pay to publish to app store?

jade stone
#

This implies that any distribution of your own paid plugins is against the license

valid jetty
#

sideloading ipas as a beginner is an absolute pain tho

winged mantle
#

can't you have restrictions on what programs which link with the library can do

jade stone
#

Not saying there aren't ways to do what they want in the license, just saying that that isn't the way to do it

jade stone
#

Its just a script as a yaml file

winged mantle
#

pretty sure there's a proper plugin api too idk

jade stone
#

Hmm

#

Even if it can link (I doubt how much given its TS) I still think they can't enforce someone making and distributing the code for a plugin

#

Not sure about that tho

winged mantle
#

does gpl only apply to native languages?

#

i don't think so

jade stone
winged mantle
#

do gpl linking requirements only apply to native languages

jade stone
#

Anyway, train about to end, gtg

supple whale
#

reddit sometimes has their moment

lavish frigate
valid jetty
#

yeah they do

formal belfry
long summit
#

how time consuming/difficult would it be to make a vencord plugin that makes it so it can read better discord plugins too. curious since i know the request for plugins is no longer a thing and was curious if it was even possible to do something like that before i even tried going into it

spark tiger
#

why not just… rewrite the plugin instead

hazy pine
#

the apis cant be thaat different

formal belfry
long summit
#

ah shit yea that actually sounds like a pain for the lag and memory leak,

long summit
hazy pine
#

what if instead you make something that tries to translate the code

#

with some wizard magic

long summit
#

sounds like itd be good but it would probably have a similar problem with the memory leaks

spark tiger
royal nymph
lucid trail
royal nymph
#

seems like a ragebait reply

formal belfry
pseudo sierra
#

100% ragebait

#

but ubuntu is still kinda retarded for switching to sudo-rs now instead of waiting a while longer since sudo-rs is not yet feature complete compared to sudo

jade stone
royal nymph
#

the biggest thing against all these rust rewrites is that they're usually permissive licensed

pseudo sierra
#

yeah

royal nymph
#

Linux is being turned into permissive corposlop

lucid trail
pseudo sierra
#

ngl I think more people would be fine with corenoodles being replaced with uutils if it was under gpl

royal nymph
#

also yes rust is safer than C but people are pretending like rust can't also have severe vulns

software like sudo has been audited for decades

a new rewrite written by some rust zoomers has the potential to have a shit ton of new vulnerabilities in areas original sudo has covered safely

royal nymph
#

In the case of sudo even original sudo is permissive so it makes no difference

#

but still would be good if they made sudors gpl

hoary sluice
#

@valid jetty since when can you omit crate:: in uses????

#

nvm my lsp was broken

blazing haven
hazy pine
#

why does rust-analyzer take 20 years to load

winged mantle
#

why i prefer dx of other languages often: rust is slow

hoary sluice
jade stone
tired vigil
#

what is that

placid cape
lavish frigate
hoary sluice
hoary sluice
formal belfry
#

Embrace Haskell

shrewd canopy
#

Embrace Python

lavish frigate
#

they want to kill me for having fun with rust

formal belfry
placid cape
fleet cedar
formal belfry
dense sand
placid cape
#

Lol

hoary sluice
#

@valid jetty i switched to kde

hoary sluice
#

@valid jetty @placid cape @fleet cedar

#

basically just do it postfix or prefix or both

#

and what keyword to use

fleet cedar
#

bar = let foo = x in body? If I'm parsing the intention right

hoary sluice
#
bar = let
  foo = x
in
  body
fleet cedar
#

But bar is visible outside the in block scope, no?

hoary sluice
#

bar is outside the scope of in yes

fleet cedar
#

If the declaration is inside the block, it looks like it's scoped to the block

#

So in that case I'd vote for where I guess

hoary sluice
#

it does youre right, i thought it would be more readable / more clear that the let in is meant for bar

#

but whitespace is insignificant anyway

#
let
  foo = x
in
bar = body
#

idk

fleet cedar
hoary sluice
#
let
  foo = x
in

bar = body
#

nah

fleet cedar
#

The only benefit of that syntax compared to where is if you want to have multiple declarations using the same temp binding

hoary sluice
fleet cedar
#

Also, what about assignments nested inside other expressions? Like main = print (x + x where x = 42)

hoary sluice
#

i dont know if inline where is a great idea for readability

#

but its more readable than passing it as an argument to a lambda

hoary sluice
fleet cedar
#

Haskell has both let and where, but I think having only one of them should be fine too

hoary sluice
#

i dont want more ways to do the same thing

#

it gets confusing

fleet cedar
#

Usually you use let for partial results and where for auxiliary bindings, but yeah it can get fuzzy sometimes

hoary sluice
#

nix does with (a // b // c); expr

fleet cedar
#

What does the // mean

hoary sluice
#

attribute set merge

fleet cedar
#

Right, so it's really with { a: 4 }; expr?

hoary sluice
#

i think so yea, but its used more as a js with()

#

with pkgs;

fleet cedar
#

Makes sense

hoary sluice
#

i just meant instead of let foo in bar itd be with foo; bar

#

but let in here is better because its more intuitive to also use let to declare global variables

#
let x = 3
foo = bar

vs

let x = 3
in
foo = bar
#

scoping depends on the presence of the in

fleet cedar
#

Ew global variables

hoary sluice
#

well it can be inside another scope

#

(if i ever make scopes)

fleet cedar
#

But without scopes, how will the sniper rifles work

hoary sluice
#

needing scopes is purely a skill issue

valid jetty
#

@hoary sluice how long would you expect a video talking about how to make a compiler to be

hoary sluice
#

should the viewer be able to write a compiler with no issues after watching the video

valid jetty
#

no but they should be able to understand in better detail how the inner workings of it works

hoary sluice
#

still depends on the detail

valid jetty
#

of which, i want to include generics and structs and stuff like that

#

and pointers

#

and type parsing

#

etc

hoary sluice
#

there is a 3:34 minute video on how compilers work

#

there are day long playlists

hoary sluice
valid jetty
#

with more emphasis on compilation of more complex concepts

hoary sluice
#

u mean crafting interpreters?

valid jetty
#

yes

hoary sluice
#

hours

#

crafting interpreters is super detailed

valid jetty
#

yeah but nobody will watch hours i think is the issue

hoary sluice
#

and tunnels on specific methods

#

recursive descent parser, tree walk interpreter, visitor pattern, j*va

valid jetty
#

i want to specifically focus on compilation (as in, the whole process, including lexing parsing compiling)

hoary sluice
#

is it for youtube or for your friends

valid jetty
#

for youtube

hoary sluice
#

your upper limit is probably 30-40 minutes

#

any longer and ppl wont click on it

fleet cedar
#

Four seconds

valid jetty
#

yeah thats my concern

hoary sluice
#

30 minutes is probably the sweet spot

valid jetty
#

the issue is

#

in 30 mins

#

i would need to go over concepts very fast

#

to explain everything i want to explain

hoary sluice
#

if i see a 10 minute video on compilers i know it will teach me nothing, if i see a 1 hour video i wont finish it

valid jetty
#

look at the script overview btw

#

is there anything else you would want me to add

hoary sluice
#

if you want to explain everything youd have to make it a series

valid jetty
#

yeah

#

btw thats a very rough outline

#

i wrote that in like 5 mins

hoary sluice
#

i think this is doable in 30 minutes

valid jetty
#

well yeah, this is

#

but i want to also explain how you monomorphize generics and how you compile structs and stuff

#

and that becomes complex kinda fast

formal belfry
valid jetty
#

theres no way to fit that into 30 mins

valid jetty
#

true

hoary sluice
#

will you mention how all of elle is vibe coded

valid jetty
#

yeah

hoary sluice
#

and i dont wanna spend 100 hours vibe coding an app in may i wanna spend 100 hours vibe coding a programming language

#

(coding while vibing not vibe coding)

#

(vibe coding as in vibe coding with an ai in the 100 hours may app context)

valid jetty
#

“get to go to SF” because everyone is lining up to go to the US with the current state of it politically

hoary sluice
#

me preferring to pay to go to kazakhstan this summer than to go to sf for free this summer speaks volumes

dense sand
royal nymph
formal belfry
#

economy:

hoary sluice
royal nymph
formal belfry
#

you're so dumb

#

i'm so much smarter than you i think @royal nymph

winged mantle
royal nymph
#

this is like literally irrelevant to the average consumer

#

you're still very well off

cinder egret
#

erm well prices of everything did go up but in a place like SF it doesn’t matter a single bit because they’re so blue there so every other trump policy has no importance

#

while prices did go up i don’t think it’ll matter much somewhere like cali where everything is already super super expensive

#

so none of the current polices would even touch cali anyway so it doesn’t even matter that much really lol

winged mantle
#

cali linux

lavish frigate
#

(this doesnt talk about memory safety or the borrow checker before you ask)

fleet cedar
#

I like that the <T> was garbaged out

ornate quiver
ornate quiver
#

goddammit

cinder egret