#dev-general
1 messages ยท Page 458 of 1
your course is obviously trash if the entry point is out of the scope of it
that's literally what entry course should be
variables, classes, functions
and stuff like that
Pluralsight
well im half way through the course and ive learnt alot so imo its pretty good
yes it mentions all of that, classes i havent started with because im not at that part of the course yet
@jovial warren I believe osgi has native code
yes it's very big boy enterprise
all these different layers is kinda losing me
but who gives a flying fuck
size was only ever an issue with spigot plugins because of the upload limit
most people don't care about file size
I'm not implementing the entirety of this model in Krypton
and now I realise you never mentioned size
it's not the size, it's the complexity
if I'm getting lost, think of what it would be like for plugin authors
plugin authors would never be exposed to osgi api
The authors wouldnt have to deal with it
yugi did I tell u I figured out the intersection?
Yea I saw the solution in #off-topic piggy, gj
wolfram alpha did it for me
Ahh nice, they have an intersection calc?
Oh what did you use?
Yes but what was the issue?
the trick is to find a site that gives you the exact value, and not a decimal
Ah how much precision did you get to?
it's an exact value
Huh
Didnt you further simplify?
don't think you can simplify that
Ah
would've thought wolfram alpha would simplify it
Does desmos even accept this?
Ah
because for some reason no one ever had thought "hey, maybe a plain text to latex converter is a good idea"
Lmao
i mean technically they did
but the problem is they all just went straight to images
not the actual latex format
fucking useless
Ah
you got a favourite curve?
Wdym?
like math curve
I'm doing an assignment where we have to draw shit on a cartesian plane with curves
we're meant to go out and look for other curves that we haven't been taught
Would a closed figure count?
show example
Like an ellipse
Alrighty
Also got the chat app to be more stable, finally got the hang of using dagger
I still think guice is the best
Yea still havent had a chance to try it out yet
๐ฎ
And what exactly is that
math
Try a bezier curve piggy
already got bezier curves in there
Yea fuck outta here with that
Hmm
only cubic beziers though
with beziers the amount of extra effort required as you go up in degree is huge
if you do it nicely
if you do it eh then it's relatively simple, just ugly
I was thinking of something like the sigmoid function then I saw the picture you sent later ๐ฅฒ
How tf can you do that
well
over all that graph has 258 "things"
some of those things are equations
some are comments
they're all pretty simple equations too
Try a quadric plane curve
what is this
ffs you know that's not what I meant Fefo
A quartic plane curve is a plane algebraic curve of the fourth degree. It can be defined by a bivariate quartic equation:
A
x
4
+
B
y
4
+
C
x
...
I used the eqn from there
fefo, in the thing, I have linears, circles, cubic beziers, and hyperbolas
not even that complicated yet
next design I'm making uses tan & sin
And the sigmoid function 
I'm not sure how I could integrate that into a design yet
maybe off topic stuff should go to #off-topic
maybe
and maybe you should ask Fefo that
I already did
oh btw, thinking about Fefo, @obtuse gale what do you call yourself now? because I can see you've changed your name
also, what pronouns am I meant to identify you with?
can't remember
she/her and I mean the name you can.. see it lmao
I thought you were there lol
alright
no clue
๐คทโโ๏ธ
Oh you don't go by they/them anymore..?
didn't you have she/they or smth in your name?
yeah she used to
ah my mistake
guess she's made up her mind now
attack helicoptor kekw
okay no
Well ofc if you're not comfortable (or something) with referring me as a she you can call me a they, I won't mind lol
And yes I'm saying "comfortable" because I actually know some people that feel like that
Please don't tell me you're on about pronounciations
*pronunciations
That word screams british
Not necessarily but I'm on about being a trans
suislide time!!!
Fair enough English comes from England
or does it?
๐ฌ๐ง Traditional English
๐บ๐ธ Simplified English
That's a she/he then
Y'all can fuck off with anything else
Sure okay
oof
Don't get offended, but I couldn't give less shits about what your personal pronouns are
Frosty try not to get yourself banned
Holy shit when it came to frosty being a badass
๐ and how he's here
๐ he was here
If that's a reason to get banned then I don't wanna be in here
isn't everyone they/them...?
when talking about them in a third person yes
Michael ๐ฑ
just for the record i pronounce fefo as "fee foe" like "fee-fi-fo-fum"
I did too piggy
fe fo (silent h)
until I was told it's pronounced otherwise lol
yeah I do that too lol
Apparently it's "feh foh" iirc
both h's are silent
I won't and I get you don't care but that's no reason not to call me by who and what I am.
It will take a hell lotta time to get to it but I don't want to go by Fefo anymore, I don't want to be the boy I used to be.
Emilia Lopez, that sounds straight out from a netflix show
Frosty you're gonna have to accept that whether you like it or not
It is for now
I'll eventually want to get rid of it, too attached to my identity I no longer want
Yeah but Emily/Emilia sound way cooler 
fair enough
sheesh
u gotta have an ign though, emily aint recognisable, fefo is, another thing like fefo can be, but I can't see emily becoming recognisable
Not what I was saying at all lmao
hmm
As I said he/she that's fine by me, and if you wanna be called Emily, sure, just saying about all the other bs you can gladly heck out
named after the Semigroup class from haskell
I can agree
Oh yeah I get that lol
What for?
you can keep your old nickname, not really an issue tbh, respectable people will still respect you for who you are
I mean Matt is Matt, Larry is Larry xD
ah yeah ig
ign: GoatyGoatlet
Yeah I was gonna say then there's this
:what:
oMg ScReEnIe pLeAsE
LichtHund 
Lol
Frosty is Frcsty :sadly:
We could all go by xp rankings instead of names
xp rankings?
Like on the leaderboard
3k xp today? ๐ณ
idek how much xp I make per day lol
not 3k thats all i can say
๐ฅฒ
and remence is jacob
16,777,216 RGB colours
:O
but jakob with a k
Oh fefo wasnt joking with the new name?
lol
lol
Lmao no

