#dev-general

1 messages ยท Page 121 of 1

old wyvern
#

Im pretty sure kotlin just calls that from the top level func

prisma wave
#

it's inline

#

so yes

topaz bay
#

language. FEATURE.

#

god dammit

obtuse gale
#

thats just confusing

old wyvern
#

@prisma wave Is the FriggaParser class not supposed to be in the repo?

topaz bay
#

How is that confusing?

prisma wave
#

it gets generated

#

gradle generateGrammarSource

hot hull
#

How should one measure code performance?

heady birch
#

Jprofiler!

#

or YourKit!

obtuse gale
#

wouldnt push (1+2) make more sense?

remote goblet
#

if it doesnt happen instantly your code is garbage

#

0ms or nothing

topaz bay
#

?????

obtuse gale
#

oh wait

#

lemmoh yeah nvm

topaz bay
#

The point is that push can be interleaved into expression evaluations

obtuse gale
#

i just misread it lol

prisma wave
#

imagine only having 3 unit tests

topaz bay
#

Imagine not writing your own code

#

๐Ÿ˜‰

prisma wave
#

imagine reinventing the wheel

topaz bay
#

Imagine not being able to reinvent the wheel

errant geyser
#

Which one of ur languages is better

#

I wanna include one in KatOS

prisma wave
#

imagine being able to but choosing not to waste time

#

frigga better

topaz bay
#

You literally based all your internals on my code

prisma wave
#

not all

topaz bay
#

LIES

prisma wave
#

i took inspiration

old wyvern
#

@prisma wave Most work fine, yield and nested call tests seem to be failing

prisma wave
#

yeah those are buggy atm

old wyvern
#

ah

prisma wave
#

do you get anything like this? line 4:0 mismatched input 'print' expecting {<EOF>, NEWLINE} line 3:0 mismatched input 'println' expecting {<EOF>, NEWLINE} line 2:0 mismatched input 'use' expecting {<EOF>, NEWLINE} line 7:0 mismatched input 'yield' expecting {<EOF>, NEWLINE} line 3:0 mismatched input 'struct' expecting {<EOF>, NEWLINE}

old wyvern
#

Otherwise it seems to run just fine

#

no nothing like that

errant geyser
#

So Odin or Frigga?

prisma wave
#

very strange

topaz bay
#

Imagine not writing your own parser

prisma wave
#

must be my pc then

#

ok thanks for testing

topaz bay
#

And having it not work

#

CAnT RELATE

prisma wave
#

it's worked fine up until now

#

CABT

topaz bay
#

Yeah yeah

#

Thats what they all say

#

If you had written it yourself, you wouldnt have issues with this

prisma wave
#

just windows bad apparently

topaz bay
#

I will tell you though, your issue is probably because windows also uses \r

prisma wave
#

possibly

#

but if it worked for Yugi

#

and I am taking \r into account

errant geyser
#

Odin or Frigga? Which is better right now?

prisma wave
onyx loom
#

u choose katsu

prisma wave
#

๐Ÿ˜ฆ

#

it's intellij's fault

topaz bay
#

\r doesnt mean new line

prisma wave
#

works fine inside the terminal

topaz bay
#

it means beginning of this line

prisma wave
#

ik

onyx loom
#

but id say kotlin ๐Ÿ™ƒ

prisma wave
#

but windows uses \r\n for newlines I believe

topaz bay
#

which is why I treat it as whitespace

old wyvern
#

\n\r right?

prisma wave
#

possibly

errant geyser
#

Sx Odin runs on the JVM right?

topaz bay
#

...

#

Its kotlin dude

errant geyser
#

so yes then

#

ok

#

Wait I could write a minecraft plugin in it then yeah?

topaz bay
#

probably not

prisma wave
#

pretty sure neither of us have done interop very well

topaz bay
#

I mean...

#

I have

hot hull
#

Have you tho

topaz bay
#

You can create instances of java types

#

And call methods on them

topaz bay
prisma wave
#

constructor parameters?

topaz bay
#

generate a thousand doubles in 80 ms

#

And nope

#

No syntax for it yet

prisma wave
#

lol

#

shame

#
use "JVM:java.lang.Math"

