#dev-general

1 messages · Page 451 of 1

jovial warren
#

ah right

#

I could give that a try I guess

#

a lot of Krypton unfortunately can’t be unit tested though

oblique heath
#

oh well in that case i can proudly consider myself a TDD practitioner

old wyvern
#

If any of the tests fail, you rewrite/add/remove code from that part to get the test to pass

prisma wave
#

yeah TDD is just writing a ton of tests, you don't have to write the tests first

old wyvern
#

mhm

oblique heath
#

since i wrote one set of tests one time

#

somewhere

old wyvern
#

Keep the coverage high and you're good

jovial warren
#

since the entire idea of unit tests is ensuring that things that should be predictable are in fact predictable

cinder flare
#

my coverage is at a solid 0%

prisma wave
#

I mean in a pure language unit testing is really easy 😌

oblique heath
#

quickcheck right

#

for haskell

cinder flare
#

nah bro junit

#

lmao

old wyvern
#

Theres actually a practice called "Extreme Programming" that includes all this

#

xD

#

Just had it in todays exam

oblique heath
#

mmmm jaskell

cinder flare
#

i think he's scarred for life cause of it

oblique heath
#

the java haskell interop?

prisma wave
#

jni is terrible

#

literally unusable

#

Well

jovial warren
#

actually what am I talking about? Krypton can easily be unit tested with embedded channels

prisma wave
#

It worked sorta

jovial warren
#

embedded channels OP

prisma wave
old wyvern
#

Not as good as haskell

prisma wave
#

isn't a Minecraft server pure except the IO?

#

State monad OP

old wyvern
#

😮

jovial warren
#

how tf is vanilla pure?

prisma wave
#

how isn't it

old wyvern
#

^

oblique heath
#

you'd have to define IO

prisma wave
#

It's just a state machine with IO

jovial warren
#

vanilla has more side effects than your average heroine needle

old wyvern
#

It doesnt

#

State monad can emulate state without mutation

jovial warren
#

it’s literally filled with mutable state

old wyvern
#

Recursion is the way

jovial warren
#

like Mojang loves mutable state

old wyvern
#

It doesnt need to be recreated with mutation in mind

#

Haskell can do mutation if needed anyway, in a purer way

#

IORefs

jovial warren
#

have you even seen vanilla?

old wyvern
#

Yes

jovial warren
#

I do not believe for one second that vanilla is pure

old wyvern
#

Depends on what you mean by vanilla is pure

cinder flare
#

what besides the server itself does the server change?

#

oh and besides IO

#

it doesn't affect anything else

jovial warren
#

like it has no side effects

#

ah true I guess

#

vanilla is very prone to just falling apart

#

it’s like a balloon

old wyvern
jovial warren
#

what’s Bravo?

old wyvern
#

mc server impl

#

I think

jovial warren
#

ah right

