#dev-general

1 messages ยท Page 361 of 1

oblique heath
#

where have we gotten with this discussion

#

any new ideas ๐Ÿค”

cinder flare
#

well nowhere because you guys are dismissive of anything I bring up

#

"What's the better way"?

#

i dunno

oblique heath
#

what have you brought up

cinder flare
#

i was hoping maybe you guys could help me figure it out

sweet cipher
#

Or

#

You help us figure it out

cinder flare
#

That standardized testing tests test-taking instead of real knowledge

#

That programming interviews use more theoretical questions than practical ones that will help on the job

#

And those are things I think could be improved

sweet cipher
#

Well interviews are done by private companies, so they can basically do whatever they want right?

cinder flare
#

But asking me how I think they should when I don't know and was bringing them up to you guys, who probably know more than me, isn't reall yhelpful

oblique heath
#

i'll address each of those properly as best as I can

cinder flare
oblique heath
#

first, why do people take tests / interviews

old wyvern
#

The issues is, every form of measurement of a person's skill is a "test"

cinder flare
#

oh boy

#

save it guys

oblique heath
#

people take tests in order to be ranked

cinder flare
#

i don't care

#

just disregard my statements

old wyvern
#

Alright

sweet cipher
#

Something like projects with real-world applications would be better I feel like.

oblique heath
#

i think there'd be a few issues with that

sweet cipher
#

You could use everything from tests in it

old wyvern
#

"You have 3 hours to build and ideate and build the next Instagram"

sweet cipher
#

Lol

#

Make it 2

old wyvern
#

๐Ÿ˜ฎ

oblique heath
#

time constraints, and enough of a difference to not be comprable

sweet cipher
#

But like when is a job going to give you two hours to make a giant project?

old wyvern
#

What projects would you expect?

forest pecan
#

"You have 2 minutes to make Google"

#

while interviewing at Google

#

lol

sweet cipher
#

Lol

#

Improve our whole program as your interview

#

If you fail, you don't get hired

sweet cipher
#

Lol

forest pecan
#

"You have 1 minute to become jeff bezos"

old wyvern
#

^

#

Im applying pulse

forest pecan
#

for Google?

sweet cipher
#

Time starts in 3 seconds

#

Start

old wyvern
#

For the role of "Jeff Bezos"

forest pecan
#

Ah

#

Ic

old wyvern
#

๐Ÿ˜Œ

forest pecan
#

๐Ÿ˜Œ

old wyvern
#

Kindly move his assets to my name

#

Thanks

sweet cipher
#

Just use @forest pecan 's virus to steal his identity

forest pecan
#

Yeah my jumpscare will kill him

#

and then

#

you steal the money

sweet cipher
#

Exactly

old wyvern
#

Lit

forest pecan
#

and next jeff bezos

old wyvern
#

great plan

sweet cipher
#

You "borrow" the money indefinitely

forest pecan
#

Exactly

#

i mean that's why all bank crimes shouldn't be punished

sweet cipher
#

Yeah

#

Its just a loan

forest pecan
#

they are just like barrowing the money man

#

Yeah

sweet cipher
#

Its the banks fault for leaving money out

forest pecan
#

^^ this

sweet cipher
#

Just because you use a vault doesn't mean I should know that its being protected

old wyvern
#

"Oh hi!, Im gonna need to borrow a million dollars."
"Sir, you will have to..."
"I can give you a bullet!!"
".... ok sir... here you go, enjoy"

sweet cipher
#

Why not billions while you are at it?

old wyvern
#

Too much to carry

forest pecan
#

Cashier: "One bullet for 1 billi.. POW"

sweet cipher
#

True

#

You could always come back later I guess

old wyvern
#

True

sweet cipher
#

Tell them you need another loan

old wyvern
#

How many bullets you got?

sweet cipher
#

Hmm

forest pecan
sweet cipher
#

You could buy at least seven with a couple million dollars

oblique heath
#

oh as far as those competition problems go, how about having a statistics related one

old wyvern
forest pecan
sweet cipher
#

From dancing cows to banks

old wyvern
#

There are similar ML competitions now I think

sweet cipher
#

Very related

hot hull
#

This is new

old wyvern
#

Daggle or Doggle or something

half harness
#

๐Ÿ‘€

sweet cipher
#

If someone actually does have some more beginner-type questions I would love to try them lol.

oblique heath
#

i have one

#

that i ripped from youtube

#

its not exactly an algorithm question though

sweet cipher
#

It doesn't matter

forest pecan
sweet cipher
#

Any type of question

old wyvern
#

Go through project euler

oblique heath
#

print the numbers 1-100 in java, but without using any numbers in your code

sweet cipher
#

hmm

#

I will have to think about that

forest pecan
#

characters

#

character subtraction

#

maybe

lunar cypress
#

that's just trickery

oblique heath
#

yes

sweet cipher
#

Oh I have it

forest pecan
#

oh nvm ik lol

sweet cipher
#

"One Two Three Four Five..."

