#dev-general

1 messages · Page 388 of 1

cinder flare
#

not anime

quiet depot
#

are the eyes like anime ones

cinder flare
#

not really?

#

it's a cartoon

#

though I guess you haven't seen many of those lol

quiet depot
#

dude

#

i’m not completely uncultured

#

like

#

adventure time regular show

cinder flare
#

I dunno, when you haven't seen ATLA that's a pretty big strike

quiet depot
#

those were my shit

cinder flare
#

okay I'll give you that, those were pretty good

#

but ATLA was on at the same time as those, how did you miss it?

quiet depot
#

idk

#

shit like that just wasn’t popular when I was watching it

#

no one I knew watched that shit

cinder flare
#

when did you watch it?

#

maybe australia big weird

quiet depot
#

no

#

lots of my friends now grew up on it

#

for some reason my circle of friends when I was younger tho

#

just not fucking weebs

cinder flare
#

it's... not anime?

quiet depot
#

lol

cinder flare
#

I literally don't know a single person (like that I talk to regularly) that hasn't seen ATLA

quiet depot
#

what about pokemon

#

i haven’t ever played or watched pokemon

cinder flare
#

oh I haven't either

quiet depot
#

apart from a tiny bit of pokemon go

cinder flare
#

most of the people I know didn't

quiet depot
#

o

#

i thought pokemon was meant to be really popular too

#

idk man the only shows I watched was regular show and adventure time

#

and these days, the only time I watch tv is with family at dinner and shit

#

if I’m on my own tho, aint watching anything

hot hull
#

back

cinder flare
#

what do you do all day?

#

hi frosty have you seen ATLA

hot hull
#

I'm in elements now Piggy, now what

quiet depot
#

im on pc all day

#

well

cinder flare
#

well yeah so am I

#

but like what do you do

quiet depot
#

on holidays I’m just on pc all day

cinder flare
#

play minecraft?

quiet depot
#

reading

#

games

#

work

cinder flare
#

reading wtf

hot hull
#

"work" :kek:

quiet depot
#

reading = browsing quora

#

and laughing

#

being disgusted

#

1% learning

lunar cypress
#

On holidays you're on PC all day?

quiet depot
#

quora is weird

#

school holiday johnny

#

when I’m not at school

hot hull
#

Johnny, imagine spending time with the family, pathetic

quiet depot
#

click the top left square with the cursor frosty

lunar cypress
#

Holidays is now my only escape from the PC

quiet depot
#

man idc pc is my life

cinder flare
#

Johnny have you seen ATLA

lunar cypress
#

I have not

quiet depot
#

I sit at that shit 16 hours a day on school holidays

cinder flare
#

wtf

hot hull
#

Piggy, and after that

quiet depot
cinder flare
#

ooh I did that

quiet depot
#

steelcase leap here i come

cinder flare
#

it's very nice

lunar cypress
#

Gamer moment

quiet depot
#

hover over white bit at bottom frosty

#

I like the idea of gesture and leap

#

there’s a shop I can try them out in in the city

hot hull
#

Shows nothing PIggy

quiet depot
#

gonna go in a couple of days

cinder flare
#

oooh I just got a random office chair, but it is very nice

#

10/10

quiet depot
#

idk frosterino u’ll have to wait for me to get home then

hot hull
#

Imagine not being in total country lockdown

#

Pathetic

#

That's the same pic as the other day

#

Be original please

quiet depot
#

star these chairs are like $1000 and they’re meant to be sat in 24/7 without killing ur health

hot hull
#

I've been eating this chocolate rabbit and it's delicious

quiet depot
#

they also last like 20 years with constant use

#

and have 10 year warranties incase ur chair implodes

hot hull
#

I've got like a 15 year old office chair, it's pretty decent, just noise as fuck

quiet depot
#

i’ve got a l33t gaming chair

#

and it’s killing me

cinder flare
#

oh okay well my chair is amazing, before it I had another office chair that had lasted since longer than I was alive

quiet depot
#

idk man

cinder flare
#

so I mean, im vibin

#

i guess you can get your $1000 chair or whatevs

quiet depot
#

it’d be interesting to see how u’d react to one of these chairs

cinder flare
#

I tried a steelcase leap

#

wasn't that great ngl

#

not as comfy as I imagined

quiet depot
#

so i could see if i’m getting scammed or not

hot hull
#

I got a gun somewhere as well efe

#

I even got a shotgun in the garage

quiet depot
#

well if its shit then I’ll just go with the $100 office chair

#

replace it every couple years

cinder flare
#

couple years?

#

where are you getting your office chair bro

hot hull
#

office chairs last decades

quiet depot
#

officeworks

cinder flare
#

like I said, my old one lasted me like my entire life, the only reason I have a new one is because I'm at college and my old one is at home

quiet depot
#

yeah well we’ll see

cinder flare
#

unless you put your chair through more rigorous work than I do lmao

quiet depot
#

i sit in it 16 hours a day

lunar cypress
#

That is not healthy no matter which chair mate

cinder flare
#

bro so do I

#

not just on holidays either

#

and yes it is definitely not healthy but here we are

quiet depot
#

I break it up

hot hull
#

caring about health in 2021, yikes man

quiet depot
#