old wyvern
#
Baskerville
A Minecraft server written in haskell.```
#

Altho that one seems incomplete actually

#

xD

jovial warren
#

yeah I didn’t say it’s not possible to make a pure server, I just said that vanilla is far from pure

oblique heath
jovial warren
#

also, didn’t BM say that no function in Java can be pure because there’s no guarantee it won’t throw a stack overflow error?

old wyvern
#

Oh I assumed you meant it wasnt possible to recreate "vanilla minecraft" in a pure way

jovial warren
#

no I just thought you were trying to say that the Notchian server was pure lol

old wyvern
#

But thats more of a catch in a sense

jovial warren
#

I wonder how I should actually deal with block states lol

#

like something better than just using the raw IDs

#

because that is far from API friendly

#

Mojang hard-codes all of them in what I’m going to call a pseudoenum

prisma wave
#

The server as a specification is just a state machine with IO

#

Nothing there is technically impure

jovial warren
#

yeah but Mojang’s implementation of it is far from pure

prisma wave
#

Sure but that's not what I said in the first place

jovial warren
#

oh btw, anyone know how Spigot’s new registries are actually going to work?

#

changing the subject, thinking of pseudoenums and registry stuff

#

aren’t they deprecating the Material enum?

distant sun
#
quiet depot
#

catch only runs if it catches an exception it is listening for, finally is always meant to run

distant sun
quiet depot
#

people used to use it to close resources

#

but we use try-with-resources for that now

#

finally sees very little use anymore

#

did you read anything I said?

distant sun
sweet cipher
distant sun
#

I just finished the training =/ I need a second player for the first mission xd

#

but looks cool imo

sweet cipher
#

Yeah I only did the training too

steel heart
oblique heath
#

hehe

#

take the md5 hash of that ^

#

and convert it from hex to base 64 if the output is in hex

half harness
#

🤔

oblique heath
#

here you go dkim, on the house

#

md5, then hex -> base64 for a surprise

half harness
#

uh

#

i got

DMKiDMKjDcOPDEzCo3ojw5xFwr7Co3U=

oblique heath
#

what

#

hold on

#

did you convert hex to base 64

#

or ascii to base 64

half harness
#

yes

oblique heath
#

you should be converting from hex to base 64

half harness
#

0CA20CA30DCF0C4CA37A23DC45BEA375
hex -> base 64

oblique heath
#

no idea what you're doing o.O

#

but hex -> base 64 does what i expect it to

half harness
#

hmm

oblique heath
#

can you link that site

half harness
#

nice embed

oblique heath
#

lmao

#

yeah i have no idea what that site is doing

#

try any other site

half harness
#

lol

#

DKIMow3PDEyjeiPcRb6jdQ==

oblique heath
#

first off, the base 64 from that site has the same number of characters as the base 16 - which is just not how converting them works, very weird

#

there ya go

obtuse gale
#

lol literally the first 3 totally random sites I picked did the conversion properly

#

don't know what kind of sketchy shit dkim searches

oblique heath
#

yeah i have no idea how he got to that site in the first place

#

it doesn't show up anywhere when googling for hex to base 64 sites

half harness
#

😱

#

lol

#

don't question my googling skills

oblique heath
#

dkim do you start at the last page of the search results and work your way forward

#

anyways, at least it works

#

i can rest easy

half harness
#

lmao

static zealot
#

Who wants to play? @half harness ?

half harness
#

alr

#

link?

static zealot
#
half harness
#

i have no idea what we're playing

#

but oke

static zealot
#

you need to log in

#

and complete the tutorial

#

is like 2 minutes

half harness
#

ok

static zealot
#

sent you the room link

#

now

#

u wanna start without tutorial? xD

half harness
#

waait

#

im doing it rn

static zealot
#

ah alr

#

it doesn't even let me launch so its alr

half harness
#

WHAT

#

THERES NO KOTLIN_ _

tawny peak
#

hahha

half harness
#

1 hour?

#

uh

static zealot
#

@half harness its like 1 hour xD

#

yeah I don't think I'll play

#

lmao

half harness
#

lol

steel heart
#

Lombok + kotlin

ocean quartz
forest pecan
#

Lotlin

onyx loom
# ocean quartz

sir i hate to u inform that it hasnt been deleted. now what?

obtuse gale
#

u see that knoife?

#

he gon kill himself

onyx loom
#

o ☹️

#

please dont do that matt 😔

obtuse gale
#

rip T1 no embeds lol

half harness
#

lol

tawny peak
#

sed

#

Welp...

obtuse gale
#

you don't get image/embed perms till T2

tawny peak
#

if someone wud mind reposting...

tawny peak
#

oops wrong reply

#

t2 close..

ocean quartz
onyx loom
#

nooooo!

obtuse gale
#

lmao love this

A function relates an input to an output. ... It is like a machine that has an input and an output. And the output is related somehow to the input.

steel heart
#

Rip mini getting his ass cut in the spigot discord for mentioning paper

obtuse gale
steel heart
#

Yes I wonder why this is the case thonking

obtuse gale
#

:md5:

hot hull
#

Someone kill me

obtuse gale
#

no

#

you shall suffer

forest pecan
forest pecan
forest pecan
#

I hope you live in a hole

oblique heath
#

i have done it

#

aw

#

never mind

#

i have not done it

half harness
#

wat

ocean quartz
#

Spigot's discord is a wild ride

half harness
#

lol

boreal needle
#

ooh i have stuff to say about this

obtuse gale
#

👀

boreal needle
#

is anyone still in that server

#

i have a message i linked to in my rant and id like to check if its still there

steel heart
#

Yeah

boreal needle
#

#694661573125472256 message has any of that been deleted?

quiet depot
#

no

boreal needle
#

oop ok

obtuse gale
#

oh shit I just read this hahahahaa dk how I skipped it last time

#

I wonder who that could be

quiet depot
#

jay?

oblique heath
#

ppst piggy

#

i have a present for you

quiet depot
#

oo

oblique heath
#

this is a magical image

obtuse gale
#

OMG

quiet depot
#

yeah

#

i like mini pigs

oblique heath
#

take this image

#

and get the md5 hash

obtuse gale
#

MiniPigger

quiet depot
#

lol

boreal needle
#

what is it with you and md5 hashes

oblique heath
#

i like em

#

gosh

boreal needle
#

but why md5 specifically

obtuse gale
#

We don't do md5 here 👀

oblique heath
#

wait

#

noooo the image breaks

#

when i upload it

half harness
#

lol

#

press copy original in discord

#

i think

boreal needle
#

the xp rate is kept private isnt it

quiet depot
#

yes

#

proprietary

obtuse gale
#

I have some guesses though

#

: low

static zealot
#

316c44cfa6c054490532f93d4948b8e0

boreal needle
#

im like 40 xp away from tier 2

obtuse gale
#

and it takes ages yea lol

prisma wave
#

Brave members of Helpchat

quiet depot
#

it's wrong bm

obtuse gale
#

=xping often helps updating it, it only does it by itself every so often

prisma wave
#

It gives the same results

#

So it's close enough

boreal needle
#

ooh its only 28 now

ocean quartz
boreal needle
#

this is number 3 here

#

only 18 xp now

#

will this be the message?

#

no

#

:c

obtuse gale
#

unlikely

#

you know what's epic?

#

when you =xp and you level up with it

boreal needle
#

yeah i did that once

#

was vry nice

oblique heath
#

okay okay i did it

#

take that pig

obtuse gale
boreal needle
#

ahhh 14 xp now

#

this is not funny

oblique heath
#

that's the correct pig

ocean quartz
#

Damn lucy you've been unlucky, try a bigger message, the xp changes per message size

oblique heath
#

the md5 of that pig is magical

boreal needle
#

i am always unlucky

#

this is not new information

quiet depot
#

if u boost

ocean quartz
#

That's why Fefo has more xp than dkim 🥲

quiet depot
#

2x multi

obtuse gale
#

Given a value i of type I, I models indirectly_readable only if all concepts it subsumes are modeled and the expression *i is equality preserving.
what on earth does this mean lol

boreal needle
#

i cant afford to boost

half harness
boreal needle
#

if i could then i absolutely would, this server is kinda cool

obtuse gale
#

this server is da best

boreal needle
#

its like spigot but better

obtuse gale
#

ew

half harness
#

dkimserver 😎

obtuse gale
#

how dare you compare us with spigot

ocean quartz
#

I feel offended by that comparison

obtuse gale
#

bannable offense

boreal needle
#

;-; im sorry

#

pls no ban

half harness
ocean quartz
#

=ban @boreal needle

half harness
#

🥲

obtuse gale
#

pig, =ban lucy

prisma wave
#

spigot discord 🥶 🥶

boreal needle
#

noooooooooooo

prisma wave
#

they're being boring rn

obtuse gale
#

big yikes

half harness
#

pigg

boreal needle
#

ive already been banned from enough minecraft discords

compact perchBOT
#
🔨 The hammer has been swung.

@boreal needle Banned!

half harness
oak raft
#

lmfao

prisma wave
#

I try to convince spigot discord about the merits of haskell and they ignore me

#

Not happy

quiet depot
#

lol

half harness
#

someday cube is going to make it actually ban

oblique heath
#

they fear what they don't understand

half harness
#

and then piggy will do the command

quiet depot
#

=banwheel

obtuse gale
#

lol

#

random bans

boreal needle
#

md wont consider anything thats not java 8, do you really think he'd like haskell

quiet depot
#

=banwheel @boreal needle

#

i swear that was a command

ocean quartz
boreal needle
#

:c

half harness
#

lol

quiet depot
#

=wheel

compact perchBOT
#
XP Wheel Result...
quiet depot
#

no

oak raft
#

piggy do you eat pork

quiet depot
#

wrong wheel

obtuse gale
#

lol

boreal needle
#

ok i have 2 xp left

quiet depot
#

=wheel ban

compact perchBOT
#
XP Wheel Result...
half harness
#

pog

oblique heath
#

=wheel

half harness
#

free xp 🙂

prisma wave
#

1 🥲

half harness
#

🥲

#

no haskell bad

#

kotlin good

#

java bad

prisma wave
#

DKIM

half harness
#

kotlin good

boreal needle
#

java 8 good

half harness
quiet depot
#

ok

#

found the ban wheel

#

=spin banwheel @boreal needle

compact perchBOT
#
Ban Wheel Result...
obtuse gale
prisma wave
half harness
#

no i like it

#

but

boreal needle
#

watch the first message i send as a tier 2 be the one where i get banned

ocean quartz
#

Can't wait for valhalla 🥺

half harness
#

uh

#

bm

prisma wave
#

yes

quiet depot
#

when is it matt

prisma wave
#

what

#

Have you got something to say

#

say it

ocean quartz
#

I don't think it has a release date yet

half harness
#

smh

#

:)

quiet depot
#

jep 159 was the only jep that mattered change my mind

obtuse gale
#

B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.4

prisma wave
#

YEAH BABY

obtuse gale
#

B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.4

half harness
#

barty 🥲

prisma wave
#

&:DDDDDD

half harness
#

uh

#

did i say something

#

that made bm

prisma wave
#

B.A.A.S - Too many caps!
No need to shout.
Barry's Anti Abuse System | v1.4.4

half harness
#

go uh

obtuse gale
#

guys I think lucy spent her monthly message quota just to level up lol

prisma wave
#

worth it

half harness
#

gets muted

prisma wave
#

A small price to pay for blue name

obtuse gale
#

no more chatting till next month 🥲

half harness
#

lol

boreal needle
#

bold of you to assume i have social skills

#

and an ability to not piss people off

#

im very good at pissing people off

obtuse gale
half harness
#

😩

obtuse gale
#

okay can someone tell me what on the face of god's green earth does this mean?

prisma wave
#

well

#

Given a value i of type I

obtuse gale
#

yes?

prisma wave
#

you heard me

lunar cypress
#

where's this from?

obtuse gale
quiet depot
#

yes

obtuse gale
#

I see

quiet depot
#

context pls

half harness
# obtuse gale ah okay

I models indirectly_readable only *if only all concepts it subsumes are modeled and the expression i is equality perserving.

quiet depot
#

What does *I refer to

vagrant bobcat
#

whats the best way to save data?

obtuse gale
#

in the balls

quiet depot
#

depends on the type of data

half harness
#

json or db

vagrant bobcat
#

atm i save in json

half harness
#

or yaml

prisma wave
quiet depot
#

that sounds like the stupidest thing ever bm

prisma wave
#

because it is

lunar cypress
#

It's actually fantastic

#

unironically

boreal needle
#

i know developers arent very good at naming things but jesus christ almighty

obtuse gale
vagrant bobcat
#

but someone complained that it would be laggy if you had a lot of player data

prisma wave
#

Every time you need to edit the database, you destroy it and spin up a new instance with the new data

#

very efficient

half harness
#

/s

quiet depot
#

bm

prisma wave
#

oui

quiet depot
#

ur memory is immutable

#

no destroying db

#

u have to install a new database server

#

make a new db

prisma wave
#

oh shoot

quiet depot
#

copy data over except data u don't want

lunar cypress
quiet depot
#

then add new data

prisma wave
#

Yeah my bad

#

immutable memory 😌 😌

quiet depot
#

I figured out the subsuming from a google but idk what *I means

lunar cypress
#

But since this is C++ there probably isn't an easy explanation

half harness
#

immutable machine?

obtuse gale
vagrant bobcat
#

so json is ok for saving player data?

quiet depot
#

yes

vagrant bobcat
#

if so ill leave it lol

prisma wave
#

Sure

half harness
#

hint: cache

vagrant bobcat
#

it saves on disable or player leave

half harness
#

ok

obtuse gale
#

I hate the new iterator concepts ugh

lunar cypress
#

What kind of data is it

obtuse gale
#

I'll love them a year from now but

prisma wave
#

modern art

half harness
#

haskell iterators... 🤢

obtuse gale
#

you know what's funny

vagrant bobcat
#

all that gets saved is name uuid playerjoins and playtime

prisma wave
#

they took the common "for loop" and turned it into a for loop without parentheses, truly revolutionary 😌 😩

obtuse gale
#

you can just define a begin() and an end() functions and you already can use your structure/class in a for-each loop lol

vagrant bobcat
#

so that i can do offline player support for playtime lol

prisma wave
prisma wave
half harness
quiet depot
#

ok so if you dereference *i and the equality doesn't change (I'm assuming this means i is still a type of I), and i implements everything of I, then I models "indirectly_readable"

#

does that make sense?

half harness
#

haskell needs to add iterators

quiet depot
#

I don't know c++

#

I've never used c++

#

I barely know what these terms mean

prisma wave
quiet depot
#

100% guess

lunar cypress
#

give up 🥲

prisma wave
#

Unless ... iterator monad...? 😳

quiet depot
#

oof

#

then what does the equality refer to?

half harness
#

how would I print "a" 10 times

#

withotu another function

prisma wave
#

Recursion

half harness
#

uh

quiet depot
#

that when you're dereferencing, the value doesn't change?

half harness
#

mapM? map? mapM_?

obtuse gale
#

okay so in layman's terms, indirectly_readable means: *i should give the same output for the same input

prisma wave
#

sure that works, or replicateM

lunar cypress
# quiet depot then what does the equality refer to?

An expression is equality preserving if it results in equal outputs given equal inputs.

The inputs to an expression consist of its operands.
The outputs of an expression consist of its result and all operands modified by the expression (if any). 

In specification of standard concepts, operands are defined as the largest subexpressions that include only:

an id-expression, and
invocations of std::move, std::forward, and std::declval. 

The cv-qualification and value category of each operand is determined by assuming that each template type parameter denotes a cv-unqualified complete non-array object type.

Every expression required to be equality preserving is further required to be stable: two evaluations of such an expression with the same input objects must have equal outputs absent any explicit intervening modification of those input objects.

half harness
#

piggy

#

we need /run

#

🥺

static zealot
#

fun a(x: Int) {
if x>=10 return
println('a')
fun (x+1)
}

hot hull
#

Anyone got suggestions to how does one completelly turn of a modern phone?

half harness
#

🤢

hot hull
#

Was gonna go with taking out a battery, but that's no possible these days

half harness
#

blitz thats big and chunky though

prisma wave
#

Dkim the idiomatic thing to do would be to repeat "a" 10 times and print it once

obtuse gale
half harness
#
repeat(10) println("a")
```😌
quiet depot
#

