#dev-general

1 messages ยท Page 325 of 1

frigid badge
#

@distant sun are you using ktor?

distant sun
#

Exposed

frigid badge
#

ah

regal gale
#

I'm just wondering if dnSpy can decompile Java or not

jovial warren
#

just set the new values

distant sun
#

any idea if I need to call commit() ?

jovial warren
#

e.g. ```kotlin
val playerEntity = PlayerEntity.find { PlayersTable.uuid eq uuid }
playerEntity.name = "New name"
commit() // not actually sure if this is required or not, but I like to use it

distant sun
#

ok

#
    fun hasAccount(uuid: UUID): Boolean {
        return transaction(database) {
            UserEntity.find { UsersTable.gameId eq uuid.toString() }.firstOrNull() != null
        }
    }```
Better way of doing this?
lunar cypress
#

p sure exposed has a uuid type

#

just a side note

distant sun
#

I know Johnny but I manipulate a database that is not created by me and gameId is a varchar(191)

hot hull
#

:kek:

winter iron
#

varchar(191)

#

so random

unkempt tangle
#

Did you know

#

Square Enix took Final Fantasy 7 and made a battle royal out of it

#

No kidding

regal gale
onyx loom
half harness
forest pecan
static zealot
#

Sir this is [REDACTED] sent from China

hot hull
half harness
static zealot
#

yeah but they redacted it ๐Ÿ˜ฆ

#

smh China

half harness
#

๐Ÿ™„

steel heart
#

Mad sus

prisma wave
stuck harbor
#

man

#

rust

#

๐Ÿ‘Œ

onyx loom
#

shush

stuck harbor
#

i wanna make a minigame server, using geezer so its cross-platform, and all the plugins are made in clojure

#

that would be very funny

#

too many threads

lunar cypress
#

@prisma wave any resources you can recommend for writing standalone gradle plugins?

prisma wave
#

nothing in particular

#

the official documentation is decent

stuck harbor
#

lein :)))

prisma wave
#

i sorta just trial and error-ed it

hot hull
#

When in doubt, stack will help you out

stuck harbor
#

man i was testing a plugin earlier

#

oh my that stack overflow error cause gson was like noh plugin must die

#

it couldn't understand the location variable

#

so i just set it as transient :)))

#

and disabled the location functionality

#

the best solution to any problem

hot hull
#

Might I remind everyone that the dude who decided Enum#valueOf should throw an exception if none match, is a fucking retard, Thank you very much.

half harness
#

๐Ÿ˜‚

forest pecan
half harness
#

?

forest pecan
#

meh or nah

#

the theme

hot hull
#

Disgusting

forest pecan
#

need to find better ones

#

lmao

hot hull
jovial warren
#

looks good to me

jovial warren
#

anyone here ever broken something more by adding on to it btw?

steel heart
#

yes

#

it tends to happen a lot

jovial warren
#

lemme show you this lol

#

without sending an update light packet for the chunk

#

with the update light packet

obtuse gale
#

Lol just don't make air opaque

#

You doofus

jovial warren
#

also, wanna see the hacks.exe I used to make the light update packet even function?

#

lol

stuck harbor
#

dont use a hacky solution in lower level systems

#

use a good one instead

jovial warren
#

making Krypton is basically shoot first, ask questions later lol

#

a.k.a make it work first, fix it up later

hot hull
#

aka most larger projects

#
1. Make code
2. Clean code
3. make code work again
4. ???
5. Profit
#

So I need to design a company from scratch for a class, any tips?

steel heart
#

Pull the Civil Software Engineer card and make it enterprisy as hell

ocean quartz
stuck harbor
#

man

#

bardy make a good api

#

with clojure support

#

like goood clojure support

hot hull
#

iwanio, I will shove that clojure support so far up the place where the sun don't shine

stuck harbor
#

man

#

sadge

#

but my threads

hot hull
#

make clojure compile to java

stuck harbor
#

mah threads

prisma wave
hot hull
#

You don't need your threads

#

Even better then

