#dev-general

1 messages ยท Page 412 of 1

old wyvern
#

^^

half harness
#

i can't yet

#

i can't leave kotlin

#

not yet

old wyvern
#

And this stops man from evolution

#

Forever stuck in the ways of the past

hot hull
#

Y'all kicked from Rust gang

old wyvern
#

๐Ÿ˜ฎ

half harness
#

rust ๐Ÿคข

hot hull
#

Yugi, you don't mind if I remake the renderer before you right?

old wyvern
half harness
#

๐Ÿชฆ

old wyvern
#

idm

hot hull
#

I mean mine will be just experimenting, since I've no experience in rust whatsoever

old wyvern
#

Ill probably be a bit busy for a week or two anyway

prisma wave
old wyvern
#

Exams gonna begin

half harness
#

๐Ÿชฆ

hot hull
#

I got two weeks of intership left, then I got all the time in the world again

prisma wave
#

Rust and Go are the only good imperative languages

old wyvern
#

Dkim lost a million braincells in a minute

prisma wave
#

And Rust is like 50% imperative

onyx loom
#

no energy, lol

old wyvern
#

9 months left for me

old wyvern
prisma wave
onyx loom
#

that means no haskell sir

old wyvern
#

Haskell generates energy

onyx loom
#

๐Ÿค”

#

haskell is that powerful ๐Ÿ˜ฎ

half harness
prisma wave
#

Haskell is perpetual motion

old wyvern
#

Law of conservation does not exist for haskell

#

Its above that

half harness
old wyvern
#

The ultimate abstraction

half harness
#

wait a minute

prisma wave
#

wait a minute

old wyvern
half harness
old wyvern
#

๐Ÿฅฒ

#

Sad moment

prisma wave
#

Haskell is keeping him going

old wyvern
#

๐Ÿ˜Œ

prisma wave
#

It's like a buff

old wyvern
#

The life force

prisma wave
#

You can't go below 300000 as long as you remember some haskell

old wyvern
#

๐Ÿ˜Œ

half harness
#

can i do this: type printStr = putStrLn?

prisma wave
#

no

half harness
#

or just things like String

prisma wave
#

It's not a type

half harness
#

ok

prisma wave
#

you can just do printStr = putStrLn though

half harness
#

ah okay

#

haskell ez ```hs
main = do {
print(12345);
putStrLn("hello");
}

prisma wave
#

๐Ÿคข

#

I am going to hurt you

half harness
#

but its valid syntax

wind bolt
#

Thoughts ?

prisma wave
#

Not enough Haskell

old wyvern
#

Die

#

Use haskell bracket style if you're succumbing to it

half harness
old wyvern
prisma wave
half harness
#

really?

old wyvern
#

In kotlin

prisma wave
#

Think so

#

In java too

half harness
#

cool

old wyvern
#

In java you have something even better

#
int a = 1;
while ((a = 1) == 1) {{{{}}}};
half harness
#

blitz learn haskell

#

its so easy

#

looks like java and kotlin combined

ocean quartz
half harness
#
main = do {
    print(12345);
    putStrLn("hello");
}
old wyvern
half harness
#

lol

old wyvern
#

You WILL be banished

prisma wave
old wyvern
#

Shut

static zealot
#

yo @ocean quartz so with your gui lib when I use setItem to set for example a next page item or when I use the filler, it actually tries to put items in the same slots when I use addItem so I have 9 items that just dissapear (since I have all the 9 slots at the bottom set to filler and next page items). Is this an intended feature? xD

old wyvern
#

Mf gui kotlin dsl when?

ocean quartz
#

Soon

prisma wave
old wyvern
#

๐Ÿ˜ฎ

prisma wave
half harness
#

wot

ocean quartz
old wyvern
prisma wave
#

I think so

old wyvern
#

I thought it was just a few extensions

#

Nvm then

prisma wave
#

can't remember tbh

#

Maybe not

old wyvern
#

Ah

static zealot
ocean quartz
#

Can you show me your code?

static zealot
#

I have some weird workaround rn with slot counting and shit. sure gimme 2 minutes

#

well technically what I do is set the prev and next page items and then the filler and then the add items

#

this is the old thing I've tried

ocean quartz
#

You're setting and then filling thonking

static zealot
#

well I have no problem with the set and fill

#

those work fine

#

Its just that it skips like 9 heads

#

so if I have 45 heads it fills the entire first page but if I have 46 it doesn't go to the next page

#

same for all heads from 56 to 54

#

46 to 54*

#

it adds the 55th head to the next page

#

Right now tho I have a count variable and I use setItem instead

#

I haven't tested it yet

#

but what I do is if there is an item (in that slot) I just skip and increase the count

#

and so on

#

and if there is no item

#

I set it

old wyvern
sweet cipher
#

Would it be unnecessary to check for crafting recipes async because I have to loop through thousands of recipes?

static zealot
prisma wave
old wyvern
#

Follow someone home

static zealot
#

ohhh

half harness
#

what if no one is waiting for you at home

stuck harbor
#

it took me ages to see follow traffic rules someone is waiting at home for you

#

all i saw for a while was follow someone home

static zealot
#

I didn't. I only saw it when yugi told me

stuck harbor
#

also reposting thanks

static zealot
#

yw

obtuse gale
ocean quartz
static zealot
ocean quartz
#

It should yeah

#

Time to work on a Kotlin dsl and on Adventure integration ๐Ÿ‘€

static zealot
ocean quartz
#

I didn't xD

static zealot
#

I think I pinged you when I showed it

#

1 sec

#
val specialSerializer = LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().build()
val legacySerializer = LegacyComponentSerializer.legacyAmpersand()

fun String.color(): String = specialSerializer.serialize(legacySerializer.deserialize(this))```
#

