#dev-general

1 messages · Page 453 of 1

cinder flare
#

but... you can just read in the whole line?

#

oh wait is this C

distant sun
#

bingo

old wyvern
#

These trees are... peculiar

hot hull
#

what in the

distant sun
#

why did you added 18 and 2 in left? 😮

old wyvern
#

Oh wait

#

I got it

old wyvern
#

This satisfys all 3

distant sun
#

makes sense

old wyvern
#

I dont think this is supposed to be a bst

#

It just appends in a pattern

cinder flare
#

yugi's brain is way too big for me

hot hull
#

fam I've no clue what y'all even talking about

#

or what I'm even looking at so

old wyvern
#

left node, right node, left of left node, right of left node...etc...

#

Left derivative tree of some kind

distant sun
#

I have opened their seminary and I see that somewhere it mention that 2 * i + 1 from https://www.tutorialspoint.com/construct-a-complete-binary-tree-from-given-array-in-level-order-fashion-in-cplusplus and the page title says Binary trees with dynamic allocation

old wyvern
#

oh wait

distant sun
#

Only if it wasn't in romanian so I could share it smh

cinder flare
#

yeah that's how you read a level order traversal

old wyvern
#

hmm

cinder flare
#

you can do the same thing with priority queues

#

or at least, my professor tells me

#

i didn't actually bother checking that lmao

old wyvern
#

Wait

#

uh

old wyvern
# old wyvern

Star can you counter check this tree @cinder flare

#

Because if it was level order, shouldnt it go on the right branch?

#

In which case the given in-order result would be wrong

distant sun
#

I don't get it tbh

old wyvern
#

Which gab?

#

@hot hull The clash link frost

#

Barry deleted it

#

resend

hot hull
#

sec, had to restart my pc

old wyvern
#

ah alrighty

cinder flare
#

that tree adheres to all the given traversals

#

I don't think it was meant to be level order

jovial warren
#

Imagine not being at school at this time

old wyvern
#

weird

cinder flare
#

cause then the traversals would be wrong

hot hull
#

just nerds

old wyvern
#

mhm

hot hull
#

I'm expecting all 3 of you to you

jovial warren
#

You won't get me in lol

cinder flare
#

nah im chillaxing now frosty

#

boutta sleep

old wyvern
#

get in bard

jovial warren
#

I'm at school on my phone

cinder flare
#

got a final tomorrow at 9 am

hot hull
#

Get on the professors pc

cinder flare
#

it is currently 1:30 am

jovial warren
hot hull
#

and come play, doubt he's teaching anything useful anyways

jovial warren
#

In form on my own lol

distant sun
jovial warren
#

Not even a teacher here yet

old wyvern
hot hull
#

Imagine not having a week off rn lmao

jovial warren
jovial warren
old wyvern
hot hull
#

holidays Bardy

jovial warren
#

Already?

distant sun
#

maybe yugi, but it still doesn't make sense lol

old wyvern
#

What doesnt?

jovial warren
#

Or are you just having a late Spring break

old wyvern
#

The resultant tree?

distant sun
#

why that and yes

old wyvern
#

its just building towards the left branch

#

I dont see any other pattern

distant sun
#

@ me when clash starts btw

quiet depot
#

@hot hull imagine only having a week off

jovial warren
#

Lol

#

I break up on the 27th May and get like 14 weeks off

lunar cypress
#

Imagine having any weeks off 😎

#

🥲

hot hull
#

Piggy, like 2-3 months till summer vacation

jovial warren
#

Johnny it's alright, you can just do what zml suggested and upgrade to 48 hour days

hot hull
#

Johnny, you working or are you unemployed rn

stuck harbor
#

76 hour days yeet

lunar cypress
#

I am a full time student right now

jovial warren
#

So am I but I still get loads of time lol

lunar cypress
#

But I'm wanna start working this or next semester

hot hull
#

I thought you said you were done with school eee

jovial warren
#

Oh btw, you looked at my results yet?

hot hull
#

Yugi, Gaby you two good?

lunar cypress
#

My uni officially has 3 weeks of holidays in a year

#

but that's kind of a joke too

hot hull
#

ah

jovial warren
#

3 weeks?

lunar cypress
#

yes

jovial warren
#

Is that it?

hot hull
#

feels good to be a professional

lunar cypress
#

used to be 2 before I enrolled

jovial warren
#

I get 13 weeks a year

jovial warren
lunar cypress
#