not as much as I should

cinder flare
#

maybe if I obtain more than a fraction of a will to live, I'll invest some time into bettering myself lmao

quiet depot
#

but I try break it up a bit

lunar cypress
#

That's good

#

I personally hate rotting in my office chair, now that I'm forced to through online classes

#

Hi efe

lunar cypress
#

I know

#

Yeah, I've never been the biggest extrovert but I do miss going out and doing stuff, meeting people

#

Now I mostly just go for walks on my own

#

Is that the incidence at the right

#

Rip

quaint isle
#

Hey cuties, I was just wondering how these kinda plugins work that aim to reduce CPU usage when no players are online. Do they simply schedule a function for every tick and then sleep for like 2 seconds or how do they achieve this? I was unable to find it on github. https://www.spigotmc.org/resources/hibernate.4441/

unkempt tangle
jovial warren
#

That is absolute class lol

cinder flare
#

y'all think if I made a PR to add PAPI support in EssentialsXChat they would accept it?

#

kind of weird that it doesn't support it

lunar cypress
#

Ask the maintainers

cinder flare
#

I was just wondering if there was like an overt reason nobody had ever done this before?

#

Like maybe it was a ruling or something they made lol

lunar cypress
#

Not that I know of but then again I'm not too involved in the plugin world or PAPI

cinder flare
#

cause I mean this is their version of PAPI lmao

#
        String format = ess.getSettings().getChatFormat(group);
        format = format.replace("{0}", group);
        format = format.replace("{1}", ess.getSettings().getWorldAlias(world));
        format = format.replace("{2}", world.substring(0, 1).toUpperCase(Locale.ENGLISH));
        format = format.replace("{3}", team == null ? "" : team.getPrefix());
        format = format.replace("{4}", team == null ? "" : team.getSuffix());
        format = format.replace("{5}", team == null ? "" : team.getDisplayName());
        format = format.replace("{6}", prefix);
        format = format.replace("{7}", suffix);
        format = format.replace("{8}", username);
        format = format.replace("{9}", nickname == null ? username : nickname);```
prisma wave
#

🥶

onyx loom
#

lol

cinder flare
#

Oh, seems they're redoing the whole chat system to a per-user locale system and it needs manual rebasing lmao

#

Also hasn't been worked on for 4 months 🙃

#

god okay essentials is a mess I regret trying to get involved

half harness
cinder flare
#

make a PR, clean it up for them 🙂

half harness
#

i have never seen someone that has both DI and singleton

#

lol

cinder flare
#

how big is the plugin? probably different people wrote different parts

half harness
#

the main class itself is 150 lines (all registering)... so pretty big

cinder flare
#

jeze yeah

half harness
#

actually 10 lines of it is onCommand

cinder flare
#

weird

jovial warren
#

Whoever's decision it was to make JavaPlugin implement TabExecutor is an idiot I swear

cinder flare
#

What's wrong with TabExecutor?

#

also what is TabExecutor lmao

half harness
#

i assume its tabcompleter + commandexecutor

prisma wave
#

CommandExecutor + whatever the tab one is called

#

Yeah

cinder flare
#

oh sounds useful

#

also, anyone perchance know why an import java.util.Objects; would be not working in JDK 15?

lunar cypress
#

Other util classes do?

cinder flare
#

No, none of the util classes do

#

Okay, restarted IntelliJ and everything works again, very cool

jovial warren
prisma wave
#

Yeah because bukkit main classes always conform to SRP

cinder flare
#

srp?

jovial warren
#

?solid

compact perchBOT
lunar cypress
#

The single responsibility principle states that I am only responsible for a single class in the code base

jovial warren
#

that link in ?solid has reminded me why I hate PHP

#
public function __construct()
```what the actual fuck
#

also, ThreeDimensionalShapeInterface, what is this? Enterprise logic?

#

actually, it could be better

cinder flare
#

sounds like a public class Cube implements ThreeDimensionalShapeInterface to me

jovial warren
#

IAbstractThreeDimensionalShapeInterfaceBuilderFactoryBean lol

prisma wave
#

type Cube of int * int * int

#

wait

old wyvern
#

btw bm

jovial warren
old wyvern
#

are you hosting a central mirror for pdm?

prisma wave
#

yeah

old wyvern
#

ah

cinder flare
#

wtf are factories anyways

jovial warren
#

just submit a ticket to jira

prisma wave
#

just in case

cinder flare
#

like do they make classes?

old wyvern
#

Dont they mention that a "full" mirror isnt allowed tho?

prisma wave
#

make objects

old wyvern
#

I was reading up on that

prisma wave
#

Idk

#

I hope not

lunar cypress
#

🚓

cinder flare
#

well why not just make the object yourself?

#

is it to provide like, a layer of dependency injection or something?

old wyvern
prisma wave
#

Uh

#

That's a bit vague

#

I'm using a repository manager (I think?)

old wyvern
#

I thought they meant setting up your own repository unrelated to central with that

#

These are what they list

lunar cypress
#

shit reminds me I have to migrate my bintray repos

old wyvern
#

didnt that go down already?

prisma wave
#

hmm

old wyvern
#

rip

lunar cypress
#

end of the month it's gone I think

prisma wave
#

