#dev-general
1 messages Β· Page 77 of 1
to get spigot jars
i never use that
you should
how come? π€
doesn't need any external websites to work
installs nms into your local repo
isn't illegal
works with any version
installing into local is extremely useful
https://img.bristermitten.me/15.06.59-2020.png progress π
and yes it is
need to make int + int = int right now
i'm resolving them all as doubles right now
?
Nice
It hurts how much they've changed the api
every method has issues lol
I mean i shouldn't complain i brought this on myself :/
it has changed for the better
eh
π
destroy it
@ocean quartz i met the creator of that character. π
Burn it
And oh nice, used to what it a lot
It's based in my town π
4ms for 2 variable declarations and 3 print calls
hampton?
not bad
oh
reading, lexing and parsing takes like 120ms though π¬
wanna know a fact about the studio of who made it?
their original studio burnt down so they had to move to the other side of the city π¦
Thank you @ocean quartz that img will be used good
Aardman Animations π
You're very welcome, i have a bunch of those for every situation
Question:
Basically my current problem is the discord invite manager that shows how many people joined from each invite is kinda a pain in the ass, cos I cant name the invites, and i forget what invites which, what would the best solution be in a bot?
thats it
I wish there was a easier way to move my project to 1.14 π¬
Imma join you guys in the new language thingy
I've "updated" to 1.14. Now where's the god damn errors at.
Something defo ain't right here. π€ no errors.
go for it @ocean quartz
Nice
Well that's a start
That's step 1 lol
Apart from the gui shit
I guess maybe step 0.5
More like step 0 xD
it's better than nothing
If i could work out how to sort out menus we should be gucci
Would slots work? π€
it's not a very elegant solution but yes
there's a elegent option?
yes
spigot never has elegent lol. Always rough af.
Encapsulating is hard?
encapsulating the Inventory state is elegant
not particularly
Conclure literally showed you how to do it
yes
Would that go within the command and stuff?
yes
and i have a lot of them too π¬
or use fluency?
Oh boy, time to figure out a lexer
use ANTLR for lexing and parsing
makes it a lot easier
@pale shell that's also an option. Matt has a GUI Lib too
Ooh gonna give it a shot ty
np
The most difficult part is getting intellij to recognise the generated classes lmao
I'm just trying matt's lib to see if this works! π
oh damn π
@prisma wave is it normal for shadowJar to take ages?
how long is ages
no
27s
unless your shading in the whole of spigot or something
depends what you're shading
das crazy
ikr
with ur crazy technological advancements, u might aswell work for epic games to fix their launcher
they'd better hire me soon
i believe
imagine if intellij actually cached stuff π
i mean, it's not chaching this code?
it's going through every single class even tho i changed 1 file
i have an issue in my minecraft server and i want to ask if someone can help me
here is the crash file https://hastebin.com/pilupapamu.rb and here is the messages console https://hastebin.com/xamopomino.md
@prisma wave I saw this today.. looks interesting haven't had a chance to play around with it yet https://vaadin.com/ works with spring
Looks really nice
@topaz bay how are you handling type inference?
helpful lol
my code is a massive mess
just assuming everything is an int for now lol
gross
very gross
My type system is at runtime
Things only have types once the type is resolved
like val one = 1
the property one only has a type after the expression 1 is evaluated
but when you have val one: Int = 1
one is created with the type Int
And if the expression 1 doesn't evaluate to Int, you get an exception
I would like to have 100% compile time types, even when inferred from expressions, but like... I would have to evaluate them
And the parsing system is 1 pass for now
So I can do post inference for assigned properties yet
can't*
Is that enough of an explanation @prisma wave
?
The staff team are slacking off. I submitted a role request like a week and a half ago to torture you all and you still haven't roasted me yet. Disappointed
@errant geyser dont complain we aint being paid
complain :)
We gonna take as much time as we want
shittt dont expose
Sorry terfs!
π¦
Don't wanna cause a Turf war
Terfs I will gladly pay you $0.00 to watch you painfully cringe at the quality of my code
woah
@eager fern?
... wym ???
WOAH
Idk sorry

