#dev-general

1 messages · Page 560 of 1

static zealot
#

java 16 is pretty cool

woven plaza
#

data classes, extension funcs, receivers do their job

prisma wave
#

Man that's a hot dev-general take

#

Daring today aren't we

#

Java has data classes

steel heart
#

You have been blessed

#

There’s no saving for those who fall into the Lombok cult

#

We’re glad to have you here instead

obtuse gale
#

In fact, not using Lombok is a requirement for the developer role 😌

static zealot
#

wait is it actually?

obtuse gale
#

Yeah lmao

steel heart
#

🤤

static zealot
#

oh that's great. I didn't know that

obtuse gale
#

@quiet depot will instantly reject you if you use lombok lmao

steel heart
#

😌

static zealot
#

oh I guess it falls in this category?

  • An understanding and attempt
    at following your chosen languages'
    principles and conventions.
#

xD

obtuse gale
#

:P

woven plaza
#

like

#

I do not get ppl arguments

#

wow lombok is so goog

#

no contructors

#

getters

#

setter

#

you do not need to waste time writing them

#

etc

#

when you can literally generate them in 0 seconds

#

using intellij

prisma wave
#

based and intellijpilled

obtuse gale
#

IntelliJ no idea

prisma wave
#

what!

static zealot
#

man. only few months and I'll finally get IJ ultimate. and also git kraken so piggy won't yell at me anymore.

obtuse gale
#

LoOk HoW cLeAn It LoOkS

woven plaza
#

I have ultimate for free

steel heart
#

“Lombok looks better”

woven plaza
#

who cares

#

it compiles to getters and setters

#

etc

#

anyway

#

lol

ocean quartz
#

They are just natives

static zealot
# woven plaza I have ultimate for free

yeah. I'll get it as well. I'm currently not a student. well techincally I am since I Did pay for this year of uni. or at least the start taxes but I don't have their email or anything. I need to wait for uni to start

woven plaza
#

the only shit I would call useful in lombok are builders and extension functions shit

steel heart
steel heart
woven plaza
#

but using it for that 2 things is useless ig

steel heart
#

We have to annihilate that island

static zealot
#

is it wrong if I actually like the getter/setter methods in java? also I start to like java over kotlin? at least in how it looks? I'm asking if its bad bcz I'm starting to believe its my fault that it looks bad in kotlin xD

ocean quartz
steel heart
#

It has been a threat ever since then

#

A top priority to eliminate it

obtuse gale
steel heart
#

Well maybe boilerplate is a good word

woven plaza
#

after kotlin I prefer doing ```java
public final int x = 0;
instead of
private int x = 0;
public int getX(){
return x;
}

static zealot
#

maybe. idk. Like there's some stuff I actually love in kotlin even design. but there's stuff I like more in java

obtuse gale
#

While yes Java is more verbose in a good number of things, it's also quite explicit in what you do and I like that explicitness in the design philosophy

static zealot
# half harness 🤢

u shut up. you're code looks bad in both java and kotlin. you don't have a saying in this

half harness
#

oof

static zealot
#

bad*

#

there. fixed

ocean quartz
steel heart
#

Yeah there’s significantly less inference in Java as opposed to kotlin

woven plaza
steel heart
#

Bruh

obtuse gale
#

Well

#

Perhaps you only want a public getter but internally it's mutable

ocean quartz
#

Well for the same reason Kotlin's properties aren't public fields

woven plaza
#

but if its not

#

you can just make it public

ocean quartz
#

Then your code is no longer consistent, you now have two different ways of declaring things

steel heart
#

Also if we have a getter we also have the ability to override it in a derivative and implement it from an interface, we can also return a defensive copy without changing what happens outside.

obtuse gale
#

You can also fit more logic in a proper getter/setter function (e.g. caching or dispatching events)

ocean quartz
#

Your point makes no sense, specially since you started the conversation with

when you can literally generate them in 0 seconds
using intellij

steel heart
#

Yeah lol

obtuse gale
#

And that goes unnoticed with Kotlin, you use it as a "field" but in reality it calls the underlying function

woven plaza
#

what I mean is ```java
class Class{
public int x = 0
}

class Class{
private int x = 0
//setter
//getter
}

steel heart
#

If it’s a 10 min project maybe not

#

But really doing underlying work for anyone who might work on that code in the future can really save some time later.

prisma wave
#
x :: IORef Int
x = unsafePerformIO (newIORef 0)

:)

steel heart
#

😮

prisma wave
#

Cursed

obtuse gale
#

that was over two weeks ago lmao

woven plaza
#

how to not suck at design and architecture

prisma wave
#

what have i done here

obtuse gale
#

a joke

#

out of yourself

prisma wave
#

explain

obtuse gale
#

nah i don't really feel like it

prisma wave
#

fuck your mother

obtuse gale
prisma wave
#

and father

obtuse gale
prisma wave
#

and any other close family members

obtuse gale
prisma wave
#

die

obtuse gale
#

hopefully

prisma wave
#

😖

#

please

#

what have i done

#

i beg of you

obtuse gale
#

send more code dude lmao

prisma wave
obtuse gale
#

shit

prisma wave
#

i think i messed up some probability

obtuse gale
#

I just remembered the time I was administering a server

#

and I did

#

//chunk

prisma wave
#

oh no

obtuse gale
#

then I did //set ender_chest

#

lmao

prisma wave
#

lmao

obtuse gale
#

I locked myself out of the server

#

'cause too many packets or some bs

prisma wave
#

and then the undo history was gone?

obtuse gale
#

I ended up downloading the region file and deleting the chunk xD

obtuse gale
prisma wave
#

lmao

#

💀

#