stuck harbor
#
(:gen-class
``` right?
prisma wave
#

mhm

dusky drum
#

anyone knows python3 and can help me why function (sort) like doesnt sort my text?

stuck harbor
#

what

#

be specific

half harness
#

and give the code

#

we can't help you if you just say "my function doesn't work" ;-;

stuck harbor
#

python is interpreted so it's just like the opposite of rust when it comes to errors

dusky drum
#

i did this:

#

and it just gave me the same as input

stuck harbor
#

mm well

#

what library is sorted from?

dusky drum
#

idk its default python library no need to import anything.

stuck harbor
#

ah it's in the std

hot hull
#

Oh you got std's, yikes

dusky drum
#

?

stuck harbor
#

standard library, not sexually transmitted disease, frosty

#

we call them STIs here

#

sexually transmitted infections

#

less ambiguous

dusky drum
#

... i restarted pc and it started working great...

stuck harbor
#

that's python for ya

#

2/10

#

beginners should learn rust

dusky drum
#

well i do know python pretty well but never ever came across something like this.

jovial warren
hot hull
#

@old wyvern sad_fingerguns

jovial warren
#

๐Ÿ˜

#

I fixed the issue with lighting

#

I was fucking putting the bits in the wrong order

#

because yet again, I don't know how to read

#

๐Ÿ˜”

static zealot
#

oh

hot hull
#

I need to fish ;C

obtuse gale
#

How's jogging going so far?

hot hull
#

Haven't jogged today, my legs hurt from yesterday still

#

Will probs go either tommorrow or the day after

onyx loom
#

fatty

obtuse gale
#

Oof

hot hull
#

Did you just call me fatty

onyx loom
#

yes

#

what u gonna do about it

hot hull
#

Eat chocolate

onyx loom
#

o give me some

hot hull
#

It's rice chocolate :))

#

Also no, you called me a fatty

onyx loom
#

nothing wrong with that

hot hull
#

Fishing

#

It's small tho, just like my brain

#

Okay a bit better

ocean quartz
half harness
#

lol

forest pecan
#

@half harness are you making an anticheat

#

lol

static zealot
#

Sir this is [REDACTED]

#

fuck man... china again

half harness
#

no

forest pecan
#

o

half harness
#

im not making an anticheat

hot hull
forest pecan
#

Sir this is [REDACTED] protests

#

damn it

#

China why

static zealot
#

man China is [REDACTED]

obtuse gale
#

This is off-topic for devs

forest pecan
#

Fefo is [REDACTED]

obtuse gale
#

Indeed

#

*gets banned*

half harness
forest pecan
#

no

#

lmao

half harness
#

ok

obtuse gale
#

Lmao

half harness
#

im just preventing wall scaling

static zealot
#

lets [REDACTED]

#

oh you know what

#

time for VPN

#

ok here

#

lets invade China

forest pecan
#

i love to have [REDACTED]

#

fuck

static zealot
#

VPN time Pulse

unkempt tangle
#

Is there a mod that refill automatically furnaces nearby?

static zealot
#

China can suck my balls

forest pecan
#

Connecting to ExpressVPN

#

.

#

..

unkempt tangle
#

yes

forest pecan
#

...

#

....

half harness
static zealot
#

..... ?

forest pecan
#

Connected to ExpressVPN Sucesfully

unkempt tangle
#

Dont adveise me anywhere

#

I am right right tehre I want to be

static zealot
#

n3w0rk go away. we don't want you. you didn't make us proud

forest pecan
#

^

#

you disgrace n3w0rk

static zealot
#

you tried to stole some candy? what are you? poor?

forest pecan
#

robbery

unkempt tangle
#

you're*

forest pecan
#

we must give the death penalty

static zealot
#

you don't talk like that with mine and Pulse's son

forest pecan
#

lol

static zealot
#

that's what I thought

#

for the past 3 days I've kept feeling like I want to punch something very hard. like a wall

half harness
#

wtf

static zealot
#

but I think dkim will be good enough for this

half harness
#

WTF

static zealot
#

I've been listening to Linkin Park, MGK, Distrubed, 30s to Mars and some others

half harness
#

what are those?

#

artists?

static zealot
#

please listen. especially to the first 2 if you never did

half harness
#

ok

#

so they're artists

static zealot
#

well artists and groups

#

of artists

unkempt tangle
forest pecan
#

Stop the audiop

#

ban

#

ban

#

lol

onyx loom
forest pecan
#

Sir this is [REDACTED]

#

wht the fuck

static zealot
#

wait pulse?

forest pecan
#

china passed vpn?

static zealot
#

oh noo

forest pecan
#

fuck

static zealot
#

oh noo

#

sound the alarms

forest pecan
#

i hear missiles

static zealot
#

China is taking over

forest pecan
#

damn it

static zealot
#

fuck [REDACTED]

forest pecan
#

F

static zealot
#

nooo

half harness
forest pecan
#

wait

#

imma do that too

obtuse gale
#

HAHAHA

forest pecan
#

one sec

static zealot
#

omg

#

lets do that to China

#

China sucks

#

ok it worked

#

fuck yeah

forest pecan
#

AWW YEA

static zealot
#

it was this easy? if only I knew

forest pecan
#

Lol yea

unkempt tangle
#

Everyone obeys china's regulations.

static zealot
#

We don't

half harness
#

oh what is it now

static zealot
#

China can eat mustard

static zealot
#

I wouldn't open it

#

you'll get very mad

half harness
static zealot
#

no

#

he said exactly this:

half harness
#

oh

static zealot
#

DKIM CAN SUCK MY ASS, he's a trash can and eats all the trash I throw at him

half harness
#

im opening it

static zealot
#

idk why he said the first part

half harness
#

it doesn't even have the edited tag

static zealot
#

IDK what to tell you man

#

maybe china redacted it for you

#

China really is taking over

half harness
#

inspect element ๐Ÿ™„

ocean quartz
half harness
#

lol

hot hull
#

So I'm fishing, and..

#

Interesting

onyx loom
#

ok

#

u love to see it

ocean quartz
#

1.4.31 fingerguns

prisma wave
#

Hate to see it

#

Get that awful plugin off my device

half harness
#

brister mitten ๐Ÿ˜ข

jovial warren
#

no he hates it now

onyx loom
jovial warren
#

because he somehow thinks that Elara, Haskell, F#, whatever kinda functional languages he's moved on to now are somehow better

half harness
#

ill do whatever brister says ๐Ÿ˜ค

jovial warren
#

Kotlin good Java bad

#

that's a fact

ocean quartz
#

BM hates and loves a different language every day

jovial warren
#

efe stfu

steel heart
jovial warren
#

what do you know efe

#

fuck all

#

I bet you haven't even tried it

half harness
#

what

jovial warren
#

Kotlin

#

you mug

prisma wave
#

Having never used them

steel heart
#

haskell is good

onyx loom
#

lol

jovial warren
#

fair enough

onyx loom
#

thjis is true

steel heart
#

it was so simple to make fizzbuzz in it

jovial warren
#

I didn't say they were bad BM

#

I just can't agree they are better than Kotlin

#

imo

onyx loom
#

bardy i hope ull be joining us for the weekly language tryouts starting march 1st

half harness
#

is kotlin that bad

#

efe

prisma wave
#

how can you not agree if you know nothing about them?

obtuse gale
jovial warren
#

I know small amounts about them BM

half harness
#

should i stop using kotlin

prisma wave
#

Not enough to make an informed decision

#

F# is multi-paradigm for example, it can do everything kotlin can

half harness
#

i tried yesterday

#

for an hour O_O

jovial warren
#

and also, I can't agree with you that something is better than something else if the latter I've been using for about half a year now and the former I've never used

onyx loom
prisma wave
#

You can't say it's worse either

jovial warren
#

no, I can't

steel heart
#

F#, Clojure and Haskell are good for smaller processes I guess but then OOP and imperative programming is more epic

half harness
jovial warren
#

but I can say that I personally prefer Kotlin

steel heart
#

mutability,
no thread safety,
side effects

#

ah so many pros

half harness
#

false

jovial warren
#

dkim wtf

prisma wave
#

Obviously the "X good Y bad" is a joke, but I can at least say I have an informed opinion

steel heart
#

same

jovial warren
#

you took the words out of my mouth haha

half harness
prisma wave
#

Rather than saying X good Y bad based on looking at Y for 5 minutes

steel heart
#

javascript is bad

steel heart
#

a formed and objective opinion

jovial warren
half harness
steel heart
#

efe your xp should be reset

#

why not yours

prisma wave
#

Machine code is still a language

jovial warren
#

efe you should just be yeeted

steel heart
#

all the sins

steel heart
#

dkim is dkim

half harness
#

WHAT

#

NO

#

NO

#

DONTTTTTTTTTTTTTT_ _

jovial warren
#

you think Java superior to Kotlin efe

#

wtf

#

how

steel heart
#

I mean it kinda is bbg

prisma wave
#

How about we make a rule

jovial warren
#

Conclure stfu

prisma wave
#

You can't say X > Y unless you've used both X and Y for at least 2 months

#

Why not?

onyx loom
#

does the "no IDE arguments" rule apply here

prisma wave
#

only because you're not used to it

onyx loom
jovial warren
jovial warren
jovial warren
#

yeah almost

lunar cypress
#

My pc crashed right after i sent that emote

jovial warren
#

Java reflection is vastly superior, I can agree there

onyx loom
#

dkim why do u always delete ur messages

jovial warren
#

but pretty much everything else

lunar cypress
#

I think it's sending me a message

jovial warren
#

Kotlin > Java

half harness
prisma wave
#

false

half harness
#

thats so

#

big

jovial warren
#

@lunar cypress what kinda OS you running? Windows?

prisma wave
#

No I

#

No u*

#

lol

jovial warren
#

efe just stfu

onyx loom
#

lol great nick

prisma wave
#

ty

jovial warren
#

nobody wants to hear your useless opinions

steel heart
#

JavaSkript

onyx loom
#

shame that fc is gonna remove it ๐ŸŒš

prisma wave
jovial warren
#

and also objectively wrong opinions

#

lol

steel heart
#

java > kotlin cant disagree on that one

prisma wave
prisma wave
jovial warren
forest pecan
#

I hit the jackpot

half harness
#

i only have 100 karma

onyx loom
#

bardy u have really strong opinions on this

jovial warren
#

on what?

onyx loom
#

and ur opinions seems to rely on kotlin good java bad

jovial warren
#

I have strong opinions on a lot of things

half harness
#

lmao

jovial warren
#

I'm an opinionated person, that's part of who I am Kali

half harness
#

i need xp

jovial warren
#

not your OS, you didn't make it

#

there's no way you'd be capable of creating an OS

onyx loom
#

๐Ÿฅฒ

jovial warren
#

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

prisma wave
#

the so called "free thinkers" when someone says kotlin is bad

jovial warren
#

must I repeat myself again?

#

I am Autistic

prisma wave
#

๐Ÿฅฐ

old wyvern
#

Kotlin bad Haskell good

jovial warren
#

I struggle to understand jokes

#

ffs

#

well fuck you too then

prisma wave
#

facts over fiction

old wyvern
half harness
steel heart
#

or better than java

forest pecan
#

Cause it has K and Kock

half harness
#

i gtg

prisma wave
forest pecan
#

dkim how old are you

#

lol

jovial warren
#

right then, here we go

half harness
forest pecan
#

lmao actually?

steel heart
forest pecan
#

lol

#

xD

prisma wave
#

type inference for variables only is great!

half harness
#

...

forest pecan
#

dkim

#

i think

#

you are 13

old wyvern
#

It must be the vaccinness!!! \s

half harness
forest pecan
#

did i guess right

#

lol

old wyvern
#

dkim is 52

forest pecan
#

hes old af

jovial warren
#
  • extension functions
  • expression functions
  • inlining
  • reduction of boilerplate (data classes, etc.)
old wyvern
#

Old man

forest pecan
#

old

half harness
#

anyways gtg

#

feel free to discuss my age

forest pecan
#

๐Ÿง“

prisma wave
jovial warren
#

that's just the 4 I can think of off the top of my head

forest pecan
#

๐Ÿง“ ๐Ÿง“ ๐Ÿง“ ๐Ÿง“ ๐Ÿง“

half harness
forest pecan
#

๐Ÿง“ ๐Ÿง“ ๐Ÿง“ ๐Ÿง“ ๐Ÿง“

half harness
#

wtfff

forest pecan
#

Dkim ๐Ÿง“ ๐Ÿง“ ๐Ÿง“ ๐Ÿง“ ๐Ÿง“

half harness
#

yes i am 1

#

how did you know

#

anyways gtg

#

byeee

onyx loom
#

when bardy doesnt even mention null safety :clojuremoon:

forest pecan
#

dkim stop being ๐Ÿง“

jovial warren
old wyvern
#

Kotlin: The Conspiracy - Directed by Andrey Breslav, Produced by JetBrains

prisma wave
old wyvern
#

Wanna know where the Brains come from in JetBrains????? From Brainwash !!!!!!

prisma wave
onyx loom
#

ikr

#

imagine needing null safety at a language level ๐Ÿคฃ

forest pecan
onyx loom
#

Optional >>

prisma wave
#

Imagine

forest pecan
jovial warren
old wyvern
#

Jetbrains evil corp

prisma wave
#

It's a big part

forest pecan
steel heart
prisma wave
#

Records, new helper functions, type inference. Modern java is pretty much as productive as Kotlin

old wyvern
compact perchBOT
#
๐Ÿ“‹ Your paste, PulseBeat_02
https://paste.helpch.at/numinevoje

A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.

forest pecan
#

smh

#

smh

#

dkim you are back

forest pecan
#

๐Ÿ‘ด

#

@half harness ๐Ÿ‘ด

steel heart
#

kotlin creates boilerplate if you want to avoid type inference which is not nice

prisma wave
#

Kotlin dies if there even a tiny bit of ambiguity

half harness
#

intellij has lombok button

forest pecan
#

kotlin doesnt die

#

you die

jovial warren
forest pecan
#

gross

prisma wave
#

It's so insecure it has to generate null checks for @NotNull variables ๐Ÿคก

forest pecan
#

disgusting

#

subhuman

#

insecure

half harness
#

ok i gtg again

jovial warren
#

Lombok is a nasty compiler hack

forest pecan
#

?plsnolombok

compact perchBOT
#
FAQ Answer:

Why is Lombok bad?

  • It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
  • It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
  • Lombok'd code won't show in Javadocs
  • The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
  • Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
  • While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
  • Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
jovial warren
#

it's code generation at compile time

old wyvern
#

Also does kotlin requires you type the return type if using a block, guess where that isnt a problem??

#

Ill give you a hint

#

it starts with Has

prisma wave
#

๐Ÿฅฒ

old wyvern
#

And ends with kell!!

ocean quartz
#

Elara!

jovial warren
#

fun fact about Lombok btw: JetBrains actually remade the Lombok IntelliJ plugin themselves, since the original plugin would literally break every update

prisma wave
#

Also true!

steel heart
#

kotlin does not really solve the lombok problem just adds it natively

prisma wave
onyx loom
#

kotlin is just another compiler hack

jovial warren
onyx loom
#

it compiles to jvm, compiler hack

prisma wave
#

imagine having to specify parameter types

#

Couldn't be F#

forest pecan
#

what if kotlin == lombok

onyx loom
#

basically yes pulse

forest pecan
#

it is tho

#

like the getters

#

nope

jovial warren
forest pecan
#

setters

#

nope

half harness
#

wait

prisma wave
half harness
#

do kotlin getters/setters show in javadocs?

onyx loom
#

why would they

jovial warren
onyx loom
#

well actually, kotlin has their own docs

#

yeah

#

KDocs

static zealot
old wyvern
#

None of them have any corelation to what braces do

jovial warren
#

if you choose to generate Javadocs, Kotlin will generate documentation from the Java equivalent of the Kotlin code

jovial warren
#

xD

static zealot
#

shh

jovial warren
#

don't kill me pls Matt

onyx loom
#

๐Ÿฅถ

#

mattstudios with his monopoly

old wyvern
#

mf libraries

static zealot
#

I'm sorry bombardy but this will be the last day you can say anything. do it now please before your time runs out

prisma wave
old wyvern
#

Imagine having impure code

onyx loom
#

couldnt be haskell

old wyvern
#

Imagine having monads but no monadic operators

prisma wave
#

๐Ÿคก

#

Wait

static zealot
#

imagine imagining ...

prisma wave
#

Aren't nullable types technically a monad? I guess apart from return

#

?. is sort of the equivalent of >>=

old wyvern
#

hmm I guess yea

half harness
lunar cypress
#

I think it's more intuitive and beneficial to view T? as an actual union of T and {null} rather than a Monad

lunar cypress
half harness
#

why is it 10 now

#
  1. kotlin good
  2. kotlin epic
  3. kotlin awesome
  4. kotlin superior
  5. java bad
#

lol

onyx loom
#

i just learnt about when so ill say when

half harness
prisma wave
#

But I'm still not 100% sure what a Monad is, so

old wyvern
#

The only reason I can think of for that is that you can "set" a type of T to that

half harness
#
public static <T> Class<T> test(Class<T> clazz) {
    return clazz;
}
```what is the kotlin version of this
old wyvern
#

But since kotlin seems to generally associate assignment with setters, im not sure thats enough of a reason

#

Unless theres some other reason to think so?

prisma wave
#
fun <T> test(clazz: Class<T>) : Class<T> {
    return clazz
}
half harness
prisma wave
#

Ohh yeah that won't compile

#

Fixed

half harness
#

ok

#

kotlin ๐Ÿ˜

prisma wave
#

The syntax is good wdym

half harness
prisma wave
#

Not exclusively

#

But I think the syntax is nice

#

Oh lol

prisma wave
half harness
#

no its not

prisma wave
#

I have a crippling addiction to currying

half harness
#

what

prisma wave
#

Lol

#

Partial application of a function

#

It's so good

old wyvern
prisma wave
#

Yes

#

Kotlin currying would be AMAZING

old wyvern
#

kotlin#

onyx loom
#

there is yes

prisma wave
#

Yes, but you don't need it most of the time

#

It's just for interop

#

Eg if you're working with both and need to make sure it's just "plain old static"

lunar cypress
# old wyvern Why so?

because it is more natural due to the definition of nullable types. They're not a wrapper for T, but a completely separate type. You can define it to be a monad to some degree, but that definition would be superimposed

half harness
#

since kotlin compiles to jvm stuff bytecode stuff what if u decompiled kt code?

prisma wave
#

It would look like slightly weird java

half harness
prisma wave
#

: MyClass()

#

Other than that, yes

prisma wave
half harness
#

o

prisma wave
#

Oh yeah you need that too

#

Haven't used kotlin in a while, kinda lackin

#

Uh

#

What are you asking

#

That looks fine

onyx loom
#

just use class PersonTwo(blkah bla bla)?

#

uh wat

prisma wave
#

I think so

ocean quartz
prisma wave
#

Any

onyx loom
#

u wouldnt need .equals
toString would work on most objects afaik
probably?
probably?

half harness
prisma wave
#

They all still exist, yes

half harness
#

how do i make constructor in kotlin

old wyvern
onyx loom
#

class Blah (val name: String)

half harness
#

no i did not

lunar cypress
prisma wave
#

what about it?

#

That works

#

oh yeah

#

Ofc

half harness
#

how do i use streams in kotlin

prisma wave
#

Everything in the java standard library exists

prisma wave
onyx loom
#

kotlin has better functions than streams

prisma wave
#

Indeed

onyx loom
#

so theyre basically not needed

prisma wave
#

You don't use streams much

ocean quartz
onyx loom
#

much better

ocean quartz
#

Kotlin's aren't streams

onyx loom
#

basically equivalent tho right matt

#

or atleast closest equivalent

ocean quartz
#

Equivalent but very different

prisma wave
#

Kotlin doesn't really use streams unless you actually want parallelism

#

the first one

ocean quartz
#

A kotlin "stream" will compile into a normal loop
While java will be functional stuff

prisma wave
#

Kotlin Sequences are very close in functionality to streams

#

Ugly and not very idiomatic but yeah

ocean quartz
#

I'll smack you for that

prisma wave
#

Yugi btw we probably need lazy sequences

half harness
#

whats bad about JvmStatic

prisma wave
#

In elara

half harness
#

how do I create a singleton in kotlin?

steel heart
#

whats lazy sequence

ocean quartz
prisma wave
lunar cypress
prisma wave
#

Streams are lazy

half harness
#

now SWITCh

prisma wave
old wyvern
ocean quartz
steel heart
prisma wave
#

Streams are lazy sequences

#

Most FP langs just have them baked into the language

steel heart
#

oh

lunar cypress
#

boring video

#

they just run the shutdown command

#

local server

#

plugin probably

#

no

#

calling shutdown as a subprocess

#

not even bsod

prisma wave
#

sounds pretty impure

lunar cypress
#

we talked about it here a while ago

#

no

jovial warren
#

lol

hot hull
#

๐Ÿ˜ฎ

#

@old wyvern

obtuse gale
hot hull
#

sthu

forest pecan
stuck harbor
#

Sir this is #memes

old wyvern
obtuse gale
#

A lot

stuck harbor
#

a lot

#

what

obtuse gale
#

Lol

stuck harbor
#

2 a.u

#

:)