oblique heath
#

no

#

well

#

no

sweet cipher
#

Yes?

oblique heath
#

print 1 2 3 etc

sweet cipher
#

Okay

lunar cypress
#

daily coding problem or project euler if you want algorithms style questions

oblique heath
#

there'a actually 2 major ways with a bunch of minor adjustments as far as i can tell

#

maybe more than 2 idrk

sweet cipher
#

Wait

#

Can you define no numbers?

oblique heath
#

you cant type '1' in your code

#

anywhere

#

same for the other digits

sweet cipher
#

Like could I use indexOf list, then ++ to that until I get to 100?

oblique heath
#

sure i suppose

old wyvern
lunar cypress
#

i see int

oblique heath
#

yeah that'd be valid

#

int is fine

old wyvern
#

But there isnt a literal ๐Ÿฅฒ

forest pecan
#

just use var lmfao

sweet cipher
#
     List<String> list = new ArrayList<>();
        list.add("");
        for (int i = list.indexOf(""); i <= 100; i++) {
            System.out.println(i);
        }
forest pecan
#

switch to java 11

#

๐Ÿฅฒ

oblique heath
#

thats pretty close to the solution the youtube guy had so props yugi

old wyvern
#

๐Ÿฅฒ

oblique heath
#

master.... that has numbers

#

try again

sweet cipher
#

Oh oops

forest pecan
#

lmao

sweet cipher
#

I'll just manually add 100 Strings

forest pecan
#

or just use character subtraction

#

for 100

#

lol

old wyvern
#

macros

#

ftw

oblique heath
#

dont use ascii if you cant help it, i think the alternative solution that i came up with is much more creative

hot hull
#

aaaaaaaaaaaaaaaaaaa

#

Bouta kms

forest pecan
sweet cipher
#

Actually I have a solution

forest pecan
#

๐Ÿฅฒ

old wyvern
#

Is the restriction only on number literals ivan?

oblique heath
#

yes

hot hull
#

lol Pulse

sweet cipher
#
  List<String> list = new ArrayList<>();
        list.add("");
        int i = list.indexOf("");
        while (true) {
            System.out.println(i);
        }
forest pecan
oblique heath
#

just dont have any digit chars in your source

#

no

hot hull
#

You ping me one more time and Imma whoop ur ass

oblique heath
#

bad master

sweet cipher
#

It works

forest pecan
hot hull
#

This mf

oblique heath
#

it doesn't give 1-100 as output

sweet cipher
#

Yes it does

oblique heath
#

it gives 1-max int as output

sweet cipher
#

It just gives extra

oblique heath
#

that's no good

#

if i ask for 1 squirt of mayo on my sandwich

#

i don't want the whole bottle

sweet cipher
#

Fine

#

So "1" isn't allowed right?

#

Like in a string?

oblique heath
#

correct

#

yes

#

that is not allowed

sweet cipher
#

k

hot hull
#

just print out ascii values, ez

forest pecan
#

that is true

#

that works well

oblique heath
#

yeah ascii is the correct answer that the youtube video had

#

but there is another way

hot hull
#

There's probably multiple, ascii is the most logical tho

oblique heath
#

definitely

cinder flare
oblique heath
#

yep ๐Ÿ˜‚

sweet cipher
#

Oh

#

I forgot to add i++

#

lol

#

What is your solution @oblique heath

oblique heath
#
int a = Integer.MAX_VALUE - Integer.MAX_VALUE;
while((a+"").length() < "aaa".length()){
   System.out.println(++a);
}
old wyvern
#
BigInteger limit = BigInteger.TEN.multiply(BigInteger.TEN);
for (BigInteger i = BigInteger.ONE; i.intValue() <= limit.intValue(); i = i.add(BigInteger.ONE)) {
       System.out.println(i);
}
oblique heath
#

i could replace that first line with

int a = "".length();
#

or really anything that gave 0 i suppose, lots of possibilities there

sweet cipher
#
  String s = "                                                                                                    ";
        while(!s.isEmpty()) {
            s = s.substring(s.length() - s.length(), s.length() - " ".length());
            System.out.println(s.length());
        }
old wyvern
#

Write 100 with only 1 literal and nothing else but it must only contain one 0

prisma wave
#

church encoding

old wyvern
#

shh

old wyvern
#

You probably know bm

#

xD

old wyvern
oblique heath
#

i dont know what that means

prisma wave
#

I'd need a minute to think about it

hot hull
#
final String poggers = "ABCABCABCABCABCABCABCABCABCABC";
for (int index = (int) BigInteger.ONE; index < poggers.length(); index++) {
  System.out.println(index);
}
old wyvern
#

0x64

hot hull
#

Yes/No?

oblique heath
#

oo hex

old wyvern
#

lol

old wyvern
#

You cant ++ on a big integer

#

๐Ÿฅฒ

#

What

#

int index = BigInteger.ONE

#

Still no

hot hull
#

shut up

old wyvern
#

You cant cast big integer to int

hot hull
#

