#dev-general

1 messages ยท Page 328 of 1

stuck harbor
#

I do :w and :q!

old wyvern
#

Everyone needs to switch

jovial warren
#

ew

#

wq > w then q

quiet depot
#

erm

#

ctrl + x

stuck harbor
#

:!gradle shadowJar build

jovial warren
#

so much easier to just write it in one command

jovial warren
frigid badge
prisma wave
#

wait shadowJar build

stuck harbor
#

what

quiet depot
#

i donโ€™t get what the point is of fully fledged cli editors like vim

jovial warren
#

it's a bit like whichever one you get used to first is the one you stick with

quiet depot
#

like why not just use a gui editor

jovial warren
jovial warren
old wyvern
stuck harbor
#

mhhm

jovial warren
#

which is the primary place I use vim

quiet depot
#

not really

old wyvern
#

The weed medicine thing?

stuck harbor
#

I use nano when in ssh

quiet depot
#

because ssh has a complementary protocol called sftp, which solves that issue entirely

stuck harbor
#

man

frigid badge
#

stock of a random weed company lol

jovial warren
#

also, anyone who uses Notepad over SFTP instead of vim is big ew

old wyvern
#

lmao

#

scp ftw

quiet depot
#

oof

stuck harbor
#

I used to use Notepad++ and C++

#

on windows

jovial warren
#

also, Pig, I'm literally a Linux CLI guru lol

quiet depot
#

you need to prestige your ego level, start from 0

jovial warren
#

I learnt from a guy who setup Postfix and Dovecot with nothing but man pages lol

frigid badge
#

docker better

prisma wave
#

docker run *

jovial warren
#

ew

#

Docker Compose >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> docker run

frigid badge
#

did you know our universe runs in a container

old wyvern
#

Still trying to get used to linux with a kde neon on virtual box ๐Ÿ’€

jovial warren
#

I swear Kubernetes is separate from Docker

quiet depot
#

fun fact lemmo our universe is just a mock for a few unit tests

frigid badge
#

exactly

jovial warren
quiet depot
#

weโ€™re literally just a part of a jenkins job

frigid badge
prisma wave
#

yaml ๐Ÿคข

old wyvern
#

Whats the coverage like?

quiet depot
#

50 +- 50%

old wyvern
#

xD

jovial warren
# prisma wave yaml ๐Ÿคข

well using YAML is vastly superior than having to memorise the run command and run it every time you restart docker or your system

stuck harbor
#

the guy who made docker said he wouldn't have needed to make docker is WASM existed

old wyvern
#

ELON > YAML

jovial warren
#

literally you write a YAML file, run docker-compose up -d and you're done

jovial warren
#

lol

old wyvern
#

๐Ÿฅฒ

stuck harbor
#

I prefer TOML

quiet depot
#

what is elon

old wyvern
#

Elara Object Notation

jovial warren
#

Elara JSON iirc

quiet depot
#

oh

prisma wave
#

EDN ๐Ÿ™‚

jovial warren
#

stop circlejerking things that don't even exist

quiet depot
#

whatโ€™s edn

prisma wave
#

clojure json

#

except it's just clojure

old wyvern
#

๐Ÿ˜‚

stuck harbor
#

mmm

old wyvern
#

EPM

jovial warren
#

EPM will be good

#

when I write it

#

when Yugi finishes the compiler lol

#

or whatever you wanna call it

old wyvern
obtuse gale
#

yea intellj ui is definetely cleaner

stuck harbor
#

mhm

jovial warren
#

epm install elara/stdlib

old wyvern
#

I seriously should start on the typer xD but procrastination ๐Ÿ™‚

stuck harbor
#

man when u have vim in one tab and htop in another

errant geyser
#

EPM written in Elara wen

old wyvern
#

๐Ÿ”œ

jovial warren
#

EPM will do the following things for installation:

  • Download the packages from a trusted source (in our case, pkg.elaralang.org)
  • Verify all the packages with GPG keys
  • Install the packages
stuck harbor
#

when htop is number two on htop

jovial warren
#

lol

stuck harbor
old wyvern
#

xD

#

oh btw

#

I found something we might wanna change

#

Ill let you know in dm later

stuck harbor
#

i just switched to discord light theme

#

what the fuck

#

i cant see

jovial warren
stuck harbor
#

help

#

eplh

prisma wave
jovial warren
#

AAAAAAAAAAAAAAAAAAAAAAAAAA light theme is literally impossible to do anything on

#

how do people live with this

stuck harbor
#

man yeah

jovial warren
#

it's literally dark theme but inverted, that's it

stuck harbor
#

lol

obtuse gale
#

any of you use light theme in ides?

jovial warren
#

no

stuck harbor
#

nah

jovial warren
stuck harbor
#

i first used gruvbox in notepad++

#

when i was going thru a c++ phase

old wyvern
obtuse gale
#

lmao

jovial warren
#

you mentioning C++ reminds me I still want to learn C and x86 assembly at some point lol

#

and probably Rust as well

stuck harbor
#

man

#

only need two of those

old wyvern
#

Learn haskell

jovial warren
#

and yeah, Haskell too

old wyvern
#

ayy!!!

#

lit

jovial warren
#

maybe F# as well, just to make BM stfu