#

those are actual numbers efe

obtuse gale
#

What kind of "data" though? Bytes?

onyx loom
#

they are actual numbers ๐Ÿ™‚

#

2 astronomical units ๐Ÿ™‚

stuck harbor
#

not astronomical units

#

the other meaning of au

onyx loom
stuck harbor
#

noh

obtuse gale
#

I don't think there is any hard limit though

#

Just what the server can handle

stuck harbor
#

efe it depends what encoding it uses

#

well unicode is fucking massive

#

literally massive standard

#

man efe

#

google it

#

man

#

A?

#

u mean 10?

#

A is hex for 10

#

iirc

#

or 11

#

derp

#

half

#

half a byte

#

wait

#

the number 10, or 10?

#

oh just the letter A

#

1 byte

#

01000001 is lowercase a

#

well no

#

compression efe

#

and header data

#

and overhead, the bane of assembly developers

#

and js devs are like what's ram

#

no efe

#

that's not how this works

onyx loom
stuck harbor
#

I think I got the acronym wrong

#

but it's like a unit which has no defined meaning

#

no efe

#

chunks are a few KiB each

obtuse gale
#

I mean it will grow if there is a shit ton of data in it

stuck harbor
#

u wrong

#

idk how chunks are stored

#

probably as 'object'

#