take out sim frosty

#

then hold power button

obtuse gale
#

lol wat

prisma wave
#

putStr (replicate 10 "a\n")

static zealot
#

dkim you won't feel the same when you have big problems to solve

hot hull
#

It's stuck in a turn on turn off loop

quiet depot
#

let it drain

half harness
quiet depot
#

completely

half harness
#

same with map, mapM, and mapM_

prisma wave
#

replicateM is for monads

half harness
#

uh

obtuse gale
#

oh boy

prisma wave
#

map and replicate work with normal values, the others work with monadic values

obtuse gale
#

I got to the indirectly_writable concept

half harness
#

example?
of both usages?

obtuse gale
#

this is getting wild

half harness
#

since i dont really know what monads are

obtuse gale
prisma wave
#

In this context they'd just be "side effects"

half harness
#

um

prisma wave
#

I don't think you'd really use mapM or replicateM for anything that didn't involve side effects

half harness
#

so mapM = side effect

#

map = pure?

prisma wave
#

yes

half harness
#

what about mapM_

prisma wave
#

mapM is map with side effects

#

Similar

#

But mapM_ doesn't return the result

half harness
#

O_O

#

so mapM_ is really for side effects

#

wait

#

isn't mapM_ just forEach

prisma wave
#

I was just about to say that