old wyvern
#

xD

jovial warren
#

actually, I'm bored enough that I'm gonna go and do it now lol

#

Haskell time

old wyvern
#

Awesome! gl

#

Welcome to the haskell gang!

frigid badge
#

another one to drown in monads

old wyvern
#

๐Ÿ˜Œ

jovial warren
#

okay the first thing I find is that apparently, integers have arbitrary precision

#

well that's gonna be fun

old wyvern
#

Correction

#

the Integer type does, but not the Int type

jovial warren
old wyvern
#

Actually the home page has a little intro thing youcan check out

#

it walks you through some basic stuff

jovial warren
#

why can't every programming language have a learn page like Kotlin's

old wyvern
prisma wave
#

IO monad ๐Ÿ˜Œ

old wyvern
prisma wave
#

learnyouahaskell is good

jovial warren
#

let x = 4 in x * x
16 :: Num a => a
wtf

#

wait how does that work

prisma wave
#

?

jovial warren
#

what

prisma wave
#

how does what work

jovial warren
#

the top expression

#

the second one is the result

prisma wave
#

it's like ```kt
4.let { x -> x * x }

jovial warren
#

ah right

#

the word in kinda confused me lol

#

ah, just separates the expression from the body

prisma wave
#

yea

#

there's where too

jovial warren
#

oh you can construct new lists really easily wow

prisma wave
#

not sure if that only works in functions tho

jovial warren
#

'a' : []

prisma wave
#

yup list literals are nice

old wyvern
#

more precisely of lets you use variables from a let declaration in an expression following the in

old wyvern
#

['a']
works

jovial warren
#

also looks like Haskell can implicitly convert character arrays to strings

jovial warren
prisma wave
#

strings are character lists

old wyvern
#

yes

jovial warren
#

in other languages

prisma wave
#

im fairly sure String and [Char] are pretty much aliases of one another

old wyvern
#

yea

#

its just

type String = [Char]

in Prelude I think

jovial warren
#

map (+1) [1..5] okay that's pretty cool

prisma wave
#

currying ๐Ÿคค

jovial warren
#

you can take a list of the numbers 1 to 5 and map them adding 1 each time in that

prisma wave
#

yeah

jovial warren
#

that's actually nice

old wyvern
#

๐Ÿ˜Œ

prisma wave
#

(+1) curries the (+) function with the first argument of 1

jovial warren
#

let square x = x * x in square 10 okay that's pretty cool

#

you can write functions and then just write some code after it and it'll print you out a result

old wyvern
#

It wont actually print it out when its not in a repl

prisma wave
#

yeah

jovial warren
#

ah

old wyvern
#

You will need to deal with.... the IO Monad

#

๐Ÿ™‚

jovial warren
#

let square x = x * x in map square [1..10] okay that's even better

prisma wave
#

๐Ÿ™‚

jovial warren
#

map in Haskell seems to be designed really really well

prisma wave
#

how so?

old wyvern
#

Its the same as in Java or anything pretty much

prisma wave
#

you could also do ```hs
map square [1..10] where square x = x * x

old wyvern
#

Streams and stuff derive from this

prisma wave
#

yeah streams are based off FP

#

you probably knew that already tho

jovial warren
#

yeah I didn't really know that but makes sense

#

let (a,b) = (10,12) in a * 2 very nice

#

let (_,(a:_)) = (10,"abc") in a okay this syntax is starting to get a bit... yeah...

#

still really concise though, which is really nice

prisma wave
#

wtf is that lmao

jovial warren
#

gets the 'a' character

prisma wave
#

oh yeah

#

pattern matching

jovial warren
#

yep

#

๐Ÿ˜ฆ

#

I've finished the tutorial

#

it says documentation time

prisma wave
#

have a look at this

#

pretty useful

jovial warren
#

is it just me or does this look like one of those "this domain isn't available, but these are" kinda sites lol

old wyvern
#

You can split that into multiple patterns on the same function

#

They probably describe that further on in the docs

#

oh yes, learnyouahaskell is awesome

#

Also PluralSight PlusOne

jovial warren
#

also, looks like Haskell knows what mathematical precedence is

#

unlike some other languages cough Kotlin cough

prisma wave
#

haskell is maths

jovial warren
#

true

#

also, && and || being bitwise operations is gonna take some getting used to

old wyvern
#

its still & and | from Data.Bits I think

#

&& and || is from Prelude for booleans

jovial warren
#

ah right

#

so it's the same then

#

since aren't && and || just frontends for and and or with booleans anyway?

#

thinking about it

old wyvern
#

frontends?

jovial warren
#

same as

#

whatever

#

I mean they make you think they're something different but they're kinda not

#

also, I just realised something

#

BM made a method for calculating varint sizes in the SizeEncoder that's probably much more efficient than my solution in bytebufs lol

prisma wave
#

"made"

#

you mean stole from notchian

jovial warren
#

you stole that?

prisma wave
#

probably

jovial warren
#

because I swear I stole mine from Notchian lol

prisma wave
#

i dont remember exactly what you're talking about

old wyvern
#

and seems to take a list of booleans

prisma wave
#

i might've adjusted it

jovial warren
#
    private fun varIntSize(paramInt: Int): Int {
        return when {
            paramInt and VARINT_THRESHOLD_1 == 0 -> 1
            paramInt and VARINT_THRESHOLD_2 == 0 -> 2
            paramInt and VARINT_THRESHOLD_3 == 0 -> 3
            paramInt and VARINT_THRESHOLD_4 == 0 -> 4
            else -> 5
        }
    }
```that's yours
prisma wave
#