they are probably stored as block objects

#

pffffff

#

objects are bad

#

mc shoulda used an ECS from the start

#

fuckin' notch using OOP

#

:)

jovial warren
#

how are you measuring that?

#

in one chunk?

#

I ask again

#

how are you calculating it?

#

wait what?

#

what are you saying here?

#

it's 2.2MB per chunk

#

you know that right?

#

didn't you watch the video?

#

go to 1:35 in the patched video

#

"a chunk will refuse to save when the data stored inside of it goes over 2.2 MB"

#

this is a big pepega moment

#

look at my words again

#

read what I quoted again

#

the chunk itself will refuse to save when the data stored inside of the chunk goes over 2.2 MB

dawn hinge
#

:o?

jovial warren
#

oh btw, here's something that I feel like I haven't done in a little while: Krypton open testing

prisma wave
surreal quarry
#

No configuration help

#

When a client tells you that you need to write in java ๐Ÿฅฒ

jovial warren
#

๐Ÿฅฒ

#

anyone up for Krypton open alpha testing btw?

#

168.119.171.28:22

inner umbra
#

Krypton?

surreal quarry
#

Minecraft Server in Kotlin

jovial warren
#

custom Minecraft server implementation from scratch in Kotlin

surreal quarry
#

Previously known as MineKraft

