#dev-general

1 messages · Page 135 of 1

jovial warren
#

Scala's a bit like Kotlin but misses a few things that Kotlin has like extension functions and inlining

#

from what I've seen

topaz bay
#

You dare to insult kotlin like that???

prisma wave
#

scala has extension methods afaik

#

or kind of

onyx loom
#

clojure good kotlin bad
@prisma wave what

prisma wave
#

with a bit of a hack

onyx loom
#

take that back

prisma wave
#

i'm not wrong

ocean quartz
#

It wasn't an insult! They have similarities

old wyvern
#

C# seems to have all features that kotlin has

prisma wave
#

my name proves it

#

clojure good, kotlin bad

jovial warren
#

C# is fucking trash

heady birch
#

Rust does everything better

onyx loom
#

oh god

old wyvern
#

C# is fucking trash
And why is that?

onyx loom
#

change back

#

RIGHT NOW

jovial warren
#

C# has PascalCase method names

prisma wave
#

no

onyx loom
#

i do not approve of this name

prisma wave
#

you should

old wyvern
#

That totally depends on what you are used to

prisma wave
#

clojure is the future

#

you'll see

old wyvern
#

If you use C# follow its convention

heady birch
#

Any language that begins with N?

jovial warren
#

literally all of the method names are PascalCase by convention Yugi

old wyvern
#

If you use java, use its convention

ocean quartz
#

Actually I think i should have said Scala instead of Groovy, Scala is more similar

old wyvern
#

..ect

prisma wave
#

Scala is much more similar

jovial warren
#

yeah I guess C# isn't that bad a language, it's just that it's convention is shit

old wyvern
#

literally all of the method names are PascalCase by convention Yugi
as I said, you are just basing it off of your background

jovial warren
#

C++ is shit though we can all agree on that right?

old wyvern
#

No

prisma wave
#

no

onyx loom
#

no

prisma wave
#

c++ is powerful

onyx loom
#

lol

old wyvern
#

Bardy is shit

prisma wave
#

it's just tricky

old wyvern
#

🍉

jovial warren
#

yeah but it's a pain to write BM

old wyvern
#

Change my mind

prisma wave
#

and has a learning curve

onyx loom
#

i wouldnt mind learning c++

jovial warren
#

okay what about C

heady birch
#

Rust literally does c++

ocean quartz
#

C is dead

prisma wave
#

all lower level programming is gonna be harder to write

heady birch
#

And its safer

old wyvern
#

works tho

prisma wave
#

Rust is nice

jovial warren
#

C is only good for low-level things like kernels

#

Assembly languages are like unreadable

onyx loom
#

@heady birch how fast is rust

prisma wave
#

fast

heady birch
#

Yep

onyx loom
#

is it compiled?

prisma wave
#

yes

heady birch
#

Yes

prisma wave
#

to native code

onyx loom
#

noice

prisma wave
#

so pretty speedy

#

no VM

onyx loom
#

speedy speedy

prisma wave
#

no GC

jovial warren
#

also the convention for C# seems to also include the allman style

heady birch
#

Apparently sometimes faster than C

onyx loom
#

faster than c 👀

jovial warren
#

I mean, ik that is very subjective but I hate the style

onyx loom
#

im sure thats only in certain situations, but nice

old wyvern
#

Assembly languages are like unreadable
C is not a "Assembly language" its just called a portable assembly language since transalation is kinda easy

topaz bay
#

faster than c is not like... hard to obtain

#

Java can be faster than C

jovial warren
#

yeah depends on what you're doing

heady birch
#

java pretty fast

jovial warren
#

I mean, C's lack of a String type is annoying as fuck personally

heady birch
#

java also super good at memory allocation

onyx loom
#

all languages fast on modern pcs

prisma wave
#

i mean

onyx loom
#

🙂

prisma wave
#

python slow

jovial warren
#

except for Python games @onyx loom

heady birch
#

Not odin tho

#

Odin slow

prisma wave
#

odin HELLA slow

#

trash

heady birch
#

Angry sxtanna

ocean quartz
#

@topaz bay Would you say GO is one of the fastest?

old wyvern
#

I mean String is still a collection of chars wrapped in most languages?

jovial warren
#

anything in Python that is larger than a single file is fucking slow

heady birch
#

Why do data scientists like Python

jovial warren
#

I mean String is still a collection of chars wrapped in most languages?
yeah but things like pointers don't make much sense either

prisma wave
#

because it's accessible

heady birch
#

Surely they gotta crunch big numbers

onyx loom
#

CRUNCH

old wyvern
#

yeah but things like pointers don't make much sense either
They do make sense?

jovial warren
#

Why do data scientists like Python
easy to write, easy to learn, great for small programs, quite fast for small programs actually as well

old wyvern
#

What are you on about m8

ocean quartz
#

Because Python is easy to use and very accessible

prisma wave
#

also has a very wide ecosystem

heady birch
#

Pointers make me happy

ocean quartz
#

Pointers make me wanna kill myself

heady birch
#

Or in rust I think its called reference

jovial warren
#

also, static = local variable

heady birch
#

How

#

What does it do?

prisma wave
#

pointers cool

jovial warren
#

I saw a tutorial that said static was used to define local variables in C

ocean quartz
#

What

jovial warren
#

idfk lol

old wyvern
#

It can be used even in local variables

jovial warren
#

also who here's good at convincing one of their opinions?

old wyvern
#

But otherwise its behaviour is similar to what youd expect

prisma wave
#

how do you print in clojure

jovial warren
#

hmm... lemme just perform a quick google search...

#

print ""

prisma wave
#

doesn't work

jovial warren
#

I think

prisma wave
#

can't even figure out how to run this shit

onyx loom
#

good

prisma wave
#

clojure bad

onyx loom
#

this is a sign