Would be nice if they'd actually replied to my email and said what I'm allowed to do

#

The guidelines seem pretty contradictory

old wyvern
#

My thought was, would the usecase for dependency downloading be the exact same as what maven and gradle do?

prisma wave
#

Yeah they should be

old wyvern
#

It shouldnt do anything more than what the buildtool already does then right?

prisma wave
#

Glare said apparently that's not allowed though

#

Even though it's no different

old wyvern
#

What if we had a proxy server that caches the jar and distributes to the client when requested?

#

So its only ever downloaded from central once

#

atleast in some time

prisma wave
#

That's what a mirror does iirc

stuck harbor
#

🪞

#

imma just say clojars cause I have to

old wyvern
#

Yea but from what they wrote it makes it looks like they thought we would be continuously fetching jars

prisma wave
#

Yeah I don't think that's what a sonatype mirror does at least

old wyvern
#

hmm

half harness
#

should i split data-per-player in a section for each player (yaml) or a section for each... topic if that makes sense

cinder flare
#

database

half harness
#

-_-

cinder flare
#

never store player data in yaml

#

use SQL and SQLite

half harness
cinder flare
#

or H2, though I'm not too sure how that bad boy works

#

too easily modifiable, slow, easy to mess up, I'm sure other people have more reasons

half harness
#

how is modifiable a bad thing

cinder flare
#

because people can fuck it up

half harness
#

i mean its not sensitive data or anything

#

just player prefs

jovial warren
#

anyone here know how I can exclude all files under certain packages with shadowJar?

cinder flare
#

yeah but if all it takes is opening a .yml file and adding one space to fuck up your entire playerdata, that's a problem

jovial warren
#

depending on fastutil but it's got a shit ton of stuff I don't need lol

cinder flare
#

plus it's worth learning how databases work anyways, for if you ever decide to make a plugin that relies on playerdata for more than just simple preferences

half harness
#

but databases are so much less noob friendly than yaml 😫

cinder flare
#

exactly why you should learn them

half harness
#

but still

#

should i store in player categories

cinder flare
#

don't want to be a noob, right?

half harness
#

or pref categories

half harness
cinder flare
#

in a database, you should store by player

half harness
#

maybe later if i make this plugin public..

lunar cypress
half harness
#

oop

cinder flare
#

well yeah but most people don't know you can even open an sqlite file

#

if I see player.yml ima look at it

half harness
#

wait u can?

cinder flare
#

yeah it's just a flatfile

half harness
#

i thought it was just a bunch of chars

lunar cypress
#

If it's clear that you're not supposed to edit some files people shouldn't edit them

cinder flare
#

Are you defending storing playerdata in a .yml file?

#

I'm appalled

half harness
#

what if i store yml file in .whateversqlfileextensionis

old wyvern
#

make a virus

#

Keep copying the file so their changes dont mtter

#

🥲

cinder flare
#

pull a Krypton and just don't support persistence of anything

#

@jovial warren ❤️

old wyvern
#

fire

jovial warren
#

stfu

jovial warren
#

I'll have you know I've spent almost a week now, if not over a week adding persistence to Krypton

#

so you can't say shit mother fucker

cinder flare
#

I know and we love you for it ❤️

#

ETA on next Krypton test?

#

i'm pretty hyped ngl

old wyvern
#

Bugs

jovial warren
#

after I finish copying Mojang's region file persistence system

prisma wave
#

Mutable state

old wyvern
#

Bugs!

prisma wave
old wyvern
#

xD

cinder flare
jovial warren
#

how can you exclude packages with shadow jar?

#

is it just exclude("package")?

old wyvern
#

Changing 1 thing pretty much did a domino in there

prisma wave
#

Anyone know how I can start a coroutine on the "main thread" but without blocking for the result?

#

The result isn't important so can be discarded

#

But I can't use .launch since that'll be async

#

And I don't think this method can be called asynchronously

lunar cypress
#

spigot or generally

old wyvern
#

You'd need a coroutine dispatcher running on the main thread

prisma wave
#

hmm

prisma wave
old wyvern
#

Why not just post a bukkit scheduler task if you're using spigot

prisma wave
#

For context I've got a suspending function that opens a GUI where users can pick an item, and then the function returns what item they've picked. I need to open the GUI from a non-suspending function where I don't care about the result

old wyvern
#

Theres a library that makes the scheduler work pretty well with coroutines I think

lunar cypress
old wyvern
#

Yea that ^

lunar cypress
#

yup

prisma wave
#

So I could just use launch with that?

old wyvern
#

Just execute with that dispatcher when you want some part to run on the server thread

lunar cypress
#

as you can see in the example I linked, yes

prisma wave
#

hmm

old wyvern
#

That feels weird

prisma wave
#

ooooo

#

apparently the elm tooling is really good

old wyvern
#

yea the compiler keeps suggesting things to be done

#

xD

prisma wave
#

thats cool

#

what referential transparency + static typing can do

old wyvern
prisma wave
#

oh that reminds me

cinder flare
#

so wait could I use Elm on any website and it'd work without problems?

prisma wave
#

hi lemmo xxx

old wyvern
#

mhm

#

