#dev-general
1 messages · Page 448 of 1
does teach you a lot of other useful things that help you program and problem solve though
I looked at the 3 year learning content for CS in high school, they teach you jack shit
stuff I learned within a year of learning it myself
this is why my major is software engineering
because they format the number?
it’s way bigger than that
max value is approximately 1.8x10^108 according to stack overflow
the problem is over here, we use commas for 3 digit separation, but some countries use commas for decimals
d;double%max-value
public static final double MAX_VALUE```
A constant holding the largest positive finite value of type double, (2-2^-52^)·2^1023^. It is equal to the hexadecimal floating-point literal 0x1.fffffffffffffP+1023 and also equal to Double.longBitsToDouble(0x7fefffffffffffffL).
even bigger in Java, jesus
doubles can be huge because they use scientific notation
they use a mantissa and an exponent
devs in the Minecraft community in general are idiots
Thank you ❤️
there are some exceptions, you are one of them
along with lucko, Maximvdw, and a few others
and BM
never seen you code
Best keep it that way
[insert roast GIF here]
efe bad
lol
most people in this chat can code
most plugins on Spigot are made by 12 year olds who don’t make them OS because they don’t know what Git is
they're also under the misconception that their code is valuable
ikr
neither is mine
even though it’s under my copyright
technically MIT counts lol
just because it’s freely distributable doesn’t mean it’s not copyrighted
I don't bother with licensing
that means your code is copyrighted and no one has rights to make derivatives or work on it
nah fam
yes fam
if you don’t license your libraries, no one can use them
@quiet depot I swear you know this stuff, I am right here aren’t I?
you're right but you're missing a key point
which is?
tis OS, ain't noone give a fuck
the only person that can stop people from doing it is the author
true
if the author doesn't act on his copyright, then there is nothing stopping people from using their code
however people won't use their code because relying on that isn't a good idea
Frosty you should just license your code properly anyway, since if anyone who respects licensing wants to use it, they’ll come and ask you first
a license is essential
indeed it is
I mean if they're unsure whether they can use it or not, my contact details are on gh so they're free to ask
not from what I read on GitHub’s docs
they mentioned nothing about applying their own license
actually you’re right pig
ToS says that anyone has rights to view and fork public repos
in terms of choosing a license though, I personally recommend either MIT or Apache 2
MIT is the usual go-to
Apache 2 requires that your code remains credited to you, but still allows most of the other MIT freedoms such as sublicensing
I kinda like the idea of people not being able to just take what you’ve spent hours and hours of your time on and just remove all your credit and claim it as theirs
I mean yea the claiming as yours is out of the question
Apache 2 makes sure of that
Kotlin’s under Apache 2 I think
JetBrains seems to like Apache 2
might also be used in IJ
I’ve been thinking a lot though about relicensing Krypton under a different license
if I was going to relicense, I’d either use LGPL or Apache 2
I wouldn’t relicense the API though, just the server
well, both would get relicensed under Apache 2 if I chose that, but the API would stay under MIT if I chose LGPL
or I could just stick with MIT
which probably isn’t a bad idea
man, 28 upvotes, how lol
pig you should upvote Krypton 🙂
If MC servers would be written in C++, could it increase performance?
maybe
I mean even java would be fine if it weren't single threaded lol
speaking of servers, I’m currently working on one in Kotlin
like how?
wiki.vg, using vanilla as a reference, and a whole lot of patience
in words of performance, krypton or paper/forks?
Krypton isn’t even close to being fully functional yet, so still Paper, but I will optimise the shit out of it when I’m done
I mean are you lead of that project?
like I’m aiming for playable gameplay with 1000 players online in a single world
yes
It seems so cool
thanks!
bruh
any error messages?
you need to provide it with a world btw
there’s no generation yet
put the world folder in the root directory (same one as the JAR, just like you would with vanilla) and set the world name in config.conf to the name of the world folder
okay
hocon
I hate json and conf
beauty
why it's not just yml
HOCON is a beauty
because yml is horse shit
YAML is awful, that’s why
it's readable at least
HOCON is very versatile
and how is hocon not?
it's just black
probably some spigot plugin which uses hocon and just throws shit everywhere
if you said that to me, I never heard about it
lol
:what:
the config is really clean and clear imo
there are no colors
yes
you probably need a plugin in your editor for that
sensible
Notepad++ and Sublime should definitely support it
I never thought about it
it's black on notepad++
weird
agreed
try looking for a HOCON plugin under tools -> plugins
sublime doesn't have native support for hocon fyi
how long have you been working on it
about 2 and a half months
They should use haskell or RUST
it’s been around longer than that, but my first commit that actually made it work was on the 13th Feb
wdym by that?
while writing it, is it just kotlin or did you use another languages
I am in the process of authoring a PR to convert everything to clojure though
it does however use some Java libraries
does krypton has proxy server sofware support?
will you write it or add support for bungee or velocity or something?
Velocity works fine with no forwarding
im impressed
Bungee doesn’t because of how it appends the user’s UUID and IP in the address of the handshake
and it does some other whack that is non-standard
great!
startKryptonServer :: Int -> IO Server
I love Kotlin name
int?
lol
INT
what's the int
Port
wouldnt that be in the config o.o
I love you
start doesn’t take a port donkey
DON'T CARE
that’s configured in the config
ok FINE
data KryptonConfig = KryptonConfig { port :: Int }
startKryptonServer :: KryptonConfig -> IO Server
HAPPY now huh????
Soon
could make some Haskell bindings for the API that can generate Kotlin code
if I want to create my own programming language, should I learn and understood how other language systems work?
I plan to make my own scripting language for it at some point anyway, but it’ll have the one up on Skript by generating code at compile time rather than interpreting it at runtime
you need to know how compilers work
and tokenizers and all that jazz
well, not to design the language, but to make it actually run you need something that understands it
okay thanks
JIT go brrrr
i mean anything that's not assembly is interpreted
JIT is used by HotSpot to compile sections of bytecode used very often to native code
Hacking together a language is actually easy
Stuff like ANTLR makes it even easier
yeah BM has experience
yet im still going to take multiple classes about it >:)
y'all better watch out, I moved my Foundations of Computation Theory to next next semester
there's yacc and bison for parsing languages
I know nothing about programming 😄 I don't understand anyone here
so C* is coming soon
ooh yeah might be a little rough to make a programming language when you've never even used one bfore
C—
oy
I mean it's definitely in the "Advanced" category
simon peython jones
C%
wait really lol
C😃
yeah but he released it under a different name
Haskell lol
yo is there a sideways letter C
u
n
n
how would you pronouce it
then people are just gonna write it out as triangle
maybe just tri
that'd be cool
what about λ
oh wait that's already haskell
haha
χ look at that
"hey cool language, what's it called?"
"□"
"how did you just say that?"
that looks like an x but moved down
he used the language of the gods
okay what about μ*
mustar
mu-star
for my lang name
starmyu
*μ
or whatever that pokemon is
staryu? lmao
catchy
i think you probably want to pick a name after you make the language
no no no
the name is the most important part
cause I can't make a lang right now
but I can pick a name for one!
🥲
do you have any good ideas
i think cstar is your best choice right now
because I want to distance myself from C
if you were going to get an Intel Nuc would you get the tall version or small one?
small one
small one - looks cool, tall one can fit an 2.5 drive or whatever
you can't add a drive to the small one?
god I love PCI-E
had no idea what NVMe was, is it just faster than sata?
yes
sata uses a controller
like your graphics card useds
i have a small nuc and it fits a drive
why only 4
NVMe isn't significantly faster in all applications if you have a decent SATA ssd, but it's nice for sure
I think there is a global shortage of them (intel nucs) or something
well if you need that little you can probably get a used nvme drive from a chromebook
like a 16 or 64gb one
surely not ivan
i have yet to see a case where it is slower
chromebook would probably have everything soldered on
I did not say it's slower
you think so?
read again
definitely ivan
hmmm
basically a cheap, quiet and energy efficient homelab
why not a pi niall
in my experience the difference has been quite drastic but you are correct
ah yeah
yes sd cards are literally paper fragile
the pi 4 can boot from a sata drive
you have to get high quality sd cards
i had to reshoot a video I did 4 times because the SD cards kept failing
yeah
ive had some just completely die
then some just dont boot but can still be mounted and I could recover the files
what's that new tech meant to replace sd card flash called
i think newer phones are using it for storage already
i haven't heard of anything like that ivan
what about
i'm fairly sure they use magnetized disks
do you like it?
"programming language"
ye
that's my suggestion
"programming language"
good name
straight to the point
grrrr
why dont they build hard drives like floppy disks worked?
so you insert the disk instead of the whole drive & casing
hot-swappable drives do exist
because you don't want to expose the magnetic disk
literally every blade server I've seen has them
oh fair enough
oh yeah no not good idea
you keep the casing so it stays strong (ish)
you can still kill 20 hard drives easy with a cart over a parking lot
well yeah the problem comes when that server needs 100% uptime 😉
but if they're spinning and you jostle them, it won't end well
for a name
how about mascara
bruh
okay what about Stellar
haha
i definitely want one word
nice ring to it
moderately unique
i mean Starly has never been used for like anything
and Stellar is a payment platform, but that's about it
same vibe as C but a little too early
ooh damn maybe the lowercase vibe
stellar
mm yes
you should call your language proof
you have to write everything in the style of peer-reviewed mathematical proofs
fuck
ah I see
well I'm not even 21 yet
so it'd be kinda weird for me to make that lang hmm
@cinder flare stellar is already taken =/
I know there's a dev team called Stellar or something like that, that sells custom jars and plugins
reflexive
sleep lmao
how is that space related lmao
it's not, just a random name lol
😳
all right well, off to bed
bye
bye
those are some high res photos
ikr
It exposes
The Gson @Expose annotation can be used to mark a field to be exposed or not (included or not) for serialized or deserialized. The @Expose annotation can take t ...
Use transient smh
Hey guess what I just did in CS because I got bored
I got a Gradle script to run in repl.it lol
I actually built and ran Krypton on repl.it
All thanks to the Gradle wrapper
so in theory
i could make a bunch of accounts / projects / whatever and host discord bots or something there for free
people do that
It's not very efficient but you can do that, yeah
The only thing that stopped Krypton was the fact that it didn't have a world given to it
Obviously no way I can manually test Krypton in school though
you probably cant test it anyways
Tried running pitest but it kinda died lol
internet is one thing, but i really doubt they'll have open ports to connect through
Not what I meant
Testing Krypton manually requires a vanilla client
And these are school computers
boot from a usb
?
Same reason I can't use IJ in school
You can't download and run EXEs
It just says nope
boot. from. a . usb?
BIOS is protected
It forces rounding up
Standard rounding
So Math.ceil(5.1) = 6
But Math.round(5.1) = 5
ceil ⬆️ floor ⬇️ round ~ math way
bardy how do you know the bios is protected
when i went to high school we also had a bunch of safeguards and the like
but i was still able to boot off of a usb
I know you are but I have to edit some of it lol
ah ok good, just wanted to make sure you didn't forget about me
bitewise and operator
yea idk how to answer that
In computer programming, a bitwise operation operates on a bit string, a bit array or a binary numeral (considered as a bit string) at the level of its individual bits. It is a fast and simple action, basic to the higher level arithmetic operations and directly supported by the processor. Most bitwise operations are presented as two-operand inst...
#827055634586271775 damn?
lol that vision guy
tbh they'll be better off asking somewhere like SO lol
and add a couple of 0's to that number
I think we can safely say that vision is a satire acount
lol
lmao
That is some high tier shitposting
$57000
throwback to the 300k budget one :kek:
I like the fact he has too many dms he should read but doesn’t want too so that isn’t an option for communication
@oak coyote u ok? https://i.imgur.com/XcU4zNw.png
Shhh
lol
They are totally the same channel
BM please teach me the ways of clojure
lol
if you have a budget of $57,000 then you shouldn’t be asking for developers from a Discord server
BM please teach me the ways of haskell
Hello :)
oh right
So that will check for reference equality
Hello :)
You'll want to use Arrays.equals
tysm
hi
:))
I’m having to explain to the 57k guy that he won’t find the quality of developer he should expect by asking here lol
bardy you're missing out..
?
I'm literally right here
it's been going for a while
ah
I really wanna turn this guy away from this server at that budget
because he won’t find the person he deserves here
dude
I'm literally here
I'm beautiful how dare you
We have many perfect candidates
BM I highly doubt you’re worth 57,000 a year lol
get off your high horse mate and come back down to reality
Yeah I'm worth more tbh
This is the truth
$10k/week 
whats this??
that's just people passing by BM
yeah happens all the time
I don't get it 
Biggest shlong smh..
is there audio or something what gives context?
Yes there is audio
its a video
I didn't watch it so
ye

💔
? 😢
🥲
🥲
oh no
I lost my smiling_face_with_3_tears
😭
well guess I'm stuck with Thank You Blitz! lmao
rip
Why
wull show you later
alright
wtf happened here?
how did that pole get in the car?
did it grow? Or did the car jump and fell in it?
or tf
the car drove up a ramp and slammed down onto the pole
the side of the marvel movies they don't want you to see
turns out the pole was stronger than the car and that happened 🙂
I happened
Barry doesn't seem to like Johnny, that's the second time it doesn't add the voting
@oak raft here you go: https://imgur.com/a/a57KPgp
I have it blocked, that's why
its a galery Remence open the link
Ah okay that makes sense
so Sushid00 was the one to start it
Why would you block barry? 😢
Blitz what is the command to ask Barry to add the voting?
also there are a lot older ones in there than 14/04/2021
its a reaction :poll: but you can't do it in #showcase
Ah
because it won't stop pinging me for things I don't care about
bcz you can't add reactions
Sad
what? It only pings for level up
yes exactly
and at the rate you talk its probably very rare
=xp 234343108773412864
30 pings dodged in a year
Please get 69420
I beg you
I didn't get my 69 666,666 but you can get 69,420!!
this is like the second time I've ever seen my xp
Should I put that as my STATUS? xD
YES!
done. Thank You Blitz! 🙏
🙏
Free nitro? Sign me in
it was last month for me xD
all I had to do is delete 2 messages and ping funnycube
Various Commands for Barry.
• General Bot/Guild Commands
• Miscellaneous Commands
• XP and Level Commands
• ChatReaction Help
@obtuse gale, Help menu!
No
BM how far have you progressed with PDM 2.0?
im here too 🙂
I've been at school all day
im here too 🙂
Pas du tout
oh yeah, didn't you stop last night
Haskell time?
es que vous francais?
uhh gimme a few minutes maybe
qui qui
Bonjour = only word i know
Il est évident que tu n'es pas
but no
speak a bit tho
||shhh they'll never know||
I dropped french in grade 10 🥲
Yes
😔
What
👋
hello mr. admin
hello glare
come and join the fun in #off-topic
this idiot thinks he can make a GCDC (garbage collector data collector) that hooks into SQL that's more optimised than HotSpot's GC
@lunar cypress https://cdn.discordapp.com/attachments/452279708856614912/836240801956495380/plot.png what does this all mean btw?
sorry, new to benchmarking lol
graphs
yeah I got that part BM
PCollections bad, Kotlin bad, clojure good
seems like performance for adding/removal/lookup on data structures
you don't know how to... read... graphs?
lol
(less is better)^
charts?
Well, that is an oversimplification
I swear your results showed that Kotlin sucks ass
this data is already very simplified
The collections kotlin does have aren't that bad
We don't need a benchmark to tell us that
also how tf can you benchmark additions and removals for immutable collections
Its vectors actually beat java ArrayLists as you can see
Copying...?
good point
Also, one thing you have to hand to PCollections: it is the only library whose list removal benchmark didn't produce horrendous results
Hence why you don't see any others there
Oh I thought the others were too miniscule
Java took ~20 seconds, Clojure doesn't have indexed-based removal on vectors and Kotlin's didn't even terminate (well, it did for piggy, but it took > 200 seconds)
Yikes
I swear this takes like 4 hours to run
yes it does
yup
Clojure on top everywhere else tho
yo @hot hull why didn't you set up github actions for Tags?
took me exactly 3 hours 51min iirc
might just leave it in the background
I'd like to see the clojure haters argue with facts!
how exactly does JMH work btw?
because I kinda wanna start using it for some stuff
more complicated than that though
effort?
Clojure has the best persistent maps (except lookup) and its vectors are also pretty good, definitely
Ah. Was just amazed that you set up an entire ReadMe. Also I never set Actions so idk how easy it is to set up xD
I wonder how it compares to other languages
it's ez
Neither
Does Scala have persistent structures?
it's all YAML
looks not that hard yeah
from what I've seen in the past 2 minutes
I would conclude from this that Clojure and Kotlin are more or less on par though
https://github.com/KryptonMC/Krypton/blob/master/.github/workflows/test_build.yml this is the test build that Krypton uses that I totally didn't steal from Adventure
At least in those categories
Clojure also has a lot of data structures that kotlin doesn't provide
queues and sorted sets/maps
Idk how accurate any benchmark would be but it would be interesting to compare clojure to F#/Haskell
Especially the latter is pretty important imo, but none of the others have them
And maybe elixir
I think the latter two being native may make that ever so slightly biased towards them
also wouldn't be predictable
I guess you could see how they perform on different platforms
those benchmarks are really made for micro operations and therefore you can't change the entire environment and still expect to get comparable results
Yeah
I should do some Krypton benchmarking lol
no
The haskell compiler in particular does a crap ton of optimizations that clojure probably doesn't/can't too
To compare general performance you'd need to make a macro benchmark by implementing and stress testing the same application in two langs or something
And that would still be pretty vague, but that's what's done to compare web frameworks across langs
easy to set up they said 😢 https://i.imgur.com/sTlK6YV.png
show
show your config
its just the default :))))
oh wait gradlew is the same thing as gradle ?
or is gradlew just for kotlin gradle
no
gradlew is the gradle wrapper
it downloads and delegates to the gradle version specified in the project
gradle is the global binary you may or may not have installed
oh there's a wiki page for all this shit. I should probably read
cabalw build
name: "Build"
on:
push: {}
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "checkout repository"
uses: "actions/checkout@v2"
- name: "setup jdk 11"
uses: "actions/setup-java@v1"
with:
java-version: "11"
- name: "build"
run: "./gradlew build"
```ez
ebt build
so true
funny how I use actions for test builds and Jenkins for master builds
now that I think about it... I've set the target version as java 8 in gradle I think xD
mainly because Jenkins can archive your artifacts and shit
but actions is better for just spawning up
yeah I did
used to use Travis with BardyBot, but actions on top
java-version: '11' would it be 8 or would it be 1.8 ?
this is where the entire specification for this in the GitHub docs may come in handy lol
yeah the docs don't help
my ass
found this https://github.com/actions/setup-java#Usage its 8 apparently
gj
name: Java CI with Gradle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build``` this the shit I have rn and its still failing
any error?
checking rn
also, make sure @ and + aren't misinterpreted as tokens
oh shit I think I found it
and other strange characters, like / or .
this is why I always quote my string values
you can't trust that YAML won't misinterpret it or complain about it
e.g. it interprets NO as false, which actually caused a huge exploit in Ruby on Rails
nah the error is from the project itself. I might have not uploaded locale to github
Hello, good morning, I am looking for a java programmer to make me a minecraft plugin, please answer me,
actually nvm, it was the direct representations of objects that caused a bug in Ruby on Rails
is anyone good at naming stuff
what do i call a thing that's a child node in a command tree
AbstractSubCommandNodeChildren
actually wait
doesnt brigadier work like this
can i just use brigadier
does brigadier work in bukkit?
yes
well, it can
chunkCache::class.java.getDeclaredMethod("cache").apply { isAccessible = true }(chunkCache)::class.java.simpleName talk about whack lol
that allows me to retrieve the internal cache that backs my chunk cache lol
just to see what it is
reflection is fun 🥲
So what's new with SlimJar today, Matt?
.javaClass
ah yeah, that exists 🥲
imagine retaining types after compilation
Have yet to start working on it 🥲
Though can already map all dependencies into JSON and add to the jar, now we need to figure how to proxy the jars so we don't constantly get from central
Scripton soon™️ btw lol
Can you not just have it grab from their initial repositories in the gradle build script?
plugin TestPlugin {
initialize {
command TestCommand
}
}
command TestCommand {
exec reply(text("Hello World!"))
}
```*may or may not have just came up with that just now* lol
I can but it's not a good idea, since some will be from central and not a personal repository, so it needs to be proxied, at least that's what I was told
One annoying thing is that I need to check on every repository for the jar, gradle doesn't give me the direct link
me and BM still gotta come up with a solution to modules blocking reflection lol
gotta tick these boxes:
- performant
- works out of the box
- doesn't require any elaborate hacks
but pdm always does all of those !!!
not for modules
🙄
Java 9's modules give us an issue trying to use URL class loader reflection
p.s: it does 0 of those
maybe we can specialise and directly access the class loader of the plugin and load that way
still gives us the issue of how we're going to access addURL though
maybe we can process with annotations
and just use jar in jar anyway
e.g. ```java
@PDMInject
public class MyPlugin extends JavaPlugin {
public void onEnable() {
// whatever lol
}
}
or just @PDM maybe
then the jar in jar class loader can load that class
yo @jovial warren but does the action thing only test if it can build? Bcz I can't seem to find a link to download the build or something like that
Not true
wdym download the build?
(true)
true
if you want to get the artifacts from the build, you have to publish them to packages
That doesn't work as a command framework, it's just for sending the tree to the client
@boreal needle check any of my repos if you wish to use brig as a cmd framework on Bukkit
@prisma wave you got any ideas yet btw about how we can actually solve the modules issue?
I mean, maybe a good idea to identify the actual problem first
monad
anyone got a record of the bug anywhere?
But the actual usage of brig as a cmd framework doesn't include the colorful tree sending thing
what bug
doesn't Java 16 break PDM?
Monads should fix that
lemme try
yep
What doesn't break PDM :kek:
idk lmao
BM
pdm latest version
go
Could not find paper-api-1.16.5-R0.1-SNAPSHOT.jar (com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT:20210409.232303-163). why does this keep happening to me
Gradle just doesn't like snapshots
(it's right, that version doesn't exist, but it's picking the wrong one)
idk what's up with my Gradle
Why does this keep happening to me, I've made my mistakes! Got nowhere to run!
stfu that's not helpful Matt
Bardy
😦
me neither
but it seemed to work
hey does anyone here know how I can take a list and add an element at the head instead of the tail?
this uses a linked list so that might actually be possible
addFirst, that'll be it
Ofc it's possible
Take new head, make a node, link node to previous head
O(1) adding 
the benefits of using a linked list over an array list
because using an array list would require me to move all of the elements up one I think
oh my god
well, I may or may not have just kinda solved block placing
those cubes? gone
issue was I wasn't checking to see if air was in the palette, so the only palette block being sent was sand and so the client assumed that all the data was for sand
speaking of which, I just watched another Algorithms lecture and realised I maybe should have benchmarked some more linked list operations
but then again most linked list magic is only possible with mutable ones
Before you you has see how you made gui some can store items, you think is hard to make something working some can collect items.
But when you has see how is done, is it not to hard.
(I know this need more work, was more proof of concept).
https://paste.helpch.at/amohebuwik.java
bm
the most fun with that code, is it get reset after server restart (you have to save it to a database) 🙂 But use it as it is is and you can troll with your friends (if you have any left after this 😉 ).
?
@boreal needle I got something a bit tidied up, nicer from what I have in my other projects (very platform agnostic too), see
https://github.com/Fefo6644/BetterJails/tree/main/common/src/main/java/com/github/fefo6644/betterjails/common/command
https://github.com/Fefo6644/BetterJails/tree/main/bukkit/src/main/java/com/github/fefo6644/betterjails/bukkit/command
@ or DM me if you have any questions 😄
As for the client syntax highlighting you will probably be way better off with lucko/commodore and, more specifically the commodore-file system, it's just super nice to write down the tree in a file like that and it works pretty darn well
cc @forest pecan cuz 👀
@static zealot what u doing 👀
Helping you ||stealing code||
ctrl +c and ctrl +v is a coder's best friend 😉
Speaking of SO, I got an email today with a job offer in it (more of a suggestion, SO sends you offers employers post you might be interested in)
I was like "oh shit what will it be"
🥲
😄
i just made a rookie mistake
reset my laptop
without backing up any of my stuff
i lost my rhythm heaven fever save :c
i have a magical file
take the md5 hash of this file
and convert that from hex to base 64
Classic 🥲
CC @static zealot lul
no
why? 😢
brace everything!
no! 😢
i would only use expression functions if i was using k&r
they just look extremely out of place in an allman project imo
btw you never got problems with Adventure and PAPI? Specifically PAPI's color translater breaking hex?
I remember Codinq having some major problems with that but Idk if they use Adventure or what
with hex I mean
Does Adventure even have gradients ?
Or are those only added with MiniMessages
Gradients are in minimessage parsing, yes
xD
Its cool and all but I personally don't like the discord parser. I prefer the vanilla one
how brave of u to say that
"vanilla"..?
xD
B.A.A.S - Don't Repeat Yourself!
You're sending too many duplicate messages.
Barry's Anti Abuse System | v1.4.4
good 😊
https://paste.helpch.at/xarawaqahe.java okay someone please explain why Java is complaining at line 23 and line 33 here
(vanilla server code)
fillOne and fillMany want T and they're getting capture of ? extends Tag, and they also want CollectionTag<T> and they're getting CollectionTag<capture of ? extends Tag>
Why the wildcard?
well idk what else I could do
Just.. don't do wildcards?
I tried CollectionTag<Tag>
CollectionTag<Tag>?
doesn't work
extends = out = "producer"
elaborate
You can't add to a producer
private static CollectionTag<? extends Tag> createGenericList(byte param_0, byte param_1) {
if (NbtOps.typesMatch(param_0, param_1, (byte)4)) {
return new LongArrayTag(new long[0]);
}
if (NbtOps.typesMatch(param_0, param_1, (byte)1)) {
return new ByteArrayTag(new byte[0]);
}
if (NbtOps.typesMatch(param_0, param_1, (byte)3)) {
return new IntArrayTag(new int[0]);
}
return new ListTag();
}
used to return CollectionTag<?>
and returning CollectionTag<Tag> doesn't work either because of the return types
because for example, LongArrayTag extends CollectionTag<LongTag>
I'm saying that's the reason why we can't have var_0 be a CollectionTag<Tag>
Why can't you make it return CollectionTag<Tag>?
.
Because the things he returns aren't a sub type of that
It's still a Tag