jovial warren
#

is Clojure interpreted?

onyx loom
#

that u shouldnt be using it

ocean quartz
#

It's like println object

jovial warren
#

because I swear this CLI looks like something I've seen before

#

cough Python cough

prisma wave
#

it's (println "Hello") I think

#

bc prefix notation

ocean quartz
#

Yeah parenthesis everywhere

#

((((((((println ("hello")))))))))

jovial warren
#

lol

onyx loom
#

are there any actual advantages of clojure?

#

like over java

jovial warren
#

@lunar cypress might actually be able to help you with Clojure btw BM

prisma wave
#

you can't really compare the 2

onyx loom
#

to me it just looks like a shit show

prisma wave
#

clojure is a lisp, it's vastly different to java

#

it just uses the JVM for greater accessibility

#

and portability

jovial warren
#

so Clojure isn't interoperable with Java then?

prisma wave
#

it is I believe

#

but it's limited

jovial warren
#

¯_(ツ)_/¯

#

someone give me a programming language to go and try out lol

heady birch
#

Rust

#

Or Fortran90

jovial warren
#

and I swear if someone says Assembly or Haskell just get out

onyx loom
#

rust

prisma wave
#

haskell

onyx loom
#

or c++

heady birch
#

Cobol

onyx loom
#

Elara 👀

heady birch
#

Odin

onyx loom
#

no not that

prisma wave
#

odin bad

onyx loom
#

dont mention that

heady birch
#

I can't remember the Odin syntax

#

Its like

onyx loom
#

disgusting

heady birch
#

pull:::[String]

jovial warren
#

wait... inline array?

onyx loom
#

where

heady birch
#

Inline array where

jovial warren
prisma wave
#

all my homies hate odin

onyx loom
#

i shall make this into the meme

#

1 minute

jovial warren
#

"the meme"

prisma wave
#

the meme

onyx loom
prisma wave
#

i love it

jovial warren
#

wow

prisma wave
#

anyway @topaz bay got any ideas for elara and did you see mine?

jovial warren
#

let's see what the man himself has to say about you guys saying his language is trash eh

onyx loom
#

he wont says hit

#

because he knows its true

#

but its ok, he has a second chance with elara

heady birch
#

What's elera?

ocean quartz
#

All my homies are hating Odin take it slow

onyx loom
#

elara is the language that will win $10k (i think)

prisma wave
#

yes

jovial warren
#

he wont says hit
also you realise this is sx we're talking about right?

prisma wave
#

absolutely

#

we will be millionares

onyx loom
#

so u know the fact that uve already won the challenge

#

what will u be spending it on 👀

prisma wave
#

anti-odin propaganda adverts

onyx loom
prisma wave
#

a worthy cause imo

hot hull
#

All these languages got stds sheesh

ocean quartz
#

It's pretty standard for them to have

old wyvern
#

someone give me a programming language to go and try out lol
Since you didnt believe me about kotlin being very similar to c#, try that

ocean quartz
#

Hehe

jovial warren
#

also BM have you and sx ever worked on a project together? lol

heady birch
#

I saw this somewhere

onyx loom
#

bruh

jovial warren
#

also btw, how cool would a voice-activated Discord bot be?

onyx loom
#

that made my ass cheeks tighten

prisma wave
#

also BM have you and sx ever worked on a project together? lol
indirectly

#

but nothing major

#

he is ignoring all my suggestions so we're off to a great start

#

smh

jovial warren
#

also btw why you still showing as private on the org?

prisma wave
#

what org

jovial warren
#

you know what org lol

#

Prevarinite silly

prisma wave
#

i have no idea what you're talking about lol

#

oh

#

idk

hot hull
#

(blurred the name so y'all don't go shit on him)

jovial warren
#

wow

onyx loom
#

why not

versed ridge
#

aw man

onyx loom
#

i wanna crusade

jovial warren
#

same

versed ridge
#

why would you protect someone like that

onyx loom
#

i need to get an emoji for crusading

#

@remote goblet gimme emoji pls

jovial warren
#

just because he blurred the name that makes me wanna know who this guy is

onyx loom
#

shouldve atleast not blurred the pfp smh

jovial warren
heady birch
#

Nice logo

hot hull
#

If I didn't blurr the pfp you would've known

onyx loom
#

THEN SHOW

jovial warren
#

^^^^

onyx loom
#

🙂

jovial warren
#

also I love how @chilly jungle still hasn't accepted the invite to the organisation

#

smh lol

onyx loom
#

he declined it

#

and made helpchat iirc

#

well for discord i think

#

idk for gh

jovial warren
#

he hasn't declined the invite

#

also he's literally in the discord server lol

onyx loom
#

the discord team invite

#

he declined that

jovial warren
#

ah okay

#

yeah haven't even been looking at that lol

#

also no he didn't decline the invite

#

he accepted it

onyx loom
jovial warren
#

you wanna see?

onyx loom
#

thats what he said a while ago so idk

jovial warren
#

ah okay

#

wow for some reason I can't upload files

#

ya saw it

remote goblet
#

@remote goblet gimme emoji pls
@onyx loom the only one i have is CBCrusade

#

and that

hot hull
#

Can't even use gradle fingerguns_reversed

ocean quartz
#

Frosty does your inventory types PR work with every inventory type?

hot hull
#

Yes

ocean quartz
#

Okok

hot hull
#

When it comes to storing data in the player's persistand data container, what would be the fastest way of retrieving data from all players?

onyx loom
#

@remote goblet they trash

hot hull
#

Do I have a map with all the data which I update every so often on top of the player data, or should I just loop through the players when retrieving it?

onyx loom
#

let me try make the crusade meme image into an emoji, it might be too small tho, let me see

remote goblet
#

i know SadCat

hot hull
#

@prisma wave hulp