lmao

ocean quartz
#

That's scary lmao

static zealot
#

what it does, it takes the string and covnerts it to a component so I can support &#aaFF00 hex type

#

and then convert it back to a string

#

that uses the &x&x&x

#

thing

old wyvern
#

Ya'll need some haskell in your life

static zealot
#

I could've just made my own regex thing but I'm to bad at regex and to lazy for that

#

lmao

ocean quartz
obtuse gale
static zealot
#

and I wanted my config to look nice at least

#

xD

obtuse gale
#

Sucks

static zealot
#

yeah he'll add it sometime

#

but until then

#

I'll stick with this I guess

wind bolt
#

We are moving everything to DI

ocean quartz
#

Ah okay, good

wind bolt
#

All the necessary stuff was moved into the simplex module class

#

The core shouldn't ever be used by the modules

old wyvern
#

@ocean quartz Should we just use luck's relocator as is and create a temp file with it or something? xD

ocean quartz
#

Hmm would that work? Doesn't sound good xD

old wyvern
#

i mean it should work welp, actually lemme first give the current solution a try first

static zealot
#

man maps really start to be helpful now that I know how to use them

#

thanks matt xD

old wyvern
#

maps as in the map function or an actuall map?

static zealot
#

map function

old wyvern
#

ayy

#

another fp enjoyer

prisma wave
#

foldr

old wyvern
#

๐Ÿ˜Œ

static zealot
#

I used to have like 7 lines just to color each line of a List of strings. Now its just 1 line

old wyvern
#

Now you see the power of haskell?

prisma wave
#

map (translateAlternateColorCodes '&') list ๐Ÿ™‚

ocean quartz
old wyvern
#

Awesome

static zealot
prisma wave
#

mutable ๐Ÿฅถ

#

why on earth

#

why are you doing that

#

please

#

i want to die

onyx loom
#

lmfao

prisma wave
#

stop

#

get rid of it

static zealot
#

huh?

pale shell
#

@prisma wave enjoy i done more work for you :))

static zealot
#

what's wrong with it

prisma wave
#

make it immutable

#

NOW

onyx loom
#

it doesnt need to be mutable

prisma wave
#

^

onyx loom
#

๐Ÿ˜‚

static zealot
#

well I do change it later

prisma wave
#

mutability only where necessary

onyx loom
#

bm is gonna have a heart attack

#

change it NOW

prisma wave
#

im shaking rn

#

just punched the wall

#

twice

static zealot
#

ok ok I'll change it lmao

prisma wave
#

im about to kick the cat

static zealot
#

just stop

static zealot
#

removed it

#

entirely

onyx loom
#

gonna commit a war crime too?

prisma wave
#

thanks

static zealot
#

no more mutability

prisma wave
#

yes

#

multiple war crimes incoming

fickle tusk
#

does anyone know a good kits plugin ?

prisma wave
static zealot
#

fun List<String>.color(): List<String> = map { it.color() }

#

better?

ocean quartz
#

So I have a question, how would you guys approach this, I have the main item builder which well uses strings and all that, I want to have it work with components but keep the string as well, should I do two item builders? Sounds ass ๐Ÿ˜ฉ

prisma wave
#

you don't need the explicit return type

#

but yes

fickle tusk
prisma wave
#

SO MUCH better

prisma wave
fickle tusk
#

Definitely not.

obtuse gale
static zealot
fickle tusk
#

Either some weird porn, or jumpscare.

pale shell
prisma wave
#

