#🪅-progaming

1 messages · Page 55 of 1

valid jetty
#

i have only 208 liked lol

crisp kestrel
#

first time?

leaden crater
#

not a lot

crisp kestrel
dawn ledge
#

i dont have separate playlists

crisp kestrel
valid jetty
spark tiger
valid jetty
#

now that is a sin

crisp kestrel
#

had a shit ton of songs

dawn ledge
#

i just throw it all in liked and let spotify dictate whether im gonna cry or dance

valid jetty
#

i usually listen to albums nowadays

crisp kestrel
#

it's so over lmfao

valid jetty
frosty obsidian
#

i don't think this is programming

crisp kestrel
#

booting up the puhc

#

🙏

valid jetty
leaden crater
crisp kestrel
leaden crater
#

@valid jetty do you use win or linux

crisp kestrel
#

she uses mac

valid jetty
#

linux and macos

crisp kestrel
#

oh and linux apparently xd

leaden crater
dawn ledge
#

which distro

valid jetty
#

fedora

dawn ledge
#

missing out

leaden crater
#

install figlet

#

and sl

dawn ledge
#

(on the pains of nixos)

valid jetty
#

what is figlet

crisp kestrel
#

figlet

valid jetty
#

i already have kronkhite

#

it does tiling on kwin

#

if thats what it is

#

oh fun

leaden crater
# valid jetty what is figlet
Name            : figlet
Version         : 2.2.5-6
Description     : A program for making large letters out of ordinary text
Architecture    : x86_64
URL             : http://www.figlet.org/
Licenses        : BSD
Groups          : None
Provides        : None
Depends On      : glibc  sh
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 641.58 KiB
Packager        : T.J. Townsend <blakkheim@archlinux.org>
Build Date      : Fri 12 Jul 2024 05:40:19 PM EEST
Install Date    : Mon 31 Mar 2025 01:18:18 AM EEST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
crisp kestrel
#

rosie did i show you the last mac os setup i had for windows lmfao

valid jetty
valid jetty
crisp kestrel
#

actually guh i dont have any screenshots i think

crisp kestrel
crisp kestrel
#

IF i find a screnshot

valid jetty
#

!!!!

crisp kestrel
#

cannot be bothered actually sad

valid jetty
#

lmaoo ok

dawn ledge
#

rosie pro ricer

frosty obsidian
jade stone
#

thanks lldb, very cool

valid jetty
#

ive never riced linux before

#

was fun tho

crisp kestrel
#

here is the LAST one

#

although i had another one

valid jetty
#

i made the ff from scratch it took a while

dawn ledge
#

my rice isnt even worth calling a rice its all just badly taped together
dont even have an app launcher or status bar

crisp kestrel
#

which i cant really find rn...,,.,.,.,.

valid jetty
#

i love

leaden crater
crisp kestrel
#

what is she saying rosie

#

what is this person saying to me right now

valid jetty
#

enka and pop songss??

jade stone
leaden crater
crisp kestrel
#

i don't know any other app to nuke taskbar, unfortunately

valid jetty
dawn ledge
#

i would never touch kde

valid jetty
#

or i guess, not nixos

dawn ledge
#

even more so gnome

valid jetty
#

do you love complexity

dawn ledge
#

i have tried kde in the past, i just dont really like it

#

although i hate gnome unconditionally cause of gtk

hoary sluice
cinder egret
hoary sluice
leaden crater
hoary sluice
#

this goes against my morals

dawn ledge
#

in an ideal world i would make my own DE

valid jetty
leaden crater
#

@crisp kestrel
Write an essay of at least 400 words in which you present the distinctive features of a psychological novel or a studied experience. In developing the essay, you should consider the following guidelines:

– Highlight two characteristics that enable the classification of the studied novel within a specific period, a cultural/literary movement, or a thematic orientation;

– Comment on two episodes or sequences that are significant for the theme of the studied novel;

– Analyze two elements of structure, composition, and/or language that are relevant to the studied novel (for example: plot, conflict, temporal and spatial relationships, incipit, ending, narrative techniques, narrative voices, narrative perspective, stylistic registers, language, etc.).

leaden crater
valid jetty
#

yes !!

valid jetty
leaden crater
#

fren :3

leaden crater
valid jetty
#

mizuki is my kinnie

leaden crater
crisp kestrel
#

you're an AI

crisp kestrel
#

tell me who made it, when they made it, what type it is

#

no cheating

placid cape
leaden crater
crisp kestrel
#

now, what was made in 1916 and 1919

#

also 1920

#

and 1921, 1923 and 1927

dawn ledge
#

1920x1080

crisp kestrel
#

oh and when was Alexandru Lapusneanu made

leaden crater
#

mudromu i plemenitomu

crisp kestrel
#

this is all your fault

crisp kestrel
#

stupid doofus

leaden crater
#

@valid jetty i just found this

#

insane predict

crisp kestrel
#

news!!

#

oh shit i was supposed to listen to the song rosie sent

#

death

leaden crater
jade stone
#

i am going to go insane i hate windows

running lldb from the command line does nothing

but running it from explorer tells me a DLL wasn't found

why

dawn ledge
#

ai companies going "all code will be ai generated in X time", "humans will not be neede in Y time" is so funny

crisp kestrel
valid jetty
#

AI could NEVER write the code im writing

crisp kestrel
#

のだ by 大漠波新

crisp kestrel
#

WTF

#

you literally hate me

valid jetty
#

のだが大好き!!

leaden crater
crisp kestrel
#

i will not pay attention to the haters... AkoSigh

valid jetty
#

bあn

dawn ledge
crisp kestrel
valid jetty
#

by the time ai figures out how to do that ill have redefined proramming approximately 4.2 times

half cometBOT
valid jetty
#

@hoary sluice whats an abbr/smaller synonym for monomorphization

#

i cant exactly call the folder that does that "monomorphization" its way too long

leaden crater
dawn ledge
#

monomorph :^)

hoary sluice
#

@valid jetty you are 1 hour behind me the shops are still open can you get me a red bull

valid jetty
#

no redbull is bad for you

