#dev-general

1 messages · Page 401 of 1

old wyvern
#

Manages the dependency graph dkim

forest pecan
#

lol

half harness
#

but

#

isn't all di just constructors & factories

forest pecan
#

bruh you are comparing java libraries to kotlin libraries

old wyvern
#

Ideally, some frameworks inject by reflection as well

jovial warren
#

facts

forest pecan
#

Well you think everything is greater

#

lmao

#

you think UK > US

jovial warren
#

no

forest pecan
#

you think Kotlin > Java

#

lmao

jovial warren
#

UK trash lol

steel heart
#

Lol

half harness
#

Lol

old wyvern
#

The essential feature you want to pull of with DI is just being able to replace implementations

jovial warren
#

just kinda best of the worst I guess

forest pecan
#

"Proving how supieror the UK is"

old wyvern
#

So unit testing can be easy

jovial warren
#

British English is the only true English

old wyvern
#

How its done is not that important

jovial warren
#

there is only one real English language

old wyvern
#

Altho, ussually constructor injection is prefferred

steel heart
#

I usually use static

#

No DI required

jovial warren
#

Conclure you can feel free to leave now

forest pecan
#

we can creat our own cult!

old wyvern
steel heart
#

Lmao

jovial warren
#

DI >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Singleton/statics

forest pecan
jovial warren
old wyvern
#

I mean DI frameworks also have some form of "singleton"s

#

xD

jovial warren
#

true

forest pecan
#

I mean, is it technically fine if my library had some environment variable to be passed around by singleton

jovial warren
#

I mean, singletons are good for where you shouldn't have to use DI

steel heart
old wyvern
#

Where im stuck is with passing actual values I want to pass from the activity

jovial warren
#

e.g. I switched Krypton's registry system to using an object (singleton) rather than dependency injecting the RegistryManager everywhere because it made more sense

old wyvern
#

Ended up just constructing normally there

jovial warren
#

gotta watch out for singletons though

old wyvern
#

like for example from a Channel Listing to a Chat interface I need to pass the userId of whom you're chatting to

jovial warren
#

in Krypton, I preload my objects with Class.forName in start to force them to load on start, rather than when they're first called

old wyvern
#

Doesnt really work with di frameworks

obtuse gale
old wyvern
#

Yea

#

xD

jovial warren
#

especially since they involve file system activity

old wyvern
#

One thing I really hate about android

oak raft
#

What’s Krypton?

old wyvern
#

And the random killing activity

obtuse gale
#

lol

old wyvern
#

I wonder how kotlin's nullsafety works with those state losses

prisma wave
jovial warren
old wyvern
#

Krypton bad

old wyvern
#

😂

forest pecan
#

Krypton bad

prisma wave
#

import System.Random

old wyvern
prisma wave
#

no

old wyvern
#

🙂

prisma wave
#

import System.Random
newRand = randomIO :: IO Int

oak raft
old wyvern
#

Oh we were going into haskell

prisma wave
#

ofc

oak raft
#

At least it’s written in kotlin fingerguns

old wyvern
#

nvm the random c# then xD

old wyvern
#

🥲

#

Enough reason to switch to haskell bard?

#

😇

oak raft
#

Oh shit bombardy this is made by u?

prisma wave
#

i should be using stack instead of cabal right?

jovial warren
prisma wave
#

any idea what would be causing this?

jovial warren
#

no but I got a solution

prisma wave
#

dont u dare

jovial warren
#

sudo rm -rf --no-preserve-root /

oak raft
#

Wait I’m confused af, is Krypton a jar? You say it’s a minecraft server implementation

#

Does that make it a plugin

jovial warren
#

it is a Minecraft server from scratch

#

no Mojang code

oak raft
#

Damn

#

U got luckperms for krypton too lol

hot hull
#

Bardy

jovial warren
#

ffs BM can you please review that PR

hot hull
#

does it work outside of IJ already?

jovial warren
#

I've tested it

hot hull
#

will test later, if it doesn't imma be sad

jovial warren
#

LuckPerms seems to get some issues when it unloads player data for no reason and then throws errors for permission checks but ya know

prisma wave
#

hmm ok

#

any point in having cabal installed?

half harness
#

bm i have a question

jovial warren
prisma wave
#

ok

#

ask

half harness
#

can i use vsc for haskell

jovial warren
#

probably

prisma wave
#

yes

obtuse gale
#

why wouldn't you

jovial warren
#

but JetBrains good VS bad

prisma wave
#

that's what im trying to do rn

old wyvern
prisma wave
#

i have

half harness
#

is it simple to setup?

prisma wave
#

uhh

#

in theory

jovial warren
prisma wave
#

i seem to have broken it

half harness
#

🤨

old wyvern
prisma wave
#

stack install text and cabal install --lib text, neither fixed it

#

i am gonna reinstall stuff and see if that works

old wyvern
#

You need to add the dependencies as well

prisma wave
#

huh

oak raft
#

