#🪅-progaming

1 messages · Page 54 of 1

valid jetty
#

this

pub trait Codegen<'a> {
    fn compile(self, gen: &mut Compiler, ctx: &CodegenContext<'a>) -> Option<(Type, Value)>;
}
#

then i can do this when compiling

#

and use some macro to condense this down to a single line afterwards

#

because every variant does the same thing

#

in the case of your interpreter imagine you want to dispatch a function for each variant of your astnodes in your Evaluator

dawn ledge
#

just do this and let res = self.compile_res_or_something(...)

valid jetty
#

*without using macros because rust-analyzer has a seizure

dawn ledge
#

when does RA not have a seizur

#

istg it dies even on hello world sometimes

valid jetty
dawn ledge
valid jetty
#

and then condense them all down to 1 line

dawn ledge
#

looking at this makes me want to make a compiled language

valid jetty
#

lmao

#

yeah you have the same issue actually

#

the issue with creating structs like this is that you cant pass them around

#

what happens when you dont want to destructure and just want to capture the struct and pass it along to another function

#

you cant

#

which is why for a while elle had a huge single file, each node had an implicit struct attached to it which you can only access through matches

#

because passing around every field to a function is ugly

supple whale
valid jetty
#

and this way with the trait is much nicer imo

supple whale
#

all the final exam answers on all courses are fully unprotected

#

💀

dawn ledge
#

_shouldBeSelected: true

supple whale
#
function queryDeepSelectorAll(selector, rootNode=document.body, all=true) {
    const arr = []
    const traverser = node => {
        if (!all && arr.length) return;

        // 1. decline all nodes that are not elements
        if(node.nodeType !== Node.ELEMENT_NODE) return

        // 2. add the node to the array, if it matches the selector
        if(node.matches(selector)) {
            arr.push(node)
            if (!all) return;
        }

        // 3. loop through the children
        const children = node.children
        if (children.length) {
            for(const child of children) {
                traverser(child)
            }
        }
        // 4. check for shadow DOM, and loop through it's children
        const shadowRoot = node.shadowRoot
        if (shadowRoot) {
            const shadowChildren = shadowRoot.children
            for(const shadowChild of shadowChildren) {
                traverser(shadowChild)
            }
        }
    }
    traverser(rootNode)
    return all ? arr : ( arr.length ? arr[0] : null );
}
function queryDeepSelector(selector, rootNode=document.body) {
    return queryDeepSelectorAll(selector, rootNode, false);
}

const res = await fetch('https://www.netacad.com/content/i2cs/7.1/courses/content/m6/en-US/components.json')
const json = await res.json()
for (const el of queryDeepSelectorAll('input', document.querySelector('[class*=\'coursePrimaryContainer\'] iframe')?.contentDocument?.body || document.body)) {
    if(!el.id) continue
    const [id, index] = el.id.match(/[^-]+/g)
    const { _items } = json.find(item=>item._id === id)
    if(_items[index]._shouldBeSelected) el.click()
}
leaden crater
supple whale
leaden crater
#

idk what that is

supple whale
#

CISCO's certificate/course exam website

hoary sluice
leaden crater
supple whale
#

no, cisco as in one of the biggest networking hardware manufacturer and distributor

hoary sluice
dawn ledge
#

omw

supple whale
#

which has 0 protection on it

#

not even a logged in check

hoary sluice
#

is that a yes or a no

supple whale
#

thats a yes

hoary sluice
#

im not looking at a billion lines of raw html

supple whale
hoary sluice
supple whale
#

yeah

hoary sluice
supple whale
#

client-sided exam verification is wild

#

esp considering it gives u a certificate

#

💀

#

which then gives u cisco hardware discounts]

#

which itself is a scam but w/e

valid jetty
#

i want a function which accepts the struct

#

so i can use its fields

#

with your approach literally the only way to do that is to pass each field to the function manually

hoary sluice
supple whale
#

havent found an easy way to get the course ID

#

but that script auto-fills all the exams for the one course

supple whale
placid cape
#

you're finally splitting your compiler?

valid jetty
#

yes lol

#

will take a few days because there are so many nodes to refactor

#

so far i have this many

#

but this isnt nearly everything yet

#

because after i split the compilation of nodes i have to split the qbe things

hoary sluice
#

idk tho

#

gn

dawn ledge
# hoary sluice but urs seems kinda verbose

tl;dr

enum Foo {
  Bar { a: u32, b: u32 },
  Baz { a: u64, c: u64 }
}

fn process(foo: Foo) {
    match foo {
      // Too much destructuring, sucks, process_* functions need more parameters as the enums are extended
      Foo::Bar { a, b } => process_bar(a, b),
      Foo::Baz { a, c } => process_baz(a, c)
    }
}

// vs

enum Foo {
  Bar(Bar),
  Baz(Baz)
}

fn process(foo: Foo) {
    match foo {
        // Easier, delightful to the eye, grouped with the struct process func
        // assuming each struct as a process function, ideally a trait
        Foo::Bar(bar) => bar.process(),
        Foo::Baz(baz) => baz.process(),
    }
}
#

just plain better

dawn ledge
valid jetty
#

its pretty simple

supple whale
placid cape
dawn ledge
#

if youre writing rust verbosity is your least concern

#

the language itself is verbose af

valid jetty
#

this is just objectively worse as the number of fields in the struct increases

dawn ledge
#

yop

placid cape
#

definitely

#

I like this one

valid jetty
#

wtf wait

#

clicking on a message deletes it 😭

#

this is probably a vencord plugin

#

huskkkkkkkk

#

does anyone have a message logger to recover that code i deleted ugh

#

yeah it is

#

evil

#

click to delete is so evil

valid jetty
#

both of them

#

theyre both gone lol

leaden crater
#

1:

struct Foo { x: i32 } 

enum Node {
    Foo(Foo)
}

// --------------------

match node {
    Node::Foo(this) => this.compile(self, ctx)
}

// --------------------

impl Codegen<'_> for Foo {
    fn compile(self, gen, ctx) { ... }
}

2:

enum Node {
    Foo { x: i32 }
}

// --------------------

match node {
    Node::Foo { x } => compile_foo(self, ctx, x)
}

