#dev-general

1 messages · Page 315 of 1

jovial warren
#

from what I've just read, yeah

#

it generates different methods based on the generic type

#

right?

lunar cypress
#

it makes a specialisation for every use

jovial warren
#

that is a bit expensive I suppose

lunar cypress
#

this is not possible when your VM is completely dynamic

prisma wave
#

i guess they could've specialised for types known at compile time and then kept type erasure for other cases?

#

but that might be impossible too

jovial warren
#

on another note, any idea how I should store the block palette?

#

since the protocol sends an array of varints where each element points to state ID in the global palette

#

"highest bit for chunk section 16 (above the world, y=256 to y=271)"

#

why tf is there a chunk section for above the world?

#

and also one for below the world?

obtuse gale
#

It makes sense for lighting purposes

jovial warren
#

actually, good point

obtuse gale
#

There is that area that has to be lit up and stored

forest pecan
#

@obtuse gale should i tell bm about the dependency jar issue

#

cause he should know it

prisma wave
#

no

#

dont tell me

forest pecan
#

:d

prisma wave
#

thx

forest pecan
#

the strategy with using url

#

will not work for java 16

#

and up

#

It just won't work at all

#

Java has forced encapsulation

obtuse gale
#

I linked to him the LP issue lol

forest pecan
#

Oh

prisma wave
#

yea i heard lol

forest pecan
prisma wave
#

java 16 might mean the death of pdm

forest pecan
#

Java is horrible

#

why cant we do this

#

i mean i understand its dangerous

prisma wave
#

selfish

forest pecan
#

yeah

prisma wave
#

im sure people will find a way around it

forest pecan
#

LuckPerms did the in jar

#

but i really dont wanna do that

#

lol

jovial warren
prisma wave
#

RUINED pdm

steel heart
#

elaborate

jovial warren
#

elaborate

#

wait... has the new strong encapsulation of JDK internals by default got anything to do with your issue?

obtuse gale
#

why do embeds have to be so big :PepeCry:

prisma wave
#

yes

#

no more URLClassLoader hacks

#

😩

jovial warren
#

wait what exactly has changed?

prisma wave
#

you cant use reflection to add stuff to an URLClassLoader anymore

#

afaik

jovial warren
#

and that's an issue for PDM because you rely on being able to inject dependencies at runtime through reflective class loading right?

prisma wave
#

mhm

jovial warren
#

I mean, lucko fixed it

obtuse gale
#

But not in a way that can be easily implemented in PDM

prisma wave
#

lucko's is pretty much hardcoded afaik

obtuse gale
#

yea

jovial warren
#

also, I'm surprised that doesn't break Spigot, since I swear it injects shit at runtime

obtuse gale
#

He literally puts the actual plugin jar inside the jar, extracts it and loads it with a custom classloader that has the pluginclassloader as parent and safely exposes the addURL method

jovial warren
#

he does what?

#

puts what inside of what?

frail glade
#

He puts the plugin inside a bootstrap loader

jovial warren
#

ah right

obtuse gale
#

Sugarcoat words

jovial warren
#

lol

prisma wave
#

this might mean the end of pdm as we know it

stuck harbor
#

oof

jovial warren
stuck harbor
#

i guess we are going to turn into game devs and not reduce executable sizes

prisma wave
#

yes

stuck harbor
#

throw in a few unused assets

prisma wave
#

ez 100GB

jovial warren
#

cough fastutil in Krypton cough

stuck harbor
#

toothbrush object which is never used, but takes up 50MiB

stuck harbor
jovial warren
#

yeah

stuck harbor
#

exists

jovial warren
#

idgaf

prisma wave
#

no

jovial warren
#

some irrelevant Rust library

stuck harbor
#

its an inactive rust crate

#

not library you cretins

#

they are crates

jovial warren
#

lol

#

also, tf is a warm ocean

#

why does Minecraft have warm oceans

#

and lukewarm oceans

prisma wave
#

lukewarm ocean

jovial warren
#

not kidding

ocean quartz
#

Warm oceans are the ones with corals

stuck harbor
#

man mojang are great at names

#

lukewarm oceans

#

partially seperatable fish

jovial warren
#

also, someone please explain why the biome IDs suddenly jump from 50 (deep frozen ocean) straight to 127 (the void)

#

happens in Bedrock as well, so it's not just a Java thing

#

actually, that's not the only weird gap

#

biome ID 128 isn't a thing either

stuck harbor
#

they want the void to always be the last one i assume

jovial warren
#

or 135-139 (inclusive)

stuck harbor
#

so they have a bunch of leftover IDs

jovial warren
#

or 141-148 (inclusive)

jovial warren
stuck harbor
#

🤷

#

i assumed that the void 127 is a legacy thing then

#

5 bits i think 128 is

#

like how height is 255

#

256 is 6 bits

jovial warren
#

256 is 8 bits lol

#

and 128 is 7

#

you should know that lol

stuck harbor
#

shut

#

I'm shit at counting

forest pecan
#

someone doesn't know their times 2 tables

#

lol

stuck harbor
#

well I started at 1 byte (8 bits)

#

I mean

#

I started at 8

#

I mean

#

shit

jovial warren
#

1 byte = 8 bits, which has a max value of 256 in base 10, or 11111111 in base 2

obtuse gale
#

whats the kotlin alternative to like

