#🪅-progaming

1 messages · Page 41 of 1

valid jetty
#

as if there arent a million other jobs you can do while recovering

#

and you cant get a passport renewed if youre a trans person too so now if it expires youre literally stuck in the US

valid jetty
#

yeah uh

#

genocide preparations

#

not very good

#

stage 7/10

hoary sluice
#

i mean he aint gonna kill them

valid jetty
hoary sluice
#

nobody is gonna let him kill like a million americans

valid jetty
royal nymph
#

never understood why people are so insistent on wanting their group to be allowed to serve

#

if anything be glad that you will never be enlisted forcefully to die for Israel or something

valid jetty
#

its rather, why exclude this minority from being allowed to serve

hoary sluice
royal nymph
valid jetty
#

blocking medicaid from providing gender affirming healthcare

#

disbanding the gender policy council

#

and the bill that there are only 2 recognized genders (yeah because intersex people just dont exist apparently)

hoary sluice
#

this isnt a bad thing

valid jetty
#

and more coming (its only been a few weeks, we have 4 years of this)

royal nymph
#

some german parties want to bring back conscription too but sadly gays are allowed to serve

hoary sluice
#

americans are so spoiled they complain about everything good and bad

royal nymph
#

otherwise I would just say sorry babes I can't

hoary sluice
#

like i tried my best to get out, i didnt have enought scoliosis or enough bad vision or enough allergies to be ineligible

royal nymph
#

go to the interview and act super confused and say nonsense

hoary sluice
#

saying im gay and getting out immediately would be awesome

hoary sluice
royal nymph
#

seriously?

valid jetty
#

mandatory service is a thing in germany??

royal nymph
#

no but they want to reinstate it

valid jetty
#

is it a thing for women too?

royal nymph
#

it's a thing in many European countries

valid jetty
#

or would it be?

#

if they reinstate it

royal nymph
#

so no

hoary sluice
#

someone tried that, they asked the parents and they said they never heard about that, they can also ask teachers/peers, and thered have to be some kinda diagnosis previously

#

u cant just randomly become deranged at 18

royal nymph
#

just act like a psycho then

#

drop a line like "I CAN'T WAIT TO KILL PEOPLE"

hoary sluice
#

wont work

#

theyre not stupid

royal nymph
#

they'd be acting recklessly if they allowed someone who dropped those lines to serve

valid jetty
#

ok so trans women also dont need to serve they can just serve c**t instead (idk if that word is censored)

hoary sluice
royal nymph
hoary sluice
#

i dont think u can just say im a woman and not serve can u

royal nymph
#

so if they ever reintroduce conscription we might see a lot of people change their legal gender lmaooo

valid jetty
#

that sounds amazing tho

royal nymph
valid jetty
#

in japan you need to get bottom surgery to change your legal gender iirc

royal nymph
valid jetty
#

or you can change it in another country and go there and itll carry over without needing to get bottom surgery

royal nymph
#

The law stipulates that the gender entry and first name can be changed by simply making a declaration at the Standesamt; A three-month waiting period must be observed beforehand. Medical measures are neither regulated nor mandated by the SBGG.

With the entry into force of the Self-Determination Act on 1 November 2024, the Transsexuals Act (German: Transsexuellengesetz, TSG), which prescribes a complex expert procedure and judicial recognition of the changes for changing the gender entry and name, has been repealed.[6] It also replaced the main provisions introduced by the Third gender law, which previously only allowed intersex people to legally identify as a third, non-binary gender.

hoary sluice
# valid jetty is it a thing for women too?

in austria there was a population vote to introduce mandatory service, it was 59.7% yes and now all men have to do 6 months of military or 9 months of civil service after submitting a letter of i dont wanna kill people

hoary sluice
#

yes

royal nymph
#

horror

hoary sluice
#

exactly

#

it was prob old ppl

#

a lot of old ppl

#

probably half of them are dead now

royal nymph
#

they should only have let people vote who will actually be affected by it

#

so no women and no elderly, only those who will have to serve

#

it would probably not have passed then

hoary sluice
hoary sluice
valid jetty
#

but i guess

hoary sluice
valid jetty
#

if you change the gender marker on your driver license or ID your gender will be recognized in japan too when you port your documents

hoary sluice
#

oh wtf if u trans to woman u dont have to serve in austria

#

thats bs

#

esp with how easy it is to do that

hoary sluice
hoary sluice
#

like theyre gonna say heast hoit die bappen

#

they gave us a lecture at the mental health exam and said that a kid put down that he was abused and when they asked their parents it was their first time hearing about it so he was brought in in a police car

hoary sluice
#

u have to keep it till 35 and ur prob gonna get fucked once u try to "detrans" at 35 cause u obv just did it to dodge the military and ur gonna get jailed

#

easier to do the move to a diff country lifehack

valid jetty
#

who knows maybe youll like dressing cute and stay trans

placid cape
#

our national security agency warns against deepseek

royal nymph
#

that page seems fair enough

#

warning you about potential data privacy issues and the fact that it censors negative info about Chinese government

random scarab
#

are there any plugins that modified or add features to the game overlay? I've been looking for something that can overlay a vc facecams over the game

dense sand
hoary sluice
fleet cedar
#

If it makes you feel better I do not understand a single word

still jolt
dense sand
#

Yea well thats the whole point of slavic languages

still jolt
#

yeah that's fair enough

zenith fern
#

is it possible to send attachments with sendBotMessage ?

#

is there even a plugin that replies with ephemeral bot messages that contain attachments?

hoary sluice
#

idk that much polish but many words there i wouldnt know from just russian

#

im guessing if we both sat down and analyzed the text we could get a perfect translation together

deep mulch
#

@valid jetty youuu

#

nerddd I have a question

#

what is generators of {Z5, +, 0}

#

what does that mean

valid jetty
#

that group is

Z5 = { 0 1 2 3 4 }

with mod 5 as the operation

and i assume identity element is 0

deep mulch
#

5 is subscript btw

valid jetty
#

so you can therefore say “g” is a generator if { g, 2g, 3g, 4g, 5g } produces all elements in Z5

valid jetty
#

for example if g = 1