it's neither

onyx loom
#

neither

static zealot
fickle tusk
#

I don't trust anyone on discord anymore

onyx loom
#

itll change ur life with the best kits plugin ๐Ÿ™‚

prisma wave
#

i didnt get to level 76 in the helpchat discord by posting porn

static zealot
#

especially if you hit the jackpot

prisma wave
#

im helpful role

pale shell
#

wait what

obtuse gale
fickle tusk
#

got about 5-10 jumpscares in the last week

old wyvern
static zealot
old wyvern
#

Watch the video

fickle tusk
#

Yeahhhh

prisma wave
#

i mean it's metaphorically porn

fickle tusk
#

but

old wyvern
#

Better than porn

fickle tusk
#

links

#

I don't trust links

old wyvern
#

Its pinned

obtuse gale
#

then why ask

static zealot
onyx loom
#

u have orgasms over it dont u bm

static zealot
#

please watch this

#

please

prisma wave
prisma wave
static zealot
fickle tusk
#

Honestly I'm just going to install any kit plugin at this point.

#

๐Ÿ˜‚

obtuse gale
#

cool

fickle tusk
#

people here weird asf.

prisma wave
#

whats so bad about good old fashioned essentials

obtuse gale
#

mate you asked a question

old wyvern
obtuse gale
#

we gave you answers

#

whatever

#

good luck

prisma wave
#

can you watch the video please

static zealot
prisma wave
#

๐Ÿฅฒ

old wyvern
#

Please watch the video @fickle tusk

prisma wave
#

can you make a review

static zealot
#

pretty please

old wyvern
#

Yes please

prisma wave
#

ill make you a kits plugin free of charge if you do a 2 paragraph review

fickle tusk
#

I'm definitely not going to watch any video

obtuse gale
#

there is no video ๐Ÿ™„

old wyvern
#

You dont even need to download it fingerguns

ocean quartz
#

First step is to convert everything to gradle kts

prisma wave
#

stack*

old wyvern
static zealot
old wyvern
#

How dare you speak of Sir Simon as such

static zealot
#

and I'm actually not kidding

#

lmao

prisma wave
#

2 hours

#

๐Ÿฅถ

old wyvern
prisma wave
#

it's not a jumpscare

old wyvern
#

Its not a jumpscae lorenzo

fickle tusk
#

that's what the last 5 people said to me ๐Ÿ™‚

old wyvern
static zealot
old wyvern
#

Wha?

#

Its really not

onyx loom
#

if u think its a jumpscare, just be prepared for one lmao, if u expect a jumpscare ull never be scared

fickle tusk
#

just that preview scares me

#

those eyes bro

old wyvern
#

lmao

prisma wave
#

it's terrifying

old wyvern
#

Its just funny

prisma wave
#

but not a jumpscare

old wyvern
#

xD

fickle tusk
#

not watching it bud

static zealot
prisma wave
#

your loss

old wyvern
#

"Uncanny valley"

static zealot
#

well his loss

old wyvern
static zealot
#

we tried

prisma wave
#

ever heard of haskell btw?

half harness
#

HASKELL

#

๐Ÿ˜

old wyvern
#

How bad can a wombo video even be

prisma wave
#

look at happy customer dkim19375!

static zealot
prisma wave
#

everyone loves haskell!

static zealot
#

did BM beat you again?

prisma wave
#

again?

old wyvern
onyx loom
#

java noob turned haskell pro

prisma wave
#

(inspiring)

lunar cypress
old wyvern
#

xD

prisma wave
#

lmao

half harness
#

lol

onyx loom
#

morse code blinking

#

epic

old wyvern
#

blink blink

half harness
#

blink

prisma wave
#

blinking is impure

old wyvern
#

But... but,...

static zealot
old wyvern
#

My state remains

lunar cypress
prisma wave
#

AAAAAA

half harness
#

memecandy?

prisma wave
#

the ivory tower is under siege

old wyvern
prisma wave
#

maybe

#

simon will protect us

half harness
#

bm tell me more about the awesome haskell ๐Ÿ˜Œ

prisma wave
#

hmmm

prisma wave
#

did you know haskell had data classes before it was cool

old wyvern
#

its not data classes tho

#

๐Ÿฅฒ

#

class bad

prisma wave
#

records might be a better term

old wyvern
#

oop bad

#

yes!

#

Functional VM when?

#

Functions as bytecode

prisma wave
#

we need a cpu architecture that will only execute pure functions

old wyvern
#

A vm can technically implement that

#

xD

#

Anyone wanna chess?

half harness
#

if I put /src/ in gitignore, why doesn't it ignore the things in src folder?