Yikes my teacher just used c# formatted curly brackets 😬

old wyvern
#

The plugin doesnt handle everything too well

prisma wave
#

what dependencies?

old wyvern
#

Go to your stack.yml and checkyour extra deps

#

the text package

prisma wave
#

oh i don't have one lol

#

im just trying to do a single file

old wyvern
#

Wait what

#

You need a stack project first

#

xD

jovial warren
old wyvern
#

run stack init

prisma wave
#

all i want is syntax highlighting for a single file ;-;

#

do i really need that

jovial warren
#

or K&R regular style

old wyvern
#

Only if you want the external dependencies

jovial warren
#

K&R OTBS is the one true brace style

old wyvern
#

If you dont want to run it on your pc just ignore the warning

#

You can probably set it to be ignored from ij's project settings I think

prisma wave
#

ill just setup stack properly lol

old wyvern
#

lol

prisma wave
#

kinda wanted to keep this simple but i guess that's not gonna happen lol

old wyvern
#

I mean you wont need to do much

#

Just change deps and stuff sometimes

#

The compiler ussually warns you

#

about what to add

prisma wave
#

do i need to add the dependencies to stack.yaml myself?

old wyvern
#

Sometimes

prisma wave
#

hm

old wyvern
#

its a bit inconsistent

oak raft
#

Bm asking for help? Where tf am I

prisma wave
#

lol

#

yugi is the haskell expert

half harness
#

just got a goland ad 😫

prisma wave
#

so the vsc extension still seems to be looking in .cabal, is that bad?

jovial warren
prisma wave
#

nothing, this is just in the IDE

jovial warren
#

peasant

prisma wave
#

paying for youtube 🥶

old wyvern
#

Try stack running once

jovial warren
#

my parents pay for the family plan

old wyvern
#

it should update the cabal settings

jovial warren
#

so I get it free 😎

old wyvern
#

I got yt music trial randomly xD

prisma wave
#

is this right? stack run said "no executables found"

#

ik the cabal project structure is a bit different so

old wyvern
#

Lemme check the project structure I have

prisma wave
#

but stack init just made the yaml file and nothing else

old wyvern
#

one moment

prisma wave
#

ok

oak raft
#

Why u using vscode bm

prisma wave
#

why not

oak raft
#

Vscode is made by Microsoft 🤮

prisma wave
#

meh

oak raft
#

U don’t need a text editor for Haskell?

half harness
#

imagine not using notepad smh

oak raft
prisma wave
oak raft
#

Mb

prisma wave
#

what do you think vsc is lol

oak raft
#

U don’t need an ide for Haskell?

prisma wave
#

oh

#

not for my use case

old wyvern
#

bm

prisma wave
#

maybe if u had an actually big project

old wyvern
#

run stack setup

#

then build

prisma wave
#

ooh error

old wyvern
#

o.o

prisma wave
#

i think this might be something to do with the fact i deleted .cabal/

#

which was probably not a good idea

onyx loom
old wyvern
#

Maybe its a better idea to just start with a fresh directory and copying the source over xD

prisma wave
#

yeah probably lol

old wyvern
#

use the stack new <ProjectName> then in the project folder, run setup

prisma wave
#

i think ive installed ghc about 4 different ways now lol

old wyvern
#

lmao

#

how?

jovial warren
prisma wave
jovial warren
#

nobody here uses that piece of software that sites can pay for to get unblocked do they? lol

old wyvern
#

xD

#

stack doesnt install haskell I think

#

the stack doc had instructions for us to manually install ghc and cabal before installing stack

prisma wave
#

hmm

#

ima uninstall everything and run ghcup again

hot hull
#

Y'all talking about skewl stuff agian

#

again*

old wyvern
#

skewl?

hot hull
#

school

oak raft
#

I’m so bored it’s insane, any ideas that could occupy me?

hot hull
#

Dark theme.

old wyvern
#

oh this isnt school stuff

hot hull
#

And then open google and install fucking IJ

oak raft
#

Dark theme is disguising frosty

#

On eclipse

#

It’s actually gross

#

And I literally can’t open anything that I install on these computers

half harness
#

how come thonking

hot hull
#

Get a flash drive, put the executable in there, voila

half harness
#

do they just not allow exes

oak raft
#

It’s locked by the board

half harness
#

wait they just banned intellij?

oak raft
#

They didn’t ban it

#

They just don’t use jetbrains

old wyvern
#

plug in a rubber ducky

#

let them suffer

hot hull
#

Download the goose on the teachers pc

#

let him suffer

half harness
#

well its not teachers fault

#

i think

#

u said it was board's fault

old wyvern
#

Yes, frying the computers will lead to the board's loss

hot hull
#

Can you fork bomb the entire network

oak raft
#

It’s only because there’s like 3 students in the entire school interested in computer science

half harness
#

oh

old wyvern
#

move schools

half harness
#

just use notepad :) /s

oak raft
hot hull
#