#

Yeah pretty much

#

except generalised to work with any Monad / Applicative

half harness
#
main = mapM_ (putStrLn) ["hello", "helo"]
prisma wave
#

whereas mapM is like "normal" map where it can be as impure as you like

#

🥲

half harness
#

will that code work?

prisma wave
#

/run

#

should do

#

Might be missing an import

half harness
#

Control.Monad?

prisma wave
#

iirc mapM comes from C.M yeah

half harness
#

😎

#

haskell pro

prisma wave
#

ez

hot hull
#

¸I'm like 90% sure my phone is dead

ocean quartz
#

Like the owner

hot hull
#

wowo it's turning on

obtuse gale
#

just like you

half harness
#

🥳

ocean quartz
#

Configurators, idk why people think they are developers

hot hull
half harness
jovial warren
#

lol

half harness
#

why is the page taking 10 hours to load

#

oh

hot hull
#

that used to be a thing

ocean quartz
#

@obtuse gale Dude, LuckPerms is a gold mine

half harness
#

lmaoo

ocean quartz
#

Ikr

half harness
#

even if you're not a native english speaker you should know that's not a question ;-;

obtuse gale
prisma wave
#

fefo trans?

half harness
#

that you cut off in the screenshot

obtuse gale
ocean quartz
#

Even with the message above it makes no sense lol