#

and whys there a hacker in voice 1

obtuse gale
#

why would you put the single most important part of a program in gitignore....

prisma wave
half harness
#

๐Ÿ˜ฎ

prisma wave
half harness
#

yes

#

pls

#

i want to use haskell skills

prisma wave
#

pog

stuck harbor
#

bm you shoulda asked want coc?

half harness
#

i know almost nothing

#

but

prisma wave
#

๐Ÿ‘€

#

coc is where i learnt most stuff

#

u just have to have about 60 google tabs open

half harness
#

uh

#

what does coc stand for

#

oh

#

ok

prisma wave
#

clash of code

#

lol

half harness
#

i forgot

prisma wave
#

@old wyvern

half harness
#

fastest ๐Ÿคข

prisma wave
#

๐Ÿ™„

half harness
#

how do u make a clash

prisma wave
#

Activities > Compete

half harness
#

ic

#

thx

#

is no one going to join ๐Ÿ˜ข

prisma wave
#

๐Ÿฅฒ

#

oh hey johnny

half harness
#

say something when it starts

#

since im in mc rn

prisma wave
#

ok

lunar cypress
#

it will make a bling sound

half harness
#

ok

#

ima join vc

#

because that one guy

prisma wave
#

that looks fun

half harness
#

lol

#

can someone ping me rq

prisma wave
#

@half harness ?

half harness
#

thx

#

oh its starting

#

kewl

#

who is isuckatthesethings

lunar cypress
#

ok what are we allowing

half harness
#

haskell

#

java

#

kotlin

#

idk

static zealot
#

everything but shortest

#

nvm

#

why did you guys add shortest?

#

Welcome to python gamemode

prisma wave
#

using python in shortest is sorta ๐Ÿ˜

lunar cypress
#

yeah that's why im asking

prisma wave
#

up to you

#

python is boring tho

static zealot
#

516

#

not bad xD

#

99 is my best

#

wait I think I can get 96

old wyvern
static zealot
#

yep 96

#

not bad

old wyvern
#

Anyone up?

static zealot
#

we're like 6 playing COC

#

join

old wyvern
#

Oh wait

static zealot
#

its shortest

old wyvern
#

Oh

static zealot
#

so you got time

old wyvern
#

One sec

static zealot
#

xD

#

I've got no idea how to make this smaller

old wyvern
#

Thats not the right link blitz

static zealot
#

ugh

old wyvern
#

Thats the ide link

#

not the clash link

static zealot
#

@prisma wave when you're done please review mine and tell me if there was anyting else I could've done

prisma wave
#

haskell 1 liners ๐Ÿคค

#

okay

static zealot
#

yeah I mean haskell and python will be competing here

#

but I do believe python will win

half harness
#

i have no hope

#

why is converting to ascii so hard

static zealot
#

75 damn

half harness
#

idek how to combine Chars

static zealot
#

python wins again

#

xD

half harness
#

luckily bm told me how to read the fun :: param stuff

static zealot
#

that was to be expected

prisma wave
#
import Data.Char
let ascii = ord 'a'
half harness
#

yea

#

i know about that

#

oh wait

#

a minute

prisma wave
#

what's the issue then lol

half harness
#

im confused

#

normally ild have a string

#

then just add the char on

#

while looping

prisma wave
#

@static zealot i dont think there's much you can really do there, maybe sum{it.toInt()}

half harness
#

but i can't now

prisma wave
#

that's not even what you have to do?

#

sumBy*

static zealot
#

oh

half harness
#

o

static zealot
#

I didn't know about that

prisma wave
#

you convert each char to ascii, sum it up, and then sqrt

static zealot
#

well next time I guess

#

4 more chars I can save

prisma wave
#
sum (map ord str)
lunar cypress
#

ok if someones gonna play unfair, ima beat them at least

prisma wave
#

heh

lunar cypress
#

My actual solution would be 92

prisma wave
#

in clojure?

lunar cypress
#

yea

prisma wave
#

thats pretty good

#

omg 56

lunar cypress
#

||(ns Solution(:gen-class))(defn -main[& _](prn(int(Math/sqrt(apply +(map int(read-line)))))))||

#

clojure program

static zealot
#

please no more shortest next

#

thank you

prisma wave
#

nice

#

shame you need the ns

lunar cypress
#

yep

prisma wave
#

you could probably beat python if you didn't

lunar cypress
#

totally

#

ok maybe

half harness
#

i give up

prisma wave
#

what do you have rn

half harness
#

uh

#

literally nothing

prisma wave
#

lol

half harness
#

idk how to use mappings yet

lunar cypress
#