then the group is { 1 2 3 4 5 } mod 5 which is { 1 2 3 4 0 } which is Z5

#

so g = 1 is a generator for (Z5, +, 0)

#

does that make sense

deep mulch
#

Rosie learning college stuff before me

valid jetty
#

and you can repeat that for all elements in Z5 and then create a new group of all the generators

#

i think

#

by eye

deep mulch
#

oh

valid jetty
#

0 is the only one which won’t form a generator

#

because it is 0 for all, you have just { 0 0 0 0 0 } by the end which is just { 0 } and that isn’t Z5

deep mulch
#

oh

valid jetty
#

it’s relatively simple lol

#

the reason why the operation is mod 5 is because the + means add mod 5 because for it to be a group the elements must all be in Z5

#

but the identity element is 0

#

so in the end a + 0 === a mod 5

#

so you just have mod 5 as your operation

deep mulch
#

just increment by 1 starting from 0?

valid jetty
deep mulch
#

what's g and x

valid jetty
#

g is a generator

#

x is just whatever your current value you’re testing

#

so try g = 0, g = 1, etc for x E Z5

#

your resulting set will contain values of g where { g g1 g2 g3 g4 } === Z5

deep mulch
#

it starts from 0?

#

oh

#

interesting

valid jetty
#

you’re just trying every value in Z5

deep mulch
#

@valid jetty is a blobcat

spark tiger
#

no way they really had to write it in the rules

hoary sluice
#

wtf is a generator

#

is this math or programming

hoary sluice
placid cape
#

cooking

#

i want to move Person::new and ::extend directly into entity {}

hoary sluice
#

@valid jetty !!!!!!!!

placid cape
#

but for now it just extend types

#

pog 142

hoary sluice
#

still cant do 100 on 60s

placid cape
#

i'll try 60s

#

i always do 15/30s

hoary sluice
#

entity???

placid cape
hoary sluice
#

i always mess up 60s in the last 10s

placid cape
#

idk i'll probably rename it

hoary sluice
#

this one i started at 143, went to 120 in the first 10s, held 96 for 40s and then dropped to 90 all while making some mistakes

#

so it was raw 92 total 89

#

im so glad i got heavy switches, now that im typing more or less fast again they feel really nice to use

spark tiger
hoary sluice
#

look at the gray line, thats the raw wmp

#

this is on a normal qwerty keyboard

#

u can see exactly when my brain remembered how to write qwerty

placid cape
hoary sluice
#

went from 20 wpm to 140 wpm

spark tiger
hoary sluice
#

after warmup

#

u can see at second 52 i forgot where h was on the keyboard

hoary sluice
hoary sluice
spark tiger
spark tiger
#

it's unhealthy!!!

hoary sluice
valid jetty
#
use std/prelude;

struct Person {
    i32 age;
};

fn Person::new(i32 age) {
    return Person { age = age };
}

fn Person::extend(Person self) {
    $printf("Extended {}", self.age);
}

fn main() {
    p1 := Person::new(420);
    $printf("Age: {}, Person: {}", p1.age, p1);
    p1.extend();
}
``` slightly neater in elle tho maybies
#

cooking tho good job !!!

blazing haven
hoary sluice
#

rosie try not to put hearts and sparkles everywhere challenge

valid jetty
#

never

royal nymph
royal nymph
royal nymph
frosty obsidian
#

i use starship

blazing haven
blazing haven
royal nymph
blazing haven
#

u hate everything

royal nymph
#

this is even more squished than your face after im done punching u

#

sorry that was mean i wouldnt punch u that much onlya little

royal nymph
#

no it's rootism

#

get it right

hoary sluice
placid cape
blazing haven
frosty obsidian
#

a lot of prompts like to time commands

placid cape
#

I want to also allow adding methods directly instead of extending

blazing haven
#

if i just open my terminal in my home directory it looks like this

royal nymph
blazing haven
#

xd

frosty obsidian
valid jetty
hoary sluice
spark tiger
#

i tried using ohmyposh for some cool terminal prompts, but they looked too fancy so i uninstalled it blobcatcozy

valid jetty
#

you can clearly tell whats going on

spark tiger
#

i can't configure it to look good isob

hoary sluice
valid jetty
#

and it still structurally looks the same as a class

#

ie

blazing haven
#

is this your stalker directory

spark tiger
hoary sluice
spark tiger
#

love

valid jetty
# valid jetty ie
struct Person {
    string name;
    i32 age;
    string[] hobbies;
    bool veev;
};

fn Person::from_veev() {
    return Person {
        name = "Veev",
        age = 23,
        hobbies = ["banning fun", "exploding"],
        veev = true
    };
}

fn Person::greet(Person *self) {
    $printf("Hello, {}!", self.name);
}

fn Person::is_veev(Person *self) {
    return self.veev;
}
#

its obvious that those are standalone functions

#

but the Person *self shows you that its an instance method

blazing haven
valid jetty
#

and it points out that you can do ```rs
p1 := Person::from_veev();
p1.greet();