jovial warren
forest pecan
#

lol

surreal quarry
#

Sir

jovial warren
#

very early alpha, but seems to be at least somewhat working

forest pecan
#

says connection reset by peer

jovial warren
#

okay that was my stupidity

#

I put the SSH port on the end

#

remove the port

forest pecan
#

oh

jovial warren
#

168.119.171.28

forest pecan
ocean quartz
jovial warren
static zealot
#

omg

#

that's so beautiful

forest pecan
#

lol

static zealot
#

Its like the cauldron with lava

jovial warren
#

blitz join

static zealot
#

under water

#

with snow on top as well

#

so you can freez, burn and swim at the same time

#

can't

#

rewriting a plugin

jovial warren
#

lol

static zealot
#

been working for 2 days now xD

jovial warren
static zealot
#

it was so trash had to delete everything

#

all I have left from it is a bit of my main class and a command or 2

#

Hmm I'm making a TypeAdapter for gson and I have a list but JsonObject#addProperty() only allows Boolean, Number, Char and String. how would I add a list as well?

#

to a jsonobject

forest pecan
obtuse gale
static zealot
#

oh thanks

forest pecan
onyx loom
#

no one will stole it

half harness
#

๐Ÿ˜‚

forest pecan
#

wasnt me that made it

#

reddit