yup, wouldve beaten python

prisma wave
#

didnt you use them earlier?

lunar cypress
#

it's 50 chars

prisma wave
#

wow

half harness
#

lol

prisma wave
#

map ord string

#

or line

half harness
#

what is ord?

prisma wave
#

a function

#

from Data.Char

#

that converts char -> ascii

half harness
#

hPutStrLn stderr (sum (map ord line)) well i tried this...

#

didn't work

prisma wave
#

uhhh

#

probably because that's still putStrLn kinda

#

why debug tho?

half harness
#

idk

prisma wave
#

lol

half harness
#

ill try print

prisma wave
#

welp 21 seconds, here's my uncompressed solution ```hs
import Data.Char
main = do
line <- getLine
let total = sum $ map ord line
print $ floor $ sqrt $ fromIntegral total

half harness
#

no time

old wyvern
#

boiiissss

#

GOTEMMM

prisma wave
#

omg ruby

#

sweeps us all at the last minute

old wyvern
#

puts Math.sqrt(gets.chomp.chars.map(&:ord).sum).floor

lunar cypress
#

still would've beaten you with clojure ๐Ÿ˜”

old wyvern
#

๐Ÿฅฒ

prisma wave
#

sum $ map ord line == sum (map ord line)

lunar cypress
#

I'm actually thinking about writing them and asking them to treat it like other scripting langs

prisma wave
#

that seems fair

#

it would be nice if kotlin was in script mode too

prisma wave
#

Reverse and shortest ?

static zealot
#

yo removed fastest and left shortest?

#

no thanks

half harness
#

lol

prisma wave
static zealot
#

just let all languages

#

and no shortest

half harness
#

fInE

lunar cypress
#

the trickster

prisma wave
#

o

#

lol

#

uhhh

lunar cypress
#

bro

static zealot
#

just gonna spam this

#

lmao

prisma wave
#

when the staff member spams ๐Ÿฅถ

static zealot
#

I am not a moderator tho

#

so its fine

#

just lmk when you wanna start

#

are we waiting for you @old wyvern ?

#

who's capofcave?

prisma wave
#

some guy from my coding server

static zealot
#

what coding server?

#

cave of code?

prisma wave
#

nah

#

lemme

half harness
#

dev den

#

probably

prisma wave
#

mhm

static zealot
#

well I guess we'll start

#

kk will join later

#

ty

prisma wave
#

okay

half harness
#

noo

#

not fastest

#

sorry bm

#

but no haskell

prisma wave
#

๐Ÿ˜ฆ

static zealot
#

wait does kotlin have no List#join ?

lunar cypress
#

DAMMIT

#

those damn tests are taking too long

prisma wave
lunar cypress
#

and what, you have a coding server now? you don't have enough power yet?

static zealot
#

yeah I just forgot I have to give a separator myself otherwise it just uses ,

lunar cypress
#

And who is redempt

static zealot
#

damn man

prisma wave
#

another guy from my server

prisma wave
lunar cypress
#

tell this coward to share code

prisma wave
#

lmao

prisma wave
#

there u go

half harness
#

why isn't intellij scratch file working ๐Ÿ˜ฆ

static zealot
prisma wave
#

cuz you should be using haskell

static zealot
#

lmao

#

omg I'm an OG

prisma wave
#

yes

static zealot
#

even tho I just joined

#

I love it

prisma wave
#

all helpchat members get OG role

half harness
static zealot
#

ah

prisma wave
lunar cypress
#

ok send me invite

prisma wave
#

just change your mindset bro

half harness
#

aw

prisma wave
#

good things will happen to you if you make them happen ๐Ÿ™‚

static zealot
#

its been empty for a while now

half harness
#

woah

#

wha

prisma wave
#

๐Ÿ˜ฎ

static zealot
prisma wave
#

how

#

lmao

prisma wave
#

dkim ๐Ÿฅฒ

#

oi

#

join

static zealot
#

@half harness

wind bolt
#

B

static zealot
#

C

half harness
#

fastest again :c

static zealot
#

wait is this for real?

#

I didn't test it lmao

#

ah I forgot to cast back to int

#

nice

old wyvern
#

Are you guys still playing?

static zealot
#

yeah

old wyvern
#

Link

#

I went to have dinner

static zealot
#

new one

old wyvern
#

Tag everyone?

prisma wave
#

@everyone

loud gyroBOT
#

The 'everyone' mention is disabled so you can't annoy people.

prisma wave
#

๐Ÿ˜ฆ

half harness
#

@everyone

old wyvern
#

@everyone

loud gyroBOT
#

The 'everyone' mention is disabled so you can't annoy people.