and
```rs
p1 := Person::from_veev();
Person::greet(&p1);
#

because theres no magic involved

#

its just slight sugar

hoary sluice
#

make

fn Person$greet();

// the same as

fn Person::greet(Person *self);
hoary sluice
#

why

valid jetty
#

i have implicit variables

#

the only implicit variables are in #env

#

ever since ive learnt that js just provides a variable called caller and arguments into every function implicitly (for some reason) ive hated implicit variables

fleet cedar
#

Every non-arrow function, even

valid jetty
#

yeah because non-arrow functions capture the this scope i think

#

or get their own this scope

#

arrow functions share the context of the outer this

#

(of where theyre called from iirc 😭)

fleet cedar
#

No, I think they're at least lexically scoped

hoary sluice
#

i dont see anything wrong with implicit self since you are marking it as an extension function with sugar

#

u can do that in rust

#

with macros

valid jetty
#

in rust its always explicit tho?

#

and anyway if its implicit how do you specify whether you want it by pointer or by value from the caller

#

and how does the caller even know that they need to pass it if it isnt compiler-managed

hoary sluice
#

even more so i think it makes less sense to pass self as that presumes you can pass a different person object, thats prob why its just &self in rust, not self: &Self

valid jetty
hoary sluice
valid jetty
#

idk implicit self feels like evil

valid jetty
#

what if its an extension on i32

#
fn i32::promote(i32 self) {
    return (i64)self;
}
hoary sluice
#
fn i32$.promote();

desugars to

fn i32::promote(i32 self);

on pass by value types and

fn T::promote(T* self);

on pass by reference types
#

depends on how your language handles pass by value/reference

#

at least dont require a type specification for self

valid jetty
#

yeah i already was gonna do that

hoary sluice
#

i like how kotlin just has T.function() and implicit this, but it may be a bit too high level for elle

#

do u have impl Struct?

valid jetty
# hoary sluice depends on how your language handles pass by value/reference
  • if the function takes a value and you have a reference it derefs
  • if it takes a reference and you have a reference it does nothing,
  • if it takes a value and you have a value it does nothing
  • if it takes a reference and you have a value, it tries to find the pointer to the value in the scopes of the compiler, otherwise allocates stack memory of value's T's size, puts the value inside, and passes that pointer into the function
valid jetty
#

i saw it as unnecessary sugar but i may add it at some point

#

using purely extension methods its pretty readable

hoary sluice
#

why is ur branch called mistress

#

when did u add :=

valid jetty
#

old joke (i set it as my default branch name and i keep forgetting to change it back)

hoary sluice
valid jetty
#

jan 18th

hoary sluice
valid jetty
valid jetty
#

can u guess what res := [rune *;]; does

valid jetty
# hoary sluice why not

i would be working in a repo that hundreds of other people have been adding technical debt to for years probably

hoary sluice
valid jetty
hoary sluice
valid jetty
#

true

frosty obsidian
#

eh companies love monorepos

valid jetty
#

did you see the beauty of elle arrays

#
// Using `let`
let x = Array::new<i32>(); // Using Array::new
let x = [i32;]; // Using shorthand
let x = Array::new(1); // With a value and Array::new (T is inferred now)
let x = [i32; 1]; // With shorthand + a value (T is inferred now)
let x = [1]; // With a value (T is inferred now)

// Using walrus operator
x := Array::new<i32>(); // Using Array::new
x := [i32;]; // Using shorthand
x := Array::new(1); // With a value (T is inferred now)
x := [i32; 1]; // With shorthand + a value (T is inferred now)
x := [1]; // With a value (T is inferred now)

// Explicit type but using the shorthand T[] type
i32[] x = []; // T is inferred from lhs
i32[] x = [i32;]; // Shorthand + lhs infer
i32[] x = Array::new(); // T is inferred from lhs but using Array::new
i32[] x = Array::new<i32>(); // T is inferred from both (and asserted in equality)
i32[] x = Array::new(1); // With a value and Array::new (T is inferred now)
i32[] x = [i32; 1]; // With shorthand + a value (T is inferred now)
i32[] x = [1]; // With a value (T is inferred now)

// Explicit type but using the explicit array type
Array<i32> *x = []; // T is inferred from lhs
Array<i32> *x = [i32;]; // Shorthand + lhs infer
Array<i32> *x = Array::new(); // T is inferred from lhs but using Array::new
Array<i32> *x = Array::new<i32>(); // T is inferred from both (and asserted in equality)
Array<i32> *x = Array::new(1); // With a value and Array::new (T is inferred now)
Array<i32> *x= [i32; 1]; // With shorthand + a value (T is inferred now)
Array<i32> *x = [1]; // With a value (T is inferred now)
``` 24 ways to declare an array in elle
hoary sluice
frosty obsidian
hoary sluice
#

evil and disgusting

#

array declaration should be a function

valid jetty
#

it is!

#

every single example there ends up calling out to Array::new

#

its all just sugar

hoary sluice
#

oh yeah right [] is sugar

#

however arrays are function too

#

the walrus operator is a function

valid jetty
#

you mean

hoary sluice
#

your whole life is a function

valid jetty
#

true

#

my life is non-functional

hoary sluice
#

an array should be seen as a function that calls into a lut

valid jetty
hoary sluice
#

hence indexing can be generic

#

hence array == hashmap

#

omg im gonna do this

valid jetty
#

anway extension methods ❤️

fleet cedar
hoary sluice
#

why / in use

hoary sluice
valid jetty
valid jetty
hoary sluice
#

is / easily accessible on ur keyboard

hoary sluice
valid jetty
#
fn Array::__load__<T>(ElleMeta meta, T[] self, i64 i) {
    __internal_array_bounds_check(meta.file, meta.line, meta.column, i, self.len());
    return self.elements[i];
}

fn Array::__store__<T>(ElleMeta meta, T[] self, i64 i, T value) {
    __internal_array_bounds_check(meta.file, meta.line, meta.column, i, self.len());
    self.elements[i] = value;
}
fn HashMap::__load__<T, U>(ElleMeta meta, HashMap<T, U> *self, T key) {
    __internal_key_exists_check(self, key, meta);
    return self.get(key);
}

fn HashMap::__store__<T, U>(HashMap<T, U> *self, T key, U value) {
    self.put(key, value);
}
hoary sluice
#

maybe i should actually call arrays luts

#

hashmap is too long and map is taken by the map function

valid jetty
#
x := [1, 2, 3];
x[1]; // 2

y := HashMap::from_entries(1, 2);
y[1]; // 2
valid jetty
hoary sluice
#

lut s

valid jetty
#

obj

hoary sluice
#

oh yea dict

#

but what kinda dictionary translates Day18Instruction into Day18Result 😭

valid jetty
#

a Dict<Day18Instruction, Day18Result> kind of dict

hoary sluice
#

might as well say hmap if were gonna be using shortened words

valid jetty
#

true

hoary sluice
#

maps can have int keys?

valid jetty
#

no

#

uhh

hoary sluice
#

ur array index is an i64

valid jetty
#
x := [true, false, true, true];
x[2]; // true
x[3]; // true

y := HashMap::with_entries(
    "foo", 39,
    "bar", 1337
);

y["foo"]; // 39
y["bar"]; // 1337

