#dev-general

1 messages · Page 434 of 1

ocean quartz
#

It's kinda wacky though

forest pecan
#

Yeah

ocean quartz
#

Same

forest pecan
#

the ide even points out warnings

#

for it

#

after conversion

obtuse gale
#

you only found out now?

forest pecan
#

lmao

obtuse gale
#

lol

static zealot
#

yeah and sometimes its not even readable or usable

onyx loom
#

wdym the converter is flawless??????????????????????????

static zealot
#

its not even kotlin

#

lmao

static zealot
#

my bad

forest pecan
onyx loom
#

jaba lmao

static zealot
#

better

forest pecan
#

Jaba

ocean quartz
#

You press CTRL + ALT + JABA

jovial warren
jovial warren
forest pecan
#

wtf

#

lol

#

wtf lmao

oak raft
forest pecan
#

the gi

#

the gif

jovial warren
#

yeah because I definitely want to use the block registry for item ID lookups

forest pecan
#

spigot going to deprecate Material enum next update

#

lmao

static zealot
#

what?

oak raft
#

o_O

oblique heath
#

why o.o

forest pecan
#

Yeah

#

They are replacing it with Block/item registries

obtuse gale
#

about fucking time

forest pecan
#

its been said for a while now

jovial warren
#

👀

boreal needle
#

wow kotlin has so many weird operators

jovial warren
#

maybe Krypton needs to switch to registries too

forest pecan
#

kotlin bitwise is shit

boreal needle
#

tf does * do

forest pecan
#

multiply

jovial warren
half harness
#

wdym

forest pecan
ocean quartz
forest pecan
#

everything else is okay

half harness
steel heart
#

kotlin has operator overloading

#

?

half harness
#

at the top of the file?

onyx loom
#

yea

ocean quartz
steel heart
#

nice

onyx loom
#

operator fun

prisma wave
#

does anyone know of a language with custom operators?

ocean quartz
half harness
# ocean quartz Yes

but.. if the comments are applied during build... I thought comments were removed when compiled?

prisma wave
#

sure

ocean quartz
prisma wave
#

haskell does too btw 😄

forest pecan
onyx loom
prisma wave
#

correct

onyx loom
#

thats actually pog

prisma wave
#

and F# 😄

half harness
ocean quartz
#

Yes

half harness
#

ah

#

but i thought that the license only needed to be in the project root

#

or something

forest pecan
#

no, some licenses are required in every source file

half harness
#

oh

ocean quartz
#

Not that it's required it's just better

obtuse gale
#

several licenses state a provided snippet should be included at the top of every source file

#

not all of them

#

but many

forest pecan
#

no its requirement

#

many licences have it as one

half harness
#

also

#

can someone quickly tell me when to use gnu and when to use mit? i see u guys using both

#

and idk which one to use

prisma wave
#
(+=+) a b = a + b + a * b -- custom operator function for a*b + a + b

main = print ( 3 +=+ 4 ) -- wow!! it just works :DDD
forest pecan
#

use mit

half harness
#

and i usually dont even have a license

forest pecan
#

mit doesn't require modifications to be open source

#

while gnu does

#

wait does it?

prisma wave
#

WHO DID THAT

forest pecan
#

let me recheck

half harness
#

lol

prisma wave
#

🤢

#

ghost ping too

half harness
#

oh

#

the ghost ping was me

#

oops

forest pecan
#

that wasnt me

half harness
#

i think

#

if it was 2 seconds ago

#

then it was me

forest pecan
#

dkim

#

you

#

absolute

#

ass

sweet cipher
half harness
#

👀

forest pecan
#

pp

prisma wave
#

STOP

forest pecan
#

are you okay

#

are you okay

half harness
#

no I dont think he is

#

someone call 911

#

assuming thats what the number is in the uk

cinder flare
#

nah mate 999

half harness
#

assuming bm lives in the uk

cinder flare
#

he lives in teeny tiny version of uk

#

and afaik the num is 999

half harness
#

afk

onyx loom
#

it is indeed 999

half harness
#

bakc

onyx loom
#

this is so cute

prisma wave
#

❤️

cinder flare
#

if only I were followed by someone so cool NE_Sad

sweet cipher
#

Don't worry dkim will follow you

static zealot
#

xD

ocean quartz
#

Ayy nice, got this working and without needing to repeat all the code like I had before

half harness
hot hull
#

Imagine not resolving it if the material is player head Matt

ocean quartz
#

I actually wanted that, but it's impossible

hot hull
#

How so?

ocean quartz
#

You can't generically return different types in the same method

hot hull
#

That's dumb

ocean quartz
#

Well you can but not pretty