ocean quartz
#

Cube should make a coc role

obtuse gale
#

yum

old wyvern
#

yes!

static zealot
#

@jovial warren @old wyvern @jovial warren @cinder flare @half harness @ocean quartz @obtuse gale @obtuse gale @stuck harbor @forest pecan @lunar cypress @hot hull @steel heart @surreal quarry Join COC!!!

stuck harbor
#

no

prisma wave
#

๐Ÿฅถ

half harness
#

no

obtuse gale
ocean quartz
#

No Coc

static zealot
#

yeah BBG is there as well twice

#

I just copied an old ping

obtuse gale
#

yeah but i don't care about bardy

static zealot
#

to lazy to write another one lmao

old wyvern
static zealot
#

what for? xD

#

its not as fun as my couch

ocean quartz
old wyvern
#

ew

static zealot
obtuse gale
stuck harbor
#

we need coc||k|| role

old wyvern
static zealot
ocean quartz
static zealot
#

join you plebs

ocean quartz
#

Nay

static zealot
#

euclidian distance

#

hell na

#

h

forest pecan
#

4 dimensions

#

lmao

prisma wave
#

๐Ÿฅถ

static zealot
#

idk what this is

#

I'm lost

prisma wave
#

this one sucks

static zealot
#

I think I got it

#

but not sure

ocean quartz
#

Damn, this is much harder than i thought, to have a way to support both components and legacy shit ๐Ÿ˜ฉ

obtuse gale
#

git gud

static zealot
#

for some reason I had to print out index+1

#

...

#

why the fuck doesn't it count from 0 in the results?

forest pecan
#

idk

forest pecan
static zealot
#

its kinda trash I spent like 2 minutes trying to figure it out

forest pecan
#

๐Ÿ˜ฉ

forest pecan
#

Damn

static zealot
#

it doesn't really matter just calculate the distance between every point that's on the same plane and sum them up

#

the lowest sum is the winner

#

in math?

forest pecan
#

thats not valid equation

#

lmfao

#

1+/2 *2

#

wtf is that

#

lol

static zealot
#

what the fuck is this? 1+/2

#

lmao

forest pecan
#

lol

static zealot
#

well if thats /

#

5.5

forest pecan
#

5.5

static zealot
#

hehe I get a cookie

forest pecan
#

yea

forest pecan
static zealot
#

...

forest pecan
#

green man ass!

static zealot
dawn hinge
#

For me its blitz

forest pecan
#

never trust green man!

#

they are alien!

static zealot
#

....

#

I clearly win

dawn hinge
#

Birds never lie!

static zealot
#

discord message ids never lie

dawn hinge
#

You mf

forest pecan
#

you will become kfc

dawn hinge
#

Isnt that a chicken thought

static zealot
#

so I was like 500 ms

#

faster

#

half a second

#

I clearly win

forest pecan
#

mine: sends 5 inch long dick
her: sends one back

static zealot
#

and hers is like 10 inch

old wyvern
#

Imma just move on

forest pecan
old wyvern
#

Number Domain Error too powerful

static zealot
dawn hinge
#

๐Ÿช @static zealot theres yours

prisma wave
#

noooooo

forest pecan
#

the equation was easy but just hard to input in

#

lmao

old wyvern
prisma wave
#

negatives?

old wyvern
#

My equation is correct

static zealot
#

ty Tofpu

old wyvern
#

But ruby sqrt doesnt like 0

forest pecan
#

i never had to use negatives

old wyvern
#

I cant be bothered to explicitly handle this

dawn hinge
#

You're welcome!

forest pecan
#

i used this formula

static zealot
#

sqrt what fore?

prisma wave
static zealot
#

just go with the math

#

the long way

old wyvern
#

Distance formula

#

Actually

#

Mayeb i should just raise by 0.5

static zealot
#

just calculate the distance between each point that's on the same plane

#

and sum them up

old wyvern
#

or nvm

#

time out

forest pecan
#

sqrt((y0-x0)^2 + (x1-y1)^2 + (x2-y2)^2 + (x3-y3)^2)

old wyvern
#

But oh well

dawn hinge
#

!coc

#

Ffs

old wyvern
forest pecan
#

u suck

prisma wave
#

uh

#

we seem to be split up

forest pecan
#

what level is ur coc?

dawn hinge
#

I'm on my phone ๐Ÿฅฒ

forest pecan
#

and how big

static zealot
prisma wave
#

blitz

#

we already have a link

forest pecan
#

isnt Yugi supposed to tell you that Blitz

#

lol

static zealot
#

where?

#

is it?

#

this is the good one