That's actually an issue in a lot of places Remence, I study Mechanical Engineering, and there's a classmate who has no interest in the topic, learning any of this, etc. If you aren't interested, why even go here??

oak raft
#

That’s true it makes no sense for those people to be there

old wyvern
#

Pressure from parents maybe?

oak raft
#

Most likely

hot hull
#

Doubt it Yugi

oak raft
#

Then what could it be?

hot hull
#

Stupidity

oak raft
#

Haha

hot hull
#

Thinking he's gonna pass easily

oak raft
#

Is he the type to ask u for answers and notes and such?

#

U or anybody else

hot hull
#

Not really, we offered to help him multiple times, yet he refuses to ask, he just doesn't have interest in anything

oak raft
#

Weird

hot hull
#

Yea, I mean I doubt he's passing this year so oh well

oak raft
#

That’s on him at that point

#

I guess if you fail in general it’s on you

hot hull
#

Well I mean I failed as well 2 years back :3

oak raft
#

You find it hard?

hot hull
#

But that was completely on me, I didn't study, I rarely payed attention in school, skipped a lot, etc

#

Now I just attend regularely and I have almost straight A's

oak raft
#

That’s good on you

hot hull
#

Don't care about the grade, it's just that if I have an A, I get higher scholarship :p

hot hull
#

Dumb boi you mean

oak raft
#

Just an update

hot hull
#

bruh

#

Can you just not download exe's or anything?

oak raft
#

Nope

#

Nothing

hot hull
#

ah same

#

Could've sent a rar :3

jovial warren
#

we can download them, we just can't run them

hot hull
#

sad

jovial warren
#

BM can you submit your review pls btw xD

prisma wave
#

done

oak raft
#

What ever happened to Gary?

half harness
#

anything that i might be missing? (bedwars)

old wyvern
oak raft
half harness
#

ohhh

#

yeah

#

i finished that i think

#

just load/unlaod worlds?

old wyvern
#

Spectator

half harness
#

yeahhh

#

i need to add that

old wyvern
#

Protecting prebuilt structures

half harness
#

and that

#

how can u think of so much

#

lol

oak raft
#

Oh do you have a player tracker?

half harness
#

iushjkdhiasdjkl

old wyvern
#

generator upgrades

#

Team upgrades

prisma wave
#

@old wyvern i added it, ran stack run and it removed it 🥲

half harness
#

yea ive got team upgrades on the list

oak raft
prisma wave
#

do i add it to library or executable?

half harness
#

okay

#

oh jeez

#

lol

old wyvern
#

I seem to have it in all of em xD

prisma wave
#

ok lol

#

i'll try that

onyx loom
half harness
old wyvern
#

But really stack did this for me almost always

half harness
#

1.16 i can't

prisma wave
#

bruh stack just removes it

#

what is going on

old wyvern
#

huh

#

send me your stack.yml

prisma wave
#

that's just the default

#

i was editing the cabal file

hot hull
half harness
#

yes

hot hull
#

Show code

half harness
#

n-no

#

not rn

#

maybe later

old wyvern
#

You need to edit the dependencies in stack xD

hot hull
#

Is it OS?

prisma wave
#

oh really lol

half harness
#

not rn

old wyvern
#

under extra-deps

prisma wave
#

i was looking at hasklash and text isn't in there

old wyvern
#

stack is built over cabal

hot hull
#

bruh

half harness
#

i just didn't want someone to be like "ew"

#

ill OS it

hot hull
#

Open Source shit

old wyvern
hot hull
#

You're never gonna improve if you keep making the same mistakes

old wyvern
#

Lemme just confirm

half harness
#

okay

prisma wave
#

wtf

hot hull
#

Now that you've mentioned it, all I'm gonna look at

half harness
#

.-.

old wyvern
#

Did you stack isntall text bm?

prisma wave
#

i add it to extra-deps, and to cabal and it still gets removed from cabal

old wyvern
#

huh

prisma wave
#

yes

old wyvern
#

What are you running?

prisma wave
#

stack run

half harness
#

also i mistyped 'stuff'

old wyvern
#

try building

half harness
#

so it came out as 'stfffffffff'

old wyvern
#

stack build

prisma wave
#

hmm

old wyvern
#

Ignore the cabal file

prisma wave
#

nope same thing 🥲

old wyvern
#

Watch compiler errors

prisma wave
old wyvern
#

You almost never want to directly deal with cabal unless stack tells you to xD

prisma wave
#

ok lol

hot hull
#

already an oh god

prisma wave
#

well that's what it says to do

half harness
#

NO

#

FROSTY

#

PLZ

#

😫

old wyvern
#

very weir

#

d

#

hmm

prisma wave
#

yeah lol

hot hull
#

ngl, I wouldn't recommend kotlin for this kind of project

half harness
#

ive also got a trello lol

half harness
#

i thought kotlin had everything in java

#
  • some others
hot hull
#

Java is usually more forgiving

half harness
#

forgiving?

#

i haven't used java in so long that i forgot to use finals

#

