#dev-general

1 messages ยท Page 327 of 1

forest pecan
#

jesus

#

on discord

#

at least

#

yeah im sry but imma go block you rn

#

lol

old wyvern
#

๐Ÿ˜ฎ

jovial warren
#

you can get the IP address of someone from within Java

#

iirc

stuck harbor
#

meh

forest pecan
#

not from discord

stuck harbor
#

who cares

old wyvern
#

Dont tell everyone im using ElaraOS ๐Ÿ˜ฌ

stuck harbor
#

my ip address is everywhere

jovial warren
#

I'll happily tell everyone my IP

prisma wave
#

Literally impenetrable

stuck harbor
#

flawless

jovial warren
#

81.92.200.157

old wyvern
jovial warren
#

and that's because I'm using Windscribe

stuck harbor
#

man

onyx loom
#

ddosing ur vpn

#

brb

jovial warren
#

so gl DDoSing my VPN lol

old wyvern
#

Windows and linux both died after the release of ElaraOS

prisma wave
#

ElaraOS instant 100% market share

obtuse gale
#

Guys guys join my server please it's at 127.0.0.1:25565

old wyvern
#

๐Ÿ’ฏ

prisma wave
#

programs written in good languages see a 50x speed improvement

#

programs written in bad ones crash your pc

jovial warren
#

Prolog

onyx loom
#

its true

prisma wave
#

Prolog good

old wyvern
#

ElaraOS auto converts all .kt files to .hs

#

and .elr

onyx loom
#

hahahahaha johnny

stuck harbor
#

mmmm hs

jovial warren
stuck harbor
#

heskall

jovial warren
#

it's not applicable in quite a few situations, but it has its uses

prisma wave
#

Purely declarative programming ๐Ÿ™‚

jovial warren
#

e.g. I wouldn't want to try and work with networking in a logical language

onyx loom
jovial warren
#

stfu

#

xD

stuck harbor
#

man

#

๐Ÿ˜ฆ

jovial warren
old wyvern
#

Does clash of code allow prolog?

lunar cypress
#

no

prisma wave
hot hull
#

Anyone clash?

forest pecan
#

i need help with earth science lmao

#

do volcanoes sink cause they are denser

hot hull
#

Elaborate sink

forest pecan
#

underwater

old wyvern
hot hull
#

No?

forest pecan
#

I said erosion

#

would that be correct

onyx loom
prisma wave
#

๐Ÿคค

forest pecan
#

im bad at earth science dont judge

#

lmao

hot hull
#

Don't think sink is the right term

old wyvern
#

EnterpriseHaskell

forest pecan
#

well its not sinking

old wyvern
#

HaskellEE

onyx loom
#

๐Ÿ˜‚

forest pecan
#

the question asked about why it was dissapearing below the ocean

#

and i think it was due to erosion

prisma wave
onyx loom
#

wat

prisma wave
#

Please give me a link

hot hull
#

if it's on the verge of two tectonic plates, then it's sinking

prisma wave
#

Are u there?

hot hull
#

Otherwise erosion yea

prisma wave
#

Please dude

#

I need this

old wyvern
prisma wave
#

Thx

stuck harbor
#

man bm

prisma wave
#

man

old wyvern
#

๐Ÿ˜Œ

stuck harbor
#

u gotta make an elara website

hot hull
#

But I mean I never learned this at school

prisma wave
#

yes

stuck harbor
#

make it like rust or go

#

good websites

#

not like sucky java's website

prisma wave
#

Elara playground ๐Ÿ˜Š

stuck harbor
#

or abcl's website

onyx loom
#

whos Clashee

old wyvern
#

@hot hull

prisma wave
#

I can't join rn

onyx loom
#

is that the bot or smth

old wyvern
prisma wave
old wyvern
#

xD

hot hull
#

Pings me after I've already joined smh

old wyvern
#

ffs shortest

prisma wave
#

wait i can join

onyx loom
#

oh god how do i not know how to do this

prisma wave
#

god the stock browser on manjaro is abysmal

#

Literally unusable

onyx loom
#

this is so easy aswell

hot hull
#

So hwo do I make this short lmao

jovial warren
#

oh this is gonna be another one of those bull shit questions where I think if statements are the only way and then I see some bull shit that uses one condition

hot hull
#

It's really easy, just hard to make it short

jovial warren
#

yeah

hot hull
#

Time for kotlin

forest pecan
#

wait frosty

onyx loom
#

i actually suck at maths oh my god

forest pecan
#

do hotspots and tectonic plates move

#

i read from a textbook

#

that the hotspots follow the motion of the tectonic plates

prisma wave
#

dev general

forest pecan
#

but im not sure

#

๐ŸŒš

hot hull
#

Pulse, after the clash

forest pecan
#

k

hot hull
#

How do you do for loops in kotlin again

prisma wave
#

for (i in 1..10)

jovial warren
#

omfg no fucking way