forest pecan
static zealot
#

where me and pulse and yugi are

dawn hinge
forest pecan
#

u suck

static zealot
forest pecan
static zealot
#

they joined MY LINK!

old wyvern
#

wha

prisma wave
#

oh no

old wyvern
#

god

prisma wave
#

doing this recursively ๐Ÿฅถ

forest pecan
#

top 3 are java

#

lol

static zealot
#

ah no. .repeat is letting me down

#

I had to use a for loop for that ๐Ÿ˜ข

prisma wave
#

process' :: String -> [Char] -> String ๐Ÿฅฒ

static zealot
#

if it works it works fingerguns am I right boys?

#

and 1 girl

#

๐Ÿ˜ฎ

#

I'm popular

prisma wave
#

wow

#

that's a lot of notis

static zealot
#

me

#

ok. you got me. its actually you

#

well that's more than enough COC for me for today. even tho the day has just changed xD

#

nah its just 11 pm for you

#

or are you still in Turkey ?

prisma wave
#

oh yeah it's getting late

old wyvern
#

rip

prisma wave
#

๐Ÿ˜ฆ

old wyvern
#
solve:: String -> M.Map Char Int -> String
solve [] mem = []
solve (x : xs) mem = 
            let i = fnd mem x
            in if i < 0 then x : solve xs $ M.insert x 2 mem
            else replicate i x :solve xs $ M.insert x (i + 1) mem



fnd
fnd m k = fromMaybe (-1) $ M.lookup m k
rep = concat . replicate
prisma wave
#

ah you used maps

old wyvern
#

I tried

prisma wave
#

what's the random fnd doing

old wyvern
#

It was find

#

but had clashes

#

Could be bother to make qualified imports

#

hence the new name

#

๐Ÿ™‚

#

Another round?

prisma wave
#

nah thats my last i think

old wyvern
#

ah alrighty

prisma wave
#

getting kinda late and i want more than 6 hours sleep tonight

#

adios

old wyvern
#

gn

#

@ocean quartz I think we'll just have to use a temp file

#

defining from bytes only works on our own classloader which doesnt really require relocation, in the case of a general urlclassloader...well... no way to intercept loadClass

prisma wave
#

mutability can cause INFINITE issues

tranquil crane
#

Throws error
Still appends the element
???

forest pecan
#

Cursedthon

static zealot
#

so @ocean quartz
this is my function that populates the gui: https://paste.helpch.at/payojecoho.cs
this is the result: https://i.imgur.com/6Iay6MM.gif

As you can see I fill the bottom, I set the prev and next page items, and then I just dump in all the bounties. The thing is, it skips the 45-54 ones. As if it tries to put them in the same slots as the filler and the prev and next page items. I made the ids just increase by 1 so I can display that. I know for a fact those items(aka bounties) do exist as well.

This is what I was talking about earlier.

sweet cipher
#

Anyone know?

obtuse gale
#

hm check what exactly?

sweet cipher
#

Custom recipes, I am not at home, I will send code when I can. I am iterating over the recipes and comparing them to the ones in the inventory.

#

But it also includes all bukkit recipes

forest pecan
#

i was thinking of this

#

i was thinking of making some sort of possible concatenated string using the items

#

like for example slots 1-9

#

[1][2][3][4][5][6][7][8][9]

#

where each number is an item id or smthing

#

then add it to a hashset

#

then when you check for custom recipe, you create a unique identifier based off what exists already from the table

#

and check if the hashset contains it

#

does that make sense?

sweet cipher
#

I can show you what I did when I got home

#

Oh I see what you mean I think

#

Wouldnโ€™t that be the same time as iterating over the regular recipe iterating, unless you used a map of if, recipe?

#

I was thinking of having another thread running and checking the recipe in the inventory, and updating the result sync

obtuse gale
#

parallel stream fingerguns

sweet cipher
#

I have to learn about that

obtuse gale
#

๐Ÿคค

oak raft
#

lmao

forest pecan
#

hashsets contains methods is O(1)

#

lol

obtuse gale
#

you.. still need to iterate through all registered recipes

forest pecan
#

well sure

#

cache them

#

but still, better in the long run

ocean quartz
forest pecan
#

after all, it's only once

#

compared to something like looping

#

like 20 times

#

or prolly more

ocean quartz
sweet cipher
#

Oh ok

forest pecan
#

cause value is the result

#

you know

sweet cipher
#

Iโ€™m not using a string array in my recipe though

static zealot
ocean quartz
#

no

#

Those are the rows

sweet cipher
#

I could just use the hash code of the object as a key though

forest pecan
#

they arent unique tho always

sweet cipher
#