sqrt = (value::Dec) -> Dec {
    sqrt = Math.sqrt(value)
    yield(sqrt)
}
``` infinitely better
topaz bay
#

Thats fucking ugly

#

LOL

prisma wave
#

๐Ÿ˜ฆ

errant geyser
#

If u 2 worked on a lang together I bet it would be infinately better than what you both have now

prisma wave
#

no

#

never

topaz bay
#

BRUH

#

He basically took what I have, and gave it a different front end

#

We practically already are working on the same lang

prisma wave
#

not true

errant geyser
#

You would shit talk each other into finding the most efficient process for everything so you could brag about it

old wyvern
#

BM does it provide an alias for the "use" ?

prisma wave
#

an alias?

#

wdym?

old wyvern
#

yea

#

like are you able to refer to that specific class with other names if specified

prisma wave
#

Oh not atm

topaz bay
#

hmmmmmmmm

#

I wonder where THAT came from

prisma wave
#

what can I say

topaz bay
#

OH YEAH

prisma wave
#

mine isn't a sealed class

topaz bay
#

Its from ODIN

prisma wave
#

therefore better

topaz bay
#

Your allfather

prisma wave
#

I took inspiration

errant geyser
#

Sx ima have to hand this one to BM, he doesn't use Allman and yours is OS to he took inspiration :))))))))))

prisma wave
#

he doesn't use Allman
๐Ÿ˜ณ

#

Oh yeah I don't

#

Wtf

errant geyser
#

I was about to say what are you on

prisma wave
#

Pretty sure I do everywhere else in the project

errant geyser
#

Damn you

#

Why

prisma wave
#

Soz

#

Looks better in practice

errant geyser
#

๐Ÿ˜ 

topaz bay
#

Imagine considering not using allman to be an advantage

prisma wave
#

Imagine

errant geyser
#

Odin is superior because its actually functional

dapper marlin
#

Hello!
Does anyone know how i can disable or change this message when i open a menu in DeluxeMenus?
https://prnt.sc/t9reh9

prisma wave
#

frigga is functional

#

On everything but my pc

errant geyser
#

I thought you couldn't do if statements?

prisma wave
#

You can't atm

#

they don't exist yet

#

But it's still functional

#

in both senses lol

topaz bay
#

fuck if

#

when is where its at

prisma wave
#

imagine not having match

#

it's like when but shit because it's not a language feature

errant geyser
#

ur org wack

prisma wave
#

yeah tbh :(

#

I wanted sx to join but no

topaz bay
#

what

#

WHAT

#

Thats literally a lie

errant geyser
#

Hey just wait until I start to make my own lang, its gonna be so autistic

prisma wave
#

I mean I wanted you to move Odin over

#

I did I think

onyx loom
#

no need to shout.

prisma wave
#

lol

topaz bay
#

Lets just merge them into Hela

#

Oh wait

#

nvm thats not her mom

#

fuck

prisma wave
#

no

topaz bay
#

Merge them into Thor

prisma wave
#

idiot

topaz bay
#

WOW OK

#

Fuck you too Alex

prisma wave
#

:)

topaz bay
#

See, I try to be kind

#

But you treat me like this

prisma wave
#

We can do Thor when Odin and frigga are finished

topaz bay
#

IMPOSSIBLE

#

Languages are never finished

prisma wave
#

true lol

#

but at the very least basically functional

#

is Odin turing complete?

errant geyser
#

Dude my OS is gonna be so flawed you'll probably be able to trigger a kernel panic in less than a minute

prisma wave
#

uh oh

onyx loom
#

pls dont make an os

old wyvern
#

the first 4 bytes of a .class file is "CAFEBABE" in hex xD

prisma wave
#

ah yes

errant geyser
#

pls dont make an os
Why kaliber

#

Fun, and good learning experience

onyx loom
#

just sounds like a bad idea

topaz bay
#

How do you even begin to measure that

old wyvern
#

also CAFEDEAD for object format xD

errant geyser
#

nobody will actually use it

topaz bay
#

I think it would be turing complete if I am able to run odin from odin

#

Which would not be hard

old wyvern
#

I mean aren't you still running on jvm if you run odin on odin

topaz bay
#

Yes

#

Im pretty sure its already turing complete actually

prisma wave
#

but could you write an Odin parser in Odin

topaz bay
#

Probably yes

prisma wave
#

Do it

old wyvern
#

Write a frigga parser in odin

topaz bay
#

Absolutely fucking not

prisma wave
#

Oooo

onyx loom
#

why not

prisma wave
#

I'll write an Odin parser in frigga

old wyvern
#

Im writing a frigga compiler

onyx loom
#

thats the spirit

prisma wave
#

to compile to what?

old wyvern
#

๐Ÿ‘€

#

to jvm

onyx loom
#

share some of this love sx

topaz bay
#

Im gonna write a brainfuck parser

prisma wave
#

Oo

old wyvern
#

isnt brainfuck parser supposed to be easy to make?

topaz bay
#

Yes

prisma wave
#

brainfuck is probably really easy to parse

topaz bay
#

Brainfuck is turing complete though

old wyvern
#

wait how?

#

o.o

topaz bay
#

Because it can do anything

prisma wave
#

With immense amounts of effort and pain

old wyvern
#

Yea but you cant read what you wrote 2 mins ago

#

istn everything bit level?

prisma wave
#

in theory you could make an assembly > brainfuck compiler

old wyvern
#

or bytelevel

prisma wave
#

Which would make it easier

#

it's bit level I think

old wyvern
#

ah

prisma wave
#

oh ffs

#

so the problem was I'd defined whitespace as [ \t\r\n] instead of [ \n\t\r]

heady birch
#

I'm working on CDIF now

errant geyser
#

Not CDIF3?

#

๐Ÿ˜ฆ

heady birch
#

CDIF1

errant geyser
#

The 3 makes all the difference

#

Once its done I'll PR it and change that

#

Instant downloads

wary sedge
#

guys I need some Linux optimization tips

#

ping me when u have help

#

thanks

heady birch
#

๐Ÿ˜•

#

@wary sedge

errant geyser
#

You're using Linux, what do you want optimised

wary sedge
#

speed

#

tps

heady birch
#

Oh

#

Minecraft related

wary sedge
#

rn at 19.75

#

ye

#

tps

heady birch
#

have you tried aikar flags and stuff?

errant geyser
#

I thought u were on about OS

wary sedge
#

server

#

yes

#

have you tried aikar flags and stuff?
@heady birch ye

errant geyser
#

Yeah, Akars flags, don't use random useless plugins, pregen your world, etc

wary sedge
#

how pregen

#

I bad

errant geyser
#

WorldBorder

wary sedge
#

kitpvp hub prac etc

#

ok

#

but need to increase tps

#

of servers

#

I have 7

#

1 bungee 6 tacospigot

obtuse gale
#

rn at 19.75

#

I mean

#

thats not bad

wary sedge
#

but ppl complain about lag

#

sometimes spike 12

#

tps

#

lol

obtuse gale
#

Well the spikes a problem, 19.75 isnt

wary sedge
#

ik

#

someone help pls

#

fix spikes

errant geyser
#

Have you done what I said

wary sedge
#

ye

#

but 1 player on

#

at spawn

#

still

#

lag

errant geyser
#

It takes longer than 12 seconds to pregen 6 servers worlds

wary sedge
#

different servers, not worlds

errant geyser
#

I know

#

It takes longer than 12 seconds to pregen 6 servers worlds

wary sedge
#

but after like 5 min still spike

#

so idk

errant geyser
#

Then take a timings report

wary sedge
#

I did

#

all fine tho

#

fawe using 160%

#

idk what It mean

#

I not at home btw

errant geyser
#

Are you doing some super heavy world edit operations?

frigid badge
#

what are your server's specs

errant geyser
#

Also if we could see the timings report that would be better

wary sedge
#

no

#

17, 64g ram

#

i7

#

I me an

frigid badge
#

how many players

#

show your plugin list

#

and show the timings report yea

#

and yup pregenerating worlds is also very helpful

wary sedge
#

ok

#

LuckPerms, LunarClientAPI, Skript, Verus, PlaceholderAPI, ClearLag, QLib, DisableJoinMessage, PlugMan, Cloud_Console_v2.0, FreezeGUI, SetSpawn, ToggleChat, InfiniteJump, NametagEdit, Blacklist, ConsoleSpamFix, MassSayReborn, AntiDrop-item, TogglePM, FastAsyncWorldEdit, EnderButts, PermissionFinder, SuperSudo, PlayerLogger, CommandSync, Vault, ProtocolSupport, GrantX, WorldEdit, DeluxeHub, Essentials, NamelessMC, ServerSelectorX, WorldGuard, Citizens, ViaVersion, ChatEx, CommandNPC, ProtocolLib, LiteBans

heady birch
#
final Environment environment = new ApplicationEnvironment();
environment.bind(SomeInterface.class, SomeImplementation.class);
        
final SomeInterface object = environment.getInstance(SomeInterface.class);
#

You guys like this format?

prisma wave
#

how does that even work

#

what would the value of object be?

heady birch
#

example

#

lol

#

probably a bad one

#

Changed to a better example

prisma wave
#

looks alright

heady birch
#

Im not the best at choosing names

#

environment sounds alright

still python
#

mmh

heady birch
#

Yes?

wary sedge
#

LuckPerms, LunarClientAPI, Skript, Verus, PlaceholderAPI, ClearLag, QLib, DisableJoinMessage, PlugMan, Cloud_Console_v2.0, FreezeGUI, SetSpawn, ToggleChat, InfiniteJump, NametagEdit, Blacklist, ConsoleSpamFix, MassSayReborn, AntiDrop-item, TogglePM, FastAsyncWorldEdit, EnderButts, PermissionFinder, SuperSudo, PlayerLogger, CommandSync, Vault, ProtocolSupport, GrantX, WorldEdit, DeluxeHub, Essentials, NamelessMC, ServerSelectorX, WorldGuard, Citizens, ViaVersion, ChatEx, CommandNPC, ProtocolLib, LiteBans
help

hot hull
#

delete system32

foggy pond
#

How is 1.16.1 performance wise?

hot hull
#

Take a wild guess

foggy pond
#

Better? : D

#

I mean 1.15.2 saw some vast over 1.14 performance wise

heady birch
#

๐Ÿ‘€

#

1.13 was the real bad one

foggy pond
#

Is 1.12 still more stable than 1.16

topaz bay
#

@prisma wave >:)

prisma wave
#

ew

#

if you wanna see something cool

#

feast your eyes on this

#

importing if ๐Ÿ˜Ž

topaz bay
#

Thats a lot of fucking braces

#

LOL

prisma wave
#

indeed

heady birch
#

wheres ->

#

dont you need that?

#

'>' -> {
}

topaz bay
#

??

#

Its not... kotlin

heady birch
#

Odin

prisma wave
#

is case gonna be like when?

heady birch
#

oh yeah ofc

topaz bay
#

Id say its more like switch

heady birch
#

Odin

prisma wave
#

idk why you'd want something like switch but ok

topaz bay
#

Why wouldnt I?

prisma wave
#

switch bad

#

when good

topaz bay
#

con.cise.

prisma wave
#

not bad

heady birch
#

Nice names

#

This aint asm though LOL

topaz bay
#

fun fact

#

I never implemented --

#

lol

heady birch
#

OPER

heady birch
#

How tf did intellij pick this up?

#

Based on the method name I assume?

prisma wave
#

Yeah I imagine so

heady birch
#

Lol

#

What would you call a "non singleton"

#

like a pojo

#

object

prisma wave
#

An instance?

heady birch
#

Reusable and disposable sound cool

old wyvern
#

Wait what?

errant geyser
#

@heady birch Do I see a light theme Apple user

#

Ugh

heady birch
#

Lmao

#

NiallBinder

old wyvern
#

Nialception

hot hull
old wyvern
#

I think the other is better

heady birch
#

๐Ÿคข

old wyvern
#

Using String for message keys will end up having you have to lookup the exact string value everytime

distant sun
#

Enums ftw

hot hull
#

Enums are tedious tho, I mean yea when you have a set of messages and you aren't constantly adding things they're nice, but I prefer this since I just call the key, without having to go and set it in the enum

old wyvern
#

Set what in the enum?

heady birch
#

๐Ÿ˜

#

Tedious?

distant sun
#

It's the same thing as using config.getString() though

old wyvern
#

I find using Strings for this purpose more tedious

#

I had to deal with this earlier

distant sun
#

So you arent doing anything really

heady birch
#

Static class ftw

old wyvern
#

eq

#

ew

distant sun
#

Shush niall xd

heady birch
#

I do use that

distant sun
#

Lets not give him even worse ideas

heady birch
#

Then I have the ConfigurationPropertyProviderManager populate the fields

distant sun
#

ConfigMe works with static fields for key but thats a whole other story

hot hull
#

Yugi, you have to add it to two places if you go with the enum route, whereas here only 1

old wyvern
#

2 places?

distant sun
#

^

old wyvern
#

no?

distant sun
#

It's just the enum, isn't it?

hot hull
#

And the config

old wyvern
#

That shouldnt be much of an issue

distant sun
#

But why have to use "message.path.here" 5 times when you can just call Message.MESSAGE_ID

old wyvern
#

load on start

distant sun
#

I mean, whats the point of your class then?

hot hull
#

Why y'all such haters all the time sheesh

old wyvern
#

or just have the Enum#getMessage call the config for the message value I guess

distant sun
#

Isnt like the bukkit configuration sustem constantly read the values from the actual file

#

It's not hate

old wyvern
#

yea

#

Its just easier to manage this way

hot hull
#

Again, it's not

#

But you do you

distant sun
#

But your system does nothing different that config.getX(path, def)

hot hull
#

plugin.getMessageLoader().getListMessage("discord-message")

#

And then you do etc, it still loads them on startup

distant sun
#

It's .. useless?

hot hull
#

You're useless

old wyvern
#

Why have you added the message to a hashmap ??

distant sun
#

Configs are already in memory

heady birch
#

That's unnecessary

distant sun
#

Why fo you think you have to call reloadConfig()? To read the file and load the new values

heady birch
#

Why pass plugin when you only need the MessageLoader

old wyvern
#

Why would you pass the plugin for messages even the other way around?

#

The whole point of having enums for this is to have easier to use Keys

distant sun
#

Do whatever you want but imo that isnt a better system than config.getX()

heady birch
#

Sounds like you need a DI container ๐Ÿ™‚

old wyvern
#

No

#

No

distant sun
#

A what

old wyvern
#

I cant hear another NiaDl or whatever

heady birch
#

Still working on a name

#

NiallInject
NiallBinder
Ninjector

distant sun
#

Nialdi

heady birch
#

That face scares me

topaz bay
#

I have successfully implemented case conditions

prisma wave
#

well done

#

it's hideous

topaz bay
#

Thank you

onyx loom
#

very hideous i must add

hot hull
onyx loom
#

๐Ÿคข

hot hull
#

Yeeting that folder as soon as IJ opens up

onyx loom
#

if its in the project

#

it aint worth opening at all

hot hull
#

It's Saber facs, modifying it

#

@quiet depot And you say my code is oof

    @Override
    public TL getUsageTranslation() {
        return TL.COMMAND_ALTS_DESCRIPTION;
    }
topaz bay
#

may not look like it

#

But thats hello world my dude

onyx loom
#

e

topaz bay
#

better

onyx loom
#

E

prisma wave
#

Cute

topaz bay
#

Thank you

#

The only issue is that I use a Java class for interop

hot hull
topaz bay
#

Cause Odin doesn't have a byte type

onyx loom
#

:whatthefuck:

hot hull
#

Dude the entire fucking class is static

#

Like what the fuck was this man smoking

onyx loom
#

๐Ÿ™‚

topaz bay
#

Hardcoded timezone

#

Yikes

onyx loom
#

EST

hot hull
#

@old wyvern This you?

Username 'Goku' tried to join with an invalid session

prisma wave
onyx loom
#

๐Ÿ˜”

prisma wave
#

optimizing time

remote goblet
#

@prisma wave OW sucks

prisma wave
#

does it?

remote goblet
#

yes

#

i was doing very well as echo in a game

#

and then both the tanks left

prisma wave
#

unfortunate

remote goblet
#

end of season comp bro

#

it sucks

prisma wave
#

ah yes

#

well

onyx loom
#

@remote goblet get a better pc and play a better game with me ๐Ÿ˜”

remote goblet
#

get me one then PensiveEyes

onyx loom
#

๐Ÿ™„

#

19 days

remote goblet
#

20

#

its july 21st

onyx loom
#

o

remote goblet
#

what games do you have EmiThink

onyx loom
#

me and @errant geyser in the RL and siege gang ๐Ÿ˜Ž

errant geyser
#

๐Ÿ˜Ž

#

@hot hull waitin on that PR boi

remote goblet
#

I have siege SadCat

#

and rocket league SadCat

onyx loom
#

can u run it

remote goblet
#

I can run rocket league

#

not really tested siege

onyx loom
#

๐ŸŽ‰

#

theres no way u can run siege haha

remote goblet
#

i donteven think i have siege installed

old wyvern
#

Username 'Goku' tried to join with an invalid session```
@hot hull No I just woke up
jovial warren
#