// --------------------

fn compile_foo(gen, ctx, x: i32) { ... }
valid jetty
#

thank you !!!!

leaden crater
valid jetty
dawn ledge
valid jetty
#

whoever decided click to delete is sane when you double click to edit

#

youre not invited to my birtjday party

leaden crater
#

@valid jetty are you like really really really good at rust

lavish frigate
#

are you still trying to do that propability thing

leaden crater
#

no

#

i wanna see if a code can be optimized to hell and back to not use 2k% of cpu

#

its Sieve of Eratosthenes + exponentia + primes

placid cape
#

Gn

leaden crater
#

anyways if anyone wants to optimize this code for n>2k it would be greatly appreciated

use dashu_int::UBig;
use rand::distributions::Uniform;
use rand::{thread_rng, Rng};
use std::time::Instant;

/// Sieve of Eratosthenes to generate prime numbers up to a given limit.
fn sieve(limit: usize) -> Vec<UBig> {
    let mut is_prime = vec![true; limit];
    is_prime[0] = false;
    is_prime[1] = false;

    for i in 2..limit {
        if is_prime[i] {
            let mut multiple = i * i;
            while multiple < limit {
                is_prime[multiple] = false;
                multiple += i;
            }
        }
    }

    is_prime
        .iter()
        .enumerate()
        .filter(|&(_, &prime)| prime)
        .map(|(i, _)| UBig::from(i))
        .collect()
}

/// Function to check if `x` is not divisible by any primes.
fn is_valid(x: &UBig, primes: &[&UBig]) -> bool {
    primes.iter().all(|&p| x % p != UBig::ZERO)
}

/// Computes the percentage of valid numbers in range `2..=2^n`.
fn fun(n: usize, primes: &[UBig]) -> f64 {
    let start_time = Instant::now();
    let upper_bound = UBig::ONE << n;
    //let space = &UBig::from(2u8)..=&upper_bound;

    let primes = primes.iter().take(n as usize).collect::<Vec<_>>();
    assert!(primes.len() == n);
    let sample_size = 1000000usize;

    let (count, percentage) = if upper_bound > UBig::from(sample_size) {
        let between = Uniform::new(UBig::from(2u8), &upper_bound);
        let mut rng = thread_rng();
        let mut count = 0;

        for _ in 0..sample_size {
            let x = rng.sample(&between);
            if is_valid(&x, &primes) {
                count += 1;
            }
        }

        let percentage = 100.0 * (count as f64) / (sample_size as f64);
        (count, percentage)
    } else {
        let mut count = 0;
        let mut x = UBig::from(2u8);
        while x <= upper_bound {
            if is_valid(&x, &primes) {
                count += 1;
            }
            x += UBig::ONE;
        }
        let percentage = 100.0 * (count as f64) / (upper_bound.to_f64().unwrap() - 1.0);
        (count, percentage)
    };

    println!("n: {}, count: {}, percentage: {:.2}%", n, count, percentage);
    println!("Time elapsed: {:.2?}", start_time.elapsed());
    percentage
}

fn main() {
    let primes = sieve(1000000);
    let xs: Vec<usize> = (1..1000).collect();

    let ys: Vec<f64> = xs.iter().map(|&n| fun(n, &primes)).collect();
}
[package]
name = "msg"
version = "0.1.0"
edition = "2021"

[dependencies]
dashu-int = {version = "0.4.1", features = ["rand"]}
rand = "0.8"
leaden crater
dawn ledge
#

use !primes.iter().any(|&p| x % p == UBig::ZERO)

#

shortcircuits

#

so if you have like
[0, 0, 0, 2, 0, 0, 0, 2]
its only gonna go up till the first 2 before it returns

#

as opposed to .all which will go all the way to the end

hoary sluice
#

she wants to not use an enum at all

dawn ledge
hoary sluice
dawn ledge
#

?????

#

separate structs

hoary sluice
#

wait thats actually super nice

spark tiger
dawn ledge
#

its quite simple

#

once you start doing stuf you just start understanding it

#

people might say lifetimes are hard but they are really simple

#

you have to imagine a graph

#

a relationship graph of how a value lives

spark tiger
#

rust is kinda hard to code in like i spent an hour to make my function work due to constant type mismatches of errors wires

#

in zig it’s possible to use !MyType as a return type which basically means the function can return an error but we don’t care what type it is

#

ig in rust you can achieve that with -> Result<MyType, Box<dyn std::error::Error>>?

dawn ledge
#

zig would be great if they had rust-like (proc)macros

#

atleast they're adding async back now

dawn ledge
spark tiger
dawn ledge
#

no

#

dyn is different

frosty obsidian
#

erorr

spark tiger
dawn ledge
#

with dyn you dont have a concrete type, whereas with a genericc you have a concrete type

fn process_err_vec<T: std::error::Error>(errs: Vec<T>) { ... }
fn process_err_dyn_vec(errs: Vec<Box<dyn std::error::Error>>) { ... }

process_err_vec(vec![SomeError, SomeError]); // Works
process_err_vec(vec![SomeError, OtherError]); // Will NOT work
process_err_dyn_vec(vec![Box::new(SomeError), Box::new(OtherError)]); // Works
dense sand
#

@nimble bone i made 5 of my classmates switch to bun

dawn ledge
#

spreading the broken runtime

#

it would be better if they didn't document shit that doesnt work or exist

spark tiger
frosty obsidian
#

documentation is the cowards way out

#

real developers love scouring through codebases

spark tiger
dawn ledge
#

zig has docs

#

not the best

#

but they do

#

well the language itself is rather incomplete

#

so whatever

dawn ledge
spark tiger
#

i like some of zig’s syntax it’s just so convenient

#

though the readability is uh

dawn ledge
#

zig would be easily my new best lang if

  • they loosen their shadowing restrictions
  • add rust-like macros (esp proc)
  • release async
spark tiger
frosty obsidian
#

their website uses no macros as a selling point

dawn ledge
#

shadowing means using identifiers with the same name

spark tiger
#

yeah i just assumed it was some stupid ass restriction like this one:

#

you can’t just do MessageBoxA() you need to do _ = MessageBoxA()

dawn ledge
#
fn foo(): void { ... }

