#dev-general
1 messages · Page 210 of 1
While we be here shading 2mb shit without giving a care smh
Can somebody tell me what the maximum amount of rows in an inventory is?
Thank you^^
Technically it's higher but the client glitches out with anything higher
Shut up zoomer
damn i wanna see their reaction when find out kotlin jar size if they complaining about 90kb 

elara standard library will take away 30kb
30kb for print functionalities 🙂
xD
O
You put it in the server and it deletes your files 
👀
ok uhh
i paid some guy to do my server setup
i thought it was done
i uploaded all files
[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)
thats the error
and when i login it says please wait connecting to database
There is no time to wait! Ask your question @chrome obsidian!
where is my error here : player.getInventory().addItem(new ItemStack(Material.IRON_SWORD, 3));
Error line : ```Mutiple markers at this line
- The Constructor ItemStack(Material, int) is
- The method addItem(ItemStack...) in the type Inventory is not applicable for the arguments (ItemStack)```
Better ask in #development
ok ty
@obtuse gale Moosic app
Play music...
Y tho
Bruh you said you wanted a project
I mean well yeah but like doesn't that already exist...
:bruh:
lol
Make your own
lol aj who cares if it already exists
most things uve made probably exist already anyway 
How would I go about changing how fishing works in terms of lure but without the enchant
I want it to increase based on some upgrade
that isnt lure
enchant
I think there is an attribute for luck that might be a factor of fishing
ok ty
Is there any event that works like InventoryClickEvent but for player opening own inventory too?
I need to have what action player made, what items he moved and where, what he have in cursor etc
There's InventoryOpenEvent and InventoryDragEvent and InventoryInteractEvent iirc
InventoryOpenEvent and InventoryInteractEvent do not have that what i need, InventoryDragEvent do not work in player eq
Is this where I can ask for help with fixing a bit of my code?
Is there any event that works like InventoryClickEvent but for player opening own inventory too?
wth do you need then?
yes SAO
preferably in #development
Ah okay.
@ocean quartz Dms smh
Oh, i forgot
Excuse me how i can download all the placeholders with one command?
clip, I'm your biggest fan! I've downloaded all the PlaceholderAPI expansions!
what a big fan of clip
How can I replace text in a TextComponent, with another TextCompenent?
Mind providing an example?
component1.setText(component2.getText()).....
I mean..... it isn't rocket science lol
Cheers
wait.
Oopse... My bad, didn't word my question right. I want to replace for example {xyz} in a TextComponent, with another TextComponent.
I guess
hmmmmmmmmmmmmmmmmmmmmmmmmmmm
@ocean quartz How would you define PathfinderGoalFollowEntity ?
I'm confused on how to make a custom entity follow a player in pathfinding 
I sent you the link to mine .-.
You get the abstract navigation and do a to the player entity and it'll path towards it
AAAAAAHHH!
Or if you're not making the plugin public on spigot then just use paper's mob api
override fun a(): Boolean {
// Basically makes it run only once a second
if (!shouldRun()) return true
// Gets the distance between the player and the pet
val ownerLocation = owner.location.clone()
val distance = petInsentient.distance(ownerLocation)
// Checks if distance is less than the follow distance
if (distance < followDistance) return true
// Checks if distance is less than the tp distance
if (distance < tpDistance) {
// Walks to player
navigation.a(owner, movementSpeed)
return true
}
// Teleports to owner
petInsentient.setPosition(ownerLocation.x, ownerLocation.y, ownerLocation.z)
// TODO despawn pet if player goes too high
return true
}
It's not that complicated
override fun
that doesn't sound very friendly 😦
You're just overriding one fun with another, it's still fun, just a different one
you decide the new amount of fun
now that... that is not fun
String.MAX_VALUE
poggers
yeah it still confused me
You can always explain the issue in #development
there's a full on dissection of code language happening in that channel I don't wanna be a dick and disrupt it .
just disrupt it, this isn't a training centre for polite, interruption-less conversations, it's a support chat
They stopped so I have gone ahead , thanks anyways.
and no, you wouldn't disrupt mid sentence if two people are talking that's is literally the exact same thing.
I can't post my problem as the photo is more understanding than writing it out .
You can explain the problem and post the image as well
What, where??
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
I see , thank you
you can also say "shit I can't post images" and barry will tell you what to do
._. wut
add api-version: 1.13 to ur plugin.yml
.plugin has a folder for the plugin folder?
what?
Does .plugin have a folder for the plugins folder?
Are you the dev of the plugin you're talking about?
.plugin?
I don't understand what you mean Matt.
did you code this plugin
Oh this isn't an mc dev question then, it's just a plugin question
It's a warning, it's not an issue, the plugin dev should know what it's doing, if it doesn;t have that it most likely is an outdated plugin
Okay so, I paid my minecraft developer who lives in Ukraine to make me a custom plugin the file itself is like 3 kb as I needed something so minor done hence the file size and basically he is away and won't be active for two and a half days where I needed this plugin so I could disable the whitelist.
But I am having to be put on hold for such a minor problem
I mean the plugin should be working, the api version shouldn't be that big of a problem here
Restarted the server that plugin wasn't even visible then went into my filezilla, made sure it was there and it was in with the other .jar's and so I ran through console. Saw that error and told my bud just before he went offline and he said It’s legacy material support don’t allow initial
No, it just need recompile file
I kinda didn't get that last part lol
yea that was the Ukraine guys text.
I don't know what that means you guys can't understand what he means we're both fucked.
I don't speak butchered english sadly
Wait , if I was to change my server version in control panel would that work as I am on paper and he setup one test server I think under plain 1.16.3
does the plugin use any blocks, sounds, particles, entities...?
I think just opening the jar in winrar or something like that and adding the api version should do it
depends
does the plugin use any blocks, sounds, particles, entities...?
that's why I'm asking this lol
Yeah but either way it should work fine if it didn't
Basically that plugin in a nutshell does this It announces in chat who currently has the Dragon Egg and when the original player has the Dragon egg stolen it says in chat "Player has stolen Dragon Egg from player"
It's just a warning not an error
that's all .
hence 3kb file
and how would I go about getting a 1.16.3 api version and where would I put it?
Eeh you can give it a try I guess:
- Open the jar with winrar/7zip
- Extract the
plugin.ymlout of it - Edit it and at the very top add an extra line that reads
api-version: 1.13 - Save the yml and put it in the jar with winrar/7zip again
how many "very top"s are there?
no, like what number?
I first pasted it and it vanished like it just disappeared so this is the second copy paste is that right?
plugin.
what kind of madman puts comments in his plugin.yml......
put the api-version: 1.13 somewhere where there aren't any # at the left
The file only has plugin.yml
[ERROR] .... Could not load 'plugins/DragonEggAnnounce.jar' in folder 'plugins' but the "Couldn't specify an api version" has gone that is the only error I am getting now.
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
paste the full error ig..
Hi guys.
sup
Does anyone know how to make Wither Skeletons spawn more often in the Nether on my server?
Not by increasing the whole mob spawn rate.
Just for Wither Skeletons in Fortresses.
How could I do that?
You might wanna send everything that is on the plugin.yml file
Uh, where?
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
What the hell is this
That is the plugin lol
This is a config file as the plugin.yml what
that was the only file in there under plugin.yml 😂
matter of a fact that is the only file
😂
Seems like it started as a plugin.yml then it got lost
yeah what the fuck
The dude puts config file as the plugin.yml though I don't wanna go back and ask for help :/
don't ask
just
wait for him to be back xD
and ask to fix that warning
that's all you need to say lol
Could I pay one of you guys right now to fix it :-:
I have had my server blueballed too much I just want to be able to turn the whitelist off
and invite players
this is the last thing I need this plugin that's all.
Pays guy from Ukraine to setup stupid simple plugin takes 3 irl days goes on dodgy discord server gets wind of plugin configuration guy offers and it'll take the dude 20 minutes I hate the approaches I take with people sometimes lol ( talking bout the Ukraine guy )
f
Yuppers.
#761129129730900028 message @kindred hatch dm'd
bruh ive been working on a project for 6 months and i cba to do it but i need to finish it....
I just keep running into new problems
and my code styles changed like alot in 6 months
so its kinda messy
idk why but this querry wont work (should work),
@bot.command() async def test(member): cursor = my_db.cursor() cursor.execute("SELECT score FROM ajparkour_scores WHERE name LIKE " + str(member)) abc_dd = cursor.fetchall() abc_dd = abc_dd[0][0] score = abc_dd[9:(len(abc_dd)-1)] print(score)
yeah, use prepared statements, https://pynative.com/python-mysql-execute-parameterized-query-using-prepared-statement/
One day I'll properly use prepared statements :((
imagine writing queries manually
Boi so you've not been using preparedstatement the whole time? 
I just String.format that bitch
😳
@half harness so what do i have to do now
ask in #development or if its busy and dev general isn't busy then ask here
why cant u answer it tho
bc im partly busy
Curious to know how you guys would approach this problem
Basically when writing the yaml let's say 3 paths:
path.one -> "one"
other -> "two"
path.two -> "three"
Then writing as
path:
one: "one"
two: "three"
other: "two"
My solution is to map it into a String, Object map where it'll be saved by parent, for example path is a parent to the map one -> "one" and two -> "two"
But not sure if that'd be the best solution
so Object in this case, could either be a String or a Map<String, Object>?
Yeah, if object is instance of map, it means there is children, if not then it's just writing it's value
Iirc snakeyaml reads it like that, so i guess writing it like that would make sense
Alrighty, probably gonna have to do some sort of recursion on it at some point yikes
eh
nah
you shouldn't be doing it manually
load -> get file contents, snakeyaml deserialize to Map<String, Object>, convert to json tree (gson), map to object (gson)
save -> object instance to json tree (gson), json tree to Map<String, Object>, snakeyaml dump to string, write contents
Oo interesting you turn it into json
Not a bad idea
to be fair, pretty sure snakeyaml has object mapping functionality
i just don't know how to use it so I cheat & convert to gson
You may want to consider a Trie structure too
I believe they're pretty much this
if you want an overengineered solution that is