go outside

old wyvern
#

xD

sweet cipher
#

Did you see my answer @oblique heath ?

oblique heath
#

yes

sweet cipher
#

Best answer there is

oblique heath
#

are there a hundred spaces in that first string?

sweet cipher
#

There are

oblique heath
#

xd

#

the only other problem i've seen from that youtuber is print "hello world" without using any semicolons in java

hot hull
#

What were the conditions anyways btw?

oblique heath
#

you couldn't use any digits in your code

#

and had to print 1 to 100

hot hull
#

weak

oblique heath
#

yeah the hello world one is a fair bit easier

#

or at least there are less possibilities

hot hull
#

"without using any semicolons" :what:

oblique heath
#

you can't type ;

stuck harbor
#

but

oblique heath
#

in your code

#

at all

stuck harbor
#

that

hot hull
#

Well yea I get that

#

but how

oblique heath
#

???

stuck harbor
#

java needs semicolons everywhere

oblique heath
#

it's easy

hot hull
#

'tis java

oblique heath
#

are you guys serious

stuck harbor
#

java seperates statements with ;

oblique heath
#

yes

half harness
sweet cipher
#

Just don't use java

oblique heath
#

i got this in like... seconds

stuck harbor
#

unless ur gonna just use clojure or kotlin

hot hull
#

Show

oblique heath
#

please dont raise my self esteem like this

stuck harbor
#

tf

#

i don't

old wyvern
#

Unicode escapes

stuck harbor
#

how are u gonna

oblique heath
#

do you want me to tell you

stuck harbor
#

what

oblique heath
#

how

sweet cipher
#

Yes

stuck harbor
#

yes

hot hull
#

Do share

forest pecan
#

yall ass the best solution is to read from a file

#

loll

oblique heath
#

if(System.out.printf("hello world") == null)) {}

hot hull
#

You still need semicolons idot

oblique heath
#

nope

hot hull
#

Was a response for Pulse

forest pecan
#

no

oblique heath
#

ah xd

forest pecan
#

like the numbers

#

1 - 100

#

in the file

sweet cipher
#

I was thinking of that but sout doesn't return a String so I didn't know how lol

hot hull
#

kek

forest pecan
#

but not in the code

#

lol

stuck harbor
#

dat insane bro

oblique heath
#

yeah, System.out.printf returns the printstream i think... or something

hot hull
#

println is a void tho?

oblique heath
#

i'm using printf

sweet cipher
#

Yeah

hot hull
#

ah

oblique heath
#

you can also use System.out.append

forest pecan
half harness
#

btw why does kotlin have print when all it does is just call System.out.print

oblique heath
#

why does kotlin have fun

forest pecan
#

cause System.out.print is useful

hot hull
#

I'm not having any fun

half harness
#

but like whats the point of it

cinder flare
forest pecan
#

it doesnt append a line

half harness
#

y not just do System.out.print

forest pecan
#

it appends to the current line

lunar cypress
forest pecan
#

wdym why?

#

lol

#

concise

#

lmfao

half harness
#

ok

forest pecan
#

thats all of kotlin

#

kotlin's goal is to be super concise

#

lol

hot hull
#

I just spent 10min figuring out why gradle isn't installing properly, when I misswrote the path to it :sadge:

#

Matt, Triumph Chat Where

ocean quartz
onyx loom
#

who in their right mind would prefer writing System.out.println???????

ocean quartz
oblique heath
#

why does cpp have endl when you can just use "\n" ๐Ÿ˜Ž

sweet cipher
#

Why does 2+2=4?

hot hull
#

First appropriate thing to do when updating a project

old wyvern
#

@oblique heath

#

How about

public class HelloWorld{

     public static void main(String []args){
        /*\u002a\u002f\u0053\u0079\u0073\u0074\u0065\u006d\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e\u0028\u0022\u0048\u0065\u006c\u006c\u006f\u0020\u0057\u006f\u0072\u006c\u0064\u0022\u0029\u003b\u002f\u002a*/
     }
}
onyx loom
#

i agree frosty

oblique heath
#

o.O

onyx loom
#

next is ctrl alt shift k

hot hull
#

No Kali

old wyvern
#

Did you try running it?

oblique heath
#

should i?

onyx loom
#

does this mean its already in kotlin? ๐Ÿ™‚

hot hull
#

Nein

ocean quartz
#

Next is to change to kts gradle

onyx loom
#

disgusting

old wyvern
#

Yes ivan

oblique heath
#

it's all in a comment

#

will it work?

old wyvern
#

Try running

oblique heath
#

ok

#

oh damn

old wyvern
#

lol

oblique heath
#

what is this witchcraft

old wyvern
#

unicode magic

oblique heath
#

ohh wait

#

are you escaping the comment with unicode

winter iron
#

is it possible to do like in kotlin

val smth: Type = {
    do some stuff here
    to get me my variable

    return variable
}

Where variable is then assigned to smth

oblique heath
#

then running the code for hello world

old wyvern
#