pub fn main(): void {
  const foo = 123; // doesnt work
}
frosty obsidian
#

that doesn't work?

#

insane

leaden crater
spark tiger
spark tiger
dawn ledge
#

shadowing is also nice to change the type of a variable without defining a new identifier

let foo = "hello"; // &'static str
let foo = foo.len(); // usize
spark tiger
frosty obsidian
#

nah the compiler should be smart enough to tell the two apart

dawn ledge
#

reminder i have written like just a couple hundred lines of zig

#

not the most

frosty obsidian
dawn ledge
spark tiger
#

“no i won’t compile your code because you named your variable wrong”

frosty obsidian
#

/run

fun deez() {}

fun main() {
    val deez = "nuts"
}
rugged berryBOT
#

@frosty obsidian I received kt(1.8.20) compile errors

file0.code.kt:4:9: warning: variable 'deez' is never used
    val deez = "nuts"
        ^
frosty obsidian
#

compiles fine

spark tiger
#

wtf is val- oh it’s kotlin

dawn ledge
#

zig would cry and weep at this

frosty obsidian
#

insane

#

i think if a language has to say nuh uh to me for doing something normal then its just not for me

dawn ledge
#

zig users would go great lengths to defend this

frosty obsidian
#

"erm actually its bad practice anyways" 🤓

#

thats what a linter is for

dawn ledge
#

https://github.com/naasking/async.h this thing here uses macros
one slight mistake and now your entire control flow is fucked
contrary to this in rust (you'd use procmacros) you simply wouldnt

spark tiger
dawn ledge
#

you dont need to read macros
just use them wires

#

now i might say macros are not hard but i barely have a life and im mentally unstable who loves writing macros, so...

spark tiger
austere idol
# dawn ledge now i might say macros are not hard but i barely have a life and im mentally uns...
#define KERNEL_LOG(...)                        \
    kprintf("[%s::%s]: ", __FILE__, __func__); \
    kprintf(__VA_ARGS__)

#define CHECK_STATUS(status, func_name, interrupt_way)        \
    switch (status) {                                         \
        case STATUS_OK:                                       \
            break;                                            \
        case STATUS_ERROR:                                    \
            KERNEL_LOG("%s - failed!\n", func_name);          \
            interrupt_way;                                    \
        case STATUS_NOT_IMPLEMENTED:                          \
            KERNEL_LOG("%s - not implemented!\n", func_name); \
            break;                                            \
        case STATUS_BROKEN:                                   \
            KERNEL_LOG("%s - broken!\n", func_name);          \
            break;                                            \
    }

valid jetty
spark tiger
austere idol
leaden crater
#

ig ill just wait until there is a supercomputer that's with like a 9070ti or something, extrapolating isn't really good because there isn't a general formula to go by and who knows maybe there's a huge dip somewhere in the graph

jade stone
#

GUHHHHHHHHHHHHH

dawn ledge
#

threads, simd, etc etc you can throw everything possible in there to make it faster

#

or simply use a more efficient algorithm

#

idek what you're trying to achieve here

nimble quail
#
# kil
# these will hold things later I just want to make the errors go away
# search for a thing to eat
galaxydim = 40000000  # in LIGHT DAYS. the milky way is about 36500000 LD across but we "round up"
# if we want to return the array, for some reason
# this is probably horrible but i don't care
# --- CONFIG  todo: AUTOMATE THIS *facepalm*
# it's not a star but who cares
# player physics (very simple)
running = True  # lol
# all hail bep
# in the off chance i do a kilo of meth and decide to implement 3D
# declared global because i have to for some reason
# declare int out of paranoia
# all of this math is probably unnecessary but i can't be fucked to rewrite it
# make the universe clock tick, don't touch this
# horror
# what kind of thing are we?
# yes, changing the type so late is dangerous but it doesnt matter here
# handle the awful twelve hour format now


# begin worldgen functions 
# these shouldn't be touched at all, even by me

# if all checks have succeeded...
break # leave this hell

if num < 0: # there's a warning here but there is no normal case in which it matters

comments from my code

leaden crater
dawn ledge
#

yop thats some math right there

#

anyways

leaden crater
valid jetty
nimble quail
pearl stagBOT
# valid jetty <https://github.com/acquitelol/elle/blob/rewrite/tests/auto/shadowing.le#L1-L38>

shadowing.le: Lines 1-38

use std/prelude;

fn main() {
    x := "foo";
    $assert(x == "foo", nil);
    x := 1;
    $assert(x == 1, nil);

    {
        x = 2;

        x := "a";
        $assert(x == "a", nil);

        {
            x = "b";
            $assert(x == "b", nil);
        }

        $assert(x == "b", nil);
    }

    $assert(x == 2, nil);

    // Redeclare a new `y` using `:=`
    y := 13;
    y := y * 3;

    $assert(y == 39, nil);

    // Redeclare a new `z` using `=`
    z := "foo";
    z = z <> "bar";
    z <>= "baz";

    $assert(z == "foobarbaz", nil);
    io::println("All `variable shadowing` tests have passed!".color("green").reset());
}
leaden crater
nimble quail
#

what even is a kpc

leaden crater
#

kiloparsec

valid jetty
#

kiloparsec?

nimble quail
#

????

leaden crater
#

even if you want to use light days, use AU instead

nimble quail
#

im using light days because i like them

jade stone
#

IT WORKED ON WINDOWS FIRST TRY

#

NO WAY

nimble quail
jade stone
#

comic shanns mono

nimble quail
#

i knew it wasn't straight comic sans

dawn ledge
#

libsadan 🚀

jade stone
jade stone
leaden crater
nimble quail
#

light go brrr

#

i dont feel like rewriting a bunch of shit to switch units

valid jetty
# nimble quail ????

it stands for kilo parallax seconds

one parsec is 3.26ly

it’s a more convenient measurement especially when working with things very far away

nimble quail
#

i genuinely can't even tell if you're making shit up

valid jetty
#

no im serious

leaden crater
valid jetty
#

it might be april fools but i am 100% serious

nimble quail
#

ITS APRIL FOOLS RIGHT NOW???

#

FUCK

#

i've been played

valid jetty
#

yes 😭 but my point still stands

dawn ledge
valid jetty
#

the thing i said is real

#

yes

visual shellBOT
#

3.086×10^16 km (kilometers)

jade stone
valid jetty
#

lc.wa 1 kpc to ly

visual shellBOT
#

Because they have eight wheels and four people on them, and four plus eight is twelve, and there are twelve inches in a foot, and one foot is a ruler, and Queen Elizabeth was a ruler, and Queen Elizabeth was also a ship, and the ship sailed the seas, and in the seas are fish, and fish have fins, and the Finns fought the Russians, and the Russians are red, and fire trucks are always "russian" around

jade stone
#

@dawn ledge if you rewrite what i have so far in rust, ill write the rest in rust blobcatcozy

dawn ledge
#

nuh

#

im doing shitty ts now

jade stone
nimble quail
#

i'm writing a game to explain how scale is terrifying
it just needs to have consistent and sensible game mechanics

leaden crater
nimble quail
#

im throwing things at you

#

is the joke that you don't write comments in your code

dawn ledge
#

comment goes hard

dawn ledge
#

i can only understand just one variable here ℏ

leaden crater
# nimble quail im throwing things at you

what about implementing the fundamentals of an n body orbital system, accounted for gravity and eccentricity and the random supernova every 1 billion cosmic years, the Roche limit, lagrange points

#

the universe would be running at 1 fps if it was a computer today

valid jetty
#

i can

nimble quail
dawn ledge
#

universe written in rust

nimble quail
#

i could probably write a sort of module for my game that makes the stars drift around and shit but im going for static stars for now

dawn ledge
#

but stars do drift tho

nimble quail
#

in assembly

nimble quail
dawn ledge
#

it was written in atomlang

#

lots of math

leaden crater
dawn ledge
#

mathematicians are not real

nimble quail
#

the core of the game is psychological horror

dawn ledge
#

i already have enough existential dread

#

now

nimble quail
leaden crater
#

psychological horror when a 6.76 sun mass star randomly goes supernova

valid jetty
#

@leaden crater write a program that can detect whether another program will infinitely loop or stop

nimble quail
#

i forgot femtoseconds were a unit for a nanoangstrom

leaden crater
nimble quail
valid jetty
#

yes

nimble quail
#

i'm in CS 1 rn so go easy on me

leaden crater
#

im slowly coding up a solar system like in universe sandbox 2

nimble quail
#

oh boy several people are typing

dawn ledge
valid jetty
leaden crater
leaden crater
jade stone
# dawn ledge no rust 💔

Btw I tried to make a version in rust but I realized it would be a pain in the ass to get the cef headers working and link against libcef_dll_wrapper for the v8 api

leaden crater
#

epitome of fake programming when you use a config.cfg file instead of variables

dawn ledge
#

config dot config

leaden crater
#

a programm that never halts doesn't exist because the machine on it will eventually die out

#

qed

dawn ledge
#

assume no degradation of the semiconductor and infinite energy flow
what now :^)