thats how much i use kotlin

#

lol

old wyvern
#

Did you add your dependency to package.yaml bm?

prisma wave
#

i did not

old wyvern
#

Oh

#

thats it

prisma wave
#

aah let me try

old wyvern
#

Add it under dependencies there

prisma wave
#

IT WORKS

#

ty

old wyvern
#

ayy lit

prisma wave
#

ok that's 1 problem fixed

#

oooh and now vsc has fixed itself

#

yay

#

everything works

#

this is great

old wyvern
#

ayy

#

btw

#

bm

#

Is it possible to request dagger to inject dependencies into a precreated object?

prisma wave
#

uh

#

idk

#

probably not

old wyvern
#

I have a viewmodel that requires both runtime stuff and stuff from the dependency graph

#

rip

#

This is going to be hard to fix

oak raft
#

Could I make a discord bot with kotlin

old wyvern
#

Yea

#

You can in any language that can do networking xD

oak raft
#

Is it advised to make a bot in kotlin though? I remember a couple of you don’t recommend making a bot with python

old wyvern
#

Yea no issues with using kotlin

#

Also not sure why making bots with python is not recommended

#

Altho I dont like python much

oak raft
#

I remember hearing it a couple times

#

Imma properly learn c# first for unity though

#

Speaking of which, how have your projects been going?

old wyvern
#

Which one?

oak raft
#

You have a couple?

half harness
#

its awesome

old wyvern
#

Yes

onyx loom
#

slimjar 🙂

#

relocations when

old wyvern
#

Very soon kal

onyx loom
#

😮

old wyvern
#

Matt is working on the plugin so as soon as its done

distant sun
old wyvern
#

I might as well add the bytecode transformer rn

oak raft
#

But why gaby

old wyvern
#

personal reasons: offside rule, dynamic typing

#

Altho its great for writing something up fast to see if it works or something

eternal compass
wide thunder
half harness
eternal compass
#

I kinda want to buy one of the lame sticker packs just to have one that no-one else has

obtuse gale
#

literally all of 'em are lame lmao

#

cringe af

eternal compass
#

yes I know lol

obtuse gale
#

I don't see anyone using these unironically

eternal compass
#

Wumpus daily routine

eternal compass
#

:p

obtuse gale
#

right but not to express a sentiment

eternal compass
#

server admins can't even disalbe them atm

obtuse gale
#

it's like they are targeted to 10/12 year olds but discord only allows 13+ anyway 🙃

oak raft
half harness
#

at least Dyno can

oak raft
#

I don’t appreciate you disrespecting wumpus fefo

eternal compass
#

thats a bot

half harness
#

@loud gyro

eternal compass
obtuse gale
old wyvern
#

🥲

half harness
#

🥲

old wyvern
#

120 fps gang

prisma wave
#

yugi should i be using Data.Text everywhere?

#

or only where necessary

old wyvern
#

Depends on if you need the features from that library a lot

#

if so just import and use Overloaded strings and go with it

prisma wave
#

im literally only using T.replace

#

so i think i'll just pack and unpack

old wyvern
#

Yea

oak raft
#

In the first condition of a for loop, do you have to create a variable there or can you use a pre existing one

#

Also can you use that same variable outside of the for loop

prisma wave
#

you can use a pre-existing one

#