prisma wave
#

:o

#

i thought it was a joke or something lol

#

nice

obtuse gale
#

lol no

prisma wave
#

well

#

last i checked you only had the pronouns here, not in LP discord

#

so

obtuse gale
#

I asked cube to change my nick because I no booster 🥲

prisma wave
#

i thought it was some inside joke or something lol

#

🥲

half harness
#

thats y ur nick is she?

obtuse gale
#

Mhmh

prisma wave
#

well

#

what did i say

obtuse gale
prisma wave
#

🥲

half harness
#

lol

ocean quartz
#

Damn, here is an eye pic I took 9 years ago 🥲

prisma wave
#

o

#

hot

half harness
#

o

#

warm

prisma wave
#

hto

#

cold

#

warm

ocean quartz
#

Lmao

obtuse gale
#

Oh damn

#

That's one sexy eye

ocean quartz
#

Nah, just a good camera xD

half harness
ocean quartz
#

Now that's a beautiful eye

boreal needle
#

i spend £300 on a program that doesnt even work without crashing

#

this is not funny

half harness
#

what is it supposed to do?

boreal needle
#

basically anything and everything audio related

#

using this thing called max which is part of it

#

its like a visual programming language for audio

half harness
#

👀

thorn flower
#

i can't just put the player statistic?

boreal needle
half harness
#

ok my brain is dead right now

#

:p

ocean quartz
#

I feel like deleting messages should remove xp

half harness
#

maybe

jovial warren
#

would mean that dkim would go back to tier 3 lol