oh that might have been me

old wyvern
#

so i guess the diff is && uses exactly 2 arguments and can be used infix since its defined as an operator

prisma wave
#

yeah

jovial warren
#
fun Int.varIntSize(): Int {
    for (i in 1 until 5) {
        if ((this and (-1 shl i * 7)) != 0) continue
        return i
    }
    return 5
}
```mine
#

not sure which one is better tbh

hot hull
#

Bardy's slightly nicer

stuck harbor
#

man

jovial warren
#

right, I think I've got enough things now that I should probably add configuration lol

#

since having a big long string with system property definitions in it is kinda becoming impractical

hot hull
#

toml

forest pecan
#

omgomg

#

im tier 4 now

#

im the same as dkim

#

suck my ass

errant geyser
#

welcome to the club

forest pecan
#

yes

half harness
forest pecan
#

lol

half harness
dusky drum
#

anyone familliar with php and sql search algorithms?

stuck harbor
#

this discord doesn't have many php users afaik

dusky drum
#

oh :8

jovial warren
#

@frigid badge might be able to give you a few pointers if he's not busy ๐Ÿ™‚

stuck harbor
#
*few
frigid badge
#

just ask your question @dusky drum

jovial warren
#

just want some opinions on it

#

and I also wanna get you guys involved ๐Ÿ™‚

old wyvern
#

Yea sure

jovial warren
#

make sure to rip it apart btw lol

old wyvern
#

lol

lunar cypress
surreal quarry
#

budget ๐Ÿฅฒ

ocean quartz
#

Since when does github have boards? ;o

jovial warren
#

you didn't know this? lol

ocean quartz
#

Had no idea

surreal quarry
#

like forever

#

lol

stuck harbor
#

man

jovial warren
stuck harbor
#

they shit tho

#

use trello

jovial warren
#

Krypton has a board ๐Ÿ™‚

surreal quarry
#

they're great

jovial warren
#

they work amazing for what I need them for

stuck harbor
#

its Microsoft all over again

ocean quartz
#

Still prefer Gitkraken's glo, but that's cool

stuck harbor
#

EEE microsoft

#

ya know

#

something, extend, extinguish

old wyvern
#

ElaraBoards ๐Ÿ”œ

jovial warren
#

and they don't have like stupidly low limits with the higher ones hidden behind a paywall, unlike some other software cough Trello cough

jovial warren
surreal quarry
#

i like how easily it integrates with issues/prs

jovial warren
stuck harbor
jovial warren
#

also, Trello is by Atlassian

#

Atlassian can go rot in hell

#

their prices are a fucking joke

old wyvern
#

Trello is fine

jovial warren
#

Trello is nice, but I wouldn't use it over GitHub boards for this sort of stuff

ocean quartz
#

Tbh all these boards do the same, i go by visuals more than features, and trello sucks in that regard

jovial warren
#

yeah Trello's visuals absolutely suck

old wyvern
#

Looks fine to me ๐Ÿคทโ€โ™‚๏ธ

ocean quartz
#

I like this one

hot hull
#

Clickup best

old wyvern
#

Notepad best

hot hull
ocean quartz
#

What is the issue?

old wyvern
#

Sure

hot hull
#

I believe I fucked something when it comes to the modules, since it's doing all sorts of shenanigans

jovial warren
#

what does this support btw? or can it be adapted to support any platform?

hot hull
#

It'll be any platform

jovial warren
#

nice

hot hull
#

Emphasis on it'll

old wyvern
#

What is that supposed to mean?

jovial warren
#

I'll probably Kotlinise a few things and move them around if I'm putting this into Krypton

old wyvern
#

Oh, that its not ready yet?

hot hull
#

eventually, perhaps, if I have the brain power to make it

old wyvern
#

oh

jovial warren
hot hull
#

I believe that I can tie this rope cursed_fingerguns

old wyvern
#

Fuck you too Defender

#

Every damn time

jovial warren
#

oh btw, anyone here seen how fat the world package is in Krypton yet btw? lol

hot hull
old wyvern
#

๐Ÿ˜ฎ

hot hull
jovial warren
#

what's rule #1 of this project

hot hull
#

PR or SHUTUP?

jovial warren
#

what's its #1 limitation?

#

three words (including the)

#

The Notchian Client

hot hull
#

the queen died

#

Oh

jovial warren
#

if the Notchian Client can't support it, Krypton can't support it

stuck harbor
#

what

#

frusty wha

hot hull
#

Not saying it should do anything, just add it

#

Cause, stonks

jovial warren
jovial warren
stuck harbor
jovial warren
stuck harbor
#

stonks

old wyvern
#

@hot hull fixed, check pr

hot hull
#

Thanks

jovial warren
#

can someone tell me the benefits of using atomics over just regular primitive values?

#

like do they ensure thread safety or what?

old wyvern
#

They are volatile I believe

hot hull
#

So is this nuke in my basement

jovial warren
#

-_-

old wyvern
#

oh

jovial warren
#

he's referring to the fact that I said atomic lol

old wyvern
#

nvm

#

yea xD

hot hull
#

atomic and volatile

#

I'm a funny man I know

old wyvern
#

๐Ÿฅฒ

stuck harbor
#

atoms in clojure :)

jovial warren
old wyvern
#

rude

stuck harbor
#

frasty is very funny

jovial warren
#

also, anyone here actually know what Kotlin's atomics are for?

#

ah actually I see

#

kotlin.native.concurrent

#

that might explain it

forest pecan
#

is server.pro good if i cant host a home server and i need to test my plugin

old wyvern
#

Its the same as in Java bard

jovial warren
stuck harbor
#

use your vps tho

#

or yeah, just local

forest pecan
old wyvern
#

Its read straight from memory

#

no caching

jovial warren
stuck harbor
#

and? connect from multiple clients pulse

forest pecan
#

smh

#

i dont got 27 bucks

stuck harbor
#

use forge man

forest pecan
#

lol

old wyvern
#

So its same across threads, no chance of having threads cache diff values of that

jovial warren
forest pecan
#

there is forge mod

#

that can act as if you are different client?

stuck harbor
#

mmmmhm

forest pecan
#

link?

#

pls why did i never know about this

#

smh

stuck harbor
#

user account switcher, but it only works on offline mode servers tho

forest pecan
#

well yeah

#

i could go on a cra.. ahm

#

lol

stuck harbor
#

lol

jovial warren
#

also, you know you could just use a cracked client and use cracked accounts with the local server in offline mode right?

stuck harbor
#

yes that's basically what I'm suggesting

jovial warren
#

I'm not by any means saying that you should use cracked accounts on real Minecraft servers, buy your accounts

#

but for local testing it's okay

forest pecan
#

yea

prisma wave
#

THRWAD safety GOOD

stuck harbor
#

man bm

#

u good?

prisma wave
#

ALWAYS

surreal quarry
#

OKAY

lunar cypress
#

he's having a stroke

stuck harbor
#

rip

prisma wave
#

no I'm just overjoyed about clojure's robust atom implementation ๐Ÿ˜

stuck harbor
#

mm

unkempt tangle
#

Senpai

#

This is interesting to read

old wyvern
#

How to cut it by 100%? Quit

stuck harbor
#

lol

#

yes

#

gta bad

#

minecraft good

unkempt tangle
#
Theyโ€™re parsing JSON. A whoppingย 10 megabytesย worth of JSON with someย 63k item entries.```
stuck harbor
#