Goku lol

#

isn't that the anime fighter who can fuse with other fighters, channel the energy of the entire universe, and literally become a god?

errant geyser
#

Anime ๐Ÿคข

remote goblet
#

:AShihi:

heady birch
onyx loom
#

jesus fuck niall

#

delete this.

ocean quartz
old wyvern
#

lol

onyx loom
#

๐Ÿ™‚

prisma wave
#

wow

#

invite them to r/kotlinmemes

onyx loom
#

+1 was thinking the same

#

great minds think alike

old wyvern
#

@prisma wave What would be a better way to write a when expression where each branch is a null check?

prisma wave
#

you could use ?.let

#

Not sure that's cleaner or not

old wyvern
#

When only matches with 1 condition branch right?

prisma wave
#

not 100% sure what you mean but yes

#

can you show code?

old wyvern
#

I mean like

when {
      true -> print("a")
      true -> print("b")
}```
It would only print ``a`` and not ``ab``
#

or am I wrong about this

#

can you show code?Planning it out rn

prisma wave
#

It will print both I believe

old wyvern
#

uh rip

onyx loom
#

i dont think it will

old wyvern
#

Actually i can probably just continue the loop just in case

onyx loom
#

yeah looping would fix it for sure

#

i remember having a situation like this, and it was only checking the first condition that was met, then ending the when

old wyvern
#

oh wait no

prisma wave
#

Interesting

old wyvern
#

Only 1 would be run logically since its an expression

#

right?

#

If it goes into multiple branches that would be multiple returning values

prisma wave
#

good point

old wyvern
#

bm room 1

prisma wave
#

I can't rn

#

it's late here

#

not on pc

onyx loom
#

bed time

old wyvern
#

ah

dense roost
#

whats kotlin

onyx loom
#

an awesome language

versed ridge
#

best language

old wyvern
#

Its another jvm language

#

It can also be compiled to js and its own native bytecode tho

dense roost
#

why is it better than java then?

prisma wave
#

here we go

onyx loom
#

less boilerplate

#

hahahahahaha

old wyvern
#

I wouldnt say better

prisma wave
#

cleaner, less verbose, richer standard library, more syntactical sugar, null safety as part of the type system, etc etc

old wyvern
#

It essentially just removes a lot of boilerplate by writing it for you

prisma wave
#

only if you compare it to Java

old wyvern
#

true

prisma wave
#

As a standalone language that's not really a feature

#

It's just how the language is designed

old wyvern
#

Is it used as a standalone anywhere?

#

Jvm is the most used afaik

dense roost
#

I mean why use kotlin if java is good established

onyx loom
#

im sure native has its own ups and downs over jvm

dense roost
#

Other than boilerplate?

old wyvern
#

Depends totally on you

prisma wave
#

cleaner, less verbose, richer standard library, more syntactical sugar, null safety as part of the type system, etc etc

#

that's why

#

and yeah JVM is definitely the main backend, but the other 2 are gaining traction

onyx loom
#

null safety ๐Ÿ˜

prisma wave
#

indeed

#

@dense roost it's also fully interoperable with Java

dense roost
#

How null safe?

old wyvern
#

All jvm languages are

prisma wave
#

You can have Java and Kotlin classes in the same project

dense roost
#

Can you?

old wyvern
#

How null safe?It turns NPEs to a compile time issue

prisma wave
#

Pretty much

onyx loom
#

i got a meme for the subreddit

prisma wave
#

Nullability has to be explicitly handled

dense roost
#

That's lit

prisma wave
#

and declared

#

indeed

onyx loom
#

idk if i can do it as im on mobile tho ๐Ÿ™

old wyvern
#

It also means you have to account for everything being null and not null everytime

#

and if you dont

prisma wave
#

eg val name: String will never be null, but val name: String? can be, and so you have to explicitly null check

old wyvern
#

You scrape along a @Nullable on the object all the way

prisma wave
#

@onyx loom do it

old wyvern
#

or in kotlin's way, a '?' is appended to the end of the object to show its annotated by that

dense roost
#

And there's no issue when working with both Kotling and Java together?

old wyvern
#

Mhm

#

No issues

dense roost
#

Sounds too good

prisma wave
#

occasionally kotlin -> java needs workarounds but it all works flawlessly

#

I would recommend you give it a try

#

If you know Java then it's easy to learn

onyx loom
#

too good but its true ๐Ÿ˜

prisma wave
#

indeed

dense roost
#

hmm I will give it a try

prisma wave
#

join the cult

#

:)

onyx loom
#

easy to learn either way, considering this is the first language ive been learning

old wyvern
#

๐Ÿคทโ€โ™‚๏ธ

onyx loom
#

ive a sm0l brain, and i reckon java would give me much headaches ๐Ÿ™ƒ

old wyvern
#

It wouldnt

onyx loom
#

just like the meme on the subreddit

prisma wave
#

@old wyvern is Djinn your language?

old wyvern
#

Plus if you are into this development probably have to deal with other languages

#

yes bm

prisma wave
#

Ooh cool

#

syntax?

old wyvern
#

I mean im still writing it so uh

#

Ill let you know in a few days

#

xD

prisma wave
#

alright lol

#

join the party

old wyvern
#

ayy

prisma wave
#

writing a Lexer from scratch I see๐Ÿ‘€

old wyvern
#

Yea

dense roost
#

How would I extend a class in kotlin

old wyvern
#

Im interested in trying the whole thing

prisma wave
#

class Name : ParentClass()

#

It's pretty fun

old wyvern
#

mhm\

#

lol

prisma wave
#

nice

#

is that like a = 5?

old wyvern
#

I havent gotten that far

prisma wave
#

I mean the actual input you were lexing

old wyvern
#

Still working on the lexer and tokenizer

prisma wave
#

Or was it just a 5

old wyvern
#

oh it was the other

#
        a = 5;
        b = 465;
        c = "t"est""
    """.trimIndent()

    val tokens: List<Token> = input.lexAsDjinn();```