#

at least

half harness
#

;-;

#

d;spigot Player#getStatistic(Statistic, Material)

ruby craterBOT
#
int getStatistic(@NotNull Statistic statistic, @NotNull Material material)
throws IllegalArgumentException, IllegalArgumentException, IllegalArgumentException```
Description:

Gets the value of the given statistic for this player.

Returns:

the value of the given statistic

Parameters:

statistic - Statistic to check
material - Material offset of the statistic

Throws:

IllegalArgumentException - if statistic is null
IllegalArgumentException - if material is null
IllegalArgumentException - if the given parameter is not valid for the statistic

half harness
#

you might have to do that

thorn flower
#

what do i have to add?

jovial warren
#

show code

distant sun
jovial warren
#

probably is

distant sun
#

d;1.12 OfflinaPlayer#getStatistic

ruby craterBOT
#
Player getPlayer()```
Description:

Gets a Player object that this represents, if there is one

If the player is online, this will return that player. Otherwise, it will return null.

Returns:

Online player

distant sun
#

yup

thorn flower
#

ohhh

#

maybe i understand,

#

i need to specific the block?

distant sun
#

material

#

d;spigot Statistic%MINE_BLOCK

ruby craterBOT
distant sun
#

ah I thought it says the params as well

thorn flower
#

oh

#

so i can't check total blocks? :C

jovial warren
distant sun
#

you have to get through each material

thorn flower
distant sun
#

but be aware of the fact that on this stupid game, multiple materials share the same value

ocean quartz
#

Why tf is youtube recommending me python stuff, i have never even watched anything python related lmao

distant sun
#

eg on 1.12 dirt and coarse dirt have the same value

ocean quartz
#

Sign to kill myself, nice

thorn flower
distant sun
#

pretty much

distant sun
#

who's that, your mom?

#

jk 😛

thorn flower
#

ah ah ah... -.-

#

no really, that's funny xd

hot hull
#

wrong java version

steel heart
#

records 😄

#

sealed classed :DDDD

#

better switches :DDDDDDDDDDDDDD

#

foreign memory api :DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

lunar cypress
#

half of that is in 16

#

java --version

#

no

#

17 is not out yet

#

16 came out like a month ago

hot hull
#

probably

#

I gotta update to 16 as well

last patrol
#

Hey, I got some piece of simple code I'm writing

half harness
oak raft
#

?jdk

compact perchBOT
oak raft
#

ez clap

thorn flower
#

sorry.. guyz

#

am i stupid or what?

#

it print 0

#

am i doing something wrong?

ocean quartz
#

Is the path correct?

thorn flower
#

yes :C

thorn flower
static zealot
#

talking about the one that the timestamp is at

#

second 36

eternal compass
#

Anyone here good at designing websites / webpages?
Me and the co-owner of BentoBox (The plots / skyblock type plugin) are overthrowing the downloads page, and I'm trying to find a good looking theme

#

well, not theme but like template / idea

ocean quartz
#

Doing a Kotlin survey and having to answer it like i am part of some sort of company and actually doing work 🥲

static zealot
#

I just witnessed a 1hp vs 2hp fight

ocean quartz
#

The wizard helping

static zealot
#

pretty cool wizard

half harness
#

Should I
A) Make my dkim19375Core library kotlin ```diff

  • more kotlin friendly, can use kotlin specific features
  • i dont like java anymore
  • if i work on a java project, I can't use the latest version of the lib :/
  • less people can understand/use it
B) Keep it java ```diff
+ if i work on a java project, I can use the latest version of the lib 
+ more people can understand/use it
- less kotlin friendly, cannot use kotlin specific features
- i dont like java anymore
```or 
C) make it both ```diff
- no
forest pecan
#

Keep libraries Java if you want your users to use Java

#

I know its compatible back and forth

#

but things will get messy fast

half harness
#

also

#

i dont think anyone will use my lib

#

tbh

#

lol

obtuse gale
#

Make it in Java and you can write some Kotlin DSL

forest pecan
#

^

half harness
#

wdym?

#

like i want to add a mini command lib in there

forest pecan
#

dont

half harness
#

but i dont want to write it in java 😩

forest pecan
#

command libs are not worth making

half harness
#

b-but

forest pecan
#

you will have a nightmare no matter what language

#

no butts

half harness
#

it'll be very simple

forest pecan
#

no it wont dkim

#

its a nightmare

half harness
#

how will it be a nightmare

forest pecan
#

and nobody is going to use yours over brigad or cloud

#

lol

half harness
#

i know

#

its a cmd lib for spigot

#

and spigot only

forest pecan
#

no

#

no

half harness
#

probably for only me

forest pecan
#

dont use spigot for this

#

cmon

#

lmao

half harness
#

