#ot1-perplexing-regexing

1 messages · Page 491 of 1

rough sapphire
#

can someone help ?

young shoal
#

i do not know haskell

#

but probably the easiest way to see if it is correct is to see if it works

rough sapphire
#

hey

low chasm
#

Heyy

#

I just took the entry exam for AOL

#

It was stressful

rough sapphire
#

oh

#

dam

low chasm
#

U know what it is?

#

I dunno if u do since u may be in another country

rough sapphire
#

Nope

low chasm
#

Oh, academies of loudoun

rough sapphire
#

I'm in the USA

low chasm
#

Same

rough sapphire
#

oh

low chasm
#

Im in loudoun county, virginia

rough sapphire
#

No need to be that specific

low chasm
#

Its a high school for smart people

#

@rough sapphire Its pretty big, i doubt you'll find me

#

It stretches like 2 hours apart

rough sapphire
#

ohhhhhh

low chasm
#

lol

rough sapphire
#

I didn't know you needed to take an entry exam for High School (obviously for colleges though_

low chasm
#

No, its not a normal high school, you go there two days a week

#

half of your classes are there

#

There are two courses

#

Academies of engineering and technology

rough sapphire
#

Wait if you're in Loudoun then you must be close to DC

low chasm
#

and academies of science

#

Yeah i am, its half and hour from where I live

#

I applied for academies of engineering and technology

#

which is basically a course which teaches you about coding

rough sapphire
#

Omg Loudoun is bigger than DC

low chasm
#

all the math is coding related

rough sapphire
#

eh

#

it is a county after all

low chasm
#

all the classes are coding related and whatnot

rough sapphire
#

oh

#

ok

low chasm
#

Yeah, loudoun is pretty big

#

Lol

#

Soo

rough sapphire
#

521 mi²

low chasm
#

Oh

#

Oof

#

Lol

rough sapphire
#

my county is only 500 mi²

low chasm
#

Im on the border, like near farifax and prince william

#