No runtime issues (unless ofc you're relying on js interop)

prisma wave
#

sounds fancy

cinder flare
#

so wait, how come people still use js?

prisma wave
#

elm is pretty obscure

old wyvern
#

Yea

prisma wave
#

also TS

eternal compass
#

For what? For browsers?

old wyvern
#

its pretty much Haskell for the web

prisma wave
#

yeah

old wyvern
#

🥲

#

Actually

cinder flare
#

if it's a drop in replacement for JS, why is it not more adopted?

old wyvern
#

well

#

The compiler is nicer than Haskell

cinder flare
#

it's a completely different like language basically?

prisma wave
old wyvern
#

Where haskell goes "IO IO IO IO String missing, IOIOIOIOIOIOIOIO", elm tells you what to change

cinder flare
#

oh it's not similar at all?

#

not like Java -> Kotlin?

ocean quartz
#

Ah good ol Elmo language

prisma wave
prisma wave
#

it's most similar to haskell in syntax

cinder flare
#

oh jeez okay that makes sense

#

I thought it was just a better JS

prisma wave
#

nah

old wyvern
#

Elm compiles down to js

prisma wave
#

it's like clojurescript

old wyvern
#

Not sure why not wasm tho

prisma wave
#

😦

#

soon

#

maybe

old wyvern
#

maybe

#

Just

#

🥲

prisma wave
#

🥲

cinder flare
#

yeah wait, do all major browsers support WASM?

old wyvern
#

I think so

#
onyx loom
#

opera 🤣

lunar cypress
#

WASM is surprisingly pretty widely adopted

old wyvern
#

Is there anything major that uses it atm?

cinder flare
#

yeah wtf is up with Opera

old wyvern
#

It only fails 4 things star

#

not too bad

cinder flare
#

4 more than it should

prisma wave
#

there are a few web based designing tools that use it i think

#

figma might iirc

old wyvern
prisma wave
#

oh so skedule's repo is down apparently

#

and last commit was 2 years ago

#

🥲

old wyvern
#

rip

#

jitpack?

onyx loom
#

pain

prisma wave
#

maybe

#

might just see if doing it async works

#

it's only opening a GUI

#

might be fine

old wyvern
#

ah

prisma wave
#

#

oh even better, i cant even make it a suspending function because it's being called from a lambda that isn't suspending

#

man

prisma wave
#

mf-gui needs suspend fun

pale shell
#

mr bm you know vk right

stuck harbor
old wyvern
#

bm

#

what exactly are you doing?

stuck harbor
#

wasm is the new asm

prisma wave
old wyvern
#

vk is in here

pale shell
#

vk doesn't even use w/e to set blocks smh

old wyvern
#

oh wait

#

he left

lunar cypress
#

too much slander

pale shell
#

no wonder his plugins are so broken 🤷‍♂️

cinder flare
onyx loom
#

his son is still in here

pale shell
#

SON?!

cinder flare
#

this one guy asked a question about it and I was like "huh"

prisma wave
pale shell
#

excuse me, SON?!

onyx loom
#

yes

stuck harbor
#

mf-gui does slap indeed

pale shell
#

vk has a son?!

stuck harbor
#

mf also slaps

pale shell
#

wtf i thought he was like 16 😂

onyx loom
#

no lol

old wyvern
#

What are you using suspend functions for there?

half harness
prisma wave
#

i was using CompletableFuture but made the mistake of trying to migrate

old wyvern
#

ah

prisma wave
pale shell
#

i am confused now

old wyvern
#

You can use deffers

stuck harbor
#
CompleteableFuture.runAsync(ur ->
mum();
);```
#

yeet

#

code blocks not allowed here bud

prisma wave
#

i've got something like ```kt
fun openChooseGui(player) = suspendCancellableCoroutine {
onClick { it.resume(item) }
onClose { it.cancel() }
}

prisma wave
pale shell
#

imagine that tho, having a dad who codes 🤷‍♂️

lunar cypress
#

yeah imagine that, as we all know every programmer is under the age of 20

half harness
#

lol

stuck harbor
#

my dad defo isn't a software dev

#

naaaah

#

not at all

half harness
#

probably 90% of people in this discord is under 20

lunar cypress
#

yes this discord

#

wonder why that is

onyx loom
#

mine

#

craft

pale shell
#

so i'm in the 10% pog

cinder flare
#

boomers don't use discord

onyx loom
#

🥲

pale shell
#

I'm old

lunar cypress
half harness
#

o

pale shell
#

wtf

#

oh

lunar cypress
#

You can join the Clojure discord server to see some boomers

cinder flare
#

takes a while to find emojis lmao

pale shell
cinder flare
#

the downsides of nitro

onyx loom
#

search bar

pale shell
#

lol

cinder flare
#

yeah I know I had to type six and nine

pale shell
#

auto-correct 🤷‍♂️

old wyvern
prisma wave
#

it does work

#

the problem is

#

im calling it from another GUI onClick action

#

which isn't suspending

pale shell
#

hey bm, I need to go to gym after carrying the repo 😰

prisma wave
#

🥲

jovial warren
#

why does bit shifting in Kotlin suck so bad lol

prisma wave
#

kotlin bad

pale shell
#

wtf

#

kotlin good

jovial warren
#

I'm really getting tempted to go in and actually make changes to the compiler myself to make bitwise operations work between types

old wyvern
#

Kotlin bad, haskell good

pale shell
#

you always said kotlin good, you made us all enjoy kotlin

jovial warren
#

e.g. (byte and int) != int

old wyvern
#

Times have changed

prisma wave
#

^

pale shell
#

but why

#

i'm old i can't keep up

old wyvern
old wyvern
onyx loom
prisma wave
#

not sure if this is thread safe or not tho

lunar cypress
onyx loom
#

false

pale shell
#

bm why you no use light mode

old wyvern
#

Post the action to spigot when you need to do sync stuff

onyx loom
prisma wave
#

might try make my own Main dispatcher

cinder flare
old wyvern
#
suspend fun waitForConnection() = deferredUntilConnected.await()

suspend inline fun executeTask(task: XMPPConnectionService.() -> Unit) {
    waitForConnection()
    task(service!!)
}

Something similar to this should work

#

Create the defer before posting to spigot

#

Have the task complete the defer after exeuting the task

cinder flare
old wyvern
#

call await right after posting

jovial warren
#

nope

cinder flare
#

or at least, it should

jovial warren
#

Kotlin doesn't do that

cinder flare
#

why tho, that's actually a useful thing

pale shell
#

i done 25 commits since bm last pushed code 😰

jovial warren
#

and infix precedence means you need to be so fucking careful with bitwise operations

jovial warren
#

I've made at least 50 commits since BM last pushed code to Krypton lol

pale shell
#

krypton?

jovial warren
#

yes

pale shell
#

is that another language?

cinder flare
#

bm just spends all day in his lab carefully manipulating a matrix of haskell functions to all point together

jovial warren
cinder flare
#

no time to code

pale shell
#

ya'll make up new things daily

jovial warren
#

lol

prisma wave
jovial warren
cinder flare
#

bro Krypton is literally the only thing Bardy has worked on for the last like month

pale shell
#

lol

jovial warren
#

also, I think we got it

cinder flare
#

every time I meme on him, it's related to Krypton

jovial warren
#

region data persistence here we are

old wyvern
#

bm

cinder flare
pale shell
#

yo bm

sweet drum
#

hey, someone here knows if rgb ever is gonna be supported in the coming weeks for deluxechat?

pale shell
#

is it possible to make a micro fawe for the plugin?

cinder flare
jovial warren
#

only took me literally copying Minecraft's RegionFile and RegionFileStorage lol

onyx loom
jovial warren
cinder flare
onyx loom
#

This guide talks about Will Rgb Ever Be Added To Deluxechat

prisma wave
jovial warren
#

I am not an idea machine

#

I just make things happen (sometimes)

pale shell
cinder flare
#

just a kotlin one

lunar cypress
cinder flare
jovial warren
#

wow, even Johnny's using it now

cinder flare
#

and spelling it wrong

jovial warren
#

I got elixir then rust

lunar cypress
#

wdym now

prisma wave
#

rust

jovial warren
#

lol

lunar cypress
#

you added rust?

prisma wave
#

yes

#

it was functional only

#

but rust is the exception

jovial warren
#

might be useful to use Rust actually, thinking about native stuff

prisma wave
#

because rust is rust

pale shell
#

p2w bm

jovial warren
#

or Kotlin/Native fingerguns

#

external good

cinder flare
prisma wave
#

might add the simon peyton-jones wikipedia page too

jovial warren
#

no, I'm saying I could use Rust for low level computation instead of using C

lunar cypress
#

yeah why don't you RIIR

eternal compass
#

Krypton Client webapp when?

pale shell
#

hows ow bm?

onyx loom
prisma wave
#

not bad

jovial warren
#

is Rust as performant as C for low level computations like array copying and shifting btw?

onyx loom
prisma wave
lunar cypress
#

nearly

lunar cypress
#

^^^^^^

jovial warren
#

I was thinking of doing perlin stuff natively

pale shell
#

bm pls code stuff for me

lunar cypress
#

yeah please don't use rust unless you have a bigger native code base

pale shell
#

i need to add a feature requested like 8 months ago but effort

lunar cypress
#

not worth the effort with jni at all

jovial warren
#

just 1. for the fun of learning JNI, 2 it's also an excuse to learn JNI, and 3. means I can do a hell of a lot of low-level array copies and stuff with very low memory footprint

#

and also it's an excuse for me to learn C

prisma wave
#

why would you ever use c when rust exists

onyx loom
lunar cypress
#

If you're gonna do some computation through jni use C

pale shell
#

yes

jovial warren
prisma wave
#

so does rust

cinder flare
pale shell
lunar cypress
#

C is still fairly high level depending on your perspective

jovial warren
#

I class those as low level

#

from my very high level JVM perspective

prisma wave
#

did you know rust can allocate memory

cinder flare
pale shell
#

sends jar to bm and he doesn't test it feelsbadman

cinder flare
#

maybe even punch cards

lunar cypress
prisma wave
#

😦

cinder flare
old wyvern
#

@prisma wave


CoroutineScope(Dispatchers.IO).launch {
  /* SOME HEAVY TASK */
  sync(plugin) {

  }
  /* SOME HEAVY TASK */
}


suspend fun sync(plugin: JavaPlugin, task: () -> Unit) = suspendCoroutine { continuation ->
     Bukkit.getScheduler().runTask(plugin) { 
        task()
        continuation.resume() 
     }
}
```?
prisma wave
#

why dont we use unsafe blocks everywhere !!

pale shell
#

git?

prisma wave
#

i was making my own Dispatcher

eternal compass
#

Github...

jovial warren
cinder flare
jovial warren
#

the version control system

pale shell
#

ah yes my bad i'm tired

lunar cypress
#

unfortunately the premise of rust does not work because the compiler cannot prove that the cpu doesn't catch fire while allocating 4 bytes of memory

jovial warren
#

every developer has to know what Git is haha

eternal compass
#

Even I know that, and I'm as smart as a brick lol

pale shell
#

mr bm won't build from git because of effort 😅

prisma wave
cinder flare
#

wot

pale shell
#

dude it's 4am here in uk leave me alone

cinder flare
#

all you gotta do is pull and then build?

old wyvern
#

We should all program with circuits

pale shell
#

tell bm that

jovial warren
#

oh btw, fun fact: did you know that chunks in region files can't be larger than 1 MB?

prisma wave
cinder flare
pale shell
old wyvern
#

Programs as bytes is overrated

cinder flare
#

are you on crack

eternal compass
pale shell
#

i'm sure

lunar cypress
old wyvern
#

Circuits are where the speed is at

lunar cypress
#

use maths instead

onyx loom
#

its 13:46

eternal compass
#

In the us its 8:45

pale shell
#

it is?!

onyx loom
#

i think odin is living in australia or smth 🥲

jovial warren
#

in MCRegion, the chunk would just refuse to save if it was over 1 MB, but these days, Minecraft puts extra data in c.x.z.mcc files

pale shell
#

idk where i'm living

cinder flare
prisma wave
cinder flare
pale shell
#

i've not slept in 4 days

eternal compass
pale shell
#

Pog

prisma wave
onyx loom
#

not pog

cinder flare
#

even with 4 days of no sleep, I'd still know what git is my dude

pale shell
#

Idk why i trust you with that wiki thing

cinder flare
#

maybe the sleep or lack thereof is tangentially related

prisma wave
#

simon peyton-jones

#

.wikipedia.org

onyx loom
#

my guy has his own sub domain? 🤨

pale shell
#

who

onyx loom
#

simon peyton-jones

pale shell
#

never heard of

onyx loom
#

🥲

cinder flare
prisma wave
#

🙂

prisma wave
cinder flare
#

oh nice

prisma wave
#

might add some special URLs in the future

cinder flare
#

you should add a builder that lets you make complicated shit and like advanced formatting and stuff

jovial warren
#

still trying to think how I'm going to change block states in chunks for placement and breaking lol

prisma wave
#

that also means I've got to store the URLs somewhere

onyx loom
#

not sure anyone would even use it

prisma wave
#

this version is stateless 🙂

old wyvern
#

😌

#

Also, no IO hack in Elm

#

Take that Haskell!!

prisma wave
#

Elm superior??

old wyvern
#

Possibly

#

Truely pure

cinder flare
#

well no I mean just a builder that lets you add formatting that's annoying as fuck to type out yourself

#

like % stuff, ya know?

prisma wave
#

oh right

cinder flare
#

maybe even support for #'s

prisma wave
#

I don't think URL escapes even work 🥲

pale shell
#

no

stuck harbor
#

hehe

pale shell
#

it's gonna be a rick roll or something

prisma wave
#

😮

cinder flare
#

oh that's the haskell guy right?

#

i saw him say that haskell was useless

prisma wave
#

our lord and saviour

#

correct

cinder flare
#

yeah

pale shell
#

that's me tho

prisma wave
#

You're Simon Peyton-Jones, British computer scientist who researches the implementation and applications of functional programming languages??

pale shell
#

i'm british does that count?

old wyvern
#

😌

old wyvern
pale shell
#

i got nitro

old wyvern
#

Rename

#

So

onyx loom
#

boost first fingerguns

old wyvern
#

Simon Peyton Jones

pale shell
#

boost fingerguns

old wyvern
#

Boost

#

And then look at pinned

pale shell
#

why is this chat so odd

onyx loom
#

wym? this is completely normal.

pale shell
#

no its not

onyx loom
#

for a discord server that serves help to people for making minecraft servers or plugins 🥲

prisma wave
#

Nothing odd about this

#

Ever heard of clojure?

old wyvern
pale shell
#

bm 😠

#

make it premium

prisma wave
#

I can't

pale shell
#

can

prisma wave
#

Need 3 plugins

old wyvern
#

Seems imperitiveness is taking a toll on you

pale shell
#

use my acc

prisma wave
#

You do it

old wyvern
#

Kindly join the functional world

pale shell
#

fr?

prisma wave
onyx loom
#

just make a chat clear
join listener
broadcast plugin

#

ez

prisma wave
#

Yeah

old wyvern
pale shell
#

ok you wanna take down the other one or?

old wyvern
#

What are you guys talking about?

pale shell
#

nothing

#

🙂

old wyvern
#

Ah the infamous Nothing

prisma wave
#

Just

old wyvern
#

Which inturn forms the Maybe

pale shell
#

bm i'll dm you they're onto us.

prisma wave
#

no secrets here

lunar cypress
#

yeah there are no secrets

cinder flare
pale shell
#

smh

old wyvern
#

How old are ya

lunar cypress
#

imagine being a b**mer

prisma wave
#

yugi should i be using IO dispatcher here?

cinder flare
#

self-professed oldie

old wyvern
prisma wave
#

sending a few packets and changing some blocks

jovial warren
#

ServerboundUseItemOnPacket someone tell me how that's an appropriate name for a player block placement packet

cinder flare
#

sounds like you used an item on something

old wyvern
#

IO for packets

jovial warren
#

I just spent like 5 minutes trying to find out which one of these mother fuckers handled block placements

cinder flare
#

for instance, using a dirt block on the floor to place another dirt block 🙃

old wyvern
#

Changing blocks should be sync anyway

prisma wave
#

yeah

old wyvern
#

So yea go for IO

cinder flare
#

sounds like another deprecating PlayerItemEvent but like hardcore

jovial warren
#

lol

cinder flare
#

I guess the specificity of the api is an important question to be asked

jovial warren
#

the thing is though

pale shell
#

check dms pls bm

jovial warren
#

this packet gives no details about what item was used

prisma wave
#

how does this look?

old wyvern
#

Odin be sending private nudes

cinder flare
#

well how does it know what block to place?

cinder flare
old wyvern
#

lol

jovial warren
#

right, time to place a block and look for unrecognised packet IDs in the console

cinder flare
#

trial by fire, I love it

old wyvern
prisma wave
#

ok cool

cinder flare
#

whatcha makin bm?

prisma wave
#

private mines plugin

jovial warren
#

oh of course that's how it calculates what block you have just placed

prisma wave
#

or attempting to

jovial warren
#

we know what item the player has in their hand

jovial warren
#

🤦‍♂️

cinder flare
#

stonks

cinder flare
prisma wave
#

i put it in showcase a while ago

#

1 sec

#

refactoring this

cinder flare
#

oh just refactoring okay

#

migrating to haskell?

prisma wave
#

i wish

jovial warren
#

oh btw, if I'm saving chunk data to files in the ticking, I should be launching a new IO dispatcher to do the actual saving IO right?

onyx loom
#

very cool bm

jovial warren
#

that's an appropriate use for that right?

prisma wave
#

it works 🎉

#

yay

ocean quartz
#

Speedy

cinder flare
#

lmao anyone want to accept crypto?

half harness
#

suggestion to put in pinned message: specify if you don't accept paypal since most people assume you accept paypal

cinder flare
#

i mean, he did

#

just big funny

ocean quartz
#

I'll take 1 bitcoin for it

dawn hinge
#

Seems like a good deal

half harness
#

lol

winter iron
#

anyone used discord oauth before?

prisma wave
#

Tried to

jovial warren
#

I mean, at least doing crypto means they can't chargeback

winter iron
#

with their api

prisma wave
#

What token are you using

winter iron
#

access token

#

not bot

#

i think that may be why

#

but im not making a bot, im making web app so i got user access tokens

#

Bearer

prisma wave
#

And what user are you trying to get

winter iron
#

tryna use this

#

218825047874207744

steel heart
#

REST :0

winter iron
#

this one works fine

#

but when i just try to get by id

#

it dont work

#

:/

prisma wave
#

What's the error

winter iron
#

{"message": "401: Unauthorized", "code": 0}

#

wait a amin

prisma wave
#

Interesting

winter iron
#

my token is only scoped to identify

#

and i think that endpoint returns emails

#

:/

jovial warren
#

you sending the authorisation properly? lol

winter iron
#

yurrr

jovial warren
#

always gotta make sure

winter iron
#

i am

prisma wave
#

Ah that'll probably be why then

#

Actually I'm not sure it does

jovial warren
#

sensei read what it says

#

if you use an identity scope, it'll send the data without the email

winter iron
#

I know

#

I think /users/{user.id} returns with an email and my tokens are not scoped to include emaisl

#

which is why i think im getting unauthorized

#

nvm

#

its not

#

ugh

jovial warren
#

works for me

#

curl -X GET -H "Authorization: Bot OOF" "https://discord.com/api/v8/users/@me"

lunar cypress
#

why are you querying that endpoint to begin with

winter iron
#

im not using bot token

prisma wave
#

Bearer

jovial warren
#

right, lemme try with a bearer

winter iron
#

Im storing the user id in database then iwant the current username related to that id

lunar cypress
#

then you get the current user

jovial warren
#

it's the client secret I want right?

lunar cypress
#

like bardy did

#

not the get user by id endpoint

winter iron
#

the database has multiple different user ids and on request i want the usernames for those

jovial warren
#

ah yeah, I get unauthorized

lunar cypress
jovial warren
#

ah right

prisma wave
#

are you sure users are even allowed to access that endpoint?

lunar cypress
#

yeah I don't think so

winter iron
#

ew

lunar cypress
#

just register a bot

jovial warren
#

where do you get a bearer token?

prisma wave
#

might have to use a bot to do it

#

^^

prisma wave
#

Oauth*

lunar cypress
#

that endpoint barely has rate limits I think

jovial warren
#

on the OAuth page?

lunar cypress
#

through an oauth 2 authorisation flow

jovial warren
#

because I know what that means

lunar cypress
#

It's an individual, temporary token for each authorisation

jovial warren
#

how does one get one?

lunar cypress
#

you can't find that on your dev page

#

By authorising your app with oauth 2

jovial warren
#

ah right

winter iron
#

fuck me

#

using Bot tokens work

#

:/

lunar cypress
#

what does it matter

#

it's implementation detail

#

You don't need the bot to do anything else

unkempt tangle
#

Anyone seen big chungus?

prisma wave
#

🥲

pale shell
half harness
#

i just test in ide - no compile errors = works ||/s dont do this||

hot hull
#

I just remodeled my entire room

#

So much more space now

pale shell
half harness
#

just test like 1.8, 1.12, 1.16

ocean quartz
#

1.8, 1.12, latest, if you want full support, fuck the versions in between
If you love yourself, just latest

prisma wave
#

maybe don't test 1.7

hot hull
#

bruh what the fuck, 1.7 and 1.8 shouldn't be on there

#

dkim, stop being an idiot please

winter iron
#

id say just do 1.12 and latest

half harness
hot hull
#

No

winter iron
#

since most servers use backwards comptability for 1.7 from 1.12

half harness
#

:/

pale shell
#

I smell burning brb

prisma wave
#

🧐

ocean quartz
onyx loom
#

sorry my bad

hot hull
#

You're an idiot if you think that, I respect peoples opinions, but yours is just stupid

pale shell
#

last time i smelt burning something almost caught the house alight (true story) so i'm gonna make sure

half harness
hot hull
#

now edit it again and remove 1.8

pale shell
#

we had a box on the hob for some reason and it knocked it turning it on catching the box on fire

half harness
#

theres a reason why im making my bedwars plugin 1.8 compat :))

hot hull
#

Cause you're an idiot yes

ocean quartz
#

Why is 1.13 in that list?

onyx loom
half harness
onyx loom
#

ill send u a pic of my room if u do 😄

ocean quartz
#

Lmao

prisma wave
#

1.11 is the most irrelevant version change my mind

onyx loom
#

1.10 hello

prisma wave
#

What even happened in 1.11

half harness
#

lol

ocean quartz
onyx loom
#

yes

prisma wave
onyx loom
#

my room is absolutely great

half harness
onyx loom
#

im actually just gonna send a pic rn

ocean quartz
onyx loom
#

ull all be very grateful that i sent it

ocean quartz
#

Actually no that's 1.10

#

1.11 was the mansion

prisma wave
#

Aah

pale shell
#

wait you can't even get paper 1.7 anymore?

prisma wave
#

I don't think I've ever found one in survival

prisma wave
onyx loom
#

hey guys who likes my room

prisma wave
#

I hate it

#

ugly and crap

onyx loom
#

wow rude

prisma wave
#

sorry

onyx loom
#

take it back

prisma wave
#

no

pale shell
#

there's holes fix it

ocean quartz
hot hull
pale shell
#

no

#

did paper never support 1.7?

ocean quartz
#

Paper 1.7 was never a thing

pale shell
#

didn't know that

prisma wave
#

how can I get yatopia 1.4

onyx loom
#

bukkit 1.7 tho

#

what was even added in 1.7

pale shell
#

LOL

prisma wave
#

lots of biomes iirc

onyx loom
#

o

pale shell
#

bukkit came out in like 2011

ocean quartz
#

One if the best updates of its time

prisma wave
#

1.7 was actually pretty good yeah

pale shell
#

1.6.4 is my fav idk why

onyx loom
#

yeah i totally forgot

pale shell
onyx loom
#

1.4 was huge aswell iirc

ocean quartz
#

What did 1.8 even do? I can't remember

prisma wave
#

guardians

onyx loom
#

guardian temple

prisma wave
#

Rabbits

half harness
#

1.9 = big update

ocean quartz
#

Ah kinda shit

onyx loom
#

diorite granite andesite 🥲

pale shell
#

1.4.2

prisma wave
#

Yeah 1.8 sucked

#

Boring update

pale shell
#

or 1.4.6

#

idk which one was good

prisma wave
#

I started playing in 1.5

half harness
#

I started playing in 1.13

onyx loom
#

thats quite sad dkim

pale shell
#

i'd be suprised if any of these plugins load lmfao

ocean quartz
#

1.9 combat, 1.10 polar bears 🥲, 1.11 mansion, 1.12 colors
Ah when Mojang used to do 1 feature per update

prisma wave
#

Oh 1.8* had armor stands actually

#

That was kinda huge

onyx loom
#

true

winter iron
#

armor stands = big deal

onyx loom
#

horses for holograms 🥲

ocean quartz
onyx loom
#

i think i mustve too

#

2013 is when i bought my account

pale shell
#

i wish it was saturday

half harness
onyx loom
#

but i did have minecraft on the ps3 before i bought java 🥲

prisma wave
#

and /execute was added in 1.8 iirc

pale shell
pale shell
#

I wonder if i got 30k hours yet

onyx loom
#

30k thonking