We get 2 weeks around new year/christmas and 1 week coming up (the thing that's 50 days after easter, idk the english workd)

prisma wave
jovial warren
#

Johnny have you looked at my benchmark results yet btw?

lunar cypress
#

yes

#

mostly matches up with the others

jovial warren
#

Ah okay

lunar cypress
#

They're all on github now

jovial warren
#

Okay

#

You forgot to put my RAM specs on there smh

old wyvern
jovial warren
#

32GB DDR4 3200MHz running at 3000MHz @lunar cypress

hot hull
#

you've been forgiven Yugi for using haskell

old wyvern
#

The soln is neat tho

distant sun
#

one more?

old wyvern
#

Yes

hot hull
#

same you can't start another one immediately

#

shame

jovial warren
#

So PCollections only does well on removals from lists then

#

Everything else it sucks

prisma wave
hot hull
#

You want feet pics?

old wyvern
#
main :: IO ()
main = interact (\x -> intercalate "-" $ map readDope $ rangeOf (map read $ words x))

rangeOf :: [Int] -> [Int]
rangeOf (x : y : []) = [x..y]
rangeOf _ = [0..0]

readDope x
    | x `mod` 3 == 0 = "Dope"
    | elem '3' (show x) = "Dope"
    | otherwise = show x
prisma wave
#

im doing this on mobile

#

This will go well

old wyvern
#

@distant sun join

old wyvern
prisma wave
#

probably not

old wyvern
#

The one time I tried it was so broken i couldnt even type

hot hull
#

it doesn't no

prisma wave
#

interact is weird

old wyvern
#

just reads all inp

prisma wave
#

does it keep going until EOF?

old wyvern
#

Yup

split cape
#

ı need help with something can you guys help me

prisma wave
#

probably

#

Ah that's cool

quiet depot
#

if it’s a support request

old wyvern
#

The inp is lazy so depends on how you use it

quiet depot
#

this aint the channelt

#

this is a general discussion channel

#

no support

cinder flare
#

dude my uni does trimesters

prisma wave
#

yeah

cinder flare
#

so I have 4 months off

#

May, June, July, and August are all no schoolio for me

old wyvern
#

bm you coming?

old wyvern
#

We have barely about 2 months here

split cape
#

ı am trying to download worldedit and ı am now downloading fabrick abrick says ı need to put fabric apı to mods folder but ı don't have a mod folder and ı also havent got the app it is still installer

old wyvern
#

Didnt evne get december holidays this time

#

Continuous classes till now from august now

prisma wave
cinder flare
#

yeah there ain't no holiday 50 days after easter in english land

old wyvern
prisma wave
#

Im at school, can't really join on anything other than mobile

old wyvern
#

Ah alrighty

split cape
#

what should ı do

cinder flare
#

go to a different channel

#

and do some googling maybe

quiet depot
#

I get 2 weeks off between each term (roughly ten weeks each), 6 weeks at the end of the year, roughly 2 weeks during exams, and fairly sure we don’t have to come back to school after the second set of exams. So about 18 weeks total

split cape
#

ı did

hot hull
#

the fuck is an ackermann function

split cape
#

so the pc language is different too

cinder flare
distant sun
#

the fuck is this @old wyvern @hot hull

hot hull
#

No clue

distant sun
#

I saw it before but I dont like t

cinder flare
#

oh is it in the CoC

hot hull
#

Shitty explanation as well, if you tell people to use something specific atleast provide a quick description of what the fuck it is

cinder flare
#

it's basically just three if statements

#

you take two numbers, m and n

#

if m is zero, return n + 1

#

if n is zero, return a recursive call of A(m - 1, 1)

#

if neither are zero, return a double recursive call of A(m - 1, A(m, n -1))

hot hull
#

Yeah nah I'm good

cinder flare
#

it's a pretty theory based question lol

#

though shouldn't be too hard to implement in a normal lang

hot hull
#

it shouldn't, effort tho

cinder flare
#

i mean literally just take the 3 sentences I wrote and make it code

hot hull
#

effort, already ended it

cinder flare
#

lmao nice

old wyvern
prisma wave
#

😩

cinder flare
#

oh you spelled otherwise wrong lmao

prisma wave
#

Yugi can't you do lines <$> getContents

old wyvern
#

oh wait got it

prisma wave
#

Is that what you want?

old wyvern
#

I forgot to call words

#

🥲

#

oh ffs

prisma wave
#

😩

old wyvern
#

oop

#

got it

#
main :: IO ()
main = interact $ show . apply ack . map read . take 2 . words
prisma wave
#

😌 🤤

lunar cypress
#

yes

#

40 is christi himmelfahrt, 50 is pfingsten if my religious education doesn't fool me

#

But I always forget when Easter is

#

it's like "the sunday after the first full moon in spring" or some shit like that

#

I think it's possible for it to be in March

distant sun
#

easter for us in this saturday, on 2nd march

jovial warren
old wyvern
#

Can I get discord to use my Laptops mic for input and earphones for output

#

The "Voice And Video" settings does not seem to separately show inbuilt/earphones

jovial warren
#

yes

#

you what

old wyvern
#

Lemme send you a ss of it

jovial warren
#

you sure it’s called in built or whatever?

old wyvern
quiet depot
#

show ss

#

i smell funny business

old wyvern
jovial warren
#

also go to audio settings and check if it’s there as a device

quiet depot
#

restart dickcord

old wyvern
#

lmao

jovial warren
old wyvern
#

Thats not it bard

#

Both of them point to audio from my earphones

jovial warren
#

yeah ik I was just saying it’s kinda funny

old wyvern
#

lol

quiet depot
#

was os yugi

#

what

old wyvern
#

Windows

quiet depot
#

smh

#

set default sound ting in windows to laptop

old wyvern
#

Trying to get in a game with friends, but mic kinda ruinging it

jovial warren
#

right click the volume and go to the audio settings or whatever it’s called

#

make sure it’s there lol

old wyvern
jovial warren
#

no

quiet depot
#

set mic in windows to laptop and audio to earphones

jovial warren
#

right click it at the right of the taskbar

quiet depot
#

den select default for both in dicksword

jovial warren
#

or use Windows settings

old wyvern
#

Ok I think I got it

#

Disabled the microphone output and enabled the stereo

quiet depot
#

yugi ur mic sounded fine lat time

old wyvern
old wyvern
#

I thought it was from some driver issue after installing linux

#

But after testing with another mic it seems its just an issue with my mic

#

Oh wait no

#

xD

#

I think I just set my output as input

#

amazing

#

xD

#

Thats,,, nice

#

welp

obtuse gale
#

Hello hello

old wyvern
#

Yea I dont think I can separate these

obtuse gale
#

Well shit

unkempt tangle
#

Somebody got expirience with lua?

oblique heath
#

you know what I want to see

quiet depot
#

kangaroos

#

but with wings

oblique heath
#

i know people have joked about this in the past, and i've also given it some thought

#

but i want to see a full SQL implementation using discord servers as the db

quiet depot
#

people have done worse

#

looking at you, yes you, mr hobbyist developer who thought it was a good idea to have ssh access to their server in discord ||I've seen too many developers think this is a good idea||

oblique heath
#

people just love tying things together

hot hull
#

Your hands especially 😏

quiet depot
#

if you react then I'm taking it as you've done that before, or at least thought it was a good idea at one point, even for a split second

#

guess i better react

oblique heath
#

i haven't but i know people who have

prisma wave
oblique heath
#

right??

prisma wave
#

It can scale vertically with new user accounts

#

Or maybe that's horizontally

#

Because 100 server limit

quiet depot
#

this is about as good as bm's immutable db idea

oblique heath
#

which is good

#

🙂

prisma wave
#

^

oblique heath
#

anyways the goal isn't to make this better than a regular sql server

#

but to make it 'good enough'

prisma wave
#

You've heard of esoteric languages, now get ready for esoteric databases

oblique heath
#

since in theory it'll be totally free

quiet depot
#

wonder what the latency will belike

#

db rate limits

#

smort

prisma wave
#

🥲

oblique heath
#

i'm sure people who use it will have similar latency issues from other areas of their setup

hot hull
#

I mean query at startup, save on shutdown

prisma wave
#

lmao

hot hull
#

ez

prisma wave
#

Discord is free

quiet depot
#

memory isn't cheap, it's free

hot hull
#

:kek:

lunar cypress
quiet depot
#

maybe but, bm's immutable db idea was to delete the entire database everytime you edit something

lunar cypress
#

Implementation detail...

quiet depot
#

serious

#

is it actually a thing?

hot hull
#

Lmao

quiet depot
#

and if so how is it good under any circumstance

#

because I really don't know if ur joking or not

lunar cypress
#

Is bm's implementation idea a real thing? not that I know of

quiet depot
#

no I mean immutable databases

lunar cypress
#

but yes I am serious

quiet depot
#

wait didn't you tell me all about this yesterday

#

or was that something else

#

I swear you pasted a big block of something but I can't remember for the life of me what it was

#

no that was fefo's c++ issue

lunar cypress
#

That was some quote from the C++ spec

quiet depot
#

any prior knowledge needed?

lunar cypress
#

I have used open source variants of the one specifically discussed in this and it's pretty neat

#

Uhh, can't remember how much clojure you're gonna see in the talk

quiet depot
#

I don't know any clojure

lunar cypress
#

But to get the idea it shouldn't be needed

quiet depot
#

okie

oblique heath
#

you wanna know the best part about a discord db

#

you have easy access to look through the contents!!

quiet depot
#

another bonus

#

it's great for data redundancy

#

because discord stores everything in multiple places

oblique heath
#

yeah you get all the benefits of discord

quiet depot
#

on its own servers

#

and the servers which belong to the companies it sells all our data to

old wyvern
#

Nice

quiet depot
#

bm will the fp names ever end

prisma wave
#

It has a free tier and a paid tier (boosting to get more emojis)

#

ofc not

quiet depot
#

D:

old wyvern
#

😌

prisma wave
#

😌

quiet depot
#

y don't u make ur own paradigm

oblique heath
#

discord db can act as a blob storage as well

old wyvern
#

EndoBrister

quiet depot
#

we've got lambda calc and turing machine

prisma wave
#

too much effort

quiet depot
#

we're not valve

#

we can count past 2

prisma wave
#

good point

#

well

old wyvern
#

The Elara Paradigmn

prisma wave
#

lambda and turing are kinda total opposites

#

i can't think of an alternative

old wyvern
#

We need an abstraction over functions

pale shell
#

bm you still here?

quiet depot
#

no

#

he left

pale shell
#

fuck

old wyvern
#

Forget composing functions, make it infinitely generate functions by combining every possible combinable function and generate a trivial name for it

prisma wave
#

yeah i left sorry

pale shell
#

I need to find out how he does the github push thing

prisma wave
#

even more abstractions

pale shell
#

where he will commit like 30 things then push in one go

quiet depot
#

give him a few tags and he'll see it when he comes back

old wyvern
#

showMapFilterFilterMapMapRead

oblique heath
#

wait, discord db could legitimately be useful if it's main use is in serving as a backup
it can run alongside a regular db so we get low latency and the benefits of discord's own redundancy

prisma wave
#

lmao

oblique heath
#

then you also get easy access to the contents and you can run a --recover or something if something happens

oblique heath
#

that's fine

prisma wave
oblique heath
#

you'd use a regular sql db for requests

pale shell
#

so you can commit then it will back-log?

oblique heath
#

discord db is only there to back your data up

old wyvern
#

Does discord bot api even provide the "Search" option from the client?

oblique heath
#

that's... a good question

old wyvern
#

Coz if not, it would be even worse

prisma wave
#

probably not

quiet depot
#

that's ok

jovial warren
#

What we talking about here?

oblique heath
#

discord db

quiet depot
#

iterate through every message every time you need something

old wyvern
#

ddb

pale shell
#

like you got can commit 1 then commit 2 then commit 3 and when you push it will all go at once right bm?

jovial warren
prisma wave
#

immutable discord db

quiet depot
#

sql db

oblique heath
#

you can make your own indexes!!! using pinned messages

quiet depot
#

in discord

#

NO BM

#

not immutable

pale shell
#

ok ty

prisma wave
#

YES

pale shell
#

is it better to do that bm?

old wyvern
#

Sounds like the best type of programs, useless ones

prisma wave
#

NEW discord server for every modification

jovial warren
#

You talking about Discord's internal databases?

quiet depot
#

we're not deleting the fucking server every time we make a modification

#

no bardy

#

text channel = table

#

server = database

#

message = row

jovial warren
#

Ah right

#

So you're storing messages then?

quiet depot
#

data

jovial warren
#

Point of this is?

pale shell
#

bm whats that overrated language you use?

quiet depot
#

speed improvements over mysql

old wyvern
#

I mean you could probably workout some sort of indexing system with a message being the index message

quiet depot
#

and latency benefits

oblique heath
#

the point is easy redundancy

jovial warren
#

What's this all for? I'm lost

old wyvern
#

Which is edited on row add

quiet depot
#

the next google bardy

pale shell
#

is it kotlin

jovial warren
#

Lol

oblique heath
#

we want to use and abuse discord being free

old wyvern
#

Disbase™️

jovial warren
oblique heath
#

asap before microsoft gets a hold on it

jovial warren
#

Pig learn Kotlin when

pale shell
#

I fucking hate myself tbh

old wyvern
#

No

quiet depot
#

2 years

old wyvern
#

Pig learn haskell when*

pale shell
#

I messed up the code real badly

quiet depot
#

i will be freeish in 2 years

jovial warren
pale shell
#

and i gotta go around fixing it up

old wyvern
#

Kindly do not spread rumours

#

Fake news bad

pale shell
jovial warren
#

Lol

#

Pig learning Kotlin won't actually take you long at all btw

#

Since you already know Java

old wyvern
#

Kotlin bad

jovial warren
#

Just a matter of getting out of bad habits

old wyvern
prisma wave
old wyvern
#

Allegations

prisma wave
#

Bad habits such as state

old wyvern
#

😌

#

Immutability do be good

pale shell
#

bm, have you seen that chess meme?

old wyvern
#

bm, have you used vesta?

prisma wave
#

no and no

old wyvern
#

welp

prisma wave
#

wait I think I've heard of vesta

old wyvern
#

the control panel

pale shell
#

well there's this kid who goes against the world grandmaster and he starts panaking that's how i feel rn fixing this code.

old wyvern
#

Was trying to setup a reverse proxy to a container without hving to mess with nginx, but I guess thats easier than finding how to set this up

prisma wave
#

lol

#

How would you even do a reverse proxy without some webserver

old wyvern
#

I do have a webserver

#

I have vestacp installed

#

The issue is to get it to point to a non lamp stack project

#

lol

#

After some googling, I found that I need to setup a template for vesta to use

prisma wave
#

Huh

obtuse gale
#

wtf I just found out I had like 15~20 java memory heap dumps between 2 to 4 GB each

#

idek where these came from...

prisma wave
#

yikes

jovial warren
#

Idk how these memory dumpers can even dump that much info in the speeds they do

jovial warren
#

Like 4GB heap dumps in a matter of seconds

#

I mean, transferring data from memory on to disk isn't that hard I suppose

prisma wave
#

Java bad

old wyvern
#

Clearly

prisma wave
#

haskell can do 0 bytes of data transfer in 0s, therefore it is infinitely fast

old wyvern
#

😌

#

Pureness is the best

jovial warren
#

When you read up on semantic versioning properly and realise you've been doing it wrong the whole time lol

half harness
quiet depot
#

yugi

#

it's so much easier to just use nginx directly

jovial warren
#

I thought semver applied to more than just the public API, but apparently it doesn't

#

Internal changes that affect the public API should be marked as patches

old wyvern
#

Should I do it in a separate conf file?

jovial warren
#

So technically, I shouldn't be increasing Krypton's version unless I made API changes

quiet depot
#

absolutely

jovial warren
#

You learn something new every day I guess

quiet depot
#

vesta changes the vhost dir to /etc/nginx/conf.d fyi

#

there's no separate sites-available & sites-enabled

prisma wave
jovial warren
half harness
#

would it be bad to save a file (json) every minute or so?

prisma wave
#

yes

half harness
prisma wave
#

You're going to hell

lunar cypress
#

btw @quiet depot there is no clojure in that talk

old wyvern
#

Do I use an include in that to add the newly defined config?

quiet depot
#

okie

prisma wave
#

You save JSON files every 47 seconds or nothing

quiet depot
#

no

#

nginx will automatically scan conf.d

old wyvern
#

It reads the whole directory for confs?

lunar cypress
#

it's just about "how do we do immutable databases"

quiet depot
#

yes

old wyvern
#

Ah

jovial warren
quiet depot
#

show me your conf before you restart nginx

old wyvern
#

Alrighty

half harness
quiet depot
#

you need to explicitly declare the public ip in it because of vesta (something you don't normally have to do)

prisma wave
old wyvern
#

ah

#

Speaking of which

#

I got botted yesterday

quiet depot
#

@lunar cypress i'll give it a watch later, thanks for the link

old wyvern
#

🥲

jovial warren
quiet depot
#

everyone gets botted

#

literally all servers

half harness
old wyvern
#

Sad

prisma wave
quiet depot
#

if you rent a public server you'll get bot attacks

#

it's a guarantee

old wyvern
#

I see

quiet depot
#

any half assed firewall can usually stop them

jovial warren
old wyvern
#

There were 7k ssh attempts

quiet depot
#

yeah

#

that's normal

old wyvern
#

ah alrighty

quiet depot
#

vesta sets up fail2ban automatically

jovial warren
quiet depot
#

unless you told it not to

half harness
old wyvern
#

It probably installed it

#

I think I just used y for all options in the package installation

quiet depot
#

then you should be safe

old wyvern
#

lit

quiet depot
#

just make sure you yourself don't get ip banned

old wyvern
#

lol

#

I can remove the ip ban through a vpn right?

quiet depot
#

yes

old wyvern
#

Where are banned ips stored?

quiet depot
#

you can also exclude your ip

#

I can't remember

old wyvern
#

Dynamic ip tho

quiet depot
#

pretty sure you can interact with fail2ban thru the web interface tho

#

then you're fine

old wyvern
#

ah

half harness
quiet depot
#

make sure to show me your vhost before you deploy

old wyvern
#

Alrighty

jovial warren
half harness
#

ok

quiet depot
#

bardy I don't really want to learn kotlin

half harness
#

😮

quiet depot
#

there's other languages I want to learn

half harness
#

piggy!

quiet depot
#

kotlin aint one of them

jovial warren
#

Kotlin is debatable

#

I love it because it allows me to do really whack hackery

quiet depot
#

I'd like to learn c, python, go

jovial warren
#

But that isn't most people's cup of tea

prisma wave
quiet depot
#

wat

jovial warren
prisma wave
#

wheres haskell on that list

quiet depot
#

python is an essential language to learn

#

that doesn't mean it's not shit

prisma wave
#

python ez

quiet depot
#

it just means it's essential

jovial warren
prisma wave
#

?

#

you got a source for that claim bud?

quiet depot
#

i'm not looking to learn hobbyist/enthusiast languages like haskell

prisma wave
#

HOBBYIST ????????????????????????

jovial warren
#

Where is Haskell on the top 100 programming languages?

prisma wave
jovial warren
quiet depot
#

scratch is more useful than haskell

prisma wave
#

well

#

if we're judging languages by popularity then java is better than kotlin

prisma wave
#

and python is better than java

pale shell
#

btw bm i've been re-doing a bunch of shit in the code to the best i can do

#

I ain't super smart so i can't make it super good but i'm trying my hardest 🙂

jovial warren
#

Lol

prisma wave
#

r/haskell = 63.2k members
r/kotlin = 49.1k members
curious...

pale shell
#

Kotlin: 62.9%
Haskell: 51.7% numbers dont add up

half harness
#

lol

quiet depot
#

odin

old wyvern
quiet depot
#

they do

pale shell
#

no

#

they dont

#

103%

quiet depot
#

they really do, 62.9% + 51.7% = 114.6%

#

they add up

#

to a number

pale shell
#

no

quiet depot
prisma wave
#

everything

quiet depot
#

where does it prevail over other languages

old wyvern
#

everything

pale shell
prisma wave
#

compilers

#

parsers

pale shell
#

haskell is overrated

prisma wave
#

data validation

#

github uses it for its syntax highlighting iirc, facebook uses it for spam filtering

half harness
#

piggy learn haskell with me 🥰

quiet depot
#

fuck no dkim

half harness
#

😔

prisma wave
#

🥲

pale shell
#

bm, it was probs a last option thing

prisma wave
#

huh

#

?

quiet depot
#

I thought you guys said haskell wasn't really a good language choice, and it was mainly used in academia

#

like ages ago

pale shell
#

like it was a last option thing to use it for facebook or whatever

old wyvern
#

Its just a different approach than traditional ones

old wyvern
#

Its priority is to be "safe"

pale shell
#

btw bm ty for leaving me with deprected code ;D

lunar cypress
old wyvern
#

Yes

prisma wave
#

"pure" might be a better word

old wyvern
#

^

prisma wave
#

😌

pale shell
#

dude you got old af methods

ocean quartz
prisma wave
#

🥶

lunar cypress
#

bro what

quiet depot
#

would a fair comparison be: lambda calc is like the string theory of computation?

prisma wave
#

how so?

lunar cypress
#

no lol

quiet depot
# prisma wave how so?

cuz well the standard model is used everywhere, but there's still people who believe string theory is the way forward, and hell maybe they're right, they're just not there yet

old wyvern
#

Its just a higher form of abstraction than our current model

lunar cypress
#

"the standard model"?

#

"the current model"?

#

what are you all talking about?

prisma wave
#

the model of "stuff"

quiet depot
#

physics

#

the standard model of physics is what we use today

lunar cypress
#

(in your analogy (?), I mean)

quiet depot
#

the standard model would be turing

lunar cypress
#

that doesn't make sense

#

Lambda calc is just as standard as Turing Machines

#

In fact it's probably used more in theoretical computer science

old wyvern
#

by the current model I mean more of our current way of solving a problem, either by structural or object orientation

lunar cypress
#

because it's simpler for proofs

#

also there are a like a million models in physics

quiet depot
#

good points

jovial warren
lunar cypress
#

And lambda calc and turing machines have been proven to be entirely equivalent

prisma wave
#

clever people like lambda because you can mathematically prove that programs are correct
we like lambda because it has funny words like monad

old wyvern
#

Church-Turing thesis

jovial warren
#

One of our weapons in the fight against spam, malware, and other abuse on Facebook is a system called Sigma. Its job is to proactively identify malicious actions on Facebook, such as spam, phishing attacks, posting links to malware, etc. Bad content detected by Sigma is removed automatically so that it doesn’t show up in [...]Read More...

prisma wave
#

i shared that like 5 minutes ago lol

#

but yeah

old wyvern
#

lol

jovial warren
#

Lol

lunar cypress
#

For concrete, high level programs there are different ways to prove correctness

#

There's one for imperative programs too

#

although you definitely don't use turing machines for that

ocean quartz
ocean quartz
#

Good point

prisma wave
jovial warren
prisma wave
#

said nobody ever

lunar cypress
jovial warren
#

If it can run on your computer it can run on a turing machine

#

So turing machine = most basic computer and every computer

lunar cypress
#

you don't want to prove the correctness of a java program with turing machines

jovial warren
old wyvern
#

On bottom*

prisma wave
#

lambda calculus (in this context) is higher level therefore on top

#

yeah thats what i thought

prisma wave
old wyvern
#

Bardy gonna build the foundation of a house on its roof

#

🥲

prisma wave
#

🤣

#

every computer runs machine code therefore machine code best language

old wyvern
#

Obviously 😏 , Cant wait to get through more assembly

lunar cypress
#

lambda calculus is just as high level as turing machines in this sense

old wyvern
#

All my homies live on assembly

lunar cypress
#

they're just different ways to express computation

prisma wave
#

yeah hence the edit -- "emulating" lambda calculus on a turing machine could be considered higher level though

lunar cypress
#

Should have paid more attention at the end of my basics of computer science lecture

#

there was a lot of interesting stuff about this, half of which I've already forgotten

#

But yeah it's also possible for a turing machine to run generic turing machine programs

#

And you can encode any turing machine in a finite amount of symbols

prisma wave
#

ooo

lunar cypress
#

I think even one symbol is sufficient as your alphabet because amazingly turing machines are countable

pale shell
prisma wave
#

cute

pale shell
#

lol

#

pls i was happy 😭

half harness
#

lmaoo

dawn hinge
#

Good job yatopia

dawn hinge
steel heart
#

Bruh java is weird

obtuse gale
onyx loom
#

lol

half harness
#

lol

steel heart
#

Apparently we use
int a = switch(b) {
case 1,3: {
yield 5;
}
default: {
yield -1;
}
}

#

Why is it called yield

obtuse gale
#

I mean you aren't exactly returning

half harness
#

what is yield

obtuse gale
#

it yields a result

half harness
#

yes

#

i just googled

steel heart
#

Uh well but even so, return wouldn’t have been so wrong or does that allow us to return in a method inside the switch case?

half harness
#

its looking more like kotlin

obtuse gale
#

I'd love to test that tbh

#

I would be shocked if return was forbidden, I would like it to exit the method instead

steel heart
#

Yeah

prisma wave
#

That's almost definitely exactly what happens

obtuse gale
#

ugh installing java 16 😫

sly sonnet
#

You can't really say that one language is shit and other is not...

obtuse gale
#

wat...

sly sonnet
#

i am talking about the previous beef

onyx loom
#

wxip, ever heard of haskell?

obtuse gale
#

I mean you totally can, nothing is stopping you from doing so lol

#

Whether that is objectively true or not wildly depends

lunar cypress
#

wouldn't make sense in an expression switch

sly sonnet
#

by that

lunar cypress
obtuse gale
#

oh bummers

prisma wave
#

Oh huh

#

I guess it's just to resolve ambiguity then

prisma wave
#

Thoughts on Haskell?

onyx loom
sly sonnet
#

just looked it up on google, seems very similar to python or other lazy people languages

onyx loom
#

lol

prisma wave
#

Lol

onyx loom
#

haskell is similar to python

steel heart
#

What if Haskell is python 👀

onyx loom
#

👀

prisma wave
#

Monad pattern in python

onyx loom
#

python pure

prisma wave
#

God I wish

oak raft
#

right?

onyx loom
#

everything except haskell and python are bad

half harness
#

everything except kotlin (and maybe haskell) are bad

half harness
onyx loom
#

unpopular opinion

boreal needle
#

what about java

#

is java bad

onyx loom
#

please state ur facts dkim

half harness
#

java bad

prisma wave
half harness
#

oh phew

static zealot
#

you all suck. YAML is the best programming language

half harness
#

bm is here

boreal needle
static zealot
#

HTML not that bad either

#

maybe with a bit of CSS

#

otherwise not as good

boreal needle
#

ok

#

what about java with lombok

static zealot
#

PHP not bad either

static zealot
boreal needle
#

or is that just bad kotlin

static zealot
#

java with lombok it's a godsent

prisma wave
#

data class < record < data

oak raft
old wyvern
steel heart
prisma wave
static zealot
half harness
boreal needle
half harness
#

😤

static zealot
old wyvern
static zealot
#

oh ok good

#

I like it there

old wyvern
#

Not for long

static zealot
#

k

old wyvern
#

l

static zealot
#

m

old wyvern
#

n

static zealot
#

o

old wyvern
#

p

static zealot
#

r

half harness
#

?

old wyvern
#

t

static zealot
#

q

boreal needle
#

v

half harness
#

staff spamming!!1!!!1!

old wyvern
#

s

prisma wave
old wyvern
#

#ban-blitz

half harness
#

demote! 🚨

prisma wave
#

shit's like marmite

static zealot
static zealot
static zealot
#

-ban DKIM

half harness
#

no perms :D

oak raft
half harness
#

hi remence

static zealot
oak raft
#

hi dkim

half harness
onyx loom
#

terrible language

#

what in the fuck

#

13% dread using rust

half harness
#

bm

#

are you there

#

i have a very important question for you

#

oh well that sucks

#

ok

prisma wave
#

yes

static zealot
prisma wave
#

im here 😄

half harness
prisma wave
half harness
old wyvern
#

Yes!

prisma wave
#

hmmmm

half harness
#

and abandon haskell?

prisma wave
#

it's no haskell

#

but sure

onyx loom
prisma wave
#

🥲

old wyvern
half harness
#

i can't learn all

old wyvern
#

False

half harness
#

too much for my smol brain to handle

old wyvern
#

You can

half harness
#

haskell is already a lot

#

bm

#

another question

half harness
#

do you know more rust or haskell

prisma wave
#

more haskell for sure

onyx loom
#

Rust mitten was only a short stay

half harness
#

ok then ill just use haskell

onyx loom
#

why tho? xd

half harness
#

rust can be for 5 years later

#

bm

#

anyone want to do coc

#

im bored 😦

old wyvern
#

If more people are up for it

#

sure

half harness
#

i dont like public games because 2/3 of the times its shortest mode

#

made me realize how much i hate it

prisma wave
#

haskell > rust

#

rust is good

#

but it is imperative ☹️

old wyvern
#

😔

jovial warren
#

I almost just lost a night's worth of work I did trying to add Adventure to Waterfall by running ./waterfall patch instead of ./waterfall rebuild lol

#

IJ's local history is officially god tier though

boreal needle
#

does kotlin have anything like c#'s yield return

ocean quartz
#

What is C#'s yield return?

boreal needle
#

essentially an implicit collection

#
for (int i in {1, 2, 3, 4, 5}) yield return i```
#

which will return a collection

prisma wave
#

so list comprehension

boreal needle
#

idk what its called

#

not necessarily list comprehension from what im getting from google

old wyvern
#

Kotlin's sequences act similar

ocean quartz
#

Was gonna say the closest thing I can think of are sequences

prisma wave
#

[1..5] 🙂

ocean quartz
#

(1..5) 🙂

old wyvern
#
val mySeq = sequenceOf {
  for (i in setOf(1, 2, 3, 4, 5)) yield i
}
boreal needle
#

yeah that looks pretty close

prisma wave
ocean quartz
old wyvern
#

😂

prisma wave
#

i've got the perfect language for you!

old wyvern
#

😌

obtuse gale
#

oh no

oblique heath
#
gimme = map (\x -> x)
main = print $ gimme [1..5]
prisma wave
#

should i steal helpchat's xp algorithm

#

for an xp bot

#

it seems reasonable

oblique heath
#

why the🤨

onyx loom
#

didnt someone already do that bm

old wyvern
#

bm did

#

well he didnt make a bot

#

but found a close enough function

onyx loom
#

ik that

#

someone else made a bot using the same formula im pretty sure

prisma wave
#

lol

old wyvern
#

lol

ocean quartz
prisma wave
oblique heath
#

is it invalid

prisma wave
#

no

#

but redundant

oblique heath
#

because of the (\x -> x)?

prisma wave
#

cuz of the whole thing

#

but yes

oblique heath
#

isn't this what everyone else was doing though

#

or wait

#

were they getting the sum of the list?

prisma wave
#

Oh Its a direct translation

#

well [1..5] is already a "sequence" so

#

Haskell most concise language best language

cinder flare
#

guys im confused

prisma wave
#

aren't we all

cinder flare
#

which of the following is the worst case run time for Quicksort that uses the middle element as pivot

#

1 2 5 3 4

cinder flare
#

or 3 2 1 5 4

#

aren't they equally bad since they're the max and min of the list

oblique heath
#

the swcond one

#

second*

#

actually

cinder flare
#

what's the difference

oblique heath
#

wait

cinder flare
#

@prisma wave

oblique heath
#

maybe

#

the second

cinder flare
#

sorry for ping i am literally taking a test lol

oblique heath
#

only reason i say that is because the secone one requires the elements to be swapped

#

for the left side and right side

cinder flare
#

oh I seee

oblique heath
#

not sure if that actually affects it though

cinder flare
#

okay because they seem equally bad running time wise

oblique heath
#

yeah

#

very weird, they must be looking for you to notice something very specific

prisma wave
cinder flare
#

none right

prisma wave
#

Ah that website

cinder flare
#

all of them require a tree traversal

prisma wave
#

Yeah none I think

obtuse gale
#

"none" instead of "None"

#

🥲

cinder flare
prisma wave
#

"None" instead of "Nothing" 🥲

cinder flare
#

fuck this is like the worst tree to traverse

oblique heath
#

left mid right

cinder flare
#

is id dbace

#

or dbaec

old wyvern
#

bdaec

oblique heath
#

bdaec

cinder flare
#

fucking fuck

#

bro i only got 82.5/100

obtuse gale
#

"only"

cinder flare
#

yeah and it was open book open notes open discord

obtuse gale
#

I'd be more than content with that lol

#

lmao

cinder flare
#

I want a fucking A fefo

oblique heath
#

how much time did you have for it

cinder flare
#

60 minutes

old wyvern
#

Whats the point?

oblique heath
#

thats not bad

cinder flare
#

i was up to 45

obtuse gale
#

if I stress myself enough to always try and get 100% I would have committed suicide already

old wyvern
#

open-everything quiz? damn

obtuse gale
#

unhealthy

cinder flare
old wyvern
#

We can it like exams

#

Camera on, mic on

cinder flare
#

it's easier to just let people do stuff and actually learn

half harness
#

GASYUDHIUAHSJD coc hates me, just got shortest mode 4 times in a row 😦

oblique heath
#

ew camera on??

old wyvern
#

mhm

cinder flare
#

i don't have a camera on my pc and my mic is a dynamic mic that picks up nothing lol

#

wouldn't help them

#

people always find ways to cheat

old wyvern
#

Not that people dont still manage to copy

cinder flare
#

so might as well make it not cheating so that you actually try to learn

old wyvern
#

sad

cinder flare
#

i mean hell, I just learned the in order traversal for that tree lmao

old wyvern
#

Thats a just a normal tree tho

#

You probably just missed it while rushing through

cinder flare
#

but it confused me because each node only had one child

oblique heath
#

not the root node 😎

cinder flare
#

😦

#

holy fucking shit

#

that brought me from an A- to a B

#

im gonna kms

old wyvern
#

rip