stuck harbor
#

}
``` @hot hull
prisma wave
#

tf

onyx loom
#

๐ŸŒš

jovial warren
#

78 characters

#

haha

#

yes

#

fucking knew it

#

74 chars now

regal gale
#

Does (1..10).forEach work?

prisma wave
#

for i in 1..10 do
printfn "%d" i

onyx loom
#

yes

prisma wave
onyx loom
#

IntRanges are Iterable

regal gale
#

๐Ÿ‘

onyx loom
#

im still stuck on how to work this out tf ๐Ÿ˜ญ

#

someone halp

prisma wave
#

(1..10).first().let(::println)

#

modern

jovial warren
#

72 chars lol

regal gale
#

I didn't see the math lol

#

Can't join anyway

prisma wave
#

ill join next

#

pc being unusable

jovial warren
#

@onyx loom read the question

onyx loom
#

i know what i have to do

#

but im just braindead

jovial warren
#

you can use an if statement, probably the easiest way

prisma wave
#

๐Ÿฅฒ

jovial warren
#

but gonna be a bit phat

#

you're gonna kick yourself when you see mine lol

#

think about it

#

t is the time you have

#

c is the tank's capacity

#

r is litres/second

onyx loom
#

thanks for repeating the question

#

really appreciate it ๐Ÿ‘

jovial warren
#

so you have seconds, litres and litres/second

prisma wave
#

๐Ÿคฃ

jovial warren
#

also, look at mine lol

hot hull
#

100 more sadge

jovial warren
#

that's how easy it was

#

t>=c/r

#

if the total time allowed is greater than or equal to the total fill divided by how much you can fill per second, then we know we have enough time

prisma wave
#

another pls

#

je veux joiner

jovial warren
stuck harbor
#

man

prisma wave
#

oh wait i can

onyx loom
#

@old wyvern u good?

stuck harbor
#

the first thor movie was cringe

jovial warren
hot hull
forest pecan
#

I said that hotspots dont

#

cause volcanoes you know

prisma wave
#

how do i start

forest pecan
#

hotspot stays in place

#

new volcanoes form

jovial warren
#

Yugi wow

old wyvern
onyx loom
#

nice

static zealot
#

JOIN GUYS

jovial warren
#

using map

#

wow

hot hull
#

Well no clue what the definition of a hotspot is so

onyx loom
#

u were abit silent thats all

forest pecan
#

o

old wyvern
prisma wave
#

JOIN GUYS

old wyvern
#

use haskclash plz

prisma wave
#

i did

old wyvern
#

oh

#

Then awesome

#

xD

prisma wave
#

yes

#

so join pls

#

and can u start it

#

i dont wanna wait 3 mins

jovial warren
#

start

static zealot
#

who's Clashee?

old wyvern
#

yes just host another clash

prisma wave
#

haskell

old wyvern
#

There

jovial warren
old wyvern
#

now start

static zealot
#

oh

onyx loom
#

ur host bm

old wyvern
#

You should be the host now

prisma wave
#

oh nice

#

yeah

#

clever

hot hull
#

ffs

static zealot
#

python mode

#

f

#

ah math as well

#

f

prisma wave
#

uhhhhhhhhhhh

forest pecan
#

Bruh

#

the last one

#

ffs

prisma wave
#

lol

hot hull
#

Wouldn't that just be N/2 ? to get the diagonals

#

Or am I dumb

jovial warren
#

I tried that lol

static zealot
#

its N*(N-3)/2 I think

forest pecan
#

i did it

#

lol

#

i had to use a fucking class

#

to do it

static zealot
#

oh

forest pecan
#

why do they like

#

man

static zealot
#

649???

forest pecan
#

this problem is bs

#

lmao

static zealot
#

jesus

forest pecan
#

oh shoot

#

i forgot to shorten

#

xD

static zealot
#

36

#

nice...

#

what the fuck is the math behind this?

#

because N*(N-3)/2 is clearly not it

hot hull
#

Yea was gonna say

forest pecan
#
n=int(input())
print(int(n*(n-3)/2))
#

????

#

that was Yugi's code

static zealot
#

yeah doesn't work for last one

old wyvern
#

It is lol

static zealot
#

....

forest pecan
#

you didnt have to use biginteger

#

lmao

#

languages smh

old wyvern
#

yea

jovial warren
#

haha I beat Yugi by using // for floor division instead of integer conversion

#

lol

forest pecan
#

LOL

hot hull
#

Seems to work

old wyvern
#

damn

hot hull
#

Last one is fucked tho

jovial warren
#

totally didn't google Python integer division

hot hull
#

Why?

#

Too large I pressume

old wyvern
#

overflow?

jovial warren
#

what you writing in?

hot hull
#

kotlin

old wyvern
#

Use Haskell's Integer type

prisma wave
#

python in shortest is borderline cheating

old wyvern
#

no overflow

prisma wave
#

you cant beat it

static zealot
#

58 ๐Ÿ˜ฆ this a lost cause

old wyvern
#

Yea python banned from now for shortest

prisma wave
#

yes pls

static zealot
#

56*

forest pecan
#

lol

jovial warren
#
fun main(){val n=readLine()!!.toLong();print(kotlin.math.floor(n*(n-3)/2))}
```?
static zealot
#