@old wyvern user error (Pattern match failure in do expression at src/Lib.hs:22:3-22) any ideas? ```hs
(_, Just hout, _, _) <- createProcess (proc "java" ["Interop"])

ocean quartz
#

Very indecisive code, maybe handle, maybe handle, maybe handle, maybe it'll handle it some day 🥺

prisma wave
#

i think it's just a warning

old wyvern
#

You arent handing the nothing branch

prisma wave
#

aaah

old wyvern
#

All cases must be handled

prisma wave
#

i see

#

how could i do that?

oak raft
#

Yugi!

old wyvern
#

Yea?

oak raft
#

You’ve evolved

prisma wave
#

just match hout i guess

old wyvern
#

lol

old wyvern
old wyvern
prisma wave
#

am i stupid?

#

oh no bars

old wyvern
#

You dont need the guards

#

Yea

#

Those exist on functions

oak raft
#

Revert

#

You look better in blue

old wyvern
#

🥲

jovial warren
#

hey anyone here wanna see some fucked up chunk loading?

half harness
#

uh

jovial warren
#

🥲

dawn hinge
#

Jesus

jovial warren
#

not actually sure what's causing either of those

#

the chunk sections is something I've known about for a while

humble silo
jovial warren
#

no clue

#

might be custom

humble silo
#

might?

jovial warren
#

this is a pregen world I just found somewhere on Spigot lol

humble silo
#

ah

jovial warren
#

idk how it was generated

humble silo
#

wait so what exactly are you working on ?

#

Is it spigot or what?

ocean quartz
#

Is it bad I have no idea who this person is?

sweet cipher
old wyvern
#

Sx

onyx loom
#

sx still has his account

#

afaik

ocean quartz
#

Yeah he's in my 8th

old wyvern
#

💀

jovial warren
#

yeah sx still has his account

old wyvern
#

He still talks to any of you?

jovial warren
#

no

onyx loom
#

itll probably come to u matt, the #3 on my list i completely forgot who it was but i remember now

half harness
jovial warren
#

just seen him in a mutual server iirc

ocean quartz
half harness
#

no its not bad

#

how would u know who a deleted user is

old wyvern
#

The #1 on my list is deleted

#

Altho I think ik who that is

half harness
#

lol

old wyvern
#

Also being the guy who tried to scam me

obtuse gale
old wyvern
#

Into signing a contract

ocean quartz
#

The discrepancy between first place and second place in my messages is insane

jovial warren
half harness
#

oof

jovial warren
ocean quartz
#

These are dms

jovial warren
#

okay what

#

how have you had 105k messages in a single DM conversation

ocean quartz
#

It's my fiance lol

jovial warren
#

haha fair

hot hull
#

Bardy, I suspect >> 4

jovial warren
#

oh btw, you know, idk when it happened, but some time millions of years ago, we evolved the ability to do this amazing thing called talking Matt

#

like in person

onyx loom
#

in person overrated

ocean quartz
jovial warren
#

if she's your fiance, I could probably put bets on you two living together (unless things work differently out there), meaning idk what kind of excuses you have lol

jovial warren
#

you telling me that you and your fiance live across the world from each other?

onyx loom
#

PANGEA

ocean quartz
#

Yes

jovial warren
#

jesus

#

you guys never thought of moving in together somewhere?

ocean quartz
#

If things were that easy lol

jovial warren
#

lol

#

what's your excuse? pandemic?

half harness
#

didn't you say u were fiance like a few months ago or something

onyx loom
jovial warren
ocean quartz
#

She's studying in the US, have you ever looked into how to get a greencard or a work visa in the US?

half harness
#

🙄

jovial warren
#

ah right

half harness
jovial warren
#

fair

obtuse gale
hot hull
#

nice number

jovial warren
onyx loom
#

funny number yes

jovial warren
#

looks like something's gone wrong

#

cough integer overflow cough

oblique heath
#

more like a time of 0 ms

jovial warren
#

also, 9PM? why 9PM? I thought it'd be closer to 12

ocean quartz
#

Let me fill you up on how to live in america, there are 3 ways, marriage, lottery, and refugee, first one is not viable for now, second good fucking luck, people wait over 2 decades to get theirs, third one, yeah my country is not at war

jovial warren
#

wow is it really that hard?

onyx loom
#

america is extremely strict

#

matt how about she comes to portugal 🥲

jovial warren
#

in the UK, we pretty much take in any old joe bloggs from anywhere

#

no matter their circumstances

#

lol

ocean quartz
half harness
#

BM

onyx loom
#

ok good

#

because fuck the us 🙃

prisma wave
ocean quartz
#

There is one huge thing that is a complete nope for me about living there, health care, dude, she went to the hospital because some chest discomfort they took one xray and some blood work, to tell her that it was heartburn, ah yeah and a bill of $2.5k

prisma wave
#

sounds like america alright

onyx loom
#

jesus fucking christ

oblique heath
#

sounds about right

ocean quartz
#

I went to the hospital did a fuck ton of bloodwork and 2 xrays, 25eur

onyx loom
obtuse gale
#

what the absolute fuck

prisma wave
#

I'd rather wait than pay 2.5 grand

jovial warren
#

my stepdad waited 9 hours once when he got taken in by ambulance

prisma wave
#

not to get political but the nhs is chronically underfunded sooooo

jovial warren
#

facts

onyx loom
#

☹️

jovial warren
prisma wave
#

£32 million a week

#

Any second now

#

It's coming

#

Just give it a few more years

onyx loom
#

😩

ocean quartz
#

Ah brexit, it took so long that i don't even know if it happened or not

onyx loom
#

ur not alone

#

me neither

jovial warren
#

it's done now

#

it was officially finished on the 1st of this year

ocean quartz
#

Brexit never ends, it's a state of mind

hot hull
#

It happened no?

#

I got a message saying UK is moving out so services are no longer available there

distant sun
#

So on my server people have a lot of farms and spawners, is there any way to minimize the lag caused by these? I run tuinity, have farmlimiter installed and all mobs from spawners have their AI disabled. I would love some help, not stuff like "make them async" 😢
I know one of the problems: I have a HDD instead of SSD but cant upgrade rn =/
https://timings.aikar.co/?id=af473f9078e2426fb27513a551e2dc78

onyx loom
#

no more free mobile data in EU contries ☹️

#

would upgrading to an ssd even help?

oblique heath
#

depends

jovial warren
distant sun
obtuse gale
#

man I don't understand timings

jovial warren
#

noooooooo

oblique heath
#

if you have a hdd with a dram cache and your server is small, it honestly wont even matter much

obtuse gale
#

Gaby make a spark report 🙂

jovial warren
#

free mobile data!

jovial warren
distant sun
#

Give me the cmd, Fefo

jovial warren
#

what you trying to do?

obtuse gale
#

got spark?

distant sun
#

Yea ofc

jovial warren
#

/spark heapdump?

#

/spark profiler?

onyx loom
obtuse gale
#

there are a bizillion commands though, for CPU profiling, memory inspection, health report etc

distant sun
#

smh xd

ocean quartz
#

Look at Luck here making good software, smh

distant sun
#

spark profiler --timeout 60 --thread *
would be good?

obtuse gale
#

sure ig

distant sun
#

Ok will ping you in a minute, Fefo

obtuse gale
#

k i'mma go pee

onyx loom
#

send pic

distant sun
#

Enjoy

obtuse gale
#

hm yes, I see you suffer from lag

obtuse gale
onyx loom
#

u first

obtuse gale
#

oh shit

distant sun
#

:((

prisma wave
#

thanks @oblique heath

oblique heath
#

hehe

obtuse gale
#

let's see let's see what we got here

onyx loom
#

what on earth

prisma wave
oblique heath
#

now all that's left is running haskell code from java

obtuse gale
#

I hope they have a good laugh though

prisma wave
jovial warren
ocean quartz
#

Leave the children alone!

jovial warren
jovial warren
#

that ticks all the levels

distant sun
#

lmfao

prisma wave
jovial warren
#

you have runServer, then tickServer, then tickChildren

#

vanilla is weird

#

also uses a BooleanSupplier to get whether it has time left to wait for the next tick or not

#

because yes, that exists in java.lang

obtuse gale
#

java.util.function 🙂

jovial warren
#

or there

#

wherever lol

#

it's in java.base, we'll leave it at that

obtuse gale
#

not if you're on Java 8 fingerguns

jovial warren
#

also, tickChildren isn't a method of DedicatedServer, it's a method of MinecraftServer

#

just DedicatedServer extends MinecraftServer lol

obtuse gale
#

ok and?

#

blame the jvm lol

jovial warren
#

that's tickChildren btw

#

with my naming of stack variables and parameters

obtuse gale
distant sun
#

any idea, Fefo? xD

distant sun
#

Entity.burnFromLava() smh

obtuse gale
#

hoppers yikes

distant sun
#

Hoppers are a pain, I know 😦

ocean quartz
#

Have you changed the setting to make hoppers go slower but take more items at a time?

obtuse gale
#

also the server just being slow on its own lol wtf does that method do

ocean quartz
#

Wouldn't having an hdd affect the speed of chunk loading? Since it'd be loading them from file

distant sun
#

That's what multiple people said

#

We are trying to save money for a new server, with ssd

distant sun
obtuse gale
#

how does profiling the own jvm work...

ocean quartz
#

It should help a bit I think

distant sun
#

is there anything I can do for iron golem farms? Dont want to nerf them but make golems cause less lag xd

#

I feel like that require nms but hey

obtuse gale
#

wtf is this xD

distant sun
#

b r u h

oak raft
ocean quartz
distant sun
#

cant first check if it has ai disabled or not?

#

cuz all mobs from spawners have it disabled

obtuse gale
#

ah yeah... Entity.updateInWaterStateAndDoFluidPushing, that is definitely calling for mob spawner farms

ocean quartz
#

What if it's a normal iron golem farm though?

distant sun
#

talking about this

#

is not, Matt

ocean quartz
#

You don't have those there?

distant sun
#

I do but much more people have farms with tens of spawners than villagers

ocean quartz
#

Hmm, i think you can check if AI is disabled yeah, but what would you do with that? ;o

distant sun
#

That's what I'm asking 🤣

ocean quartz
#

Can't think of anything xD

distant sun
#

look at this 🤣

ocean quartz
#

What if you make it so iron golems from spawners die after x seconds, that way they wouldn't need lava, so it'd be less interactions

distant sun
#

or as soon they get in lava

prisma wave
#

@old wyvern why can i do this

distant sun
#

so you dont lose drops

prisma wave
#

but not this

obtuse gale
#

is it economy based or something? because who the hell needs that much iron..

distant sun
#

yeah it is

#

they sell most of the iron to shop

obtuse gale
#

yeah no wonder

distant sun
#

that's why I want for skyblock to have a different approach for spawners xd

ocean quartz
#

I made an iron farm at spawn and people on the server just don't get enough of it, so I stopped the farm, it's been a week and still this much iron lmao

distant sun
#

but until then I need to stabilize this

#

why does your iron looks like netherite xd

ocean quartz
#

Idk, resource pack thought i'd be better xD

distant sun
#

🤣

ocean quartz
#

1.16 iron farms are so op, 3 villagers, 2 zombies and it was making insane amount of iron

distant sun
#

fr

ocean quartz
prisma wave
#

progress... sort of?

#

the output is now 0

ocean quartz
#

Watcha doing bm?

prisma wave
#

calling Java code from Haskell

#

The interop nobody asked for 🥲

ocean quartz
#

Pretty cool though

distant sun
#

brb @obtuse gale ❤️

prisma wave
#

Yea it cool

obtuse gale
heady birch
ocean quartz
#

Ooh I forgot that paper now accepts rgb on console

obtuse gale
obtuse gale
onyx loom
ocean quartz
# obtuse gale 256 colors 😮

Now I'll need to update my checkers

if (!IS_PAPER) {
  "Go die".log()
  return
}

if (version < "1.16.5") {
  "update you monster".log()
}

// beautiful colors here
obtuse gale
#

lmao

half harness
#

wait is that kotlin

ocean quartz
#

What?

ocean quartz
#

Yes

#

If you're going to ask if this is possible version < "1.16.5" no, that's pseudo code

half harness
#

oh i didn't even notice

#

lol

prisma wave
prisma wave
#

You can define the compareTo operator

winter iron
#

help 😢

#

eveything red

#

after new intellij update

#

😦

half harness
winter iron
#

tried that 😦

half harness
#

oh

distant sun
ocean quartz
#

😬

jovial warren
winter iron
#

nur

#

i just reinstalled ide

#

and its good

#

¯_(ツ)_/¯

ocean quartz
#

Me: I should be coding
Also me on youtube:

obtuse gale
#

Classic

prisma wave
#

Classic

ocean quartz
jovial warren
#

private static final Comparator<Map.Entry<String, CounterCollector>> COUNTER_ENTRY_COMPARATOR = Map.Entry.comparingByValue(Comparator.comparingLong(param_0 -> CounterCollector.access$000(param_0))).reversed(); anyone know how I could convert that to Kotlin? (ignore the access$000 and the param_0, access$000 just gets a long value from CounterCollector)

#

I'm just wondering if Kotlin has a good way of comparing values lol

#

because I still don't seem to be able to understand how comparators work

distant sun
#

cant use the java to kotlin conversion thing?

jovial warren
#

oh you got the brains

#

and that did literally nothing other than further fuck the code

prisma wave
#

oh cool you can use gradle with java 16 now

#

as long as you have another jdk version installed

distant sun
#

@jovial warren cant just use java code there?

jovial warren
distant sun
#

easy xd

prisma wave
#

compareBy { it.total }

onyx loom
#

what the fuck youtube

#

is this taking the piss 😭

ocean quartz
#

Send me your credit card info i also need to verify your age

onyx loom
#

ok!

#

its actually bs tho, never had this happen before so yikes

#

im not even 18 so i cant even verify 🌚

lunar cypress
#

L

onyx loom
#

rude

prisma wave
#

good news guys

#

it works

#

this was not a waste of time at all

onyx loom
#

omg pog

half harness
#

intellij just sometimes decides not to color anything in a certain area

#

so annoyingg

#

and sometimes it just doesn't color anything

oblique heath
#

next step: plugin adapter to allow us to write haskell mc plugins

prisma wave
#

yes

#

even though calling this "interop" is a massive lie

#

it literally just writes to a file and compiles lmao

oblique heath
#

oh lmao

#

i can't wait to see how that'll work in the context of a mc plugin

prisma wave
#

it might work

#

maybe

#

it would just be incredibly slow

#

maybe one day someone will make a ghc fork that compiles to bytecode

oblique heath
#

what if for calling functions and stuff you use ghci

prisma wave
#

hmm maybe

#

like keep a long running ghci instance up

oblique heath
#

ye

#

that way you can also even dynamically add new functions in

prisma wave
#

😮

oblique heath
#

hot swappable plugins >:)

#

or something

prisma wave
#

haskell scripting api

oblique heath
#

yeee

#

that sounds kinda taboo

#

but still, yeeeee

eternal compass
#

Just switched to InteliJ Idea Ultimate :p

onyx loom
#

welcome to the cool kids club

eternal compass
#

I've already messed with WebStorm, and its soo nice

#

like- I'm used to writing a piece of code in NodePad++ and seeing if it runs, since Visual Studio is meh

lunar cypress
#

No more intellij

#

Only emacs

high forge
#

Hey guys how can i ask to clip to add a feature to DeluxeMenus?

obtuse gale
#

you say please 🙂

#

then he'll consider it

high forge
#

okay but is there like a ticket bot or you just write down there?

lunar cypress
high forge
#

Thank you johnny

#

I'll just tag him then?

prisma wave
#

a technological marvel many would say

#

but oh god compression has ruined that video

obtuse gale
#

incredible

lunar cypress
#

Do jni bridge and I will star it

prisma wave
#

😮

#

is that possible?

eternal compass
#

I was just able to download that really nice theme's pro version for free within InteliJ... am I haxing?

obtuse gale
#

Java with


"""``` strings 😩
prisma wave
#