#

xD

hot hull
#

So I'm farming experience, and there's a dude playing the banjo

#

Or however the fuck you spell that

jovial warren
#

so true

hot hull
#

Grow a pair and show ze code

hot hull
#

@old wyvern Invincible catto

remote goblet
hot hull
#

I think I might be able to get it to 10k

jovial warren
#

can anyone recommend configuration formats to use for Krypton btw?

#

tempted to just add some configuration options so that it's more usable

distant sun
#

by formats you mean file types or?

jovial warren
#

yeah

#

e.g. JSON, YAML, TOML, HOCON, whatever other kinda formats exist lol

distant sun
#

json is ew

jovial warren
#

yeah JSON is really easy to parse but also horrible to write

hot hull
#

Just add support for multiple?

jovial warren
#

I guess

hot hull
#

I might start using toml cause it looks really nice

jovial warren
#

yeah but I'm asking what should I use for the server's config

distant sun
#

yaml or toml

#

and make it keep comments ffs

#

so you can find what a setting does without having to open a wiki or whatever

jovial warren
#

if the specification doesn't state it keeps comments (like YAML's doesn't), then it ain't gonna keep comments lol

distant sun
#

yaml can keep comments

jovial warren
#

unless I make my own impl

distant sun
#

is just bukkit implementation which sucks

