#ot1-perplexing-regexing

1 messages · Page 568 of 1

tranquil orchid
full needle
#

ye thats the downside of mechanical

tranquil orchid
#

I think green is clicky as well

edgy crest
#

hmm well the key is red if i remove the keycap

#

so ig its red switches mb thonk

full needle
#

maybe its colored red just to confuse you but its actually blue switches

#

O_O

edgy crest
#

o_O

acoustic moss
#

O_o

tribal aurora
#

o_o

harsh tundra
#

red-blue colourblindness is a thing, less common than red-green, but 🤔

full needle
#

Damn good point I should have said green

tranquil orchid
#

Maybe no

tribal aurora
#

I've been working on it for a while

#

I can't get it work

#

I mean my python code

#

:/

#

ok

#

://

#

you k?

tranquil orchid
#

!warn 615784119779065878 that behaviour is not acceptable in this server

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied warning to @rough sapphire.

full needle
#

_>

tranquil orchid
#

!ban 615784119779065878 You clearly have no intention of remaining in this server

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied ban to @errant briar permanently.

tribal aurora
#

lol

#

what was up with that guy

full needle
#

pride month really brings out the crazies huh

#

🏳️‍🌈

tranquil orchid
#

I'll figure this bot out one day

full needle
#

lol

tribal aurora
#

haha

tranquil orchid
#

Why did you only clear 1 message 😢

tribal aurora
#

¯_(ツ)_/¯

#

wait joe is discord's mod??

#

no more space is left joe!

#

you better stop there @bleak lintel

full needle
#

why does this result in this name

#

wtf

tribal aurora
#

lol

full needle
#

i hate u discord

latent scaffold
#

or... iirc

tribal aurora
#

oh

latent scaffold
#

flag + zwj + rainbow

#

\🏳️‍🌈

full needle
#

its an exam you take

#

and you get the badge

#

lol

latent scaffold
#

oh my

acoustic moss
#

bruh what fr?

latent scaffold
full needle
#

lmao

latent scaffold
#

I'm too lazy to do it, honestly

#

welp. watch me do it rn

acoustic moss
#

is it mcq

full needle
#

is there a better emoji then 😦

acoustic moss
#

🥴

latent scaffold
acoustic moss
#

i find 😞 hilarious

latent scaffold
full needle
#

gib trans flag i can use 😭

latent scaffold
#

\😞

acoustic moss
#

if we're including custom emojis

#

its

latent scaffold
#

eeeh what happened to my nickname

full needle
acoustic moss
#

:goose_alert:

full needle
latent scaffold
#

yes yes but I tried escaping it

acoustic moss
latent scaffold
#

all it did was add a backslash hahaha

inland wolf
#

damn

#

chill bro

#

is something wrong

full needle
#

yes~!

#

also we are chill, u chill?

#

💜

inland wolf
#

it was a guy spamming fuck repeaedly

#

pbanned, he was

full needle
#

oh, i did not notice

tardy rain
#

Bruh rainbows on everyone's name is giving me a headache

#

Idk why, Im having a hard time focusing on the lines

#

Not as bad as the cats tho

harsh tundra
# full needle

because apparently fonts for names and channel names don't like compound unicode stuff and old unicode that has also emoji rendition (so flag, heart, and many others)

#

like here, first one could be emoji but isn't

#

☢️ vs \☢️

#

lol, even unicode (non-discord) rendition in message is colourful for me...

full needle
#

😭

#

discord hates us

#

down with discord

harsh tundra
#

as you can see in my own username, I wanted a flag as well

full needle
#

time to complain on twitter

acoustic moss
#

let us plot the downfall of discord in discord

full needle
#

we can do it

acoustic moss
#

yes

full needle
#

we can cancel discord!

#

!!!

rough sapphire
#

Sow discord in discord

acoustic moss
#

yes

full needle
#

were gonna need the full army

#

call in all the reinforcements

#

we will MAKE them fix our gay emojis

acoustic moss
#

time to bring out my 1000 alts

rough sapphire
#

Me too

inland wolf
#

yes

quick ledge
dull gazelle
#

you've got my axe

quick ledge
#

and my saber

brazen ingot
#

@quick ledge nice pfp yodachai

quick ledge
#

lol

brazen ingot
#

noice, I enlarged it too for you

#

@quick ledge You in the hactoboer server too?

quick ledge
#

yes

brazen ingot
#

ah ok

quick ledge
brazen ingot
#

oof, you have nitro but you can't set yodachai gif pfp pensivebounce

brazen ingot
latent scaffold
#

welp

inland wolf
#

perhaps

latent scaffold
#

I've found out that Discord doesn't let you have ZWJ in your nickname

#

that'd be why emoji split in two

#


^ this is a ZWJ (Zero Width Joiner) which you use to "combine" emoji

#

it just... doesn't work in nicknames

deep stratus
#

oh, weird

fringe leaf
#

4y - 4y^2 = 32 whats y? pls help

acoustic moss
#

there is no real solution

low chasm
#

ok

#

so im contemplating whether to install arch again

opaque bronze
#

thats something to consider

low chasm
#

I am using an arch derivative

opaque bronze
low chasm
#

haha

#