jovial warren
#

what be wrong with yer code today matey?

onyx loom
hot hull
#

Nothing wrong, just design questions

onyx loom
#

lol

#

let me make it smaller wonk

hot hull
#

Though talk for a fella within crusading distance fingerguns_reversed

prisma wave
#

Hello

#

A loop is probably fine

#

Saves having to keep things in sync

hot hull
jovial warren
#

also @prisma wave any idea why I'm getting Parameter 0 of constructor in dev.bombardy.bardybot.config.SentryConfig required a bean of type 'java.lang.String' that could not be found.?

hot hull
#

What's latest version of matt's cmd framework?

#

Icba to find the site cause google is a whore

onyx loom
#

1.4 iirc

jovial warren
#

I've literally got @ConfigurationPropertiesScan on my main class and it's picking up all of the @ConfigurationProperties classes, which are also annotated with @ConstructorBinding

prisma wave
#

Send the class

jovial warren
#

which one?

#

the config class?

prisma wave
#

Yes

jovial warren
#
@ConfigurationProperties("sentry")
@ConstructorBinding
data class SentryConfig(val dsn: String)
#

literally nothing at all wrong with it

heady birch
#

is in constructor

#

might have to do

#
class SentryConfig {
    lateinit var dsn: String
}```
#

lateinit var dsn: String

#

}

jovial warren
#

what I had before

#

but the thing is: this should work

heady birch
#

Did you find it on a turoial?

jovial warren
#

yep

#

that error that I sent only occurs when you haven't annotated with @ConfigurationPropertiesScan or @EnableConfigurationProperties on your main, and you haven't annotated the @ConfigurationProperties class with @ConstructorBinding

heady birch
#

Is it spring boot?

jovial warren
#

yeah

obtuse gale
#

helpme md

#

pls

heady birch
#

I never used those EnableConfigurationProperties and ConfigurationPropertiesScan oens

#

Unless they are enabled by default

jovial warren
#

says can't find a bean of type if it's not present

ocean quartz
#

@obtuse gale Ask what you need instead of just "help me please"

heady birch
#

Ah

#

Mine are also marked with @novel badgeruration

jovial warren
#

poor guy lol

heady birch
#

Darn thats the second time today I've tagged someone random

#

First one was @PasswordMatches

ocean quartz
#

Lmao

jovial warren
#

dw he got tagged twice yesterday by BM for the exact same reason @heady birch

heady birch
#

Poor guy

hot hull
#

He doesn't check this discord, so y'all should be fine :kek:

floral basin
#

Lmao

ocean quartz
#

I think I'll make a GuiType enum to control which InventoryTypes are allowed, as some will bug out

heady birch
#

I love how I have successfully converted over 3 people to Spring Boot

jovial warren
#

lol

#

actually technically you didn't convert me, BM did

errant geyser
#

And Bardy converted me, idk if I was included in that though

jovial warren
#

okay found why my thing isn't working btw @prisma wave

prisma wave
#

nice

jovial warren
#

and it's literally the least obvious thing to spot in the world

heady birch
#

Go on..

jovial warren
#

gimme a sec getting a program so I can draw a box around it lol

#

I swear that explains it

hot hull
distant sun
#

Long?

hot hull
#

Longen shlongen yes

distant sun
#

Ok ..?

prisma wave
#

Imagine not using BigInteger for currency

distant sun
#

Ew no

prisma wave
#

Or BigDecimal

jovial warren
#

also, that information screenshot I posted actually makes no sense

#

since making it not work like that literally defeats the point of having it at all

hot hull
#

BM, amounts won't go that high, so it's useless, also not supporting decimals so fingerguns_reversed

prisma wave
#

But future proofing 😫

old wyvern
#

AlSo wHy ThE WrAPpED LoNg

heady birch
#

Mine are also marked with @novel badgeruration
@heady birch

hot hull
#

Screw future proofing, Yugi, it's nicer <o/

old wyvern
#

how is it nicer? xD

ocean quartz
hot hull
#

Gold color is nicer than purple fingerguns_reversed

jovial warren
#

three diamonds make one diamond...

distant sun
#

Wew @ocean quartz

floral basin
#

3 diamonds for 1

#

deal

hot hull
#

Now that's some inception

floral basin
#

thats a steal right there

old wyvern
#

Gold color is nicer than purple fingerguns_reversed
RAcISt

hot hull
#

smh

floral basin
#

purple lives matter

#

even though I stopped boosting like 5 months ago

onyx loom
#

pls boost

distant sun
#

Weirdo

floral basin
#

I have bills to pay

#

and Nitro with boost aint one

distant sun
#

Ye ye

onyx loom
#

who needs bills when u boosting helpchat

ocean quartz
#

@hot hull I think you were the one that asked me this a while ago, is this good?

onyx loom
#

if u boost fc pays ur bills for 1 month wonk

hot hull
#

I already fixed that myself smh

floral basin
#

x

hot hull
#

But yea better lmao

old wyvern
#

I have bills to pay
Boomer

floral basin
#

im 16

old wyvern
#

116*

hot hull
#

I might've actually had that included in my pr Matt kek

floral basin
#

lol

onyx loom
#

paying bills at 16 wtf

floral basin
#

ya

onyx loom
#

thats sad

floral basin
#

I have to pay car insurance, car payments

#

uhhh

#

gas

ocean quartz
#

Your PR was weird, you mess up even with my organization xD

distant sun
#

You are 16?

hot hull
#

smh

old wyvern
#

Why do you have a car at 16?

onyx loom
#

^^^^

#

how too

distant sun
#

US laws

floral basin
#

I live in Texas lol

onyx loom
#

i swear u cant drive in us til ur 18

hot hull
#

No shit there's so many accidents lmao

floral basin
#

Its 16 in Texas

onyx loom
#

LMAO

distant sun
#

^

old wyvern
#

Also, I need to finally finish my drivers license form 👀

distant sun
#

Agree frcsty

ocean quartz
#

The one true country that is Texas

onyx loom
#

its drew thats making these statistics rise up

floral basin
#

You have to remember that in the U.S each state has the ability to change the laws

distant sun
#

Watch out for Dre w

old wyvern
#

Thats just awkward

floral basin
#

In some U.S states you can be 14 to get a license

#

and in others its 18

onyx loom
#

WHAT

hot hull
#

I was gonna make a pew pew joke, but don't want any legal cases 👀

onyx loom
#

14???????????????

old wyvern
#

You have moved through 1 state, you are now subject to randomly be jailed

floral basin
#

yea

#

farming states

distant sun
#

Very smart ngl

#

Let kids drive at 14

onyx loom
distant sun
#

But allow them to drink at 21 😂

floral basin
#

^

hot hull
#

kek

onyx loom
#

👌 😂 👍

old wyvern
#

I mean kids drive here without license

#

So I guess theres no point

ocean quartz
#

You can buy a gun before you can drink

old wyvern
#

might as well have them learn

floral basin
#

and also in some states you can be like 12 and get a restricted license

onyx loom
#

that is so sad matt

floral basin
#

I forgot what its called

distant sun
#

Dude what

ocean quartz
#

Ikr

old wyvern
#

A learner's license?

distant sun
#

At 12 you cant even read properly lmao

floral basin
#

Its the one that allows them to only drive to home and school, and drive vehicles for the purpose of work

old wyvern
#

We have that here but it can only be taken at age 17 or above

floral basin
#

Its for the farming states

#

Kids can drive the pickups around the farm to help the parents

old wyvern
#

I see

hot hull
#

And people wonder why the world is going to shit fingerguns_reversed

floral basin
#

and if you're on private property you can drive at whatever age

distant sun
#

Ye but a 12yo kid is a 12yo kid, no matter for what they are using the car

old wyvern
#

Rip to pedestrians

onyx loom
#

sad face

floral basin
#

who cares if theyre not getting in accidents

#

they're not allowed to be on the road after like 8pm at night

distant sun
#

Idk it's stupid to let a young kid drive

onyx loom
#

in winter 8pm is still dark af

floral basin
#

and if you're caught it gets revoked until you are the legal age to have a provisional license

onyx loom
#

so time wouldnt really matter in that case

floral basin
#

so most people who have it don't abuse it

onyx loom
#

i dont see the point in that time restriction

floral basin
#

My license has a time restriction

distant sun
#

Very nice

ocean quartz
#

Here at 16 you can drive but only those small cars, like a tuk tuk or a smart

floral basin
#

I can only drive from 5am to 12am

distant sun
#

You can drive

#

What :))

floral basin
#

unless I am going home, to work, or it is an emergency

#

since im not 18 I have that restriction

onyx loom
#

emergency, gotta pick up some food at 2am

distant sun
#

Dumb system imo

floral basin
#

nah you have to prove it to the cop

onyx loom
#

ye

floral basin
#

if you get caught they will hassle you

distant sun
#

Id rather wait until I'm 18 and have full rights to drive

floral basin
#

I pretty much do have full rights to drive

onyx loom
#

i mean tbh 16 is fine for driving like a small car like matt said, or a moped

distant sun
#

Than drive between 5am and 12am from 14 yo

floral basin
#

Why in the fuck would I need to go somewhere at 2am

onyx loom
#

but having a full car is a nono imo

floral basin
#

even then

#

if I drive the speed limit and correctly, the cops can't pull me over in the first place

distant sun
#

Aha

floral basin
#

They're not allowed to just look at a driver and say "he looks under 18, he probably has a provisional license and is driving at 12:01am"

#

and if they do

#

drumroll for america

#

the department gets sued

distant sun
#

Again

#

Stupid system

floral basin
#

the whole justice department is a stupid system here

distant sun
#

Kids having guns is enough to understand how well some laws were made

floral basin
#

Yeah its stupid as fuck that you can have a gun before you can drink in america

onyx loom
#

the whole us system is fucked imo

#

i would never want to live in the us

floral basin
#

Honestly the reason kid drinking happens so much is because they made the drinking laws 21 instead of 18

#

Kids feel restricted, and since they're kids, they disobey it

distant sun
#

Np, give them some guns and they will forget

ocean quartz
#

@prisma wave Do you know if this would work like an immutable map in Kotlin?

onyx loom
hot hull
floral basin
#

I think drinking should be 18

#

and guns 21

hot hull
#

The guns aren't the issue

onyx loom
#

guns none at all fingerguns

hot hull
#

The people are fingerguns_reversed

floral basin
#

facts

hot hull
#

Irradicate the human race, problem solved

onyx loom
errant geyser
#

Kali

distant sun
errant geyser
#

We need the nukes

onyx loom
#

hello

distant sun
#

@hot hull

onyx loom
#

true true

hot hull
#

Oh come on Gaby, you got so close to using my format

distant sun
#

Why put the hastag before selection??

hot hull
#

Just move the # outside

prisma wave
#

@ocean quartz no, the kotlin compiler can't tell that it's actually immutable

floral basin
#

how do hex codes even work in 1.16

#

like

#

how do you put it on a sign

distant sun
#

Just so you can substring and add it again

floral basin
#

or in chat

distant sun
#

You cant

floral basin
#

🤔

distant sun
#

You need commands or json

prisma wave
#

it would be (Mutable)Map<Int, GuiItem>!

floral basin
#

oh

#

so you can't put it on a sign?

#

without a plugin per say

distant sun
#

No

#

Probably commands can do it somehow

#

Like /setblock or smth

ocean quartz
#

@prisma wave Gotcha ty, I think I'll still keep it like that to prevent the items from being edited from outside

distant sun
#

@hot hull your system is dumb tbh

hot hull
#

You're dumb

#

I've used the same system in like 5 plugins so far, I'm not about to change it fingerguns_reversed

distant sun
#

Explain me the reason why you have the hashtag outside of the selection and then add it again because ChatColor#of requires it

#

That's .. stupid

hot hull
#

Because I can, now go convert to kotlin weeb

distant sun
#

Does the regex even work?

hot hull
#

Why wouldn't it work lol?

lunar cypress
#

@lunar cypress might actually be able to help you with Clojure btw BM
@jovial warren I might, what was the question?

distant sun
#

Nvm

prisma wave
#

iirc the question was about a main function

#

is that not a thing in clojure? it didn't seem to be

lunar cypress
#

Depends on how you use it

#

For applications you usually define a main function

jovial warren
#

aaaahhhh

#

why is Spring support so crap

lunar cypress
#

And you do need it if you want to build an executable jar of course

prisma wave
#

I see

#

so that would be something like ```clojure
(defn main ->
blah)