on the bright side this is a good way to test if my undo mechanism works

#

with the pdc

obtuse gale
#

lmao

prisma wave
#

i suspect it won't

#

fuck me

#

what does that even mean

#

oh

#

nvm

#

oh shit it actually did work

obtuse gale
prisma wave
#

pdc stuff

obtuse gale
#

biting more than you can chew ByteStreams edition?

prisma wave
#

yeah

#

well

#

it was a classic blunder

#

i thought an int was 8 bytes instead of 4 🤡

obtuse gale
#

lol no

barren solar
#

Well if it was a long long int 🤔

prisma wave
#

long long

obtuse gale
#

Integer.SIZE :d

prisma wave
#

nice

obtuse gale
#

it's native lmao

#

@Native public static final int SIZE = 32;

#

ooo Integer.BYTES exists too

#

just found out about this one field public static final int BYTES = SIZE / Byte.SIZE;

prisma wave
#

neat

barren solar
#

I'm looking it up now and for both 32 bit and 64 bit systems "int" is 4 bytes

prisma wave
barren solar
#

So why is "long int" 4 bytes on 32 bit and 8 bytes on 64 bit

prisma wave
#

C bad

potent nest
#

What is @Native for? Documentation purposes?

barren solar
#

That's java (well it's on oracles website so I just assumed lol)

obtuse gale
prisma wave
#

long int is not a thing in java?

obtuse gale
#

JNI but for fields

prisma wave
#

and long is always 8 bytes

#

even on 32 bit

#

no?

potent nest
#

But what’s the usage there

#

Time to find out

obtuse gale
#

long double is a myth

barren solar
#

Well oracle shouldn't have it then 😠

obtuse gale
#

it's D

#

what the hell even is D

hazy widget
#

i was just about to say that lmao

prisma wave
#

D is like C++ but good

static zealot
#

its the D

potent nest
#

Okay @Native is for tooling but does not have an own functionality as it seems

barren solar
#

That would make sense why long is different sizes depending on 32 or 64 bit

#

D is trash

obtuse gale
prisma wave
barren solar
#

Since long is a modifier can you just add as many as you want in front of an int

#

Or is it hardcoded to only understand up to two

#

Speaking about C here

obtuse gale
#

it's not really a modifier

#

it's a type itself

#

you can just have a long alone

barren solar
#

Wiki calls it a modifier

obtuse gale
#

what article

#

but the answer is no btw

barren solar
#

C data types

#

I just tried it and the error thrown is

main.c:13:15: error: ‘long long long’ is too long for GCC

prisma wave
#

beta gcc

barren solar
#

What about g++

static zealot
#

yo I Think I've asked this before but I have a bad memory. on the new migration thing, mojang won't allow multiple accounts on the same microsoft account right?

prisma wave
#

i believe not

hazy widget
#

multiple accounts on the same microsoft account?

static zealot
#

fucking hell. this will suck

static zealot
hazy widget
#

oooooo

obtuse gale
# barren solar What about g++

Size
short - target type will be optimized for space and will have width of at least 16 bits.
long - target type will have width of at least 32 bits.
long long - target type will have width of at least 64 bits. (since C++11)

hazy widget
#

yeah that will suck

obtuse gale
#

also TIL short and long are size modifiers thonking

prisma wave
#

short long int

obtuse gale
#

I always used them as types of their own lol

#

Note: as with all type specifiers, any order is permitted: unsigned long long int and long int unsigned long name the same type.

#

cursed

barren solar
#

Wait what the hell

#

You can have int in the middle

obtuse gale
#

that's my source

#

very pog page

barren solar
#

Wait

#

So what if you want to do a pointer

obtuse gale
#

size_t

barren solar
#

long int unsigned long* or long int* unsigned long

obtuse gale
#

or if you wanna be fancy std::size_t:^)

hot hull
#

Oop, budget gone down again, he must've bought some coffee

obtuse gale
barren solar
#

long int unsigned* or long int* unsigned

obtuse gale
#

and on 64 bit long may be inaccurate since it is at least 32 (meaning it can be 32 bits wide)

#

that's why size_t exists lol

#

or std::ptrsize_t or smth

barren solar
#

But where does the * go for pointer declaration when your modifiers are on both sides of the data type

obtuse gale
#

oh you'll shit bricks

#

the * is not part of the data type

#

it's part of the variable

#

so long *a represents more accurately what a really is than long* a

barren solar
#

Oh that's cute

obtuse gale
#

long* a, b, a is a ptr to a long, b is a long

#

that's why in some projects you'll see it on the right

barren solar
#

That seems like it should really not function that way given the space

obtuse gale
#

I mean for all that matters you can do long*a xD

barren solar
#

Wait really

obtuse gale
#

yea

barren solar
#

Where does this absurdity line get drawn

obtuse gale
#

* can't be part of a type or a variable name

#

that's where

#

I suppose lmao

obtuse gale
#

it's more like

#

hmm

#

the underlying type is a long

#

and this variable is a ptr

barren solar
#

I'm gonna start coding without the space between type and variable name to piss people off

#

Can java do that too

obtuse gale
#

lmao

obtuse gale
prisma wave
#

Unsafe 🥴

barren solar
#

Oh my god you're right it's the starasterisk that distinguishes data type from random variable name

#

I wasn't even thinking about that

ocean quartz
prisma wave
#

oh my

ocean quartz
#

Oh my god

obtuse gale
#

lmao

#

it's a pretty neat concept though, you can get stuff like e.g. a "display name" or a "UUID" if implemented in the Audience

#

instead of doings casts n shit 💀

prisma wave
#

what do you mean "quotation mark"

obtuse gale
prisma wave
#