yes i miss that

opaque bronze
#

i use manjaro btw sounds like shit

low chasm
#

I dont use manjaro

#

fuck manjaro

opaque bronze
#

hehe

low chasm
#

im shocked you would think that

latent scaffold
#

haha

latent scaffold
#

banned

acoustic moss
#

😢

acoustic moss
#

latex

versed saffron
#

latex > everything else change my mind

latent scaffold
#

computers

versed saffron
#

wrong

opaque bronze
#

cool

#

ok now this is really cool

acoustic moss
opaque bronze
versed saffron
#

did you ever fix the latex bot?

opaque bronze
#

latex is cool

acoustic moss
#

the texit bot for quick things

acoustic moss
acoustic moss
opaque bronze
#

what if i told you

versed saffron
#

pycharm's got a latex plugin too

latent scaffold
#

love PyCharm

opaque bronze
#

i just found a elementary solution for

acoustic moss
#

😔

#

how so pro

opaque bronze
#

however, this function is so long that it wont fit in a discord message

#

so i leave it as an exercise to the reader

acoustic moss
#

😩

versed saffron
acoustic moss
#

brug

#

lol

versed saffron
#

hecked

opaque bronze
versed saffron
#

I know how to use wolfram too

opaque bronze
#

look at its definition

versed saffron
#

welp

opaque bronze
#

its defined in terms of this integral

#

there's no actual solution

latent scaffold
#

"erf"

opaque bronze
#

since it is riemann integral, you can still have a function defined as its integral

opaque bronze
latent scaffold
#

uh oh. words that don't look like words. I'm out

opaque bronze
#

im addicted to latex

#

pls send help

acoustic moss
#

lol

opaque bronze
versed saffron
#

I did all my math + physics assignments in latex last year it's hella fun

opaque bronze
#

ok mods pls dont ban

opaque bronze
versed saffron
#

right?

#

it takes a while but it looks 👌

opaque bronze
#

absolutely

#

and fbox's are beautiful

inland wolf
#

i see latex

edgy crest
#

i see boat in water

inland wolf
#

i need to learn some latex expressions

#

@acoustic moss teach me

acoustic moss
#
\left\{\overbrace{\underbrace{\left\{\overbrace{\underbrace{\left\{\overbrace{\underbrace{x}}\right\}}}\right\}}}\right\}
inland wolf
#

o

inland wolf
#

ye

young thistle
#

Hello!

inland wolf
#

hello

brazen ingot
#

@drifting sage well, i thought the same, i guess he/she is talking about savagepastaman?

brazen ingot
#

@thick musk are you?

thick musk
#

hi

#

yes

latent scaffold
#

I agree

brazen ingot
#

oh lol ,why tho?

thick musk
#

¯_(ツ)_/¯

brazen ingot
#

was he mad for somewhat?

thick musk
#

no

brazen ingot
#

then what?

drifting sage
#

That'll be a bit weird seeing somebody ragequiting discord lol

brazen ingot
#

I played coden clash with him saddd

thick musk
#

aww

brazen ingot
#

so sad

#

for it

latent scaffold
#

wow... left without saying goodbye

brazen ingot
latent scaffold
#

:'[

brazen ingot
#

helper left. Alilsadcat

thick musk
#

can't tell you why he left

latent scaffold
#

a normie... how sad

thick musk
#

but he definitely did love this community

#

lol

latent scaffold
#

uh oh. who died

brazen ingot
#

yep

brazen ingot
drifting sage
#

It's hard to become a helper without loving this community

honest pawn
#

^

latent scaffold
#

Dunno, I've been moderator in communties that I hate

brazen ingot
#

nice

latent scaffold
#

but mostly because Jesus Christ people are immature

brazen ingot
#

Phil's server ig wow

honest pawn
drifting sage
#

lmao

latent scaffold
honest pawn
#

not your office

latent scaffold
#

but also... man, must be stressful sometimes

#

not for helpers tho cause there's like 100

honest pawn
#

Yep

@Moderators 
@Moderators 
@Moderators 
latent scaffold
#

banned

brazen ingot
honest pawn
#

I swear if this pings

latent scaffold
#

I think not

brazen ingot
#

lol, lak is typing

honest pawn
#

Then py_guido 🔫

latent scaffold
#

run

acoustic moss
#

rip

brazen ingot
#

ri

acoustic moss
#

we'll miss you

brazen ingot
#

p

graceful basin
#

eh, it is not too bad, at least for me, we now have quite a few moderators as well. The really stressed people are the admins due to raids coming back

latent scaffold
acoustic moss
#

yes

latent scaffold
#

Speak for yourself!

acoustic moss
#

wow rude

latent scaffold
#

Meh, sometimes I enjoy helping out in this server

#

but I get burned out really quickly

graceful basin
#

yeah, there are raids very often these days

honest pawn
#

What is a raid?

rough sapphire
graceful basin
#

discord needs to step their game up

latent scaffold
#

but that's besides my point

latent scaffold
#

like sometimes I pop into #python-discussion and like some people ask some of the uh... strangest questions

#

Like sometimes I gotta sit there kinda like yert

rough sapphire
brazen ingot
low chasm
#

I want to switch back to arch