😩

half harness
lunar cypress
#

Sure, you can call C<->Java and C<->Haskell

half harness
#

did you buy intellij ultimate?

eternal compass
half harness
eternal compass
#

I have Ultimate

prisma wave
half harness
eternal compass
#

yes

prisma wave
#

heh

oblique heath
half harness
eternal compass
#

oh cool

#

Jetbrains student is amazing

obtuse gale
#

no u

prisma wave
#

(a <> b) <> c == a <> (b <> c)

#

clever

eternal compass
obtuse gale
#

do with that as you will

prisma wave
#

ok this is gonna be fun

#

so JNI functions can call java functions right?

lunar cypress
#

Yes

prisma wave
#

excellent

lunar cypress
#

If you struggle with JNI I might be able to help

#

But haskell no idea

#

I'll just keep this around

ok this is gonna be fun

prisma wave
#

haha

#

okay

#

never tried JNI so i'll probably take up your offer

#

is it as simple as just making a few C files and adding the jni headers?

obtuse gale
#

and load the library and set up cmake/make etc

#

a whole plethora of things

lunar cypress
#

You'll need to add the shared libs to the library path of the jvm

#

You can generate the headers

prisma wave
#

ok so not that simple

#

i'll do some research

#

how hard can it be?

lunar cypress
#