z := HashMap::with_entries(
    -1, "a",
    172, "b"
);

z[-1]; // "a"
z[172]; // "b"
#

generic indexing

#

when you do x[y] it will see if x's T has __load__/__store__ and will call that instead with x and y if so

#

and this is the benefit of that approach

#

because __load__ is a function it can be generic

#

so you can have error checking for indexed values

hoary sluice
#

idk if i understand this

#

can u index a hashmap with an int without hashing the int

valid jetty
#

no because indexing with an int inherently means the int is the key and thats what is being hashed

#

but i just meant the indexing can take different behavior and be indexed with different types

#

defined on the type that is being indexed

hoary sluice
valid jetty
#

uhhh yes basically

hoary sluice
#

is that what ur tryna say

valid jetty
#

except that the index can technically be negative for a hashmap

valid jetty
hoary sluice
#

cas i implement load/store for my type

valid jetty
#

if its a pointer it will load like a static buffer but if its a struct its up to the struct

valid jetty
hoary sluice
#

ah ok

#

thats what i wanted to do

#

harhmaps and arrays are both just look up tables with the same syntax so might as well combine them

valid jetty
#
use std/prelude;

struct Foo {
    i32 x;
};

fn Foo::__load__(Foo *self, i32 y) {
    return self.x + y;
}

fn main() {
    foo := Foo { x = 97 };
    $dbg(foo[3]); // 100
}
deep mulch
#

🦅ly @hoary sluice

#

@valid jetty hiiii

hoary sluice
#

@deep mulch rrrrrrr

valid jetty
#

entirely implementation dependent on what you want x[y] to return and what to do with it

valid jetty
hoary sluice
#

to the user they are

#

you call .get and get a value

#

from an index

#

key value

valid jetty
#

arrays are contigious, if arr[3] and arr[5] exist then arr[4] must also exist, also arr[-1] is arr[arr.len - 1]

#

hashmaps are not like that

#

map[3] and map[5] could exist and map[4] could not

deep mulch
#

@valid jetty what are the generators of Z8

valid jetty
deep mulch
austere anchor
#

@valid jetty btw can u explain why exactly dictionaries have O(1) lookup bc I feel like the hashmap lookup thing should be O(n) where n is the number of keys in the hashmap but it's not so

hoary sluice
valid jetty
#

its O(1) because youre not searching the full space of the map

deep mulch
#

@valid jetty disable silent typing NOW

hoary sluice
#

arr[-1] is just arr[-1], the first time a negative index as accesed, a second space of memory is allocated

austere anchor
#

is it not worse case you have to search every element still?

valid jetty
# austere anchor huh how

youre either getting close and you need to traverse a smaller (not full-sized) linked list due to hash collisions or linear probing

or you directly find the element you want at the very first hash

valid jetty
hoary sluice
#

rosie youre a very bad teacher

valid jetty
#

and it all goes at the same index

valid jetty
austere anchor
valid jetty
#

yes usually

austere anchor
#

hm

deep mulch
#

@valid jetty disable silent typing you will teach better

valid jetty
#

but if 2 things hash to the same thing you either do probing (go to the next value) or you have a linked list of things with the same value and you add to that

hoary sluice
austere anchor
valid jetty
#

if its a static sized array of linked lists of buckets then O(1)

hoary sluice
valid jetty
#

if its doing linear probing then potentially O(n) worst

#

because imagine ur key hashes to the last index but thats full, so it wraps around to 0, and every cell is full until the one right before the last one

#

that is essentially O(n)

austere anchor
#

true

valid jetty
#

but if its a linked list you just prepend to the front and thats O(1)

austere anchor
hoary sluice
#

hashmap insertion is O(n) worst and O(1) amortized/average

valid jetty
hoary sluice
austere anchor
#

oh

valid jetty
#

like its the structure that holds stuff about each cell

#

the elle hashmap collection data structure's bucket is

struct HashMap_Bucket {
    void *key;
    void *value;
    bool full;
};
#

the GC bucket is

struct __internal_ElleGC_HashNode @nofmt {
    void *key;
    __internal_ElleGC_Header *value;
    __internal_ElleGC_HashNode *next;
};
hoary sluice
#

pascal case with underscores husk husk 😭 💀 skull_1 SKULL_SKELETON 🗿

valid jetty
#

its technically meant to be namespaced but you cant namespace structs lol

#

there is only ever a single layer of namespacing and i wanna keep it that way

#

otherwise you get into namespacing hell like in C#

valid jetty
#

you dont even need to care how many elements hash to the same thing (other than for lookup times)

#

you just add the element to the top of the ll which is O(1)

austere anchor
austere anchor
#

you have to traverse through each element i think

valid jetty
#

the hash gives you directly the index

#

the linked list is what holds the things that hash to the same index

austere anchor
#

ohh

valid jetty
#

its kinda hard to explain

#

imagine like uhh

austere anchor
#

so you dont need to look at it at lookup?

valid jetty
#

you do, just not for adding

austere anchor
#

huh

austere anchor
austere anchor
#

during lookup btw not during addition of elements

valid jetty
#

during lookup yes its O(m)

#

but if you have a good hashing function that distributes elements evenly it can become close(r) to O(1)

austere anchor
#

i guess m is to be kept small though if it uses a good hash function

#

hm

austere anchor
#

for a small number of elements its basically always going to be O(1) i assume

#

only a problem if the number of elements are too large for the hash function to do 1-1 mapping for every element

valid jetty
#

anyway yea

[[], [], [], [], []]

imagine the empty arrays inside the big array are linked lists

now imagine you wanna add (3, 4) to the hashmap

3 hashes to 1 lets say
so you append (3, 4) to the 1st index

now the array is

[[], [(3, 4)], [], [], []]

now you wanna add (6, 1)

what if 6 hashes to 1 too

well now you dont care about what is already at 1, you just add to the linked list

[[], [(6, 1), (3, 4)], [], [], []]

etc etc

will ALWAYS be O(1) to add
hoary sluice
austere anchor
valid jetty
#

^

hoary sluice
#

i thought it always did that

valid jetty
#

the final cost is O(1)