what the hell!

jovial warren
#

hey guys, just wondering: I've just spent a bit of time working on a block property system for Krypton, and I just want some opinions on it, would anyone mind looking through this PR? https://github.com/KryptonMC/Krypton/pull/47

GitHub

This PR adds a new system to blocks, which allows one to retrieve the value of a certain block's property from a property key.
Currently, what needs to be done is:

Add all the built-in pr...

obtuse gale
#

that's a lot of lines

jovial warren
#

I thought I'd ask here since I thought you guys might be the best to review this

#

yeah a lot of it is probably the enums, the constants, and some internal stuff

potent nest
jovial warren
#

actually, there's another commit in there that shouldn't be in there, which has quite a few changes iirc @obtuse gale, probably what makes it that size

#

basically, how the system works is that you can take a Block, for example, Blocks.AIR, and get/set properties on it of certain types to values of those types

#

all whilst introducing limited extra allocations and having the property map still internally be strings

#

e.g. you can do something like this: kotlin val myGrass = Blocks.GRASS_BLOCK val isSnowy = myGrass[Properties.SNOWY] // gives you a boolean because SNOWY is a Property<Boolean> and to set: ```kotlin
var myGrass = Blocks.GRASS_BLOCK
myGrass = myGrass.set(Properties.SNOWY, true) // Blocks are immutable, so this is why we have to do this

obtuse gale
#

okay but how about myGrass[Properties.SNOWY] = true 👀

#

idk how you can do that lol

eternal compass
#

That looks like JS

barren solar
#

Every language wishes it can mimic a fraction of js power

eternal compass
#

Haha haha

ocean quartz
jovial warren
jovial warren
obtuse gale
#

so it cannot return anything other than Unit?

potent nest
#

use + then heh

ocean quartz
static zealot
#

mann.... I really hate being that guy but I Just started a 1.12.2 server in 2 seconds and I Moved to 1.17.1 on the same server, same plugins, same everything and it started in 22 seconds. sad

half harness
#

ooooooof

#

2 seconds is really quick tho

potent nest
#

22 sounds like a lot

forest pecan
#

22 inches

#

vs

#

2 inches

eternal compass
#

Pulse really hoping that people prefer 2

forest pecan
#

Lmao

jovial warren
obtuse gale
ocean quartz
#

Nope

jovial warren
#

pretty sure that assignment isn't an expression

#

unfortunately

obtuse gale
#

lol rip

jovial warren
#

yeah, assignment is one of the few things that isn't an expression, and there's probably a good reason for that

prisma wave
#

it's probably so you can't do stuff like ```java
if (a = b) {
//uh oh
}

obtuse gale
#

you can do that in java :^)

prisma wave
#

indeed

#

on the other hand, you can't do ```java
int i;
while ((i = next()) != 0) {
// blah
}

half harness
prisma wave
#

no

#

i mean

#

in kotlin

obtuse gale
#

why'd you write ```java lmao

prisma wave
#

to demonstrate

#

that it is possible in java but not in kotlin

#
val i: Int
while ((i = next()) != 0) {
  // blah
}

is that better?

#

but now you will call me a fool for writing code that doesnt compile

#

cant win here

lunar cypress
#

next().also { i = it }

prisma wave
#

🤢

#

absolutely vile

obtuse gale
#

lol

calm night
#

How do I verify myself to get a role? I need help with deluxe chat

static zealot
calm night
#

there is no to create ticket?

#

I want to know how I enable special characters

#

example: Ñ

static zealot
#

you will just have to make sure all your data is correct (discord that is set on spigot) and your profile is public. then go to #bot-commands and do =spigot <your-spigot-id>

rugged compass
#

anyone can help me with goddamn boss bars?

#

without just telling me to use APIs

static zealot
static zealot
rugged compass
#

reeeee

low orchid
#

So im trying to setup my Craftingstore new template. And no i cant ask the creator because his support is very bad

#

so...

#

that thing keeps loading and loading forever

#

normally there should be the login thing there

#

so you can put your username there

#

nvm - FIXED

static zealot
ocean quartz
#

Omg ;o

Knowledge of Gradle

static zealot
#

oh is that on the apply page? damn that's cool

barren solar
ocean quartz
#

Kek

#

Tbh would be a cool job, too bad I'm too lazy

static zealot
#

not that I was even thinking about applying

#

but still

hard matrix
#

hey, should I use maven or gradle to build my mc plugins?

stuck harbor
#

gradle

ocean quartz
#

Gradle

stuck harbor
#

no need to finish sentence

obtuse gale
#

gradle

hard matrix
#

I have only just started getting into developing mc plugins I have never done it before

ocean quartz
#

Very good thing to learn

static zealot
#

gradle

ocean quartz
#

Use kts gradle btw

stuck harbor
#
  1. learn java if u haven't already
  2. learn kotlin
  3. use gradle
hard matrix
#

is their a good tutorial for setting up gradle in intellij?

static zealot
#

kts if possible. if not, groovy will work.

stuck harbor
#

kts best

static zealot
#

I mean its literally 2 buttons. actually 1

#

when you make a new project

stuck harbor
#

groovy is 🤏

ocean quartz
#

When you create a new project you can just select gradle project
If you already have one gradlew init

hard matrix
#

great thanks

#

and it will automatically create POM and add spigot dependencies?

#

so no need to download build tools?

ocean quartz
#

No, pom is maven, and the build tool has nothing to do with spigot

#

You'll have to add it yourself

static zealot
#

well. not pom. build.gradle. but yes. it will create it. but spigot you have to add yourself

ocean quartz
#

And you don't need to download it if you're using IJ

hard matrix
#