o
You think I know where I am?
Honestly tho, I can't wait to get ripped a new one by u all when you finally get around to it. It'll be so funny
I've been coding while drunk btw ;D
Stop now
Never a good idea. You'll come back tomorrow like "how does that even work?????"
Coding while drunk is hella fun ngl
@errant geyser that happens when I'm not drunk too
I question how 99% of my code still runs
Petition to give the staff team speed so they will have to endure my torture now
@prisma wave I would love to see this code
I'm gonna put Odin on GH
And I need you to not flame me
Thank you, that is all.
flame him, flame him
@ocean quartz suggestion for your discord command framework thingy your making, if you havent already done it:
@RequiresAdmin
It's going to have a permission base command yeah, so you can set roles and things like that
ah
@topaz bay you would love to see mine?
Because I'm not sure that's going to happen right now
And I need you to not flame me
@topaz bay did you say flame you?
@pale shell shut your whore mouth
Nicee that looks good!
Theyre also fully evaluated expressions individually
So you can do stuff like this
And this
@ocean quartz
That is fucking awesome! ;o
Damn you're going hard on this
oh...
my god
I just realized..
All this shit I added to this language
It doesnt even have comments
@pale shell shut your whore mouth
@topaz bay RUDE!!
Might add cooldowns to matts framework
@Cooldown(1L, CooldownType.PLAYER, "rankup") this is a concept I sent matt
That could be cool
Ok @topaz bay here you go https://github.com/knightzmc/Frigga
I showed you my spaghetti code please respond
Lol
I showed you my spaghetti code please respond
Beautiful
does anyone know how to compile my java project into a jar on intelliJ?
Are you using maven
yes
Same way
If you don't have maven you can't use maven...
"Normal" java projects suck though
You should always use a build tool
Thought he meant normal as in non-MC related
IntelliJ has a built in artifact builder but it's not great
oke thanks great
@lunar cypress Is it good practice to accept an Optional as a parameter to a method?
@prisma wave nerd
No @heady birch
Ok
Yes @pale shell
@prisma wave booooo
uh oh it's Sx run
BOOOOOOOOOOOOO
who angered sx
me
well done
merci
I'll let you resolve this then
@topaz bay your lexer probably SUCKS anyway
@topaz bay answer alex π
lol
frosty ping sx
this probably counts as harassment
alex told me to ping you
unlimited power!
Can we talk about it?
Fine
static π
Yeah right
Imagine using static methods and not interfaces
Couldn't be bothered to wire in the GroupUpdater
But then this wouldnt need to be static if the logic was in KiteUser.updateGroups()
My lexer is clearly supreme
Yours is generated spaghetti code
yes but doesnt this violate SRP?
mine is made by professional language designers
why should KiteUser have to update its own groups
π π π
when the
@heady birch honestly I think either is fine
I make this decision
you are definitely overthinking it
I can never change it
make a UserUpdater interface and wire that into a KiteUser or something
anyone here code in Lua?
Is it a good practice to use a default void in the interface?
Kind of like Sxtannas traits
my friend's looking for a lua programmer
I could kill for final methods in interfaces
Yes
I can code Lua, but i haven't learnt it fully, especially in-built functions
@heady birch huh??
?
What do you mean by unthrowable exception?
Javadocs bad kdocs good
Kotlin docs
but java is better ;D
No
Right answer
wait kotlin docs is a thing
Yes
imagine documenting your code tho
documenting code is for nerds
Don't even work
What
Ew maven
Can't even find anything on (default-cli)
Oh
Java home wasn't set right or something
Finally got TeamCity setup, was a PITA to get setup on https
yeehaw
@prisma wave @pale shell
POG
int score = section.getInt("score");
this is my plugin error
in this code
i can help me ?
Show the error
@topaz bay that looks hella complex to write..
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
yeeted
It's null, so do a null check beforehand
joking about what?
(Well something is null)
public static boolean isPlayerInList(Player p){
section = Main.yamlFile.getConfigurationSection(p.getUniqueId().toString());
if (section == null){
p.sendMessage(Utils.chat("&fWelcome New Player&b" + p + " &fEnjoy !"));
return false;
} else {
addPlayerToData(p);
UpdateVisuals(p);
return true;
}
}
i thought you were joking about making that language
yes
How...
How do you write code for it?
Wha...
Sxlang
???
Notepad?
notepad++
wdym how do you write code for it?
i can drink
Theres more that works ofc, but these contain what I was working on
I see
ok, i will not joke around with sx about making crazy things such as coding languages.....
I mean it's no Frigga
No haters @topaz bay
Good luck for anyone taking AP Comp Sci test!
@pale shell alex is a big hater
@prisma wave is this true
No
@topaz bay yes, but you critise everyone's code
I deny these allegations
No comment
i'm on 1.15.2 π
not out
1.16, the first release of the Nether Update, is an upcoming major update to Java Edition announced at MINECON Live 2019 and set to release in 2020.
??????????????????????????????????????????
It's in snapshot
Woot woot, more progress
Very nice
Seems like 2, but not for long
@pale shell I do that cause I can
@topaz bay my code's perfect so no need to critise my code.
Wrong.
??????
Only my code is flawless and blessed by the gods
Look at this simply immaculate piece of code
FLAWLESS
random println
Its there to separate the executions between redos
discord.js anyone? i just want to ask a question
Sure
IT LITERALLY IS
#development @indigo mesa
That's not what I mean
I mean does it just repeat the previous statement?
Or everything?
It repeats the entire... (forgive me for this) script
Just while true smh
Without having to make control flow statements
I DONT WANNA
Thats the POINT
Not yet at least
Don't care
ugly redo statement
To rephrase your original sentence
"friga would never"
@topaz bay You have sinned, and shall be smited by thus gods!!!
Because it's a language of class
@prisma wave i think I've moved over to the new system idk if it works tho ;D
Good
And Im gonna make it like Go
good
what did i come into
Nobody will ever use Odin anyway because it sucks ass
Any language with a redo statement sucks
@prisma wave what's going on π¬
Why doesn't Odin + Frigga combine...?
or not
@topaz bay too many keywords just use a function
I'll make thor.
Not too many keywords
Java has FIFTY ONE
All of these are very useful
Just use a function for printing
Having at a keyword creates ambiguity
What if they want to print to another output stream
Code has no concept of desire
it's that stupid key shit again
java.lang.IllegalArgumentException: Invalid key. Must be [a-z0-9/._-]: Jackhammer
wait
i know what it is
Obviously not
stupid java deleted my code ;D
Very much so
I sounded like that spoilt brat then lmao
"then"
kek
I wonder why they want it to be lowercase now
They've always been lowercase
I had it in sentance case and that always worked?
Not for a NamespacedKey
The name can be anything
The keys require a specific format
lowercase right
lowercase alphanumeric without spaces
hm
I don't think i've had a clean run at all yet, lol.
Meaning there being no errors coming from my plugin.
it fires an error from extends JavaPlugin?? wtf??
What error
That's not that bad
Why not
neat
Bruh
The amount of shit
I went through
To make this work
Code reuse is honestly amazing
ew assignment as an expression
meh
loop(count++ <= 5) sounds cool
Anakin, the goto statement is evil!
Not the goto!
I havn't used a label in java for a while now π¦
just don't use nested loops then
π
I used one of my first actual kotlin labels in odin
The expression parsing function is the most complex one in the entire parser
what do you mean?
Sx, how do you get the lines to show the Sxtanna, Today etc thing? I saw someone else with that enabled but could never find it
Ayy nice, thank you ;p
I used one of my first actual kotlin labels in odin
Its also a plugin for vs code @ocean quartz
very useful
You also get these little things that show how many commits ahead or behind of what branch your own
@heady birch Its the first time Ive had to use a label on an actual flow control statement
(I could avoid it with refactoring, but I want to keep this function self contained to a certain degree)
huh?
Nice this plugin is pretty cool
I could kill for setOverride and hasOverride
combine that with a getOverride and you have yourself some kotlin friendly code my dude
@topaz bay Why not setGroupOverride?
Is there a different override you can set?
Well i'm torn between two ways atm
Is there a different override you can set?
@topaz bay ?
Whats the purpose in specifying "group" override, if you can only override the group?
So then why arent the other methods isGroupEnabled and isGroupOverriden and setGroupEnabled?
They all have to do with groups, putting that in each method is redundant
you got a point
but there was setGroup before
and just set wouldn't make sense
updateGroups replaced setGroup
Although i'm not sure wether i should keep it like that
I mean... I have no idea whats going on
@heady birch please answer on #general-plugins
No
ok thanks btw
Himo, ask your question there, like what you need help with, people will help if you explain
Hello does anybody know a cooldown plugin that goes with Papi? I want to add certain items (based on name/lore) cooldowns and it being able to display in a scoreboard or the tablist...
My code be like
das crazy
o.o
But the font combines it to that single symbol
Ooh
that one thats green is a symbol in Odin, its the return operator
Its unimplemented though
@pale shell Do you not use Fira Code?
No
You should.
Oh?
Yes
Impossible.
Impossible??
Jetbrains Mono > Fira Code
@topaz bay I won't lie that seems more of a gimmick than an actual language feature
No
No?
He never
malbolge
The power of writing your own parser
I don't get notifications from this channel
"when" it's a replacement for "if"?
Don't get push notifications
I could technically even make loop expressions
what would they resolve to?
A list
hm
Sx, do you ever catch npes?
Just add IntRange + map
@prisma wave absolutely not
Sx, would you call me a bad dev if I caught npes?
@topaz bay why not
Loop expressions seem like a gimmick too
Functions are much more versatile
I am taking it seriously...
Add loop expressions then lol
That doesnt mean its not a toy language
Lemme get some popcorn, this is fun to watch
pro language developer seriously