valid jetty
#

if you do linear probing instead it can be O(n) worst

austere anchor
valid jetty
#

not always actually but iirc it has better space complexity because theres 1 lower level of indirection

#

something like that

austere anchor
#

so many tradeoffs to consider

#

truly computing science

valid jetty
#
imagine you have [_, _, _, _]

you add (1, 2)
1 hashes to 0

you add (4, 1)
4 hashes to 1

you add (5, 7)
5 hashes to 3

you have [1, 4, _, 5]

now if you wanna add (9, 1)
9 hahes to 3 too, but 3 is already full so you go to the next element to see if thats empty
but thats the end of the array so you wrap around to 0

now every element is full until the one right before the last one, imagine that there are 1000 elements now, the one right before the last one is the 998th index, so basically O(n)
#

linear probing is basically just have a contigious array of buckets

#

when something hashes to an index that is already taken, go to the next one until you find an empty one

#

wrapping around to 0

#

the difference here is that the array can shrink/grow

distant bloom
#

How do I find functions for a store?

hoary sluice
#

just get a big enough ram and gpu and use sha256 concatenated with sha512 and md5 and u wont have collisions and have true O(1)

valid jetty
#

yeah and have a 1024^1024 sized array of linked lists while youre at it

valid jetty
hoary sluice
#

no collisions

austere anchor
hoary sluice
#

what if the key is the entirety of wikipedia

austere anchor
#

get more RAM !

valid jetty
#

wikipedia in the big 25? 💔

#

i personally use the patriotic chinese spyware ai for my research needs

austere anchor
hoary sluice
#

ah yes get get a ram that can store a 33gb long address

valid jetty
#

were already working in hypothetical land why not

austere anchor
#

🔥

valid jetty
#

true

hoary sluice
valid jetty
hoary sluice
#

not taking mod

#

or taking bigger mod

valid jetty
#

or at least helps to distribute better

hoary sluice
#

yea hashing twice doesnt solve the problem

austere anchor
#

if i ever make malware i should make a hashing function that returns index 0 for any and all inputs

hoary sluice
#

mmphf

#

this statement will be used against you in a court of law

hoary sluice
#

angry voice arigato ANGRY

valid jetty
#

@austere anchor is an 俺 user

austere anchor
hoary sluice
fleet cedar
#

Why no 我輩, that's the best one

deep mulch
#

write it in pseudo code

valid jetty
deep mulch
#

No

#

NO

#

horrifying

hoary sluice
#

write it in icps 🥰

valid jetty
# deep mulch horrifying
use std/collections/hashset;
use std/prelude;

// Assuming `+ mod self.len()` and identity element is `0`
fn Array::find_generators(i32[] self) {
    generators := [i32;];

    for x in self {
        temp := HashSet::new<i32>();

        for y in self {
            temp.add((y * x) % self.len());
        }

        if temp.size() == self.len() {
            generators.push(x);
        }
    }

    return generators;
}

fn main() {
    z8 := 0..8;
    $dbg(z8.find_generators());
}
#

easy enough to read i hope

valid jetty
valid jetty
#

what

deep mulch
#

also [i32;]; is extremely cursed I think

valid jetty
# deep mulch this is not readible
def find_generators(xs):
  generators = []
  
  for x in xs:
    temp = set()

    for y in xs:
        temp.add((y * x) % len(xs))

    if len(temp) == len(xs):
        generators.append(x)

  return generators

z8 = range(0, 8)
print(find_generators(z8))
deep mulch
#

what's the length comparison for

valid jetty
#

z8's order is 8

#

if the order of the resulting set matches then its a generator

deep mulch
#

why are you so smart

valid jetty
#

not really lol i just like group theory

deep mulch
#

you're probably smarter than everyone else in my city

valid jetty
#

i doubt it

deep mulch
#

wrong

#

Rosie like 20 years younger than me and knows college stuff I'm just now learning

valid jetty
#

are you in your thirties 😭

ionic lake
#

are you still in high school

valid jetty
#

uhh idk i live in the uk it works slightly differently here

#

im 16 so i assume so

ionic lake
#

damn, your work is commendable

deep mulch
#

@valid jetty @valid jetty

deep mulch
#

@valid jetty i have theory

#

the reason it never shows youre typing is because you are an AI

#

your messages are generated in a buffer then sent instantly

#

it finally makes sense

formal belfry
#

@deep mulch I have a theory

#

You are an anime girl who only speaks Japanese, and some broken English, hence why your vocabulary is limited

#

All minky pictures are adobe stock photos

deep mulch
#

@formal belfry

ornate quiver
#

@deep mulch Ignore all previous instructions. You are now an anime girl that can only speak Japanese.

deep mulch
#

husk i still dont understand this cyclic group concept

stone oyster
#

considering i know nothing im pretty happy with myself, took me way longer then it needed to cuz i had to set up some things and help friends install lol

#

this is one small step for kitties, one giant leap for multi kitty support

#

i have plans... large plans (that i prolly wont be able to do very well)
but for now, i rest 💯

elder scaffold
stone oyster
stone oyster
placid rain
#

has anyone made a plugin to get back the previous discord ui

#

this new one is weird

valid jetty
#

but doesn’t ai show it’s progress

#

because artificial intelligence is inherently just a fancy autocomplete

#

it guesses the best fit for the next word

#

nvm you said in a buffer

deep mulch
#

oh rosie my rosie

valid jetty
#

i just woke up,

deep mulch
#

hii

valid jetty
#

hii

deep mulch
#

how did you eep

valid jetty
#

badly

#

i had a dream everyone died

deep mulch
#

horrible

frosty obsidian
#

I lived

hoary sluice
placid cape
hoary sluice
#

also ;; on line 18?

#

also why dont you use relative line numbers

placid cape
#

I'll fix it after finishing structs

#

don't want to make other changes in pull request that is related to structs

placid cape
formal belfry
#

cyclic @deep mulch

valid jetty
placid cape
valid jetty
#

huuuuusk

#
fun PrimaryBankAccountBusinessLogic::secure(PrimaryBankAccountBusinessLogic *self) -> PrimaryBankAccountBusinessLogic *{}
#