#

idk the syntax very well (at all)

lunar cypress
#
(ns foo.bar
  (:gen-class))

(defn -main [& args]
  (println "Hello"))
prisma wave
#

ah close enough

#

I see, thanks

#

will play around with it a bit

lunar cypress
#

Cool. Feel free to ask me if you don't understand something

prisma wave
#

Will do 🙂

distant sun
#

Thats horrible

#

What lang is it?

prisma wave
#

clojure

#

I agree it's kinda ugly but I wanna see why people like it

distant sun
#

"Kinda"

prisma wave
#

quite ugly*

#

lol

distant sun
#

HORRIBLE

hot hull
#

It's fuckking beautiful

#

Clojure best lang

onyx loom
prisma wave
#

clojure good kotlin bad

distant sun
#

He's frosty, why are you surprised kalibear

onyx loom
#

true

#

frosty bad

#

gaby, did u see my ping earlier?

distant sun
#

Stats?

onyx loom
#

ye

distant sun
#

👍

jovial warren
#

oh ffs

#

@prisma wave fixed it

#

have a guess what it was

prisma wave
#

typo or something probably

lunar cypress
#

Thats horrible
@distant sun oy

jovial warren
#

I didn't know I needed the kotlin-reflect dependency

prisma wave
#

wut

#