hot hull
#

yaml can keep comments

jovial warren
#

yeah but the YAML specification doesn't state that comments need to be preserved

#

no

#

it's SnakeYAML that doesn't keep comments

#

because the specification doesn't say you should

distant sun
#

but we do say so

jovial warren
#

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

distant sun
#

:)

jovial warren
#

I'll make it work I guess

hot hull
#

I mean you can have it keep comments if you use reloadFile instead of saveFile

jovial warren
#

we won't be using SnakeYAML anyway

#

we're using kotlinx.serialization for everything

hot hull
#

Good

distant sun
#

configurate

jovial warren
#

kotlinx.serialization

#

what's configurate even like?

distant sun
#

a lib made by sponge

jovial warren
#

if it looks anything like ConfigMe then we ain't having it, since I see no point, and frankly don't like the use of separate configuration classes

#

I mean, it makes your life easier, but it's pretty pointless

fluid crag
#

Does anyone know how to webhook public repo commits into a channel on discord? (not owned)

jovial warren
#

also, configurate is Java

jovial warren
hot hull
#

ConfigMe is disgusting

fluid crag
#

well isn't my topic relevant

jovial warren
jovial warren
fluid crag
#

I'm not asking for config help lol

hot hull
#

It's kind of the right place Bardy

jovial warren
#

ah true

#

maybe

#

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

hot hull
#

4head

jovial warren
#

anyway, just follow that guide

fluid crag
#

also, the repos aren't owned by me so there is no 'settings'

jovial warren
hot hull
#

I'll dm you the address if you wanna come over

jovial warren
#

you need to have access to settings

fluid crag
#

right, ty for letting me know then

jovial warren
#