jesus wept

#

thats a lot of json

frail glade
#

Damn, that's crazy.

unkempt tangle
#

Possible to sue 'em for this atrocity?

hot hull
#

@ocean quartz I'm slightly disgusted

// Gets the value of the real coordinates from the chunk
val realX = x + chunkX * 16
val realZ = z + chunkZ * 16
ocean quartz
#

Why?

hot hull
#

bitwise faster

stuck harbor
#

i have heard tales of bitwise operations

#

stories of long past

ocean quartz
#

Eh wasn't going for speed

onyx loom
#

:bruh:

unkempt tangle
#

Will R* do afterwards something?

prisma wave
#

idk

#

Maybe

frail glade
#

That'd be crazy if they went 7 years without making a 50 line code change to make loading online faster.

unkempt tangle
#

Never

#

They will never admit a mistake

frail glade
#

Would be funny if in the next month they release a small "performance update" and fix it.

onyx loom
#

๐ŸŒš

unkempt tangle
#

Not alone

jovial warren
hot hull
#

So I've made a generator, but it's flat as y'all tiddies so I don't think it's working

onyx loom
#

excuse me

#

ill have u know my tits are big

hot hull
#

fLaT, just like the Earth

onyx loom
#

nice render distance

hot hull
#

It's at 24 chunks, wat u want

onyx loom
#

o

#

uh

#

unlimited

hot hull
#

Happy?

onyx loom
#

thank

hot hull
#

48

#

Time to commit sudoku trying to debug this

#

This why a renderer would be nice :C

onyx loom
#

can i join u in ur game of sudoku

hot hull
#

Shore

#

Imma save a file for each chunk containing the height nicelly mapped out

onyx loom
#

๐Ÿฅถ

hot hull
#

I'll do it async dw

#

:kek:

static zealot
#

that biome blend tho fingerguns

hot hull
#

That's default stuff

onyx loom
#

lol

hot hull
#

Haven't even joined the server yet

half harness
#

yml ๐Ÿ™‚

hot hull
#

welp

onyx loom
#

sexy

jovial warren
static zealot
#

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

jovial warren
#

-_-

#

honestly though, the amount of times I've seen ridx + len > widx is insane by now I swear

#

oh I fucking know why FFS

#

right, explanation time (even though no one probably really cares)

static zealot
#

or understands

jovial warren
#

