#dev-general
1 messages ยท Page 325 of 1
Exposed
ah
I'm just wondering if dnSpy can decompile Java or not
just set the new values
any idea if I need to call commit() ?
e.g. ```kotlin
val playerEntity = PlayerEntity.find { PlayersTable.uuid eq uuid }
playerEntity.name = "New name"
commit() // not actually sure if this is required or not, but I like to use it
ok
fun hasAccount(uuid: UUID): Boolean {
return transaction(database) {
UserEntity.find { UsersTable.gameId eq uuid.toString() }.firstOrNull() != null
}
}```
Better way of doing this?
I know Johnny but I manipulate a database that is not created by me and gameId is a varchar(191)
:kek:
Did you know
Square Enix took Final Fantasy 7 and made a battle royal out of it
No kidding
Final Fantasy VII: The First Soldier is a battle royale title that takes place 30 years before Final Fantasy VII.
#IGN #FinalFantasyVII
Sir this is #dev-general
Sir this is #dev-general
Sir this is #dev-general
Sir this is #dev-general
Sir this is [REDACTED] sent from China
Sir this is #dev-general
I saw that ๐
๐
Mad sus
Sir this is #dev-general
shush
i wanna make a minigame server, using geezer so its cross-platform, and all the plugins are made in clojure
that would be very funny
too many threads
@prisma wave any resources you can recommend for writing standalone gradle plugins?
lein :)))
i sorta just trial and error-ed it
When in doubt, stack will help you out
man i was testing a plugin earlier
oh my that stack overflow error cause gson was like noh plugin must die
it couldn't understand the location variable
so i just set it as transient :)))
and disabled the location functionality
the best solution to any problem
Might I remind everyone that the dude who decided Enum#valueOf should throw an exception if none match, is a fucking retard, Thank you very much.
๐
package index
?
Disgusting
Anyone wanna judge this readme https://paste.helpch.at/zecuzekozu.coffeescript
looks good to me
anyone here ever broken something more by adding on to it btw?
lemme show you this lol
without sending an update light packet for the chunk
with the update light packet
also, wanna see the hacks.exe I used to make the light update packet even function?
lol
making Krypton is basically shoot first, ask questions later lol
a.k.a make it work first, fix it up later
aka most larger projects
1. Make code
2. Clean code
3. make code work again
4. ???
5. Profit
So I need to design a company from scratch for a class, any tips?
Pull the Civil Software Engineer card and make it enterprisy as hell
Sounds like you're in for another bukkit
iwanio, I will shove that clojure support so far up the place where the sun don't shine
make clojure compile to java
mah threads
it literally does?
(:gen-class
``` right?
mhm
anyone knows python3 and can help me why function (sort) like doesnt sort my text?
python is interpreted so it's just like the opposite of rust when it comes to errors
idk its default python library no need to import anything.
ah it's in the std
Oh you got std's, yikes
?
standard library, not sexually transmitted disease, frosty
we call them STIs here
sexually transmitted infections
less ambiguous
... i restarted pc and it started working great...
well i do know python pretty well but never ever came across something like this.
yeah but the difference between Krypton and Bukkit is that I will actually fix the code
@old wyvern 
๐
I fixed the issue with lighting
I was fucking putting the bits in the wrong order
because yet again, I don't know how to read
๐
oh
Don't feel too bad, I can't read either
I need to fish ;C
How's jogging going so far?
Haven't jogged today, my legs hurt from yesterday still
Will probs go either tommorrow or the day after
fatty
Oof
Did you just call me fatty
Eat chocolate
o give me some
nothing wrong with that
Sir this is #dev-general
lol
no
o
im not making an anticheat
Correct channel
man China is [REDACTED]
This is off-topic for devs
Fefo is [REDACTED]
should I?
ok
Lmao
im just preventing wall scaling
VPN time Pulse
Is there a mod that refill automatically furnaces nearby?
China can suck my balls
mod?
yes
..... ?
Connected to ExpressVPN Sucesfully
n3w0rk go away. we don't want you. you didn't make us proud
you tried to stole some candy? what are you? poor?
robbery
you're*
we must give the death penalty
you don't talk like that with mine and Pulse's son
lol
that's what I thought
for the past 3 days I've kept feeling like I want to punch something very hard. like a wall
wtf
but I think dkim will be good enough for this
I've been listening to Linkin Park, MGK, Distrubed, 30s to Mars and some others
please listen. especially to the first 2 if you never did
Sir this is #dev-general
wait pulse?
china passed vpn?
oh noo
fuck
i hear missiles
China is taking over
damn it
fuck [REDACTED]
F
nooo
ez
HAHAHA
one sec
AWW YEA
it was this easy? if only I knew
Lol yea
Everyone obeys china's regulations.
We don't
oh what is it now
China can eat mustard
he said you're a trash can
I wouldn't open it
you'll get very mad
im assuming he said something along the lines of "Everyone loves china"
oh
DKIM CAN SUCK MY ASS, he's a trash can and eats all the trash I throw at him
im opening it
idk why he said the first part
IDK what to tell you man
maybe china redacted it for you
China really is taking over
inspect element ๐
lol
1.4.31 
no he hates it now
no
because he somehow thinks that Elara, Haskell, F#, whatever kinda functional languages he's moved on to now are somehow better
ill do whatever brister says ๐ค
BM hates and loves a different language every day
efe stfu
not true
am I wrong?
what
Lmao you're the guy saying F# and Haskell are trash
Having never used them
haskell is good
lol
fair enough
thjis is true
it was so simple to make fizzbuzz in it
I didn't say they were bad BM
I just can't agree they are better than Kotlin
imo
bardy i hope ull be joining us for the weekly language tryouts starting march 1st
how can you not agree if you know nothing about them?
Dogshit
I know small amounts about them BM
should i stop using kotlin
Not enough to make an informed decision
F# is multi-paradigm for example, it can do everything kotlin can
and also, I can't agree with you that something is better than something else if the latter I've been using for about half a year now and the former I've never used
if u like the language use it, form ur own opinions, not by anyone else
You can't say it's worse either
no, I can't
F#, Clojure and Haskell are good for smaller processes I guess but then OOP and imperative programming is more epic
but i need support, if no one uses kotlin, im gonna die
but I can say that I personally prefer Kotlin
false
dkim wtf
Obviously the "X good Y bad" is a joke, but I can at least say I have an informed opinion
same
you took the words out of my mouth haha
what
Rather than saying X good Y bad based on looking at Y for 5 minutes
javascript is bad
fair enough
a formed and objective opinion
efe is right
ok
Machine code is still a language
efe you should just be yeeted
all the sins
dkim is dkim
I mean it kinda is bbg
How about we make a rule
Conclure stfu
but Y > X
does the "no IDE arguments" rule apply here
only because you're not used to it
or just #development
I have used both Java and Kotlin for at least 2 months, and I can say that Kotlin is objectively superior to Java in every way
no
Almost every way
yeah almost
My pc crashed right after i sent that emote
Java reflection is vastly superior, I can agree there
dkim why do u always delete ur messages
but pretty much everything else
I think it's sending me a message
Kotlin > Java
false
efe just stfu
lol great nick
ty
nobody wants to hear your useless opinions
JavaSkript
shame that fc is gonna remove it ๐
Not based?
java > kotlin cant disagree on that one
If he does he can catch these hands
๐
shut
the
fuck
up
you
weird
human
being
I hit the jackpot
i only have 100 karma
bardy u have really strong opinions on this
on what?
and ur opinions seems to rely on kotlin good java bad
I have strong opinions on a lot of things
course
lmao
I'm an opinionated person, that's part of who I am Kali
i need xp
๐ฅฒ
ยฏ_(ใ)_/ยฏ
the so called "free thinkers" when someone says kotlin is bad
๐ฅฐ
Kotlin bad Haskell good

๐ณ
justify why kotlin is good
or better than java
Cause it has K and Kock
i gtg
"hur dur the syntax is cleaner more productive"
right then, here we go

lmao actually?
yo best argument
type inference for variables only is great!
...
It must be the vaccinness!!! \s
๐ฎ
dkim is 52
hes old af
- extension functions
- expression functions
- inlining
- reduction of boilerplate (data classes, etc.)
Old man
old
๐ง
look at the investments.... Andrey Breslav creating vaccines and 5g towers... Coincidence????
that's just the 4 I can think of off the top of my head
๐ง ๐ง ๐ง ๐ง ๐ง
no im not that old
๐ฎ
๐ง ๐ง ๐ง ๐ง ๐ง
wtfff
Dkim ๐ง ๐ง ๐ง ๐ง ๐ง
when bardy doesnt even mention null safety :clojuremoon:
dkim stop being ๐ง
oh yeah, that too
Kotlin: The Conspiracy - Directed by Andrey Breslav, Produced by JetBrains
- meh
- double meh (kotlin's look ugly)
- the JVM does that already lol
- records :slight_smile:
Wanna know where the Brains come from in JetBrains????? From Brainwash !!!!!!
Ever heard of Optional and @NotNull? That's what I thought
Our IDE's was secretly steeling our credit card information OMEGALUL
Optional >>
Imagine

#4 that's not the only reduction of boilerplate Kotlin provides
Jetbrains evil corp
It's a big part
JetBrains Wash Corp.
- extension functions are nice
- expression functions are nice but its really not something that makes kotlin advantageous in my opinion
- inlining, its nice to a certain extent Idk if this includes inferring types but that's annoying
- it reduces too much boilerplate, the setter getter thing in kotlin feels similar to lombok which I don't prefer
Records, new helper functions, type inference. Modern java is pretty much as productive as Kotlin
Imagine calling your language nullsafe and allowing types that could be null but not represented as their null types ๐ซ Type!
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
๐คฃ ๐คก
kotlin creates boilerplate if you want to avoid type inference which is not nice
Kotlin dies if there even a tiny bit of ambiguity
intellij has lombok button
Lombok ew
gross
It's so insecure it has to generate null checks for @NotNull variables ๐คก
ok i gtg again
Lombok is a nasty compiler hack
?plsnolombok
Why is Lombok bad?
- It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
- It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
- Lombok'd code won't show in Javadocs
- The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
- Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
- While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
- Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
it's code generation at compile time
Also does kotlin requires you type the return type if using a block, guess where that isnt a problem??
Ill give you a hint
it starts with Has
๐ฅฒ
And ends with kell!!
Elara!
fun fact about Lombok btw: JetBrains actually remade the Lombok IntelliJ plugin themselves, since the original plugin would literally break every update
Also true!
kotlin does not really solve the lombok problem just adds it natively
Imagine having curly brackets in your language
kotlin is just another compiler hack
yeah I wish it was able to do what Scala does in terms of type inference
it compiles to jvm, compiler hack
what if kotlin == lombok
basically yes pulse
imagine replacing curly brackets with things like:
|$<>[]
and other ugly characters
wait
None of those replace curly brackets
do kotlin getters/setters show in javadocs?
They dont lmao
why would they
Kotlin has it's own documentation format
None of them have any corelation to what braces do
if you choose to generate Javadocs, Kotlin will generate documentation from the Java equivalent of the Kotlin code
ew what are those ugly mattstudios libraries
xD
shh
don't kill me pls Matt
mf libraries
I'm sorry bombardy but this will be the last day you can say anything. do it now please before your time runs out
Imagine needing horrible nested brackets when you could just use >> / $ / |>
Imagine having impure code
couldnt be haskell
Imagine having monads but no monadic operators
imagine imagining ...
Aren't nullable types technically a monad? I guess apart from return
?. is sort of the equivalent of >>=
hmm I guess yea
imagine imagining imagining ๐
I recall a beautiful discussion I had with someone about this a year ago
I think it's more intuitive and beneficial to view T? as an actual union of T and {null} rather than a Monad
hold on, nvm, it was a different question
why is it 10 now
- kotlin good
- kotlin epic
- kotlin awesome
- kotlin superior
- java bad
lol
i just learnt about when so ill say when
Why so?
Yeah I don't really think of it as a Monad
But I'm still not 100% sure what a Monad is, so
The only reason I can think of for that is that you can "set" a type of T to that
public static <T> Class<T> test(Class<T> clazz) {
return clazz;
}
```what is the kotlin version of this
But since kotlin seems to generally associate assignment with setters, im not sure thats enough of a reason
Unless theres some other reason to think so?
fun <T> test(clazz: Class<T>) : Class<T> {
return clazz
}
how do I set return value?
The syntax is good wdym
this is not worth $10
Yes it is
no its not
I have a crippling addiction to currying
what
Time for kotlin++ ?
kotlin#
there is yes
Yes, but you don't need it most of the time
It's just for interop
Eg if you're working with both and need to make sure it's just "plain old static"
because it is more natural due to the definition of nullable types. They're not a wrapper for T, but a completely separate type. You can define it to be a monad to some degree, but that definition would be superimposed
since kotlin compiles to jvm stuff bytecode stuff what if u decompiled kt code?
It would look like slightly weird java
ez kotlin -> java convertor
Decompiled code looks awful in every language
o
Oh yeah you need that too
Haven't used kotlin in a while, kinda lackin
Uh
What are you asking
That looks fine
I think so
This is what decompiled Kotlin looks like
Any
u wouldnt need .equals
toString would work on most objects afaik
probably?
probably?
O_o
They all still exist, yes
how do i make constructor in kotlin
They're not a wrapper for T, but a completely separate type
They are wrappers in a sense tho, they work* similar to how an Optional<T> would work as a type. Even tho they compile down to an annotation, other implementation of similar features like in C# which compiler there nullable types to actual Optionals.
definition would be superimposed
Im not sure I understand, superimposed by what?
class Blah (val name: String)
no i did not
Im not sure I understand, superimposed by what?
by you
https://kotlinlang.org/spec/type-system.html#nullable-types
how do i use streams in kotlin
Everything in the java standard library exists
Exactly the same way you do in java
kotlin has better functions than streams
Indeed
so theyre basically not needed
You don't use streams much
class ClassName(private val plugin: JavaPlugin)
Equivalent to
public class ClassName {
private final JavaPlugin plugin;
public ClassName(final JavaPlugin plugin) {
this.plugin = plugin;
}
}
much better
Kotlin's aren't streams
ic, thx ๐
Equivalent but very different
Kotlin doesn't really use streams unless you actually want parallelism
the first one
A kotlin "stream" will compile into a normal loop
While java will be functional stuff
Kotlin Sequences are very close in functionality to streams
Ugly and not very idiomatic but yeah
I'll smack you for that
Yugi btw we probably need lazy sequences
whats bad about JvmStatic
In elara
how do I create a singleton in kotlin?
whats lazy sequence
You don't need it
Unless you need interop, it's unnecessary and kinda ugly
if you are talking about sequences, kotlin's equivalent to Java's streams, that is incorrect
Like a list but lazy, you can process infinite data and stuff
Streams are lazy
now SWITCh
object
True
Yes, that's why i was telling them that kotlin's aren't streams, they were referring to normal things like filter, map without sequence
WOW java no have?
oh
boring video
they just run the shutdown command
local server
plugin probably
no
calling shutdown as a subprocess
not even bsod
sounds pretty impure
lol
Sir this is #dev-general
sthu
Sir no configuration help allowed in #dev-general
Sir this is #memes
๐ฎ
A lot
Lol
What kind of "data" though? Bytes?
2 australias ๐
noh
efe it depends what encoding it uses
well unicode is fucking massive
literally massive standard
man efe
google it
man
A?
u mean 10?
A is hex for 10
iirc
or 11
derp
half
half a byte
wait
the number 10, or 10?
oh just the letter A
1 byte
01000001 is lowercase a
well no
compression efe
and header data
and overhead, the bane of assembly developers
and js devs are like what's ram
no efe
that's not how this works
what was the unit u were thinking of
I think I got the acronym wrong
but it's like a unit which has no defined meaning
no efe
chunks are a few KiB each
I mean it will grow if there is a shit ton of data in it
u wrong
idk how chunks are stored
probably as 'object'
they are probably stored as block objects
pffffff
objects are bad
mc shoulda used an ECS from the start
fuckin' notch using OOP
:)
how are you measuring that?
in one chunk?
I ask again
how are you calculating it?
wait what?
what are you saying here?
it's 2.2MB per chunk
you know that right?
didn't you watch the video?
go to 1:35 in the patched video
This is how the infamous Minecraft duplication glitch ended up getting patched. It was more complicated than you thought.
Earthcomputer's Video: https://youtu.be/uw7vEGhKoH8
SkittleMC Duping: https://youtu.be/QkBEZIaENVY
EarthMC Duping: https://youtu.be/2fwgJKet1bM
"a chunk will refuse to save when the data stored inside of it goes over 2.2 MB"
this is a big pepega moment
look at my words again
read what I quoted again
the chunk itself will refuse to save when the data stored inside of the chunk goes over 2.2 MB
:o?
FUN SPORT FRIDAY!
LEAVE BREAKDOWN SUGGESTIONS HERE: https://docs.google.com/forms/d/e/1FAIpQLSc2WCOoo9n-J0ke0S4ZN7r4yZK2jVqFJq-AlEMWX4nnZVn0-g/viewform?usp=sf_link
Support on patreon: https://www.patreon.com/jomboymedia
โข Extra videos
โข Requests
โข Live Access to new show
โข Jersey giveaway
FB: https://www.facebook.com/JomboyMedia/
TW: http:/...
#charlestonsouthern #ncstate #ncaa
SUBSCRIBE TO THE NEWSLETTER: https://confirmsubscription.com/h/t/3D96AF9DDCC13BEB
BUY MERCH! https://shop.jomboymedia.com/collections/jomboy-media
LEAVE BREAKDOWN SUGGESTIONS HERE: http://bit.ly/BreakdownSuggestions
Subscribe to our other YT Channels
Talkin' Yanks: https://www.youtube.com/channel/UCzcaZfAmC...
oh btw, here's something that I feel like I haven't done in a little while: Krypton open testing
Sir this is #dev-general
No configuration help
When a client tells you that you need to write in java ๐ฅฒ
Krypton?
Minecraft Server in Kotlin
custom Minecraft server implementation from scratch in Kotlin
Previously known as MineKraft
Sir
very early alpha, but seems to be at least somewhat working
says connection reset by peer
oh
168.119.171.28