valid jetty
#

ill go to the little alleyway near your house and get you hard drugs instead

hoary sluice
#

also red bull is healthy

leaden crater
#

red bull bad

#

monster is better

valid jetty
#

red bull tastes like chemicals

leaden crater
#

(4th today)

valid jetty
#

i LOVE monster

hoary sluice
#

jump

leaden crater
#

jump what?

hoary sluice
leaden crater
#

i aleady have spacebar

valid jetty
#

monarch, pipeline punch, mango loco, the white one

#

pretty good

hoary sluice
valid jetty
#

monarch by far best tho

hoary sluice
valid jetty
#

IDK WHAT ITS CALLED

#

dont judge us monster drinkers we dont know what our own drinks are called

hoary sluice
#

its called ultra i think

crisp kestrel
valid jetty
#

yea that sounds about right

crisp kestrel
#

hate aside ellie u stinky

hoary sluice
#

i think ive tried monster once when i was like 12, hated it, never drank it again

dawn ledge
#

(it is chemicals)

valid jetty
#

😱

leaden crater
leaden crater
lavish frigate
#

i love drinking cheap energy drinks because they taste like chemical piss

valid jetty
#

irn bru and lucozade original also tastes like chemicals

leaden crater
#

puhbu u drink only literature

valid jetty
#

cheap energy drinks give me a massive headache

dawn ledge
lavish frigate
dawn ledge
#

i maintain a very healthy lifestyle
no energy drinks

#

we dont talk about my sleep schedule

leaden crater
valid jetty
#

ultra strawberry dreams??

leaden crater
#

yesss

valid jetty
#

that flavour is VILE

#

its pretty but i hate it

lavish frigate
valid jetty
#

i couldnt bring myself to finish the can i dumped it in the sink

lavish frigate
#

i drink monster when i actually need a good energy drink

leaden crater
#

i have like a stack of 40 cans in my room

lavish frigate
#

👎

dawn ledge
#

horror

lavish frigate
#

clean your room

leaden crater
#

its clean

valid jetty
#

i think they mean full cans

dawn ledge
#

how are y'all still alive after all that

leaden crater
lavish frigate
valid jetty
hoary sluice
#

me writing the "plan" we made "in september" knowing full well i completely freestyled this, rewrote the backend in rust midway through and am about to run out of time

dawn ledge
#

embrace the rust

leaden crater
dawn ledge
#

oxidize

#

vencord average life expentancy is 12y

ionic lake
#

use #[no_std]

hoary sluice
leaden crater
#

the heart.stop() isnt implemented in my system so i cant die

dawn ledge
#

#![no_std] is fire

runic sundial
#

yummy.

valid jetty
#

im gonna finish ichigo and then completely wing the documentation as if i planned this

leaden crater
valid jetty
#

im gonna make the 地雷系 dress for the other project and then completely wing my diary and sources/research as if ive been doing this all year

runic sundial
#

I love whiskey and reign energy drink

#

very good

hoary sluice
leaden crater
#

i wasnt drunk xd

valid jetty
#

ive been drunk before but i should stop i have too many secrets

lavish frigate
#

sigterm/exit so bad we php'ers do die();

valid jetty
#

and i make horrible typos when im drunk

leaden crater
#

i can tolerate up to 500ml 52%

valid jetty
leaden crater
runic sundial
valid jetty
runic sundial
#

Just chug it

leaden crater
#

its not that bad

#

ngl

#

i've had 68% palinka before and its cool

runic sundial
#

now do it on an empty stomach

leaden crater
valid jetty
leaden crater
valid jetty
#

wdym how

hoary sluice
#

how did you get alcohol

leaden crater
#

with cash?

hoary sluice
valid jetty
#

my parents are romanian they have a mini bar at my house

hoary sluice
#

lmao

#

i forgot

leaden crater
valid jetty
#

as for why

#

more secrets

dawn ledge
#

rosie thinks she mysterious

valid jetty
#

nope !!

dawn ledge
#

(shes gonna lore dump in vencord one day shes drunk)

leaden crater
#

@valid jetty do you wanna see very very very very very very awful rust code

valid jetty
# valid jetty

i read through my whole convo of this night to make sure i didnt say anything bad lol

#

i was fine and then within 5 mins i slowly had worse and worse typos

lavish frigate
#

i love dioxus

valid jetty
#

cant be worse than my rust code

valid jetty
runic sundial
#

unsafe {}

dawn ledge
runic sundial
#

whole thing

leaden crater
dawn ledge
#

dioxus has a lot of unsafe

lavish frigate
hoary sluice
valid jetty
#

oh no embed

#

WHY

dawn ledge
#

rosie why qbe over llvm /gen

hoary sluice
#

you sent the same link

valid jetty
#

np

#

different line number

valid jetty
lavish frigate
valid jetty
#

like uhhh

lavish frigate
#

its just windows doing windows things

valid jetty
#

it was easier when i first started working on elle because qbe is simpler

dawn ledge
valid jetty
#

but now that elle is complex i regret it and llvm is probably a better choice at this point

leaden crater
# valid jetty cant be worse than my rust code

its made by ai, so you can see the future of "obfuscation"