no need for scanner

#

just readLine()!!.toLong()

prisma wave
#

readLine()!!.toLong()

#

yea

jovial warren
#

ah right

static zealot
#

also no need for floor

#

as well

hot hull
#

Ah okay long worked

static zealot
#

and print instead of println

#

but its still 56

#

we can't beat it

jovial warren
#

you won't beat my code lol

prisma wave
#
fun main()=print(readLine()!!.toLong().let{n->n*(n-3)/2})
``` that's how i'd do it
onyx loom
#

WTF

#

it said i got 1 right

jovial warren
#

ew spaces

onyx loom
#

now i got 0%

prisma wave
#

lol

onyx loom
#

dogshit game

jovial warren
#

mine is so hacky

prisma wave
#

not really lol

jovial warren
#
n=int(input());print(n*(n-3)//2)
prisma wave
#

that's how you're supposed to do it

static zealot
#

not as good as mine

prisma wave
#

hmm true

old wyvern
#

I dont think inlining helps there

#

\n got replaced with ;

jovial warren
#

yeah

prisma wave
#

yeah

#

it only matters when u have indentation

old wyvern
#

mhm

jovial warren
#

\n is one character there anyway

#

same as ; is

#

this isn't Windows luckily

onyx loom
#

frosty wosty

#

where are u

hot hull
#

Y'all can be gone with python

old wyvern
#

@static zealot start it

static zealot
#

oh xD

jovial warren
#

if it was, it'd be \r\n, which would mean it's longer

prisma wave
#

no python

static zealot
#

didn't notice

prisma wave
#

in shortest

onyx loom
#

oh god

forest pecan
#

damn

static zealot
#

this is easy to understand

#

not as easy to do I guess

#

maybe if I put some thinking in it

hot hull
#

I think I got it

onyx loom
#

are we just scrambling the letters after the first?

static zealot
#

no

#

its taking first, last, first, last

onyx loom
#

ffs

#

how do people think of shit liek this

forest pecan
#

ikr

hot hull
#

It's not tho Blitz

static zealot
#

wait what?

#

it is

hot hull
#

Ah yea, I'm dumb soz

static zealot
#

PIZZAS take P out and put it in a new string and now first letter is I

#

but you take last which is S

#

put that then i the a

#

etc

jovial warren
#

yeah idfk how to do this

static zealot
#

xD

#

I have to take a shit

jovial warren
#

no fucking way I did this

#

no way

#

get in

static zealot
#

its not that hard I just have to figure one thing

jovial warren
#

wait until you see my whack

static zealot
#

fucking hell why doesn't kotlin have a `for(index; condition; increase/decrease) type loop?

jovial warren
#

it does

onyx loom
#

bruh i keep getting Found: Nothing when testing

static zealot
#

well then I clearly don't know how to use it

jovial warren
#
for (i in lower until higher step step)
static zealot
#

yeah but with that I can't change i inside the loop

#

because I have to decrease the value

jovial warren
#

why do you?

#

you don't have to traverse it backwards

static zealot
#

nvm I'll just use another variable

#

its pretty bad

#

my code

#

I have to shit so bad

old wyvern
#

ew looping

static zealot
#

ok here you can say whatever

jovial warren
#

look at my whack now Blitz

static zealot
#

but I have to shit so bad

old wyvern
#

recursion ๐Ÿ˜Œ

static zealot
#

byeeee

jovial warren
#

bye

#

my code is such a mess but it somehow works

onyx loom
#

mines not too bad tbh

jovial warren
#

it takes advantage of the fact that we can use even/odd index checking to determine whether to take from the head or the tail of the list

onyx loom
#

i tried using word.forEach and for (i in word.size) but both didnt work, had to use iterator lol

old wyvern
#
mix (x : xs) (y : ys) = x : y : mix xs ys
mix (x: xs) [] = x : mix xs []
mix [] (y: ys) = y : mix [] ys
mix [] [] = []

fingerguns

onyx loom
#

"sexy"

#

not

#

frosty :sad:

hot hull
#

This is dumb

onyx loom
#

5 seconds!

jovial warren
#

look at mine now Frosty

prisma wave
#

ima have to take the L on that one

jovial warren
#

that was how easy it was

hot hull
#

Good for you

prisma wave
#

another pls

onyx loom
#

@forest pecan ? xd

jovial warren
#

we just take the input, assign a new word to store the result, then loop over the characters in the list, and if the index - 1 is even, we get the last character and remove the last character, and if it's odd, we get the first character and remove the first character

#

took me like 3 rewrites, but somehow figured it out

hot hull
#

You don't have to explain it

jovial warren
#

almost forgot how to substring in Python

hot hull
#

Noone cares bardy smh

jovial warren
#

stfu

#

oh fucking hell

onyx loom
#

ok not doibng this

jovial warren
#

not reverse mode

hot hull
#

bruh