Cool[

#

Lets probably stop discussing our location, someone could be watching

rough sapphire
#

We can always take this to DMs

#

Lol

low chasm
#

Lol

young shoal
#

DC is 10 square miles lol

low chasm
#

Really? thats it

#

It seems to be much bigger due to the trafic

rough sapphire
#

NYC is 302.6 mi²

low chasm
#

takes like an hour to get from one side to teh other

#

I've been to nyc

#

its pretty nice

quick bay
#

dc is just supposed to be the capital it isnt supposed to have as many citisens as it does

low chasm
#

Yeah

#

Well, sort of

#

Its pretty nice place though

#

gardens and whatnot

#

Yeah SAME

rough sapphire
#

lol

low chasm
#

Well, once every year

#

except this year

#

Which adds up to 13

rough sapphire
#

I've been this year

low chasm
#

Cool

rough sapphire
#

oh you only gone 13

low chasm
#

My parents used to live in NYC

#

Yeah

rough sapphire
#

My county borders NYC

low chasm
#

Cool

rough sapphire
#

county

#

not tbc with Country

low chasm
#

Lol

#

NYC is nice, loads of sites

rough sapphire
#

i'm gonna delete the message I said about going to NYC 35-37 times so that no one knows my county

low chasm
#

I remember, I was in 5th grade, and I went to times square, and they were doing this conga line, and this dude just grabbed me and put me in the middle of the line

#

And I couldn't get out

rough sapphire
#

wth

low chasm
#

It freaked me out

#

Llol

#

They just grabbed me

#

and stuck me in the middle of their conga line

rough sapphire
#

NYC people are weird

low chasm
#

Lol yeah

#

They might've been drunk, i dunno

rough sapphire
#

Also why is NYC so dense

young shoal
#

it's a city lol

low chasm
#

Yeah lol

#

Well, yeah

#

But still dense

#

I know cities

#

they aren't that dense

rough sapphire
#

Where I am, it's like 260 times less dense

low chasm
#

Cool, you calculate that?

rough sapphire
#

no

#

I'm just exaggerating

low chasm
#

oh

#

ok

rough sapphire
#

lol

low chasm
#

lmao

#

xD

#

Xd

#

XD

#

xd

rough sapphire
#

it's 6:47, and I still haven't gone Trick-or-treating

low chasm
#

Oof, its 647 for me to

rough sapphire
#

idek if I want to go this year

low chasm
#

Well, imma be safe and not

rough sapphire
#

yea

#

COVID-19 ruins the fun

low chasm
#

Lol

rough sapphire
#

Also my birthday was literally last week (I have a late birthday in the year)

low chasm
#

Im sorta socially akward, I remember freaking out every time I talked in this server

#

Oh cool, happy (late) birthday

#

My bdays in december

rough sapphire
#

it was the 24th

low chasm
#

Oh nice

#

So not that late

rough sapphire
#

ye

winter terrace
#

i think im a programmer because my goal in life is to be as lazy as possible but still suceed

low chasm
#

Lol

winter terrace
#

basically, i want to cheat as efficiently as possible

#

but the real cheating was the friends we made along the way

#

just kidding, i have no friends

mild abyss
#

you dont need to cheat to get friends'

winter terrace
#

dont mean that

mild abyss
#

ah okiee

#

also i am not loyal between firefox and chromium xD

winter terrace
#

when i mean cheating, i just mean using apis to do school for me

mild abyss
#

i just switch whenever i want to

winter terrace
#

or not apis

#

libraries

#

yeah

#

math is boring af

mild abyss
#

thats hard to implement

#

math is boring but a necessity i guess

winter terrace
#

nope

#

the only math ive used is trig

#

and thats only because i needed to figure out inverse kinematics or whatever tf

mild abyss
#

nah when you go in-depth to programming like the inner workings i think you need math

#

ah i see

winter terrace
#

but also converting vector2s to angles

mild abyss
#

youre still in highschool?

winter terrace
#

middle

mild abyss
#

ah no wonder. i get it

winter terrace
#

only thing, none of that stuff was taught to me

#

huh

#

i think most of everything that is taught in k-12 in america can be googled

mild abyss
#

i think most of everything that is taught in k-12 in america can be googled
@winter terrace i am in a k-12 curriculum

#

because philippines

winter terrace
#

oof

mild abyss
#

ah fuck.. i knew it. haha i should not have auto timed my snapshots or it will lag and use disk space on my pc

#

still btrfs is nice 😄

mild abyss
#

git switch vs git checkout hmmm

rough sapphire
#

hey

winter terrace
#

spooky scary skeletons -

manic bloom
#

git switch vs git checkout hmmm
I always confuse the 2 for some reason.

floral viper
#

checkout is one of those weird commands that do multiple things depending on context

mild abyss
#

spooky is gone

eternal wing
#

I have literally never used git switch ever

low chasm
#

Same lol

boreal swift
#

I wish there was git delete yourself because this repository is broken and needs to be reinitialized

mild abyss
#

well according to people, git switch is relatively new

winter terrace
#

this is the definition of "waits faster"

tribal aurora
#

is there completion for lsp-config in neovim?

#

or suggestion

floral viper
#

I wish there was git delete yourself because this repository is broken and needs to be reinitialized
cd ..
rm -rf <repo folder>
git clone <repo url>

When you got a specific repo you can put that as alias nuke or something

solid pollen
#

You can also just delete .git, init and repull the remote data

#
rm -rf ./.git
git init
git remote add origin <url>
git fetch```and then make the current branch point to the right remote branch
tough pilot
#

there's also the wipe technique :)

git clean -df
git reset --hard HEAD
edgy crest
#

hard head?

tough pilot
#

quite

floral viper
#

I've always swapped those around

#

git reset HEAD --hard

mild abyss
#

git switch

#

.topic

median domeBOT
#
**What is your favourite food?**

Suggest more topics here!

mild abyss
#

oh no again with food

#

git switch -c topics destroy HEAD^3

young imp
#

comeon anyone here?!?!?!

rough sapphire
#
print ("EEEEEE")
edgy crest
#

?

mild abyss
#

?
@edgy crest dont read. ignore them, or you will get their bad habits

edgy crest
#

reeet

strange barn
#

the java equivalent is

System.out.println ("EEEEEE");
#

(today's topic is non-practical code)

edgy crest
#
console.log("EEEEEE");```
cosmic lotus
#
eval('console.log("EEEEEE")');
scarlet wind
#
s = "EEEEEE"
print s
``` oof
edgy crest
#

python2 👀

scarlet wind
#

me not use python2

#

me only use python3

edgy crest
scarlet wind
#

me just know how to print

#

me use 3.8

edgy crest
#

did you forget the actual way of conversing in proper english

mild abyss
#

nu

scarlet wind
#

me brain cells ded

mild abyss
#

he know dont

#

brain cells he dead

scarlet wind
#

me make brain cells ded

mild abyss
#

brain cells you cant make, body designed way that

scarlet wind
#

me no grammer

mild abyss
#

go learn peethon, dont mingle here too long braa

scarlet wind
#

me just done cooding

mild abyss
#

okii

#

me will learn js tomorrow you good?

scarlet wind
#

me don't no js

mild abyss
#

that okiee

#

pretty soon you learn blyat

tribal aurora
#

Hi

#

anybody knows why <Space>h takes some times to load?
I tried let mapleader = " " and mapped both <Space>h and <leader>h :wincmd h in my init.vim but it takes some moments to load/apply
that command
like it's waiting for <leader>h[Some else Command]

tribal aurora
#

and why gd will be converted to space

rough sapphire
#

also another book is really short but good..on compilers in c and understand how langs like python and lua and ruby..etc were created
@hoary steppe is it okay if i ask what the book is. it seems interesting

tribal aurora
#

Don't interrupt pls

#

Thanks

rough sapphire
#

?

#

there was no active converstation going on

#

so thats why i went here

tribal aurora
#

No one will see my texts if you keep talking

rough sapphire
#

oh ok

royal lakeBOT
gentle moss
#

no.

rich rover
#

Oh what

royal lakeBOT
#

@solid pollen @topaz aurora

It has arrived!

Here's your reminder: need a free ping? ☕.
[Jump back to when you created the reminder](#ot1-perplexing-regexing message)

gentle moss
#

@tribal aurora you should probably look at the #❓|how-to-get-help channel to see how to use the help system. the offtopic channels are not the best place for those types of questions.

solid pollen
#

Not particularly, but thank old (young?) myself

gentle moss
rich rover
#

lol, Your old self is very wise @solid pollen

tribal aurora
#

lol

rough sapphire
#

!remind 698956264629207121 1y are you owner yet?

royal lakeBOT
#
I'm sorry Dave, I'm afraid I can't do that.

Sorry, you can't do that here!

edgy crest
#

kek

tranquil thicket
narrow pecan
#

@rough sapphire you’ll have to do that I. #bot-commands hahah

rough sapphire
#

yeah i did

edgy crest
#

no

#

is python

narrow pecan
#

Very well

edgy crest
#

@narrow pecan are western cucumbers better than normal cucumbers?

narrow pecan
#

They are (jk, we’re equal no matter the direction)

edgy crest
#

oooo

quick ledge
#

(Vivek Gurkan is the best Gurkan)

edgy crest
#

u are a cucumber?

narrow pecan
#

He is

quick ledge
#

What suggests otherwise? Maybe you need to be a bit more imaginative but your nickname doesn't isspire much hope in me

neon shoal
#

wow apparently this was the first message in this server #bot-commands message

#

thats still around

rich moon
#

u actually spent the time to find it lol

boreal swift
#

Sort by oldest exists

rough sapphire
#

nice

#

john was the original owner btw

#

hello

#

where is john today

#

joe where are you

#

@neon shoal how did you resolve this was the oldest message

neon shoal
#

its pretty easy just do the search thing

#

oldest message before today

rough sapphire
#

oh

#

hmm doesn't work

#

before today as in which date did you use

neon shoal
#

just the current date

#

it doesnt matter

rough sapphire
#

I did before: 2017-11-02 to be able to see that message you showed

neon shoal
rough sapphire
#

it shows different results for me see

neon shoal
#

thats really weird

#

seems like discord bug

#

¯_(ツ)_/¯

rough sapphire
neon shoal
#

theres no way thats the oldest

rough sapphire
#

yes.. if only I could get paid for these bugs

neon shoal
#

haha

rough sapphire
#

recently raised a bug for them to remove an emoji punching pregnant women..

#

and they were like.. oh.. you can block this person.. and I was like.. that's not the issue here

neon shoal
#

a emoji from a server?

#

or built in

rough sapphire
#

yeah, another server

#

possibly a private server

neon shoal
#

yeah that seems hard to enforce though

#

how do you make sure all emojis are ok

#

tough

rough sapphire
#

go through an approval process

neon shoal
#

eh I guess

rough sapphire
#

do you know anything about c#

neon shoal
#

yeah a little bit

#

for unity

rough sapphire
#

I just decompiled a bunch of dll files and see the code, but I'm not sure if it's all the code

#

don't know a thing about c#.. have used a bit of c++ before.. can you tell me something

neon shoal
#

yeah I have no idea

#

I think there is an official c# server

#

you might be able to ask there

rough sapphire
#

ok then

neon shoal
#

or not

rough sapphire
#

zapped?

#

oh you mean because you link another server.. I think mods are ok as long as it's not self promotion

neon shoal
#

I think the bot deletes them automatically

#

but this is a redirect so I guess it doesnt see it

left jacinth
#

I cant grasp my head around the fact that so many schools hinder students to use higher lvl functions than what the "class level" is.
It's this leave no one behind mentality.
Thing is: it is better for the group to leave some super slow students behind. And even with the leave no one behind mentality you can allow students to experiment with higher lvl stuff. I would be pretty tilted to get denied an opportunity to develop. It also causes geniouses to not develop properly because they dont have room to improve

rough sapphire
#

you mean things like common core?

#

most schools are meant to keep kids stupid.. so they can grow up to pay taxes

#

the American way

#

critical thinking, finances, programming.. it's not a priority unless it's a really good school and most people around the world don't get those opportunities

manic bloom
#

THIS. THIS OTN IS TRUEST.

frozen crane
#

@manic bloom if your regex doesn't summon a demon, it's not dank enough

topaz aurora
manic bloom
#

oh yes, that's by far my favorite answer on stackoverflow

rough sapphire
vivid flame
#

oh yes, that's by far my favorite answer on stackoverflow
@manic bloom i just read it. can confirm i've never seen anything like that ever written on stack before

manic bloom
#

👍

tranquil orchid
edgy crest
#

gooood

narrow pecan
#

Will it still save the text?

mild abyss
#

goodluck jackoo

tranquil orchid
#

you will be able to yeah

simple sand
#

Could someone explain to me what IRC is?

mild abyss
#

If I Recall Correctly

quick ledge
#

IRC - internet relay chat

mild abyss
#

iirc

quick ledge
#

it's like an old timey discord

mild abyss
#

fudge

#

i missed that I lol

quick ledge
#

the older members of this server will be familiar

simple sand
#

ohh

tribal aurora
#

can someone send me his output of time nvim

violet roost
tranquil orchid
#

Magpies == demons

gentle moss
#

only the australian ones

uneven pine
#

:^)

#

let's start a speedrun challenge, real time reported, how fast can you exit vim

graceful basin
cosmic lotus
#

Vim Exit% Speedrun WR Pace

edgy crest
#

🤔

graceful basin
#

a nice trick is to enable caps lock to save shift mashing

#

or just make a vimrc that binds exit to something else

fervent dock
#

good game

scarlet wind
#

lol

fervent dock
#

got 0m0.302s sunglas

graceful basin
uneven pine
#

spent way too long on this

little wolf
#

is this good?

#

nvim 0.44s user 0.05s system 85% cpu 0.568 total

uneven pine
#

440ms is a bit sluggish but nothing crazy if it's not a very powerful system

#

esp. if you have a lot of startup overhead, I don't know when vim loads plugins

little wolf
#

so not good?

graceful basin
high verge
#

depends if you cheated

graceful basin
#

well, no. I exited it properly

#

but it is vi, not vim

#

which is lighter and starts up faster

eternal wing
#

time nano

rough sapphire
#

vim 0.02s user 0.00s system 8% cpu 0.286 total

#

instead of :q i did ZZ

graceful basin
rough sapphire
#

I don't have nano 🙂

graceful basin
#

how did you press enterZZ in 20ms

rough sapphire
#

wdym its in escape mode already so just ZZ

graceful basin
#

you need enter to start vim

uneven pine
#

that's user and system

#

not realtime

graceful basin
tribal aurora
#

Best I can do
@graceful basin I mapped <space>q for that

uneven pine
#

Lak that's cheating

tribal aurora
#

yea lol

graceful basin
#

yeah, was just curious how fast it would be

tribal aurora
#

😂

#

that's weird

#

because mine is 00, 00, 03

#

yours is 10 01 06

young shoal
#

holy shit dude

#

my teacher just said "we make our fields private in java to protect them from people changing them"

#

"say you have a bank account and some disgruntled employee just gives everyone a million dollars"

graceful basin
#

wow

#

Field::setAccessible

young shoal
#

yikes

graceful basin
#

I am so sorry for you

young shoal
#

this is quite bad

stark prawn
#

So if private is to protect the fields, what is protected for?

graceful basin
#

to protect from all but ones own progeny

young shoal
#

yeah, anything for family

#

someone said that in a movie

stark prawn
#

That person was Lilo.

young shoal
#

oh

ornate flax
#

Guys is there any way to write a c program for swapping two nunbers using inbuilt function?
I was asked this in an interview

stark prawn
#

You can use a 3rd variable to store it temporarily

graceful basin
#

you should use a third variables

ornate flax
#

Yeah i knew it but the interviewer has asked to do it with using inbuilt function

stark prawn
#

There is std::swap in c++

#

Kind of an odd interview question tbh, not sure how that reflects on your prowess as a programmer

ornate flax
#

Yeah i knew the cpp function

#

Kind of an odd interview question tbh, not sure how that reflects on your prowess as a programmer
@stark prawn but i got selected in that interview for next round

stark prawn
#

Another way to do it would be to use an xor swap.

#

But I don't think that would be considered a builtin function

ornate flax
#

Another way to do it would be to use an xor swap.
@stark prawn yeah thanks i will try this now

graceful basin
#

xor swap is also worse in every way in C.

stark prawn
#

And only works on distinct values

digital lantern
#

Wow, a completely random person who doesn't share any servers with me just DMd me to say that they would give me a BitCoin

#

I am so so so so lucky

#

Let's give them my credit card number

solid pollen
#

Haha

cosmic lotus
#

don't forget the three numbers at the back!

solid pollen
#

Well, they probably left the server they shared with you

#

Are you in a lot of public servers?

cosmic lotus
#

Hey Akarys

#

Have you heard of #nodevember

solid pollen
#

Nope

#

wat dis?

cosmic lotus
#

You make a procedural stuff each day using only nodes for the whole of November

solid pollen
#

That is really interesting

#

I’m not sure if I’m skilled enough to make something at least meaningful haha

cosmic lotus
solid pollen
#

...

#

wha

#

AND IT CAN BE BROKEN DOWN TOO

#

Maaan

edgy crest
#

bruh blender pros lol

rough sapphire
#

I can run blender but will take a lot of time to build that

cosmic lotus
#

Yeah that would take about

#

10

rough sapphire
#

mins? hours?

cosmic lotus
#

10

#

bodies

scarlet wind
#

oof

rough sapphire
#

well there we go nodevnovember

cosmic lotus
#

how about the other november event

#

y'know

rough sapphire
#

I am still 20

#

wow, they finally did it, it looks better than real... I think when the Play Station 5 comes out I gonna leave reality and live in unreality https://www.youtube.com/watch?v=Y6ZOWWs6rNE

PS5 First Real-Time 4K Gameplay Next-Gen Graphics Demo on PlayStation 5 using Unreal Engine 5 (2020)
SUBSCRIBE → https://goo.gl/wiBNvo

subscribe for the latest PS4, Xbox One and PC, Gameplay, Trailers, Walkthrough and Games News.

▶ Play video
quick ledge
#

looks unreal

gentle moss
#

it's pretty damn impressive that's for sure

#

i do wonder how well the tech demo is going to translate into games

narrow pecan
#

looks unreal
@quick ledge like my engine

quick ledge
#

Unreal Engine 5

narrow pecan
#

Dude. That's both an insanely crazy engine and computer

#

That's literally more real than real life

gentle moss
#

the PS5 definitely has some serious power under the hood

quick ledge
#

yeah

gentle moss
#

then again

#

we're seeing 7 years of technology unleashed in one hit

narrow pecan
#

I've never gotten into gaming (maybe I get to blame my Mac?), but that's just crazy imoressive

gentle moss
#

this has been a very long console cycle

#

hmm... maybe not. about the same time gap to the PS3

#

thought it was 5 years not 7.

rough sapphire
#

by the time we are old and living in a nursing home, we can just put on VR headsets and think we're in a different world again

#

when youre demented you cant tell the difference at all anymore

lofty dirge
#

<@&267629731250176001> ^

#

Omnibrain, I'm curious about 4K gaming claims

#

just because every time consoles have claimed AWESOME RESOLUTION it never seems to work out that way

#

last gen, 1080P at 60FPS (Every game runs at 800P at 30FPS with frame drops)

rough sapphire
#

the ps4 pro is already running games at 4K

#

8K VR goggles are gonna be awesome

lofty dirge
#

eh, "4K"

#

massive massive quotes around PS4 "4K"

#

more like 1440p that we claim is 4k because "HAND WAVE"

quick ledge
#

ah yes, HDR

#

*4K HDR

gentle moss
#

i still get bugged about 30fps capped games

bleak lintel
cosmic lotus
#

He is! He is apparently also working at Blender

edgy crest
#

why do people reply with ! if someone said it before, i mean it happens to me too

manic bloom
#

Why not!

cosmic lotus
#

Yes!

bleak lintel
#

Oh he's working at Blender now?

#

That's awesome to hear

#

3D artist / generalist at Blender Studio
oh yeah!

rough sapphire
#

Could someone help me with a remove function in binary search tree ?

quick ledge
#

is it implemented in python?

#

@rough sapphire you will get a better answer in a help channel

rough sapphire
#

Could someone help me with a remove function in binary search tree ?
@rough sapphire bruh this is very tricky

wise thistle
#

is this off topic

#

may I talk about my hand

tired cloak
#

sure

wise thistle
#

Ok so my hand has a little bit of hair

#

pretty sikmple

#

Its all black like space

#

and I use it to walk

#

and by hand mean my paw

#

So what is the point of this

#

Joe r u here

#

JOE

#

Ok, I am glad he is not spying on me

#

I cant believe Im a hostage

bleak lintel
#

😐

#

@wise thistle drop the low effort spamming now, last warning.

rough sapphire
#

hello joe

bleak lintel
#

greetings

rough sapphire
#

who's John, Joe

#

where is he now

manic bloom
#

Joe killed John, and then hid his body. Right Joe?

mild abyss
#

joe is actually Johne Doe

rough sapphire
#

John seems to have disappeared around 2019

bleak lintel
#

yes

#

that sounds about right

#

John was just an old owner

rough sapphire
#

I've been here for a while, I've never seen him

bleak lintel
#

not long enough :)

rough sapphire
mild abyss
#

i kinda wonder what is he doing right now after he left PyDis

manic bloom
#

cyber stalking 👀

mild abyss
#

what lol?

manic bloom
#

I'm jokingly saying, it's time for some cyber stalking

mild abyss
#

okay gotta make a video presentation for our research

manic bloom
#

👍

bleak lintel
#

lol

#

I haven't heard from him

low chasm
#

Hi

scenic blaze
#

Are people basically good or are people basically shit?

eternal wing
#

I side with locke on this

scenic blaze
#

I hear you there

eternal wing
#

Everyone knows the internet is the best place to have a respectful discussion on philosophy :D

scenic blaze
#

hah

simple sand
#

i kinda wonder what is he doing right now after he left PyDis
@mild abyss i don't think he left cause he still has the developers role

bleak lintel
#

locke

#

good guy

#

I prefer Nietzsche

#

I stumbled across a video about Nietzsche the other day lol

honest star
#

lmao, that's a great way of putting it

edgy crest
#

lol

deep drum
#

hey does anyone know of a good Discord bot for preventing raids?

#

I'm in a LGBT discord local to my school and we get trolls now and then

#

don't really know of a good bot that can just help prevent that

edgy crest
#

pydis mods

eternal wing
#

@deep drum this can be fairly tricky. I am not familiar with other bots, but you can maybe look to our bot to see how we handle this stuff.

#

!source

royal lakeBOT
terse sluice
#

@royal lake does not handle raids well lol

rough sapphire
#

lol ez fix just ban anyone that talks

topaz aurora
#

not yet

terse sluice
#

wdym not yet

topaz aurora
#

not never lemon_eyes

terse sluice
#

lol

#

raids will be a Rattlesnake thing

rough sapphire
#

is that a bot?

eternal wing
#

Why would it not be named after a type of python....

topaz aurora
#

I guess you could say it's the overlord of the bots, even surpassing the likes of @remote socket

terse sluice
#

SeasonalBot is going to be Cobra some day

rough sapphire
#

@rattlesnake

eternal wing
#

No bot is close to passing xith in computing power

rough sapphire
#

hes a myth

#

just a fairytale

eternal wing
#

But a cobra is not a type of python :c

terse sluice
#

there are types of Pythons?

topaz aurora
#

It's a snake :>

eternal wing
#

!!

rough sapphire
#

ii

eternal wing
#

There are so many pythons

#

Don't get me started xD

topaz aurora
#

Metricity is the only odd one out

rough sapphire
#

metricity is joes favorite

topaz aurora
#

and the hidden IRC bot

eternal wing
#

Ok you did: ball pythons, children's pythons, carpet pythons, woma pythons...

terse sluice
#

those would not be great names lol

eternal wing
#

I am aware, ill keep brainstorming

terse sluice
#

anyway, the reason why raids last only a matter of minutes here nowadays is because the spam has a pretty clear pattern

#

we can then create a quick int eval which bans everyone matching that pattern

#

and raid is over

topaz aurora
rough sapphire
#

eval(ban)

quick ledge
#

There are so many pythons
@eternal wing CPython, PyPy, MicroPython, Jython 😎

terse sluice
#

Cython and Brython!

young shoal
#

ironpy

terse sluice
#

that's old

eternal wing
#

Only one of those is is acceptable

#

Ruython when

quick ledge
#

BFython whn

eternal wing
#

Lol

young shoal
#

FBIthon when

eternal wing
#

Well, you just summoned them with that namedrop

fast sinew
#

hey would this be the place to ask a question about html lol

eternal wing
#

Yeah, you could. You can also try #web-development but i dont mind answering one here personally

fast sinew
#

ok thanks

#

Do you know how I would get the width of the user's browser?

eternal wing
#

Do you need to actually get the pixel value?

In general you can use vw to reference the width of a screen.

honest star
#

The !shhh command is a very useful one though

edgy crest
#

shhh

fast sinew
#

what is vw?

#

like is it a tag? or what

eternal wing
#

It stands for view width

As in 100vw == the full width of the users viewport

#

It is styling for css:

body{
    width: 100vw;
}
fast sinew
#

ohhhh ok

#

thank you

eternal wing
#

Np

#

You can also use width: 100% which will be the screens full width if all the containers are also width 100%

mild abyss
#

hi guys

rough sapphire
#

hey

cursive abyss
#

howdy

gleaming thicket
eternal wing
#

howdy
Hey! Thats my line 😠

edgy crest
#

haida

narrow pecan
#

Howda mista linux

finite girder
#

I started learning python today,

#

I feel cheated that people use this language.

#

It's too easy coming off of C++

#

I wish I learnt python before😭

tranquil orchid
#

I mean C++ is very useful as well

finite girder
#

Little to do with use tbh

#

All languages are useful

#

Its just that python is very user friendly

cursive abyss
#

Hey! Thats my line 😠
@eternal wing it's mine now 🙃

mild abyss
#

@narrow pecan HOWDY WESTEEN COCOOMBEER

narrow pecan
#

HOWDY

serene pumice
dapper bolt
#

ok thx

serene pumice
#

yw

dapper bolt
#

looks cool

tranquil orchid
dapper bolt
#

yea i actually use vsc right now but don't really like it that much

serene pumice
#

I prefer it over others, but in general I like minimalistic stuff - I've had pycharm make scripts not work before due to it interfering

#

do all debugging thru cmd which is honestly p easy

tranquil orchid
#

Wait does sublime not have an actual debugger

serene pumice
#

iunno

#

I've always debugged by hand

rough sapphire
#

🤔

little wolf
#

Is golang's syntax closer to python or c?

graceful basin
#

closer to C I would say, though it is pretty foreign from both

simple sand
#

debugging is so much work

edgy crest
#

:o

serene pumice
graceful basin
#

I just rewrote a python function in clojure and it worked the first time I ran it

solid pollen
#

Is it snowing?

edgy crest
#

no

#

is it for u ?

#

i have seen snow only once, in 2012

#

when i went to north, it never snows here 🤷

graceful basin
solid pollen
#

We haven’t seen snow in 7 years now I think, but trump said that global warming is a joke, so....

narrow pecan
#

No need to worry. Climate change is fake, of course :D

solid pollen
#

Oh no, I remember this ot name

mild abyss
#

yes it is definitely fake.

solid pollen
#

Definiteali

mild abyss
#

so uhm i am installing i3 goodluck to me lmao

solid pollen
#

Good luck haha

mild abyss
#

i will definitely fail

cosmic lotus
#

why are you installing a processor

mild abyss
#

idk if thats a joke or

#

well it is i3-wms fault for its naming

#

I just rewrote a python function in clojure and it worked the first time I ran it
@graceful basin whats clojure? another lang?

graceful basin
#

yeah, one of the more practical lisp dialects

#

its actually really nice

solid pollen
#

why are you installing a processor
@cosmic lotus yeah, you should be downloading it

cosmic lotus
#

Then you use the Upgradinator 3000™ 🔨

wind nacelle
#

anyone wanna play no mans sky?

#

i'm trying to test the mp

digital lantern
solid pollen
#

Maybe

#

Not sure if you had to underline this

digital lantern
#

I wanted to test that feature

opaque anchor
#

I'm thinking of making a language called Quazi

#

My main inspiration is JS but I'm incorporating many Python features too

#

Here's a hello-world example

#
print("Hello there!");
#

Here's a function example

#
addTwoNums(x: Number, y: Number) = x + y;
#

Types are required unless they can be inferred

#

The goal is to minimize runtime errors and allow for fluent, elegant code

#

It also supports built-in function options

solid pollen
#

Why do you want to end lines with semi colons in 2020 lemon_pensive

opaque anchor
#
func(x: 1, y: 2)
#

@solid pollen semi-colons are optional

#

i'm just used to them

#

Import statements are like this

#
import x from 'module';
import { y } from 'module';
import x, { y } from 'module';
#

Basically similar to JS imports

#

Here's all the ways to create functions

#
func = (x: Number, y: Number) => x + y;
func(x: Number, y: Number) = x + y;
function func(x: Number, y: Number) {
  return x + y;
}
func: Function<Number, Number> = <#0 + #1>;
little wolf
#

what is the =>?

opaque anchor
#

=> is anonymous functions

#

(x, y) => x + y is the same as lambda x, y: x + y in python

little wolf
#

oh its js

opaque anchor
#

no its my own language, inspired by JS

#

but also python

little wolf
#

oh nice

opaque anchor
#

One of the most useful features is the <> anonymous function

#

You don't have to specify argument names

#

So you can have simple logic like

solid pollen
#

It looks good

opaque anchor
#
seq
  .map<# * 5>
  .filter<# > 15>;
#

ye

#

there's also going to be concrete types

#

just like python

#

so there will be a String class, a Number class, a Boolean class, etc

#

the == operator will be just like the Python one, not the JS one

#

the === operator will be just like the Python is

#
import { Client, Embed } from 'discord';

client = new Client()
  .on('ready', () => {
    log('I am ready!');
  })
  .on('message', message => {
    if content == 'how to embed'; //Automatically exits the block if the condition fails
    embed = new Embed(
      title: 'A slick little embed',
      color: 0xff0000,
      description: 'Hello, this is a slick little embed!'
    );
    message.channel.send(embed);
  })
  .login('your token here');
#

Types can be inferred

little wolf
#

nothing should be like the == from js

opaque anchor
#

@little wolf even tho JS is my favorite language

#

JS had a lot of bad design decisions

#

like

#

== is terrible in JS

#

why can you add numbers and strings

#

etc

little wolf
#

yeah

#

i don't hate javascript

opaque anchor
#

but I still really like JS method chaining, JS prototypes, JS anonymous functions

little wolf
#

if i was giving out that vibes

opaque anchor
#

Quazi is sort of Python + TypeScript

#

and ik

#

the goal is also to minimize runtime errors

#

a lot like elm

#

but also for fluent and easy code

#

you can even do stuff like this in Quazi

#
x = 5;

if x == 5;

log("5");
#

If you don't specify a block for if

#

Then it'll just exit the current block if the condition fails

#

So you could do stuff like

little wolf
#

is log the console.log in this language?

opaque anchor
#

log is equivalent to console.log in JS or print in Python

#

so ye

little wolf
#

as a print debugger i like the lenth of this

opaque anchor
#

also

#

a lot of times you won't have to deal with messy runtime errors

#

since there will be powerful type checking

#

and type inferring

#
x = 5;

x = '5'; //Fails because the first definition of x is as a number.
#

so yeah

#

there will also be top-level await

#

and await will be more like JS promises then Python coroutines

little wolf
#

im just gonna pretend i understand the stuff you are saying lol

#

gl on this

opaque anchor
#

also you know about threads right?

#

and thanks

#

quazi will have thread support which is asyn

#

so stuff like

#
const MyThread = new Thread(() => {
  //Do a large calculation
  x = 0;
  while (x < 100000) {
    x += 1;
  }
  return x;
});

let res = await MyThread;

log(res); //logs 100000
#

or you could do

little wolf
#

uh........

opaque anchor
#
const MyThread = new Thread(() => {
  //Do a large calculation
  x = 0;
  while (x < 100000) {
    x += 1;
  }
  return x;
});

MyThread.then(log); //logs 100000
#

@little wolf ?

little wolf
#

also you know about threads right?

opaque anchor
#

oh

#

well anyways, i hope it'll be a neat language

#

i don't expect people to use it

#

it's just meant to be a nice side-project

little wolf
#

no im not calling it bad, im just saying i have no idea what threads mean lol

#

i would love a mixture of js and python

opaque anchor
#

alr

#

@little wolf well, quazi is gonna have a lot of that

#

alongside types too

#

so you can't make silly mistakes like this

#
x: Number;

x = 1;

x = '5'; //Won't work, only allows numbers to be saved to the variable
tribal aurora
#

anyone knows Typescript here?

opaque anchor
#

@tribal aurora i do

#

well not well

#

but i know a little bit

tribal aurora
#

oh lol

#

and JS too?

opaque anchor
#

i know JS very well

#

TS a bit

#

i haven't used TS too much

tribal aurora
#

Which is better?

opaque anchor
#

that actually depends but a lot of times

topaz aurora
#

If you want type safety go for TS

opaque anchor
#

typescript is better since it saves you from a lot of errors

#

@tribal aurora JS is easier to write

#

but TS can save you from a lot of errors

#

and ensure type safety

tribal aurora
#

I was looking to learn TS because it has lots of features and it's superset of JS

opaque anchor
#

Well, go for it then!

#

If you don't like it you can always continue with JS

tribal aurora
#

But I see there isn't really HUGE community for TS

opaque anchor
#

@tribal aurora I think around 20% of the JS developers use TS

#

and there's still a pretty big one

#

big companies like Microsoft and Google use TS too I think

tribal aurora
#

hm

little wolf
#

But I see there isn't really HUGE community for TS
@tribal aurora i know a typescript server, and its pretty active

tribal aurora
#

can you send it to me pls

little wolf
#

sure

tribal aurora
#

both js and ts if you have

#

thanks!

little wolf
#

i couldn't find one for js lol

tribal aurora
#

oh lol

#

np

little wolf
tribal aurora
#

thanks

little wolf
#

np

#

i joined it thinking it was a javascript server

tribal aurora
#

lol

#

But, again, it's not Huge as javascript

#

I mean , there aren't enough asked questions in stackoverflow

little wolf
#

im not sure

#

but i think javascript works on typescript

#

so if you get a js solution

#

its most probably gonna work on ts too

#

and the most famous js develouper uses typescript

#

so i wouldn't worry too much about its popularity

tribal aurora
#

How?

little wolf
#

How?
?

tribal aurora
#

but i think javascript works on typescript

#

And how do you know

and the most famous js develouper uses typescript

little wolf
#

it doesn't?

tribal aurora
#

I don't know , I'm new

little wolf
#

youtuber*

#

lol

tribal aurora
#

And do you know TS?

little wolf
#

nope

tribal aurora
#

:/

little wolf
#

i am probably a bad influence

tribal aurora
#

JS?

little wolf
#

yeah

#

i have been trying to learn typescript

tribal aurora
#

so?

little wolf
#

i like realtime error correction

#

if you are beggining

#

start with just javascript

#

but give typescript a shot

#

when you are decent at javascript

opaque anchor
#

So for Quazi

#

I want to make it very easy to infer types

#

The goal is to minimize types as much as possible

#

I'm hoping the only area you'd need to specify types

#

Would be functions

#

So stuff like the following is inferred

wise thistle
#

Does this channel have a topic? I hope not?

opaque anchor
#
function func(x: Number) {
  return x + 5; //Return type is inferred
}

x = 5; //Infers 'x' to be a Number.

y = func(x); //Infers 'y' to be a Number.

z = new Class(); //Infers 'z' to be an instance of Class;

a = x * 2; //Infers 'a' to be a Number.
narrow pecan
#

Take a wild guess lol

opaque anchor
#

so those are some plans for Quazi, my programming language in-progress

wise thistle
#

No?

#

It doesnt>>?

opaque anchor
#

automatic type inference

#

@wise thistle uh I guess it has a topic right now since

#

i'm talking about my programming language here

narrow pecan
wise thistle
#

Oh CMON....I wanted to talk about my finger

fast sinew
#

hey is anyone here good at html?

opaque anchor
#

so

#

type inference

fast sinew
#

cuz I just have a question

opaque anchor
#
function func(x: Number) {
  return x + 5; //Return type is inferred
}

x = 5; //Infers 'x' to be a Number.

y = func(x); //Infers 'y' to be a Number.

z = new Class(); //Infers 'z' to be an instance of Class;

a = x * 2; //Infers 'a' to be a Number.

So here's how I plan for it to infer types

#

Primitives are easy to infer

#

5 is obviously a Number

#

functions get a bit tricky

#

In a function, you have to specify the types of the arguments

#

But then you can use those to infer types

#
function func(x: Number) {
  return x + 5; //Return type is inferred
}
#

Since we know x has to be a Number, and a number plus another number is a number, it infers it to be a Number

#

So it infers the functions return type to be a number

#

y = func(x); //Infers 'y' to be a Number. Allowing it to infer this to also be a number

#

z = new Class(); //Infers 'z' to be an instance of Class; We can easily infer that an instance of a class is well... a value with the type being that class.

#

a = x * 2; //Infers 'a' to be a Number. As you know, x is a number

#

So we can infer a to also be a number

#

and that allows for powerful type inference

dusty wagon
#

l

#

l

opaque anchor
#

Quazi's standard lib, when I make it

tribal aurora
#
function func(x: Number) {
  return x + 5; //Return type is inferred
}

x = 5; //Infers 'x' to be a Number.

y = func(x); //Infers 'y' to be a Number.

z = new Class(); //Infers 'z' to be an instance of Class;

a = x * 2; //Infers 'a' to be a Number.

@opaque anchor what is this?

#

I mean what language is it

opaque anchor
#

@tribal aurora That's type inference

#

And it's a language I'm making

#

Called Quazi

tribal aurora
#

waoh

opaque anchor
#

Combining features of JS, TS, and Python

tribal aurora
#

so you're expert

opaque anchor
#

I guess

#

The goal is for the same flexibility of like

#

Python and JS

#

But also the same benefits of typing

#

So it can catch a lot of errors before they even happen

#

Ok so

#

Something I noticed in TypeScript is the interface

#

I think Quazi should automatically generate and assume interfaces

#

So

#

If you do this

#
obj = {
  a: 1,
  b: 2
};
#

It'll automatically assume that obj is an Interface { a: Number, b: Number }

graceful basin
#

huh, return type inference is interesting. Do you have union types?

opaque anchor
#

@graceful basin yep

#

String | Number

#

This is still just an early idea, but the goal is to infer as much as possible

#

so with union types

#

it should be able to infer the exact type at some point

graceful basin
#

so in order to have a union, you need to explicitly specify its type?

opaque anchor
#

yep, unless it can be inferred

#

so

#
function func(x: String | Number) {
  return x;
}
#

The function's return type is String | Number

#

but when you call the function

#

func(5)

#

it will infer that the return type for that call is Number

graceful basin
#

what about List[String | Number] | List[String]

#

how would you use that

opaque anchor
#
function func(x: String, y: String | Number) {
  arr = [];
  arr.push(x);
  arr.push(y);
  return arr;
}
#

so this could be an example of List[String | Number] | List[String]

#

then

#

func(1, 2);

#

i'm not sure if it'll be able to infer that

#

since [] is just a plain array

#

if it could infer that

#

it would need to scan the function

#

look at arr

#

then detect arr.push(x), and see what type x is

#

which is string

#

so then that makes it List[String]

#

and if y is a Number, it becomes List[String | Number]

#

otherwise it stays to List[String]

#

I think that should be possibly to infer too but I'm not sure

#

another thing is casting

#

I don't think this language will have explicit casts

#

So if you have a union type

#

You'd probably have to check it

#
x: String | Number;
x = x as String; //This is impossible. You can't cast directly
#

The only way to cast would be to use an if with instanceof

#
x: String | Number;
if (x instanceof String) {
  //Use x as a String within this body
}
#

So @graceful basin

#

It might not be able to infer it

#

And in that case

#

You'd need to explicitly use the union type

#

And check which type it matches

#

If it matches List[String] or

#

List[String | Number]

#

or even

#

iterate over the List[String | Number]

#

and check if each value is a string or a number

#

because for union types, you cannot act on the data unless you check its direct type with instanceof

graceful basin
#

the issue is something like

x = ["Hello"]
y = x
z: List[String] = x
y.push(8)
opaque anchor
#

that would fail

#

x is automatically defined as a List[String] from ["Hello"]

#

so if you want to do that

#

you'd need it to be x: List[String, Number] = ["Hello"]

graceful basin
#

yeah, that is smart

opaque anchor
#

everything would be valid

#

up to y.push(8)

#

but

#

if you do this x: List[String, Number] = ["Hello"]

#

z: List[String] = x then this will fail

graceful basin
#

yeah, that is required

opaque anchor
#

the goal is to minimize a lot of the runtime errors

#

so casting is removed except through instanceof checks

#

since if you try to use string-only methods on an Object type

#

there's a chance it could fail

#
x: List[String | Number] = [1, 2, '3', 4, '5', '6'];

//INVALID
for (i of x) {
  if (i.length == 1) {
    log(i);
  } else if (i > 8) {
    log(i);
  }
}

//VALID
for (i of x) {
  if (i instanceof String) {
    if (i.length == 1) log(i);
  } else if (i instanceof Number) {
    if (i > 8) log(i);
  }
}
#

so this showcases that

#

in typescript

#
const x: string | number = '5';

if (x.startsWith('5')) {
  console.log(x);
}
#

this is valid

#

but that wouldn't be valid in Quazi

#

unless you check if x is a String

#

before operating on it

burnt stirrup
#

hi

#

is there any way to create cluster of 2 servers and combine the resources so they act like a single system

eternal wing
#

oh hi mark

#

you may want to look into something called a beowulf cluster, pretty neat at least. Not necessarily server related.

overall you would probably just want to delegate resources between servers though.

topaz aurora
#

I don't like how the return function for my LISP jumps unconditionally, but it's something I can live by for simplicity I guess

#

This is valid, for one

(loop [(return 42)])
#

When it evaluates the vector, it performs the side-effect of making the return propagate

#

I could write it in the spec that it's imperative but oh well

gleaming thicket
#

My WiFi ded

mild abyss
#

says someone who messaged my wifi ded

gleaming thicket
#

Omg

#

MOBILE DATA is a thing

#

But speed is so bad :(

mild abyss
#

mObOL DAyTA is A tHInG

royal rune
#

Current 2020 Presidential Election Standings: (Biden) 238, (Trump) 213. 270 needed to win.

solid pollen
#

@royal rune no needs to post that in all 3 channels, we heard your point

royal rune
#

k

serene pumice
scarlet wind
#

5 windows lol

#

never seen that

serene pumice
#

6 actually

scarlet wind
#

oof

#

why though

serene pumice
#

I change it up a lot, always have a full screen

#

music, discord, text editor, tutorial video, cmd, and the website I'm coding

#

other times it's music, video editor, files, maybe youtube

late anchor
#

how do i block this specific script using tampermonkey or soemthing

#

i am sorry if this is offtopic but ive tried using noscript, and ublock origin advanced options

#

with no sucess

little wolf
#

wait...