why would that affect it?

jovial warren
#

no fucking clue

#

but it does

prisma wave
#

spring is written in java Thonk

distant sun
#

I said what i said @lunar cypress

lunar cypress
#

😠

jovial warren
#

yeah but it's written for both Java and Kotlin

#

you know that right

prisma wave
#

ofc

jovial warren
#

Spring has full Kotlin support

prisma wave
#

yes

#

but the actual core functionality is just java

jovial warren
#

but it definitely makes use of Kotlin's reflection library

#

I've seen that somewhere

lunar cypress
#

btw since I just saw this now: Clojure has full support for bidrectional Java interop

prisma wave
#

ooh

errant geyser
#

I can't believe you

lunar cypress
#

lol

prisma wave
#

it's the truth

#

you just can't see it

lunar cypress
#

wake up sheeple

prisma wave
#

smh

#

brainwashed

errant geyser
#

But

#

After all the kotlin circlejerking

#

Now Cloujure

lunar cypress
#

coming from your background

prisma wave
#

I think I actually watched that

#

at about 3am 4 months ago

lunar cypress
#

lol

prisma wave
#

it all went over my head lol

#

it seems like an interesting language though

lunar cypress
#

really? I thought it was pretty good and understandable

#

And I believe we're on a similar level in terms of Java and Kotlin

prisma wave
#

yeah it was probably just because I was tired

#

a similar level of what?

lunar cypress
#

knowledge, understanding

prisma wave
#

also, with metaprogramming, is it just that everything is a list?

#

ah ok

lunar cypress
#

The thing with metaprogramming is that since code is just regular data, programmes that take code as input and produce code as output are no different from regular functions

#

For macros you gotta take care about evaluation but that's about it

prisma wave
#

I see

#

I think

#

I get the concept, just not sure where that's really useful yet

#

I guess it would be the equivalent of a lambda or something?

lunar cypress
#

no, not at all

#

It's incredibly powerful because it essentially lets you build anything

#

For example take pattern matching

#

Other languages have that as a language feature

#

Clojure has it as a rather small library

#

And it can do much more than most other languages

prisma wave
#

Ah that's pretty cool

#

yeah that's making sense now

#

because you essentially can programatically view the source code at runtime?

lunar cypress
#

This would be impossible if macros produced source code as text instead

#

yeah you can interact with source code whenever you want

#

names and symbols are also first class

#

which simply feels incredible if you're used to reflection

prisma wave
#

interesting

#

it does seem pretty powerful

#

just ugly, that will take some getting used to lol

lunar cypress
#

but macros are handled a little differently. Whenever you call a macro, your code is essentially replaced with what the macro returns (before runtime)

prisma wave
#

yeah

#

same with rust and c++

lunar cypress
#

but the thing is that you don't need macros to work with code

#

so there's not much restriction there

#

About the uglyness, we all have our preconceptions about lisps and what I can say is that I got used to it very quickly and I don't find it ugly anymore at all

prisma wave
#

yeah i'm sure it's fine after a while

lunar cypress
#

In fact I have yet to meet anyone who has worked with a lisp for a couple of weeks and still thought it was ugly afterwards

prisma wave
#

yeah I'm already starting to get the hang of it

#

alright I'll have a play around, thanks for the explanation

lunar cypress
#

👍

prisma wave
#

you got any ideas for a good starter project?

#

if not I'll just make a cli calculator or something

old wyvern
#

yo what xD