leaden crater
#

infinite time is not possible

#

10^100 years maxima

dawn ledge
#

assume as such

#

we start by making assumptions wires

valid jetty
#

let’s say you hypothetically create a machine which halts if the program loops infinitely, but loops infinitely if the program halts, call it A

if you create a new machine B which uses machine A, then pass that back into machine A, what’s gonna happen?

by definition machine A will halt if the machine never halts, but machine B passes the output from machine A into itself, so it does loop infinitely

therefore it’s not possible to predict whether a machine halts or not

leaden crater
dawn ledge
#

assume the world is gonna end
NOW

valid jetty
#

(yes g = 5)

#

it sure as heck wasn’t 9.81

dawn ledge
#

avg physics question
assume the cow is a fucking sphere

leaden crater
dawn ledge
#

damn not even 10, straight up 5

leaden crater
#

assume g = pi^2

visual shellBOT
#

9.8696

valid jetty
#

Ol’ Betsy’s laws

leaden crater
#

pi = e = g/2 = 2phi

#

maybe one day I'll finish my projects

dawn ledge
#

me when math

leaden crater
#

i went from trying decrypting usm files to accidentally finding primes using bash

valid jetty
#
  1. cows must be plump but do NOT make them perfect spheres you stupid mathematician idiot
  2. collect cow milk in a tub but do NOT find the perfect shape to safely hold the most volume that’s just stupid
  3. B = gmc (Bfood = gravitational field strength * my cow)
#

Ol’ Betsy’s laws of farming

leaden crater
#

have you tried printing using a pen and linear

leaden crater
#

coding chat
turns into farming chat

wonderful

dawn ledge
#

turns into math nerds yap

leaden crater
#

when there's nothing to do, math just implodes

#

and that's a texit bot

dawn ledge
#

wish i could use this this to check if people are real

visual shellBOT
#

((-b±sqrt(b^2-4ac))/(2a))

dawn ledge
#

hop off latex hop on typst
so much better honestly

#

if you use nvim i can give you some of my scripts to make the typst experience better

leaden crater
#

actually
$\frac{-b \pm \sqrt{b^2-4 \cdot a \cdot c }{2 \cdot a} $

signal oakBOT
#

(-b plus.minus sqrt(b^2 - 4ac))/(2a)

#

$ (-b plus.minus sqrt(b^2 - 4a c))/(2a) $

#

line 1:  Missing } inserted.


line 1: $


leaden crater
#

forgot cdot

leaden crater
#

$e^{\sqrt{e^{e^{i \log(\sqrt[i]{i})} \pi}} \pi} = -1$

#

real maths

signal oakBOT
#

line 1:  Missing } inserted.


line 1: $


leaden crater
#

i used texit so it uses $

#

if you use slash commands i think

#

i use in msg box

#

how to use biscord

leaden crater
#

Authorize
X
No scopes were provided
Close

#

I'll try on pc later

#

Invalid scope

#

maybe my app is just too outdated

#

yes I'm on 203.10

#

:3

formal belfry
#

me when my code compiles

spark tiger
#

what are some cool nerd books i can get

#

that are not expensive as hell

#

i wanted to maybe get the c book but WHY IS IT $70???

leaden crater
spark tiger
#

i just want something to physically read

#

like idk at school