since no one uses anything i make

forest pecan
#

use brigad at least man

half harness
forest pecan
#

ur going to epicly fail

obtuse gale
half harness
#

lol

obtuse gale
#

Once they are people will use them

half harness
#

which one

#

pretend that i didn't say anything about commands

half harness
obtuse gale
#

dkim

#

It's in the name lol

half harness
#

lol

#

just me

#

probably

#

the reason why i want to keep it java

#

is in case im working on a project (and collaborating with someone else), and they use java, so the project is in java

#

so then i can't use my lib

#

well i can't use the latest version

ocean quartz
#

I mean imo a core is supposed to help you out making things easier, mine is in Kotlin because it has all the Kotlin specific features I need to be easier

half harness
#

what are some kotlin specific features?

#

besides properties

#

and extension functions

#

and top level functions

ocean quartz
#

Oof so many

half harness
#

o

#

name a few?

ocean quartz
#

This entire thing would be impossible in Java

half harness
#

wha

#

hm

#

ill use kotlin then

#

should i just delete all java stuff? or deprecate?

hot hull
ocean quartz
#

Yes

ocean quartz
half harness
#

what are reified generics?

#

and inline functions?

ocean quartz
half harness
#

thx

old wyvern
#

Exams over, Imma try to get the repo up

ocean quartz
#

Ayyy! How did it go?

old wyvern
#

Pretty good

#

much better than last sem

ocean quartz
#

Nice, finals are so fucking stressing

oak raft
#

Which exams did you have?

forest pecan
#

Guys i got a 95 on my science test

#

i failed 1 open response question

old wyvern
#

It wasnt finals, was mid-terms

forest pecan
#

that got me down 8 points then i got a bonus credit

ocean quartz
#

o

#

Also nice Pulse

old wyvern
#

They switched from the 2 CATs to a sinlge midterm coz rona

forest pecan
old wyvern
#

oh btw matt, Reposilite or Nexus?

forest pecan
#

i mean i like nexus

#

but idk

old wyvern
#

hmm

ocean quartz
#

I use artifactory

#

Uses less ram

old wyvern
#

How much ram does it use?

#

on avg

ocean quartz
#

I run mine with just 2GB and never had issues, idk how much it's using, let me see if i can check xD

old wyvern
#

oh thats pretty good, lemme try that

#

But first I need to lookup how to work with nginx

ocean quartz
#

Not bad

old wyvern
#

Yea that looks pretty good

#

Is there nothing else running* on that?

#

Also, I should use docker right?

ocean quartz
#

I think i run something else on the same vps, i don't remember what xD
And yeah artifactory even has a simple docker installation

old wyvern
#

Oh awesome

oblique heath
#

2gb is small you say

#

mistakes may have been made then

#

🥲

ocean quartz
#

Also i was thinking, do you think it'd be better to resolve the download link at run time or when creating the json file? Because I feel like if it has to check at compile time, i'll need to figure how to cache stuff with gradle since it can be pretty frequent

ocean quartz
#

Nexus recommends minimum 4GB while artifactory recommends 2GB

oblique heath
#

oh my

#

why does it need so much

old wyvern
#

Also

#

transferred the repo to the org

ocean quartz
#

Yeah I think it'd be easier at runtime
And nice

#

Also can we switch to gradle kts? xD

old wyvern
#

Yea sure

#

Is there a easy switch between them?

#

Or do we just have to create the kts script and rewrite the tasks to it?

ocean quartz
#

Yes, me rewriting it manually

old wyvern
#

xD

ocean quartz
#

I've done it so much that I don't even mind anymore

old wyvern
#

lol

ocean quartz
#

Aight let me finish the json task then and i'll push the changes

old wyvern
#

Btw did you check the Application api in the app package?

#

I think I should refactor that

#

not sure what all to add atm

ocean quartz
#

Also don't think we need to specify that a dependency is transitive, if it's all loaded it should be fine right?
And not yet

old wyvern
#

Do we get info about which dependencies are transitive atm?

ocean quartz
#

Not atm, but I can

old wyvern
#

Will it be an easy addition? If so it might be useful for some future feature

ocean quartz
#

It should be pretty easy

old wyvern
#

Ah then I think it might be useful to include that info, so we wont have to change the format later on

ocean quartz
#

Actually now that I think about it, it'd be nice to create a fat jar with the transitive inside instead of having multiple small jars

old wyvern
#

wdym?

#

Oh like combine all the different jars when downloading?

ocean quartz
#

Like for example, adventure has 14 transitive dependencies, that'd be 15 jars xD
Instead could make one adventure jar with everything inside

#

Yeah

old wyvern
#

Like a cache

#

But we can have a separate directory with them combined

remote goblet
#

oh lord

old wyvern
#