prisma wave
#

ah cool

onyx loom
#

new meme

#

go upvote

#

r/kotlinmemes

old wyvern
#

Also my university finally decided to start course registration from the 4th so my classes are starting soon โ˜ ๏ธ

#

@onyx loom link

onyx loom
#

yugi, i have college in the morning ๐Ÿ˜ญ๐Ÿ˜ญ

#

midnight rn, and i gotta wake up in 7 hours ๐Ÿ˜”

#

pain

old wyvern
#

xD

#

welp

#

I have only 2 more days free days I guess now

onyx loom
#

spend them wisely ๐Ÿ‘Œ

#

do u have to go back every day now, or is it just a few days?

#

as i only have to go back 2nd and 6th of july

old wyvern
#

do u have to go back every day now, or is it just a few days?Online classes for now, I have to travel back there next month aparently tho

onyx loom
#

what in the hell

#

ah. pain

#

anyway i need to go sleep now. gn

#

๐Ÿ‘‹

old wyvern
#

Ciao

old wyvern
#

@prisma wave Found a way to get around the huge when expression

topaz bay
#

....

#

@pallid gale please

#

PLEASE

#

I don't deserve to be bullied like this

topaz bay
#

constructor params

#

yaaayyyy

ocean quartz
#

Nice! And that's pretty fast too