prisma wave
#

oh for gods sake

#

can we just not

jovial warren
#

actually this is easy

onyx loom
#

NEXT?

hot hull
#

It's actually easy lol

prisma wave
#

go next pls

#

i cba

onyx loom
#

i just saw some lines as the output and submitted

prisma wave
#

lmao

still glen
#

ching chong

onyx loom
#

whos Copes

#

oh hello

#

welcome to clash of code

jovial warren
#

that was so fucking easy

#

Kaliber look at my solution

#

you're gonna kick yourself I swear

onyx loom
#

no

jovial warren
#

that's how easy it was

onyx loom
#

ive never done any of these art ones

#

because i literally hate them

#

and dont care

jovial warren
#

just copy and paste line for line and put \n in to break up the new lines

forest pecan
#

im too lazy to do that

#

lol

#

i just ended up quitting xD

jovial warren
#

lol

onyx loom
#

lol frosty

#

#.replace("#", drink)

hot hull
#

Yes

jovial warren
#

works I guess

onyx loom
#

gtg now

#

bye

jovial warren
#

๐Ÿ‘‹

prisma wave
#

EZ

old wyvern
#

๐Ÿ˜ฎ

#

Didnt think of that

jovial warren
#

thought you hated imperativism

#

lol

old wyvern
#

wdym?

jovial warren
#

talking to BM

#

actually isn't if imperative

prisma wave
#

no

#

if expressions aren't exclusively imperative

#

they're arguably more declarative

old wyvern
#

mhm

jovial warren
#

๐Ÿค”

#

how's that declarative?

#

I swear declarative = what and imperative = how basically

old wyvern
#

Thats exactly what if does

prisma wave
#

^^

#

x = if condition then a else b is very declarative

#

imperative would be if statements modifying some variable

jovial warren
#

ah right

prisma wave
#

wait dont start 1 sec

#

oh nvm

#

lol

old wyvern
#

i didnt

#

it timed

#

xD

#

ayy round with the bot

#

xD

prisma wave
#

lmao

#

actually i cba to do this

jovial warren
#

okay that's a start

#

I just can't move quite yet for whatever reason

#

I'm frozen in place

#

but I'll fucking take that

quasi shard
jovial warren
#

use OpenJDK

#

AdoptOpenJDK provides prebuilt OpenJDK binaries from a fully open source set of build scripts and infrastructure. Supported platforms include Linux, macOS, Windows, ARM, Solaris, and AIX.

quasi shard
jovial warren
#

IntelliJ is easy once you get used to it

jovial warren
#

1 is literally the ID for plains

hot hull
#

L

jovial warren
#

like if I look at an example from the notchian client, it works fine with these sorts of integers

#

but when I do it, oh no, Bardy's at it again! not havin' that!

static zealot
#

I'm done shitting boys

#

can I join COC?

#

well I guess everyone its gone

#

went to shit for couple hours and everyone is gone

#

smhg

hot hull
#

Bruh

jovial warren
#

a couple of hours?

onyx loom
#

constipation

hot hull
#

Saw a perfect device for that

#

Also it's probably not constipation, more so that he just sits there on his phone

static zealot
stuck harbor
#

man

#

that's a long ass time to shit

hot hull
#

He's like when a woman takes a shower and then, has a concert, political debate, nail appointment etc within that shower

jovial warren
#

anyone wanna come and do some Krypton 0.7 alpha testing?

#

168.119.171.28:25565

#

get ready to see some whack

hot hull
#

I am comfy in my bed, no can do

jovial warren
#

-_-

#

lol

#

fair enough

#

okay lemme show you instead

stuck harbor
hot hull
#

Bruh don't remind me

#

Now I'm sad again

old wyvern
#

I can join

#

Give me a moment

hot hull
#

Do you know my address tho Yugi?

stuck harbor
old wyvern
#

Wait what

static zealot
stuck harbor
#

ddos time

static zealot
#

ye should be down

hot hull
#

Server go brrr

static zealot
#

in couple seconds

jovial warren
#

it's Hetzner, as someone said, "you can poke it and it'll go off"

static zealot
#

oh no way. me? never!

hot hull
#

:kek:

old wyvern
#

what is this lol

#

4 chunks

hot hull
#

SS

old wyvern
hot hull
#

Still beats my world gen

stuck harbor
#

man

old wyvern
stuck harbor
#

world gen can't be that hard famous last words

#

just use perlin noise

hot hull
#

Not yet, I gotta finish rebasing first

stuck harbor
#

frosty can I contribute in clojure?

old wyvern
#

I was thinking of working on a general world generation library with everything someone would want to use

hot hull
#

Nein, unless you make a renderer in clojure, I'm down for that

old wyvern
#

Not partucularly for mc, but hsould work the same

stuck harbor
#

lol

#

mmm

hot hull
#

Yea that's my plan lol

old wyvern
#

oh xD

jovial warren
#

lemme upload this to YT unlisted to show you this (too big for Discord lol)

stuck harbor
#

lol

old wyvern
#