distant sun
#

Hello World

prisma wave
#

ofc

old wyvern
#

At what point would you see 75% of what you write being brackets as not ugly

lunar cypress
#

hmm good question. I did a lot of dry algorithms stuff in the beginning (because I wanted to practice that anyway) but haven't actually built any beginner project I'd say

prisma wave
#

algorithms seem like a good place to start

#

so like sorting and things?

lunar cypress
#

I solved the Daily Coding Problem for a month

#

I understand if that's not the most interesting stuff though lol

prisma wave
#

might be worth a try

lunar cypress
#

but it got me a little more used to complete functional thinking

prisma wave
#

for C I just went through some project euler things

heady birch
#

To be honest

#

I like delving straight in

#

With something I could actually use etc

lunar cypress
#

At what point would you not see 75% of what you write being brackets as not ugly
@old wyvern at the same point you realise you'd been brainwashed by anti lisp propaganda all along

prisma wave
#

evil C languages have been brainwashing us all!!

old wyvern
#

anti lisp propaganda
@lunar cypress
Im not part of any propaganda but it just looks so.... weird , to put it in one way

lunar cypress
#

that is correct

#

it looks alien if you don't know it

old wyvern
#

evil C languages have been brainwashing us all!!
wuh

#

it looks alien if you don't know it
Lemme check if coursera has one for clojure, I may try it if it does

#

nope rip

lunar cypress
#

big collection of resources for clojure

old wyvern
#

Hmm

#

bookmarked

#

Ill have a look tmr 👍

prisma wave
#

is ClojureScript just Clojure?

#

but in a REPL or something

lunar cypress
#

Nope, ClojureScript is Clojure for JavaScript VMs

prisma wave
#

ah ok

#

is it syntactically the same?

lunar cypress
#

Yes

prisma wave
#

awesome

lunar cypress
#

Same language, just some differences in libraries

#

And it also has very good js interop, in contrast to Kotlin/JS

prisma wave
#

intriguing

lunar cypress
#

I have yet to try it, but many people seem to really like it

#

I think the tooling involved is the more complicated part

prisma wave
#

it usually is with JS

#

lol

lunar cypress
#

fair enough

prisma wave
#

this clojurescriptkoans site is quite cool

lunar cypress
#

yeah

ocean quartz
remote goblet
#

chest limit is 9 ?

ocean quartz
#

9 * rows

remote goblet
#

ah

distant sun
#

no

tranquil crane
#

Are those for guis?

ocean quartz
#

Yeah

tranquil crane
#

Workbench can't be modified server side

#

So that's probably useless to provide

ocean quartz
#

You sure? It worked for me ;o

tranquil crane
#

o.0

#

Last I checked I wasn't ever able to get the items to appear to the player

#

I know the loom inventory is definitely client side only, I guess I haven't checked the workbench one in a while

ocean quartz
#

Seems to work yeah

tranquil crane
#

huh. can you try the loom to make sure I'm not just insane

ocean quartz
#

Loom doesn't work yeah

#

Same for Anvil

tranquil crane
#

since when can you link GitHub to discord

errant geyser
#

Its very new

ocean quartz
#

A few weeks i think

onyx loom
#

not too long ago

tranquil crane
#

ok I guess they changed workbench at one point my bad

ocean quartz
#

I might need to check this on older versions then

jovial warren
#

hey @heady birch you know which one of the many metrics options for Spring is best for basically just plotting a graph of time series data?

#

all I want is a metrics system that can keep track of stats like how many servers my bot is in, etc. and plot it in a graph

remote goblet
#

@prisma wave i'm making that skyblock plugin from a few months ago in kotlin like you had requested EmiPopcorn

prisma wave
#

wow

#

at last

#

I mean

remote goblet
#

I mean

#

i'm now

prisma wave
#

it would be better in clojure fingerguns

remote goblet
#

jesus christ

#

have you all moved onto a new language already

#

i just started learning kotlin

#

anyway, im 30% confident in kotlin plugin making so

prisma wave
#

that's more than enough confidence

#

I'm bored of kotlin

#

clojure >>>

remote goblet
#

After that EternalReports plugin that isnt done at all

#

i feel like moving onto something else EmiCool

#

thats like

#

80% harder than a report plugin

prisma wave
#

¯_(ツ)_/¯

remote goblet
prisma wave
#

oh no

#

oh

remote goblet
#

i have missed this class

prisma wave
#

that's not the completely evil one

#

is it?

remote goblet
#

its actually not that garbage

prisma wave
#

phew

remote goblet
#

i wonder what would happen

#

if i put the old Island.java

#

in kotlin

#

intellij may break

prisma wave
#

it would lose hope

#

and die

remote goblet
prisma wave
#

data class pls

remote goblet
#

listen

#

i just converted it

#

intellij doesnt add the data

prisma wave
#

smh

remote goblet
prisma wave
jovial warren
#

lol

#

is that Kotlin I see?

#

👏

#

well done

#

not sarcastic

remote goblet
#

We just said

#

that im using kotlin

onyx loom
ocean quartz
#

Writing good Javadoc comments is so painful

analog crater
#

Let peoole figure it out. It will seperate the 0iq people to the 3 braincell people allowing you to not have to deal with a million and one minor bugs

ocean quartz
#

That's no bueno though

analog crater
#

Looks good. Good thats its not imtidating with fancy words and unneeed text

ocean quartz
#

Nice ;p

#

My english is not good enough to be able to use fancy words xD

prisma wave
#

not very accurate

#

I love developing on Other - Write In (Required)

jovial warren
#

wait how did you do that?

onyx loom
prisma wave
#

some survey from about 6 months ago

#

the results finally came in

ocean quartz
prisma wave
#

JB Mono has been around for ages?

#

lol

#

it's pretty hot though