lol
Its like the cauldron with lava
blitz join
under water
with snow on top as well
so you can freez, burn and swim at the same time
can't
rewriting a plugin
lol
been working for 2 days now xD

it was so trash had to delete everything
all I have left from it is a bit of my main class and a command or 2
Hmm I'm making a TypeAdapter for gson and I have a list but JsonObject#addProperty() only allows Boolean, Number, Char and String. how would I add a list as well?
to a jsonobject
You can use Gson#toJsonTree(Object, Type), it returns a JsonElement so you can JsonObject#add(String, JsonElement)
oh thanks
no one will stole it
๐
So I'm farming experience, and there's a dude playing the banjo
Or however the fuck you spell that
Grow a pair and show ze code
@old wyvern Invincible catto

I think I might be able to get it to 10k
can anyone recommend configuration formats to use for Krypton btw?
tempted to just add some configuration options so that it's more usable
by formats you mean file types or?
json is ew
yeah JSON is really easy to parse but also horrible to write
Just add support for multiple?
I guess
I might start using toml cause it looks really nice
yeah but I'm asking what should I use for the server's config
yaml or toml
and make it keep comments ffs
so you can find what a setting does without having to open a wiki or whatever
if the specification doesn't state it keeps comments (like YAML's doesn't), then it ain't gonna keep comments lol
yaml can keep comments
unless I make my own impl
is just bukkit implementation which sucks
yaml can keep comments
yeah but the YAML specification doesn't state that comments need to be preserved
no
it's SnakeYAML that doesn't keep comments
because the specification doesn't say you should
but we do say so
ยฏ_(ใ)_/ยฏ
:)
I'll make it work I guess
I mean you can have it keep comments if you use reloadFile instead of saveFile
we won't be using SnakeYAML anyway
we're using kotlinx.serialization for everything
Good
configurate
a lib made by sponge
if it looks anything like ConfigMe then we ain't having it, since I see no point, and frankly don't like the use of separate configuration classes
I mean, it makes your life easier, but it's pretty pointless
Does anyone know how to webhook public repo commits into a channel on discord? (not owned)
also, configurate is Java
you need to be able to generate Discord webhooks and to set them up on GitHub
also, Sir this is #dev-general
ConfigMe is disgusting
well isn't my topic relevant
yeah I hate how it works
no configuration help
I'm not asking for config help lol
It's kind of the right place Bardy
4head
anyway, just follow that guide
also, the repos aren't owned by me so there is no 'settings'
stfu I will find out where you live
I'll dm you the address if you wanna come over
well then unfortunately you cannot setup a webhook
you need to have access to settings
right, ty for letting me know then
I hope you're not working for one of those MC servers where the owner owns the GitHub organisation even though they haven't a clue what they're doing
if you are, I feel sorry for you xD
I'm just trying to get commit updates of plugins i use so I can view it all in one channel
ah right
yeah that's not really possible unfortunately
unless their servers have channels you can subscribe to
actually, thinking of Discord servers, I should set one up for Krypton lol
it does not
Krypton Discord server is now a thing
someone please remind me on the (advertising? is it advertising?) rules here lol
It is advertising
might just add it to the README and direct ya there xD
better
Use an RP
RP?
resource pack
hmm
can i use reflection or something like that
Not how it works
You could probably change the items itself through the rp? Like change the diamond.png?
That would affect other stuff as well tho
Right
https://github.com/KryptonMC/Krypton updated the README now
WILL CONTAIN BUGS!
well I have to warn people
because I don't want GitHub flooded with issues of people complaining that it doesn't work
I mean, compared with Krypton, Geyser is ready for Hypixel use lol
but it's not production ready
good point
lol
also, join ze Krypton Discord iwanio ๐
mmm
k
boomer?
you are also boomer
bruh y'all keep complaining about tiktok and Imma start posting PH links
man
Hi, is it possible for a filewriter to format a json (indentation, etc) instead of put every infos on only one line ?
Okay. Gson need an import from maven ?
yeah
Oooh nice
oh yeah it is, isnt it
Alright, thanks ^^
okay no let's not
staff team btw
lol
"staff team btw" You trully don't get a joke do you
๐คก
You're an idiot efe
Lmao
no joke half the people in this server have their sarcasm sensors burnt out
Yeah he was gonna share porn instead lowkey
Well
You just said it
Lmao
No proof
O
Yes

bruh why's it only receiving light update packets (pw = update light, pt = chunk data)
ffs
right, challenge time
section.palette.sumBy {
if (it.name.value == "tall_seagrass") return@sumBy 2
GlobalPalette.PALETTE.getValue(it.name).varIntSize()
}
```tell me what's wrong with that code (ik what the issue is, just want to see if anyone else can figure it out lol)
๐
default IJ theme ??
yeah this is on my Kali VM lol
I cba to change the theme of IJ on here, I'm only using IJ for viewing Mojang code
I'm trying to understand how Mojang deals with their registries lol
but when you got bogus classes like BitStorage, it's kinda difficult lol
obviously, what this proves is that obfuscation isn't meant for protecting your code from being understood and replicated, it's to cover up the fact that it's a fucking mess
Well, it doesn't have to be a mess
Hey Bardy why did you archive Octo?
because it's kinda old and outdated