oh I though I needed build tools

static zealot
#

well you need if you want to work with NMS

#

but otherwise you don't

cinder flare
#

Only to build spigot

static zealot
#

and you only have to run them once.

hard matrix
#

what do i do with spigot?

static zealot
#

no

#

you don't need to download spigot

#

here.

cinder flare
#

You just add it to the build.gradle and it'll do the rest for you

static zealot
#

you just add the repository link and then the spigot dependency in build.gradle

#

and then refresh or whatever that is called

stuck harbor
#

yes

cinder flare
stuck harbor
#

or leiningen ;)

static zealot
hard matrix
ocean quartz
#

((leinin)gen)

hard matrix
#

oops

stuck harbor
hard matrix
#

embed dont work

stuck harbor
#

u aren't rank enough

static zealot
#

select Kotlin DSL support.

stuck harbor
#

iirc

static zealot
#

or whatever the button is

ocean quartz
static zealot
#

^^^^

stuck harbor
#

that

#

also java 14?

#

man

static zealot
#

^^ why 14? xD

stuck harbor
#

get 16

hard matrix
#

yeh i have 16

#

just didnt select

static zealot
#

select 16 then

#

and select the Kotlin DSL button as well

#

then Next

#

and you're good to go

stuck harbor
#

well get 17 soon enough

static zealot
hard matrix
static zealot
#

oh wait its actually September

hard matrix
#

i must be blind sorry

static zealot
stuck harbor
#

yeah this sebtember

cinder flare
static zealot
#

between java version and java

cinder flare
#

Yeah next mouth woooo

hard matrix
#

oh shoot

#

sorry yes

static zealot
stuck harbor
#

next mouth

#

next mouth

static zealot
#

do u think MC 1.18 will require java 17?

ocean quartz
stuck harbor
#

jesus my keyboard

static zealot
# ocean quartz

thank you sir. you forgot to put the face of the ultimate chad in the corner tho

stuck harbor
#

the enter key is soooo stuck

#

its like 5cm lower than all the other keys

static zealot
#

wait what the fuck?

ocean quartz
#

Ultimate chad? xD

static zealot
#

your keys go 5 cms down when you press them?

stuck harbor
#

maybe like 2 then

#

idfk

static zealot
#

Kangaroo or whatever his name is

stuck harbor
#

im british we use fathoms

ocean quartz
#

Oh lmao

hard matrix
#

so now what do i do? I have my new project open, how do I add spigot API as dependency?

static zealot
#

I used to have him automatically appear when I Used sharex

#

lmao

hard matrix
#

yep

static zealot
hard matrix
#

ah yep thx ill read first

static zealot
#

only read the build.gradle.kts part

#

no need to read the others

#

well. time to sleep. good night. ||and when I say sleep, I really mean just stay another 2 hours in bed watching youtube then crying on how little time I have left to sleep||

static zealot
#

xD

#

||serverworldfiles||

#

bringing back a dead meme bcz I'm cool

hard matrix
#