#

when bitches have fucking 180fov and see when i use my phone for 2 seconds

leaden crater
#

ordinary differential equations by vladimir arnold

dawn ledge
#

i too want physical books but they're rather expensive for something i would barely read

#

but reading pdfs just sucks

leaden crater
#

I've read like a lot of pdfs

#

don't have 1 billion dollars to buy every book

dawn ledge
#

i cant read unless its in physical form
but i also cant buy physical copies

#

so i dont read

leaden crater
#

print the pdf

dawn ledge
#

unnecessary effor

leaden crater
#

read epub

dawn ledge
#

same thing different flesh

spark tiger
dawn ledge
#

print this book

spark tiger
dawn ledge
#

german book

leaden crater
valid jetty
#

@dawn ledge

shrewd canopy
shrewd canopy
nimble bone
#

soon they will vibe code after falling in techbro rabbit hole

dense sand
shrewd canopy
dense sand
#

we have to do 3 group coding projects per year and all half of my classmates submitted was copy pasted chatgpt code

spark tiger
#

this is worse

olive egret
#

idk

dense sand
valid jetty
#

WHY IS THE FUNCTIONCALL COMPILATION CODE

#

600 LINES

#

AND THAT DOESNT INCLUDE THE CODE TO MONOMORPHISE GENERIC FUNCTIONS

hoary sluice
hoary sluice
#

qbe has wasm

#

or at least theres a wasm fork

dense sand
#

@valid jetty when jsx in elle

valid jetty
valid jetty
#

the list slowly drops as i move more away from compiler.rs lmao

#

ok finally function calls moved away

#

itll probably be about 1000 by the time i move all of the astnodes to different files

atomic brook
valid jetty
#

im gonna cry

#

why not simply let me import the macro

#

..

lavish frigate
# valid jetty im gonna cry

i recommend you add this to your settings.json :3

{
  "features": {
    "edit_prediction_provider": null
  },
  "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": ["**"]
  }
}
valid jetty
#

i wanna see the edit predictions just not the ai ones

#

these ones are useful

lavish frigate
#

edit predictions is just ai autocomplete

#

those are called quick actions

valid jetty
#

oh

lavish frigate
#

those settings disable assistant which gets rid of that "Fix with Assistant"

valid jetty
#

do i have to restart zed for that

lavish frigate
#

maybe, not sure

valid jetty
#

oh its gone yay

#

thank you

lavish frigate
#

:3

valid jetty
#

@hoary sluice im quite literally going 1 step at a time

#

if i do too much i could break something and have no idea why

#

its easy when im working with thousands of lines

deep mulch
#

@valid jetty you're crazy

#

@valid jetty you're genius

#

@valid jetty you're silly

valid jetty
#

getting there

deep mulch
valid jetty
#

no because of how rust enums work

#

the only way is to make a macro

deep mulch
#

so bad

valid jetty
#

which is what i will do when im done with all the nodes

deep mulch
#

@valid jetty rewrite Elle in Elle

#

Elle will be bootstrapped

formal belfry
#

is that bazzite

jade stone
#

HOW IS -fPIC UNSUPPORTED

#

gcc supports -fPIC but theres no arm gcc on windows yet

supple whale
#

yeah its insane

#

ARM support is awful

#

but its VERY VERY VERY rapidly improving

#

which makes me

#

i wonder what will come first, bazite arm64 or steamos/proton arm64

#

well a mod of proton for arm64 already exists, so i guess steamOS

jade stone
valid jetty
#

just my luck zed stopped giving me the quick actions menu for imports

#

WHY

#

why is it gone

valid jetty
#

dont worry im still making progress

#

(i took a break !)

nimble quail
#

everything changed when it clicked that the f(x) stuff in my precalc is very much like the functions i have been writing in python

#

i already have the mental framework from doing progaming

hoary sluice
#

@deep mulch do you know how to calculate an rlc filter

#

and how to derive a 2nd order digital FIR filter from its impulse response without using inverse laplace transform

#

like how to derive the formula

deep mulch
jade stone
#

evil

valid jetty
#

i have the fx cg50

leaden crater
#

but idk why it doesnt work

royal nymph
crimson sparrow
valid jetty
#

this one is good

#

i can write addons in C

jade stone
crimson sparrow
crimson sparrow
valid jetty
pearl stagBOT
valid jetty
#

an advantage of this is that you can see the number of branches by just counting the number of } at the end

jade stone
#

but its annoying because you have to do #if defined(MY_MACRO)

valid jetty
#
#if defined(MY_MACRO)

#else
#    if defined(MY_OTHER_MACRO)

#    else

#    endif
#endif
leaden crater
valid jetty
#

because the way you tell the length of a single unicode unit is the number of bits set of the first byte

#

if you’re not working on the bit level you lose the information of exact 01111000 bits set with hex or decimal

#

at this scale you can understand by just looking, in hex or decimal they just look like magic numbers

fleet cedar
#

You could also do something with counting leading ones

leaden crater
#

i see

valid jetty
#

yeah

leaden crater
#

ive never worked with that

valid jetty
#

unless you mean counting with bitwise operations

fleet cedar
#

Or your language's counterpart

valid jetty
#

like

let iota = 0;
for i in 0..4 {
    if (c & (0b10000000 >> i)) == (0b10000000 >> i) iota++
}
hoary sluice
#

@valid jetty i need ur help to derive the fir coefficients of a 2nd order digital filter using the impulse response of an RLC filter and either being able to explain inverse laplace in 1 sentence or not using it cause i have to do this on the whiteboard tomorrow

valid jetty
#

i have no idea what an fir coefficient or impulse response of an RLC filter is

hoary sluice
#

but you know how to explain laplace in 1 sentence

leaden crater
#

isnt that a pokemon

fleet cedar
#

If you transliterate it weirdly from the jp name, yes

valid jetty
ionic lake
#

programming sucks

fleet cedar
leaden crater
ionic lake
#

discord sucks

hoary sluice
#

how can there be a complex frequency

ionic lake
#

im picking up farming

valid jetty
leaden crater
#

i know of laplace from e^At but idk how to describe it, it jsut work

valid jetty
#

complex numbers are just math packaged 2d vectors