topaz bay
#

Its literally just repurposed logic from function parameter parsing xD

old wyvern
#

They finally decided to reveal this semester's courses lmao

hot hull
onyx loom
#

๐Ÿ™‚

heady birch
#

Lol

#

Very nice

obtuse gale
#

best intellij font?

heady birch
#

Lol

#

uh this is wierd

#

Just realised its a different 'person' every time

#

Its kind of creepy when one pops up that has rendered wrong

onyx loom
#

@obtuse gale most people recommend material atom one dark afaik

#

the standard darcula theme is pretty good too

topaz bay
#

@heady birch the cat one is nightmare fuel

#

what in the HELL

#

IS THAT

onyx loom
#

cursed

hot hull
#

Anyone got any utils to convert this 1h 30m 16s to seconds

quiet depot
hot hull
#

Thanks

heady birch
#

what in the HELL
@topaz bay I was scared id refresh the page and something like this would come up

jovial warren
#

lol

hot hull
#

@quiet depot Does it do it vice versa as well or?

quiet depot
#

@hot hull no

#

use a date formatter for that

hot hull
#

Already got my own for that ee

covert blaze
#

hey

#

does anyone know what causes this

#

1sec

jovial warren
#

sure that's the right placeholder?

covert blaze
#

I previously had it working but now it's started to do this