Broken chunk

hot hull
#

Have a generic generator which gives you everything you need non game specific, and then have "interpreters" which modify it for the game you want

old wyvern
#

Wouldnt have been an issue if the it was Haston

jovial warren
#

oh yeah, Frosty, got some lovely JSON for you to parse lol

old wyvern
#

Inbuilt world generation

#

Elryton

stuck harbor
#

mmmmm json

old wyvern
#
import minecraft
minecraft startServer 25565
stuck harbor
#

man

static zealot
#

25566

ocean quartz
hot hull
#

A bottle of whiskey would be nice

stuck harbor
#

sadge

hot hull
#

But I've not drank alcohol for over 6 months so not about to start again

stuck harbor
#

alcohol is worse for u than weed

#

and which one is better?

#

so why drink alcohol

jovial warren
hot hull
#

Haven't smoked weed before so no clue

stuck harbor
#

sadge

#

man bardy

#

that language

jovial warren
#

lol

#

it's LOLCAT

#

I just use it for the memes

hot hull
#

Lmao Bardy

stuck harbor
#

minecraft server in clojure

#

with an ECS

#

๐Ÿ‘Œ

jovial warren
#

that's what happens with 5 bits per block

#

with 4 bits per block, you can't move, but it loads the mountain to it's full height (in that one chunk with a sorta mound)

#

with 6+, the client renders fuck all

#

it is proper whack

hot hull
#

Seems like you're doing something wrong

jovial warren
#

lol

hot hull
#

It all came down to some very complex math, let me know if you want me to guide you through it

jovial warren
#

I wanna hear this now

stuck harbor
#
package org.kryptonmc.krypton

fun main() {
    Server(port = 25565).start()
}
#

man

#

nice

jovial warren
#

yeah that code hasn't changed since BM wrote it several months ago

onyx loom
jovial warren
#

neither has the Server code really changed either

jovial warren
#

follow the rabbit trail

stuck harbor
#
while (true) {
            //Keep server alive
        }
#

man

jovial warren
#

yeah that was BM's doing

#

#blamebm

#

@prisma wave lol

#

I mean, I don't really know what to replace it with tbh iwanio

distant sun
#

while (!false)

jovial warren
stuck harbor
#
(while true) ; Keep server alive
#

do this

jovial warren
#

yeah that won't work in Kotlin lol

stuck harbor
#

man i dont know while loops in clojure

#

i just guessed

hot hull
# jovial warren I wanna hear this now

So you use the formula called I'm going to bed now, add 5 to 7, subtract 13 from it, multiply that by 69, take the absolute value of the given result, and your answer will be 69 which in laimens terms corresponds to You did something wrong, this is due to the fact that you're a mineman, and will most likely never experience this.

jovial warren
stuck harbor
#

imagine classes

#

just use functions

#

kleen

jovial warren
hot hull
#

Bardy, 12 - 13 = -1

jovial warren
#

actually we're multiplying

hot hull
#
  • 69
distant sun
#

-69

hot hull
#

4head

jovial warren
#

so it's gonna be very far from 69 lol

hot hull
#

Bruh math

jovial warren
#

ah actually

#

it is gonna be -69

#

then abs is 69

#

so you are right

#

jesus christ I'm not awake rn lol

onyx loom
#

๐ŸŒ

hot hull
#

;)

ocean quartz
#

Big brain Frosty

distant sun
#

frosty is not that stupid as he seem

hot hull
#

My phone is lagging

stuck harbor
#

man

distant sun
#

he's more than that ๐Ÿคฃ

jovial warren
stuck harbor
#

it does that for me on discord too frusty

jovial warren
stuck harbor
#

literally overheats my ยฃ200 arm processor

jovial warren
#

ยฃ200?

#

what you running? lol

stuck harbor
#

uh

#

a phone

#

cheap one

jovial warren
#

I swear ARM chips aren't that expensive

hot hull
#

Yea discord is laggy as shit for some reason

bold matrix
#

@hot hull

hot hull
#

Everything else seems to work perfectly

bold matrix
#

any thoughts on this

jovial warren
#

I got one

hot hull
onyx loom
bold matrix
#

sorry

#

i posted there instead

hot hull
#

Seems to only be dev general that's slightly laggy lol

jovial warren
#

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

hot hull
#

I go now, good luck on your endeavours

jovial warren
#

oh btw, is running netty on a single coroutine a good idea btw?

hot hull
#

Probably not

#

The more the better no?

jovial warren
#

I remember Matt saying how performance could be good if I used coroutines, teach me the ways @ocean quartz

#

I'm gonna have lots of fun trying to debug that