hoary sluice
valid jetty
#

yea in complex frequency the y axis is the Im axis which in this case is rotation

#

if you show it on an argand diagram at least

hoary sluice
#

in the frequency domain its x=frequency and y=magnitude, what is it in the laplace domain

valid jetty
#

Re=magnitude, Im=rotation/oscillation

this is in the complex s plane

hoary sluice
#

rotation as in phase?

valid jetty
#

yea

hoary sluice
#

so its phase vs mag instead of freq vs mag

fleet cedar
#

Complex frequency would mean rotating around something that isn't a bivector

#

Cursed

valid jetty
hoary sluice
#

from what i understand a complex frequency is just a frequency with phase represented as the im part

valid jetty
#

s=σ+jω

valid jetty
hoary sluice
#

how is the magnitude on x wtf

valid jetty
#

σ=Re=magnitude
ω=Im=oscillation

valid jetty
hoary sluice
#

why do u know this but not what an rlc filter is

valid jetty
#

i do maths not electricity

hoary sluice
#

electricity 😭

fleet cedar
#

There is electricity inside you this very moment

hoary sluice
#

but you know what a frequency, magnitude and oscillation is which is an electronics concept

leaden crater
hoary sluice
balmy lintel
fleet cedar
hoary sluice
#

@valid jetty youre gonna have to teach me a bunch of math next week

#

i have an exam next thursday and im gonna explode

leaden crater
# fleet cedar Go to your room.

There are about 10^9 galaxies in our universe.
Each galaxy has about 10^11 stars. Since about 0.3%
of the stars have masses larger than ten times the
mass of our Sun, it is estimated that 10^17 supernova
explosions have occurred throughout the history
of the universe. This means that, on average,
one supernova explosion occurs every second
somewhere in the universe

valid jetty
#

and laplace transform is quite a theoretical concept even though there are applied uses

hoary sluice
#

its hard to figure out how it works cause our teacher is the only one who does it like that

leaden crater
hoary sluice
#

that is not what tldr means

leaden crater
hoary sluice
#

btw @valid jetty teacher said im not allowed to do fft library during the lab cause it doesnt involve any analog measurements

fleet cedar
#

Pretty lines and shapes

#

Needs more color though

placid cape
#

^^

#

What did you use for the diagram?

valid jetty
#

flowcharts have never made sense to me

leaden crater
valid jetty
#

like why would you make a diagram and make a formal system for what each node does

#

it means i have to focus more on remembering the right shape than brainstorming the algorithm

#

it’s so much easier in pseudocode for me

fleet cedar
#

Everyone uses different conventions anyway

hoary sluice
hoary sluice
#

but i need more pages in the document

#

how do i color this tho

fleet cedar
hoary sluice
#

im gonna color it if i have time

fleet cedar
#

Green is nice

hoary sluice
# fleet cedar Based

i have 15 pages of content (u need at least like 40), i found out today that they check if its written by ai even if you wrote it yourself and then fixed the phrasing and i have to print it TOMORROW

leaden crater
valid jetty
hoary sluice
#

ok what abt this

deep mulch
#

you're a genius

leaden crater
deep mulch
#

I like charts

leaden crater
deep mulch
#

I love

leaden crater
placid cape
hoary sluice
valid jetty
hoary sluice
valid jetty
#

everyone knows those are never accurate

#

someone put the bible into one and it sait the text was 88% ai generated

hoary sluice
valid jetty
hoary sluice
#

a human written diploma thesis isnt gonna show 100% ai

#

mine shows like 70%, my partners shows 100%

valid jetty
#

either way the only way to really know is by human inspection

hoary sluice
#

which they will do

valid jetty
#

ai has a specific tone in which it writes text that makes it obvious

hoary sluice
#

ik

#

but if theres a paragraph written by copilot thats 1:1 from some website its plagiarism

#

it might not sound ai cause copilot copies it from there

leaden crater
hoary sluice
#

or ai with research enabled

hoary sluice
leaden crater
#

prevents ai detection

hoary sluice
#

im not gonna give money to elon musk to have 6 hours of hatred towards ai flowing in my veins instead of just writing it myself which is super cozy with some lofi at 3 am while being sure that i wont be exploded for plagiarism

valid jetty
#

i can entirely avoid ai detection and plagiarism for ichigo because i only need to reference myself lol

hoary sluice
#

are you writing it with ai

leaden crater
#

ai is fine I've used it to enhance vocabulary in works that would've been otherwise deprecated

valid jetty
#

i love how you can just see when i take breaks based on the commit date

valid jetty
#

im gonna have a japanese and english version of the document available written in typst

#

there isnt really a way to cleanly get ai to write that i dont think

leaden crater
#

don't trust ai for wiring something important anyways

valid jetty
hoary sluice
valid jetty
#

heres an example

関数 メイン()『
    整数 値 = 乗算(
        加算(
            乗算(132)、
            減算(2310)
        )、
        乗算(52)
    )。

    整数 ミクの数 = 除算(値、剰余(10090))。
    プリント(「%d\n」、ミクの数)。
』
valid jetty
hoary sluice
#

and ill plan ahead more

#

now im stuck with about 30 hours to write it

valid jetty
#

god i wanna just go to uni already

hoary sluice
#

including sleep and school and preparing for a more or less exam

valid jetty
#

i wanna be free of the curse of physics

hoary sluice
valid jetty
#

photoelectric effect????????

hoary sluice
#

like filters

valid jetty
#

wtf is a meson

#

like

hoary sluice
#

what

hoary sluice
valid jetty
hoary sluice
#

thats early

#

wont you be 17

valid jetty
#

i turn 18 in june lol

hoary sluice
#

oh

#

thats convenient timing

valid jetty
#

but im gonna take a gap year anyway so i can get money to go abroad

valid jetty
#

but idk if there is yet

hoary sluice
valid jetty
#

yes

hoary sluice
#

why not do erasmus

leaden crater
leaden crater
valid jetty
valid jetty
# leaden crater what's elle

another language i made, this time written in rust, but this one is way bigger its nearing 20k lines of pure rust code and 10k lines of elle code for the stdlib

leaden crater
#

20k..

hoary sluice
dawn ledge
leaden crater
valid jetty
#