use bevy::{math::bounding::{Aabb2d as _0xA,BoundingCircle as _0xB,BoundingVolume as _0xC,IntersectsVolume as _0xD},prelude::*,sprite::MaterialMesh2dBundle as _0xE};
mod _0xF;
const _0xG: Vec3 = Vec3::new(0.,200.,1.); const _0xH: Vec3 = Vec3::new(0.,0.,1.); const _0xI: f32 = 30.; const _0xJ: Vec2 = Vec2::new(.5,0.); const _0xK: f32 = 40.; const _0xL: Val = Val::Px(5.); const _0xM: Color = Color::srgb(.9,.9,.9); const _0xN: Color = Color::srgb(.9,0.,0.); const _0xO: Color = Color::srgb(.5,.5,1.); const _0xP: Color = Color::srgb(1.,.5,.5);
fn _0xQ() { App::new().add_plugins(DefaultPlugins).add_plugins(_0xF::_0xR::default().add_schedule(Update).add_schedule(FixedUpdate).at(Val::Percent(35.),Val::Percent(50.))).insert_resource(ClearColor(_0xM)).add_systems(Startup,_0xS).add_systems(FixedUpdate,(_0xT,).chain()).add_systems(FixedUpdate,(_0xU,).chain()).run(); }
#[derive(Component)] struct _0xV; #[derive(Component,Deref,DerefMut)] struct _0xW(Vec2); #[derive(Component,Deref,DerefMut)] struct _0xX(f32);
fn _0xS(mut _0xY: Commands, mut _0xZ: ResMut<Assets<Mesh>>, mut _0xAA: ResMut<Assets<ColorMaterial>>, _0xAB: Res<AssetServer>) { _0xY.spawn(Camera2dBundle::default()); let _0xAC = |pos: Vec3, scale: f32, vel: Vec2, mass: f32| _0xY.spawn((_0xE{mesh:_0xZ.add(Circle::default()).into(),material:_0xAA.add(_0xN),transform:Transform::from_translation(pos).with_scale(Vec2::splat(scale).extend(1.)),
dawn ledge
#

that macro you sent is some nightmare fuel

valid jetty
#

i mean potato tomato both have similar codegen technically but llvm has more strict types and more instructions and more optimization

hoary sluice
#

!!!!! (its fully chatgpt)

leaden crater
#

not that bad honestly, it can get worse with ai "obfuscation"

valid jetty
dawn ledge
#

yeah

valid jetty
#

lmaooo

dawn ledge
#

the entire file is tbh :^)

valid jetty
#

do you love

dawn ledge
#

my brain cannot handle more than like 500 lines

#

i need to split files

valid jetty
#

almost done only like 5 nodes left to compile

#

so far

dawn ledge
#

macros in elle!

valid jetty
#

macros are just very extreme cases of inlining so its very possible

leaden crater
#

i need some opinions about "goto" and " ternary op ? : "

dawn ledge
#

elle async trolley

valid jetty
#

goto is great, ternary is great if the nesting of ternaries <= 2

leaden crater
#

FINNALY SOMEONE

valid jetty
#

i will say tho

#

goto is only great for breaking out of nested loops

#

or a switch case in a loop

#

like

for (;;) {
    switch (x) {
    case "foo": goto out;
    default: break;
    }
}

out:
  printf("hi im out\n");
lavish frigate
#

do you guys think turning off the firewall completely is an option

fleet cedar
valid jetty
#

@dawn ledge give me your divine rust knowledge is there a neater way to write this code

use crate::{
    compiler::{
        compiler::{Codegen, CodegenContext, Compiler},
        enums::{Instruction, Type, Value},
    },
    parser::enums::Return,
};

impl Codegen<'_> for Return {
    fn compile(self, gen: &mut Compiler, ctx: &CodegenContext<'_>) -> Option<(Type, Value)> {
        let res = gen.generate_statement(
            ctx.func,
            ctx.module,
            *self.value,
            ctx.ty.clone(),
            None,
            true,
        );

        if !ctx.func.borrow_mut().manual {
            ctx.func.borrow_mut().add_instruction(Instruction::Return(
                res.map(|(ty, val)| (ty, val, self.location)),
            ))
        }

        None
    }
}
dawn ledge
#

this is already neat enough

valid jetty
#

hmm idk

cinder egret
#

there is a way but i won’t tell you

#

ask chatgpt @valid jetty

valid jetty
#

faye only writes python code and vibe codes

cinder egret
#

yeah

fleet cedar
#

Function with six parameters is a bit too much

dawn ledge
#

its fiiiiiiiineeeeeeeeeeeeeeeeeeeeeeeeee

valid jetty
#

im gonna move all of those into 1 struct and pass that through

#

at some point

#

its already in a struct but i meant like, getting rid of the multiple params

#

there are a lot of things that call that function

#

it would be a lot of refactoring

valid jetty
#

Funclet

#

when the lifetime has multiple characters you know its peak code

fleet cedar
#

'de

dawn ledge
leaden crater
# fleet cedar Goto is shit, competent languages don't need it Ternary op is a decent workarou...
int main() {
    int choice;
    
main_menu:
    cout << "\nMain Menu:\n";
    cout << "1. Option 1\n";
    cout << "2. Option 2\n";
    cout << "3. Option 3\n";
    cout << "4. Option 4\n";
    cout << "5. Option 5\n";
    cout << "6. Exit\n";
    cout << "Enter choice (1-6): ";
    cin >> choice;
    
    if (choice == 1) goto menu1;
    if (choice == 2) goto menu2;
    if (choice == 3) goto menu3;
    if (choice == 4) goto menu4;
    if (choice == 5) goto menu5;
    if (choice == 6) return 0;
    goto main_menu;

menu1:
    cout << "\nMenu 1 Selected\n";
    cout << "1. Sub-option 1\n";
    cout << "2. Sub-option 2\n";
    cout << "3. Back to Main Menu\n";
    
menu2:
    cout << "\nMenu 2 Selected\n";
    cout << "1. Sub-option 1\n";
    cout << "2. Sub-option 2\n";
    cout << "3. Back to Main Menu\n";
    
menu3:
    cout << "\nMenu 3 Selected\n";
    cout << "1. Sub-option 1\n";
    cout << "2. Sub-option 2\n";
    cout << "3. Back to Main Menu\n";
    cin >> choice;
    
menu4:
    cout << "\nMenu 4 Selected\n";
    cout << "1. Sub-option 1\n";
    cout << "2. Sub-option 2\n";
    cout << "3. Back to Main Menu\n";
    cin >> choice;
    
menu5:
    cout << "\nMenu 5 Selected\n";
    cout << "1. Sub-option 1\n";
    cout << "2. Sub-option 2\n";
    cout << "3. Back to Main Menu\n";
    cin >> choice;

    return 0;
}
fleet cedar
#

Why do you have a compiler::compiler module

valid jetty
#

well except enums and structures

#

but all the codegen happened in 1 file

leaden crater
valid jetty
leaden crater
#

its not that bad

fleet cedar
#

"Enums" module is so funny

valid jetty
#

the lexer and parser parts both have an enums.rs

leaden crater
#

plus no one will check source code

cinder egret
crisp kestrel
#

oh ya r u feeling better ellie

#

hello rosi

dawn ledge
#

why would you teach me something i shouldnt do

#

one day we were being taught some html and we were told we can put <head> in body, i argued you shouldnt and he went "but you can!", what a bitch

leaden crater
valid jetty
#

look at all the imports that arent needed anymore !!!!!!!

leaden crater
#

tables be damned

leaden crater
dawn ledge
#

using goto extensively is just bad

leaden crater
#

nah

#

im gonna make a cli game with goto

fleet cedar
#

There's a reason why no language designed this millennium has goto

crisp kestrel
#

dont die on me..

fleet cedar
#

(That reason being, it sucks)

valid jetty
#

i mean modern languages have labelled blocks which is essentially a goto

#

labelled loops and stuff

#

which is the main usecase for goto anyway

leaden crater
fleet cedar
#

Rust's control flow for example consists of match, loop, and labeled break

#

Plus various syntax sugars (if, while, return, etc)

leaden crater
valid jetty
#

rust loops being expressions is fun

leaden crater
#

who is gonna read my source code anyways

dawn ledge
#

xai

#

sam altman

valid jetty
#

i mean i said that before too but a lot of people have read my source code by now lol

#

for various things i made

leaden crater
#

that being said i should start working again on my vamp survivors knockoff

#

been procrastinating since mid march

crisp kestrel
#

no

#

no dying

dawn ledge
#

code inside an airtight machine and it'll die of no airflow

leaden crater
#

@valid jetty do you wanna see my vamp survivors knockoff later this year when it's better built

leaden crater
dawn ledge
#

they dont :^)

valid jetty
#

ya sure

leaden crater
#

wow what a nice file

valid jetty
#

OMG MY HAIR KEEPS GOING IN MY MOUTH I HATE THE WIND

fleet cedar
#

Consume it

#

Consume the wind

valid jetty
#

kyuuhachi

dawn ledge
leaden crater
valid jetty
#

is a file rename considered a fix or a chore

#

in semantic commit naming

dawn ledge
#

chore

crisp kestrel
fleet cedar
#

How should I know

#

It's a refactoring

valid jetty
#

do you not do commits

leaden crater
fleet cedar
#

I do commits, yes

valid jetty
#

idk you seem like the kind of person to do semantic commits lol

crisp kestrel
#

ellie go study

#

stop coding

#

stupid

leaden crater
valid jetty
crisp kestrel
lavish frigate
#

is there genuinely a single reason to use goto at all

crisp kestrel
#

cuz ure stupid

fleet cedar
#

No

crisp kestrel
fleet cedar
#

Unless you're in a language that sucks

lavish frigate
crisp kestrel
#

hope ure well sis

leaden crater
lavish frigate
valid jetty
#

in a language without labelled loops, goto can make the code slightly easier to read

lavish frigate
valid jetty
#

otherwise no

crisp kestrel
lavish frigate
#

smh...

valid jetty
#

what does pirating entail

leaden crater
valid jetty
#

download the game, get a refund, keep the game data?

lavish frigate
#

i stopped pirating once i started earning money

leaden crater
#

puhbu goes to odob. and never comes back

lavish frigate
#

steam is just so much better than piracy ☹️

dawn ledge
#

why does this seem like cap

crisp kestrel
valid jetty
#

lol yeah

crisp kestrel
#

to trick steam into thinking i own the game

#

when i don't own it

#

;3

valid jetty
crisp kestrel
#

xd

leaden crater
valid jetty
ionic lake
valid jetty
#

i accidentally found this

leaden crater
#

puhbu go study to earn money and unpirate

lavish frigate
#

why is cyberpunk saying "from your steam library" when i literally bought it

dawn ledge
lavish frigate
#

cant

valid jetty
lavish frigate
valid jetty
#

i then get a refund and the game still works to this day

crisp kestrel
#

guess the pirated games

dawn ledge
valid jetty
#

(i did this accidentally)

ionic lake
#

what game is it

crisp kestrel
ionic lake
#

might just be a mac thing

valid jetty
#

it was a stardew valley x pokemon game i forgot the name

#

i bought it, it performed badly, got a refund

lavish frigate
#

my family (and an irl friend) spends a lot of money on games

#

idk

ionic lake
#

stardew valley has no drm

valid jetty
#

and then it turned out i still had the .app

ionic lake
#

palworld?

valid jetty
#

nope

crisp kestrel
crisp kestrel
valid jetty
#

moonstone island

ionic lake
crisp kestrel
#

well if 5dolalrs ir 5000 steam points

valid jetty
crisp kestrel
#

128k would be 128$? i think

valid jetty
#

and then i still had the game files after it was funny

crisp kestrel
#

bro im stupid

lavish frigate
#

1278 dollars and 58 cents

ionic lake
crisp kestrel
lavish frigate
#

1 cent = 1 point iirc

valid jetty
leaden crater
ionic lake
#
crisp kestrel
lavish frigate
lavish frigate
valid jetty
crisp kestrel
#

im boutta be banned from youtube again </3

ionic lake
#

digital storefront by cdpr for keeping archives of old games and drm free ones

valid jetty
dawn ledge
#

drm sucks

lavish frigate
dawn ledge
#

cant even pirate

ionic lake
#

no

lavish frigate
#

you still have to pay for the games

#

its an official marketplace not a piracy site

leaden crater
#

@valid jetty play inzoi and recode it

crisp kestrel
ionic lake
#

they basically just give you the full installer and you can copy it anywhere you want

crisp kestrel
#

i need to update it from steam soon

ionic lake
#

inzoi is peak i agree

lavish frigate
#

inzoi is good but still very early access

leaden crater
lavish frigate
crisp kestrel
#

ellie do u love

lavish frigate
leaden crater
ionic lake
#

my migration file is called married molten man

valid jetty
#

@nimble bone

lavish frigate
crisp kestrel
#

acutie spotted

crisp kestrel
#

and stop hater

leaden crater
lavish frigate
ionic lake
#

is sea orm like prisma or drizzle

lavish frigate
#

well

#

its an orm

hoary sluice
dawn ledge
#

orms are overrated
write queries manually (i unironically do this)

leaden crater
#

@crisp kestrel Direct message

lavish frigate
lavish frigate
#

genuinely

valid jetty
#

why is rust so verbose??????????????????

ionic lake
#

yeah i know that, i kind of want it just because it keeps me sane

valid jetty
#

why so much pub

#

like omg

ionic lake
#

you can just use sqlx and it checks at compile time

dawn ledge
lavish frigate
#

#[cfg(feature = "server")]

dawn ledge
#

rust is nice until its not

fleet cedar
#

Why are those different structs

lavish frigate
#

Model and Serializable?

fleet cedar
#

They seem to be exactly the same

lavish frigate
#

its to keep sea_orm out of the client

dawn ledge
#

you can derive based on cfg

fleet cedar
#

cfg_attr?

dawn ledge
#

yeah

lavish frigate
#

oh?

#

time to look into that

dawn ledge
#

its just cfg but you can use attrs with it

#
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "server", derive(DeriveEntityModel))]
#[cfg_attr(feature = "server", sea_orm(table_name = "theme"))]
lavish frigate
#