#
java.lang.ArrayIndexOutOfBoundsException: Index 16 out of bounds for length 16
    at cgk.a(SourceFile:70) ~[minecraft-1.16.5-client.jar:?]
    at cgo.a(SourceFile:157) ~[minecraft-1.16.5-client.jar:?]
    at cgi.a(SourceFile:146) ~[minecraft-1.16.5-client.jar:?]
    at cgh.a(SourceFile:586) ~[minecraft-1.16.5-client.jar:?]
    at dwr.a(SourceFile:107) ~[minecraft-1.16.5-client.jar:?]
    at dwu.a(SourceFile:772) ~[minecraft-1.16.5-client.jar:?]
    at pt.a(SourceFile:123) ~[minecraft-1.16.5-client.jar:?]
    at pt.a(SourceFile:23) ~[minecraft-1.16.5-client.jar:?]
    at ol.a(SourceFile:21) ~[minecraft-1.16.5-client.jar:?]
    at aob.c(SourceFile:144) [minecraft-1.16.5-client.jar:?]
    at aof.c(SourceFile:23) [minecraft-1.16.5-client.jar:?]
    at aob.y(SourceFile:118) [minecraft-1.16.5-client.jar:?]
    at aob.bl(SourceFile:103) [minecraft-1.16.5-client.jar:?]
    at djz.e(SourceFile:1015) [minecraft-1.16.5-client.jar:?]
    at djz.e(SourceFile:681) [minecraft-1.16.5-client.jar:?]
    at net.minecraft.client.main.Main.main(SourceFile:215) [minecraft-1.16.5-client.jar:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196) [NewLaunch.jar:?]
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
    at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
```okay that's a bit better
stuck harbor
#

sadge

jovial warren
#

cgk is linear palette

#

ffs

#

linear palette is the one used for BPB <= 8

#

okay ik what's happening

#

basically, the server's saying "right, use 4 bits per block for this one" and then sending a 16 lol

#

Palette size: 17, Bits per block: 4 yeah... that might explain it

#

fuck

#

countOneBits() + countTrailingZeroBits() has failed me!

ocean quartz
stuck harbor
#

if u want good async

#

use clojure:)

ocean quartz
#

Is it really necessary that half your sentences is suggesting clojure or rust?

stuck harbor
#

Yes.

jovial warren
#

no sftu iwanio

stuck harbor
#

:)

jovial warren
old wyvern
ocean quartz
#

The circkjerk is fun and all but it's pretty annoying when overdone

stuck harbor
#

mmm

old wyvern
#

Its supposed to distribute a "group" of players to a single thread

#

so nearby entities can interact with no concurrency issues

#

the groups merge and divide depending on player distances

#

or something like that

ocean quartz
old wyvern
#

xD

jovial warren
#

OMFG NO WAY

#

it works for like 20/25 chunks lol

static zealot
#

omg

#

no way

#

does it actually?

jovial warren
#

actually no

#

it loads all of them

static zealot
#

oh ๐Ÿ˜ฆ

jovial warren
#

even better

static zealot
#

oh ๐Ÿ™‚

jovial warren
#

they all work

#

and it's kinda all thanks to Fefo for helping me calculate the bits per block lol

static zealot
#

what are bits?

stuck harbor
#

0 neu 1

#

oops

static zealot
#

oh those bits

stuck harbor
#

wrong language

static zealot
#

xd

jovial warren
#

right, kinda gotta figure out an algorithm for calculating the size I need to spiral from the radius

old wyvern
#

size you need to spiral?

jovial warren
#

e.g. given a render distance of 10, meaning a diameter of 19, I need to load 19 x 19 I think

old wyvern
#

render distance of ten would mean a diameter of 21 right?

jovial warren
jovial warren
#

I swear render distance includes the centre chunk

#

or does it not

static zealot
#

I once stole a spyral algorithm that I should't had stolen

#

it said at the top of the github page

jovial warren
#

actually this is easy then I guess

static zealot
#

please don't use

jovial warren
#

pow(renderDistance * 2 + 1, 2) right?

obtuse gale
#

Yes

jovial warren
#

also currently only working with a single region

obtuse gale
#

I would assume the radius is more like an "offset" from the center chunk you're in

#

Why does the wiki say lol

jovial warren
#

gotta figure out how much I'm gonna load before the client settings packet comes in telling me how much I have to load

#

and then also gotta figure out how to detect when players cross borders and calculate which chunks I need to load and which to unload

#

and then calculate which region files I need to load

prisma wave
jovial warren
#

scroll up from that

prisma wave
#

ik

#

i saw

jovial warren
#

I said #blamebm lol

obtuse gale
#

Or maybe render distance is one of those MC things that are like 10 with center included towards the positive coords and 10 with the center excluded towards the negative coords lmao

jovial warren
#

also probably need to speed up this accessibility of the global palette, since atm I'm doing this:```kotlin
GlobalPalette.PALETTE.getValue(entry.name).states.single { it.properties == entry.properties }.id

#

which may not look bad at first, but consider that this is done for as many blocks as there are in the palette, 16 times for every palette in every chunk section, and that's done for 25 chunks

#

so, just say for example, every palette has 10 blocks, it's doing that 4000 times everyone someone joins

#

which is actually noticeably slow

#

isn't single O(n) worst case?

old wyvern
#

That would look offcentered I think

jovial warren
#

yeah probably

#

also, I am right about single being slow at scale btw aren't I?