#

using deluxechat

#

I use % for the placeholder

#

I don't know why it's showing as {}

jovial warren
#

okay

covert blaze
#

it's weird

jovial warren
#

what server version you on?

covert blaze
#

1.8.9

jovial warren
#

okay

covert blaze
#

Like I said it has previously worked Idk why it isn't now

#

Maybe something's conflicting but I haven't really installed anything that could conflict

jovial warren
#

got PAPI installed?

remote goblet
jovial warren
#

discord link????

remote goblet
#

shut up

#

i'm bored

jovial warren
#

also you gotta do that

obtuse gale
#

what feels illegal?

remote goblet
#

Im talking about a kotlin class extending JavaPlugin EmiThink

obtuse gale
#

o

covert blaze
#

I do have papi installed

jovial warren
#

it's just the way it is @remote goblet

#

okay

#

what chat plugin you using?

covert blaze
#

I've tried re-installing PAPI and both plugins

#

deluxechat

remote goblet
#

did you download the ecloud

covert blaze
#

ye

remote goblet
#

also this is not the right channel, ya nerds

jovial warren
remote goblet
jovial warren
#

also do you have deluxe_chat set to true in your DeluxeTags config @covert blaze ?

covert blaze
#

yes

prisma wave
#

@remote goblet why would that be illegal lol