So if we had a.b.c:abc:1.0 already present, we can just copy that over

#

oh ffs the emojis

#

xD

ocean quartz
#

Lmao
Now that I think about it yeah, might be better to have them separate, hmm thonking

ocean quartz
prisma wave
#

but worse

ocean quartz
#

^

#

Because her's actually compiled into a jar plugin

remote goblet
#

which is sick

old wyvern
#

Oh, thats pretty cool

#

Also, soulstriker

#

thats dudes on every plugin

#

xD

remote goblet
#

Yeah cringe

old wyvern
#

Clash anyone?

static zealot
#

yes

#

sir

old wyvern
#

wait lemme restart that

#

Accidentally have lang limits from testing

#

There we go

static zealot
#

want me to mass ping?

old wyvern
#

@half harness

#

Yes blitz

static zealot
#

@onyx loom @remote goblet @ocean quartz @hot hull @prisma wave @obtuse gale @lunar cypress @jovial warren @steel heart @surreal quarry @forest pecan and others wanna join? ^^^

#

oh link is gone lmao

#

here

jovial warren
#

lol

hot hull
#

I is in bed

obtuse gale
#

death bed?

old wyvern
#

get outta bed

static zealot
#

I probably missed quite a few people. tell me who I missed so I can remass ping xD

old wyvern
#

Conclure

#

wait no

#

hmm

static zealot
#

oh @stuck harbor and @oblique heath

old wyvern
#

Piggy?

half harness
#

admin ping 👀

static zealot
#

a lot of words I have not seen in my entire life

#

this is going to be good

#

wtf is this? someone translate to english I can maybe understand

half harness
#

ez

#

u dont need to know

#

just look at the test cases

#

(at least for me)

static zealot
#

ez..

#

I guess

#

all those weird words

#

I have not heard about in my life

half harness
#

show code

#

yugi slow smh

old wyvern
#

😌

half harness
#

haskell slow

static zealot
#

wait I think I've connected with a wrong account

old wyvern
#

flip replicate '1' $sum $ map length input

static zealot
#

yeah

#

oh here we go

lunar cypress
stuck harbor
#

man its too late for CoC

old wyvern
#

Would changing the hostname of a vps require any changes in nginx?

lunar cypress
#

yes

lunar cypress
#

more specifically, I'm trying to set the option to only use one of my 2 screens

stuck harbor
#

ubuntu has drivers for it built in iirc so other distros should have some somewhere

#

hm

sweet cipher
lunar cypress
#

but the "Twinview" parameter that used to do that seems to have been removed from the driver without replacement

stuck harbor
#

thats unfortunate

lunar cypress
#

and all the forum posts I find are from like 2010

oblique heath
lunar cypress
#

gonna make an issue on the github

static zealot
half harness
#

ez 🙂

static zealot
#

I don't understand. I can't split by new line what should I split then

half harness
#

you have to do a loop for each line

#

use nextLine to get each new line

static zealot
#

oh wait its multiple lines... Thought its just one string and we should split by new line

#

smh

half harness
#

lol

static zealot
#

well usually if its a loop they make the loop for you

half harness
#

yea

#

true

#

im getting better at CoC 😄

#

faster than bm

#

smh

static zealot
#

yeah bcz they have to torture theirselfes and use haskell***

oblique heath
#

what was the prompt

static zealot
#

haskell***

static zealot
#

its easy to understand

oblique heath
#

ah yeah

sweet cipher
#

Are they all one String or multiple?

half harness
#

wat

sweet cipher
#

The lines

half harness
#

wat

oblique heath
#

it's probably multiple

static zealot
#

I thought its just one

sweet cipher
#

That seems easy then

static zealot
#

and have to split

#

lmao

sweet cipher
#

Lol

#

So you just need the first letter of each one right?

static zealot
#

yeah its pretty easy

half harness
#

blitz

#

yay

#

🙂

#

the haskell users are slow

static zealot
#

😢

half harness
#

plus im not in intellij or anything

#

so

static zealot
#

so what?

oblique heath
#

you use intellij for coc?

sweet cipher
#

Cheater

oblique heath
#

you coward

#

embrace 5 second delayed autofill

prisma wave
#

i joined late

static zealot
#

understandable

half harness
half harness
#

coc has autofill?

sweet cipher
#

Dkim is now officially the number one person in this discord

prisma wave
#

yeah ez without var

oblique heath
#

coc does have autofill yes

static zealot
#

lmao

oblique heath
#

or at least autosuggest

old wyvern
#

dammit

static zealot
#

new one?

old wyvern
#

Yup

half harness
#

im gonna do some other stuff

static zealot
#

someone make please

#

nvm then I'mma do it

#

think u can start @old wyvern dkim ain't coming anymore

old wyvern
#

aight