old wyvern
#

What exactly are you trying to do with it?

#

What are you iterating over

#

what is your predicate

#

Possible improvements depend on that

jovial warren
#

I'm iterating over a list of block states retrieved from the block retrieved from getValue

old wyvern
#

What about the predicate? what does it test for?

jovial warren
#

it wants an element where it's properties match our entry's properties

#

also, won't == for lists also be O(n)?

old wyvern
#

Could you send a snippet of the use site?

jovial warren
#

there's gotta be at least 10 ways I could write that code better

old wyvern
#

What is the type/definition of properties?

jovial warren
#

Map<String, String> for a single state

#

also, btw, ignore the properties in RegistryBlock, that just contains a list of allowed properties

old wyvern
#

What about the varIntSize extension

#

@jovial warren

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
}
prisma wave
#

kinda

jovial warren
#

yeah it is actually

ocean quartz
jovial warren
#

since it checks for duplicates

#

though in my case I won't ever have any duplicates

#

so I could modify it to be worst case single

prisma wave
#

then just use first {}

jovial warren
#

ah

old wyvern
old wyvern
#

Anyway

#

Maybe you want to rethink how to categorize pallets

jovial warren
#

I could map them state to ID for quick access

#

also, won't calling sumBy also cost me a bit as well?

ocean quartz
#

Don't think the server is public so can't even dissect it

prisma wave
#

linear time algorithms are not necessarily costly

old wyvern
#

Nothing you can do about sumBy I guess, youd have to sum it up anyway

#

Where you could improve is the searching

prisma wave
#

yeah

jovial warren
jovial warren
#

I could map block states to ints directly

#

but then won't it still have to linearly search through the elements anyway?

old wyvern
#

What does the id represent?

jovial warren
#

block ID

#

protocol ID that is, not to be confused with some pre-flattening bull shit

old wyvern
#

Why not make it part of the block state then?

jovial warren
#

it is part of the state

old wyvern
#

No I mean the entry

jovial warren
#

wdym

#

which entry?

old wyvern
#
section.palette.sumBy { entry ->
                    GlobalPalette.PALETTE.getValue(entry.name).states.single { it.properties == entry.properties }.id.varIntSize()
}
jovial warren
#

ah that

old wyvern
#

If its part of the state of that entry, maybe its better to actually have it on there

jovial warren
#

that would require programming in all the blocks

old wyvern
#

wdym?

jovial warren
#

since those are all blocks, and their properties contain their states

#

actually I'm confusing myself lol

old wyvern
#

I think the way to go would just be to include it with whatever entry is

jovial warren
lunar cypress
#

unsurprisingly

static zealot
#

xD

jovial warren
static zealot
jovial warren
#

lol

#

make sure your password hasn't been pwned

#

that's the important one

static zealot
#

they have been

#

from all 3

#

fortunatelly I don't use those passwords anymore

#

xD

#

now I use random generate passwords

#

hmm I wonder how good LastPass is because keeping track of all passwords really is hard

jovial warren
#

LastPass is trash now

static zealot
#

I remember Jim Browning recommending it a few months ago

#

oh nvm he recommended dashlane

#

xD

jovial warren
#

yeah it's now bad

static zealot
#

I have a good memory

#

lmao

jovial warren
#

they changed the free plan to only include 1 device

static zealot
#

what about DashLane? do you think its at least semi-good?

jovial warren
#

I personally just use Lockwise

static zealot
#

oh free plan is up to 50 pass and 1 device only

jovial warren
#

it's free for unlimited devices, no bull shit, no paid plans

static zealot
#

oh really?

jovial warren
#

only caveat is that it's limited to your browser on desktop

#

it has a mobile app though

static zealot
#

but is it maintained by a somewhat trustworthy company?

jovial warren
#

it's maintained by Mozilla lol

#

Firefox Lockwise

static zealot
#

oh

jovial warren
#

yeah

static zealot
#

unfortunately best things cost usually. and that's understandable

jovial warren
#

Lockwise is free though

dawn hinge
#

Yeah

jovial warren
#

and there's no paid plans or limitations on password storage or devices

#

and it's maintained by Mozilla

dawn hinge
#

The non profit one or?

static zealot
#

oh MYKI.com has a pretty high rating but idk how good it is

#

seems like no limits but not sure

#

I think I'll try it maybe

#

it has desktop, browser and phone apps

#

browser is extension

winter iron
#

imagine people using the .cam TLD to IP log people on minecraft :/

lavish notch
#

It's local, and secure.

unkempt tangle
#

This piece is interesting to read

onyx loom
regal gale
ocean quartz
obtuse gale
#

Oh my god

#

๐Ÿ˜

onyx loom
#

lol

obtuse gale
#

The titles do be looking good though

#

@prisma wave they got ahead of you

#

You gotta up your game man

onyx loom
#

u been slacking

prisma wave
#

o shit

#

A course from the creators themselves

errant geyser
#

Was it really worth $10

prisma wave
#

No

#