remote goblet
wary sedge
loud gyroBOT
#

The 'everyone' mention is disabled so you can't annoy people.

quiet depot
#

damn

wary sedge
#

i was testing

quiet depot
#

you fr just try to tag 6.6k people

wary sedge
#

idk

#

sry

heady birch
#

๐Ÿ˜

wary sedge
#

๐Ÿ˜ฆ im very sorry, just needed help

#

um

heady birch
#

Idk

#

What CPU is it running on

#

Clock speed

wary sedge
#

intel i7

#

linux mint

#

no gui

quiet depot
#

restart your server

heady birch
#

clock speed

wary sedge
#

idk clock speed

#

i did

quiet depot
#

it's been up for 70 hours

obtuse gale
#

tfw u think ur question is important enough for 6.6k people to care

wary sedge
#

restarting rn

heady birch
#

Run this

#

lscpu | grep MHz

wary sedge
#

pl

#

ty

quiet depot
#

I'm no timings expert, but looks like the problem is todo with chunks

#

too many loaded in memory perhaps

wary sedge
#

um

quiet depot
#

too much happening in those chunks

wary sedge
#

CPU MHz: 800.147
CPU max MHz: 4900.0000
CPU min MHz: 800.0000

#

lol bruh

#

0.8 base clock

#

stupid

quiet depot
#

damn that's a pretty drastic difference

wary sedge
#

computer

#

how do u overclock

#

so it stays at high mhz

heady birch
#

4.9GHz should have no problem at all

wary sedge
#

btw how to check temps

quiet depot
#

it doesn't need to be 4.9ghz all the time muffin, it'll boost when it needs to

wary sedge
#

but, why is it this???

quiet depot
#

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

heady birch
#

Is it dedicated

wary sedge
#

yes

hot hull
regal gale
#

Maybe try remove fawe?

quiet depot
#

Why are you running linux mint for your server anyway?

wary sedge
#

idk

heady birch
#

I think you got something mad in the world

wary sedge
#

someone just told me to use it

heady birch
#

The server specs are really good

wary sedge
#

my dev

quiet depot
#

tell your dev he's a 4head

wary sedge
#

why

regal gale
#

Yep, but is that too overkill for a 1.8 server thonking

wary sedge
#

what should i use

hot hull
#

Bardy, ignore the naming, just check the actuall code lmao

heady birch
#

Frosty,

quiet depot
#

something headless muffin

wary sedge
#

it is

#

tho

#

i only use ssh

hot hull
#

Just scroll @jovial warren

quiet depot
#

with mint tho, there's probably still a gui running

#

I don't think mint has a headless version

wary sedge
#

i did init 3

#

that works

heady birch
#

Oh

#

I didnt scroll down

#

Lol

wary sedge
#

I don't think mint has a headless version
just changed it to init 3

quiet depot
#

aight

#

I mean mint is fine, just an odd choice for a server

wary sedge
#

ok...

#

o

#

nice

#

CPU MHz: 3863.727
CPU max MHz: 4900.0000
CPU min MHz: 800.0000

#

xD

#

its back to 800

#

@quiet depot do you think that somehow VNCServer is lagging me?

#

Someone told methat

regal gale
#

Try remove FAWE, idk if it's gonna reduce anything thonking

heady birch
#

VNCServer?

#

On headless

#

No

wary sedge
#

it works...

#

does use my gpu or its gpu

#

or also cpu

heady birch
#

I doubt its the problem

#

Looks like chunks or world or something

wary sedge
#

ik

#

ill remove fawe

#

then tell u

#

restarting rn

#

ok

#

*20 at startup is normal?

#

cuz all is *20

regal gale
#

It's normal

wary sedge
#

should i wait 5 min

regal gale
#

Yeah just wait for it

wary sedge
#

ok

#

um

#

19.98

regal gale
#

I mean, you didn't wait for 5 min ._.

wary sedge
#

ik

#

fine

#

ill wit

#

wait

regal gale
#