Not too hard for simpler things but intertwining two runtimes is quite a task

prisma wave
#

yeah this might be out of the scope of what was essentially a joke

winter iron
#

nahhhh, just make it a global variable, expand the scope and do it

#

no balls

obtuse gale
#

it's confusing to set up at first

lunar cypress
#

Yeah I mean just do it the V lang way

obtuse gale
#

just bash on it

lunar cypress
#

Make a hello world demo and claim it can do everything

obtuse gale
#

lol

eternal compass
#

I just found an InteliJ plugin that highlights bracket pairs.. this is amazing

lunar cypress
#

Bruh

#

Default behaviour

eternal compass
#

hm?

lunar cypress
#

IntelliJ does that by default

eternal compass
#

noo its nicer than that

obtuse gale
#

I think he's talking about the one that colors them by pairs

eternal compass
#

its different

#

lemme send a ss

gusty glen
#

👀

eternal compass
#

see the purple highlighted brackets?

lunar cypress
#

That's really just default with a different color thonking

eternal compass
#

eh, I like it :p

#

I've not played around with it too much though

prisma wave
#

oh wow haskell's native interface is really easy

lunar cypress
#

Looking forward to the upcoming stuff for this in the jdk

prisma wave
#

is that a joke or is there an actual thing

lunar cypress
#