dependencies { // Pick only one of these and read the comment in the repositories block. compileOnly("org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT") // The Spigot API with no shadowing. Requires the OSS repo. compileOnly("org.bukkit:bukkit:1.17-R0.1-SNAPSHOT") // The Bukkit API with no shadowing. compileOnly("org.spigotmc:spigot:1.17-R0.1-SNAPSHOT") // The full Spigot server with no shadowing. Requires mavenLocal. compileOnly("org.bukkit:craftbukkit:1.17-R0.1-SNAPSHOT") // The full CraftBukkit server with no shadowing. Requires mavenLocal. }

stuck harbor
#

two can play at that game bucko

static zealot
hard matrix
#

Which depend should I go with>

stuck harbor
static zealot
#

unless you want to use NMS. then third one

static zealot
#

for some reason I love the burgir meme

stuck harbor
#

sometimes i feel 300 years old with modern memes

static zealot
#

its so fucking good. the burgir meme. I just watch it on repeat.

ocean quartz
#

Requires the OSS repo.
What? Who wrote that

hard matrix
#

which generator should I use?

static zealot
stuck harbor
static zealot
#

that's why you use paper repo fingerguns

stuck harbor
#

lol

static zealot
stuck harbor
#

dancing polish cow?

static zealot
#

lmao

#

burgir meme. it reminds me of myself when I Was young

stuck harbor
#

fun fact: i am currently hitting my enter key with a fancy danish pencil

hard matrix
static zealot
#

its on youtube so most likely not xD

ocean quartz
#

It's the mc dev plugin, a lot of people do

static zealot
#

Love the video or need more help...or maybe both?
💬Join us on Discord: http://discord.gg/invite/fw5cKM3
Thank you for tuning in to this episode of TheSourceCode! ❤️

If you enjoyed this video make sure to show your support by liking , commenting your thoughts, and sharing for all your friends to see and learn!

All code is available on Github:
...

▶ Play video
#

ah yeah I do

#

lmao

stuck harbor
#

1.13? why

#

why tho

static zealot
#

even tho... it literally just generates this every time: name: version: main:

#

that's literally what it generates every time

#

there's probably a way to make it better but yeah.. I Didn't give a fuck lmao

#

and yes it does generate it with that spacing. its literally more work to fix it than do it manually

frail glade
#

Are there any development videos on YouTube that are like not 20 years old?

stuck harbor
#

no

static zealot
#

yes. the ones from KnightzMC

#

they're great

ocean quartz
#

@prisma wave Smh

static zealot
#

||cries in 23 languages||

#

oh damn. java 16

#

love it

stuck harbor
#

man they still not out yet?

#

man

prisma wave
#

please

#

Let me rest

stuck harbor
#

👨

ocean quartz
#

No, we can't let you rest without the yt videos

prisma wave
#

maaaaaaaaaaaaa

static zealot
#

n

prisma wave
#

I have a bag to be chasing

stuck harbor
#

no sleep, only make kanban boards and compile gentoo to increase efficiency by 1%

prisma wave
#

Mediocre tutorials don't earn me anything

stuck harbor
#

adsense

static zealot
#

lmao

prisma wave
#

you need like a million subscribers for that

stuck harbor
#

sponsors?

static zealot
#

imagine all the 10k viewers that you can get from helpchat alone

prisma wave
#

True

#

If I get a sponsor from helpchat I'll do it

static zealot
#

and no. you need just a few hundred subscribers and few thousand views

prisma wave
#

that's still a lot

static zealot
#

for you to be able to put ads on your videos

stuck harbor
#

i think im monetized on yt actually

static zealot
#

well not with the help of HelpChat

stuck harbor
#

i dont make vids

prisma wave
#

Flex

#

True

#

Look

static zealot
prisma wave
#

I want to do them but money and other side projects just have higher priority

#

Mainly money

static zealot
stuck harbor
#

man imagine taking paid plugin stuff

prisma wave
#

Oh god I thought that pinged everyone for a minute

static zealot
#

imagine getting paid smiling_face_with_3_tears

stuck harbor
#

fun fact: if someone doesn't pay for ur plugin work, u should get a high court order to declare them bankrupt 👀

#

100% effective dangerous solution to all problems: the courts

frail glade
#

That's why you go under contract or request half up front.

#

I remember those days 🥲

stuck harbor
#

i will have you charged with handling a salmon under suspicious circumstances and pretending to be an egyptian if no pay

#

then again, you could have me shot if i entered chester as a welsh person

#

that would be an op move

stuck harbor
#

all british laws man

#

It is often said that there an old law in Chester that a Welsh person found within the city walls after dark can be "shot". The law was actually mentioned in House of Commons as recently as 6th Feb 2007 when Christine Russell (MP for Chester) said:

static zealot
#

every country has some weird 300 years old laws unfortunately.

stuck harbor
#

The Salmon Act 1986 is an act of Parliament which outlines the difference between legal and illegal salmon fishery, among other things. The Act also makes it illegal to "handle salmon in suspicious circumstances". The Act defines what "suspicious circumstances" are, however, as when salmon has been fished illegally.

static zealot
#

us has the maritim law or whatever its called for example

stuck harbor
#

between legal and illegal salmon fishery, among other things. The Act also makes it illegal to "handle salmon in suspicious circumstances".

#

1986 man

#

not 300 years old

static zealot
#

where in case of an accident at sea or a disaster, the company that owns the boat can sue those that were on board.

#

which is bullshit.

stuck harbor
static zealot
stuck harbor
#

damn that one was repealed in 1856

static zealot
#

oh yeah. just read that

#

in the repeal of obsolete statues act

stuck harbor
#

and the chester one is just a myth that is around that area

static zealot
#

makes sense

stuck harbor
#

but the salmon one

#

that still law

static zealot
#

well I mean

#

it does say

#

that susspiciouse means fished ilegaly

#

its just the wording that's strange with that law

#

man... I really hope that whenever the guy that invented hCaptcha dies, he gets greeted at the gates of heaven and has to complete 2 of them without a mistake to get in or otherwise he'll be thrown in hell.

stuck harbor
#

fun fact: british judges wear black cause they are mourning queen anne

hard matrix
stuck harbor
#

who died like 300 years ago

hard matrix
#

how can I fix that?

static zealot
stuck harbor
#

did u add the repository?

static zealot
#

well.. guess who didn't go to sleep 20 minutes ago when they said they will...

stuck harbor
#

lol

#

||same||

static zealot
#

it was queen anne of course...

#

easy question. damn

#

Finally closed pc. Time to see what's happening on youtube

stuck harbor
#

man we can't make threads ... :(

static zealot
#

Yeah. Bcz bots can't access them

stuck harbor
#

anyone found any serious security exploits in the threads system yet?

static zealot
#

So you understand why cube loecked them ... XS

stuck harbor
#

there always are some

#

well yeah

obtuse gale
static zealot
#

Well. No bots for starters

#

Oh. Maybe. Not sure. Cube didn't want to risk it

obtuse gale
#

it's weird as hell though

#

like for instance in LP even if clippy is in a thread, it won't register ! commands

#

but dyno whether it's there or not, it will log stuff (edits deletions)

hard matrix
#

Is that still okay to use?

static zealot
stuck harbor
#

man

static zealot
#

U forgot to select kts sad

obtuse gale
ocean quartz
static zealot
#

Oh maybe not. Not sure. Just speculating

frail glade
#

Go to bed

static zealot
obtuse gale
hard matrix
#

When creating new project with mc dev addon there is no option for kts

obtuse gale
#

and I think dyno won't either

static zealot
#

There is. In the same place it was before

obtuse gale
#

threads are reaaaaaaaaaaaaaaaaaaaaaaaally in their early stages

static zealot
#

You first go to the addon, select paper then go back to gradle and select the

hard matrix
#

oh

ocean quartz
#

rushed implementation Discord's favorite

static zealot
#

U need to go back to gradle and select the thing

hard matrix
#

yep

#

didnt realise I could do both

static zealot
#

Welp. Good night.

hard matrix
hard matrix
ocean quartz
#

Just Java

hard matrix
#

It sill did not create the gradle..kts

obtuse gale
#

excuse me what?

hard matrix
#

all i want to do is get started making a mc plugin

#

i wish there was a full tutorial out there that used the MC Dev plugin and gradle kts

cinder flare
#

which of are you trying to use lol

obtuse gale
#

The uh.. first one? 🥲

signal tinsel
#

Hmm

#

Does spigot allow transferring plugins to other creators?

onyx loom
#

pretty sure yea

forest pecan
#

😮

#

a bit laggy

#

but for 18x8 screen its super good

barren solar
#

That is very cool especially if you handle all the different video encodings yourself oof. Plus automatic resource pack creation god DAMN son.

obtuse gale
#

Benchmark classes should not be final
fuck off

obtuse gale
#

I hate my life even more at this very precise moment in time

#

Running a jmh benchmark, single threaded, 24 methods, 3 iterations each, 2 forks each, 10 seconds each... 5 warmup iterations.....

#

This is gonna take forever

forest pecan
#

🥲

potent nest
#

What are you benchmarking?

obtuse gale
#

Uh

sweet cipher
#

A bench

forest pecan
#

a mark

sweet cipher
#

I don't think you can bench a mark

obtuse gale
#

Different methods for checking if a string can be parsed into an int (+ parsing them) with different test cases

forest pecan
#

(int) str

sweet cipher
#

Or you could go back to my idea of numbers being only in Strings

obtuse gale
#

I'm expecting Integer.parseInt to be the slowest lol simply because generating stacktraces is heavy

potent nest
#

Sounds interesting

#

But yeah it will heavily depend on if it can be parsed or not I guess

obtuse gale
#

I forgot to specify the output format 🥲

#

Well I guess I'll be reading the results off a text file lmao

potent nest
#

Are you using it with the gradle plugin?

obtuse gale
#

Yeah

#

43% eeeeeeeeeee

obtuse gale
#

Cause like, they all go "oop this is not a number, fail fast"

#

Whereas a valid number it has to go through the whole thing lol

#

Except for Integer.parseInt just because it generates an exception lmao

obtuse gale
#

Got the results 👀

#

Guava Ints.tryParse pog

#

JDK Integer.parseInt is cancer lmao

potent nest
#

Well it also depends on which point the number gets invalid

#

Also iirc the definition of what is valid differs in guava

#

Yeah jdk allows + as prefix

obtuse gale
#

The whole generating the stack frame thing hits really hard, will probably post results somewhere tomorrow but it's like 30x slower than Guava failing lmao

#

I also tried checking with regex pattern to see if it's a valid number altogether, it's actually fairly smooth and consistent, Ints.tryParse is faster for checking even, but it's also hella faster than using Integer.parseInt for sure lmao

quiet depot
#

what's Ints from

obtuse gale
#

Guava

old wyvern
#

@quiet depot reverse proxy should work even if you test with a domain setup in the hosts file right?

quiet depot
#

wym

old wyvern
#

Like if I just add the domain to my local hosts file, it should still work fine with nginx right?

quiet depot
#

I'd imagine so

old wyvern
#

It seems to redirect me to the Welcome to NGINX page for some reason

#

I cant tell If I set something up wrong

#

like

#

nginx -t passes

quiet depot
#

paste ur configerino

old wyvern
#

Yup one sec

quiet depot
#

this isn't a reverse proxy

old wyvern
#

oh?

quiet depot
#

look up the definition of reverse proxy

cinder flare
#

yeah reverse proxy is like capturing the web server of some built in thing and using nginx to do domains for it

#

i use it for dynmap

old wyvern
#

Hmm

quiet depot
#

doesn't affect your issue though

cinder flare
#

ngl didn't look at his issue

#

just chimed in cause i actually knew something for once

quiet depot
#

what's ur server's ip

old wyvern
#

132.226.133.141

cinder flare
#

10.0.0.169

quiet depot
#

mind pasting your private key

cinder flare
#

lmaooo

#

works for me yugi

#

what's the problem then?

#

your hosts file setting doesn't redirect or something

old wyvern
old wyvern
cinder flare
#

oh

#

what's the other domain

old wyvern
#

I havent redirected it to the server yet, just added an entry to my local hosts file

cinder flare
#

and what's it supposed to do?

quiet depot
#

is this hosted on oracle

old wyvern
#

Yes

quiet depot
#

would you be willing to give me ssh access so I can have a look around

old wyvern
quiet depot
#

don't need your private key lol, that was a joke earlier

cinder flare
#

like what other webpage

old wyvern
#

yea sure piggy xD

cinder flare
#

do you have other sites defined in your nginx conf?

old wyvern
#

send me your public key

#

yes

cinder flare
#

and you can access them through the ip, but not your url

old wyvern
#

no

#

IP always redirects to the welcome

cinder flare
#

is the difference here ports?

#

or subdomain

old wyvern
#

domain

#

^ this is hosted there as well

cinder flare
#

oh

quiet depot
#

i pmed my key

cinder flare
#

i would just do the domain in your nginx conf

#

doing the hosts thing seems unnecessarily complicated

old wyvern
#

added

quiet depot
#

what's the username

old wyvern
#

ubuntu

quiet depot
#

pm me sudo password ples

old wyvern
#

lemme actually find it xD

#

dmed

quiet depot
#

k

#

it works now

cinder flare
#

nice

old wyvern
#

oh

#

what was wrong?

quiet depot
#

either your location / in the vhost

#

or your default nginx vhost

#

i removed both

#

problem is solved

old wyvern
#

ah

#

lol

#

Thanks a lot piggy 💙

quiet depot
#

np

cinder flare
#

awe he gets a blue heart!

old wyvern
#

what? xD

cinder flare
#

you gave him a blue heart

old wyvern
#

uhh

#

xD

cinder flare
old wyvern
#

Yea

cinder flare
#

yea

steel heart
#

Lol

static zealot
#

lmao xD

static zealot
#

yo @onyx loom when u got a bit of time and u think this is a good idea, maybe a new placeholder for your changeoutput expansion:
%changeoutput_OPTIONS_INPUT_OUTPUT1_RESULTFOROPUTPUT1_OUTPUT2_RESULTFOROUTPUT2_OUTPUT3_RESULTFOROUTPUT3....ETC...%

onyx loom
#

no ty

static zealot
#

lmao. why?

onyx loom
#

thats gross

static zealot
#

well

#

no its not

#
%changeoutput_equals,ignorecase_{some_placeholder}_abc_yes_def_no_ghi_yes%```
#

what's wrong with this?

onyx loom
#

everything

static zealot
#

k

hot hull
#

Man is at it again with a 1$ increase in his budget

ocean quartz
#

1 by 1 he'll get to an acceptable budget

static zealot
#

nah. someone will do it for those prices. bcz someone did the other one for 6$

hot hull
#

Thoughts on the 3.3k one?

#

Debating if I should apply

static zealot
hot hull
#

If my math is correct that's 170+ hours tho

static zealot
#

yeah, they do require a minimum of 170 hours. Which is around 42-43 hours per week so its a little over 8 hours a day 5 days a week

#

its basically a full time job but with the ability to chose your own schedule

barren solar
#

Well the $19/h number might be for more part time contribution

#

Maybe if you work a bit more than super part time the pay goes up

hot hull
#

Well from what I understood, 19 is minimum

barren solar
#

So maybe the 3300 number is more like 5 hours per day with a wage increase over the 19/h for fewer

static zealot
#

I mean according to them 170 hours per month is minimum

barren solar
#

Ah I didn't see that part

static zealot
#

We offer a salary of at least $3,300 gross on a full-time basis if all requirements are met.

#

which turns out to around 19$/hr according to them, which means they need a full time job of 40 hours per month

#

per week*

hot hull
#

Bit extreme, but I see their standpoint

static zealot
#

oh FRosty. yeah

#

its 40 hours per week

#

bcz if you think about it, month doesn't have just 4 weeks

#

so yeah

hot hull
#

Since no way you're going to be productive at best for those 8 hours daily

static zealot
#

yeah. I'm curious how much work they got if they need someone with a full time job.

#

well I guess they do say per month so you don't have to pull all the 40 hours in 1 week but still.

hot hull
#

Well I'm assuming they have multiple people, since it states they offer a team

static zealot
#

also the title says Full- or part-time so that makes it even more confusing

#

so I guess if you want, apply for a part time job, and then see what happens

hot hull
#

I mean yea you just gotta meet the hours mark in a month

static zealot
#

just found another problem

#

their privacy policy

#

is in dutch only.

static zealot
#

yeah. I Do recommend you read the privacy policy. even if you do it with google translate.

hot hull
#

Yeye

static zealot
#

I have read and understood the Privacy Policy.
but this question is a bit messed up xD

#

since you're basically asked to understand dutch lmao

#

also. if I got that right, they only offer paypal. so if you're not a paypal user this will not be for you

#

but yeah. google translate. will let you look at it lmao. bye now

quiet depot
#

what do you use blitz?

static zealot
#

I still use paypal. I do have the stripe account set up tho

#

so I can move at any time

quiet depot
#

are you planning on getting banned from paypal?

static zealot
#

nah.

#

bcz there's services I still use that only accept paypal. so hopefully not

quiet depot
#

you don't need a paypal account to pay with paypal

static zealot
#

oh?

#

how would you do it then?

quiet depot
#

u just don't sign in

#

when you pay

#

simple as that

onyx loom
#

u can "log in" with guest

quiet depot
#

you put your card or whatever in the site

#

there's no "logging in" kaliber

#

you can straight up skip it and go straight to paying

static zealot
#

oh. that I didn't know. but yeah I they do support credit card. my problem is that I get the money to pay for them thru paypal.

#

well actually now I get them thru credit card so I would be completely fine

onyx loom
#

hence the ""
but i believe thats what the button says when ur about to pay

eternal compass
#

Anyone here good with the Internals of MC servers?

#

When a player asks to connect, how does it block you from letting people bypass the limit by joining multiple people per tick

hot hull
#

Realistically no way you're going to have multiple people joining in a single tick, also assuming it just disallows connection when a player is joining?

eternal compass
#

Youtubers make people spam

#

To get in

#

And this happened

hot hull
#

Not sure what I'm looking at

static zealot
#

18 out of max of 6 players

#

I assume he has a personal check in place but it fails bcz there's a lot of people spamming

sweet cipher
static zealot
#

that's a good point

sweet cipher
#

Add people to a queue, then just add the first 6

static zealot
#

^^ instead of directly trying to connect them, add them to a list

#

and then get the first 6 only

#

was thinking about something similar

eternal compass
eternal compass
#

Well now I have a custom check

static zealot
#

wait. so you have the max players amount set directly into server.proprieties or whatever and it still skips it?

hot hull
#

Make it fit a queue kek

sweet cipher
#

How are people joining the game?

eternal compass
eternal compass
hot hull
#

Not really

sweet cipher
eternal compass
eternal compass
sweet cipher
#

When the player clicks on the gui, add them to a queue, then send them to the server once the queue is full

#

Or just store a variable of how many people have clicked on the wool

#

If you want to send them instantly

#

Because I am pretty sure player joining is async right?

hot hull
#

Why multiproxy tho, why would each game be on a seperate proxy lol

eternal compass
fallen spear
#

java is weird

#

im working on my first plugin and like i used to use java like a few years ago but i dont remember it like this

#

sent that in the wrong channel

eternal compass
sweet cipher
#

Oh ok

sweet cipher
#

What if you have a thread in the server they are trying to join that has the queue of players trying to join, and when the player clicks the item,
it adds them to the queue in the single thread and only teleports them once it verifies they can join? I’m not really sure how to explain it.

eternal compass
#

Hmm okay

#

Or paper's 1 join per tick thing

jovial warren
#

they changed it back to remove entity in the 1.18 experimental snapshots

surreal quarry
#

how fun

urban sleet
obtuse gale
#

like as a whole, what's wrong with destroy entities?

surreal quarry
#

yea i like that better tbh

jovial warren
#

Mode (in the Minestom Discord) just made a good point about how no other entity packets allow you to do multiple entities at the same time

#

also, maybe the experimental snapshot is based off of 1.17 rather than 1.17.1

surreal quarry
#
div
  h4
  ul
    li * 6``` or something like that
#

you can inspect element it and see for yourself

urban sleet
#

👍 Thank you!

eternal compass
#

Anyone know of an open source ShareX uploader I can glance at to steal / use for inspiration for my own

pallid gale
#

huh?

#

As in sharex itself?

eternal compass
#

No like an upload receiving server

#

To host images

#

I just got a domain and want to move everything onto it :p

pallid gale
#

mine just sftp's the image to the vps

eternal compass
pallid gale
#

what like a border and shiz?

eternal compass
#

No like one that goes though a web server & such

#

Maybe even no-width? But that could be annoying idk

#

(Where you use no width spaces to make the URL)

pallid gale
#

yeah no idea what you want

#

lol

eternal compass
#

I just want to follow the ShareX uploader spec

#

On my receiving machine

thorny phoenix
#

Anyone wanna help steer me in the right direction I have Deluxe tags but not Deluxe chat because the server is on 1.17.1 paper We are using EssentialsXchat to do chat formatting how do I get Tags to appear?

eternal compass
#

Thank you Cube

thorny phoenix
#

what channel should I use for help then?

eternal compass
#

Thank you Glare

thorny phoenix
#

sorry

hot hull
#

@static zealot Regarding the PP we talked about yesterday, seems just like some generic random bs lol

static zealot
#

Oh the njob

#

Job*

hot hull
#

Privacy Policy thingy

static zealot
#

Oh right

#

Yeah idk. Probably xD

hot hull
#

Bruh what

#

Very rude of Barry to block a vegetable

quiet depot
#

WHO tAggeD ME

quiet depot
hot hull
#

What a fucking nerd

obtuse gale
obtuse gale
#

:(

quiet depot
#

hi

obtuse gale
#

:)

brazen narwhal
#

oikn

obsidian flare
hot hull
#

There's probably examples there as well

obsidian flare
#

there is such an example "nbt_int: CustomModelData:1"

#

it didn't work when i did this

#

Can you provide a sample for a diamond sword or other item?

#

Also, is datapack required for this?

#

I'm writing this here because the resource on this is limited.

obsidian flare
#

i solved the problem thanks

half harness
gentle wolf
#

OK

half harness
forest pecan
steel heart
#

should u do that afterEvaluate or no?

distant sun
#

I'm clueless

fallen spear
eternal compass
#

okay 👍

fallen spear
#

like if you use js

eternal compass
#

I'll make mine is TS probably

fallen spear
#

then fastify with the fastify-simple-form addon

#

it'll allow you to parse the post request that ShareX sends

eternal compass
#

cool

fallen spear
#

after that you return the image link ONLY

eternal compass
#

mhm

fallen spear
#

its what sharex pastes into your clipboard

steel heart
#

bruh lmao


    private Objects() {
        throw new AssertionError("No java.util.Objects instances for you!");
    }
onyx loom
lunar cypress
#

PepeLa sun.misc.Unsafe

steel heart
#

🥲

obtuse gale
#

If BigInteger is so good why is there no BigLong

hot hull
#

Because there's BigShlong

forest pecan
#

When you guys swap integers do you do it with a temporary variable or the weird way

#

Where you add them

#

Like a=a+b, b=a-b, a=a-b

fallen spear
prisma wave
#

False

forest pecan
#

False

#

Lol

obtuse gale
#

Lmao

forest pecan
#

BigInteger already has no limit

#

It goes until you go out of memory

fallen spear
#

i figure

forest pecan
#

Lol

obtuse gale
#

Why would it be any more expensive lol

forest pecan
#

BigLong actually uses your Grandma’s old 1960 PC’s ram too

#

Adding to the expense

obtuse gale
forest pecan
#

Well it’s the String limit

#

Which is backed by a char array

fallen spear
#

well assuming the big qualifier means x2 then biglong would be 16 bytes

forest pecan
#

No BigLong just wouldn’t make sense at all lol

prisma wave
#

The big qualifier means x infinity

forest pecan
#

BigDick

obtuse gale
forest pecan
#

Hah

obtuse gale
#

If I want a twice as long int, then I'll use a long

prisma wave
#

long long

ocean quartz
#

BigLong is redundant, call it Longer

obtuse gale
#

Lmfao

forest pecan
#

I wish

prisma wave
#

longer long

ocean quartz
#

Longest

prisma wave
#

infinity bytes

fallen spear
#

longest longer long

prisma wave
#

welcome to the korm fields

fallen spear
#

using bigint sends you to the register

prisma wave
#

you're wrong

fallen spear
#

A fictional register that has unlimited storage and eventually turns into a black whole and consumes everything around it.

#

sounds like bigint to me

prisma wave
#

that sounds like a Turing machine🤢 🤢 🤢

fallen spear
#

sounds like trollge