Why not?

timber oak
#

Are for loops as fast as foreach?

static zealot
forest pecan
#

for String, it isn't unique

sweet cipher
#

Oh Iโ€™m not using string

forest pecan
#

well still, have you ever heard of

#

collisions

#

in hashing

sweet cipher
forest pecan
#

i usually only use it for method references really

prisma wave
sweet cipher
#

I have not pulse, is that when objects can have the same hash code?

prisma wave
#

forEach is slower I mean

timber oak
#

alright

#

interesting

forest pecan
#

will encounter a collision

#

meaning that there are two differnet objects assigned

#

to the same hashcode

#

this forces it to loop through the whole data structure

#

so it becomes O(N) instead of O(1)

#

However, it is really rare, as hashing algorithms are very unique these days.

sweet cipher
#

What collection are you talking about?

prisma wave
#

No

forest pecan
#

but never guanrateed

prisma wave
#

Hash tables won't loop over the entire thing

#

They'll just loop over a single bucket if they're well designed

obtuse gale
#

implying java is well designed

forest pecan
#

nvm not the whole one lmao

prisma wave
#

I mean

#

hashmap definitely uses buckets

forest pecan
#

idea is however that it would be slower than O(1)

prisma wave
#

They're not totally stupid

#

ehh

sweet cipher
forest pecan
#

collision

prisma wave
#

Technically I think you could argue it's still constant time

sweet cipher
#

Wait so what is collision?

prisma wave
#

as there will typically be the same amount of objects in each bucket

obtuse gale
sweet cipher
#

And is it only called collision in a set or a map or something?

forest pecan
#

no, only in hashed data structures

sweet cipher
#

Ok

prisma wave
#

Assuming you know kotlin

ocean quartz
#

Get is not an operator function there? thonking

prisma wave
#

meh

#

Keep it simple

#

For demonstration purposes

oblique heath
#

at least, probably ๐Ÿคทโ€โ™‚๏ธ

sweet cipher
#

Yeah

#
default void forEach(Consumer<? super T> action) {
        Objects.requireNonNull(action);
        for (T t : this) {
            action.accept(t);
        }
    }
oblique heath
#

wait that's what you guys were talking about? lol i thought yall were talking about the java for-each loop

sweet cipher
#

That's what that is

oblique heath
#

right

obtuse gale
#

Collection#forEach uses the for-each loop, and that uses the iterator

oblique heath
#

ye

obtuse gale
#

if you implement Iterable you can use for-each loops

#

v neat

old wyvern
#

Or in the gosling fashion - ENHANCED-for

obtuse gale
#

"Range-based for loop" ๐ŸŒ

forest pecan
#

enhanced for loops are literally the same as for loops but with index hidden right lol

#

i remember reading a stackoverflow post

#

where they compared the java bytecodes

#

it was basically the same

obtuse gale
#

it uses the provided iterator, no?

#

I mean that's why you can use it if you implement iterable?

#

because iterable != indexed

old wyvern
#

There are 2 cases fefo

#

Arrays are handled with the index

#

Iterables are well, handled by Iterators

obtuse gale
#

ah right, native arrays

#

"native"

#

eh

#

primitive

old wyvern
#

xD

#

arrays arent primitives

obtuse gale
#

they are implemented primitively

#

there is no "array class" (except for the reflection util Array one but that's a factory util class)

forest pecan
#

Yeah primitive arrays are prolly what the SO post was talking about

#

what the fuck is for(:) tho

old wyvern
#

Does "native" and "primitive" have the same meaning?

#

Coz if not, Native may be more appropriate

forest pecan
#

no

old wyvern
forest pecan
#

primitive falls under native. Native is just an abstract term to describe something like a differnent language used other than the current one

#

like C

obtuse gale
#

it's weird though, because an array is an Object (that's what the factory methods in the Array class return)

old wyvern
#

mhm

obtuse gale
#

but there is no Java class definition for the _Array class you see when hovering over an array lol

forest pecan
#

tho, im confuse af by stuff like int.class

#

so weird

obtuse gale
#

I never knew there was an official specification table for primitive defaults lol

forest pecan
#

why does it put boolean last and object second to last

#

makes me frustrated

obtuse gale
#

ยฏ_(ใƒ„)_/ยฏ

#

oraBle

forest pecan
#

lol

old wyvern
#

Maybe because the rest had mostly numeric rhs

forest pecan
#

true

#

so about md5

#

with the dependency loading commit

#

he made in bungeecord

#

does that expose the urlclassloader?

old wyvern
#

UrlClassLoader is already exposed in bukkit

forest pecan
#

no but like java 16