new InterfaceName<>(){
  //Override all methods
}```
#

I feel like its something with object : but idk

jovial warren
#

you would be right

#

object : InterfaceName<>()

obtuse gale
#

256 possibilities, from 0 to 255

jovial warren
#

good point

obtuse gale
#

assuming unsigned

#

but yeah

jovial warren
#

yeah

#

signed just means the first bit is used to indicate the sign

obtuse gale
#

bruh what isEmpty(): Boolean' is deprecated. This member is not fully supported by Kotlin compiler, so it may be absent or have different signature in next major version

jovial warren
#

you trying to override collection or some shit?

#

lol

obtuse gale
#

no

#

im just tryna use isEmpty is one of the overriden methods lol

jovial warren
#

¯_(ツ)_/¯

ocean quartz
#

Example?

obtuse gale
#
    val listItemEditor = object : ListItemEditor<AdditionalDependency> {
        override fun isEmpty(item: AdditionalDependency) =
            item.name.isEmpty() && item.repo.isEmpty() && item.dependency.isEmpty()```
distant sun
#

If IJ (gradle?) refuses to load the sources of a "lib" I have made, what can I do? 🥺

obtuse gale
#

go to the shower, open the cold water tap and have a bit of a cry

distant sun
#

stfu fefo

obtuse gale
#

am I wrong though?

#

doubtfully

distant sun
#

🖕

obtuse gale
#

lol

distant sun
#

for real now, wtf is wrong with gradle intragration of iij smh

obtuse gale
#

parameter specified as non-null is null F

surreal quarry
#

unspecify it happy_think

distant sun
#

You guys suck

obtuse gale
distant sun
#

Nice aj3!

jovial warren
#

You sure you're bundling the sources JAR? @distant sun

#

You need to create a sources jar and publish that to have access to sources

obtuse gale
#

Dumb question here

#

new Thing[0] tf does this do

jovial warren
#

What do you think

#

Creates an array of size 0

obtuse gale
#

something with arrays lol

#

so whats that in kotlin? Array<Thing>()?

jovial warren
#

Yeah

ocean quartz
#

Array<Thing>(0) probably

jovial warren
#

Or just arrayOf

prisma wave
#

0 élément arrays

#

in C I'm pretty sure that wouldn't take any memory

jovial warren
#

Yeah it wouldn't

prisma wave
#

sadly java has the 'length"

jovial warren
#

Primitive arrays shouldn't take any memory though

prisma wave
#

Depends

#

The still need to store the length

jovial warren
#

Which is 0

#

So 1 bit?

prisma wave
#

Nah

quiet depot
#

nah they store a header as well

prisma wave
#

Yea that too

#

Arrays are objects

jovial warren
#

Ah

prisma wave
#

And even if the length was 0, it still takes the same amount of memory as any other int

#

Probably

jovial warren
#

Pretty poor then

#

An empty array taking up memory

#

Imagine

distant sun
#

@jovial warren yes I am.

quiet depot
#

if the kotlin compiler doesn't remove the array then it's bad

jovial warren
quiet depot
#

I think i'm gonna try implement o(n) sort into docdex

distant sun
#

99.99%

prisma wave
#

good luck with that lmao

distant sun
#

O(O(inf + 1))

quiet depot
#

i'm just worried about the memory usage

jovial warren
quiet depot
#

o(n) is fast in the sorting world

#

and potentially impossible

#

but not gonna let that stop me

prisma wave
#

Yeah I'm pretty sure every algorithm is O(n ^ 2) at worst

#

Or most are

quiet depot
#

bardy it'll be guaranteed o(n)

#

no worst case or best case

#

just o(n)

jovial warren
#

O(n) is trash

quiet depot
#

you realise most sorting algorithms are O(nlogn) right?

jovial warren
#

Yeah

#

That's why I said O(n) is trash

quiet depot
#

o(n) is a significant improvement over o(nlogn)

prisma wave
#

O(n) is better than that

jovial warren
#

Is it?

quiet depot
#

yes lol

prisma wave
#

Pretty sure it is

#

Only 2 algorithms have O(n) but that's best case

#

Average time is logn

#

But you have to consider space complexity too

jovial warren
#

Yeah it is, you're right

quiet depot
#

yeah that's what I'm worried about bm

prisma wave
#

You could probably get O(n) but with the penalty of a huge space complexity

jovial warren
#

Also, sorting in an average case of O(n) literally doesn't exist

quiet depot
#

because for my shit to be o(n), i'd need a max size array

prisma wave
#

That's a lot of memory

quiet depot
#

yep

distant sun
#

BigInt.ONE

quiet depot
#

i'm trying to think of a better solution

prisma wave
#

Probably too much

jovial warren
quiet depot
#

we'll see

frail glade
#

I prefer O((n+1)!)

quiet depot
#

bardy o(n) algorithms are possible in specific cases, for integers

#

it's really simple

#

you just loop your elements

#

and add them to an array, using the element as the index

#

bam sorted

obtuse gale
#

What am i mreant to do about this?

prisma wave
regal gale
#

Are you one of these people? reversed_fingerguns

jovial warren
quiet depot
#

bogo sort is surprisingly effective when n = 1

prisma wave
distant sun
#

Quack question, tornadofx for a minimalist UI?

jovial warren
obtuse gale
#

But i want to edit the original variable, not a copy of it

prisma wave
#

No it's not an actual copy

obtuse gale
#

what?

prisma wave
#

It just copies the reference

obtuse gale
#
val x = whatever
val y = x