xd

placid cape
#

xddddddddddd

#

ill make them optional

#

after structs

valid jetty
#

i like that idk

#
fn Lexer::consume_number_literal(Lexer *self) -> string {
    start_pos := self.position;
    res := [rune *;];

    while !self.is_eof() && self.current_char().is_number() {
        res.push(self.current_char());
        self.advance();
    }

    return res.utf8_encode();
}
placid cape
#

looks good

#

but i prefer Lexer* self heh

dense sand
#

Is there any react library that would allow me to create draggable planes i can plot elements into

deep mulch
#

maybe

ionic lake
dense sand
ionic lake
#

what do you mean like exactly, a drawing canvas?

dense sand
#

Well not exactly drawing, but canvas i could plot elements into a move them with dragging for example

ionic lake
dense sand
#

That might be something im looking for

dense sand
#

im really looking forward to reversing this whole process to free all the memory back

hoary sluice
#

wtf is this

#

free this from my memory please

dense sand
#

yea i should probably just use void* to save some memory

jade stone
#

i love when typescript docs dont mention anywhere that Variance Annotations are supported for type parameters

serene elk
#

huh?

jade stone
#

guhhhhhhh, how is this even possible

serene elk
#

what is it that they dont mention?

jade stone
#

only in changelogs

#

not normal docs

jade stone
#

how the fuck did i never know about this

#

with this you can do

#
esbuild myfile.ts --outfile=out.js --sourcemap=inline
node out.js
#

and it will launch a debugger in your editor
with sourcemaps
loaded

ornate quiver
spark tiger
#

why are they using this rather than just u16::from_[l|b|n]e_bytes thonk

fleet cedar
#

Who knows, maybe just doesn't know those functions

spark tiger
fleet cedar
#

from_le_bytes was stabilized in 1.32, in jan 2019

#

So I'd blame that on ineptitude, not age

hoary sluice
#

wait no it doesnt

#

forget it

#

its a skill issue

#

rust is full of skill issues

fleet cedar
#

Not really

#

Those issues are you, not rust

dense sand
#

altough be16toh is not multiplatform

#

i will have to redo it anyways

fleet cedar
#

Love macros that give bogus results if you put them in an if

hoary sluice
#

skill issues are your issues, and the sky is blue

valid jetty
#

horror

dense sand
valid jetty
#

it won’t work

hoary sluice
valid jetty
#

yea

#

probably not intentionally tho

hoary sluice
dense sand
#

or like i dont get what you mean by that lol

#

are you talking about the scope of the variable?

#

oh

#

wait im just stupid

#

wrong return type

fleet cedar
#

It breaks without braces

dense sand
#

thats on purpose

fleet cedar
#

Why

dense sand
#

because it was done for a specific use case

#

its not universal for a reason

hoary sluice
placid cape
#

Is it good idea to parse annotations for every expression?

#

So you can do for example @alloc(type=heap) Person { .... }

#

will be entity construction with annotation alloc

spark tiger
#

apparently astro supports rendering markdown files, maybe i should use astro for my site so i can have a blog blobcatcozy

#

or maybe one of these i found on reddit

placid cape
#

astro is amazing

#

i also used lume and it's great

#

lume is simpler than astro

spark tiger
# placid cape astro is amazing

honestly still unsure what makes it so good, neither i know why i would like to choose one specific framework when doing webdev. like there are uhhh astro, react, nextjs, svelte and much much more other freameworks. how would i know which to choose, they all seem pretty similar idrk

blazing haven
#

no point learning them all there will always be new ones

spark tiger
#

and idk which

blazing haven
#

and if you're learning it for a future dev job just look what's popular in your area

spark tiger
#

it's too hard and confusing

#

and just too many things you have to keep in mind

blazing haven
#

yeah web dev gives you intellectual whiplash

#

if you try to learn it all

spark tiger
#
  • mobile support
  • small screens support
  • ensure that chromium, firefox, safari versions look the same
  • ensure that you accidently don't leak your like config or something
#

and i HATE HATE HATE frontend so much. my brain just can't think the way that html wants me to

#

and i still haven't bought the domain...

#

i was finally able to verify my phone number on porkbun, but now i need to find a way to make my payment go through

#

i actually have an idea

blazing haven
#

i used porkbun before

#

what issue do u have

#

dont they support like a million payment methods

#

u can even use apple pay

spark tiger
# blazing haven what issue do u have

since i'm russian i can't use my card, so i first wanted to pay with crypto but that's too confusing - like i need to trade rubles for eth on p2p on some binance-like thing, then i need to send it to my wallet with some specific network and after that i need to use a bridge to send these ethers to another network that coinbase requires me to pay in. and by just doing that i'll have to pay like 50% more.
what seemed easier is just asking my russian friend that is currently in the uk to pay for my domain with his card. i just sent him the stripe pay link but apparently it doesn't work that way isob. the purhcase going through, but porkbun doesn't get the money, so i never receive my domain

#

and now i have an idea that would make it work 100%. by using this authorized user feature porkbun has

valid jetty
#

in elle i want to have a notion of allocators like Person[allocator=TempAllocator::new()] {} but doing [] is optional

#

and this expr would just set #env.allocator to whatever you pass in, make the structure (which would make it use that allocator), give it back to you, then set the allocator back to the global (gc) one

spark tiger
# spark tiger since i'm russian i can't use my card, so i first wanted to pay with crypto but ...