japan is in asia lol

hoary sluice
valid jetty
#

oh hm

hoary sluice
#

you can go to syria

#

about 160 countries total, most of them require proper arrangements

#

but japan is probably on the easy side

leaden crater
hoary sluice
#

im probably gonna go to romania or poland

valid jetty
#

romania???

#

i can teach you romanian i guess

hoary sluice
#

you know romanian???

valid jetty
#

yes 😭

hoary sluice
#

why??

valid jetty
#

because my parents are romanian and exclusively speak it at home

leaden crater
leaden crater
#

no way

valid jetty
#

my pronunciation is probably a little bad since i dont speak very often but i am fluent in it

hoary sluice
#

de ce nu am stiut

valid jetty
#

:3

#

@crisp kestrel stie tot

#

deasta ma cheama o rosie

leaden crater
valid jetty
#

(nu put sa scriu accente da imagineaza ca este un sh accent pe rosie)

hoary sluice
#

am invatat ~A1 romana o vreme

#

cu prietenul meu si duo

leaden crater
#

roshie

leaden crater
valid jetty
#

cred ca nu o sa-i place lu vee ca vorbim cu o alta limba si nu engleza sau germana

leaden crater
#

romanian is engleshized very much anyways

valid jetty
#

da foarte lol

leaden crater
#

3 words in English 3 words in romanian and then the local variations

valid jetty
#

eu sunt poate B2-C1 in romana pentru ca este limba mea materna

#

nu stiu cuvinte lungi dar pot sa scriu cu confidenta

hoary sluice
valid jetty
#

da

leaden crater
valid jetty
#

limba care parintii mei vorbesc

leaden crater
#

muttersprache

valid jetty
#

casa communicez cu ei trebuie sa stiu si eu romana lol

leaden crater
#

ei no vb jp/en?

valid jetty
#

ei stiu engleza acuma

#

dar tot vorbesc in romana acasa

#

jp este complet diferit, asta o invat singur

leaden crater
#

nu m as mira daca s ar uita la tv romanesc

valid jetty
#

wha

leaden crater
#

?

valid jetty
#

se uita la tv englezesc pentru ca suntem in UK

#

nu cred ca au programe romaneste

leaden crater
#

aha

valid jetty
#

@hoary sluice hey at least the language structure of romanian is VERY similar to english

hoary sluice
#

i understand everything ur saying but i cant form coherent sentences myself

valid jetty
#

lmao fair

hoary sluice
#

i didnt practice for a long time so i know the vocabulary but only subconciously

leaden crater
#

@valid jetty i thought you're in jp bc (almost) everything about your profile is jp

hoary sluice
leaden crater
#

Nein

valid jetty
#

yeah ive been studying japanese for the good part of a year or so (i didnt keep track)

hoary sluice
#

de ce nu vorbesti c2

valid jetty
#

i want to go there for uni in a few years

hoary sluice
#

daca vorbest din casa

leaden crater
#

aber 8 jahren deutsch gelernt, b2 niveau aber es ist shit

leaden crater
#

i wanted to go to niigata uni or smth last year but when i saw the prices i deleted it from my history and forget about it

valid jetty
#

they banned the c word

#

pot sa vorbesc in o conversatie dar nu prea pot sa citesc literatura foarte repede

leaden crater
hoary sluice
#

vom vorbi romana exclusiv pana vee observa (observa e correct?)

valid jetty
#

da

valid jetty
#

dar se zice mai bine "pana cand vee observa"

hoary sluice
hoary sluice
valid jetty
#

in romanian "until when vee notices" and not "until vee notices"

leaden crater
valid jetty
#

cand este "when"

hoary sluice
#

ah ok

leaden crater
#

if puhbu finds out I'm from fish country I'm doomed af

hoary sluice
#

i think ill do a lot better in moldova

valid jetty
#

normal vorbesc duar in en/jp

hoary sluice
#

talk english to young people and russian to old people

leaden crater
valid jetty
#

ah

valid jetty
#

i made a huge thing of what i use and how to learn a while ago i think

hoary sluice
leaden crater
#

i haven't really found any material that is good besides setting yt location to jp and watching the news

valid jetty
leaden crater
valid jetty
# valid jetty

since this list being created, i want to also add airlearn and teuida to this list

hoary sluice
#

i have to finish my diploma thesis can we talk on wednesday 😭

leaden crater
#

i still have to finish this and next year + get a job that doesn't pay like $300 mo

valid jetty
#

similar to duolingo but better content

leaden crater
valid jetty
#

airlearn has more cultural information and explains instead of just throwing you into a bunch of phrases to learn

leaden crater
#

ist free or?

hoary sluice
valid jetty
#

ist free but you can only do 5 lessons a day

leaden crater
hoary sluice
#

why are you saying ist

valid jetty
#

repeating what they said lmoa

leaden crater
#

my keyboard is mixed

leaden crater
hoary sluice
#

is that a fish

leaden crater
#

I'll probably have to speedrun until December

valid jetty
leaden crater
hoary sluice
#

nobody calls romania fish country

valid jetty
#

and you can skip to a point further on if you want

leaden crater
#

i do

valid jetty
leaden crater
#

and why schengen map and not Europe, brexit

hoary sluice
#

what is ist

leaden crater
hoary sluice
#

rosie isnt german and you said you barely speak german

leaden crater
#

i said my keyboard is mixed

hoary sluice
#

idk if i will ever be able to master a 4th language

#

everything i know i learned in my childhood

leaden crater
#

i have en, de, tr, la in my keyboard

#

and then zh, jp

hoary sluice
#

native russian, started german at 5 and english at ~8

valid jetty
hoary sluice
leaden crater
hoary sluice
#

do u speak all of those

leaden crater
valid jetty
valid jetty
leaden crater
valid jetty
#

kanji is the only reason jp is hard other than the somewhat hard grammar structures

hoary sluice
#

why do u need kanji if u dont speak japanese

#

or chinese

leaden crater
leaden crater
hoary sluice
valid jetty
#

imagine learning jp for shiritori lmao

leaden crater
hoary sluice
#

is that a reference to something

leaden crater
leaden crater
hoary sluice
#

that is not kazakhstan