ocean quartz
#

The website is new i think though

tranquil crane
#

matt how did you get the animation to be so smooth for such a large display o.0

#

my server is choking at like 8tps with only a 128x75ish display

ocean quartz
#

The way I managed to make it smooth my way was by caching a lot of the stuff, specially the resolving of the hex colors, but max it looked good was at 128x72p
The way the others did is much better but unfortunately i don't understand much of it, uses interlacing and a bunch of other stuff, but the most important part is that it uses Protocol lib for the armorstands

tranquil crane
#

I guess I haven't tried the interlacing yet, that might help it a bit

#

I just cached all the chatbasecomponents and it's still slow af

regal gale
#

Ya'll used BufferedImage for it? Just curious

tranquil crane
#

I converted the buffered images into an int[] array of all the color values

#

I'll try to add the interlacing and if that doesn't help then I'll just pretend it looks fine

#

oh I'm feeling real stupid at the moment. I'm sending the updatemetadata packet to update the text which is updating all the metadata instead of just the text

ocean quartz
#

Oh, that would definitely lag it xD

tranquil crane
#

switched to the other one and it made a marginal difference

#

interlacing it is

tranquil crane
#

ok so the interlacing fixed the speed

#

tps is still 13 though lol

#

I have it running in an async task so I wonder if it's the server's packet processor that's choking on how much data is going through

quiet depot
#

maybe you just have a potato pc

tranquil crane
topaz bay
#

Run the VM under a profiler?

ocean quartz
#

Jesus, my TPS never went under 20 when working with it ;o

onyx loom
#

potato pc

tranquil crane
#

I posted my f3 specs up there

ocean quartz
#

Nah her pc is better than mine xD

onyx loom
#

o the thing only just loaded for me

#

i pressed it before but never loaded 😦

tranquil crane
#

it wasn't loading for me either so I reuploaded it and edited the link

onyx loom
#

maybe i got a potato phone 🤔

tranquil crane
#

maybe you're a potato 🤔

onyx loom
tranquil crane
#

sendPlayerPacket taking up a crisp 54% of the server thread

ocean quartz
#

How many armorstands do you have?

tranquil crane
#

128

ocean quartz
#

Oh

#

We only have 72

tranquil crane
#

if I rotated the image to be horizontal that would cut the armor stands almost in half

ocean quartz
#

And the performance would probably almost double

tranquil crane
#

yeah horizontal animations are always going to be way better since it has to send less packets, even if those packets are larger

#

this plugin has the option of displaying things as either particles or with armor stands, also going to add scoreboard support at some point

#

likely never going to release this as anything, more of just a personal project

#

cut it down to only be 72 high and yeah now it's running at 20tps

ocean quartz
#

Yeah, I think Chase managed to run at 144p with no problem but with all the packet magic that it's too much for me

tranquil crane
#

interlacing speeds it up dramatically but makes faster gifs look like crap

onyx loom
#

u make it sound like 144p is revolutionary matt

tranquil crane
#

144p in minecraft is revolutionary

ocean quartz
#

it is though

onyx loom
#

woah

tranquil crane
#

to put this into perspective

#

displaying a 128x128 image using particles hits the particle cap using a single frame

ocean quartz
#

Can only imagine 16k particles

tranquil crane
#

I wonder if I made a display using blocks and sending chunk update packets instead 🤔

#

it would have to interpolate a pixel to the closest matching block color though

ocean quartz
#

Might as well do maps then no?

#

Would have the same colors available

tranquil crane
#

don't maps have a heavily reduced color palette?

ocean quartz
#

It's about the same as the available blocks I think

sharp cave
#

need help with custom model data

#

i have this _itemMeta.setCustomModelData(data);

#

and in the item stacvk it does this PunishmentGUI.getPlugin().getGuiItems().getInt("ChatOffenseCustomModelData")

#

but im getting java: cannot find symbol

#

im at a loss rn

ocean quartz
#

@tranquil crane I can hear that GIF

tranquil crane
#

hit or miss

sharp cave
#

pls help

ocean quartz
sharp cave
#

oh thanks

tranquil crane
#

If it says cannot find symbol that usually means you're trying to access a variable that does not exist in the current scope

sharp cave
#

shit

subtle lynx
#

Hi

#

I'm starting to work with NMS and I need a bit of a clarification

#

how do I replace a method in NMS with my own?

steel heart
#

you dont

subtle lynx
#

Huh.
So I can't like change the behavior of server-side stuff directly. I have to wait for it to happen, then modify it.

#

got it.

hot hull
#

@ocean quartz Does your framework allow for having "placeholders" within the command?
Let's say I want a command
/test <player> <something else>
Is it possible for the player to be a subcommand? (Since that would be cleaner than managing it all inside the default one)

errant geyser
#

Also does it allow for subcommand subcommands? Like /whatever idk/smth yes/no something

hot hull
#

katsu, that's a no

errant geyser
obtuse gale
#

just use Array<String>

#