every chunk has 16 sections (18 for lighting purposes, but that's another story)
the chunk data packet has a primary bit mask field, which has a 1 bit for every section present in the chunk, and I've got that hard-coded to 0b1111111111111111 (every section present), since for most normal worlds, this is always the case

#

but for a superflat world, not all the sections are present

forest pecan
#

can anyone just go onto my server and kill me cause i wanna test my plugin ๐Ÿ™‚

onyx loom
#

ip?

forest pecan
#

51.161.84.142:40586

#

its 1.12.2

#

tho

onyx loom
#

what the fuck

forest pecan
#

yeah

half harness
#

get via*

forest pecan
#

its a comission

#

sry

onyx loom
#

coming

half harness
#

hey at least u got kaliber's ip

onyx loom
#

do i care

forest pecan
#

wait what why is my mc broken

#

lol

half harness
#

nope

half harness
onyx loom
#

what

#

i mean even if u try ddos ur gonna have a hard time

#

and if u do manage i can always just call my isp lmao

half harness
#

why would i ddos

onyx loom
#

anyone

forest pecan
#

my computer randomlly died

half harness
#

also me dming pulse was a joke; no point in dming for that

half harness
#

I can't believe you took it so seriously :/

onyx loom
half harness
#

lol

#

ewww default mc font

#

i personally hate the blocky font lol

onyx loom
#

i reset my pc so it deleted my texture packs

#

cba to download any again

forest pecan
#

@onyx loom you actually helped me detect a bug

#

xD

onyx loom
#

pog

forest pecan
#

i was dividing by 0

onyx loom
#

๐Ÿคจ

forest pecan
#

cause

#

kdr

onyx loom
#

ah

old wyvern
#

clash?

hot hull
#

@old wyvern I pushed stuff, if you wanna work on stuff feel free to, rn the values are pog cause I've not fixed something, but you'll see it's state at least

onyx loom
#

pulse i think i might be doing the same in my plugin kek

forest pecan
#

with kdr?

#

and kills

#

deaths

onyx loom
#

im gonna have to check if my kda checks for 0 ๐Ÿ™ƒ

forest pecan
#

lmao

old wyvern
#

Do you have the GUI thing we talked about earlier implemented?

#

Or should I add that?

hot hull
#

I don't have that no

#

And yea it would help a lot with debugging

old wyvern
#

Alrighty, ill get on that from tmr

hot hull
#

make a renderer module for it

old wyvern
#

mhm ๐Ÿ‘

hot hull
onyx loom
#

thats better @forest pecan kek

forest pecan
#

Yeah lol

#

did you get the same person Economy

#

for the plugin

#

uhm

onyx loom
#

nah this is my own plugin ๐Ÿ˜‚

forest pecan
#

Oh

#

xD

onyx loom
#

been working on this for ages, just been chipping away at it bit by bit

forest pecan
#

Oh lol

old wyvern
jovial warren
#

hey anyone got a pregenned world I can steal for testing?

half harness
#

paste code here

#

plz

surreal quarry
#

its 127 lines

#

3head

old wyvern
#

Too big my guy

half harness
#

arghh

surreal quarry
#

just open your ide

#

its your project

half harness
#

then wait 2 hours

#

thats when ima be on main pc

#

rn im on a laptop

#

crappy one

jovial warren
#

or you could just... open the link

old wyvern
jovial warren
#

not rocket science

half harness
#

u dont know how long it takes

old wyvern
#

There you go

half harness
#

google itself once took 9 minutes to load

surreal quarry
old wyvern
#

Mind you, I had to switch my page zoom to 0.5x

half harness
#

o

#

i can't read a single thing ๐Ÿ˜ญ

old wyvern
#

to fit that whole thing

jovial warren
#

even though it might not even work

surreal quarry
#

yea it wouldn't run xD

ocean quartz
#

Dkim, gonna show you something, just a sec

surreal quarry
#

should i merge breaking changes

#

can't decide

onyx loom
#

๐Ÿฅฒ

jovial warren
#

@old wyvern make it store usernames, UUIDs, IPs, everything to a database lol

hot hull
#

Nein

old wyvern
#

Actually, probably shouldnt share that here

jovial warren
#

yes! PR that!

old wyvern
#

Some rando is gonna actually use it

#

But anyway

surreal quarry
half harness
#

what is the code

#

can someone give snippet

surreal quarry
#

new Main()

half harness
#

o

ocean quartz
#

@half harness There, this is your plugin

half harness
#

uh

surreal quarry
#

whats that matt

ocean quartz
#

Codacy

half harness
#

7% issues isn't bad

ocean quartz
#

These are your worse files

half harness
#

๐Ÿค”

ocean quartz
#

Dkim, wtf

half harness
#

oh no

ocean quartz
half harness
#

i dotn like 'wtf's

jovial warren
onyx loom
#

what the fuck

half harness
#

It should never ever ever be null

onyx loom
#

if it shouldnt ever be null then why are u throwing an NPE?

ocean quartz
jovial warren
half harness
#

oh

#

would it through an NPE if it's null anyways?

surreal quarry
#

throw new Throwable

half harness
#

ig thats useless lol

jovial warren
#

throw new IllegalArgumentException(); problem solved

#

or IllegalStateException actually might be better

surreal quarry
#

throw new ThisShouldNeverBeNullException();

jovial warren
#

since we've entered an illegal state

onyx loom
#

matt did u pay for codacy

ocean quartz
ocean quartz
prisma wave
#

jesus christ

#

5760

half harness
jovial warren
#

what does that mean

prisma wave
#

complexity of the code

ocean quartz
#

Means your method is big has too many complex statements

prisma wave
#

different linters have different terms and algorithms

#

but that's bad

jovial warren
#

so it's basically saying "this is a god method"

ocean quartz
#

Why is this an issue?
Since: PMD 3.9

The NPath complexity of a method is the number of acyclic execution paths through that method. While cyclomatic complexity counts the number of decision points in a method, NPath counts the number of full paths from the beginning to the end of the block of the method. That metric grows exponentially, as it multiplies the complexity of statements in the same block. For more details on the calculation, see the documentation of the NPath metric.

A threshold of 200 is generally considered the point where measures should be taken to reduce complexity and increase readability.

half harness
#

im not gonna read that

prisma wave
#

let me simplify

#

this method is way too messy

jovial warren
#

your code is shit

prisma wave
#

change it now

jovial warren
#

fix it

prisma wave
#

or else

jovial warren
#

lol

half harness
#

you know it's old if I'm not using final

ocean quartz
#

What is the point of this break?

half harness
#

i always use finals now ๐Ÿ˜Ž

#

๐Ÿคท

ocean quartz
#

Lovely answer

half harness
#

no point in looping

#

so i just used a break

ocean quartz
#

Then why the loop?

jovial warren
#

also, you know you're meant to be very very very very very very very very very very very very very very careful using PlayerMoveEvent right?

jovial warren
#

since it's called every time PacketInPlayerPosition comes in and isn't the same as the previous position, which is very often

ocean quartz
#

Btw you can optimize imports, you have a lot of unused imports

half harness
#

what

#

but

#

whens the last time i edited that file

jovial warren
#

no buts!

half harness
#

i always do ctrl + alt + o

#

ive memorized that keybind

half harness
jovial warren
#

yeah, because it's not like 99% of us here have memorised it too

ocean quartz
jovial warren
#

I didn't know that existed lol

half harness
#

o

ocean quartz
#

Noobs

half harness
#

wow

jovial warren
#

also, I discovered another really useful setting the other day btw Matt

#

remove empty line indentation on file save

ocean quartz
#

I have mine to auto format on save

jovial warren
ocean quartz
#

Also have mine auto add trailing commas

jovial warren
#

also, @prisma wave, you still gotta review that PR btw

#

okay turn on keep trailing spaces on caret line

#

it means the current line you're on doesn't get reset when you tab out

surreal quarry
#

we failed

prisma wave
#

no

#

no no

jovial warren
#

nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

#

also, BM, review the PR fingerguns

prisma wave
#

yes

#

i made 1 comment

#

forgot to submit

#

lol

jovial warren
#

lol

prisma wave
#

๐Ÿ™‚

jovial warren
#
helpChatArchives += brister_mitten_look_in_twenty_minutes
half harness
surreal quarry
#

.plusAssign

jovial warren
surreal quarry
#

.plusAssign

jovial warren
#

also, that's what += is

surreal quarry
#

yes ik

#

lmao

jovial warren
#

lol

#

also, BM, please submit the review as an actual review

onyx loom
#

when all of ur issues are from readme and no comments ๐Ÿ™‚

ocean quartz
#

You can ignore some files

onyx loom
#

o

surreal quarry
#

where is the dark mode setitng

#

or is that darkreader or something

ocean quartz
#

Right here

onyx loom
#

dark reader yea

#

good one matt fingerguns

jovial warren
#

lol

onyx loom
#

not at all

#

made it in like 5 minutes, dont really care, looks alright

jovial warren
#

lol

forest pecan
#

does anyone know the inventoryevent if a player presses e to exit

#

cause i listened to inventorycloseevent

#

oh wait

#

nvm

#

im stupid lol

jovial warren
#

we know xD

forest pecan
#

ll

#

lol

half harness
forest pecan
#

l

half harness
#

lIl

jovial warren
#

also, guess what just got merged btw guys

onyx loom
#

one of these

jovial warren
#

yeah but guess which really nice really important one just got merged just now

#

build #10

#

download and run with java -Dkrypton.world.dir=/C:/Users/someuser/path/to/world/dir -jar Krypton-0.7.jar (gotta be in URI format, with forward slashes and starting with a slash, and also must be absolute)

#

I did listen to your suggestions btw Yugi

#

right, what next?

#

actually ik what's next

old wyvern
prisma wave
#

vim / neovim users

#

what completion engine / LSP client do u use

#

there are so many

jovial warren
#

just added legacy server list ping support to Krypton lol

#

basically means that older clients (namely 3 different protocols: beta 1.8-1.3, 1.4-1.5 and 1.6) can ping the server in their own special ways and receive proper responses

obtuse gale
#

why

jovial warren
#

it's part of the protocol

obtuse gale
#

no I mean

#

why would you add that shit

jovial warren
#

because you're meant to

obtuse gale
#

oh sure let me care for a version as old as the game itself

jovial warren
#

to quote the wiki, "While not technically part of the current protocol, legacy clients may send this packet to initiate Server List Ping, and modern servers should handle it correctly."

#

it's basically just to tell the client "you're way way way way way too old for me, you can fuck right off"

#

since apparently, old versions literally just won't let you connect if the version they receive from SLP is way newer than their version

#

1.3 apparently does though, and it seems to make Krypton scream, so will have to fix that lol

#

probably should do some checking for the received client version

charred torrent
#

the site I'm on

ocean quartz
#

Huh?

charred torrent
#

just saying how stupid it is to blacklist the site you're using

astral quiver
#

jcenter goes babybaby

#

do't fucking belive it

#

anyone knows any alternative besides maven central?

#

their coordinates and ticket stuff sucks

obtuse gale
#

Jitpack ๐ŸŒš

astral quiver
#

jitpack is a auto service, you don't have full control

frail glade
#

I don't think there's many other options other than Jitpack / Maven Central.

#

Well, Jetbrains Space, if there was any time to release it more publicly, now would be the time.

astral quiver
#

Yes

#

I agree

#

but the last time that I talk with someone from jetbrains space team

#

There are alot of things to be developed and a "open platform" is not one of this things

#

Also Jetbrains Space is more focus on software company not software it self

#

different from Github

#

speaking in github, I will read a little bit of their package system

ocean quartz
#

Github packages is so complex to setup though

regal gale
#

What about Sonatype

wind bolt
#

Anyone interested in joining the simplexdev team

ocean quartz
obtuse gale
ocean quartz
quiet depot
#

github packages is not in any way shape or form an alternative to the services that were shutdown, for the sole reason that it requires authentication

hot hull
#

:what:

quiet depot
# hot hull :what:

you have to authenticate to the repo via your build tool to download github packages

#

and that's bad

#

because you don't have to do that with jcenter or anything else

hot hull
#

What would be the best file format to use for world generation settings, I pressume json?

jovial warren
#

Maven Central superior

jovial warren
#

so it's compatible

#

pls ๐Ÿ™‚

hot hull
#

:huh:

jovial warren
#

lemme get you a ref

hot hull
#

Please do

jovial warren
#

actually no

#

actually yes

#

scroll down

#

you see "WorldGenSettings"?

#

I need minecraft:noise and minecraft:flat mainly

#

and maybe minecraft:debug might be nice too

hot hull
#

Should be fairly straightforward

jovial warren
#

minecraft:debug is proper ez

#

minecraft:flat is like meh maybe

#

minecraft:noise is a fucking pain in the ass lol

hot hull
#

I mean I kinda already have flat made

#

:kek.

jovial warren
#

nice

#

make sure it can accept those settings

hot hull
#

Since my noise is fucked and everything is as flat as @onyx loom's tits

jovial warren
#

omfg HAHAHAHA lol

hot hull
#

debug is just all materials, or is it structures as well?

jovial warren
#

it's all blocks that can possibly exist in the world

errant geyser
#

Frosty, you'd know what Kali's tits look like?
Something u wanna tell us there gamer

hot hull
#

flat as fuck

onyx loom
#

๐Ÿ™‚

jovial warren
#

every single one in the 171,000 lines that dictate the blocks and their states

hot hull
#

Yes yes, it gonna be smooth sailing once we get to that point

jovial warren
#

I can send you the 3 MB file if you want, probably easier than you extracting it yourself (even though it's just a single command lol)

hot hull
#

send me the command

jovial warren
#

gonna post it here as well, in case anyone else wants it

hot hull
onyx loom
#

F# for me

hot hull
onyx loom
#

just got that from the link

#

ay lets go frosty

#

we can be f# buddies for the week!

hot hull
#

What should be the challenge I have to complete in each language

onyx loom
#

im just gonna make extremely small programs, more for the syntax learning

hot hull
#

Time to figure out how to even make a project for it

onyx loom
#

does ij have any plugin for f#?

hot hull
#

Probably?

#

VSC it is

onyx loom
#

@prisma wave what ide u use for f#

#

looks like it ๐Ÿ˜•

hot hull
#

JB Rider I presume

onyx loom
#

i cba to dl that

hot hull
#

Same

prisma wave
#

OMG

#

yes

#

ily guys

#

yeah i use rider

#

it's really nice

onyx loom
#

๐Ÿ˜•

prisma wave
#

but VSC works too

#

it just doesnt have the "jetbrains flare"

hot hull
#

yeye

onyx loom
#

using VS considering ive already installed it

prisma wave
#

๐Ÿ˜ฆ

#

fair enough

hot hull
#

VSC cause fuck VS

onyx loom
#

had to install it for VISUAL BASIC

prisma wave
#

horrible

#

u will need .NET core installed i think

#

you might have that already if u have VS

hot hull
#

Yup already did that

prisma wave
#

nice nice

onyx loom
#

i CANNOT believe VS has wrote hello world for me! ๐Ÿ˜ 

prisma wave
#

smh

#

f# has a "script mode" too so you dont technically need a main function

#

kinda like python or something

onyx loom
#

o

hot hull
#

Yea that's what I'm using

prisma wave
#

idk what projects are good to learn

#

i just did COC stuff

#

and googled a lot

#

maybe try an advent of code problem if u can still access those

hot hull
#

You can yea

static zealot
#

btw I finally got a new chair

prisma wave
#

nice

static zealot
#

no one cares

onyx loom
#

ok

prisma wave
#

lol

static zealot
#

but its here

prisma wave
#

ok

#

๐Ÿ™‚

hot hull
prisma wave
#

might need to be in quotes

#

idk

jovial warren
#

my language that I'm learning this week is Haskell lol

prisma wave
#

beautiful

frigid badge
#

"F#"

prisma wave
#

yeah

frigid badge
#

-lang "F#" ez

stuck harbor
#
PaperLib.suggestPaper(this, Level.WARNING);
``` if u aint using paper, u gettin' an obnoxious ass alert in ur console m8
prisma wave
#

Level.ERROR

hot hull
#

Level.ERROR and wipe the plugin

#

Why this not work

stuck harbor
#

lol

#

i realised i was using spigot instead of paper

prisma wave
#

noooooo

stuck harbor
#

and now its telling me not to use Bukkit.broadcastMessage()

#

and it wants me to use adventure components and shit

#

sadge

prisma wave
#

bukkit linter

stuck harbor
#

and apparently getDisplayName() is deprecated?

#

eeee

prisma wave
#

SEVERE
do not call main class "Main"

hot hull
#

What do I need to add here

prisma wave
#

what is that

#

oh vsc?

stuck harbor
#

mmm vsc

prisma wave
#

u got the Ionide plugin?

hot hull
#

Yes

stuck harbor
#

i just switched to

PaperLib.suggestPaper(this, Level.SEVERE);
#

happiness

prisma wave
#

lol

#

uh

#

idk how vsc launch works but the command is just dotnet run i think

hot hull
prisma wave
#

beautiful

#

now make an enterprise app

hot hull
#

Easier said than done

prisma wave
#

youll be fine

hot hull
#

I need ideas tho

#

For something which I need to accomplish in every language

prisma wave
#

when learning a new language the best idea is usually to recreate something you've already made

#

although that's kinda difficult if all you've made is plugins lol

hot hull
#

Any suggestions? So it'd use as much of the language as possible

prisma wave
#

what timeframe?

#

like a week?

hot hull
#

A week yea, I also have other shit going on in the meantime so not exactly something advanced af

prisma wave
#

alr

#

u could start with COC / AOC problems just to learn the basics of the language, library functions etc

#

then maybe try making a basic web api or discord bot

old wyvern
#

Make a webscraper than starts at a link and visits every link accessible through it until no new links can be found

prisma wave
#

hmm that could be cool

hot hull
#

that'd go brrrrr

#

Sounds interesting

old wyvern
hot hull
#

Would it note down the accessed links?

old wyvern
#

Yes

#

If you want it to be a bti more complicated, present the result as a web diagram

prisma wave
#

u could always make wiki.frosty.dev or whatever fingerguns

old wyvern
#

๐Ÿ˜ฎ

prisma wave
#

or a basic language interpreter

old wyvern
#

fpprank2.0

onyx loom
#

A week yea, I also have other shit going on in the meantime so not exactly something advanced af

or a basic language interpreter
i see nothing wrong here

stuck harbor
#

man

#

gpt

hot hull
#

Might switch to VS rn cause I'm getting annoyed

stuck harbor
#

switch to... vim?

prisma wave
#

just like 1 + 2 + 3 or something

onyx loom
prisma wave
stuck harbor
#

man jetbrains

#

stop making IDEs!!!

#

just halt

hot hull
onyx loom
#

lol

hot hull
#

I have this so far btw

#

FileMode no work tho

onyx loom
#

pog

prisma wave
hot hull
#

Nein

prisma wave
#

y not

#

it's OBJECTIVELY better

hot hull
#

If I download another JB ide I'll get it

prisma wave
#

is 2 not enough

hot hull
#

Nein

onyx loom
#

lol i uninstalled toolbox cus it wasnt letting me download ultimate from there

jovial warren
#

does JetBrains have an IDE for Haskell yet btw?

onyx loom
#

no

prisma wave
#

nah

onyx loom
#

i think

#

soonโ„ข๏ธ tho

prisma wave
#

idk

#

you can do a pretty good job just with plugins

quiet depot
#

has jetbrains even released the ij roadmap

prisma wave
#

not much need for a standalone IDE unless it's a lot different

onyx loom
quiet depot
#

jetbrains skript ide when

onyx loom
#

yes please

prisma wave
hot hull
#

Death.

onyx loom
prisma wave
#

no

#

what i mean is

onyx loom
#

intellij

prisma wave
#

with something like .NET it's a completely different ecosystem, so a separate IDE makes sense

onyx loom
#

๐Ÿ™„

hot hull
onyx loom
#

lmao

#

no stackoverflow links tho? ๐Ÿคจ

hot hull
#

Not yet

prisma wave
#

whereas haskell and rust and things can be done with just a plugin and a few tools

#

lmao nice

quiet depot
#

i donโ€™t get it

old wyvern
quiet depot
#

what is the pic showing

old wyvern
#

But they all equally suck

quiet depot
#

oh youโ€™re trying to learn a new lang?

hot hull
#

Yes Piggy

quiet depot
#

c#?

hot hull
#

F#

prisma wave
#

C# ew

quiet depot
#

for what

old wyvern
#

The only actual feature you'd get ou using ij for haskell is maybe seeing the type on hover

prisma wave
#

awful conventions