brazen ingot
#

memories

low chasm
#

archcraft is getting boring

brazen ingot
honest pawn
rough sapphire
brazen ingot
twin charm
#

hi

latent scaffold
#

I remember getting that ping

twin charm
#

savage pasta left?

acoustic moss
low chasm
honest pawn
#

yes

low chasm
latent scaffold
twin charm
#

hi

low chasm
honest pawn
#

@eVErYone

low chasm
#

omg double ban

twin charm
brazen ingot
twin charm
#

what happened to them did they say something?

low chasm
#

they didn't leave

rough sapphire
#

whose savagepasta?

latent scaffold
low chasm
#

they're just not active anymore

brazen ingot
#

@young shoal this guy

low chasm
twin charm
thick musk
#

he's technically still here but he uninstalled discord so like... not actually

rough sapphire
#

oh

honest pawn
#

vip

brazen ingot
#

well, no problem ankith

thick musk
brazen ingot
#

vvip

low chasm
#

hm

#

did they say why?

latent scaffold
#

public static void main has finally returned void

rough sapphire
#

wait wasn't he/she helper?

twin charm
#

life issues fren

latent scaffold
#

yes

brazen ingot
low chasm
latent scaffold
#

he was he?

rough sapphire
#

oh he was good algo guy

thick musk
#

mmhm

twin charm
#

busy with exams or smth? deleting the app is good not to get distracted

low chasm
#

mhm

brazen ingot
#

job offerings LOL

rough sapphire
twin charm
acoustic moss
#

imagine buying nitro

brazen ingot
#

mehh

#

I already did

twin charm
#

ok I imagined, then?

brazen ingot
#

meh

low chasm
#

.topic

median domeBOT
#
**What is your favourite place that you have visited?**

Suggest more topics here!

acoustic moss
low chasm
#

i like dubai

rough sapphire
rough sapphire
brazen ingot
#

what's that

brazen ingot
rough sapphire
latent scaffold
latent scaffold
#

but eh it's not much of our business

low chasm
#

your not bot?

brazen ingot
#

no

rough sapphire
low chasm
#

oh shit

brazen ingot
#

ok, bot here @Moderators

quick ledge
#

kinda is not good enough mate

rough sapphire
#

vivek you were yoda this is wrong

brazen ingot
#

well, lol why does a mod type when someone do @Moderator

#

?

quick ledge
#

well

#

you pinged us

acoustic moss
#

it pings them

brazen ingot
#

oh shhot

#

ban me

rough sapphire
#

also change dp back to yoda

#

then ban him

brazen ingot
#

oops woops no

drifting sage
#

Wait what

acoustic moss
#

yes

brazen ingot
#

nothing

drifting sage
#

Doing @moder... will ping the mods even though it's in `` ?

quick ledge
#

no lol

acoustic moss
#

naturally

brazen ingot
#

lol they're joking

drifting sage
#

I got scared for a second

brazen ingot
#

ok wait 3 sec

rough sapphire
#

it doesn't ping i just checked in my server

quick ledge
#