I hope you're not working for one of those MC servers where the owner owns the GitHub organisation even though they haven't a clue what they're doing

#

if you are, I feel sorry for you xD

fluid crag
#

I'm just trying to get commit updates of plugins i use so I can view it all in one channel

jovial warren
#

ah right

#

yeah that's not really possible unfortunately

#

unless their servers have channels you can subscribe to

#

actually, thinking of Discord servers, I should set one up for Krypton lol

jovial warren
#

Krypton Discord server is now a thing

#

someone please remind me on the (advertising? is it advertising?) rules here lol

hot hull
#

It is advertising

jovial warren
#

might just add it to the README and direct ya there xD

hot hull
#

better

karmic fjord
#

is there a way to change items in beacon gui

hot hull
#

Doubtful

#

It's client sided so I don't think so

karmic fjord
#

client sided huh

#

weird

#

I could not find anything on the internet

#

probaly it is

hot hull
#

Use an RP

karmic fjord
#

RP?

hot hull
#

resource pack

karmic fjord
#

items are not in gui

hot hull
#

hmm

karmic fjord
#

can i use reflection or something like that

hot hull
#

Not how it works

blazing walrus
#

You could probably change the items itself through the rp? Like change the diamond.png?

hot hull
#

That would affect other stuff as well tho

karmic fjord
#

yeah if i change diamond.png all diamonds gonna change

#

lol

blazing walrus
#

Right

jovial warren
hot hull
#

WILL CONTAIN BUGS!

jovial warren
#

well I have to warn people

#

because I don't want GitHub flooded with issues of people complaining that it doesn't work

stuck harbor
#

man they say geyser isnt production ready

#

pffffft

jovial warren
#

I mean, compared with Krypton, Geyser is ready for Hypixel use lol

#

but it's not production ready

stuck harbor
#

lol

#

bugs shmugs

#

if ya want a stable game, u wouldn't be playing minecraft

jovial warren
#

good point

jovial warren
#

also, join ze Krypton Discord iwanio ๐Ÿ™‚

stuck harbor
#

mmm

hot hull
jovial warren
#

ffs

#

what is it with you and TikTok lol

stuck harbor
frigid badge
#

nah not boomer

#

I agree with bardy

stuck harbor
#

you are also boomer

hot hull
#

bruh y'all keep complaining about tiktok and Imma start posting PH links

stuck harbor
#

man

reef maple
#

Hi, is it possible for a filewriter to format a json (indentation, etc) instead of put every infos on only one line ?

stuck harbor
#

uhh use gson

#

and use the setPrettyPrinting() on the gson builder thingy

reef maple
#

Okay. Gson need an import from maven ?

stuck harbor
#

yeah

prisma wave
#

not if you have spigot

#

it's bundled with spigot

reef maple
#

Oooh nice

stuck harbor
#

oh yeah it is, isnt it

reef maple
#

Alright, thanks ^^

jovial warren
lunar cypress
#

staff team btw

onyx loom
#

im happy with that

#

as long as its good

jovial warren
#

lol

hot hull
#

"staff team btw" You trully don't get a joke do you

old wyvern
#

๐Ÿคก

hot hull
#

You're an idiot efe

obtuse gale
#

Lmao

#

no joke half the people in this server have their sarcasm sensors burnt out

#

Yeah he was gonna share porn instead lowkey

#

Well

#

You just said it

#

Lmao

errant geyser
obtuse gale
#

O

hot hull
#

kek katsu

#

Are you dumb?

#

You do realize it's a nickname

errant geyser
#

F

hot hull
#

Yes

jovial warren
#

bruh why's it only receiving light update packets (pw = update light, pt = chunk data)

#

ffs

#

right, challenge time

#
section.palette.sumBy {
    if (it.name.value == "tall_seagrass") return@sumBy 2
    GlobalPalette.PALETTE.getValue(it.name).varIntSize()
}
```tell me what's wrong with that code (ik what the issue is, just want to see if anyone else can figure it out lol)
prisma wave
#

๐Ÿ˜Š

jovial warren
distant sun
#

default IJ theme ??

jovial warren
#

yeah this is on my Kali VM lol

#

I cba to change the theme of IJ on here, I'm only using IJ for viewing Mojang code

#

I'm trying to understand how Mojang deals with their registries lol

#

but when you got bogus classes like BitStorage, it's kinda difficult lol

#

obviously, what this proves is that obfuscation isn't meant for protecting your code from being understood and replicated, it's to cover up the fact that it's a fucking mess

spring canyon
#

Well, it doesn't have to be a mess

jovial warren
#

true

#

but obfuscated code often is

errant geyser
#

Hey Bardy why did you archive Octo?

jovial warren
#

because it's kinda old and outdated