doesnt look as nice tho :((

hot hull
#

What kinda shit you smoking Aj

obtuse gale
#

?

errant geyser
#

Yeah AJ's right, I could do that

#

I just like

#

Don't want to

obtuse gale
#

fair

distant sun
#

No @hot hull

remote goblet
#

or use kotlin

onyx loom
errant geyser
#

Is there a way to open kotlin files/classes by double clicking them like Java classes rather than that just expanding it down into this sort of view and then having to double click one of these again to actually open the class?

#

Its started to annoy me

runic flume
#

Is it possible to transfer discord server ownership with a bot?

obtuse gale
#

doubt it tbh

#

since the bot doesnt have ownership?

runic flume
#

Correct, the bot just has admin perms

#

It most likely not work, cuz otherwise its way too easy to grief a server I guess

#

But I was curious x0

hot hull
obtuse gale
#

java

hot hull
#

Legit worked like 15min ago, now it can't resolve the method :what:

runic flume
#

the getPersistent method?

hot hull
#

Aj, I'll get executed if I convert it to kotlin, and yes Cody

runic flume
#

What ver u on

hot hull
#

Latest

runic flume
#

oh lol, should be there xD

old wyvern
#

What version are you on frost

runic flume
#

Latest

hot hull
#

I accidentally deleted the first project, so had to decompile it then copy paste in the code and fix it, but it legit just doesn't resolve the method kek

#

1.16.1 paper Yugi

old wyvern
#

persistent containers are not available on 1.8

#

oh

#

that should work

hot hull
#

I know it should, I tried reimporting, restarting IJ, gonna try switching to spigot and back now

runic flume
#

What if you try to make a var for it

hot hull
#

Still doesn't show up

runic flume
#

Not even the PersistentDataContainer class?

#

with double shift for example?

hot hull
#

The data container class is there, just not for the player apparently

runic flume
#

when you just Ctrl + F it in the Player class?

hot hull
#

nope

runic flume
#

wut

#

xD

#

gae

hot hull
#

Some weird shit going on lmao

#

lemme switch to spigot and back, sec

ocean quartz
#

@hot hull That is a nightmare, I'll stay away from brigadier as much as i can
@errant geyser "Allow" yes, direct support no
And probably never will, i don't see the need for it, as it can be easily achieved with just subcommands

errant geyser
#

ok

hot hull
#

The fuck lol @runic flume It was grabbing bukkit from somewhere lmao

old wyvern
#

wtf is brigadier?

runic flume
#

lmao

#

gj xD

ocean quartz
#

@old wyvern Hell

old wyvern
#

wha? xD

#

Only thing I know about that is its related to commands or something

runic flume
#
public class Rookie extends DataSection {
``` @hot hull Damnn love it
#

x0

ocean quartz
old wyvern
#

what does it do different from the normal stuff?

ocean quartz
#

This

hot hull
#

Dude some weird shit is going on rn

runic flume
#

How come

old wyvern
#

Oh so its like commands using the vanilla part from spigot

#

🍴

ocean quartz
#

It's like using commands but everything is inside a single function and it's on fire

old wyvern
#

xD

#

Why not make a library wrapping it to make it easier to use?

ocean quartz
#

Because i tried and it's awful
Luck has a wrapper for it called commodore, but it's just as bad

old wyvern
#

😆

#

rip

obtuse gale
#

How would one fix a InvocationTargetException

old wyvern
#

Does it provide anything extra from the spigot command api?

ocean quartz
#

Placeholders and color that's basically it

old wyvern
#

what placeholders??

hot hull
#

I want colored commands :c

old wyvern
#

minecraft has inbuilt placeholders?

#

do you mean like @p @a stuff?

old wyvern
#

I see

#

welp

hot hull
#

Matt, dew it

#

We need this in our lives.

ocean quartz
#

I'd love to add that, but my peanut brain can only handle so much

errant geyser
#

Didn't Luck already wrap Brigadier in his own lib?

old wyvern
#

Ill give it a shot tonight

errant geyser
#

Yeah

ocean quartz
#

Yes but he uses the exact same method as brigadier so what's the point lol

old wyvern
#

Luck has a wrapper for it called commodore, but it's just as bad

errant geyser
#

oof

hot hull
#

That looks like an oof

#

Finally holy shit

#

Fixed the sorcery that was going on

errant geyser
#

Anyone know how to use functional interfaces in kotlin?

old wyvern
#

as a lambda

hot hull
#

@prisma wave probably does fingerguns_reversed

old wyvern
#
{arg1, arg2 ->
   rgergegegerg
}```
hot hull
#

rgergegegerg
mood af

old wyvern
#

rgrgrgrgrrg

ocean quartz
#

I had some problems with functional interface in Kotlin, it never worked correctly
Seems like it'll be a thing on Kotlin 1.4?

fun interface EventHandler<T> { 
    fun handle(event: T) 
}
old wyvern
#

wdym?

ocean quartz
#

Not sure, but seems like normal functional interface declaration doesn't work well in Kotlin
Can always use lambda though

old wyvern
#

Ah I just looked it up. yup

#

I guess mostly you can just specify the input and output rather than define a functional interface

#

val sayHi: () -> Unit = println("Hi")

prisma wave
#

Yeah the idiomatic way would be a first class function

lunar cypress
#

If you want it to have a name you can make a typealias

prisma wave
#

Also an option

heady birch
#

Any ideas on how I could super-super speedily read byte input stream from a file

#

Like... as fast as possible in java

hot hull
#

kotlin fingerguns_reversed

prisma wave
#

lol

#

clojure fingerguns

#

I mean at the end of the day it's gonna be limited by actual drive speed

#

but a classic while loop + InputStream should be fairly fast

#

according to my testing on an SSD you can read a 1GB file in about 390 microseconds

heady birch
#

I want to read ~50MB on rasbpi under 5ms

frail glade
#

I want to read a book.

heady birch
#

head first design pattersn

hot hull
#

I'm still disgusted that the version of mcdev plugin I use starts with gradle 4.4.1 :c

#

So I gotta keep switching manually :c

frail glade
#

Especially since shadow 6 requires Gradle 6

hot hull
#

Exactly

heady birch
#

spring boot 2.3.1 bad

old wyvern
#

@heady birch That was a reply to you btw

hot hull
#

Only reason why I gotta keep switching lol

heady birch
#

thanks will look into it

old wyvern
#

🍉

frail glade
#

Did anyone else update to IntelliJ 2020.1.4 yesterday and everything break? I talked to a few people who had similar issues. My PC locked up 4 time in total over 30 minutes of trying to open IJ to do the VoteParty update.