I thought i told you to clear out fawe lol

wary sedge
#

o

#

idk

#

i actually removed it

#

i think

#

19.99

#

@regal gale

wary sedge
#

idk how

#

but i did it

#

20tps

#

ok

old wyvern
#

@topaz bay What type of parser did you use for odin?

hot hull
old wyvern
#

๐Ÿ˜‚

errant geyser
#

r/eyeblech

#

Disclaimer: Don't actually go there, its pretty much r/medicalgore

#

If you want actual eyebleach, go to r/eyebleach

onyx loom
#

just keep nesting those <> boys

jovial warren
#

I really could use some bleach
you like new to java or something? bruh

#

lol

#

that is not how to store pages

#

though the way my original BardyBot code did it wasn't much better

hot hull
#

Dude I'm not that fucking retarded, come on Bardy smh

#

I'm customizing SaberFactions for a client

jovial warren
#

yeah ik you're not that far beyond hope lol

hot hull
#

yeah ik you're not that far beyond hope lol
:what:

heady birch
#

yeah there is good import for this

#

org.springframework.data.domain.Pageable

jovial warren
#

I would bring up the way BardyBot used to do it but I force reset when I committed the new Spring BardyBot so that's kinda gone in to the archives lol

#

also anyone here used the maven publish plugin?

onyx loom
#

lmao frosty

#

u got shit on for no reason ๐Ÿ˜‚

remote goblet
errant geyser
#

@ocean quartz you have 3 awards and 15.5k updoots man

#

That's mental

ocean quartz
#

Ikr!
Didn't expect that much xD

jovial warren
#

wait what?

onyx loom
#

oh shit

#

u got awards

#

nice

jovial warren
#

wait awards?

#

where?

onyx loom
#

reddit

#

matts post

#

with the minecraft tv shit

distant sun
#

"Shit"

steel heart
#

Is this name legal?

distant sun
#

No

topaz bay
#

@old wyvern define type of parser

old wyvern
#

I mean the parsing algorithmn

#

like LALR(1) LR(0) ...ect

#

Or maybe im overcomplicating this

topaz bay
#

I have absolutely 0 idea

#

My parser is written by hand, using logic that makes sense to me

old wyvern
#

ah

topaz bay
#

There is no formal grammar

old wyvern
#

I see

topaz bay
#

The only thing thats similar to a grammar that I use are the collapses and expanders

old wyvern
#

Expanders are like to expand ++ += and stuff right?

topaz bay
#

Both the lexer and typer run multiple passes over the data they create

#

yes

old wyvern
#

What about collapses?

topaz bay
#

I also use an expander to process string interpolation

#

collapses are there to make lexing simpler

#

instead of writing all the code to process something like ++ into a single operator, I have the lexer process + and + as single operators on the first pass

#

And then they get collapsed if there is nothing in between them on the second one

#

And only if they follow a targetable token

#

like a name

old wyvern
#

ahhhhh I see

#

The commands handle the state changing right?

topaz bay
#

the commands are leaves of the AST

old wyvern
#

Alrighty time to give this a shot ๐Ÿ˜‚

topaz bay
#

enjoy hell sweetie

old wyvern
#

welp โ˜ ๏ธ

topaz bay
#

just sayin

#

lol

old wyvern
#

got to try atleast

#

Imma figure out the runtime first so I can have a the parser w.r.t to that

hollow spade
obtuse gale
cerulean idol
topaz bay
#

tsk tsk

#

So much potential

#

THROWN AWAY

topaz bay
#

I added casting to Odin

#

cause why not

onyx loom
#

wow i am SO proud of you !!!

#

congrats !!!

onyx loom
heady birch
#

Make it compile to byte code

hot hull
#

I stg this man has never heard of liskov

topaz bay
#

@onyx loom yikes

#

@heady birch no

regal gale
#

How is she never been banned on Twitch btw thonking

onyx loom
#

yeah idk

#

probably because shes a woman kekW

hot hull
onyx loom
#

wait....

#

why ๐Ÿ™

hot hull
#

idk

onyx loom
#

๐Ÿ˜ญ

#

banned for no reason

heady birch
#

what server

hot hull
#

No server

errant geyser
hot hull
errant geyser
onyx loom
#

thanks ๐Ÿ˜

regal gale
#

Add a ban to Frcsty13 pls

hot hull
#

Who's that?

topaz bay
#

This is why we use kotlin

obtuse gale
#

oof

errant geyser
#

There is 1111 lines of that aids

topaz bay
#

my parser is nearly 2000 lines

onyx loom
#

congrats

#

75 to go

topaz bay
#

Isn't it lovely

hot hull
#

You failed a test, so no

topaz bay
#

well its not implemented, so yeah

#

lol

heady birch
#

trait

#

real world the problem

#

interview:

#

"What are your traits?"

#

"Named"

#
  • step back and let that sink in
prisma wave
#

fun fact, frigga causes a stackoverflow when trying to calculate fib(anything more than 4) because there are so many steps involved in function calling ๐Ÿ˜Ž

heady birch
#

implement multithreaded floating point calcualtions ๐Ÿ™‚