works fine! tysm!

#

funnily enough my cpu instantly went from 40°C to 60°C after i made that change (rust analyzer moment)

dawn ledge
#

soon you'll need a chiller

lavish frigate
#

i try to keep my cpu below 60°C at all times

#

thats why my fan curves are kinda fucked up

leaden crater
lavish frigate
#

cuz it works fine!

#

they just look fucked up

#

not like i care about that too much anyway i keep a plushie on top of my pc where the aio exhaust is (i love suffocating my cpu)

dawn ledge
#

you cant be doing this while running rust

leaden crater
#

nothing bad happens

dawn ledge
#

explodes

leaden crater
#

not yet

spark tiger
#

rewrite in rust rocketcrashrocketcrashrocketcrash

leaden crater
#

cobol is still used because companies insist on it

dawn ledge
#

the more legacy and arcane the codebase the more you get paid

#

🚀

lavish frigate
dawn ledge
#

waiting for bank software to give everyone a trillion dollars cause cobol to java vibe coded migration messed up

lavish frigate
dawn ledge
#

can they mistakenly give me a couple trillion dollars, not tax it and not retrieve it

dawn ledge
dawn ledge
#

well then make it positive

dawn ledge
#

i dont have cashapp

#

:(

crisp kestrel
#

I'll pigeon carrier

dawn ledge
#

sure

leaden crater
crisp kestrel
#

it'll come in a bottle and the pigeon will be called Moshi‐ so please be kind to Moshi

leaden crater
#

moshi moshi?

dawn ledge
#

i prefer transactions in the form of rare metals and art pieces and sent directly to my trust fund

supple whale
#

and thats where all the perf came from

supple whale
#

dogass framework

valid jetty
#

WHY DOES IT DO THIS AND THEN THROW 10000 ERRORS

#

LET ME UPDATE RUST

dawn ledge
#

avg rust experience

valid jetty
#

error: Custom { kind: Other, error: "proc-macro server's api version (5) is newer than rust-analyzer's (4)"

#

SO LET ME UPDATE IT

valid jetty
#

did i explode everything

#

how do i clean rustup

dawn ledge
#

rm -r ~/.cargo
rustup self uninstall

leaden crater
valid jetty
dawn ledge
#

it will uninstall everything, rustc, rustup, cargo, binaries installed via cargo

valid jetty
#

i just did

$ rustup toolchain uninstall nightly-aarch64-apple-darwin
$ rustup toolchain install
``` seems to have fixed it
leaden crater
dawn ledge
#

nah arch is worse

nimble bone
#

you scrobble all day

supple whale
#

do we have any css GODS here?

#

mainly glitch, and build on

#

are the 2 i'm struggling with

#

rest is for the most part easy

hoary sluice
valid jetty
hoary sluice
#

elle is such a bad name you couldve called it 'Big And Long Lethargic Script (BALLS)'

leaden crater
#

elle is good name it's almost me

hoary sluice
#

not using an lsp anymore

valid jetty
#

idk why it all exploded as soon as i try to make a proc macro

hoary sluice
#

rewrite elle in just a proc macro

#

wouldnt that actually be smart tho cause u can basically just use rust as IR

valid jetty
#

lmao true

#

ok well it works

use proc_macro::TokenStream;
use quote::quote;
use syn::{parse_macro_input, Data, DeriveInput, Fields};

#[proc_macro_derive(Codegen)]
pub fn codegen_enum(input: TokenStream) -> TokenStream {
    let input = parse_macro_input!(input as DeriveInput);
    let name = input.ident;

    let Data::Enum(data_enum) = input.data else {
        panic!("cannot use the Codegen derive macro on non-enum inputs");
    };

    let variants = data_enum.variants.iter().filter_map(|variant| {
        if let Fields::Unnamed(_) = variant.fields {
            let ident = &variant.ident;
            Some(quote! { Self::#ident(this) => this.compile(gen, ctx) })
        } else {
            None
        }
    });

    let expanded = quote! {
        impl #name {
            pub fn compile(self, gen: &mut Compiler, ctx: &CodegenContext) -> Option<(Type, Value)> {
                match self {
                    #(#variants,)*
                    _ => panic!("statement: {:?}", self),
                }
            }
        }
    };

    TokenStream::from(expanded)
}
#

now i can just derive(Codegen) on my AstNode enum and i can shrimply

pub fn generate_statement(
    &mut self,
    func: &RefCell<Function>,
    module: &RefCell<Module>,
    stmt: AstNode,
    ty: Option<Type>,
    value: Option<Value>,
    is_return: bool,
) -> Option<(Type, Value)> {
    // TODO: Unclone these when the whole codegen is moved to the Codegen trait
    let ctx = CodegenContext {
        func,
        module,
        stmt: stmt.clone(),
        ty: ty.clone(),
        value: value.clone(),
        is_return,
    };

    stmt.compile(self, &ctx)
}
#

but i can do better

leaden crater
valid jetty
#

pretty productive march i guess

leaden crater
deep mulch
valid jetty
#

yeah thats something else

deep mulch
#

with 1 minute of sleep

valid jetty
deep mulch
#

I can't even stay motivated to write a lexer

valid jetty
#

the lexer is the most boring part

deep mulch
valid jetty
#

get through the boilerplate and make a basic language that can compile very basic things (like something that can compile hello world) and then build on it

#

thats what i did

#

its not like these all came at once

deep mulch
#

@valid jetty rosinga

deep mulch
leaden crater
#

i had an idea to make a language a few months ago but gave up on it

deep mulch
#

@leaden crater are you real

leaden crater
#

People were saying it's too "bad"

leaden crater
valid jetty
deep mulch
#

oh

valid jetty
#

better many files in 1 folder than many functions in 1 file

leaden crater
#

the entire app in 1 file

deep mulch
#

do

#

5000 line file @valid jetty

leaden crater
#

50000 line file

#

what is empty brain role

deep mulch
#

idk

leaden crater
#

can i tag it or will i explode

valid jetty
#

holy shit @dawn ledge this abstraction means i dont even need the match at all because i can get rid of generate_statment and just do AstNode.compile(Compiler, CodegenContext)

#

this is gonna take a while but should be cool

#
let (left_ty, left_val) = self
    .generate_statement(func, module, *left, ty.clone(), None, is_return)

turns into

let (left_ty, left_val) = (*left)
    .compile(
        self,
        &CodegenContext {
            func,
            module,
            ty: ty.clone(),
            value: None,
            is_return,
        },
    )
#

thats so nice

hoary sluice
#

rosie is turning her codebase into an enterprise java application

#

gn kittens

leaden crater
#

le cat

valid jetty
#

im not this is just clearer

hoary sluice
#

rosie has motivation days

valid jetty
#

KLMAO

#

not really, the difference is that ive learnt to make smaller commits instead of 1 huge commit

leaden crater
leaden crater
#

idk if i should publish my project on github

hoary sluice
#

u should

#

put everything an github as long as it wont directly reduce the profit you make from the project

leaden crater
#

zero minus zero is zero

valid jetty
# dawn ledge cooool
let (ty, val) = (*self.value)
            .compile(
                gen,
                &CodegenContext {
                    value: None,
                    is_return: false,
                    ..ctx.clone()
                },
            )
            .expect(&self.location.error(
                "Unexpected error when trying to compile the value of an address statement",
            ));

i can do this as a substitute for

let (ty, val) = (*self.value)
            .compile(
                gen,
                &CodegenContext {
                    value: None,
                    is_return: false,
                    func: ctx.func.clone(),
                    module: ctx.module.clone(),
                    ty: ctx.ty.clone()
                },
            )
            .expect(&self.location.error(
                "Unexpected error when trying to compile the value of an address statement",
            ));
``` right
#

just wanna confirm before i go do this everywhere and break stuff

fleet cedar
#

Yes, but that will clone the value as well, possibly unnecessarily

valid jetty
#

hm

#

whats the correct way to do this then without huge amounts of verbosity

fleet cedar
#

Wait, two is_return?

#

If you do specifically the value: None, is_return: false thing often, consider a method

valid jetty
dawn ledge
#

give up on clone, embrace writing lifetimes everywhere

royal nymph
#

cause people who only listen to 1:30 tiktok songs will have much more than people like me who listen to music that averages like 7-10 minutes length

valid jetty
#

doesnt last.fm count a scrobble as at least 2 minutes of the song or 50% or more if the song is shorter than 2 mins???

#

im pretty sure they dont count a scrobble as listening to the entire song

valid jetty
leaden crater
valid jetty
#

itll show as currently scrobbling but it wont count as a scrobble idt

leaden crater
#

idk

royal nymph
leaden crater
#

i just checked

eternal wigeon
#

can someone tell me why regex isn't just functions instead of cursed cryptic characters?

timber root
eternal wigeon
fleet cedar
#

Writing a function to validate all that would be utterly painful though

#

And probably slower than regex in most cases

valid jetty
#

@dawn ledge improved

use crate::{
    compiler::{
        compiler::{Codegen, CodegenContext, Compiler},
        enums::{Instruction, Type, Value},
    },
    parser::enums::Return,
};

impl Codegen<'_> for Return {
    fn compile(self, gen: &mut Compiler, ctx: &CodegenContext<'_>) -> Option<(Type, Value)> {
        let res = self.value.compile(gen, ctx);

        if !ctx.func.borrow_mut().manual {
            ctx.func.borrow_mut().add_instruction(Instruction::Return(
                res.map(|(ty, val)| (ty, val, self.location)),
            ))
        }

        None
    }
}
spark tiger
#

wtf i just launched jetbrains rider isob

deep mulch
#

you love indexing

royal nymph
valid jetty
#

i love commits like this

royal nymph
#

Max out cpu to load as fast as possible

valid jetty
#

plain and simple 330 lines gone

#

from brainless simplifications

spark tiger
winged mantle
#

i find games laggy when code compiling

dawn ledge
deep mulch
jade stone
#

am i crazy or is char * the same as char[]

dawn ledge
#

yes and no

#

well they are

formal belfry
dawn ledge
#

we'll find out through science

jade stone
dawn ledge
#

yeah

formal belfry
#

yeah it's kinda stupid

#

if that even compiles btw

jade stone
#

its defined in sys/inotify.h

formal belfry
jade stone
#

im trying to make my own file watching api because i need one

leaden crater
#

char c[65537]

jade stone
#

lobotomizing whatever c++ dev thought overloading the / operator was a good idea for path concatenation

formal belfry
#

lobotomized

dawn ledge
jade stone
#

this shit

#

who came up with that

dawn ledge
#

thats normal for like pre python 3
now they use f strings

jade stone
#

what hapened to fprintf or smth like that

jade stone
wheat kernel
wheat kernel
#

there's like 4 ways

dawn ledge
#

.format my beloved

#

whats the 4th

wheat kernel
#

u can do this, u can .format(1, 2, 3), .format(key=x), or f-strings

#

ig 2 and 3 are like the same thing

dawn ledge
#

says 4
proceeds to list format twice

wheat kernel
#

well one is like

dawn ledge
#

smh

jade stone
wheat kernel
#

yeah

jade stone
#

prob handy for user input

#

they can put what they want in the string

wheat kernel
#

u can have named formats like "limit: {limit}" or "limit: {0}"

jade stone
#

the typescript slowly is going down blobcatcozy

dawn ledge
#

nix censorship

dawn ledge
jade stone
austere idol
spark tiger
valid jetty
#

do i add template literals to elle

#

currently you do string::format("foo {} !", 1) or "foo {} !".format(1)

formal belfry
#

aw hell nah

#

man all these electron apps

blazing haven
#

i love electron

valid jetty
#

sub 1k loc !!!!!!!!!!!!!!!!!

#

so good

#

soon™️

valid jetty
#

ok compiler is fully refactored technically

#

ill eventually move away from Option<T> into Result<T, E> for the node codegen

#

this all came from 2 files lmao

#

now i have to basically repeat that for the parser

#

although the parser shouldnt take as long

valid jetty
#

it’s a refactor, no implementation has changed

spark ridge
#

will elle be self-hosted in the future?
@valid jetty

valid jetty
#

yeah that is a plan for the future

#

once i add tagged enums and else-if statements its probably very doable

#

but i would rather have a safe compiler in rust first that i can be confident about before i go try and do it in elle

#

its easy to shoot your foot off

#

if i have a backup compiler to fall back on i can yeah

spark ridge
#

thats nice
do you have any specific plans in mind?
your language dev is very interesting

nimble quail
#

in python, would using dictionaries with data in the value slot be more efficient than making objects with a bunch of properties?
i've been told that objects are "horribly inefficient" by multiple ppl

i'm expecting 1mil-5mil objects during normal runtime, and the expected data types are sets of coordinates and multiple strings.
multiple pieces of information would be stored per key

would it be more efficient to store data per key as big strings and then parse them when the data is being used?
too complex/need more information to make this decision?

nimble quail
fleet cedar
#

Python is inherently "horribly inefficient"

nimble quail
#

i've considered NP arrays but i'm working with strings and i dont remember them supporting strings(?)

fleet cedar
#

Using dicts vs objects makes no difference

nimble quail
#

does it matter at large scale

fleet cedar
#

No

lavish frigate
fleet cedar
#

Because you don't use python for performance critical things

nimble quail
spark ridge
nimble quail
#

not online, singleplayer

#

the problem is that i expect the objects to become. like. 10x more complex. and take up a lot more space per object

lavish frigate
nimble quail
spark ridge
nimble quail
#

yeah

lavish frigate
nimble quail
#

i intend to make star density higher toward center and sparser toward outer fringes

#

i'm working with pygame as an "engine" (💀)

spark ridge
nimble quail
#

well fuck

#

too bad

#

im not learning assembly

#

god said let there be 5mil+ objects

shrewd canopy
leaden crater
shrewd canopy
leaden crater
#

but python is not really good for something like this imo

nimble quail
#

i never expect to reach beyond 5mil stars, especially with generating planets, stations and their behaviors

#

which is sad because the milky way has immensely more stars

spark ridge
nimble quail
#

i can still simulate the average distance between individual stars and the challenges that come with that

#

i dont need many stars at all to do that

#

.
the intended effect is for the player to look at the map, understand that every star is a potential system which may rarely have life of its own, and then come to the realization that they as an entity Do Not Matter at this scale

it is, in spirit and hopefully by design, a psychological horror game

#

so. the more scale i can feasibly squeeze out of this, the better

lavish frigate
nimble quail
#

starsector is a TINY game

#

need more universe

shrewd canopy
nimble quail
spark ridge
#

why can't you create a system like the seed value in minecraft that generates stars where the player visits?
@nimble quail

nimble quail
#

generate upon visit?

#

perchance

spark ridge
lavish frigate
#

i feel like this is the perfect project to learn said compiled language!

nimble quail
#

the problem is that the gameplay expects there to be stations and stuff in places the player has not visited, and station behavior depends on the stuff around them

a minecraft village has no real behavior besides dying to mobs
a Starsector colony has like. an economy

i don't expect to simulate a galactic economy, just the basics; availability of some goods would depend on proximity to other stations and some types of bodies/planets

#

.
it's worth mentioning this is in 2D (3D is to many for brian)

#

i could get lazy and go "ooh all the civilization is dead (and conveniently requires no simulation)" which might be interesting but

#

there's also the value of "this is a currently living system that is many times larger than myself"

nimble quail
lavish frigate
#

you should use an actual game engine instead of pygame

#

this is very much out of scope for pygame

nimble quail
#

considered godot but im seeing a similar problem

lavish frigate
#

similar problem?

nimble quail
#

more information to handle

lavish frigate
#

the big difference is that

valid jetty
lavish frigate
#

gdscript is compiled

#

python isnt

valid jetty
#

and i want to write a wasm backend

nimble quail
lavish frigate
#

and of course actually made for games so youll have an easier time doing.. anything

#

its also based on python, so if you already do know python youll have an easy time switching

nimble quail
#

what's the diff between compiled and uncompiled language?

lavish frigate
#

okay so basically

nimble quail
#

i guess this is what google is for

lavish frigate
#

you have python which is interpreted. You have your python code and you tell the python interpreter to run it. It will go over the code, translate your code into machine code that your pc can actually run, then runs that

#

and then you have gdscript which is compiled. You have your gdscript code and you tell the compiler to compile it. This turns your code into machine code. You then run that machine code

#

you skip that whole compilation step at runtime

leaden crater
lavish frigate
spark ridge
nimble quail
#

is it worth dumping the shitty working thing and porting/starting over in godot

#

or do i fuck it and ball

valid jetty
#

start over in brainfuck

leaden crater
#

better start over now than later

nimble quail
#

big thing i do nof like about godot is that the documentation has been almost more harm than good

lavish frigate
# lavish frigate you skip that whole compilation step at runtime

the benefits of this are:

  1. you skip the compilation step at runtime which makes your program (or in this case your game) run faster
  2. the compiler throws compilation errors which can show you problems with your code before you even run said code

the drawbacks are:

  1. compilation times, you have to wait for your program to compile
  2. compilers are usually very strict, especially with types and its a bit more complicated (i doubt this applies too much in gdscript though)
nimble quail
spark ridge
hazy pine
#

do it in malbolge

valid jetty
#

i watched the video on jsfuck that was so interesting lmao

keen beacon
#

are we allowed to talk about local installs of vencord here?

hazy pine
#

oh i think i watched that asw

#

as long as you're progaming

keen beacon
#

oh

lavish frigate
keen beacon
#

understandable

nimble quail
keen beacon
#

ig it would be better to ask about it in abstract then? its not really a vencord specific thing tbf

nimble quail
#

ugh. sunken cost fallacy has hit me i think

lavish frigate
nimble quail
#

so wait.
if i build an .exe from the python, isn't that "compiled"

lavish frigate
#

Not really

fleet cedar
#

If you build an exe from the python, you basically have a funny zip file with .py files

nimble quail
#

fuck

lavish frigate
#

If you are looking at Python to exe it basically just puts your Python code and the interpreter into the exe

fleet cedar
#

Maybe .pyc, not sure

hazy pine
#

im pretty sure it just packages the code and interpreter into an exe

#

yeha

lavish frigate
#

It’s just not worth making an actual Python compiler

#

Python works in ways where it can’t be optimised that much so there is no point in going for performance

#

You’ll always get „just use an actual compiled language!“

nimble quail
nimble quail
#

devil and angel

#

the stupider option feels funnier, and i do like a good comedy

hazy pine
#

do a coinflip

#

if it lands heads, godot

#

if it lands tails, godot

nimble quail
#

ough im scared to commit

lavish frigate
nimble quail
#

fuck it im gambling

#

UUUUUUUUGH.

#

FINE.

#

time to "port" (rewrite) my entire project in goodt

#

goodt??

#

new language dropped......

#

time to go speedrun my cs1 quiz

hazy pine
#

fuck yeah

lavish frigate
#

brackeys the goat

hazy pine
#

still crazy that godot was so good it got brackeys to come back from the dead

lavish frigate
#

nah 😭

#

unity ceo messed up so hard that brackeys had to come back

#

it was when they announced that licensing thing

hazy pine
#

a girl can dream

lavish frigate
#

personally havent tried godot yet

hazy pine
#

honestly i encourage everyone to use godot sm but i dont think ive actually made any finished games in it

#

doesnt change the fact that its peak

#

all the other stuff aside, godot was the first game engine that i coudl actually understand cause unity was just not getting to me

leaden crater
#

@lavish frigate you said goto is bad right

#

vencord has goto

lavish frigate
#

vencord is also bad

#

so im not sure what point you are trying to make

hazy pine
#

i forgot what goto was so i read it as "got o" and not "go to"

lavish frigate
#

c++ (the best programming langauge) has goto tho

leaden crater
#

interesting

fleet cedar
#

That is not a point in its favor

hazy pine
#

whats wrong with goto

fleet cedar
#

Completely unstructured

winged mantle
#

so TIL nobody has actually created discord bot in asm

hazy pine
#

whos gonna be the first

lavish frigate
winged mantle
#

I am learning x86_64 assembly

lavish frigate
#

i use it all the time in my c++ code

winged mantle
#

I think it might be hard

winged mantle
#

but surely it's not that hard

#

technically you don't need multithreading?

hazy pine
#

asm seems like it would be easy but just really tedious

winged mantle
#

if all you are doing is checking for messages containing certain text that should be ez!

leaden crater
#
byte FUN_140001620(void)

{
  longlong in_RAX;
  
  return *(byte *)(in_RAX + 0x17) & 0x1f;
}

that such a function

jade stone
#

i say rust lambda syntax is bad, but c++ is arguably worse

fleet cedar
#

C++ lambda syntax deserves four millennia in jail

jade stone
#

yeah

fleet cedar
#

Rust's is a bit unorthodox, but fine

valid jetty
#

the only languages with sane syntax for lambdas is c#, js, and python

#

(dynamically typed languages in general)

jade stone
#

like how is this valid

auto lambda = [] {do_thing();};
auto lambda2 = [] -> void {do_thing();};
auto lambda3 = [] () {do_thing();};
auto lambda4 = []() -> void {do_thing();};
#

so insane

lavish frigate
#

it makes sense if you really think about it

#

c++ wouldnt just be incomprehensible like that

jade stone
#

yea, i love them

valid jetty
#

elle has

lambda := fn() do_thing();
lambda2 := fn() -> void do_thing();
lambda3 := fn() { do_thing(); };
lambda4 := fn() -> void { do_thing(); };
lavish frigate
#

php coded

#

/run ```php
<?php

$test = fn() => 'asdf';
echo $test();

rugged berryBOT
#

Here is your php(8.2.3) output @lavish frigate

asdf```
lavish frigate
#

tbf php callables fucking suck and elles probably dont

#

/run ```php
<?php
class Test {
public function foo() {
echo "bar";
}
}

$obj = new Test();
$obj, "foo";

rugged berryBOT
#

Here is your php(8.2.3) output @lavish frigate

bar```
lavish frigate
#

love?

valid jetty
#

nvm i got rid of the explicit return type

#

lmao

#

i forgot about that

lavish frigate
#

you can also call strings if you wanna

#

/run ```php
<?php
class Test {
public static function foo() {
echo "bar";
}
}

"Test::foo"();

rugged berryBOT
#

Here is your php(8.2.3) output @lavish frigate

bar```
lavish frigate
#

doesnt that make sense?

lavish frigate
#

also why strings and arrays are technically part of the "Callable" interface :3