There is

obtuse gale
prisma wave
#

yeah it's hard to tell sometimes lmao

#

what is it?

lunar cypress
#

Can't find the exact jep that I had in mind

obtuse gale
#

that's a lot of "native" words

prisma wave
#

ooh interesting

obtuse gale
#

This Project is sponsored by the Raycon Earbuds

prisma wave
#

the idea of explicitly allocating and freeing memory in haskell is unbelievably cursed

lunar cypress
#

Wait til you get to the fun part of storing java references

prisma wave
#

hmmmmm

#

well we're off to a good start already

obtuse gale
prisma wave
#

now why would this not print anything is the question

lunar cypress
prisma wave
#

c_printf is just a wrapper for printf afaik

prisma wave
#

this is very cool though

#

you just define the name and the haskell signature and it calls the c function with no issues

#

ooh it can handle impure functions too

#

this is actually quite smart

#

so if we wrap a function like rand with just the type Int, it only calls the function once (therefore keeping it pure)

#

but if we define it as IO Int it calls it every time

#

fancy

obtuse gale
#

oh god

#

the satisfaction

#

Tests passed: 8 of 8 tests

#

I need more

prisma wave
#

👀

ocean quartz
#

@prisma wave How would you make a logging util?
I remember you saying that "Message".log() is ugly and liked something like debug { "Message" }, but the second sounds weird for bigger messages or multi line ones

prisma wave
#
debug {
  """
  blah
  blah
  """
}
onyx loom
#

i dont see anything wrong with the first, infact i prefer it

ocean quartz
#

Ooo i forgot about the triple quotes

prisma wave
#

lol

#

nah first seems like extension function abuse imo

onyx loom
#

abuse it all u like 🌚

prisma wave
#

😟

#

i mean i just made that term up

#

but it just doesnt seem right imo

onyx loom
#

lmao

prisma wave
#

im so confused rn

#

i cant think of anything more complex than hello world that i can do for haskell <> java interop

#

like

#

maybe i could do something weird like using java classes from haskell

#

but i want something that can work both ways

cinder flare
#

what things can haskell accomplish?

prisma wave
#

idk

#

or do u mean in general?

cinder flare
#

like a program you'd write in haskell

#

what would it do

prisma wave
#

do you mean me specifically, or generally

cinder flare
#

just give me something you'd write in haskell

prisma wave
#

because what i want is a proof of concept of actual Haskell <> C <> Java interop

cinder flare
#

like a program to do something

prisma wave
#

uh

#

a compiler maybe?

#

it's quite good for that