$10 on nitro just to change my name and have a funny gif

#

Not worth it

onyx loom
#

whats the funny gif

prisma wave
#

my pfp I mean

onyx loom
#

ah yes

#

GREAT pfp

prisma wave
#

THANK

half harness
forest pecan
#

theres already one

#

its called screaming bedwars

#

lol

half harness
#

lol

#

ik

#

but ig he wants custom :p

#

for free

forest pecan
#

lol

forest pecan
ocean quartz
hot hull
#

Aaa

onyx loom
#

i agree

#

how was ur sleep frosty

#

i hope the alarns werent too much pain

old wyvern
hot hull
#

Woke up before the alarms

#

Woke up at 2am then went back to sleep

onyx loom
obtuse gale
#

Does anybody know what im meant to do lol i might just be dumb but idk what its asking me to do

hot hull
#

I mean just list the numbers from 1 to the given end number, and when they click calculate sum them all together?

hot sierra
#

how can i get the players position 1 second ago?

karmic fjord
quiet depot
old wyvern
#

๐Ÿ˜‚

hot sierra
#

๐Ÿคฆ

quiet depot
#

demo dev this isn't a support channel

jovial warren
#

IntelliJ good Eclipse bad

obtuse gale
#

why

#

personal preference?

jovial warren
#

IntelliJ has like 100x more features, is easier to make plugins for, is more extensible and supports cleaner UIs imo

opal fractal
#

eclipse is buggy

stuck harbor
#

well, more buggy

opal fractal
#

a little bit

jovial warren
regal gale
#

Better error detection and auto-fixes

stuck harbor
#

mhm

#

easier kotlin support

obtuse gale
#

idk, I'm used to eclipse UI

stuck harbor
#

so was i

obtuse gale
#

and have everything set up

stuck harbor
#

intellij can import eclipse prjects and convert them

obtuse gale
#

I'll try it

#

Should I use Eclipse keymap?

stuck harbor
#

if u want to

jovial warren
#

up to you

obtuse gale
#

what theme do you use

errant geyser
#

Download the material themes + icons plugins

#

Use one of them

obtuse gale
#

"Atom Material Icons"?

quiet depot
#

yes

#

itโ€™ll tell you the plugin name when you download material theme

jovial warren
#

download material theme + atom one dark + atom material icons

stuck harbor
#

gruvbox tho :(

quiet depot
#

what

jovial warren
quiet depot
#

bardy atom one dark is a separate theme

#

no?

jovial warren
#

actually it's built in to material now I think

#

iirc

quiet depot
#

material theme has an atom one dark theme, you donโ€™t need to download a separate ploogin

jovial warren
#

yeah

old wyvern
#

Vuesion theme PlusOne

jovial warren
#

also, btw Pig, iwanio is one of those who thinks vim is somehow superior to IntelliJ

quiet depot
#

thatโ€™s a very popular opinion

stuck harbor
#

speeeeeed

quiet depot
#

probs 50/50 in the real world

jovial warren
#

nah

#

really?

stuck harbor
#

speeeed

prisma wave
#

vim good

stuck harbor
#

yes

jovial warren
#

yeah vim is great, but IntelliJ is better for Java development

stuck harbor
#

meh

quiet depot
#

most old developers (like 30+) will always say vim

stuck harbor
#

man I ain't old

quiet depot
#

ok boomer

jovial warren
#

I love vim for text editing, but IDEs are generally more purpose built and so have more features

stuck harbor
#

uh bardy

#

vim has extensions

frigid badge
#

ppl saying vim is 'so good' is literally just circle jerking

prisma wave
#

lol

stuck harbor
#

man can I not have a popular opinion?

prisma wave
#

vim + haskell + blockchain ๐Ÿคค

quiet depot
#

iโ€™ve never tried vim

jovial warren
#

the only place I use vim is on the command line on Linux for editing config files lol

frigid badge
#

get ๐Ÿ‘ a ๐Ÿ‘ life ๐Ÿ‘

jovial warren
quiet depot
#

for cli text editors nano works fine and for gui, sublime is all Iโ€™ll ever need

jovial warren
#

I'm messing

stuck harbor
#

man nano

old wyvern
#

Glasgow Text Editor >>>>

jovial warren
#

nah nano is alright, I've just kinda been brought into Linux using vim, so I'm more used to vim now

prisma wave
#

Glasgow anything

stuck harbor
#

Glasgow is nice

quiet depot
#

is this a briโ€™ish joke?

old wyvern
stuck harbor
#

very scottish tho

quiet depot
#

i donโ€™t get it

old wyvern
#

Glasgow?

#

Haskell

#

GHC

quiet depot
#

what

stuck harbor
#

man

old wyvern
#

The haskell compiler

jovial warren
#

it's just: vim file.txt, press I, edit your text, press escape, write :wq to write and quit, done

quiet depot
#

is ghc the chemical that makes u high when u smoke haskell

jovial warren
#

I is for insert btw

quiet depot
#

ah ok

jovial warren
old wyvern
#

Its better than weed