lol
yo wtf
yo fr
lol
1.12 and below... how do I get the item's name from String? (IE: Birch Wood, instead of Log)
(...and before yous say/ask, I don't care about client side languages or whatever)
with medium to high difficulty
afaik there's no reference for that on the server side, it's all done client side
all the server knows is WOOD and a data number
So you'll probably have to make your own "database" or I think vault or essentials has one
isnt it possible through nms or smtng, like to see what locale the client is using
you can find out the client's locale yes
but that doesn't include the actual localization
there is a slight chance that you could, maybe, probably, get away with it using TranslatableComponents, not entire sure how that works with item ids and data but I'm sure you could find something if you're roaming around craftbukkit code
I would ask for some spoon fed code, as I don't fully understand java myself.
I doubt there is any
I mean Material.matchMaterial is the best match perhaps?
I'm doing that currently
the point is the server doesn't know anything about what Birch Wood represents, so there's no way to parse that to a material without making your own dictionary
Just not sure what to do from there
the best workaround I can think of is XMaterial for 1.13
yeah I know
but I think XMaterial can parse 1.13 names too right?
and then convert them back to 1.12
which is probably your best option
Aight.
I have the following Map;
Map<Material, Map<Short, Integer>> soldMap = new EnumMap<>(Material.class);
and soldMap.values().toArray()[i].toString() (when looping through each entry) returns {Number=Number}. How do I get the numbers separately?
who in his sane mind at this day and age uses shorts lol
u short
Big bruh moment
@ocean quartz nms is making me have an aneurysm https://hasteb.in/juxigoqe.kotlin
lmao
Why can't i just get a bee to follow me 
its obvious though
Because you're doing that in the entity's a fun, you need to create a custom pathfinder for it

by convention its one
very convenient
except that it breaks the pattern that 0 to the power of x is 0
it is but conveniently its 1
okay try 0.00001^0.00001
I mean any number with power of 0 is 1
yeah
its basically x/x = 1
except with 0
When you need to write a plugin to assist you in writing a different plugin
This was supposed to be a quick project
rip
Same here lmao
I'm trying to resist the urge to make a new library that overengineers a seemingly simple problem
It's a slippery slope lol
Well what's the problem BM
Too big brained
tryna make a nice text based gui with clickable links to things
so you can list things and click different bits to toggle booleans and such
it's mostly working, but a mess
and a few more layers of abstraction with an overengineered library would definitely help
Been playing with EulerAngles for the past like 4-5 hours, and sheesh my brain is confused
yikes
Yikes why
I've still no idea how in the hell they work, or even a close representation of them
It's just rotation along the 3 different axis
Ez
🌝
Also, 8 am on a Sunday
Back to sleep I must go
If only it were that easy Fefo
Hey^^
I'm currently using the InventoryMoveItemEvent and I want to disable moving to specific slots inside the inventory only. Is there a solution to get the target slot from that event?
tryna make a nice text based gui with clickable links to things
@prisma wave Lanterna or Jexer
Hey^^
I'm currently using theInventoryMoveItemEventand I want to disable moving to specific slots inside the inventory only. Is there a solution to get the target slot from that event?
Well, I can also use theInventoryClickEvent, but I need to retrieve the target slot from that. Is that possible?
As players use shift-click I need to check where the item is going to be placed in the top inventory
I meeeeeean its possible but there's nosuper simple way to do it
If you can't just compare the inventory before and after and get the first slot number that's different you could always manually implement the logic
Looking for useful libraries/frameworks?
Here are some which have been deemed useful by the community and are used daily.
-> Menus: https://mf.mattstudios.me/mf-gui/gui
-> Commands: https://mf.mattstudios.me/mf/mf-1/getting-started
-> Messages: https://mf.mattstudios.me/message/mf-msg
nah. Probably more like 99 times
3 times, take it or leave it
Mood
impressive
i want to start developing in java, any hints? (I just know how to C++)
How much c++ do you know?
1month of study
I found the transition quite easy from it, maybe a bit uncomfortable at first but easy nevertheless
any hints?
Hmmm don't know what you mean by that exactly lol but I'll just say that the javadocs are very useful 👀
The main, big, fat difference is that everything has to be inside a class, you can't have variables or functions outside of classes
need help with someone who knows how to use ''wine'' application. please ping me
I feel like from C/C++ to Java is more soft than the other way around, since in a way you are moving to something a bit more simple
Might be time to finally try hibernate :O
Oh..
I wish i could hibernate this dumb pandemic
Fun fact: you can live for the rest of your life without eating nor drinking
Vault review be like
Love those reviews
Anyone wanna let me borrow some brain cells? Can't think of a solution for this stuff
why does my spotify rich presence not show up
It's there but it isn't green
Anyone wanna let me borrow some brain cells? Can't think of a solution for this stuff
No

So, I read this from a file:
{first=first value, second=hello, nested={first=nested value!, second={first=forth!, second=fifth!}}} (a map)
Which then i turn it into a simplified map flattened, which was super easy to do
{first=first value, second=hello, nested.first=nested value!, nested.second.first=forth!, nested.second.second=fifth!}
But can't think of a way to turn it back to a nested map 
Hmm
Split the key
On \\.
And the # of elements in the array would be the # of nested thingies
This is the result of my current solution, which is pretty broken but getting there
{first=first value, second=hello, nested={nested=fifth!, second={second=fifth!}, first={}}}
Hmmmmmmm
recursion
Avoiding that would be golden
split on \., first value is the key, second value is another map, keep splitting until value isn't a map
i don't get the recursion hate
it's effective
and nice
Not hate, ptsd
👀
Yeah and the last element of the split array is the final key/value pair
yea
Every other element is the key to the "next" map
right to left recursion is probably better actually
so you get the final key/value and go backwards from there
Alright time to dive into this empty hole
recursion isn't that bad
you just have to watch out for
recursion isn't that bad
you just have to watch out for
and then console gets spammed with an endless number of SOE
😬
Yeah i know, like i said, it's just ptsd, in school using c we had to do an entire test where we had to try recursion when ever possible and it was awful
understandable
Ayy got it working non recursively
{first=first value, second=hello, nested.first=nested value!, nested.second.first=forth!, nested.second.second=fifth!}
{first=first value, second=hello, nested={first=nested value!, second={first=forth!, second=fifth!}}}
Awesome
Properties from file - {first=first value, second=hello, nested={first=nested value!, second={first=forth!, second=fifth!}}}
Properties - {Property{path='first'}=first value, Property{path='second'}=hello, Property{path='nested.first'}=nested value!, Property{path='nested.second.first'}=forth!, Property{path='nested.second.second'}=fifth!}
Properties to write - {first=first value, second=hello, nested={first=nested value!, second={first=forth!, second=fifth!}}}
nice
Spigot
is dumb as fuck
as i realise
This particle is the mycelium particle????????????????????????????????????????????????????
Hello
what the fuck md5
Is there an easy way to check if a server is mojang authenticated (premium)?
Just get a random player's uuid, and check if it's a premium one
what if there are no-players online?
getOnlineMode*
Docs are outdated where is 1.16.4, come on staff!
Or that :kek:
What if it were under a bungeecord? @obtuse gale 😛
is that a thing?
What is?
getType
3 is offline right?
Don't know if it's called like that exactly, but if the UUID is of type 4, it's legit because it's random based
3 is "name based" (i.e. offline mode)
based
Nah
that website looks legit
I have come to the conclusion that every spigot command framework sucks
not even Cloud can satisfy requirements 😦
Nothing like a good old arrow code switch case command parsing
What do you need? ;o
actual support for in between arguments
booster type info <identifier>
booster type <identifier> rewards ```
cloud almost supported it, but it refuses to resolve this because there's ambiguity in the 2nd argument (identifier vs info)
Oh yeah i remember you talking about this, sounds pretty ass to implement
Might see if I can decouple luckperms' one
yeah manual is probably gonna be the way to go here 😦
I know for a fact that brig resolves that.. but you are looking for an annotations thingy, not much of a builder-type framework
Ideally annotations yeah, I think the builder style looks really messy
LuckPerms is interesting tho, each parent command has its own class, defining their own children commands (basically just inheritance), but I don't think there is an ambiguous situation like that presented in there
But it could be easily solvable
Maybe not
I don't think it is that ambiguous
if the 2nd argument is info, follow the info branch, otherwise follow the identifier
obviously it would be more difficult than that in practice
Yeah given how LP does it, it is easily solvable, same for brig
Difference being, the LP command system is not a builder type, each "piece" gets its own class
yeah it's more inheritance based
Mhmm
Maybe what I'll add in the upcoming update might help you
@SubCommand("sub")
public void command1(player, string, string);
@SubCommand("sub")
public void command2(player, int, string);
Basically 2 methods with the same name but different parameters and it'll choose the correct one based on the given types
That would be good
but the problem then is you wouldn't get tab completion
I guess I'll have to do it myself
the hard way
So the tab completion will be different based on the type?
add it for default as well
Will do
Because if so that's possible with my framework using the completeFor annotation
ideally the completion for booster type would be [info, *allValidIdentifiers]
and then booster type info => allValidIdentifiers, booster type reward => rewardSubCommands
if that makes sense
Kinda xD
well identifier has to be a valid identifier obviously, so there's a finite set of possibilities there
so therefore the set of completions would be {info, allValidIdentifiers}
idk i'm confusing myself here
Can you show me two examples of possible commands? One for each
booster type info testbooster
booster type testbooster rewards list
where testbooster is a Booster with that as the identifier
So type will always be type?
guys any idea how i could make upload progress bar, i currently handle uploading in php since i have to store some data into SQL
like if i upload 2 files it just like timesout..
Oooh okok, hmm idk how that would be done then, can only think of a way which would be to complete both info and the testbooster together
yeah that's what I mean
so when you type booster type the options are like
info
testbooster
otherbooster
I mean if you're going with the inheritance way, ideally you would have a base command class with an execute and a suggest methods, for the suggestions you can just iterate through the children commands map calling suggest, if it's a static argument (a literal basically), well.. it would suggest the literal, if it's a non static argument, return whatever the argument should suggest
The idea is basically to delegate everything to the children commands
yeah that seems like a good idea
that website looks legit
@prisma wave bing in a nutshell 🙂
good news
according to my very not biased and fair benchmarks
elara is faster than julia
the numbers do not lie
most people would say Intellij
Eclipse 
@steel heart


KGB? KinderGartenBamboos
me to. But its poison.
Yeah but the google di framework
but for some reason I love poison 😦
Aa
U guys are high or what? Lul
M
Yeeee
agreed
Actually working way to write the properties 
@ocean quartz why shade jetbrains annotations in 🙃
@steel heart guice 10/10
@obtuse gale Thought it was needed, isn't that big to be noticeable so never payed much attention to it
Well at least it isn't as much as adventure making me add check-qual
but I can exclude that one >.>
@lavish notch use a .gitignore file
BRC did tell me to use that, but I just dismissed it out of sheer laziness at the time :P
what is it exactly?
marks files that should be ignored by git
eg your .idea folder
generally speaking things that aren't necessary to the build (ide files, compiled classes) should be ignored unless you have a specific reason to include them
Oh, yeah - I figured I didn't need to upload them but chose to anyway
If you're using IDEA, there's a plugin (.ignore iirc) that will generate ignore files for you
@lavish notch any reason Hastebin#post isn't a static 'util' method and instead requires a Hastebin object
also in your command class you have a lot of places where you do
if (sender instanceof Player) {
// do something
} else {
// error
}```
and I think a lot of them can be replaced with
```java
if (!(sender instanceof Player)) {
// error
return false;
}
// do something```
which will reduce a bit of the arrowish code there
theres probably other places where something similar could be done but its late and i need to sleep lol
Property writing with comments 
mf-config SOON™️?
Maybe, this is just really basic functionality so far
But got reading/writing with comments working
@surreal quarry Yeah... It just happens to be the way I've written it. Couldn't decide if I should group all sub-commands together, or all executors together
Or use mf commands and actually have shit organized 
I'm really dissatisfied with the way I'm doing loot tables for my aether generator
Idk what to do differently tho
@old wyvern What do you not like about my showcase?
Anyone clever got any idea on what would be the absolute fastest way to check if a character is in a set?
for some context, i'm currently using a map[rune]Struct{} (Map<Char, Boolean> effectively), but the function accessing the map is a massive hotspot, and so it's getting pretty slow
I considered multiple if statements but that seems to be even slower
I might be overthinking this but as you can see map access is taking up a HUGE proportion of the time
Conclure these doggo pics keep getting better
hmm I should switch to smtng helloweenier
halloweiner
lol
yo wtf
loop: while (true) {
if (ThreadLocalRandom.current().nextInt(2) == 0) break loop;
}
why has no one told me this :/
What the fuck is that hideous thing
tbf no idea
Yes
aahahah what
I am proud to announce that elara will never have those
elera mitten is typing...
hi
Considering rust
Go has let me down
what happened to Niall
Nvm
@heady birch rust ?
🤣
I am serious
Garbage collection is just too slow
Rust or C++ is the only viable option for maximum speed
I love me some c++
😕
It's a bit
old fashioned
elara deserves a modern language
Such as rust or Haskell
old fashioned
I disagree
C++ is constantly evolving
With each new standard bringing new features and capabilities without being bloated
auto 😐
Jokes aside I feel like Rust is more modern and has the benefit of memory safety
c++ hmm
I guess the ecosystem would come into play a bit
c# is superior
Absolutely not
watch your words
auto😐
what about it
it's kinda ugly
It gets evaluated at compile time
I know
like.. most of the language
But the word is ugly
pythons lambda though 
#define var auto
#define let auto
isn't that an anti pattern
lol yea for the most part
probably best to avoid it though
but if you want to go 100% safe you can
// includes
#define var auto
// your ugly code
#undef var
C++ would have more support + bigger ecosystem but so far we're not using any other libraries so probably not necessary
Lol
I think we've pushed Go to its limits in terms of performance
And the main reason to use it (concurrency) isn't really applicable for a parser
use elara to make elara
That would be nice
Although
If elara compiles to JVM, that would be a lot slower than our current thing 😕
😦
🙂
wait would it actually be slower lol?
yes
i mean 170~ microseconds is pretty speedy
By quite a lot I imagine
but we need speeder speed
we n e e d more speed
need f-
need for sp-
need for speed
national football society
😐
Well most notably is JVM startup times
It's a pretty significant difference - when running a Java / kotlin app it usually takes a few seconds to start whereas with native it's almost instant
ye, but after its startup time then jvm should be faster right
yeah but the JVM's performance also mutates over time, C++ is pretty much constant other than how lucky you get on the OS being nice on memory provision and.. temperature?
I'd guess negligibly slower in terms of performance but definitely using more memory
Yeah
JVM has its benefits but I wouldn't use it when performance is key
JNI 🌝
🤷
have u considered the option of using something lower level for elara 🌝
im not using assembly if that's what you're suggesting
🌝
🌚
no
now that would be nice
NO
i think it's time to try rust 🙂 🌚 🌝
have fun
fn main() {
println!("Hello, world!");
}``` im basically an expert already
semicolons though 😐
ew yuck
int main() {
printf("Hello, world!") ;
}
ew
semicolon?
let main => print "Hello World"
``` 🙂 👍
imagine not being able to write your entire software in a single line
👍
minified c++
let is starting to grow on me more and more
elara should add mutable methods :)
i liked it for variables, but not so much for functions. im starting to like it now tho
lmao
let mut?
yes
it's good
perfect even
more languages should adopt it
java 18:
- replaced
varwithlet
warning: it looks like you have an existing installation of Rust at:
warning: /usr/bin
🙂
zsh: command not found: rust
😕
elara should add mutable methods :)
@surreal quarry please explain
what
oh that was a joke
i dont think thats even possible
and if it is its a terrible idea
let mut main => print "Hello"
main = () => print "Hello2"
main()
//Hello2
``` 🙂
im sorry
yea that was the idea but its hideous and has no use case imo lol
anti pattern
we might end up using the mut for something different if it's a function
you know how kotlin has List and MutableList, in elara it would be 1 type but you need to do let mut list = blah if you want to call a mut method
Rust is modern alternative for all programming languages
And yet it has semicolon 😦
oh and then like you would make a let mut some-list-method and it would only work if the list was mutable?
yeah exactly
yeah thats a cool idea
a mut function requires a mut variable
why can i not install IJ ultimate through toolbox? im signed in with my account and everytime i press install it shows the checking symbol in top right and cancels
lmao
i just uninstalled it ultimate because it says "manually installed" at the top and looks disgusting
build from source
enable android plugin
android plugin
intellij knows
😨
duh... Just enable android plugin
looks like im manually installing ultimate again 😔
ill have to deal with the ugliness 😔
😦
Not very nice 😦
imagine actually having IIJ Ultimate.
Imagine
student pack 🙂
even tho i dont use any of its features
Gimme
duplicate detection
spring boot support
all the features from every other Jetbrains IDE
etc
database stuff from datagrip
some more enterprise shit that nobody uses
what is it even free
?
for students yes
IJ community is free
yes
and ultimate is free for students
github student pack
Like all students ?
Do I need to use my student mail xd
ye
i dont think you need to but it makes it easier for them lol
yes
all those things that are listed
ding boot >>
but yeah it's decent
it's either really easy or really hard when you've tried about 500 different annotations to get a simple thing to work
sounds like a usual day then 🙂
for gh student pack did you have to give your graduation date?
yea
yeah i think so
/usr/bin/cargo run --color=always --package elara-rust --bin elara-rust
Compiling elara-rust v0.1.0 (/home/alex/IdeaProjects/elara-rust)
Finished dev [unoptimized + debuginfo] target(s) in 0.43s
Running target/debug/elara-rust
Elara ran program in 0.02ns
🙂
that was quick
i forget but if i did then i lose it in like 7 months :(
true
Now I need to wait
jcenter is another mavenCentral repo type place right?
Approved Submitted Oct 26, 2020 Congrats! Your request for @normal talon was approved.
yeah @onyx loom
yea if you give your school email its really fast
they've got an open source repo of loads of schools
im pretty sure if someone has applied from ur school before then itll be faster as they dont have to check licenses or whatever, stuff like that
as its all setup before etc
yeah
Why didn't I head about this before
Spring boot is free always free
im sure niall is proud
he'd better be
@heady birch rust pub struct Lexer<'a> { input: &'a str, pos: usize } code review 🙂
i love it, u start a new language and u already working on the lexer
is your name going to be rust mitten ?
mackenzie the code isnt awful but the lack of .gitignore making the /build and /.idea/ file show up is wack also the fact you use uppercase characters in package names 
why not
lol
thanks

when will clojuremoon become a global emote built into discord
no nitro needed
we must make a business proposition to discord
Looking for useful libraries/frameworks?
Here are some which have been deemed useful by the community and are used daily.
-> Menus: https://mf.mattstudios.me/mf-gui/gui
-> Commands: https://mf.mattstudios.me/mf/mf-1/getting-started
-> Messages: https://mf.mattstudios.me/message/mf-msg
@Discord
?
@heady birch what is Sender
"clojuremoon"


Sender? Idk I havn't even used lifetimes in rust yet soo....`
lol
fake rust user 🙄
I think it's for channels
you have Sender for 1 thread and Recevier for another
also how have you not used lifetimes
they're unavoidable
literally the third line i wrote needed them
string: &'a str 😬
lol
Huh, didn't know you can't pass null on an annotation
probably because null is a pointer and not a value
you learn something new everyday
except if you're Blitz. If you're blitz you never learn anything
maven { url 'http://repo.extendedclip.com/content/repositories/placeholderapi' }
or
url 'http://repo.extendedclip.com/content/repositories/placeholderapi'
}```
which is better
I am better
👀
thats just discord
that means you are worse?
no u!
If you were to participate in a losers competition, you would end up second and not first
Because you are a loser
ye and you first because you are the best at being a looser.
BLITZ
STDU
Jcjeibf
Do you even gleek?
Thought so
sup
lol the java
wdym by "enough"?
I mean that's a calculation, yes lol
wdym
Also, wouldn't the damage be dictated by the event?
I don't think you should return an int instead 
Or
You are returning the input tho
strength
It should return void
And the final damage would be the one you set in the event
public static int setDamage(int strength, int damage, EntityDamageByEntityEvent e) {
e.setDamage(e.getDamage() * damage / 2.1 * strength);
return strength;
}
@obtuse gale Static util for this?
Would it be much simpler for this to be a private method in the listener and instead of passing the event you do like event.setDamage(getDamage(strength, damage))? Seems like a weird method
that method seems to belong more to an instance
I mean it is a method
Yeah
@obtuse gale

I love you too
Conclure u suck
no u
If a method is only used by one class (this one for example it makes no sense to be used more than that) just make it a private method
You gave up on build battle cause you knew you were gonna get rocked
nah I had english lesson
Ofc ofc
ye u booboo
Tell the teacher to fuck off and be done with it
dude you're just pissed cuz I won first round without even trying :p
@prisma wave