goto random()
xD
Sx what about skript
you should add metaprogramming
I should make a way to interop with java
Isn't that the worse invention
0: int i = 0;
1: System.out.println(i);
2: if(i<5)goto 0;
welp
java has the goto keyword for some reason tho xD
it doesnt work
its just there'
for no apparent reason
lines[0] += "push \"hi\""
I think they planned for it originally but never added it
const is also a reserved keyword iirc
true
is nextInt static?
This would probably create an instance
Hm
static bad
I hate using static with a passion now
You guys screamed at me so often I'm worried to use it lol
If it compiles it should be fine.
...
Its so easy to use static correctly
It's easier to make a whole programing language than use static
Not really
If I ever wrote a language, there'd be no static, no npes
no null?
Yep
technically, odin doesnt have null
Wait
Null causes more problems than it solves
There's languages that I can use what I won't break everything?!
not having null doesn't mean break proof
Sxtanna kinda gay ngl
it just means different
Btw, where did the name frigga come from
Eh
I just stole the Norse mythology name
?
Hes trying to be my wife
sounds offensive sweat
Oh okay
FBI open up
why is my typing speed so slow
Alex, if the fbi saw that picture they'd just backaway and not come back xd
what the actual fuck
-_-
You know what I'm referencing?
Wanna share it with everyone?
Why not
For obvious reasons
What would Sx say >:)
Alex, you wanna see something extra special?
Yes
He'd tell you to shut up
Sx, you should see Alex's holiday photo xd
I will always hate that Sx does allman
This is how I implemented breaking from a loop
that's somewhat disturbing
lol
why would you do that
Why would I not?
cause it's disturbing
Alex the photo has gone :(
@remote goblet shut your whore mouth, you dont even know why it would be disturbing
:)
@prisma wave Its the perfect solution
you right
It bubbles up through all evaluations in that point
Exception handling slow
No its not...
@pale shell I know
I want toast
I have a better photo I could share to Sx >:)
I was just joking, lol
Yeah ik
you got me
Omg, why you leak his face
i'm a rebel
it's ok the helmet is still there
@topaz bay add something cool
I can't think what
but something cool
I thought we weren't sharing it..
Alex I had a idea >:)
Look at that
what the fuck is that
ok
The first iteration of that loop took the longest
warm up
I'm gonna Photoshop you as soldier
π€¨
I look like baby :)
It did take 600 microseconds, which is way more than the normal 60
But this is microseconds
needs more optimization
So who cares
If it's not taking nanoseconds you're doing it wrong
π€¨
@prisma wave
mine takes 2ms just for a print call π³
then again most of that is probably the output stream writing
idk
Alex, can I use your language to automate my house
in theory
I would be surprised if it could happen in nanoseconds
so it is slow
This is in millionths of a second
needs more micro-optimization
lol
the BENCHMARKS
Wow ya know...
This would technically be micro optimizations
Cause ya know... microseconds...
Double entendre
french is complicated
So is English
and pretty much any language
French its horrible
@distant sun π€¬ π€¬
oui
Oui
@remote goblet he's a native speaker
RUN
OH hecking yes
Whos a native speaker of french
;O
i will take both sides
Don't swear like that brister
Fracking
Not even french people are native french speakers
fricking
SxtannΓ‘ ?
Nope illegal