(got'em)

acoustic moss
#

i mean you could still configure the bot

brazen ingot
#

well, you guys are zz_psyducksweating

acoustic moss
#

to automatically ping mods even if its in codeblcoks

latent scaffold
#

lol

rough sapphire
brazen ingot
quick ledge
#

baby yoda

brazen ingot
#

this guy

quick ledge
#

!U

royal lakeBOT
#
Vivek#2961
User information

Created: 2 years, 2 months and 3 days ago
Profile: @quick ledge
ID: 562601836591185930

Member information

Joined: 11 months, 8 days and 37 minutes ago
Roles: <@&518565788744024082>, <@&463658397560995840>, <@&764802720779337729>, <@&267630620367257601>, <@&831776746206265384>, <@&267629731250176001>

Infractions

Total: 24
Active: 0

acoustic moss
#

.randomcase baby yoda isn't the actual yoda

median domeBOT
#

BaBY yodA isn'T THE ACTuaL YoDA

latent scaffold
#

Imagine if you could ping roles from embeds

quick ledge
#

Grogu

rough sapphire
#

okay you're acceptable alright

brazen ingot
#

nice editing vivek

latent scaffold
#

Grohy yes

tardy rain
#

24 infractions bad

rough sapphire
latent scaffold
#

smh I wonder if I have infractions

tranquil orchid
#

It's inevitable

acoustic moss
#

jack dewit

latent scaffold
#

too lazy to find #bot-commands

brazen ingot
#

Wait, who has the most messages in this server?

acoustic moss
#

gdude probably

latent scaffold
#

hehehe no infractions

#

who's gdude

quick ledge
#

Bisk perhaps?

acoustic moss
#

ex-owner

tranquil orchid
#

Joe's got one or two

acoustic moss
#

gdude has like 300k+ in just public channels

rough sapphire
#

whats advent of code?

edgy crest
quick ledge
latent scaffold
#

AoC got far too complicated for me

#

well. last year's

quick ledge
#

prashant

brazen ingot
#

lol

rough sapphire
#

aight thanks. ima check.

latent scaffold
#

the damned plug one

acoustic moss
latent scaffold
#

the one with the power cubes

#

idk what they're called... the pluggy innies

graceful basin
#

I got bored of AOC

brazen ingot
latent scaffold
#

from:<person>

#

in search

acoustic moss
brazen ingot
graceful basin
#

I wonder what language I should do the next AOC in

latent scaffold
#

then you can use ID

acoustic moss
#

brainfuck

graceful basin
#

no

acoustic moss
#

lol

brazen ingot
#

calm down

acoustic moss
#

?

latent scaffold
graceful basin
#

last time I did xsl, so maybe COBOL or ADA next

#

or use a real language like prolog

latent scaffold
#

interesting

graceful basin
#

oh wait, this is a thing I can do in shen

#

but the lack of standard library will make that not exactly fun

latent scaffold
#

or even funner

graceful basin
#

yeah, I did implement most algos from scratch in xsl too

#

I may try shen then

latent scaffold
#

What even is shen

#

it sounds Chinese

graceful basin
#

scheme with more syntax, prolog, the most powerful type system and absolutely no tooling

vapid nymph
#

Who was gdude?

#

I'm in a server with them, just curious who they were here

latent scaffold
#

former owner apparently

vapid nymph
#

Ah

rough sapphire
#

oh i just did first problem in chrome console

#

seems fun

#

we don't need to store for AOC right?

tardy rain
#

Nop

rough sapphire
#

aight thanks

latent scaffold
#

so... do y'all think it'd be possible to pick up a package early once it's arrived at a local facility

#

Like, UPS

wraith hound
low chasm
#

ooh yes

#

thank

twin charm
acoustic moss
#

were you trying to lick your elbow for the last 4 hours

acoustic moss
#

seeing as that you did not deny my proposition, i am now convinced that i was right

near bolt
#
#include <stdio.h>
#include <math.h>

int digit_at(long long n, int p);
int length(long long y);
int main(void)
{
    long long x = 4003600000000014;
    int size = 16;
    int sum = 0;
    for (int i = 2; i <= size; i = i + 2)
    {
        sum = sum + (2 * digit_at(x, i));
    }

    for (int j = 1; j <= size; j = j + 2)
    {
        sum = sum + (digit_at(x, j));
    }
    printf("sum is %i", sum);
}

int digit_at(long long n, int p)
{
    int size = length(n);
    if (p == size)
    {
        long long d = pow(10, p-1);
        return round(n/d);
    }
    else
    {
        long long c = pow(10, p);
        return round((n % (c)) / (c / 10));
    }
}

int length(long long y)
{
    int l = 0;
    do
    {
        y = y/10;
        l++;
    }
    while (l > 1);
    return l;
}```
#

over here, i tried to find the sum of 2 x odd placed digits + even placed digits

#

but the output i get is -2147483623

#

where did i go wrong

#

uhh how shd i change to solve this

acoustic moss
#

sum of digits shouldn't overflow

#

all the same

#

maybe just

#

replace every int with long

#

see if that fixes it

#

lol

near bolt
#

sum is 4003600000000039

acoustic moss
#

interesting

#

that looks very close to the original number

#

what is the correct answer

near bolt
#

i think its the program problem tho

#

i tried wif a smaller number

#

its still wrong

#

im checking again

#

i think i found it

rough sapphire
#

thats c right? good ol' days

#

i hated the moment when we can't return array in c.

#

we need to return its pointer

rough sapphire
near bolt
#
#include <stdio.h>
int length(int y);
int main(void)
{
    int x = 1234;
    int a = length(x);
    printf("length is %i", a);
}


int length(int y)
{
    int l = 0;
    do
    {
        y = y/10;
        l++;
    }
    while (l > 1);
    return l;
}```
#

did i do sth wrong with this length program (to find how many digits in a number)

#

it gives 1 when it shd be 4

inland wolf
#

i think u mean to make the while condition y > 1

#

@near bolt

#

because l is never going to be greater than 1 in that code

rough sapphire
#
int length(int y)
{
    int l = 0;
    do
    {
        y = y/10;
        l++;
    }
    while (y != 0);
    return l;
}
inland wolf
#

y > 1 *

rough sapphire
#

its fine its c.

inland wolf
#

brug

rough sapphire
#

so y/10 is converted in int

inland wolf
#

oh yea

#

lol

#

true

inland wolf
#

ye

near bolt
#

right

inland wolf
#

no ?

rough sapphire
#

both are right.

inland wolf
#

yes

rough sapphire
#

no wait. >0

near bolt
#

cuz y>1 it gives 3

inland wolf
#

y > 0

#

ye

#

wait

near bolt
#

but isnt it wont reach 0

#

its >0.1?

rough sapphire
#

!= 0 is good

#

1/10 = 0

inland wolf
#

in c

rough sapphire
#

yeah ofc dude

inland wolf
#

when its an int

#

yes

#

just in case

#

some guy comes and replies

rough sapphire
#

alright 😂

inland wolf
#

"LOL HAHA U SUCK AT MATH "

rough sapphire
#

i'll reply ok

inland wolf
#

ok

#

good

#

y > 1 should work tho right

near bolt
#

for some reason

inland wolf
#

hm

#

1234/10/10/10/10 = 0.1234

#

which is not > 1

#

so it should work

near bolt
#
{
    int l = 0;
    do
    {
        y = y/10;
        l++;
    }
    while (y > 0.1);
    return l;
}```
#

isit allowed to have an int in front

#

and long long as parameter

inland wolf
#

i think so

#

oh wait

#

i think u need to start l at 1

rough sapphire
inland wolf
#

or that

#

int l = 1; and y > 1

#

also works

#

because i was counting from 1

#

thats why i thought it was right

rough sapphire
#

just for the sake of more strange code

    int n = 1231;
    int c = 1;
    while((n=n/10) != 0)
       c++;
    printf("%d", c);

this seems good to me

inland wolf
#

lol

gritty zinc
#

(n=n/10)
yikes

edgy crest
#

😔

rough sapphire
acoustic moss
#

imagine needing :=

#

when = can be :=

#

actually

gritty zinc
#

imagine being able to do cursed stuff like that.

7 |     while((n=n/10) != 0){
  |                       ^ expected `()`, found integer
acoustic moss
#

I would kind of like it if in some language you used := for declaring vars

inland wolf
#

for (int i = 0; n > 1; n = n/10) {} ?

acoustic moss
#

and = for changing

edgy crest
#

go

inland wolf
#

wait that wont work

#

lmao

gritty zinc
rough sapphire
#

also more cursed code

    int n = 1231122;
    int c = 1;
    while((n/=10) != 0 ? c++ : 0);
    printf("%d", c);
rough sapphire
gritty zinc
#

like I said, imagine being allowed to do stuff like this 😛

edgy crest
#

now compliment my memori

rough sapphire
edgy crest
rough sapphire
#

.bm 463035241142026251-850803286332276807

edgy crest
#

the which lang was it

rough sapphire
#

its c

edgy crest
#

huh

#

c doesnt ave :=

rough sapphire
#

yeah

#

R be like bruh i need <-

inland wolf
#

imagine having to write var and the type

#

OMG DEJA VU

#

wtf

#

why do i feel like ive been here before

#

wtf

#

that was so weird

#

ok im just shittexting now

#

continue talking guys

rough sapphire
#

its 0004. sleep mate you need it.

inland wolf
#

no

#

its 10:34

edgy crest
#

its 00 04 for me and i think i need sleep

#

i feel bad i didnt get to implment ant coloyn optimisation today sad

#

moslty unproductive day

#

and my vacations are eding soon and i dont have much time

inland wolf
#

and make some groups of ants strong

#

and watch the colonialism

edgy crest
#

bruh

#

i need to get the pheromone part working

#

ugh my n key is acting weird

inland wolf
#

lol

edgy crest
#

10% chance it doesnt get typed

#

even after pressig

#

:/

inland wolf
#

lmao

near bolt
#
int length(long long y);
int digit_at(long long n, int p);
int main(void)
{
   long long a = 4003600000000014;
   
    //Length of number
   int size = 16;
   
   int sum = 0;
   for (int i = 2; i <= size; i = i + 2)
   {
       sum = sum + (2 * digit_at(a, i));
       
   }
   //check one
   printf("sum is %i", sum);
   
   for (int j = 1; j <= size; j = j + 2)
   {
       sum = sum + (digit_at(a, j));
       
   }
   
   //check two
   printf("sum is %i", sum);
}
#

i checked the int length(long long y); int digit_at(long long n, int p); functions they shd be ok

#

but for this, when i do check one for the 2xsum of odd place number it shd be 13

#

but the output is 22

#

and for check two, when i ad 2 x sum of odd digit + sum of even digit, it shd be 13+7

#

but the output is 29

rough sapphire
#

use printf inside for loop to see where you're going wrong

#

@near bolt why are you using %i most of all

#

its int. its %d

near bolt
vapid nymph
#

Eh. Use logger anyways lol

near bolt
#

@inland wolf @rough sapphire @west zephyr @acoustic moss yea now its now working well, thanks alot for ur help 🙏

inland wolf
#

np

near bolt
#

what does floating point error mean?

#

how do i debug it

vapid nymph
latent scaffold
#

yes

tardy rain
#

No

rough sapphire
#

maybe mario is her brother... so.... mariosis? pithink

#

joking... 👀

#

anyway... what does smh mean? o.o

tardy rain
#

Shaking my head

rough sapphire
#

lol, would never guess it... thx!

versed saffron
#

so I had a look at pychess cause I'm making chess and it's a lot more complex than I thought it'd be so I just wanted to see what they did
and like idk if their code is stupidly complicated because they've got so many variants + extra stuff
but I now don't know if it's that or im just a massive idiot and missing something

distant hazel
#

@scenic ember hey wait I'm curious what was the fix?

#

haha

scenic ember
#
    dfmt = dates.DateFormatter('%Y') #Line: 28
    dfmt1 = dates.DateFormatter('%Y') #Line: 29 < HERE IS THE ERROR from '%y' -to> '%Y' fixed it 
distant hazel
#

ooh nice wigglecursedgoose

#

makes sense since for a two-digit year 1965 would be the same as 1865 I suppose

tranquil orchid
#

@rain rampart I'm still pretty new to it so I'm not super familiar with its current uses. But it has so much potential for things such as GUI's and software that will be distributed. It's a very fast, very powerful language.

rain rampart
#

Also why r we talking here?

tranquil orchid
rain rampart
#

Oh okay

low chasm
#

These two pages are great

rain rampart
tranquil orchid
#

In terms of the GUI you can build, you could pretty much do the same thing with Python. However, the distribution of your GUIs are going to be far easier and straightforward using Rust

low chasm
#

its like electron, but uses Rust

rain rampart
#

Okay . . . So what exactly is the main advantage here? What can it do that Python can’t?

tranquil orchid
#

One of the most major flaws in Python for me, is the distribution of Python software. A compiled language like Rust tends to solve these issues, since it just compiles to machine code that can be run on whatever you want without worrying about a heap of packaging and whatnot to try get Python code packaged for another computer

#

And Rust is speed

#

Plus lower level

rain rampart
#

um any examples for what that means?

tranquil orchid
#

Which part

rain rampart
#

Like what is faster

low chasm
#

Rust is much faster

#

Rust is a compiled language, so it generates native machine code

tranquil orchid
#

Python is a relatively slow language, Rust is speed

rain rampart
#

And other than the speed part what can I do that can’t be done in Python?

low chasm
#

Low level programming

rain rampart
#

What’s that mean?

gritty zinc
#

Rust is a compiled language. It mostly competes with C++. So, like, all low-level and performance-sensitive stuff you need to do - games, graphics...

rain rampart
#

Like noob-programming?

tranquil orchid
#

Lower level means 'closer to the hardware'

low chasm
tranquil orchid
#

As in, you have more intricate control over what your code is actually doing

rain rampart
low chasm
#

Rust is low level, so it can interface with the systems resources more directly, while in python, all memory management is done for you. Its one of the reasons you can't write an OS in python

rain rampart
#

I can write an OS in Rust??

tranquil orchid
#

Yep

low chasm
rain rampart
#

I’ve always wanted to do that

tranquil orchid
#

Well

low chasm
#

I wrote a kernel a few months ago in Rust

rain rampart
#

Is it realistic tho?

low chasm
#

Sure

rain rampart
#

What’s a kernel

#

Also just to be clear, OS means operating-system, right?

low chasm
#

yep

tranquil orchid
#

Creating a usable OS from scratch, in any language, is no small task

low chasm
#

yeah

rain rampart
#

Yeah okay

#

So what control do I have over the code that I don’t have in Python?

tranquil orchid
#

But anyway, Rust is just a very nice change from Python. You get to see a side of programming you wouldn't have seen yet

low chasm
low chasm
rain rampart
#

What’s that mean

low chasm
#

In rust, you can directly access and manipulate the systems resources, while in python, memory management is done for you by GC

#

The one bad thing about rust are its compile times

rain rampart
#

yeah, what’s compile mean?

low chasm
#

since Rust does a lot of optimizations, as well as the fact that it has an LLVM backend, it gets pretty slow

tranquil orchid
#

It's converting the Rust code into native machine code

#

With a lot of optimisations and whatnot

#

To make it super, super fast

rain rampart
#

Does that mean I don’t instantly get to see the output of my code like in Python?

tranquil orchid
#

And efficient

low chasm
rain rampart
#

Oh, usually how long does it take?

low chasm
#

Depends on the project

tranquil orchid
#

@rain rampart Though keep in mind as you're starting out that won't be an issue

#

Like I was doing some small random things yesterday

low chasm
#

Yeah, small projects are pretty quick to compile

tranquil orchid
#

Compiling takes like 0.2 seconds

rain rampart
#

Oh okay then

tranquil orchid
#

So it's really no different to an interpreted language to begin

rain rampart
#

Do they ever take minutes?

low chasm
#

I've been writing a language with an LLVM backend, and that takes a while to compile

low chasm
tranquil orchid
#

@rain rampart For sure, when things start to get serious

low chasm
#

It gets very annoying

#

But theres a thing called cranelift thats in development

#

its an alternative compilation backend for Rust that can help with faster debug builds

rain rampart
#

Can u gimme an example of a project that you’ve done in Rust that can kinda show me what Rust can do that Python isn’t as good at?

vapid nymph
#

AHHHHHHHHHH WHY IS THIS RUST

#

okay I'm fine, I'm fine, I'm fine.

low chasm
low chasm
#

I wrote a kernel in Rust

#

You can't do that in python

rain rampart
#

Other than that?

#

Cuz idk what a kernel is really

vapid nymph
gritty zinc
#

(for context, a lot of compiled languages are plagued by long compile times, it's not just a Rust thing - C++ is particular is also notorious for this.)

tranquil orchid
#

You could write a program, hit compile, send it to a friend, and they can run it. With no extra work

#

Unlike Python

#

Where that can be a nightmare

low chasm
rain rampart
#

How old r u @low chasm :p

vapid nymph
#

damn

vapid nymph
#

he's 15 iirc

#

oh shit

low chasm
#

14 lol

rain rampart
#

No way

low chasm
#

We have plenty of young people here

#

oop gtg, bye

rain rampart
#

you seem mature and like a veteran at coding

#

Oh okay

tranquil orchid
#

The majority of people here are high school and uni students

rain rampart
#

I’m 14 and suck

#

Oh I didn’t know that lol

tranquil orchid
#

the server owner is 12 years old

rain rampart
#

Haha no

#

Wait really?

#

no no

vapid nymph
rain rampart
#

No wag

tranquil orchid
#

That's a running joke no, but he is young

vapid nymph
#

he's 17 its not private info

rain rampart
#

Like 21 right?

tranquil orchid
#

Joe's 18 I believe

#

Maybe 17

vapid nymph
#

nope 17

rain rampart
#

Haha wait what

#

That’s unbelievable

eternal wing
#

Joe is 12 in Python years

low chasm
#

oop im back

tranquil orchid
#

Yeah he's been programming since he was 6 or something

rain rampart
#

Hi

vapid nymph
low chasm
#

haha

tranquil orchid
#

Which pretty much just makes me realise that I spent my childhood doing nothing

vapid nymph
#

you have his ages all messed up

rain rampart
#

@low chasm how did u get good as u are

vapid nymph
#

I have all of his ages remembered

rain rampart
#

I’m 14 and not that good

vapid nymph
#

quick ask me a question about joe

gritty zinc
# rain rampart Can u gimme an example of a project that you’ve done in Rust that can kinda show...

well, I recently wrote a genetic-algorithm-using bot AI for a codingame task lately. It maintains a genepool of solutions, calculates the outcomes of running all of them, and breeds and mutates them together to get better solutions. I'm able to get roughly 16 thousand generations per second of 20 solutions of 30 steps each, meaning I simulate roughly 10 million simulator steps per second. In Python, all of this would be 10-100 times slower.

vapid nymph
#

that sounds really weird, don't do it

tranquil orchid
#

What's Joe's PO box

#

What's in Joe's PO box 👀

vapid nymph
#

9168 London Dr

low chasm
#

I wouldn't consider myself that great, I still have a decent bit of concepts to do, and I've admittedly started skirting stuff

rain rampart
vapid nymph
rain rampart
tranquil orchid
#

Just keep programming

rain rampart
#

Yeah I am

rain rampart
#

Am I pinging too much?

#

also r u guys in UK?

vapid nymph
#

I'm not

tranquil orchid
#

nope

rain rampart
#

Oh okay

#

I’m not either

rich moon
#

12 yr old on discord... insta ban

vapid nymph
gritty zinc
rich moon
#

bad joe

vapid nymph
#

yeah this server doesn't fucking care if we fucking swear, just do it in fucking moderation and don't put that fucking shit all over your fucking message

#

you get the point, we're allowed to swear here 😄

rain rampart
vapid nymph
#

yeah, swearing is fucking nice

rain rampart
#

Not really

#

I try not to

gritty zinc
vapid nymph
#

the problem lies more in that the most common swear is "fuck"

#

so like, there's no diversity in swearing

rain rampart
#

Very nice

#

Oh okay I’ll make a new one

vapid nymph
#

aka swearing can relieve stress

rain rampart
#

Fucktard

vapid nymph
#

also Emphatic swearing

rain rampart
#

What

#

Is there a Rust official server?

acoustic moss
#

ye

rain rampart
#

If not I wanna see if aboo wants to make one with me

acoustic moss
rain rampart
#

Damn it

acoustic moss
#

no zap lesgo

gritty zinc
rain rampart
#

Why r there two

topaz aurora
#

The latter is community-run

acoustic moss
#

one is official official and one is inofficial official

low chasm
rain rampart
#

Oh hi ur back

vapid nymph
#

the second one is better

low chasm
#

yes

gritty zinc
#

currently the problem is that it shows best results when simulating 20 steps in advance, and that's not enough for really nice curves; it's currently a bit shortsighted. I need to somehow make it faster-converging when looking 30-40 steps into the future, and I'll be able to raise in rating

low chasm
#

I prefer the second one

#

Rust was the most loved language according to stack overflow survey

rain rampart
#

Yeah more active apparently

vapid nymph
#

the first one has empty channels still lmao

gritty zinc
low chasm
rain rampart
#

For real??

vapid nymph
#

there's also this server for python stuff btw

low chasm
tranquil orchid
#

It is very good

vapid nymph
low chasm
vapid nymph
low chasm
#

I learned a lot of the concepts I know through projects

rain rampart
low chasm
#

oop gtg, bye yall

rain rampart
vapid nymph
#

mhm lol

gritty zinc
#

yeah, it's good to learn basics through practice tasks, but you can't learn anything more than basics without suffering by doing your own projects

#

a lot of suffering went into this AI

vapid nymph
#

that invite expires in 30 minutes btw

acoustic moss
vapid nymph
acoustic moss
#

oh so there is no python server at all?

#

so sad

rain rampart
# low chasm oop gtg, bye yall

Again? Alright then, cya . . . Also when u come back, can u answer two questions? One, where did u learn Python(like which resources would u recommend). And two, did u really just learn rust with a book? And did u really learn Python with just docs? Like kinda no way.

vapid nymph
#

welp imma delete that invite lol

rain rampart
#

why

gritty zinc
#

Rust book is a very nice source. Then you do practice tasks on something like codewars/exercism, then you know the basics and can do projects

tranquil orchid
#

Oh I should do that actually

rain rampart
#

Perhaps

tranquil orchid
#

I've been meaning to do programming challenges

#

Guess it's time to do that with Rust

gritty zinc
#

that's how it is for most languages, if they have a source as good as the book. If they don't, you just look at the docs

fallow warren
#

😮

rich moon
#

ive been trying rust with aoc

rain rampart
#

Also I wanna ask, if u wanna work at google, do u have to be an expert?

rich moon
#

but im stuck on day 19

rain rampart
#

I’m 14 btw so I have tons of time to prepare

tranquil orchid
#

Can't say I'm familiar with Google's entry requirements, chances are they're listed somewhere

rain rampart
#

Oh okay, is there anyone who works at google in this server :p ?

edgy crest
#

i dont think rust is required for jobs is it

tranquil orchid
#

For some jobs it would be

edgy crest
#

i c

tranquil orchid
#

Rust is growing very popular in industry

edgy crest
#

true

gritty zinc
#

I found codingame stuff very nice, including other things, for being a perfect fit for Rust. Their Optimization and Bot Programming tasks require you to find good solutions in realtime. This means you really really do need every scrap of performance, and so compiled languages are an amazing fir for them

vapid nymph
gritty zinc
#

normal puzzles, there usually isn't any reason to do in a compiled language - a good algorithm is required, not good language performance

vapid nymph
#

200k people here, and 135k roughly work for google

gritty zinc
#

lol

vapid nymph
#

HOLY FUCK THAT JUST PUT THE SERVER SIZE IN PERSPECTIVE

vapid nymph
#

more people are in this server, than work for google

gritty zinc
#

Google probably has less bots, though

vapid nymph
#

I need to verify that

#

yeah, seems like 135k

edgy crest
vapid nymph
#

lmao

gritty zinc
#

obviously

acoustic moss
#

maybe they do

edgy crest
#

so do i

acoustic moss
#

nice going

vapid nymph
rich moon
#

everybody at google eh

vapid nymph
rain rampart
#

Oh photos are allowed here

vapid nymph
#

yes

#

they are lol

#

breast cancer awareness vsc insiders

tranquil orchid
#

I like that pink

little wolf
vapid nymph
#

i'll tell the person who loves that pink lmao

little wolf
#

its one of the if best docs i have seen

rich moon
vapid nymph
#

is best

#

i agree

#

@tranquil orchid this image is great too

tranquil orchid
#

That's nice

vapid nymph
#

even tho the file is literally named vsc_vomit.png i agree

#

i should actually make some normal vsc ones

#

but the insiders logo is better

#

because of the nice gap lol

gritty zinc
#

nice brass color

tranquil orchid
#

discord vsc

inland wolf
#

loo

vapid nymph
rain rampart
#

Oh shit

#

I was talking in one of the other off-topic channels and just thought that everyone had left

vapid nymph
#

that's a serious question since I don't know how to colorize the different parts

tranquil orchid
#

I just opened the image and changed the light levels

vapid nymph
#

i-

vapid nymph
#

you mean you didn't even use the color?!

tranquil orchid
#

I'm on my laptop atm, so I just opened it in preview and moved some sliders around

vapid nymph
#

like, just literally a line

tranquil orchid
#

Its syntax is not as friendly as Python's

#

why did that delete

little wolf
#

a little harder than python, i had a little trouble with concepts like pointers an mutatability

rain rampart
#

What are pointers?

gritty zinc
#

you'll need to learn a lot of things for learning your first low-level language, that's for sure

little wolf
#

reference to the value

rain rampart
#

What’s that mean

gritty zinc
#

how memory works, what arrays are, pointers, stack vs heap...

#

the Rust book explains a lot of it though

rain rampart
#

arrays are lists, right?

gritty zinc
#

no

tranquil orchid
#

Not quite

little wolf
#

nerfed lists

#

they are more like tuples

tranquil orchid
#

Array's in Rust are fixed length, and can only contain items of the same type

gritty zinc
#

(because that's what arrays really are in memory)

#

essentially, an array is just, like

rain rampart
little wolf
#

you would probably wanna be using vectors

gritty zinc
#

if you have an object that has a size of 4 bytes, than an array of 100 such objects is just a 400-byte area in memory

tranquil orchid
gritty zinc
#

and you treat each 4 bytes as an object. That's it. That's all arrays are.

tranquil orchid
#

You can't change its length after its created

little wolf
#
[1, 2, 3, 4]
## length of the above list is 4
gritty zinc
#

python lists are basically Vec<&PyObject> - a dynamic array, each element of which is a reference to an arbitrary Python object

rain rampart
#

So it stays at 3 items

tranquil orchid
#

Yes, they're like tuples. But can be mutable

#

(I think)

gritty zinc
#

if you're lucky, it's unallocated and you can claim it, and so resize the array inplace to be bigger

tranquil orchid
#

@rain rampart You'll also be introduced to static typing when you learn Rust

tranquil orchid
#

Are you familiar with type hints in python?

rain rampart
#

No . . .

gritty zinc
tranquil orchid
#

Ok, basically you specify the type of your variables and things like the type a function parameter should be. And that gets enforced