Yes

#

Java just converts unicode back to characters before lexing

oblique heath
#

that's pretty kewl

old wyvern
#

This is the unicode string */System.out.println("Hello World");/*

oblique heath
#

would it be possible

oblique heath
#

to instead of using the */ /* unicode

#

just have it inside a 1 line comment and encode a newline char in unicode

winter iron
#

how so

#

also i dont wanna have to compute the variabl each time

old wyvern
#

Dont think so

#

But worth a try ig

oblique heath
#

aw

#

yay

half harness
#

i thought it was init {}

old wyvern
#

ya nope

prisma wave
#

That could work too

old wyvern
#

that doesnt work

oblique heath
#

darn

#

still very cool

half harness
oblique heath
#

i'll have to play around with that later

old wyvern
#

lol

onyx loom
#

init is called when the class is instantiated, not used for a variable

prisma wave
half harness
#

๐Ÿคฆ

#

example?

prisma wave
#

no that's literally it

#

It just runs the function and returns the value

winter iron
#

@prisma wave does that run once and just store the output right?

#

doesnt recompute

old wyvern
#

You could alternatively do

{

}()
#

js style

prisma wave
#
val x = run {
    print(31)
    2819
}```
winter iron
#

wonderful

winter iron
#

๐Ÿฅฒ

old wyvern
#

val x = {
print(31)
2019
}()

prisma wave
#

I'm actually curious as to how kt handles that

#

Since java variables can only be 1 thing and run is inline

#

I guess it does it in the constructor

half harness
#

wait how do i make constructor in kt again?

#

not init{}

prisma wave
#

()

onyx loom
#

class Blah()

half harness
#

also how do i remove this thing

#

the add to favorites

old wyvern
#

run (() -> Int) ?

prisma wave
#

?

#

() -> T

old wyvern
#

yes

#

I mean the java version

#

Is run an inline function?

prisma wave
#

no but run is inlined

#

Yes

#

like let or also

old wyvern
#

It just calls the lambda

half harness
old wyvern
#
val x = {
   print(31)
   2019
}()
#

^

onyx loom
#

what

#

wait how do i make constructor in kt again?
not init{}

old wyvern
#

What?

half harness
#

like how do i have 2 constructors

old wyvern
#

constructor keyword

half harness
#

oh

#

constructor {}?

prisma wave
old wyvern
#

with params

old wyvern
prisma wave
#

That's what inline means?

old wyvern
#

No

ocean quartz
old wyvern
#

it copys the definition

prisma wave
#
run {
   a()
   b()
}
a()
b()

These are the same

#

oh

old wyvern
#

Not neccessarily

#

it copys the body of run as well

prisma wave
#

No I know what you mean I think

#

Yeah

#

My bad

#

Maybe

#

I wanna check when I get home

half harness
#

:c

old wyvern
#

Sure

winter iron
#

Another question, I use EntityEquipment packet to display a block on a players head but in their inventory slot i want it to be the original item

#

how would i do

hot hull
#

Simply by just doing it

sweet cipher
#

Maybe complicatedly doing it

flint crown
#

Hi, i have a questing about AutoSell plugin, when i do /asa setmultiplier MYNAME 0.5 0:1:0, it does give me an multiplier 0.5 when i do /multiplier. But when i sell it at the sign, it tells me, i have mutiplier 1.5, why?

hot hull
onyx loom
hot hull
#

elixir, was gonna kek if it were clojure again

onyx loom
#

fuck clojure

#

all my homies hate clojure

cinder flare
#

I got Haskell! ๐Ÿ˜„

oblique heath
#

is golang in there somewhere

onyx loom
#

no

#

just functional languages

oblique heath
#

dammit

#

D:

#

can't even emote in peace

hot hull
#

Oh this hoe

half harness
cinder flare
#

dude the haskell website kinda slaps

#

im doing the tutorial and its pretty cute

forest pecan
half harness
#

sedner

forest pecan
#

yes

#

๐Ÿฅฒ

half harness
#

should be "This guide talks about tax evasion" not "This guide talks about Tax Evasion"

forest pecan
#

Fuck

half harness
#

lol

forest pecan
#

i should've screenshotted that

#

@obtuse gale

#

lmao

obtuse gale
onyx loom
#

alt + z ๐Ÿ‘€

jovial warren
#

@prisma wave AI to figure out the description when

obtuse gale
#

Okay listen here you little shit

half harness
#

oop

old wyvern
#

Another fellow haskeller

#

amazing

cinder flare
jovial warren
half harness
forest pecan
#

Guys Haskell is the superior language

jovial warren
#

nah I'm talking about it figuring out something that makes better sense

old wyvern
#

Welcome to the Simon followers club my man

forest pecan
#

the true alpha

jovial warren
#

to make it more convincing

cinder flare
#

ah I see

old wyvern
cinder flare
#

take the first google search of tax evasion and slap that bad boy in

jovial warren
#

you have about 3 brain cells at the best of times I swear

forest pecan
#

does .toUpperCase

#

already exist

#

lol

cinder flare
#

wait why would you capitalize it lmao

#

the problem was it not being lowercase

half harness
#

at least i dont have 2

jovial warren
forest pecan
#

oh wait

#

nvm

#

capitlize does first letter

#

only

cinder flare
#

probs yeah

jovial warren
#

imagine needing an entire method just to make the first character upper case

forest pecan
#

wdym?

sweet cipher
#

Yeah like why not use 2 methods?

forest pecan
#

it makes sense

cinder flare
#

functional gang?

oblique heath
#

it's probably faster than the alternative

cinder flare
#

i dunno

forest pecan
#

cause spaces in string

#

lol

half harness
#

i should make an alt account and no one can bully me anymore

obtuse gale
onyx loom
#

we would soon find out anyway

oblique heath
onyx loom
#

ur not hard to tell apart

obtuse gale
#

You will always need a method for it

sweet cipher
#

dkim19376?

half harness
prisma wave
half harness
#

guess the username then

half harness
#

its already in this server

forest pecan
half harness
#

WrOnG

prisma wave
jovial warren
half harness
prisma wave
#

Could also use different separator characters or something to do different meanings

onyx loom
#

why have u just tagged me twice for the same message

half harness
#

oh id did?

#

oops

prisma wave
#

Go is nice but it's not pure enough

onyx loom
#

minus a brain cell that bardy kindly told u u had

cinder flare
half harness
#

๐Ÿ˜ฆ

oblique heath
#

what about swift

cinder flare
#

swift is just apple kotlin lol

prisma wave
#

Yeah

onyx loom
#

add java it has streams, very functional ๐ŸŒ

prisma wave
#

ZERO purity guarantees!

#

Unacceptable!!

forest pecan
oblique heath
#

what exactly is purity

#

in this context

cinder flare
#

pretty sure it's if a function has no side effects and is entirely self contained?

prisma wave
#

pretty much

cinder flare
#

so like, you pass 2 things to add and it returns those numbers added

#

doesn't change state or anything

prisma wave
#

No side effects, and doesn't modify anything that isn't defined in the function itself

forest pecan
#

a random function would be impure

#

right

prisma wave
#

Technically not

oblique heath
#

is C pure then

prisma wave
#

If you know the seed and the number of invocations then it's pure

forest pecan
#

oh

prisma wave
oblique heath
#

well i guess c has structs

prisma wave
#

C is all about mutating things

ocean quartz
#

How deep does it normally go? I couldn't think of any complex component to test either, that looks good though

cinder flare
prisma wave
#

C has that?

cinder flare
#

i mean it has bit shifts

#

i dunno if that's the syntax lol

prisma wave
#

o right lol

cinder flare
#

yes it does!

prisma wave
#

I thought you meant like c++

cinder flare
#

nah nah

forest pecan
#

it should be the same

#

for c

cinder flare
#

C++ big weird

#

cout << "potato" << endl was a mistake

forest pecan
#

lol

prisma wave
#

definitely questionable

jovial warren
forest pecan
jovial warren
#

okay that's enough

forest pecan
#

its not

#

we must go deeper

ocean quartz
#

We're talking about children here

forest pecan
#

Yeah

#

obvioulsy not like

hot hull
#

I mean I'm digging a grave so yea, it's gotta be deep

ocean quartz
#

Lmao

forest pecan
#

for who?

#

lol

oblique heath
#

wait so if you have a pure language

hot hull
#

Me, myself & I

cinder flare
#

awe nice

forest pecan
#

damn

oblique heath
#

how would you represent data structures within that

forest pecan
#

ig you gotta dig 3

#

now

cinder flare
#

is there room for 3?

#

yea

prisma wave
oblique heath
#

like if you wanted a binary tree or something, how would you implement that

hot hull
#

It'll be a tight fit

cinder flare
forest pecan
cinder flare
#

weird how most things in most languages are mutable by default

prisma wave
prisma wave
forest pecan
#
public class TreeNode {
  private final Set<TreeNode> children;
   ...
}
#

like so

prisma wave
#

sure

cinder flare
#

hurry someone code a linked list in haskell

prisma wave
#

Haskell can do a binary tree in literally 1 line iirc

oblique heath
#

wows

forest pecan
#

heap sort is from a tree

#

from what i heard

oblique heath
#

so it's not all that different from other languages, you still have classes and instance variables and the like

#

i was imagining a completely functional language that could only have functions and nothing else lol

prisma wave
#

Yeah people will say "FP is TOTALLY different" but it's really not a massive change

cinder flare
#

i mean, Kotlin has some FP in it right?

prisma wave
#

Yeah

#

You could technically call Kotlin functional

cinder flare
#

so like, there can be a mix

prisma wave
#

Mhm

cinder flare
#

just the percentage skews

prisma wave
#

yeah

cinder flare
#

like haskell is 90% 100% functional

#

kotlin is like, 20%?

prisma wave
#

Haskell is definitely 100%

cinder flare
#

damn wtf that's awesome

prisma wave
#

Haven't tested that but yeah

oblique heath
#

how about F#

#

do your magic, magic man

prisma wave
#

Uh

hot hull
#

@ocean quartz Have you found Triumph Chat yet?

old wyvern
#

Haskell is !!Pure!! and functional ๐Ÿ˜Œ

prisma wave
#

I think it would be ```fs
type List<'a> =
| Empty
| Node of 'a * List<'a>

#

So a bit more syntaxy

ocean quartz
oblique heath
#

๐Ÿ˜ฎ

hot hull
#

Yea I've been using it on a beta server and it seemed to work

prisma wave
# cinder flare kotlin is like, 20%?

Not sure you can really measure it in percentages. Kotlin is technically 100% just like it's 100% Turing complete, but it's not purely functional and doesn't have a lot of FP-related features built in

hot hull
#

trynna convince this dumbass to throw it on the main server but he'd rather use shit like VentureChat

prisma wave
#

oh whoops

#

Yeah I didn't see that

oblique heath
#

what are there instead of classes then o.o

onyx loom
prisma wave
#

structs, records, discriminated unions, tuples, it depends on the language

old wyvern
#

Also functional would mean more of solving something relying heavily on functions and operations on functions and not being just function

old wyvern
#

Basically even a simple let binding* is a function in haskell

#

due to lazyness

#
let a = 5

Would translate to

val a = { 5 }

in kotlin

prisma wave
#

I mean even types just compile to functions in Haskell

old wyvern
#

wdym?

#

Do they have a function like representation on compilation?

prisma wave
#

I think so

old wyvern
#

๐Ÿ˜ฎ

#

Didnt know that

prisma wave
#

Simon talked about it in that talk iirc

old wyvern
#

The ivory tower one?

prisma wave
#

yeah

old wyvern
#

I see, Ill rewatch that tonight then I guess

prisma wave
#

๐Ÿ‘ ๐Ÿ‘

static zealot
half harness
#

lol

stuck harbor
#

hehe

half harness
#

woah

#

wtf it says i sent message at 12:25

stuck harbor
#

I don't do requests atm

half harness
#

but blitz sent at 12:26

#

๐Ÿ‘€

stuck harbor
#

stonks

#

ur PC's clock is probably out

half harness
#

hm

hot hull
#

sheesh

ocean quartz
#

Old ones on central vs new one on my repo
The central one wasn't my choice to add the utils

jovial warren
#

wait a minute

#

if mf-msg supports Adventure, that means it'll work on Krypton

#

๐Ÿ˜

jovial warren
#

lol

#

what is that

#

yes

#

guard clauses superior

#

totally didn't pick that term up from a YT video about noob vs advanced vs pro JS lol

onyx loom
jovial warren
#

until you end up with about 10 statements

#

and then you can do what my friend did once on AnyDesk and use the draw feature to literally draw a line down the side of my code

onyx loom
#

2 is max

half harness
#

arrow code ๐Ÿ˜ฆ

onyx loom
#

but still no arrow code >

prisma wave
half harness
#

โ˜น๏ธ

jovial warren
prisma wave
#

nothing

#

That's what they are

#

But statements bad

jovial warren
#

if statements are declarative wdym

#

how can you not like if statements

onyx loom
#

lol what

jovial warren
#

if statements are declarative

#

BM taught me that

onyx loom
#

i mean

jovial warren
#

think about it

prisma wave
#

Statements bad

#

Expressions good

onyx loom
#

nothing
That's what they are
But statements bad
fuck does this mean

prisma wave
#

lol

onyx loom
#

literally makes no sense

jovial warren
prisma wave
prisma wave
#

Everything should be an expression

#

That's how to separate the good languages from the bad ones

jovial warren
#

so if bad then

prisma wave
#

If statements bad

#

If expressions good

onyx loom
#

questionable

prisma wave
#

no

#

not questionable

#

objectively true

#

try catch statements ๐Ÿคฎ ๐Ÿคฎ ๐Ÿคฎ ๐Ÿคฎ

onyx loom
#

try catching knpe ๐Ÿ™‚

cinder flare
#

statements? everything be function

prisma wave
#

Close enough

jovial warren
#

oh btw, I was actually reading something earlier that's really interesting, it's about mixins in Kotlin

onyx loom
#

sorry should we use try catch EXPRESSIONS instead?

cinder flare
#

it's so cool how in kotlin you can put a function as an assignment with equals signs

jovial warren
#

so you know how Kotlin has delegates right?

cinder flare
#

it just makes sense, ya know?

prisma wave
#

yes

jovial warren
#

and you know you can use them for properties?

#

well guess what

#

you can use them for inheritance too

prisma wave
#

Result types >

onyx loom
#

lol

obtuse gale
#

How casn you reforge items in hypixel skyblock pls dm if you know

jovial warren
#

e.g. ```kotlin
class Book : Orderable by Ordered()

#

(example from the article lol, or at least, part of it)

prisma wave
onyx loom
jovial warren
#

blew my mind that one

prisma wave
#

Oh fair enough

#

Yeah they're cool

#

No?

onyx loom
#

not at all ๐Ÿ™‚

jovial warren
#

you've never visited BM's wiki before?

#

do it

#

it's not a rick roll

#

trust

onyx loom
#

disgusting behaviour tbh

prisma wave
#

Lol

#

It doesn't store any cookies

#

Refresh the page ๐Ÿ™‚

jovial warren
#

yeah it just sends you to a random functional programming language's site

#

ew Chrome

#

ew

jovial warren
#

the Dust programming language

#

lol

prisma wave
#

Rust is the exception to the rule because it is SAFE and MODERN

#

what

jovial warren
#

ngl Rust's compiler safety is out of this world

stuck harbor
#

a pointer points to a location in memory

#

or am i too C for this

jovial warren
#

ffs why does IntelliJ reset my style every fucking time

#

or maybe it's Material getting confused or something

prisma wave
stuck harbor
#

:)))

prisma wave
#

mutable reference

jovial warren
#

pointers are weird

prisma wave
#

nah

jovial warren
#

but also amazing

prisma wave
#

pointers good

#

Go makes pointers easy

stuck harbor
#

pointers are good a pointing

#
urmum* sucks = &gae;
jovial warren
#

also, * ( long * ) &y cookie to anyone who can tell me what this does (y is a float)

#

what
the
actual
fuck

prisma wave
onyx loom
#

oh my god

#

delete this

prisma wave
#

to read the float as a long

jovial warren
#

yep

prisma wave
#

thought so

jovial warren
#

so what does it do

#

(I already know this lol)

prisma wave
#

reads the float as a long

obtuse gale
onyx loom
#

if ur not going to brace the ifs atleast put them on the same line

prisma wave
#

yeah

jovial warren
half harness
prisma wave
#

i would like to see RUST do this

#

when SAFETY goes too far..!

jovial warren
#

first, we read the address, then we convert that address, then read what's at the converted address

half harness
#

idea for krypton:

jovial warren
#

๐Ÿ‘€

obtuse gale
#
union {
  float a;
  long b;
}

does the same thing :)

half harness
#

make it not print out the players ip address on join ๐Ÿ™‚

prisma wave
#

union types ๐Ÿคค

sweet cipher
#

Then how are server owners supposed to threaten their players?

jovial warren
#

also, it already doesn't do that

prisma wave
#

oh but they're C union types

half harness
prisma wave
#

oh dear

half harness
#

ppl just paste logs

#

while players are joining

jovial warren
#

I can have an option to disable that

half harness
#

and they dont know that they're leaking ip addresses

half harness
sweet cipher
jovial warren
#

maybe in super-secret-settings.conf or something lol

obtuse gale
half harness
jovial warren
#

might convert the config to HOCON tbh

#

HOCON superior

#

HOCON good TOML bad

old wyvern
#

oh btw @quiet depot let me know when you want to talk about the c# thing

half harness
#

pinging admin ๐Ÿ‘€

prisma wave
#

ban C#

old wyvern
#

I've finished my work

jovial warren
#

he doesn't mind

half harness
#

i still have traumatic experience ๐Ÿ‘€

jovial warren
#

oh btw, what do you guys think about me converting the config from TOML to HOCON?

prisma wave
#

dont see the point in BEING staff if you CRY when some one asks you a QUESTION and never be active

old wyvern
#

Overdramaticided

jovial warren
#

I think HOCON is my favourite file config format now tbh

#

it's so versatile

prisma wave
#

message from:clip#123914 in last YEAR ... 0.01

old wyvern
#

Consider ELON

half harness
#

my fav is yml

old wyvern
#

its very versatile

cinder flare
jovial warren
#

lemme give a demonstration for the uninitiated about how versatile HOCON is

distant sun
#

Hocon is cool

prisma wave
cinder flare
old wyvern
#

What happened to fanny cube?

jovial warren
#
{
    "foo" : {
        "bar" : 10,
        "baz" : 12
    }
}

"foo" : {
"bar" : 10,
"baz" : 12
}

foo : {
    bar : 10,
    baz : 12
}

foo {
bar = 10,
baz = 12
}

foo {
    bar = 10
    baz = 12
}

foo.bar=10
foo.baz=12

foo.bar=10, foo.baz=12
```
prisma wave
#

not so funny anymore

jovial warren
#

every single one of those is valid HOCON

prisma wave
#

BAN WALL OF text

old wyvern
#

damn

prisma wave
#

yeah ever heard of GROOVY

#

SAME THING

cinder flare
#

hmmm

old wyvern
#

Did someone ask you to change?

#

bm

cinder flare
#

i prefer Kotlin myself honestly

prisma wave
#

nah

old wyvern
#

ah ok

prisma wave
#

just got bored

jovial warren
#

Kotlin DSL superior

cinder flare
#

how come we don't see more kotlin DSL?

jovial warren
#

we do

cinder flare
#

I've only ever seen it in gradle

old wyvern
#

Overhyped dsls

#

๐Ÿ˜ซ

prisma wave
#

overrated and unprofessional

jovial warren
#

also, imagine using a DSL that doesn't syntax highlight properly

old wyvern
#

Haskell could do better

jovial warren
prisma wave
#

^^

#

dependencies = do
implementation <- MONAD
return ()

old wyvern
jovial warren
#

what is your obsession with monads

prisma wave
#

why wouldnt you be obsessed?

jovial warren
#

data Maybe T = Just T or Nothing that's actually not that bad tbh

prisma wave
#

drooling face emoticon

distant sun
jovial warren
onyx loom
#

lol

distant sun
#

Also, who put a space between the key and : ew

prisma wave
#

no dslef despecting indivudal would uyse that

#

bastard

cinder flare
#

what package manager is that

#

not apt right?

prisma wave
#

yay

cinder flare
#

ah i love yay

#

pacman/yay gang all the way

prisma wave
#

i love it WHEN it works

#

NOT HAPPY right now

cinder flare
#

oh...

#

but just typing yay always makes me smile

stuck harbor
#

whats the opposite of finalizedBy in gradle?

#

as in, how do i make it start with that

onyx loom
#

startedBy

stuck harbor
#

k

#

merci

prisma wave
#

good news CHROME-DEV has worked

stuck harbor
#

๐Ÿ‘€

prisma wave
#

now i cna GOOGLE the eror for chrome-stable

stuck harbor
#

wait

#

how do i run a task in doFirst

#

im goodn't at gradle lol

#

ughhh i don't really need to clean do i

#

naahhh

#

i dont need the clean task

hot hull
#

How inefficient is a timed cache

lunar cypress
#

What do you want to do exactly

stuck harbor
#

nah its alright

#

dw

hot hull
#

@west fjord This a custom world gen ploogin, or something already out there?

west fjord
#

It's custom made

#

@hot hull we made our own algorithms

hot hull
#

And I assume it ain't OS

west fjord
#

No

hot hull
#

Sadge

west fjord
#

OS is a plugin?

hot hull
#

No, I meant as in is it Open Sourced

west fjord
#

no its private

onyx loom
#

nt frosty

hot hull
#

OS or death ;C

jovial warren
jovial warren
#

woooooooooooooooooow

hot hull
#

Such disrespect

#

Making my life hard when I could've just Ctrl C + Ctrl V

jovial warren
#

what's the point in making a world generation system if it's not available for use to the outside world

onyx loom
#

lol

jovial warren
#

I'll probably end up making my own from scratch in Kotlin tbh

#

might steal a bit of your work though Frosty

#

and credit you where I do

hot hull
#

what work :kek:

jovial warren
#

I mean, not a bad point

hot hull
#

I'm waiting for Yugi to make the visualizer, but I think this dood forgot

jovial warren
#

I just need the numbers lol

#

also might rewrite Starlight in Kotlin as well

#

because its codebase is absolutely horrible

hot hull
#

So I had an issue to fix in an existing plugin I didn't write, I kind of rewrote everything from scratch :kek:

#

When you can't be fucked figuring out other peoples code fingerguns

jovial warren
#

I want Krypton to be pretty much entirely Kotlin

#

with some Java libraries in there ofc

half harness
#

kotlin client fingerguns

jovial warren
#

oh yeah, BM

#

PDM support Krypton when

#

you can support Krypton ez since I expose addPath (wraps addURL and takes a Path and converts it to a URL)

jovial warren
#

in the future

half harness
#

lol just remake mc

#

mc v2 - $25

#

/s

hot hull
#

Latest airplane

half harness
#

hhhhhhhhhooooooooooowwwwwwwwwww

#

1.16?

hot hull
#

yes

prisma wave
jovial warren
prisma wave
#

ty

#

saves me some effort

onyx loom
#

brister mitten tutorials is becoming like papi 3, its a myth

prisma wave
#

๐Ÿฅฒ

half harness
#

๐Ÿ˜ฆ

prisma wave
#

forgot about those lol

onyx loom
#

do we have any updates or are u "busy"

prisma wave
#

ill revive them when i remember

half harness
#

โ˜น๏ธ

prisma wave
#

nah im technically not busy anymore

#

kinda

jovial warren
jovial warren
half harness
#

bm :c

jovial warren
#

does that mean you can work on Krypton now?

#

๐Ÿ‘€

onyx loom
#

lol

prisma wave
#

maybe

half harness
#

okay gimme the script bm

prisma wave
#

no

#

what

half harness
#

ill record

prisma wave
#

o

half harness
#

||using google translate voice||

prisma wave
#

voice reveal?

jovial warren
#

I'd love to have you back

#

the three of us

#

me, you and Nicole

prisma wave
#

you seem to have done most of the work already

hot hull
#

I am speeeeeed

jovial warren
#

there's still a hell of a lot to do though

half harness