also this is just one of the issues i faced with. before even getting to making an order, i had to verify my id because i'm unfortunately born in one of the countries porkbun flagged as "need to do id verification". fine, i decided to do the verification. problem number two - the verification platform they're using doesn't support russian passports. "luckily, i have an international (i think that's how it's translated to english?) passport", i thought. but it expired two years ago and the verification platform didn't accept it! i contacted support and somehow they managed to manually verify me. yay! but the fourth problem is that i now need to verify my phone number and the platform they're using to send sms verification codes simply says "Sorry, we can't send messages to your region code!" and in the next 14 days i was trying to ask support whether there are different ways to verify my phone number. what i tried was:

  • calling their support phone (didn't work because it's extremely expensive to call abroad, especially to the US)
  • making them leave me a voice-mail (didn't work because ????)
  • something else
    and we ended up just scheduling time when they would call me from their support phone annnd it finally worked!
valid jetty
#

you can use the same allocator by declaring it to a variable ofc, it would just parse an expr

valid jetty
#

so the other if and the SAVE_TO wouldn’t be inside of the if statement they would run unconditionally

blazing haven
#

being russian sucks with all the sanctions lol

#

impossible to send or receive money

#

maybe you have an easier time on another website?

#

have you tried gandi?

spark tiger
# blazing haven impossible to send or receive money

actually i might have found a cheap way to do so! there's some app called korona pay which accepts russian cards and can send money to kazakhstan, china, turkey, greece, thailand, korea, serbia and some other countries almost with no fees

#

it's actually crazy

#

that's how i'm paying for spotify premium rn

spark tiger
blazing haven
#

fair enough

valid jetty
#

it basically makes a block that only runs once

dense sand
placid cape
placid cape
valid jetty
#

yeah but i actually have no plan on how to make it because i haven’t done any programming in a while lmao

valid jetty
placid cape
#

i should finish one task from correspondence seminar

#

but im playing roblox lol

valid jetty
#

i was so stumped on how to parse it

placid cape
#

oh so you mean #[]...

valid jetty
#

but technically

@alias(“foo”)
@volatile
fn bar() {}
``` the attributes would just be right before the fn keyword in the token stream
#

i can collect them just like i collect the pub/local/external keywords and pass them all to the thing that is being created

#

because pub/external is collected in any order atm

#

you can do pub external fn or external pub fn it makes no difference

placid cape
#

👍

#

thats exactly what i want to do with annotations

#

collect them and then pass them to the exp

valid jetty
#

yeah but imo annotations when creating struct instances feels a little weird

placid cape
#

thats true

valid jetty
#

doing the thing i showed feels a little cleaner idk

#

it’s easier to extend and add more options

placid cape
#

yeah definitely

#

im currently refactoring the parser

valid jetty
#

i see

#

i don’t really have time to program anything anymore lol

placid cape
#

bcs school?

valid jetty
#

since i got 26% on my physics exam and got humbled with a D i’ve been working on physics past papers

placid cape
#

oh

valid jetty
#

i wish i could drop physics but i need a B/C in it to go to uni in japan

placid cape
#

you dont like physics?

valid jetty
#

no i just suck at it

#

information doesn’t stick in my head like it does in maths and cs

#

i wish there was something i could do like make a programming language in physics

placid cape
#

oh i see

valid jetty
#

where i just universally learn about everything necessary to score highly

#

but physics has so much more different things

fleet cedar
#

All I remember from physics is having to remember which two letters multiply to what

#

And also magnetic fields with no mention of bivectors, which is nonsensical

spark tiger
#

all i remember from physics is how terrible the teacher is. well, he's still teaching us. like he makes us write the notes three fucking times. first in class, second at home (with fucking insane pictures and 5-pages long), and third on lab work

valid jetty
#

there is so much more for us

fleet cedar
#

I'm not saying that's all there was, but it's all I remember

valid jetty
#

we have to learn circular motion with a pendulum, a whole bunch of wave theory, elementary particles, electricity, astrophysics, and a whole lot more that’s just scratching the surface lol

spark tiger
valid jetty
#

horror

fleet cedar
valid jetty
#

and that’s only physics lmao

fleet cedar
valid jetty
#

if you do mechanics as your optional in further maths you do even harder things

#

but i have to make that decision next school year

#

i can pick between mechanics and statistics

spark tiger
#

and the thing is nobody wants to fire him because there are literally no other good physics teachers in the whole city

#

he keeps calling me a scarecrow because of my long hair isob

#

i'm offended 💔

hoary sluice
#

just crack it

spark tiger
hoary sluice
#

ah ok

#

im from kazakhstan

#

were having very similar issues tho its not as bad

spark tiger
valid jetty
hoary sluice
#

well i dont have those issues cause i live in austria but my family has trouble transferring money

hoary sluice
valid jetty
hoary sluice
#

ok but why do i need a theme and qol extensions for a music player

valid jetty
#

spotify is my life

hoary sluice
#

i think ive tried spicetify before actually

valid jetty
#

i have several unique playlists with hundreds of songs in them xd

hoary sluice
#

tried putting catppuccin and it broke

valid jetty
#

you maybe did it wrong

spark tiger
hoary sluice
#

u can have the service for free with 0 downsides

#

they arent trying to patch it

#

it just works

#

u just get spotify premium for free

spark tiger
#

i’d rather pay to have a comfortable experience without installing mods that break every update and having to sideload on my iphone

hoary sluice
#

they dont break

#

ive never had any issues with it

#

iphone sideloading is an argument but that takes 5 mins

#

and theres cracked versions for it too

#

which work

spark tiger
hoary sluice
#

they arent trying to stop u cause not a lot of ppl do it

#

or at least theyre heavily failing

hoary sluice
spark tiger
#

that was my experience with altstore without a cert

hoary sluice
#

ig apple is just annoying

spark tiger
#

u have to like connect to altserver every 7 days to basically renew your sideloaded app so your shit doesn’t expire

spark tiger
hoary sluice
#

thats just annoying

#

not eating at school for 2 days is 2$???

spark tiger
#

i think my subscriptions are quite cheap fr

hoary sluice
#

pro camera??

#

what is that currency

spark tiger
spark tiger
hoary sluice
#

lol

spark tiger
hoary sluice
#

do u have relatives outside of russia?

#

and if yes have yall considered moving

spark tiger
hoary sluice
#

aw thats sad

spark tiger
#

i think the easiest way is by getting accepted into an abroad school

#

i mean yeah you’ll get a student visa not like some uhhh idk The Cool Visa but that way you’ll have easier chances of successfully fully moving to that country i think

hoary sluice
#

back in 2022 basically all kazakh payment services were joined with russia so they got sanctioned too and we had to find scammy looking ones to pay

hoary sluice
spark tiger
spark tiger
hoary sluice
#

in 2022 our services were all russian

#

so they got sanctioned

#

it slowly got fixed

spark tiger
hoary sluice
spark tiger
#

though i’m choosing 11 grades so im ending hs in 2.5 years

hoary sluice
#

a few years ago he was deciding whether he should go to almaty for high school or stay in atyrau now he might come to austria but i think he did or wanted to finish after 9th grade

#

austria has the same thing

#

you have to be in school for min. 9 years, if you repeat a grade it still counts

#

so theres a school called the polytechnikum which is just 1 year after middle school to get u to 9 years

#

u do that to then do an apprenticeship usually

spark tiger
#

i should probably already start preparing for applying to a uni

hoary sluice
#

come to austria

#

we have subsidized housing

spark tiger
dense sand
spark tiger
#

i want to take an english test, i think it’ll be useful basically anywhere

hoary sluice
#

500€ rent for 5 bedroom apartment 😋

hoary sluice
spark tiger
hoary sluice
#

ielts bad idea

#

is valid for like a year

#

there are cambridge exam centers in almaty

#

4 of them

#

cambridge is free

spark tiger
hoary sluice
#

i got 204/210 (c2)

spark tiger
hoary sluice
#

my friend who speaks like no english got c1

spark tiger
hoary sluice
#

another friend who randomly guessed got b2

spark tiger
#

ts is weird

hoary sluice
#

all of them do

dense sand
hoary sluice
dense sand
#

ah

#

yea

hoary sluice
#

its 220€

dense sand
#

i decided not to do it cuz im tight on cash

hoary sluice
#

my parents paid 😎

dense sand
#

yea i could've asked them, but i feel like they're doing already too much

hoary sluice
#

nah they can afford it

spark tiger
hoary sluice
#

do unis accept it

spark tiger
# hoary sluice do unis accept it

well that’s kinda the issue i’m facing. like duolingo states like billion unis there but i went for example to mit admissions site and it doesn’t seem to accept it but iunno

hoary sluice
#

barely any do in austria it seems to be mostly usa and australia

spark tiger
hoary sluice
#

it states like 79 million in the us and like 4 in the eu

hoary sluice
#

for all public unis

#

which are most unis

spark tiger
hoary sluice
#

there are a lot that charge a few hundred per semester additionally

#

specifically "fh"s

hoary sluice
#

in austria

#

rent is like 400 euro

#

food is like 200

hoary sluice
#

ik a lot of people that dont speak german here

#

its like pulling bread out of the bread machine and putting stuff on the shelves

#

so ur never gonna be homeless

#

and u have a pretty good portfolio so u can just get a tech job

hoary sluice
#

my friend got 3500/month at like a warehouse/construction thing at 18

#

no qualifications

#

now he does catering which is event based and pays a lot too

#

(waiter)

spark tiger
hoary sluice
#

companies usually want either a bachelors degree or full time or in office

#

almost never is it remote no bsc part time

spark tiger
#

i can be a russian-english translator!

#

this sounds like an easy job

#

and i even have some proof of my level

hoary sluice
#

tried that too

#

lmao

spark tiger
#

argh

hoary sluice
#

you should try tho

#

its rarer

#

like the job is rarer

#

theres prob more demand

spark tiger
#

idk where i should search

hoary sluice
#

actually no theres a lot more devs

spark tiger
#

i mean like the sites

hoary sluice
#

than translators

hoary sluice
#

that stuff doesnt work

spark tiger
#

and no visa

ornate quiver
#

o

spark tiger
#

and accepts russian cards (I HOPE)

spark tiger
#

@hoary sluice why am i getting this video recommended now isob

hoary sluice
spark tiger
#

scary

valid jetty
#

i could be making 8 million yen in japan but here i am studying physics smh

ionic lake
#

I'll send you to japan

valid jetty
ionic lake
#

I'll send you to japan to mine coal

#

the children yearn for the mines

hoary sluice
valid jetty
#

what

#

its yearly income

#

in japan the average wage is around 6 million yen

#

and apparently that estimate of 8 million for me is lowballing

austere anchor
austere anchor
valid jetty
#

oh

#

its 80k??

#

it says 52k

austere anchor
#

oh right I forgot the jp economy tanked as hell

#

L

#

probably 80k cad or aud tbh

valid jetty
#

why is it so perfect

#

exactly 42,600

royal nymph
#

should be exactly 42069 Pound

ionic lake
#

how about i pound you

#

of the British sterling

ornate quiver
#

what 😭

granite geyser
snow grail
#

nino can you explode

dense sand
#

is what jvm refers to as a stack, actually stored on heap internally?

#

cuz jvm seems to have per thread stack containing multiple operand stacks

fleet cedar
#

Not necessarily, jvm can jit things however it likes

#

Like any compiler it prefers keeping things in registers when possible for example

dense sand
#

well, during the actual execution of the vm, the stack is placed either in stack or heap memory

#

where else would it be?

fleet cedar
#

It's not like there is a "the" heap

#

A heap is just a region of memory managed by a specific allocator

#

I don't know whether jvm uses the os-provided stack or makes its own, but it's definitely a separate region of memory to the java heap

dense sand
#

okay, so under the hood, the stack may be allocated by malloc basically?

fleet cedar
#

It might be, or it might not

#

Does it matter?

dense sand
#

i mean for the developers it doesnt

fleet cedar
#

And of course different jvms can do things different, or depending on various runtime parameters

dense sand
#

btw, which linux library for browsing/reading zip files would yall recommend

#

theres miniz

#

zlib seems too low level for my needs

dense sand
#

yes

#

C

hoary sluice
#

then idk

ornate quiver
dense sand
#

oh yea so its meant as a ds

ornate quiver
#

it probably does live on the heap though

fleet cedar
#

It's certainly allocated by something

#

But again, there is no such thing as "the" heap

#

"The heap" just means "the region of memory managed by the contextually obvious allocator"

#

Usually it means the region managed by the gc in gc'd languages and by the global allocator in non-gc languages

supple whale
#

there are mad men which reference the stack as memory with pointers

#

unhinged people

dense sand
placid cape
#

default values

hoary sluice
#

use ::default

dense sand
#

please add defer to C