#

This would work, but what would the point be if you have to specify the builder anyways

hot hull
#

ew

ocean quartz
#

Exactly

steel heart
#

Lol

obtuse gale
#

That's something C++ can solve fingerguns

ocean quartz
#

I could be wrong by Kotlin can too with reified types

steel heart
#

C++ is nice I just found out the vararg template thing

ocean quartz
#

Ooo the vararg templates are awesome

steel heart
#

A very good reason to start with C++

gusty glen
#

loved your relocated dependencies ❤️

old wyvern
#

Bardy being lonely in room #1

#

sadge

ocean quartz
#

Also Yugi I just finished most of the rework and the builder stuff for mf-gui so feel free to do the Kotlin stuff when you want ;p

boreal needle
#
    override fun getName(): String = "command"

    override fun getDescription(): String = "Do the very important thing"``` does this work in kotlin?
surreal quarry
#

yes

boreal needle
#

noice

onyx loom
#

useless return type

boreal needle
#

ooh even nicer

onyx loom
#

👍 👍 😎

boreal needle
#

also do i need to shade the kotlin stdlib

surreal quarry
#

yes

boreal needle
#

oof

#

is it big

surreal quarry
#

like 2mb i think

static zealot
#

rythm is down 😢

onyx loom
#

less james

surreal quarry
#

actually yea

onyx loom
#

~1.4 iirc

boreal needle
#

i could minimise it

old wyvern
#

Its on the master branch itself right?

surreal quarry
#

it doesn't do much

#

iirc

ocean quartz
static zealot
#

xD

#

I can almost read that

surreal quarry
#

lol

static zealot
#

https://.imgur.com/4UNnGpM.png

#

embed please

#

there we go

obtuse gale
#

Eh those are some negligible inconveniences

onyx loom
#

im pretty sure the stream goes fucked like that if u ever highlight text

obtuse gale
#

You gotta see the big picture, it as a whole

old wyvern
jovial warren
#

lemme set this back to like 15 FPS

#

that seems to work

static zealot
#

oh now its better

#

a lot better

#

ty @jovial warren . not that I understand a thing

#

also are you even listening to Rythm?

jovial warren
#

you think I know any more?

static zealot
#

I played you some nice music xD

jovial warren
#

ffs

onyx loom
#

bardy u should see the commits i just done to ezblocks 😎

jovial warren
#

👀

#

you're working on it?

onyx loom
#

ofc ofc

#

soon™️ still tho

static zealot
onyx loom
#

i did not

static zealot
#

and set up build.gradle

jovial warren
#

setMessage 🤢

static zealot
#

oh not even that?

onyx loom
#

i havent touched the main class lmao

jovial warren
#

yeah that was part me and part @errant geyser

onyx loom
static zealot
#

just .color smh

errant geyser
#

hm what now

static zealot
#

and setPapi

half harness
#

.format

static zealot
#

for another one

onyx loom
#

hell katsumag

errant geyser
#

hola

onyx loom
#

where are ur ezblocks commits at

jovial warren
static zealot
#

to little Factory in that name

#

a few more Factories please

onyx loom
jovial warren
#

AbstractColorFactoryAndPlaceholderFactoryApplierFactoryBuilderFactoryInstanceProviderFactoryProviderInstanceFactoryBean

onyx loom
#

epic

errant geyser
half harness
# static zealot a few more Factories please

AbstractColorAndPlaceholderApplierBuilderFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryFactoryInstanceProviderBean

static zealot
#

that's more like it

errant geyser
#

I set up JBs db thing before Bardy tore it down with "wtf have you done"

onyx loom
#

😂

static zealot
#

wait where is the EzBlocks github at?

jovial warren
#

lol

#

it's in our fork

onyx loom
#

Prevarinite account blitz

errant geyser
jovial warren
errant geyser
#

koltin branch superior

static zealot
#

who's Prevarinite ?

onyx loom
#

honestly i just need someone to do the database shit, im too small brain for that

jovial warren
old wyvern
#

tf is this

jovial warren
#

imagine not remembering Prevarinite

static zealot
#

oh org

old wyvern
#

What is this music

#

xD

jovial warren
#

Yugi remembers

old wyvern
#

Yes

onyx loom
#

wym its epic music yugi

static zealot
old wyvern
#

lol

static zealot
#

you deserver to die sir

onyx loom
#

is it actually lol

old wyvern
#

Honestly dont prefer this song

#

there are better songs on his playlist

onyx loom
#

^

static zealot
#

its not bad 😢

#

yeah maybe not the best

#

yeah Kaliber

#

there's like 250 songs

#

in queu

jovial warren
#

trying to figure out how Minecraft generates world UUIDs

static zealot
#

queue

#

lmao

errant geyser
#

I must have had a commit at some point 🤔

static zealot
#

that's why I used Rithm

errant geyser
#

Wonder where it went

static zealot
#

bcz Barry cant' do that yet

jovial warren
onyx loom
#

this will get done eventually :kekw:

jovial warren
#

I made 3 I think

#

then Kaliber made the rest

onyx loom
#

what commit date was that katsu

#

CARRYING the project

static zealot
#

am I missing something? I can't see any commits

errant geyser
#

Hey Bardy you wouldn't know how to decode a single byte key stream cipher where you don't know the key would you?

static zealot
#

oh branches

#

of course

#

fuck

onyx loom
#

are u on the right branch

#

yeah

#

its all in kotlin

static zealot
#

nice

jovial warren
#

if it's only a single byte long then that's ez

#

what base?

onyx loom
#

256-bit 😳

jovial warren
#

actually that's stupid

#

8 bits is ez

errant geyser
jovial warren
#

just 2^8 possibilities

#

if it's a byte then the key can only be 2^8 different things

#

just brute force it

errant geyser
#

I wrote this to do it and uh, I need to compute 950k of them (don't ask). None of them came out coherently though. https://bin.katsumag.me/yeqisihuhu.py It's most likely me using the wrong stuff for keys but eh

jovial warren
#

my ass can all of those characters be in it

#

you said the key is only a single byte right?

errant geyser
#

yeah

jovial warren
#

that means that it's 8 bits

#

each bit having 2 possibilities

#

so 2^8 possible values for keys

static zealot
#

wait I'm confusion rn kt fun blocksCommand(sender: CommandSender, @Optional arg: String?) { if (sender !is Player) { return sender.sendMessage("Player Command Only.") }

#

why?

jovial warren
#

which is 256 possible keys

jovial warren
errant geyser
#

There's only 95 in possible_keys

static zealot
#

no need for that check

jovial warren
static zealot
#

ah ok

#

understandable have a great day

#

or nice day

#

I don't even remember the meme 😢

#

Components when?

errant geyser
#

How would I find the different possible keys though bardy?

jovial warren
#

you already know them

errant geyser
errant geyser
jovial warren
#

I just told you

#

there's 256 possible keys

#

and you said 95 keys

errant geyser
#

That I've tried

#

That's just all I could think of

old wyvern
#

wdym

errant geyser
#

The only keys I could think of were the alphabet, numbers, symbols and space

old wyvern
#

Why not just enumerate through all byte values

#

0 - 255

#

🤷‍♂️

prisma wave
errant geyser
#

That's all I had to do

old wyvern
#

Yes

empty tangle
#
Blocked mirror for repositories: [mvdw-software (http://repo.mvdw-software.be/content/groups/public/, default, releases+snapshots), sk89q-snapshots (http://maven.sk89q.com/artifactory/repo, default, releases+snapshots), placeholderapi (http://repo.extendedclip.com/content/repositories/placeholderapi/, default, releases+snapshots)

Can someone help me figure out what this means?

boreal needle
#

quick question

#

how do i create a fat jar with kotlin

#

gradle obviously

onyx loom
#

a fat jar? like shaded?

boreal needle
#

yeah

#

uberjar, fatjar, whatever you want to call it

onyx loom
boreal needle
#

yeah i tried that

#

i cant get it going

#

it spits out a jar but with nothing in it

onyx loom
#

send build.gradle

boreal needle
#

ooh wait nvm

obtuse gale
#

Keep in mind you need to run ./gradlew shadowJar instead of ./gradlew build

boreal needle
#

yeah i missed that somehow

#

is there a way so i can add it to the build lifecycle?

#

nvm got it

hot hull
#

bruh I'm about to set my discord to light theme so I can see

onyx loom
#

excuse me

hot hull
#

Can't be asked to turn on the light

#

:kek:

onyx loom
#

i see

hot hull
#

Shoot me

#

bruh It's so fucking bright

ocean quartz
obtuse gale
#

Frosty I mean

#

WE knew you're a masochist

#

But this

humble silo
#

My god what is your ui there

static zealot
#

I don't like the dark dark theme

#

lso is that mods?

humble silo
#

Thats not even dark theme though

static zealot
#

I see?

ocean quartz
#

It's the TOS breaking UI

static zealot
#

if you spam click the dark theme in settings

#

you'll get it

humble silo
#

really?

ocean quartz
static zealot
#

idk.. for me it doesn't work. it just crashes discord xD

#

on pc

#

at least

#

never tried on mobile

#

I just know thgat's how you get it

humble silo
#

how?

static zealot
ocean quartz
#

For me only works on mobile

static zealot
#

he probably usess Better Discord

humble silo
#

It looks like some old minecraft forum or something

static zealot
#

which is against discord's tos

ocean quartz
#

Any modification is

static zealot
#

oh its called Amoled optimize mode so I can see why

#

lmao

#

oh shit this shit is not that bad

#

and I save more battery

#

nice

#

even tho I don't use discord on phone usually xD

hot hull
onyx loom
#

die

#

ill shoot your kneecaps

humble silo
#

Best theme

hot hull
#

Please do

#

And one in the noggin as well

static zealot
#

do you have the sidebar thing and its locked>?

onyx loom
#

its for light theme blitz

static zealot
#

ohh yeah I remember

onyx loom
#

if u turn on light theme the option becomes available

static zealot
#

yeah yeah I remember ty kaliber

#

not going to do it tho xD

onyx loom
#

🙃

static zealot
#

damn BBG that's a lot of debbuging

#

anyone wanna play COC?

hot hull
#

busy

oblique heath
#

coc

humble silo
#

Oh ive heard of that

static zealot
#

@onyx loom @half harness @jovial warren (if you wanna take a break), @old wyvern @ocean quartz @surreal quarry @lunar cypress @obtuse gale @prisma wave @steel heart @cinder flare @oblique heath and the others I've missed

#

wanna join?

onyx loom
#

no.

half harness
#

im busy for the next 6 minutes

static zealot
#

well it lasts for 15

#

so you can join later

half harness
#

hm

oblique heath
surreal quarry
#

cant

half harness
static zealot
oblique heath
#

because you're too powerful

jovial warren
half harness
#

o

static zealot
#

well if no one joins I guess I'll have to beat ivan's ass

#

oh I missed @forest pecan

oblique heath
#

is that a challenge

static zealot
#

wana join?

forest pecan
#

i knew it was coc

#

lol

obtuse gale
#

Uh not home

half harness
#

CoC

static zealot
#

@obtuse gale wby? wanna join?

#

oh bbg joined

#

ok now I'm not going to be the only one getting his ass beat

#

gonna start

jovial warren
#

👀

half harness
#

kotlin fingerguns

oblique heath
#

um

old wyvern
#

Yes

#

link plz

#

nvm

#

got it

static zealot
#

oh ok

old wyvern
#

wait

#

nvm

#

I dont got it

static zealot
jovial warren
#

omfg no way

#

that was piss easy

static zealot
#

1 sec then

#

@old wyvern

hot hull
#

Why is Blitz such a kek man is the question

jovial warren
#

I didn't even read all of it, just read "sum of numbers" and that was enough

static zealot
old wyvern
#

Gimme a min

#

Trying to find the email I used

#

ok im in

static zealot
#

something ain't right

#

I'm already having troubles

#

with this easy one

jovial warren
#

oml

#

||n**2||

static zealot
#

(1..n+1).filter { it%2==1 }.sum() shouldn't this work?

jovial warren
#

lol

#

you're gonna kick yourself

static zealot
#

ugh

jovial warren
#

||just square it||

oblique heath
#

is this problem weird or is it just me

static zealot
#

its weird

jovial warren
#

yeah it says sum of odd numbers but that's not what the test cases want

static zealot
#

wait are you serious?

old wyvern
static zealot
#

yeah that was there for the tests

#

my bad

old wyvern
oblique heath
#

silly user submissions

jovial warren
#

share

static zealot
#

but it ain't working

jovial warren
#

look at mine

old wyvern
#

Thats the equation for sum of n odd numbers

jovial warren
#

unless you can get the sum of all odd numbers like that

static zealot
#

waiititttt

#

fuckkk

#

it doesn't go until N

old wyvern
#

Its an arithmetic progression

static zealot
#

I have to stop when I find N numbers

#

fuck

old wyvern
#

Look it up

jovial warren
#

somehow discovered that by accident

old wyvern
#

lol

static zealot
#

I'm a 4head

old wyvern
#

Sn = (n/2) * (2 * a + (n-1) * d)

jovial warren
#

I know that the sum of numbers from 1 to n is n * (n - 1), or so I remember seeing somewhere

#

or is it n * (n + 1)

old wyvern
#

Its not

old wyvern
#

n * (n-1) / 2

prisma wave
#

^

static zealot
#

yeah /2

old wyvern
#

new game?

oblique heath
#

yis

static zealot
#

well there's 3 more people

#

aren't we waiting for them

#

no we're not

#

lmao

jovial warren
#

Ivan ew

#

why would you use Math.pow for powers of 2

#

no

old wyvern
#

Yes!

#

It does!

#

Shouldnt have asked about Haskell!

lunar cypress
#

tf

#

this name seems familiar

static zealot
#

I think the problem is the hidden message

jovial warren
#

I mean, I asked about Starlight earlier in Tuinity's Discord and SpottedLeaf said "i would hope you would not disgrace its name by porting it to some shitty language like kotlin" so idk

static zealot
#

not Kotlin

oblique heath
static zealot
#

btw BBG ^^

#

and dkim

old wyvern
#

Starlight?

half harness
#

why no shortest

jovial warren
#

the lighting engine

half harness
#

😦

jovial warren
#

I want to port it for use in Krypton

#

well, not rewrite it, just change some parts

ocean quartz
#

Most people will look down on any language they don't like, nothing new
I mean a lot of people here hated Kotlin before trying it

old wyvern
#

I mean honestly you wanna port something just fork and port it

#

Why do you give a shit what he wants

#

lol

#

The user is bard

half harness
#

wot

#

ohhh

#

i know

lunar cypress
#

??

hot hull
#

You on drugs or?

static zealot
#

easy

#

nvm

#

it worked for like 4 or 5 test cases

#

but of course its 33%

#

someone send a screenshot of the problem please

hot hull
#

You already are more than enough

ocean quartz
#

Nice, typed on google ScheiBe since I don't have the letter on my keyboard and it actually translated it correctly
i didn't know that was how you write "shit"

static zealot
#

@oblique heath send ss of problem please. ty

oak raft
#

bro just go outside and you'll know

#

supposedly it's in germany too lol

ocean quartz
#

Swamp germany (it's a joke don't kill me lemmo)

static zealot
#

or is it

oblique heath
#

@static zealot

static zealot
#

oh so it wasn't the number of os in it lmao

#

its the number of the most used char

#

that's why it passed like 3 or 4 tests

#

smh

#

well fuck

#

but at least I did it in 1 11

half harness
#

ok

#

YES

#

100%

hot hull
#

heh I thought it was o's as well at the start Blitz, test 4 fails tho

half harness
#

hi frosty

hot hull
#

No, I'm busy

onyx loom
half harness
#

lol

hot hull
#

I gotta go sleep, but I got stuff to finish

lunar cypress
#

That's Den Haag lol

#

wtf is "ven daag"

half harness
#

uh

#

bardy

jovial warren
#

ffs I got beaten by dkim

half harness
#

explain

jovial warren
#

how

half harness
#

🥲

jovial warren
#

right, I gtg and eat now

half harness
#

ok

static zealot
#

xD

jovial warren
#

okay Yugi that's actually cool

half harness
#

lol

oblique heath
#

that took too long

old wyvern
#

😌

oblique heath
#

i'm ashamed

half harness
#

i was first 😤

#

why not just use print @oblique heath ?

#

so that u dont have to do show

static zealot
#

well I gtg eat too

#

cya

old wyvern
#

probably just typed it fast

#

ciao

half harness
#

y everyone eating

#

well i gtg do some procastinated work

#

cya

oblique heath
half harness
#

oh

tranquil crane
half harness
#

smh

humble silo
#

Anyone know if theres a better way to use a jar library in a java 9 module than just adding the jar library to the classpath?

#

that seems like a old school and terrible way to go

oblique heath
#

stuff like

a -> 1
aa -> 2
aaa -> 3
bbbbe -> 4
eebbb -> 3
ccdd -> 2
tranquil crane
#

oh alright

#

that's not as bad then

#

basically just sort the string and count the highest number of consecutive letters

humble silo
#

Doesnt have to be consective though does it?

oblique heath
#

almost, it was to get the number of the most common letter

half harness
#

Chestly?

humble silo
#

Dkim

half harness
#

in kotlin ? = nullable

#

so your nullable? thonking

humble silo
#

im not feeling well today

tranquil crane
#

well what I just said would still find that solution lol

half harness
#

ah

oblique heath
#

ah you're right lol

humble silo
#

Ill change it for one second

oblique heath
#

i didn't read that correctly xd

humble silo
#

there

#

even better

#

oops

#

forgot the ;

#

even better

#

now its the same as before

tranquil crane
#

that's even worse

humble silo
#

By worse i assume you mean better?

tranquil crane
#

..I guess

pale shell
#

I wish I could do the debug thing like how piggy does

old wyvern
#

Your name

#

is hideous

pale shell
#

its good

old wyvern
#

Sadly, not

#

Its false proclamation

pale shell
#

I have to disagree on your opinion.

old wyvern
#

Lets agree to disagree then

pale shell
#

lemme think, hm... no 🙂

old wyvern
#

Then sure, you have agreed that haskell is truely the best language

pale shell
#

no

old wyvern
#

Too bad, so sad

pale shell
#

Java is far better

#

For one, it's an actual language.

old wyvern
#

Thats a weird statement

onyx loom
#

haskell is an actual language

old wyvern
#

^

pale shell
#

no

obtuse gale
#

It unfortunately is

old wyvern
#

It fortunately is 😌

oblique heath
#

can java have infinite lists? didn't think so 😎

pale shell
#

yes it can

static zealot
#

someone revive Rythm please

old wyvern
pale shell
#

Just make a list within a list within a list on a for loop.

oblique heath
#

huh?

old wyvern
pale shell
#

It is now

sweet cipher
#

How does Haskell have infinite lists?

prisma wave
#

because everything is lazy

#

nothing is evaluated until it has to be

forest pecan
#

bm

#

you got experience with jni/C++ right?

prisma wave
#

a bit

#

not much

forest pecan
#

cause i compiled my first file and i fixed a bunch of errors by using casts

#

am i doing something wrong?

prisma wave
#

what

forest pecan
#

it doesnt feel right to cast from void to int lmao

prisma wave
#

that's how c++ works 😩

#

afaik anyway

forest pecan
#

lmao

jovial warren
#

wait is blackstone a thing in 1.16.5?

sweet cipher
jovial warren
#

oh btw, guess what else appears to be server-side

#

button releasing

#

🥲

old wyvern
prisma wave
old wyvern
#

Each element is only generated when it is needed

#

No element of the list exists before you use some terminal operation

sweet cipher
#

Oh

oblique heath
#

it's like lying on a resume

sweet cipher
#

So does it exist when you add to the list?

oblique heath
#

you pretend you have everything until it's time to use it, and then you quickly get it

sweet cipher
#

Ok

#

Are there any drawbacks to doing it that way?

oblique heath
#

i don't think there are any big ones

#

but idk

prisma wave
#

not particularly

static zealot
#

is there a way to pull from a fork?

#

or from the original

#

I have the fork

#

without having to PR

#

I remember there being something about git checkout or something

tranquil crane
#

@humble silo I just noticed you're listening to my spotify feed, why lol

humble silo
#

im judging you btw

tranquil crane
#

fair enough

forest pecan
#

stalker

#

/s

humble silo
#

@tranquil crane bruh

tranquil crane
#

kek

humble silo
#

nice rickroll

tranquil crane
#

fine I'll put it back

humble silo
#

lol

forest pecan
#

lmao

tranquil crane
#

I was legally required to do that

static zealot
#

lmao

humble silo
humble silo
#

@tranquil crane DJ switch the mix up

tranquil crane
#

..ok

humble silo
#

lol

tranquil crane
#

what do you even expect me to play next

humble silo
#

defintely

#

Or i wil get bored and leave

tranquil crane
#

together forever coming up next™️

#

not really though

humble silo
#

I didnt know "coming up next" was trade marked

tranquil crane
#

yep™️

humble silo
#

that too?

#

god what has this world turned into

tranquil crane
#

supposedly

forest pecan
#

mmmamam

#

uuuuwwuu

half harness
#

wat

forest pecan
#

if anyone knows what im thinking

#

they get a cookie

oblique heath
#

you're thinking about

#

me 😳😘😉

forest pecan
#

you get negative cookies

static zealot
humble silo
#

@tranquil crane Well thank you for being my personal DJ but im gonna have to lay you off... im sorry

tranquil crane
#

sucks to suck

humble silo
#

Hmm

half harness
#

:(
i turn on pc, start up minecraft and see my saved servers file corrupted, intellij throwing invalid errors, then my pc bluescreening

#

this is going great

half harness
ocean quartz
#

Windows isn't bad

humble silo
#

No, but ive used both and i prefer Mac

half harness
#

AND IT CORRUPTED AGAIN_ _ _ _

#

i hate this

onyx loom
#

clojure

#

scala

#

btec kotlin

oblique heath
#

racket

half harness
#

and i also forgot to install dependencies for my bw plugin in my debug server

prisma wave
onyx loom
#

it is tho

#

sorry

prisma wave
#

true

#

tbf

onyx loom
#

scala came before kotlin too i think

#

so makes sense

prisma wave
#

yeah

half harness
#

what is btec

onyx loom
#

o

#

technically its a british course? u can take, but it sucks

#

so everyone makes fun of it for being a knockoff of something

prisma wave
#

yeah

#

shit uneducated course

onyx loom
#

bm what do u call it, because its not really a course tho is it

#

qualification, thats the word

forest pecan
#

i added mac support to my lib

#

mac is so stupid

steel heart
#

Lmao

old wyvern
#

clash?

obtuse gale
#

nap

static zealot
#

is it against github TOS to make another account?

ocean quartz
#

I don't see why it would

forest pecan
#

^

static zealot
#

just making sure

forest pecan
#

many people do that in fact

obtuse gale
#

It isn't

forest pecan
#

one for jobs

#

one for home

static zealot
#

ah makes sense

#

yeah but you never know what strange rules there might be and ofc I didn't read them

#

xD

obtuse gale
#

You didn't read the Terms of Service???????

#

RePoRtEd

static zealot
#

k

boreal needle
#

you could just use organisations

static zealot
#

that's not what I want it for

#

I just wanna test some stuff

#

with git commands and PRs and stuff like that

old wyvern
#

Just use your main acc and then delete the repos?

static zealot
#

well I am going to fork it from the other account

forest pecan
#

my builds are getting longer each commit

#

they take 1 hour now

#

🥶

#

for the ci

onyx loom
#

jesus

static zealot
#

wtf you building?

#

oh the media library

forest pecan
#

like 99% of that time is due to downloading nms

#

you see, I could of pointed my middle finger towards spigot and just zipped the nms files

#

and dropped it into the local repository

#

but im a good boy

oblique heath
#

wait why would you be downloading them each time

#

dont they get cached in your local maven repo or something

obtuse gale
#

not in the ci

obtuse gale
#

it's like its own instance each time so yeah

oblique heath
#

ahh

obtuse gale
#

oh look there goes my data hahaha

old wyvern
#

Not anymore

forest pecan
old wyvern
#

Do you need the healthline called?

forest pecan
#

No I need to call grammarly

#

for a refund

old wyvern
#

Good point

#

Sue them

forest pecan
#

exactly

old wyvern
old wyvern
#

Just delete it?

forest pecan
#

but it would be a ghost ping

old wyvern
#

dms dont ghost ping I think

forest pecan
#

lmao

#

they do lol

old wyvern
#

Try me

#

Now delete

obtuse gale
old wyvern
#

Deleted?

forest pecan
#

Yeah

old wyvern
#

Oh ok yea, it doesnt go

old wyvern
#

ok

#

What im planning to do might be a bit over the top to implement in this

#

Hopefully this works

#

Wait what

#

lol

#

Wonderful

#

Time to make a web request race, may the IO-est win

prisma wave
#

what on earth

prisma wave
#

where would that function ever be useful

old wyvern
#

No idea, maybe with mirrors

#

Fastest one would work and rest would fail

prisma wave
#

Ah maybe

old wyvern
#

Ok I've reached an issue

prisma wave
#

I guess it's useful enough to have it in the standard library

old wyvern
#

I need to figure out how to get it to respond to reactions and continue the action

#

I think the time may have come for the state monad

#

👀

prisma wave
#

😮

#

Who's that Monad??

old wyvern
#

DJ Maybe

prisma wave
#

A new challenger appears

oblique heath
#

what are you making yugi

old wyvern
#

Improving hasklash

#

Rewrote the part that already works in a better way

#

Now adding extra features

oblique heath
#

oooooh

old wyvern
#

Somehow the auth speed is much faster now

#

Not sure why

obtuse gale
#

yes

#

I improved it

surreal quarry
#

hasklash 😩

old wyvern
#

I didnt even change much of how auth worked

#

Maybe just the difference in the library being used

#

no idea

prisma wave
#

Haskell works in mysterious ways

old wyvern
#

Altho Req is supposed to be more higher level than Http.Client

#

So it should be slower if anything

old wyvern
#

Compiler Optimizations all the way

#

Oh speaking of which

#

I need a suggestion on something bm

#

So currently to search command flags, this is what im doing

lookupFlag :: [T.Text] -> T.Text -> T.Text -> Bool
lookupFlag args tag argPrefix =
    any ((== (argPrefix <> tag)) . fst) $
            zip args $ tail (args ++ [""])
#

But

#

(args ++ [""])

#

This

prisma wave
#

Ew

old wyvern
#

Will copy the entire list

prisma wave
#

Ah yeah

#

Why do you even need that?

old wyvern
#

So it doesnt discard 1 element from the command

#

zip ignores any extra elements

#

using tail means the second arg will have exactly 1 less element

prisma wave
#

Ah yes

#

Hmmm

#

Are you sure that will copy?

#

Lists should be persistent no?

old wyvern
#

Yea, only cons doesnt copy

old wyvern
#

The only other option would be to use Seq

prisma wave
#

Seems like they'd have an optimisation for that

old wyvern
#

Hopefully

timber oak
#

Can someone quickly explain dependency inversion? Is it just using getters for getting objects?

static zealot
#

?di

compact perchBOT
timber oak
#

That's dependency injection though, not inversion

static zealot
#

oh inversion

#

my bad

#

I can't read

timber oak
#

np lol

ocean quartz
#

Writing clean code is tough, and is one of the largest differences between junior and senior developers. One way that you can quickly improve your code and start writing well designed code now is to implement the dependency inversion principle. This principle is part of the SOLID design principles.

The main idea of the dependency inversion prin...

▶ Play video
#

JS but the concept is there

oblique heath
#

@old wyvern how do you feed the CoC email + password into the bot here?

steel heart
#

Dependency injection is a sort of dependency inversion

timber oak
obtuse gale
timber oak
#

Oh sry, didn't see that

oblique heath
#

eeh i thought i updated it

old wyvern
#

Thats poorly written, check out the rewrite branch

ocean quartz
old wyvern
#

also, it fetches it from environment variables

obtuse gale
#

referring to this lol

ocean quartz
#

Ah lmao yeah

old wyvern
#

System.Environment.getEnv :: IO String

ocean quartz
#

Hasklashnikov 47

steel heart
#

Valdemar
//dodo
class Alpha {
Beta beta = new Gamma();
}

//better
class Alpha {
Beta beta;
Alpha(Beta beta) {
this.beta = beta;
}
}

then
new Alpha();
vs
new Alpha(new Gamma());

old wyvern
forest pecan
ocean quartz
#

Sounds like Kalashnikov xD

old wyvern
#

Whose that?

steel heart
#

Idk I’m lambda (:

forest pecan
#

lmao

ocean quartz
onyx loom
#

kalashnikov sounds so much cooler than ak

steel heart
#

It kinda of follows liskov substitution principle

#

@timber oak

timber oak
steel heart
#

But also that we shouldn’t depend on low level details

#

Yeah I think so

#

You saw, in the first example that beta variable was tightly coupled with the gamma implementation

old wyvern
# timber oak What's the difference then?

Dependency Injection is about passing dependencies of an object to it, dependency inversion is about high level objects using abstractions to interact with low level objects rather than directly

old wyvern
timber oak
#

So dependency inversion requires the use of abstract classes?

old wyvern
#

Or interfaces

#

abstraction is a general term here

#

Not refering to how the abstraction occurs

forest pecan
#

or just normal classes

#

lol

old wyvern
#

mhm

timber oak
#

So dependency inversion is just like using a super class to access child classes objects or what?

#

Can't exactly remember if it's called super and child

forest pecan
#

super is parent

#

child is you know

steel heart
#

Yeah abstracting as just specifying the behavior, but generally when we speak of abstraction I would say it’s to take away.

forest pecan
#

the child

steel heart
#

super sub

forest pecan
#

i felt like i wasnt actually taught these keywords tbh lol. I just kinda

#

did it

#

i never knew it was called dependency inversion until someone brought up SOLID

old wyvern
#

All the SOLID principles complement each other, this is related to liskov if you understand that

timber oak
#

I don't fully understand liskov though

#

That's kinda a problem ig

steel heart
#

Your program shouldn’t depend on subclasses

forest pecan
#

subclasses organize shit

#

shouldnt control

timber oak
#

Yeah

#

Makes sense

#

Is that liskov?

old wyvern
#

Depend on specific abstractions depending on the requirements rather than implementations. In short, all implementations details must be hidden and assumed to not exist

steel heart
#

I mean my explanation is poor

lunar cypress
#

liskov substitution principle is the simplest of them all

#

It simply states that any object should be replaceable by an object of a sub type without problems

timber oak
lunar cypress
#

Meaning if I have class A and B and C extend A, I should be able to replace A a = new B() with A a = new C() without changing the program correctness

old wyvern
#

Its the same thing vald

lunar cypress
#

it's not the same thing

old wyvern
#

How so?

#

Arent they a cause and effect pair?

lunar cypress
#

They are complementary perhaps, but Liskov didn't say anything like that for this principle

timber oak
#

So B and C are just subclasses of A?

steel heart
#

Yeah or subtypes

steel heart
#

Whatever though of course this doesn’t mean you should go around only using the super type Object

lunar cypress
#

this is it

timber oak
lunar cypress
#

everything that works for parent classes should also work for their subclasses

#

if you want to put it another way

lunar cypress
steel heart
#

If they did it would be meaningless to have 2 both B and C

lunar cypress
#

One example of a violation of this principle is the Java collections framework