y.name = "thing"``` does that edit x's name?
jovial warren
#

Or !!

prisma wave
#
val x = Object ()
val y = x

y still has the same value as x

obtuse gale
#

o

prisma wave
#

They are 2 separate pointers / references to the same thing

#

But in this case 1 reference is mutable so you copy to an immutable reference

#

Ez

#

&mut T 😊

jovial warren
#

There's about 3 big times where this happens iirc

distant sun
jovial warren
#
  1. Mutable properties
  2. Open properties
prisma wave
#

tornadofx too outdated

#

Legacy code

jovial warren
#

Stfu

obtuse gale
#

how come when MS paint is open in the background when you use arrow keys it moves the mouse lol

prisma wave
#

ms Paint too outdated

#

Legacy code

jovial warren
prisma wave
#

I mean why wouldn't it work

#

If you wanna use it, use it

jovial warren
#

I recommend TornadoFX

#

And JavaFX

distant sun
prisma wave
#

Damn I don't circlejerk about flutter enough

jovial warren
#

Swing and AWT legacy

prisma wave
#

Need to get into the habit

#

Flutter good, JavaFx legacy and outdated

#

Java ecosystem is way too bloated

jovial warren
#

Flutter is for cross-platform mobile apps

prisma wave
#

Flutter makes declarative UI easy

#

It's for cross platform apps*

#

Not necessarily mobile

obtuse gale
#

So what's the name of the server then?

jovial warren
#

What?

obtuse gale
#

Your server impl

#

Any names?

jovial warren
#

Krypton

prisma wave
#

elaraMC*

#

But sure

obtuse gale
#

Krypton client when though

jovial warren
prisma wave
#

waiting for the perfect moment to rename the repo

obtuse gale
#

lol

jovial warren
distant sun
jovial warren
#

Is components.kotlin even a thing?

prisma wave
jovial warren
#

Lol

#

I didn't even know I put that there

distant sun
#

😦

prisma wave
#

So verbose! Cargo or Cabal or Leiningen can do that in about 5 lines

#

go.mod

#

nuget is unironically pretty good

#

I was kinda prejudiced towards the .net ecosystem but damn

#

what gradle could've been

jovial warren
#

Gradle is good wdym

prisma wave
#

it's no nuget

jovial warren
#

Nuget

#

Wat dis

prisma wave
#

the .NET equivalent

#

Although it's not a fair comparison

#

Since nuget is centralised

stuck harbor
#

.NET is hurt

prisma wave
#

only because of stinky C#

#

F# makes it great

jovial warren
#

What is .NET for? C#?

#

Or is it bigger

quiet depot
#

c#, vb

jovial warren
#

Ah right

quiet depot
#

I think .net is like microsoft's jvm

prisma wave
#

Yeah I'm a little unsure on what it actually is

#

But I think it's pretty much that

#
  • the framework and tools etc
jovial warren
#

So Microsoft®️ Java™️ and visual basic

prisma wave
#

and Microsoft OCaml

quiet depot
#

f# too or no?

prisma wave
#

that's what ms ocaml is

quiet depot
#

oh

prisma wave
#

They're very similar

jovial warren
#

Is F# Microsoft?

prisma wave
#

yup

jovial warren
#

Wow

stuck harbor
#

wine keeps on being like eeeee .NET download 200 versions onto ur otherwise unbloated system

prisma wave
#

wine lol

quiet depot
#

what r u using wine for

jovial warren
#

^

stuck harbor
#

btw I'm moving away from i3wm, and towards dwm

stuck harbor
quiet depot
#

that didn't answer my question

stuck harbor
#

windows server tho, I get that license free

quiet depot
#

like what programs do u need wine for

jovial warren
#

They look the same lol

obtuse gale
jovial warren
stuck harbor
stuck harbor
#

well, comparatively

jovial warren
#

No one uses Windows Server 🤮

#

No one

stuck harbor
#

no I mean on my desktop

#

obv not on a server, I'm not mad

jovial warren
#

So Windows 10

#

Not Windows Server

#

Or what

quiet depot
#

lots of people use windows server

jovial warren
#

I don't understand why though because it's trash

stuck harbor
#

windows server is just windows 10 with less bloat

jovial warren
#

It has its uses but it's trash for most things

stuck harbor
#

wdym, in what uses is it trash?

jovial warren
#

Mail

stuck harbor
#

wot

jovial warren
#

It's exchange or nothing

stuck harbor
#

yeah, that's what it designed for

#

m8 it's not competing with linux

prisma wave
#

Windows server + Ubuntu VM 👍 fingerguns

quiet depot
#

how is windows server not competing with linux?

stuck harbor
#

Windows server + manjaro dwm partitions

jovial warren
prisma wave
#

Windows server has no chance against Linux

jovial warren
#

^

stuck harbor
#

it competes by being in a completely different category

jovial warren
#

True

#

Windows Server is designed for working with Windows clients is what I found when I used it

distant sun
#

I cant understand this, I have legit copied Bardy's komponent repository which has a similar publish script as my lib and his works just fine but mine doesn't ...

stuck harbor
#

windows server is for microsoft products, basically

jovial warren
#

Yeah

#

For literally anything else, it's useless

quiet depot
#

which of microsoft's products are used in server environments?

jovial warren
#

Exchange

#

Active Directory

#

I think Microsoft have kinda started to accept that they ain't beating Linux in the server market lol

#

And also that open-source is the way forward

#

Which is an objectively correct fact

quiet depot
#

they may have bought github for 10 bil but since when did that mean anythiung /s

jovial warren
#

Open-source objectively superior

#

They may have... idk, became the largest contributor to open-source on the entirety of GitHub

#

And not by a small amount either

quiet depot
#

became the largest contributor to open-source on the entirety of GitHub
ok not sure about that one actually

#

i'd say google is a bigger contributor

jovial warren
#

They have over 4,500 employees contributing

quiet depot
#

I think google has hundreds of thousands

jovial warren
#

Which compares to Google's 2,267

quiet depot
#

or not

surreal quarry
#

i feel like last time i looked google had like 7k public members in their organization

#

but that might be 100% wrong

quiet depot
#

ok then perhaps meaningful contributions

#

I've never used a microsoft open source product lol

jovial warren
quiet depot
#

at least not conscientiously

jovial warren
#

Neither have I

surreal quarry
#

windows terminal or whatever it’s called is the only thing i’ve used

jovial warren
#

Oh yeah, and the new (kinda useless) wpm

quiet depot
#

ok does anyone know what liferay is?

jovial warren
#

I mean winget, not wpm

#

My bad

jovial warren
quiet depot
#

it's on that list u sent

jovial warren
#

Also, think about it

#

The reason why you see Google as more prevalent is because they make more Java libraries

#

Microsoft has over 3.9k repositories, 127 of which are Java

#

On the other hand, Google has 2k repositories, 206 of which are Java

surreal quarry
#

which one makes kotlin stuff 🌚

jovial warren
#

Both

#

Google uses Kotlin much, much more though

#

Google loves Kotlin

surreal quarry
#

joking lol

#

but yea

ocean quartz
#

Google does a lot of Kotlin yeah

jovial warren
#

E.g. Google Home is written in Kotlin

ocean quartz
#

Every google app for Android is written in Kotlin

jovial warren
#

Yeah

#

This is proof that Kotlin is objectively superior to Java xD

obtuse gale
#

> the designers of a language use their language on a platform they designed

#

yeah that's some very objective proof right there

surreal quarry
#

very objective

ocean quartz
#

well google isn't really the designer of kotlin

jovial warren
#

JetBrains were the designers of Kotlin, not Google lol

obtuse gale
#

shut

#

Bruh why would the apply method be getting called on the ok button as well this is so confusing lol

#

why the hell does IJ halt all threads by default on a breakpoint

onyx loom
#

🌝

frail glade
#

IJ just messed me up again. Somehow my project directories go up to their parent directly and it just tried to index my entire OneDrive and downloaded over 100GB of data on my boot drive and filled it up

surreal quarry
#

yikes

frail glade
#

It's not the first time it's done this either. I have no idea how it does it.

onyx loom
#

🌚

surreal quarry
#

time to use eclipse!

onyx loom
#

"jetbrains" with their "powerful" IDEs

frail glade
#

Probabaly time to wipe the boot drive again anyways

obtuse gale
unique light
#

oops, i'm sorry

livid gazelle
#

pp

ocean quartz
#

Front end dev is so boring holy

lost forge
#

It is if you're not a creative person or suck at designing stuff.

ocean quartz
#

Not talking about design specifically
More of handling data coming from the backend, that's the boring part

obtuse gale
#

org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_NOTNULL] A NOT NULL constraint failed (NOT NULL constraint failed: xywarns_logged_actions.category)
:PepeCry:

ocean quartz
#

What query caused that? xD

obtuse gale
#

a simple insert lol but I forgot I re-designed the table and removed some columns

#

testing is ugh

ocean quartz
#

Yeah agree, that's why i love the database functionality in IJ ultimate

obtuse gale
#

I need someone good with IJ plugins lol cos this is being annoying

ocean quartz
#

What are you trying to do? Like what type of plugin?

obtuse gale
#

im just tryna make a settings page atm and ive got most of it down, Its just the saving/loading thats giving me trouble

hot hull
#

@old wyvern What's your friends name so I add him

old wyvern
#

On discord or ingame?

hot hull
#

ingame

old wyvern
#

lemme check

#

DarkSoulZeus

hot hull
#

When you have to check :kek:

old wyvern
#

He ussually uses a diff name xD

hot hull
#

I was gonna change my name but it costs 200 plat, and I rather spent it on more important shit

hot hull
old wyvern
hot hull
#

Farm them then smh

old wyvern
#

yup

hot hull
#

I only have 2.4k sadge

#

@old wyvern If you put for like an hour long cryotic run, lemme know kek

old wyvern
#

I have no idea what cryotic run means 😅

hot hull
#

1 hour long excavation

quiet depot
#

@frail glade i've seen that happen a few times to people now

old wyvern
#

oh ok

heady birch
#

Might be a different issue

unkempt tangle
#

Anyone can find a untouched fork?

#

I wanna fork it

lunar cypress
#

an "untouched fork"?

unkempt tangle
#

Any problem with that?

lunar cypress
#

I don't understand what you mean

#

what's the problem with forking this repo

unkempt tangle
#

It's unavailable

prisma wave
#

Development General

jovial warren
#

did you actually read it?

unkempt tangle
#

no

jovial warren
#

the entire fork network is gone

#

I mean, web archive exists for a reason though amirite

#

no one messes with the archive lol

quiet depot
#

eh

#

i’m sure they have some rules

jovial warren
#

I think it's kinda protected though

#

since if it wasn't, the entire purpose would be defeated

#

the purpose of the archive is to archive things that are no longer available

jovial warren
#

123 forks lol

#

778 stars

#

all gone

#

2,869 commits

#

and it took take-two this long to take action lol

#

I wonder what in that repo is infringing their copyright

#

game files I guess

unkempt tangle
#

Now bombard bitbucket, gitlab etc?

jovial warren
#

you think they'll move to GitLab?

#

I mean, could work, for a bit

#

oh btw, has anyone got a Minecraft world that I could have for testing? lol

#

I mean, I could just gen my own world actually

jovial warren
#

564 MB 🥲

#

does it add anything to the files?

unkempt tangle
#

A question

#

How would you visualize a claim in a gui?

jovial warren
#

wdym?

unkempt tangle
#

You have a region from worldguard.

#

You gonna visual the area within a gui

#

grass = green glass plane

jovial warren
#

yeah WorldGuard doesn't have that

unkempt tangle
#

Of course they dont have that

jovial warren
#

I know UltraRegions has something like that, where it highlights using particles

unkempt tangle
#

I wanna create a topdown view of the claimed(region) area

jovial warren
#

TP the player above the region, looking down, with the area highlighted in red using red particles

#

or better yet, use maps

unkempt tangle
#

sec

jovial warren
#

also, I think the world you gave me is a bit too big for what I'm after

#

I'm gonna just use a freshly generated superflat world

#

wait no way

#

I can read SNBT from within IntelliJ?

unkempt tangle
#

something like that

#

top-down view of your claimed place.

jovial warren
#

yeah that's quite complex

quiet depot
#

@jovial warren mc dev plugin adds support for nbt I think

jovial warren
#

yeah it does

#

just for whatever reason, anvil isn't all in NBT

#

so it doesn't recognise it

#

trying to think of how to read and write SNBT now lol

#

gotta work with anvil

quiet depot
#

krypton :/

jovial warren
#

it's a good name wdym

#

better than MineKraft

#

feel free to open issues and make suggestions btw 🙂

#

and report bugs

quiet depot
#

not gonna happen from me sorry

#

i've given up the next 2 years of my life to education

jovial warren
#

oof

#

wish I enjoyed education enough for that

quiet depot
#

eh actually could be 5 years

#

idk

#

if your project is still around in 5 years i'll give it a rate

jovial warren
#

5 years?

#

jesus

#

I'll probably be out of university by then lol

#

and I'm in secondary school atm

quiet depot
#

you've got what, 1 and a half years left of high school?

jovial warren
#

no

#

I have a matter of months left until the end of secondary school

quiet depot
#

oh

jovial warren
#

then I have two years of sixth form

#

then 3 years of university

#

currently 16, will be 21 by then

#

I can't decide how I want to do this lol

#

I have too many options

#
  1. Serialise and deserialise to and from objects/raw SNBT
  2. Serialise and deserialise to and from adventure NBT/raw SNBT
  3. Load it all in as text
hot hull
#

I don't think option 3 should even be an option kek

prisma wave
#

Oh god ive absolutely destroyed my pc somehow

#

I have no idea what's happened but the bootloader is fucked

#

Kernel boots into emergency mode every time

#

Let's go

quiet depot
#

lol

#

bm do you have a beard?

#

because if you don't, or it's not a certain length, you're simply not qualified to run arch

prisma wave
#

I do not

#

That's a shame

#

I guess manjaro is for non-bearded people

quiet depot
#

anyway i'm 80% sure the problem is that you're dual booting on the same drive

#

just too many ways to fuck that up

prisma wave
#

this is a different pc, not dual booting

#

i think i fixed it

#

somehow

quiet depot
#

o

prisma wave
#

i had an old arch installation on a hard drive, not an ssd, im pretty sure something broke and it was trying to boot from that

#

instead of the ssd

#

so i just unplugged the hard drive

stuck harbor
#

bm gonna kernel panic everywhere

prisma wave
#

edited fstab

#

and now it works

#

😌

stuck harbor
#

man clojure is so minimal

#

mmmm

prisma wave
#

clojure good

stuck harbor
#

oui

quiet depot
#

might try linux from scratch next holidays

#

looks fun

stuck harbor
#

mhm it is

remote goblet
#

Clojure != good

stuck harbor
#

I just installed dwm, looks less bloated than i3 by my eye

stuck harbor
remote goblet
#

i will never agree with clojure being good

stuck harbor
#

I like ()

remote goblet
#

so do I

#

but i dont wanna do it constantly

#

I dont want an entire language built up on using () excessively and forming something that kinda looks like arrow code

stuck harbor
#

man hush

#

clojure has many nice things

lunar cypress
#

it's true, the purpose of Clojure is to use parens excessively

remote goblet
#

This looks fucking awful

#

All languages have nice things about them, but the way that clojure is formatted makes me wanna kermit die

stuck harbor
#

clojure syntax, ya either love it or hate it

#

and I love it :))

remote goblet
#

Why use an unknown language like clojure when you could just use professional languages that will actually get you somewhere

hot hull
#

I mean Clojure can also get you places

#

The grave, but that doesn't matter

stuck harbor
#

lol I'm not learning languages to get a job, I'll learn go if I want a job mmhm

remote goblet
#

It's not practical to learn it even as a hobby

lunar cypress
#

Sure, as someone who has never used Clojure or even read 2 paragraphs about it's easy to say that it's "unknown" and "doesn't get you anywhere"

#

a lot of big companies use Clojure, if that's what you're interested in

hot hull
#

I mean there's worse languages than Clojure

lunar cypress
#

Netflix has a lot in its backend

hot hull
#

Take java as an example

remote goblet
#

It's still dumb peepoShrug

lunar cypress
#

walmartlabs uses a lot of Clojure as well

remote goblet
#

no clue what that is

#

imo from what I see

#

Clojure is just another circlejerk dumb language that you all preach about

#

Despite it being nothing special or better than any other one

unkempt tangle
#

@prisma wave Senpai 😭 got a job for ya

lunar cypress
#

why are you saying this when you don't know a thing about the language?

remote goblet
#

Call it ignorance but I don't see why it would be used over any professional and well known languages

unkempt tangle
#

make me a top-down view for with gui's

remote goblet
#

From an outside perspective, it doesn't look special

lunar cypress
#

"professional", "well known"? who is the judge of that? it's not an unpopular language

unkempt tangle
#

Johnny this must be your first day on the internet.

lunar cypress
#

everything you don't know is unprofessional?

remote goblet
#

Johnny dont be getting angry about this, You seem to be getting too defensive

lunar cypress
#

I'm not angry, I'm literally just asking you to clarify what you're saying

remote goblet
#

I personally would never use it and as I said

imo from what I see
Clojure is just another circlejerk dumb language that you all preach about

#

imo from what I see

lunar cypress
#

you see, when you can't qualify any statement you make it has absolutely no value

remote goblet
#

I didn't say it had any value to it

#

Nor do i need to qualify it, I don't see where it would be useful over other languages that I would class as well known

#

You're getting way too damn defensive about it so go bitch at someone else

lunar cypress
#

??

#

you're projecting lmao

#

just because someone asks you what you're doing when you take a dump in the street that doesn't mean they are bitching

remote goblet
#

Not projecting, Just originally provided my opinion on clojure as a language from an outside perspective

lunar cypress
#

idk why you're surprised that someone comments on it

#

but idk I'm not a dogmatic person so I might not understand that approach to discussion

quiet depot
#

lol

#

u guys are as bad as eachother

remote goblet
#

at the end of the day

#

clojure syntax bad

quiet depot
#

ori has shitty arguments and johnny uses fancy words to talk shit without talking shit

old wyvern
#

lol

lunar cypress
#

???

remote goblet
#

you seep iggy

stuck harbor
remote goblet
#

piggy*

#

now johnny is gonna get defensive over that Sadge

lunar cypress
#

what fancy words am I using

remote goblet
#

dogmatic is a good start

quiet depot
#

yeah dogmatic was the word

distant sun
#

sacré bleu

stuck harbor
#

oui

quiet depot
#

anyway I believe lisps aren't generally liked ori, due to their syntax

#

i'm still researching that though so give me a sec

#

clojure is a lisp btw incase you weren't aware

remote goblet
#

I feel like using clojure would break my () []

stuck harbor
#

does the creator of clojure have a lisp?

quiet depot
#

yes

remote goblet
#

more than any other language does pepeLaugh

old wyvern
lunar cypress
#

"dogmatic" is a fancy word? I wouldn't know and I'm sorry if I overwhelmed anyone with my high school english

distant sun
#

stay hidrated ori

stuck harbor
quiet depot
#

woah woah

lunar cypress
#

I'm serious though

quiet depot
#

let's not go calling people elitist

lunar cypress
#

just a little cynical

remote goblet
#

now johnny is gonna get defensive over that Sadge

stuck harbor
#

I call someone elitist while i use arch and think i3 is bloatware :)

prisma wave
remote goblet
#

Yeah but that's apple

lunar cypress
prisma wave
#

And?

#

It's not unknown

remote goblet
#

fair

remote goblet
lunar cypress
#

you aren't making any sense

#

you just throw random things at me

remote goblet
#

in other news

#

favourite eggs?

prisma wave
#

dunno what that means

remote goblet
#

Mine is Anonymous Porn

prisma wave
#

ima just ignore it

quiet depot
#

ori r u american

remote goblet
#

no

quiet depot
#

what r u

remote goblet
#

briish

quiet depot
#

what colour r ur eggs

remote goblet
#

red

quiet depot
#

no

#

pls

prisma wave
#

brown

#

usually

remote goblet
#

blue

quiet depot
#

ok good

prisma wave
#

🤔

remote goblet
#

or white

quiet depot
#

cuz americans got those white eggs

remote goblet
#

yeah they do

quiet depot
#

weird

remote goblet
#

so do british people

#

we have a combination

quiet depot
#

that's silly

remote goblet
#

yeah, When you get an egg carton, they can be either brown or white peepoShrug kinda a gamble

prisma wave
#

i have never seen a shop sell the white ones

#

ur buying bootleg eggs

remote goblet
#

maybe im blind who knows

quiet depot
#

were your eyes closed?

#

sometimes that's the issue

remote goblet
#

Yeah im blind

#

but that's chicken eggs i think

prisma wave
#

manjaro i3 is my new favourite distro

#

beautiful

#

amazing

remote goblet
#

i still gotta learn how to do linux

stuck harbor
#

i3? bloat bm

#

use dwm

#

kidding

quiet depot
#

ori start with linux from scratch

stuck harbor
#

yeah start with compiling the kernel urself

quiet depot
#

then move onto harder distros like ubuntu

remote goblet
prisma wave
#

dwm sounds bad

#

i3 sounds good

quiet depot
#

imagine needing a window manager

#

or a desktop environment

prisma wave
#

imagine not

#

linux from scratch does sound cool tbh

quiet depot
#

so can elon's brain chips let me talk to computers yet

prisma wave
#

probably

onyx loom
prisma wave
#

we could go back to clojure bad if you'd prefer

#

clojure good*

onyx loom
#

🥲

lunar cypress
#

I really hate the state of discussion here sometimes, real talk

prisma wave
#

in general?

#

or just now

lunar cypress
#

One third is just circlejerk, another third bad faith and a third is people opening their mouths without thinking

prisma wave
#

lmao

onyx loom
#

ayyyyy

#

thats what i like to hear fingerguns

prisma wave
#

im not sure you should be expecting intellectual discussion from minecraft java developers who learnt from 2012 eclipse tutorials

lunar cypress
#

I'm not

#

And I'm not looking for intellectual discussions every day

#

It just gets annoying sometimes

prisma wave
#

yea ik what you mean

#

wdym by "bad faith"?

onyx loom
lunar cypress
#

People arguing in bad faith, mainly happens when the line is blurred between irony and seriousness

prisma wave
#

i see

#

it's hard to distinguish sometimes yeah

#

I guess if you actually wanted a serious discussion it might be better to ask in #developer-chat

lunar cypress
#

Like idgaf about people say "<insert language I know and like> bad", I'd have to quit the internet if that were the case

prisma wave
#

since this chat seems to have degenerated into circlejerking and #development-2

lunar cypress
#

But sometimes people seem to want to make an actual point and when you engage they just want to frustrate you

#

Maybe I should word that differently

prisma wave
#

im not sure this is a regular occurrence is it?

lunar cypress
#

I don't think it's intentional in many cases, just miscommunication

unkempt tangle
#

Senpai I meant

#

A landscape get shown on top-down perspective through gui

#

like this

prisma wave
#

thats pretty vague

#

o ic

unkempt tangle
#

It's not

prisma wave
#

yea the image clarified

#

that doesnt sound that hard

#

in theory

#

just get the surrounding area and the highest y blocks

unkempt tangle
prisma wave
#

then convert those into the ItemStack for the gui

#

then render

unkempt tangle
#

u do it for me ;c

prisma wave
#

no

onyx loom
#

lol

unkempt tangle
#

Possible to let gifs auto play in your explorer?

onyx loom
#

wot

unkempt tangle
#

They are usually static

prisma wave
#

probably not without an external program

lunar cypress
lunar cypress
prisma wave
#

oh you don't have it?

lunar cypress
#

No

#

Been waiting for over a month now

prisma wave
#

huh

#

if i was the reviewer i'd just give you it lol

lunar cypress
#

Maybe I missed a rejection because I got Barry blocked?

prisma wave
#

i can't see how you'd get rejected

quiet depot
#

don't think I would've rejected you, unless your os projects are shit

#

regarding your twos' complaints about this channel, i'll look into some ways to fix it

onyx loom
#

no circlejerking allowed 🤨

quiet depot
#

circlejerking is an axiom of the internet

#

not sure we can remove that

onyx loom
#

lol

jovial warren
#

no circlejerking would ruin the fun lol

quiet depot
#

we've solved issues like this in the past

#

a year ago we had major issues with toxicity in the support channels

old wyvern
quiet depot
#

yeah johnny your request is still there

jovial warren
#

if I managed to get accepted, Johnny has to lol

onyx loom
#

if bardy managed, i have to /s

jovial warren
#

wdym

#

you're worse than I am xD

onyx loom
#

🙄

old wyvern
#

😮

jovial warren
#

I'm messing with you lol

onyx loom
#

u missed the /s

jovial warren
regal gale
#

I am literally reading that before you sent it lol

jovial warren
#

lol

#

it's what I'm implementing next in Krypton

regal gale
#

Need to get some knowledge for accessing nbt or data values with it

jovial warren
#

apparently, in the header, the location in the region file of a chunk at (x, z) must be found at byte offset 4 * ((x % 32) + (z % 32) * 32)

#

why is everything so magical

regal gale
#

Apparently that's not why I am reading that 👀

jovial warren
#

if you want to find out how NBT works, this page is not the one for you

regal gale
#

I am reading more on level.dat right now though

jovial warren
#

level.dat is easy lol

#

relative to the nightmare of Anvil anyway

regal gale
#

I'm just new to this lol

#

It might took a while

#

But the point of this is accessing with code

jovial warren
#

my purpose for this is to be able to read from and write to these files lol

regal gale
#

F

#

Good luck with that

jovial warren
#

🥲

acoustic oak
#

I'm trying to add a way to get info from a webpage with htmlunit but everytime i move things to plugin i get the error:
Caused by: java.lang.IllegalStateException: Failed to create VMBridge instance
Anyone know what can be?

regal gale
#

Just use Selemium, it's better

acoustic oak
#

I'll take a look

regal gale
#

Mainly because it still relies on old Rhino engine as core language... so some functionality might not even work on modern websites

#

Oh well...

jovial warren
#

they're called named binary tags for a reason

#

the Minecraft Development plugin in IntelliJ can read that as text

#

or NBTExplorer allows you to read it as a tree

regal gale
#

I need to know how I could uncompress it with code

acoustic oak
regal gale
#

I only suggest you the good automation though, not solving your problem 👀

#

What you mean by "plugin" anyway, as in minecraft plugin or any addon?

acoustic oak
#

in minecraft plugin

regal gale
#

Curious to know why are you running web automation inside a plugin though

acoustic oak
#

Because i need to grab the command generated from needcoolshoes banner generator

#

this seems only one way to get it , idk if there is a better way

regal gale
#

There is though

#

Also, you're the first person in years to figure out the idea on running the entire headless website hidden on a server thonking

prisma wave
onyx loom
#

a certain someone 🤨

prisma wave
#

surely nobody we know

onyx loom
prisma wave
#

must be someone else

#

no of course not

#

nothing to do with that

onyx loom
#

absolutely nothing

prisma wave
#

anyway im a bit late to the discussion but i don't really think circlejerking is the problem, the only issue with it is that the jokes get a bit stale after a while

onyx loom
#

tbf i dont think theres been any actual circlejerking in a long time

#

theres always gonna be the odd kotlin message here and there, but i wouldnt count that as circlejerking

jovial warren
#

the only issue I have with this channel is that you can ask a simple question and get a flood of irrelevant answers that just get so repetitive and boring it just gets ridiculous

onyx loom
jovial warren
#

oh hey, btw, @prisma wave, I'm really tempted to just cheat with worlds and have them in a separate folder so you don't have to scan for folders that are worlds in the root directory lol

onyx loom
#

id say thats nicer anyway bardy

#

id rather have that imo

jovial warren
#

kills 2 birds with 1 stone then

#

ez

surreal quarry
#

thats nicer for sure, but makes it harder to transfer to krypton

#

from spigot or something

jovial warren
#

no it doesn't

#

you just move your world folders into a separate folder

surreal quarry
#

yea but think about the average IQ of people running minecraft servers

jovial warren
#

I'll make a tool for it if it's really that hard lol

surreal quarry
#

do you really think they are gonna read your transfer docs and successfully copy their folders lol

#

that works i guess lol

jovial warren
#

I mean, it's not that hard

surreal quarry
#

yea i know in theory its simple

jovial warren
#

also, means I can just assume that every folder in the worlds folder is a world

#

actually maybe that's not the best idea

#

since that means that if someone shoves a non-world folder in there, it'll break

#

so I'll have to scan for worlds anyway lol

surreal quarry
#

true

jovial warren
#

still thinking of how to store this stuff in memory

#

I'm thinking I have a world object with all the stuff from level.dat in it (world settings and shit), and a list of regions

#

then each region can have a list of chunks

#

and each chunk has a list of chunk sections

unkempt tangle
#

Can anybody design me a template/layout to post my plugin to spigot?

#

I can offer some hugs

jovial warren
#

we're developers here, not designers lol

#

also, btw, if anyone wants to make any suggestions for Krypton, feel free to open a GitHub issue

surreal quarry
prisma wave
onyx loom
#

maybe

surreal quarry
#

r/kotlinmemes

jovial warren
#

also, is there a difference in performance between using a list and an array btw?

prisma wave
#

but yes all of my circlejerking is 100% self aware

#

that's a very vague question

jovial warren
#

wondering whether to store the arrays in there as lists, to make them easier to work with

surreal quarry
#

isn't it sort of annoying to use arrays in kotlin (specifically with data classes)

#

which i assume you will be using for storing data about worlds/chunks

jovial warren
#

yeah it kinda is

#

since you're meant to override equals and hashcode for data classes where you use arrays, which gets really messy

surreal quarry
#

ye

forest pecan
#

😳

surreal quarry
#

name was changed

forest pecan
#

Oh

onyx loom
#

thats client anyway

jovial warren
#

good job we changed the name lol

onyx loom
#

but still funny

surreal quarry
#

java bad

forest pecan
#

It's Krypton

jovial warren
#

and yeah, that's the client

hot hull
#

What's the new name?

surreal quarry
#

krypton

hot hull
#

Not bad

forest pecan
jovial warren
#

wdym?

#

when we get to that, sure you can

#

it's open-source for a reason

forest pecan
#

Should it have some string value?

#

Or should it be just a normal enum like how Spigot API is handled

jovial warren
#

I believe sounds are all static values, so probably an enum

forest pecan
#

Ok

#

Does that look fine?

#

It's all the sounds for 1.16.5

#

currently

#

Don't ask why I'm doing this lol, I am just bored

jovial warren
#

yeah that's not bad

#

do sounds not have IDs?

#

(number IDs)

forest pecan
#

I don't think so

#

Hm

jovial warren
#

also, replace the string with NamespacedKey

forest pecan
#

Ok

jovial warren
#

e.g. "ambient.basalt_deltas.additions" becomes NamespacedKey(value = "ambient.basalt_deltas.additions")

forest pecan
#

Yea

#

992 sounds lmao

jovial warren
#

it is a lot isn't it

forest pecan
#

Yea I think i can handle it tho

#

I think my IDE crashed

#

Man can intellij just be smart and render the enums on the screen

#

not the whole damn file

#

lmao

#

for big enums at least

jovial warren
#

lol

forest pecan
#

Ok

#

I made a pull request

#

You can take a look

hot hull
#

Can't wait for that PR saying "Added custom world generation"

forest pecan
#

"Added Mods"

#

lmao

onyx loom
#

"added all other features from mcm spigot forks in kotlin"

forest pecan
#

"added fabric"

#

"added lombok"

#

lmao

onyx loom
#

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

ocean quartz
forest pecan
#

lol

jovial warren
#

looks good to me

#

want BM to take a look as well though first I think

forest pecan
#

Ok