leaden crater
#

yea

#

it's Tajikistan

#

but i changed

hoary sluice
#

oh

#

well tj isnt similar to kaz at all

#

i can understand mixing kyrgyzstan and kazakhstan

#

but the tajiks speak a persian dialect afaik

spark tiger
leaden crater
#

i just know da and tak and that's all

hoary sluice
#

tak is polish

leaden crater
#

no Ukrainian

#

i think i know more Turkish than japanese atp

#

from Turkish song sozleri

dawn ledge
#

how did this channel change from programming to language debate

leaden crater
#

uhhh

#

language programming
language language

#

same language

#

@valid jetty can i add you btw

hoary sluice
#

i guessed

#

wrong

#

its dezbatere

leaden crater
#

btw does anyone here know how to decrypt usm files (I've tried online tools)

dawn ledge
#

lc.g usm files

visual shellBOT
leaden crater
#

I've tried

#

it's encrypted and can't be converted easily

valid jetty
#

dar sunt aproape acelasi lucru

valid jetty
hoary sluice
valid jetty
#

a debate is not really an argument though

hoary sluice
#

ig its more peaceful

valid jetty
dawn ledge
hoary sluice
valid jetty
#

lmao

leaden crater
#

argument -> argumentare (scris)
dezbate - > dezbatere (vocal)

leaden crater
#

it didn't work on many newer ones

#

past v3.4 or so

valid jetty
#

i mean for all we know, it was

#

we dont know what technology they had at the time it was written

dawn ledge
#

@leaden crater do you have the decrypt keys

#

guhhh why are all these usm projects in C#

crisp kestrel
#

@valid jetty roșie

hoary sluice
#

rosie why did you never tell me you were romanian

#

maybe u did

crisp kestrel
#

Even i don't remember how I found out she knows Romanian lmfao

valid jetty
#

:3

crisp kestrel
valid jetty
#

i have so many secrets you will never know

hoary sluice
#

for example what happened on 16/07/24

valid jetty
#

yea!!

hoary sluice
#

i will find out when i adopt you

valid jetty
#

omg

crisp kestrel
valid jetty
hoary sluice
#

and allegedly torture you until you tell me

valid jetty
#

"""allegedly"""

hoary sluice
#

baseless accusations

crisp kestrel
#

sper ca sunteți amandoi bine cozy aveți grija de voii

valid jetty
#

si tuuu

crisp kestrel
#

îmi vine sa explodez

#

dar e ok

#

we up!! 🔥

valid jetty
#

e, si mie dar ce putem sa facem

hoary sluice
crisp kestrel
crisp kestrel
hoary sluice
#

omg ty

crisp kestrel
valid jetty
valid jetty
crisp kestrel
valid jetty
crisp kestrel
#

do u still listen to jpop rosie

#

or did you ever

valid jetty
#

yes lol

#

all the time more than ever

hoary sluice
#

rosie change your name to 🍅

valid jetty
#

ive expanded to other japanese genres too

crisp kestrel
# valid jetty all the time more than ever

『D/N/A』
25時、ナイトコードで。 × 鏡音リン
作詞・作曲:Azari https://x.com/xxxazari

イラスト:PiPi https://x.com/PiPinavigation
動画:omu https://x.com/omu929

公式サイト:https://pjsekai.sega.jp
公式X:https://twitter.com/pj_sekai

(C) SEGA
(C) Colorful Palette Inc.
(C) Crypton Future Media, INC....

▶ Play video
valid jetty
#

I LOVE DNA

crisp kestrel
valid jetty
#

such a good song

crisp kestrel
crisp kestrel
valid jetty
#

ya its a pjsk comm song

#

the pjsk cover is the first one i listened to

crisp kestrel
#

so goated

crisp kestrel
#

I like that one more

#

This is peak

dawn ledge
#

seems quite simple

crisp kestrel
#

ok im leaving now, am off topic cirno_wave

#

hello arhsm!!

valid jetty
#

but yea now im listening to a lot more different things which arent inherently pop

dawn ledge
#

you just need the decrypt key tho

valid jetty
crisp kestrel
#

do u know this song

dawn ledge
#

yuir

#

ri

valid jetty
#

were about to see

crisp kestrel
valid jetty
#

i dont know it lol

crisp kestrel
#

tell me if ya like it

valid jetty
lavish frigate
dawn ledge
#

BRUH i thought it wasnt playing, i simply didnt have my earphones plugged in

valid jetty
#

oh

#

lmao

crisp kestrel
#

roșie I devolved to samsung

crisp kestrel
#

holy shut my Samsung keyboard automatically made rosie into roșie

dawn ledge
crisp kestrel
#

(2a)

valid jetty
dawn ledge
#

is that really a devolution :clueless:

crisp kestrel
crisp kestrel
#

this 888 is so ass

valid jetty
#

im still on an ios version from 2 years ago

crisp kestrel
#

it lags more and has shit battery

valid jetty
#

so i can jb

dawn ledge
#

nooooo rosie an apple user

valid jetty
#

im gonna try and get a second hand ip13 or ip13pm on a jbable ios version

valid jetty
crisp kestrel
#

roșie will move to android in 6 years

valid jetty
#

maybe

#

song is good btw !!

crisp kestrel
crisp kestrel
crisp kestrel
#

stupid ellie

crisp kestrel
visual shellBOT
crisp kestrel
valid jetty
crisp kestrel
visual shellBOT
dawn ledge
#

guh this aint even half of what ytmusic has

valid jetty
#

listen to this one for like the first 2 mins because the chorus is really good

dawn ledge
#

is it finally time to switch

crisp kestrel
valid jetty
#

lmao okie

lavish frigate
#

do we fw pgadmin4

valid jetty
#

i have several playlists with 400 songs

dawn ledge
#

yeah

lavish frigate
crisp kestrel
dawn ledge
#

my spotify playlist is like 500+ songs

crisp kestrel
#

and I had an app that synced with playlists

#

outertune my beloved

valid jetty
#

419, 408, 192, 103, and a bunch of smaller ones for genres i dont listen to as often

dawn ledge
valid jetty
#

the 419 and 408 ones are mutually exclusive too soooo

#

:3

leaden crater