You wouldn't be able to do something like this where you live, would you?
just mangle it with underscores and consonants :D
you don't want to become trans, you are trans
Well but it takes time and courage
okay Alexander Wood
it sounds really silly at first but youll see what i mean
Semigroup Mitten > Alex
He should become a p star with such a good name

ok so I'm genuinely curious and I don't want this to come off as rude but if you were born trans, what is there to be proud of
you dont care about the norms and that youre who you are
I guess so
"born trans"? what? this is not me being rude but that's not really possible
What?
I'm just going by what they're saying
There are non binary genders by birth
you what
Chromosomal issues
guess you could be born XXY like my best friend's brother is lol
Can't wait for Frosty to make some kind of joke about that ๐ฅฒ
๐ฅฒ
@hot hull make joke
@hot hull make joke
dont
Ok I assume this is getting to a controversial topic
๐ฅฒ
wat
#2 me
#3 yourself
๐
as if it wasn't already obvious enough, they left a comment to tell you that constructor is package private
When
is it coming ou
out
remence would be at the top of that list right?
nah
Genius!!
you're not hated, you're just laughed at
Lol
Which repo is it from
"gtg"
it's in the JDK
lol
Lmao
Gosling
i actually have to go
not even kidding that's from OpenJDK Yugi
Silly man
do u tho?
This is why Simon > Gosling
pulse u didn't answer my question ๐ญ
Throughout both Spigot Discord and Helpchat (I hate)
#1 Yako
#2 Vision/Masked
#3 Kacberleague9
#4 CreeperCry
#5 Retrooper
#6 Belmu (cause he spams in HelpChat)
#7 Any occasional stupid troll that swoops in
People I have respect for
#1 Fefo/Conclure
#2 Brister
#3 Yugi/Kaliber
#4 Starr/Remence
#5 BananaPuncher714
#6 Dkim/Matt
Usually you gtg when you mess something up lol
lol my friend sometimes messages with me, and it goes like
"I need help"
"ok, what do u need help with?"
"minecraft"
"whats the question?"
"it's not working"
"what's not working"
"the mod isn't working"
yagsjhdwajhsd
true, but thats just a coincidence!!
You've just been a kaliber
Vision is one of my favorite people
oh i see
lol
cool ๐
i think u put remence on the wrong list
@hallow crane
POG IM NEXT TO MATT_ _
vision ๐
irrelevance be like
Exactly
yeah I already know pulse hates me problem is not sure why
I think I do
@cinder flare
people who make lists of people they hate are like 6th graders
ily2 pulse โค๏ธ
lol
Itโs actually a LinkedHashSet
The best way to resolve an argument is silence
the thing is im not a 6th grader
ยฏ_(ใ)_/ยฏ
the best way to resolve differences is to talk about it
because you killed the person that was wrong and you can finally be happy, in silence
why do you hate me
Ofc
Well we are being silent
@old wyvern https://github.com/openjdk/jdk/blob/master/src/java.base/unix/classes/sun/nio/fs/UnixPath.java found it lol
actually not that one
Lmao
Good job
yugi i'm putting 8 ampersand curves on my shit
because you tried to be toxic for me not getting developer role when ur code is.
lol
๐ฎ
I said one thing because you were being toxic towards me. I said "that's probably why you don't have the role"
Time to rewrite java as Haskell???????!!!
i was being toxic to you
Guys
You were
Chill
I was helping you
Yako do you know Skript?
I told you there was an issue with your code and you took it personally
???
abababababababababababababababa
thats not my gaming name
it was a user issue LMAO
There was never an issue with my code. Hence it worked for me for some odd reason?
lol
And you insulted my knowledge of the language after what you tried failed
I thought you said gang name for a second
Lmaooooo
ababababababab
what's going on here now
DMs?
same thing
DMs.
There we go
Nooo
anyone heard of haskell?
I want to see them argue
same
ive haerd of haskell!!!
Yes yes!!! The best languge in the world!!!
oh thats great news!!!
Similar to Skript?
yeah
unpopular opinion
No
I'm kidding lol
which is cleaner, in your opinion KT // First way strings.toList().subList(2, strings.size).forEach { word -> val ability = Abilities.getOrNull(word) ?: run { player.sendMessage(messages.get(MessageKeys.ABILITY_DOESNT_EXIST).replaceText { it.match("<ability>").replacement(word) }) return } abilities.add(ability) } KT // Second way (2..strings.lastIndex).forEach { i -> val ability = Abilities.getOrNull(strings[i]) ?: run { player.sendMessage(messages.get(MessageKeys.ABILITY_DOESNT_EXIST).replaceText { it.match("<ability>").replacement(strings[i]) }) return } abilities.add(ability) } KT // Third way for(i in 2..strings.lastIndex) { val ability = Abilities.getOrNull(strings[i]) ?: run { player.sendMessage(messages.get(MessageKeys.ABILITY_DOESNT_EXIST).replaceText { it.match("<ability>").replacement(strings[i]) }) return } abilities.add(ability) }
yugi i've just ran into the realisation that I have no clue how to translate this curve
Scripton soonโข๏ธ lol
Which one piggy?
Skripton
ampersand
not the first for sure
image.pexels.com of text
id say 3rd way here
stfu BM
photos/207142/pexels-photo-207142.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500
I would use the third way tbh
the second way I've used sometimes, but not really that big of a fan
of text
yeah, it's the way I was thinking of doing it, thanks
of text of text
first way looks like it does a lot of list copying under the hood
You're looking for the curve's eqn right piggy?
I've got the eq
that looks fun ๐ฅฒ
oh btw, whilst you're here @prisma wave, can I ask you something
u already did ... smh
can you please review https://github.com/KryptonMC/Krypton/pull/25 lol
dont
Alright gimme a sec
because I can't keep relying on Nicole for everything BM
bardy why dont u just have commit access lmao
Getting on pc, lemme check on desmos
I do, I just have a review requirement
๐
That looks cool
i'm using that
๐ฎ
it looks cooler than ampersand
and I like to know that my team also care about the project enough to review PRs and make sure that I'm not going off the rails @onyx loom
lol
is values() of Enums cached in some way?
should just be computed when the enum is loaded, since it's static
static fields are loaded on class load
oiiii
Could turn into a cool logo
ah
Aww
<3
@oak raft there's an off topic chat for a reason
@quiet depot Just multipliying a factor between 0 and 1 scales it
okie
add or subract from that resultant x and y to move it
that's step 1
lol
hang on
we got it sorted out in dms
gonna pretend that Bardy is on that list
which
which do you think
well ik you don't hate me
Bardy you are in the middle
fair
after multiplying with the factor
lol
add the root of the value you want it o move by
How is being in the middle of being hated and not "fair" xD
I mean that his response is fair enough
One sec
kindergarten vibes
@quiet depot try this https://www.desmos.com/calculator/hdav9dhwq0
yessir
thanks yugi
HONOURED ...
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }'when you can't even make a simple random number generated guessing game
lol
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
let correct_answer: u8 = rand::thread_rng().gen();
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
if guess.parse::<u8>().unwrap() == correct_answer {
println!("You guessed correctly! The answer was {}", correct_answer);
return;
}
println!("Better luck next time, the answer was {}", correct_answer);
}
```someone please tell me what I'm doing wrong here
why are you using unwrap
Go to hell
how else do I convert a string to an int?
You don't unwrap
this is my first time using Rust btw
That's like !!
๐ฅฒ
so what am I supposed to do then?
all well and good saying what I did wrong, but that doesn't do anything to me
check the nullability of it
There you go
In rust it's Option<T>
Not nullable
But the same effect
is_some() is like a null check
But afaik pattern matching is more idiomatic
match parsed {
Some int => blah
None => other
}
Ez
what about expect?
Slightly better if
Ig*
But you would typically want to handle Invalid input gracefully
also, how tf can an input of 3 not be parsed as an i32?
guess.parse::<i32>().expect("Failed to parse guess as an integer!") parse code
Newline character perhaps
any way I can strip that?
what's a usize btw?
Guess the number!
Please input your guess.
3
Better luck next time, the answer was -1564805939
```well, guess that works 
stfu
๐
rust foundation and haskell foundation should do a Collab
the best programming language ever made
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
let correct_answer = rand::thread_rng().gen_range(1..10);
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
guess = guess.trim().parse().unwrap();
if guess.parse::<i32>().expect("Failed to parse guess as an integer!") == correct_answer {
println!("You guessed correctly! The answer was {}", correct_answer);
return;
}
println!("Better luck next time, the answer was {}", correct_answer);
}
```there we go
probably cursed Rust but ya know, works
"failing gracefully"

Rust and haskell are actually very similar
For instance, both languages have ints and functions
also, what's the difference between String and &str?
cursed
this feels like Java primitives all over again
so String is the boxed type then?
That's probably not the right terminology but yeah
hi
Ill come back in a bit piggy
I still have work left, submission is tmr
I just need to make go have lunch now or something
Its 8 ๐
Oh god
weak hours pig
String is heap allocated and mutable, &str (aka string slice) is a string "view"
that's math? ๐ฅฒ
100% math
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
gets muted
That looks amazing!
t
BM enough
c
lol piggy
I get it
h
BM enough
i
enough
n
i don't like the yellow lines
ffs
g
spam ๐ฅฒ
teach me then BM
Already did
That might be wrong actually
Oh wait nvm
it is wrong
I don't get it
pattern matching may not be the best option anyway
It doesn't give you Some and None for the record
what
Its Ok and Err from the docs
oh it returns a Result
yes
Ah
pattern matching does not really improve this
and_then chain and map_err are better
hello
oh hey trump
i agree
guess.trim().parse::<String>()
```wtf is this
๐คจ
Hell
idk
how can I verify if a Text Component is "empty" (empty string)?
it wouldn't let me use str there since it has no FromStr or something
idk
mr bombardygamer
why is donald trump here
when does slimjar come out @ocean quartz
PlainComponentSerializer
๐
@onyx loom i fixed the no games bug, restarting server
good
"fixed" ๐คก
I am asking how is his day
@lunar cypress ```
io::stdin().read_line(&mut guess).map_err(terminate("Guess could not be read"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an FnOnce<(std::io::Error,)> closure, found ()
function
Bardy what are you doing today
Oo
i have been doing meth all day
and so far, not really impressed tbh
it's no haskell
meth or math
that's for sure
yes
Classic aus
a closure/lambda
I see
and whatever terminate does probably shouldn't go there
lambda ๐ฉ
Not sure, will probably be testable at some point today
I will be awaiting, sir.
don't even question what that used to do lol
this just isn't really making all that much sense to me
the syntax is a bit complex
especially for my object-oriented mind
this would be the same in any other imperative language
there's nothing in that code that would be particularly different to the same thing in java
no but the whole Result stuff is not what I'm used to
that's not really true
kotlin has that
yeah ik, but you use it like 0.1% of the time
how so? the logic is the same at least. read line, parse int, if invalid return, do something
D:
But you know what it does, no?
You don't do that with Result though
Result in Kotlin just represents something that may be the result of something doesn't it?
Result = try catch wrapped into a value
this is how little I use it
didnt you use to use runCatching all the time
well yeah that's the main difference, but everything else is largely the same
well
let alone how Result actually works
that is a huge difference. it's like saying streams and loops are the same
it seems reasonable to assume you would know what a function you called actually did
Touchรฉ
also nice name
ty
This time I actually know what it means
lmao
my mans tryna flex his GODBRIDGING skills to me
๐ฅฒ
use std::io;
use rand::Rng;
fn main() {
println!("Guess the number!");
let correct_answer = rand::thread_rng().gen_range(1..10);
println!("Please input your guess.");
let mut guess = String::new();
io::stdin().read_line(&mut guess).expect("Guess could not be read!");
if guess.trim().parse::<i32>().expect("Guess could not be parsed to an int!") == correct_answer {
println!("You guessed correctly! The answer was {}", correct_answer);
return;
}
println!("Better luck next time, the answer was {}", correct_answer);
}
```๐ฅฒ
I guess I should probably just not be using expect there on the trim
there we are
hey @prisma wave
bonjour
can I ask you to do something for me please?
https://github.com/KryptonMC/Krypton/pull/25 I have a PR I need reviewing ๐
up to you lol
as u can see, he clearly cares about this project
a project that he started
๐ฅฒ
yes i am so passionate about this project
maybe I need another replacement for you lol
sure
you know you can combine logger statements right
because Nicole is great, but she's not always available lol
wdym?
you mean I can log multi-line messages or what?
yea
because I was thinking that using a raw string might be a good idea
https://github.com/apache/logging-log4j-kotlin maybe I should also start using this lol
so I can just type ```kotlin
LOGGER.error("""
Whatever
This
Is
Lol
""")
and that'll work?
Wait, when did Kotlin 1.5 come out?
you what?
According to Maven Central, Kotlin 1.5 is no longer in RC.
Official search by the maintainers of Maven Central Repository
o
pff, haskell reached version 1.5 years ago
๐
๐
๐
Probably being released like right now, since it's not on GH yet
https://kotlinlang.org/docs/roadmap.html roadmap says will be updated again April 2021 so I'm gonna guess it must be very close
ยฏ_(ใ)_/ยฏ
So I wonder if we should expect an announcement today.
Subscribe to the Kotlin YouTube channel to learn about the upcoming #Kotlin 1.5.0 release!
We have already released a series on the new 1.5.0 language features, and weโll soon publish more videos about:
๐ KMM
๐ Standard library updates
๐ Coroutines
https://t.co/lqgbEhR2ek
Hopefully that means today.
Yea
Imagine SlimJar and Kotlin 1.5 releasing at the same time??
๐ฎ
Doable ๐
Definitely
@old wyvern hurry up nerd
All that's left is the mirror
Let's gooooo.
https://plugins.gradle.org/plugin/org.jetbrains.kotlin.jvm Gradle plugin still on RC ๐
Probably will be updated when they do the actual GitHub release.
yeah
Weird. I had dependabot suggest that I upgrade to Kotlin 1.5 4 days ago.
Ooo, shadow 7 also came out.
If I switch to Shadow 7 and then use SlimJar, is that going to break anything? As Shadow 7 requires Gradle 7.
Need to test that yeah, last time I tried it kinda broke, but it wouldn't even compile so need to test on a different project
I'm already using Gradle 7 atm but I'll hold off on updating Shadow.
wait shadow 7 is out?
omg finally
the support for application.mainClass
also, I wonder whether CFR or Fernflower is the better decompiler
currently decompiling the vanilla JAR so I can try and make a Gradle project from it
Naming ๐ฏ
P or NP ๐คก
man CFR is so much faster and decompiles so much better than Fernflower
I think so
hey would anyone here have a clue how to reverse apply a ProGuard mapping file to a JAR?
omfg I finally did it... Took me like an hour to add a console stop command to my discord bot...
lol
I really wanted to use like a command library or something but then I realised all I need is a fucking stop command ... xD
ooh ive found an intellij bug
i already have free ultimate
thats limited tho
lol
Does anyone here actually pay for it?
Ok i was worried lol, the student license is so easy to get
OS license is even easier, their requirements are so small
Huh, well i should probably look into that soon
๐ค
teeny tiny
i could probably qualify with my pathetic collection of messy java
and that's saying something
intellij can convert java to kotlin they said, it works really well they said
no one said it works well ๐
someone end my suffering please
Could not find net.dv8tion:JDA:4.2.1_2.6.2.
https://paste.helpch.at/amorahizup.bash
Either I'm blind, either I'm stupid ||or maybe both who knows||
IJ is like "ah a Java user, !! everywhere!"
can confirm there are many !!s
https://m2.dv8tion.net/releases
Yeah I don't trust IJ to convert Java to Kotlin because of how it types and handles null ability.
same thing with that as well yeah
omg...
2.6.2
I'm so dumb
wait nvm same thing
xDF
๐ฅฒ
Was just about to say
Could not find net.dv8tion:JDA:4.2.1_262.
Gotta love the docs
yeah i just found that lmao
Try changing it to just +
it feels great not needing to have 300 million overloads
It'll calculate the latest version for you
now to figure out why the hell JDA#shutDown doesn't actually execute queued RestActions...
Yikes, first blue screen
it might be that it doesn't execute the delayed ones or something idk ๐ข
Nice 
Windows.shutDown
๐ฅฒ
Had one a few days ago installing Nvidia drivers, pc was crashing every few minutes, had to run in safe mode to uninstall all graphic drivers and install again ๐ฅฒ
switch to linux
I will smack you
lol
smack him
i stopped getting blue screens a few days ago ๐
Canโt put chests next to each other in 1.8
its because of the way chests were changed in 1.13/1.14
intellij is taking like 10 minutes to commit to github ๐ฉ
is there a way to skip this?
i cant remember what they changed exactly, but they did change
You cannot place chests next to each other in 1.12 and below.
whats the git command to commit & push?
*More than 2
git commit
huh
git push
๐ฆ intellij isn't committing, im trying to use cli but now its ignoring the gitignore
i hate this
GitKraken 
is there a way to make dokka more java-user-friendly
or to get javadoc working with kotlin
What do you need?
porting this code over to kotlin but its primarily used in java projects
Like show me an example of your javadocs that you want to convert and I'll try converting a bit for you
rip
@oak raft
no
No I hate you
you said u loved me
I lied
Someone needs to make a plugin like Essentials where each command has its own jar.
- Create
- Profit
- ??
๐คจ
do u know who imagine dragons are?
me?
well i would hope 99% of people do
no the sky.... smh
This is a public discord I don't know who you could be talking to
so do u know?
of course
I'm legitamitley scared of myself now. I just wrote the ugliest code on earth, but its the only way I can get stuff to work
it passes like 8 arguments into itself
@oak raft disappointed
ok
imagine me dragging these balls across your face
he got u good ngl
do u know him?
who
this dick
ha
ha!
funny!
hahahahahah
he got u good!
gotem!
do u know him?
hey do you know zante?
Johnny KEKW
show us the code
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
so cute
he'd beat my ass tho ๐ฅฒ
I'll do the same
bet
๐
no
ill dm addy
nevermind
please don't hurt me ๐ฑ
burger king kekw
where are the final variables ๐ฅบ
also, just have a NamespacedKey constant
oh wait I'm dumb
typing final is oddly satisfying
ok done
whats the shortcut to create constructors / getters + setters etc
alt + insert
thank
you
you're welcome
to



