#dev-general
1 messages · Page 255 of 1
?
microseconds
So thats just like a open block now
yugi that is horrible
this is why you always brace your ifs, kids
the lexer is exceedingly fast
partly because it's the simplest bit
but also i wasted loads of time optimising it
🙄
i think theres something on the elara gh u can download or smth
fuck this
the release is very outdated
o
clone the GH repo, and you need go installed
fix it then 😠
cba
fair enough
no point when only 60% works
yes
nice
i can build a windows binary if you really want
but it's probably easier to just do it yourself
And the elara gang grows even further
pin this
https://github.com/ElaraLang/elara-stdlib feel free to contribute to this too
it's kinda basic atm
❤️
Oh the assembly loop problem from aoc had a non-brute force soln
oh really?
yea
its called the turtle and bunny algorithmn I think
Several algorithms for finding cycles quickly and with little memory are known. Robert W. Floyd's tortoise and hare algorithm moves two pointers at different speeds through the sequence of values until they both point to equal values. Alternatively, Brent's algorithm is based on the idea of exponential search.
oh that makes sense
if you've got go installed, open a cmd, go into the folder and then you do go run cli.go elara.elr
or another file
but it's easiest to just edit elara.elr
yeah
ok, what should i do now?
continue to optimise even though it really doesn't need it
add structs again
yeah give it a second, it depends on a few libraries
add structs again
discord being good?
okey
Welcome to the Elara life
o
yeah it is again
That is some damn delay
takes like 10 seconds to send messages
yup
🙄
what
if field.Default != nil
Default = nil
??
what's the contents of that folder
and inside that?
it looks ok
so idk why that's not working
o ok that's outdated
probably because it's using the old release 🙄
nice
extract this in
nice
it should
you should just be able to run it now
and it works
i hope
;-;
idk
that means it's working
you said you wanted to play around
so
¯_(ツ)_/¯
make a new .elr file and pass that, or just edit elara.elr
the latter is what we do
is it possible to convert a jar into exe 😛 just curious
I doubt it
how did you find taht so quickly
Is it that hard to google dkim?
hot
Like u
yes
Googling is a skill
try running what?
especially when my computer is so laggy
building what
how would you do that
as far as IJ is concerned, it's just a text file
yes
is it possible to change default build.gradle?
or make some kind of plugin to do so
neither, it's a programming language
So it's female
lol
It's free lol
why 1.8.8
how tf would i add capes
1.8.9 ftw
shut up, I will add support for more versions soon
is it possible to change default build.gradle?
or make some kind of plugin to do so
I can't find anything on google
enum class Sex(val name: String) {
MALE("Male")
//etc
}```
or
change it to what dkim
how do I make a plugin like mc dev?
that's an intellij plugin
ik, but do u know any tutorials
jetbrains probably has one
👀
not off the top of my head tho
i mean, it's their software + api, there's definitely documentation at least
k thx ill take a look at it in a few horus 😄
k thx ill take a look at it in a few hours 😄
is mc dev open source
yes
I kinda want to just copy it but change the build.gradle 🤣
but what's the difference
wdym
what's different about yours
build.gradle also i gtg so ping me if u say anything to me
u dont
you don't need getters
?
what i mean is
just make a field or 'property' in kotlin
it will sometimes convert wrong or not at all but mostly it will work
lol
also did u use === or was that ij?
this is disgusting
if (human.gender === Gender.FEMALE) {
worst thing ive ever seen
so?
It's disgusting
enums can still be compared using ==
that whole thing is bad
but this is just horrifying val name2 = Character.toString(Character.toUpperCase(name[0]))
that's definitely the worst part
thats what u did?
disgusting
name[0].toUpperCase()
then toString if u need it a string
question
nvm
sure
return name2 + name or return "$name2$name"
second looks messy
probably the only time where concat actually looks good in kotlin 🥲
🥲
AbstractGenderSupplierFactoryFactoryGenerator
MainKt != Main.kt
😐
Show your main
Pretty sure it's because of args, depending on how you create your project JVM will required the args to detect main
fun main(args: Array<String>)
How do modules work? Can someone pls breifly explain
also kaliber how do you react so quickly?!
Oh
I see you have Gender in there, you better have all 60+ genders in that enum
Hell yeah
Damn
I prefer passive aggressive wishes
What u want to know about em?
stack overflow 😔
one joke
basically what it is
Pretty sure BM can come up with a good WoT
and how it works
toString(Any) calls util.Stringify(interface{}) which calls Stringable.String() which calls toString() 😔
how
ok im confused now
should toString be natively implemented or language feature part of stdlib?
Efe my guy, chill
how do you react so quick-
Not about being hard, it's spammy
its hard when ur discord is so laggy
get a better pc pls
bump
o
you know discord actually ip bans for reaction spam automatically at some point
stdlib
since atm there's no way of checking types lol
so i can't do if blah is Int
i think it has to be native for now
if Int is blah
null!!
return "$this"
right thanks for that
*interpreter.Instance: &{%!s(*interpreter.StructType=&{Person [{name 0xc0000551f0 0 <nil>} {age 0xc000055210 0 <nil>}] map[age:1 name:0] 0xc0002533c0}) map[age:50 (Int) name:Dave (String)]}
that's long
<nil>
nil
nichts 😳

works
USA best because english > german
Yo that’s nice
Kung Fury
wut is dis
dave factory
elara
XD
6'10
daveMachine, abusing Dave!?
👀
I'm in Berlin rn
ugh need int ranges
1..10
etc
yugi hasn't added them yet
so
🥲
we'll have to do it the hard way
how do you build a jar if you're not using gradle or maven? xD
Ant user :/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
upvote dave factory
How much for each dave?
That execution is slow BM
im saying u should add a jvm compiler 😔
yeetus
elara plugins 😔
I think we are getting close to the optimisation limit
Im not sure how much else is possible at this point
Even tho diminishing
until u find out that Go has a .sonic() function that automatically optimises everything
maybe elara should have this
Elara has checked and unchecked exceptions ?
but for now we're just panicking since all the errors are coming from native code
Yea they are cool
BM how hard do you think it'd be to make it compile to JVM?
I’m excited
tricky but not impossible
at the moment the 2 things holding us back are:
No typer
None of us know enough about the bytecode format
Compiler seems pretty complicated to make
i would come to isle of wight myself and salute u if u do so
If it’s hard for BM then it’s next to impossible
LMAO
i'll quote that
bet
well im just guessing
ok see you there
Hmm I will be the first ever developer to add flexible elara support
no me
o
o
pog
we need to be pumping out daves as fast as possible
we need to be pumping out daves as fast as possible
we need to be pumping out daves as fast as possible
not sure if a compiler is the best idea as long as the language is in this experimental state 😛
ugh discord dying again
that's another reason
need to make sure it's all possible / working
ah ok i thought that was just me
BM I honestly am looking forward to making a plugin in Elara
BM I honestly am looking forward to making a plugin in Elara
ah ok i thought that was just me
i feel like were pressuring u too much 🤣
man whyd they change the gun emoji in discord
before it was like a magnum or smth, was really cool
now we have a water gun kek
apple changed it ages ago
discord just uses twemoji
Lmao
they took this from us 😡
Like this just doesn't seem right now..
😔🔫
That's a good thing
Oh don't get me started
About hating myself, not the procrastinating part, I'm hella productive
I have an assignment due the day after tomorrow and I can't bring myself to start working on it
Yeah great nobody will care
Someone familiar with residence plugin check minecraft channel please? 🙂
Nein
At school it usually wasn't a big problem because at least I understood the material so I didn't feel bad for not working on it
but this is different
Same 😦
I need to get a total of 50% in all of the upcoming assignments
And I can't risk missing one tbh
2.5/16 on the last one 😂 🔫
fookin lazer sights
too much recursion 😩
not enough recursion 
variable lookup is 20% of the total execution time
there was more
i cropped the screenshot
im genuinely not sure what i can do here
Procrastinating but did manage to make a nice private messages system
hot
nevermind i think i found how to do it, string hashing is slow
cache the hashes
:))
ez
What's next, cache the hash cache?
obviously
well
after some big refactors
im pleased to announce it made pretty much no difference
piss
piss
golden rain
yellow piss 😬
why on earth would google, on guava, make a builder (threadfactorybuilder) that you have to instantiate with new instead of getting a new one from a static method like builder like, y'know, literally every builder there is on guava
🌝
you're listening to spitofon
yo @ocean quartz just a random thing. add support for /msg from console. k. bye
I have
[22:45:28 INFO]: Player is offline.
Error spam in console anyone got any clue why this happening?
I guess there is somehting broken that is trying to find a player and then throws that message. Anyone have ever experienced this?
very cool dave factory @prisma wave
make one ...
just get it LMAO
ye... just learn smh
Why thank you
It's a bit slow
Thats just cause dave is a bit slow
it would be even slower
also wont compiling increase speed
when that gets added
probably
Actually definitely
The main thing slowing it down right now is that things like variables have to be looked up by name
Which can be a very slow process because of recursion, imports etc
I've tried to cache it as much as possible
But I'm not sure I can do much more
wdym by name like it has to look through the file for where its declared?
or i guess the AST maybe
let me find an example
let recursiveLoop(Int current, Int total, (Int) => Unit fun) => {
if current == total {
return
}
//blah
}
``` every time this is executed, and because it's recursive, that's pretty often, it has to look through the current "context" to find what `current` and `total` are.
With a compiler we could optimise it to something much cleverer, but at the moment it has to search by name
which is slow
and for some reason, this doesn't want to cache
we're getting there
nice
Oof that sounds harder than it should
Papi can't parse console right?
private msg
well it can parse null
I think
but not console
only player offlineplayer and null
as long as those placeholders accept those types tho
well just custom placeholders and a custom format for that I guess
is the easiest option
it has 54 downloads in about a year
o
but idek why i posted that, i didnt even know java at the time
its just a welcome message haha
I have 3 plugins on spigot. 114, 88 and 65 downloads
gg no re
I legit don't know how my first plugin got 124k downloads
the fu-
148, 76, 14 lol
what was it?
is that Citizens-CMD?
Yeah
its good..
ah that makes sense
well for what it does
The code is so bad though
dk if its good as in code
i have citizenscmd on my system so yeet
well it doesn't fucking matter on spigot lmaoo... ChatControl had like 600k downloads
I wrote it on my first year out of school, i had no idea how to code properly lmao
and like 7k 5star reviewes
My first plugin has 2k downloads over the course of 10 months in total and it's absolute shit
🤷
we don't know of any other incidents from him @drowsy raven
if he did scam he probably would've been banned by now
y'all making good plugins and im making a welcome message
ok!
in here I mean
were can i find his vouches??
good as in they do stuff. not as in nice and good code
yeah lol
i suggest you purchase high quality products from me in future 🙂
I've done so many cool things that never became an actual plugin kek
if hes from #794429921803763793 thats just a channel where people can post their stuff. its not really a formal thing
ugh we don't have a vouch system here. best is if they have their own on spigot or something
like github
idk
NewPicture it will be abused so don't think that's going to be added but its not my call so you never know
oko doki
I remember there was review-my-server and that was abused as well and removed
oh nvm i just recive my product
im gonna learn kotlin before i start my next project yeet
hes legit
make a bunch of small plugins, then get famous by random chance, and publish an improved amalgamation of these as a premium plugin
simple
🙂
jk thats dumb
I love the requests, "high detail", "with all this and that", budget: $25 lmao
#794429922454142986 message
I mean he can probably find one for like 40 but that's not exclusive
£25 is like 2 coffees in london
or whatever its called
1 Coffee in the airport
had enough
haha yeah
the dave factory cannot become any faster
Bm be like go func() { yourself() }
0.1 nanoseconds
maybe
SO much recursion
i have a plan
get rid of the recursion
"immutability function purity " who care
s
let mut everywhere
sick of this
Uh trusted is the mod role xD
YEAH thats right you filthy
not putting UP with this any moree
4.6ms
bnetter
still not good
2107us for times(Any[], Int) => Any
found the culprit
too slow
Bruh me sitting and trying to figure out why var doesn’t work, used it as a field. I fucking reinstalled jdk and IntelliJ
NICE
Kotlin > java I say no more
if you loved that one you'll love the one that just got posted
lmaoo
NICE
its quite unpredicatable but ive managed to get it as low as 1.6ms
CRAZY
no factoryfactrory
Hell yeah
HALVED the average execution time
if that
6.98ms average to 2.59ms average
BUT WHy stop there?
500 daves?
Int.MAX_VALUE daves
lets try
i think it will stackoverflow
it's still not ready for something that powerful
oh
either the OS or go just sigkills it after a while
lol
that was underwhelming
100000 daves takes just over 1 minute
What is the difference between the Bukkit and Adventure in MF-MSG? All it says is:
Which allows you to use the lib on many other platforms and has all the benefits of using Adventure.
but what is "many other platforms"
oh boy, i made the mistake of comparing elara with python... it's not good... the dave factory in python takes approximately 0.1ms whereas elara takes 1.7
😦
👀
u mean 18x faster? elara fastest language 🙂
how long does dave factory take in jvm
then measure it
🙄
im guessing a lot faster
print(executionTime - executionTime) Wow Elara is basically instant, 0ns execution time
omg
incredible!
they've clearly done some good optimisations!
ok this cant be right
this is a really rubbish benchmark but JVM (kotlin) is 16ms?
elara faster than kotlin?!?!!?!
haha that must be wrong
BM is better than all of jet brains at making a language haha
apparently so
Would you believe it I managed to solve a couple of exercises
Closing Discord was a brilliant idea
Nice lol
No idea for the next proof tho
jvm startup potentially?
I don't think so, I was only measuring the time it took to create the Daves, not everything else
Oh
Unless it was because I used a Kotlin script
Maybe they're partially interpreted or something
Quick question can you do json messages on essentials .propierties file?
No
😕
I wanted to change /baltop into json for like go to "click to go to page 2" or something like that
Anyone know a good framework or a semi stable Particle effects class? (1.16 + supported)
I could text command it with placeholders but baltop placeholders aint a thing
"stable"?
Yes
what do you mean by stable?
how do you define stability?
dark magic
please teach me
see that weird arrow which goes down to this line thingy on the top right?
Yeah click on it
now drag it to 100 other servers
what the fuck
fuck the what
Why noone DMing about commissions, what's this heckery
@wheat spire I cannot invite you.. + you dont accept friend requests lol
@tranquil crane U need jesus
lmaooo
making examples for my gui library
- also adding animated gradient support to hexutils
= complete madness
Could use leather armor to get full RGB on items lol
you have sealed your fate
it shall be done.
need to get animated gradients working first but it will be done
@half harness just checked my vps, the fake requests thing had finally stopped lmao
it was on 10 thousand requests
looks like they took the website down or blocked my IP lol
yeah same
and then forgot about it
i completely forgot it was still going
xD
🙂
😮 This discord removed kotlin channel (well I think it's kotlin channel) ¯_(ツ)_/¯
🤣
(note: above is an image)
what discord is this
no idea what that is
this discord must be deleted post-haste
helpchat ripoff
obviously
inv pls
^
^^
found it
NOOOOO
inv on this page https://github.com/Bcof1/CortextElefant
hi there
Hi intellectual guy
hi there
hi there
I need a kit plugin that works with placeholderapi please help
been looking for days
um
LMAO
i forgot about that
essentials kits ?

😮
KOTLIN
IntelliJ sucks, Kotlin is Trash, Maven is 10 times better than Gradle, also....
crusade time
yes
well to begin let's look at this sentence "Kotlin is Trash"
This is first and foremost, objectively untrue. to find out why, we must look back to kotlin's origins - It was made by JetBrains and designed by Andrey Breslav to replace Java for their IDEs, to speed up development time and reduce maintenance
now the only thing that one could use to back up this claim is the lack of tuples in kotlin
this is obviously a huge issue
as all good languages have some sort of tuple analogy
well to begin let's look at this sentence "Kotlin is Trash"
This is first and foremost, objectively untrue. to find out why, we must look back to kotlin's origins - It was made by JetBrains and designed by Andrey Breslav to replace Java for their IDEs, to speed up development time and reduce maintenance
Thats a good point
clojure has lists with little noise and overhead, rust, elara, haskell etc have list literals, and python has... tuples
so, what was Andrey and his goons thinking?
clearly not much
however, fun fact, Kotlin did originally have tuples! they were designed with an absolutely awful syntax though, looking something like this #(1, 2, 3)
so it does
i forgot about that
even better!
rust is now the best language ever made
does not having tuples make kotlin trash tho 🤔
BM btw what’s the point of using an empty object array Object[0] as your lock instead of the instance itself or just a new Object instance?
objectively
o
im not qualified to answer that question
now, if you're an intelligent person like me, you may be noticing that Kotlin tuples looked very similar to Clojure's lambda expressions! Because clojure doesn't have native currying (as far as I know, bit of an oversight on Rich Hickey's part but im sure he had a good reason), we must often define lambda expressions
these are defined like so - #(function param1 %), where % is the equivalent of kotlin's it
looks awfully similar to Kotlin tuples, no?
so where am i going with this?
well, let's compare the 2 languages. Kotlin is very widely used, and very circlejerky. Sounds awfully similar to Clojure... Could it be that these are in fact the same language?
Hmm okay I looked it up, fewer bytecode instructions
peepoHmm
It doesn’t have to invoke the constructor or smtng
well, let's compare the 2 languages. Kotlin is very widely used, and very circlejerky. Sounds awfully similar to Clojure... Could it be that these are in fact the same language?
(absolutely (FUCKING (not)))
Now I know what you're thinking, "that's ridiculous!". But hear me out:
Rich Hickey is the designer of clojure and the Benevolent Dictator for Life. Rich Hickey is 2 words.
Andrey Breslav was the original head designer of Kotlin. His name is also 2 words.
And trust me, it gets worse
:what:
The new lead designer of Kotlin, roman elizarov, also has 2 words in his name
it's becoming pretty obvious that these are in fact all the same person!
Clojure and Kotlin also both run on the JVM, perhaps because Rich/Andrey/Roman all knew how to make a JVM compiler from designing their previous language!
and just to make things even worse, both languages also have a flavour of the language that compiles to JavaScript
surely you can see that this isn't a coincidence?
man ur really good at getting xp
thank you
i hope it was worth it
feel free to put in requests about other languages
please tell me how to talk such nonsense
Fuck it has to do with serialization as well. Object[] is Serializable and Object isn’t apparently.
Yeah you suck
No u
*hands suggestion over*
thanks
coming up next, "is haskell just python with different naming conventions?"
Ok, to begin, what's the point of this? You might be thinking that Haskell and Python are completely different languages, with completely different paradigms
you would be incorrect.
Haskell is simply python with slightly different conventions
yeet
I am a professional Haskell, Python and Skript developer and I can confirm that they are all the exact same language with different names.
great!
ok, to begin, let's look at how both languages execute code
Both languages execute code by simply reading down the file and executing each line sequentially. Neither (apart from python kind of) have any analogy of a "main method"
K
This is similarity number one
both assumptions are wrong 
what ?
excuse me are u objecting this man?
these statements are all factual.
so, let's look at some practical examples. How do we define variables in both of these languages? the answer? It's the exact same!
Python: ```python
name = "Dave"
Haskell: ```haskell
name = "Dave"
The similarities are becoming obvious immediately
omg
Confirmed via CERN using the hadron collider itself
these languages copied each other!
They are very clearly the exact same. Anyone who would disagree is insane, clearly.
clearly.
clearly.
evidently.
frankly.
thusly.
Wanna know what Armstrong found on the moon?
absolutely.
performance enhancing drugs
moon stuff?
Yea I do too
Not moon stuff?
Maybe
armstrong found gfuel on the moon? 🤨
Very probable ^
what next? well, the obvious next step is functions. now functions are a little bit less obvious. let's make a simple printing function in both languages:
printInfo age name = putStrLn (name ++ " is " ++ (show age) ++ " years old")
def printInfo(age, name): print(name, "is", age, "years old")
now, these are in fact completely different
but hear me out!
what next? well, the obvious next step is functions. now functions are a little bit less obvious. let's make a simple printing function in both languages:
printInfo age name = putStrLn (name ++ " is " ++ (show age) ++ " years old")
def printInfo(age, name): print(name, "is", age, "years old")
now, these are in fact completely different
but hear me out!
im waiting yugi
we can slightly adjust the haskell code to look slightly more like python:
im hearing you out
:yugi:🔫
💀
printInfo(age name)= putStrLn(blah)
this is already looking better! and of course, haskell only requires (show age) because its Int type can't be implicitly converted to a String
that is quite the same
python = haskell confirmed
we could also adjust the python, ```python
printInfo = lambda age, name: print(blah)
now i am not an expert on either language, but i am 100% confident that we could make these look the exact same
what this means, is that haskell and python are simply the same language with different conventions
you want further proof? let's look deeper
The haskell compiler translates Haskell into C, assembly, LLVM bitcode and other formats
there's also a python tool to do this known as Cython!
so therefore both languages can be compiled
outstanding!
damn thats crazy
now you might be wondering, if haskell is a functional language, then it wouldn't have classes, mutability, self, etc would it?
you would be correct, but it turns out that none of these are necessary in python either!
as Alan Turing proved in 1963, any programming problem is possible to solve without classes and mutability and python
therefore, i think the conclusion is pretty obvious
u know all languages are the same? this may sound crazy but hear me out:
haskell and python are in fact, the same language
@obtuse gale stop crossposting
You said the same thing in #off-topic
lmfao
We are all in the same server stop crossposting
all languages allow the user to write code, which can then be executed, allowing people to create programs!
therefore, all languages are the same!
The pinnacle of programming
you seem like you know what you're talking about!
Can someone write me a skript program
do u want a harvard scholarship
yes please!
i was gonna apply for one with my clojlin theories but i think you'd be a better candidate
(clo(jlin)) as String
J
code review please
Bukkit.getPlayer(args[0]) ?: null```
doesnt work
james that is amazing
var player *Player
player = Bukkit.GetPlayer(args[0])
if player == nil {
panic("player is nil")
}```
people may say ur wasting 7 characters, making something null when handling the nullability, however, explicitly typing that this can be null can be very useful for people to see nullability in code!
no public in Go 
exactly it improves readablility so much
thats not what i was worried about
absolutely!
more worried about CamelCase method names
Go uses names as access modifiers though:
UpperCamelCase is public, accessible anywhere
lowerCamelCase is internal / package private, only accessible in the current module
ikr
bruh
cortex is aids
No it’s worse
ive just spent like 2 hours trying to explain why kotlin doesn't compile to java
holy shit
that was such a waste of time
😂
😂
where why
His final argument was "I dont consider kotlin a language"
link
🤣
Yep he elaborated so sophisticatedly and elegant why kotlin is bad and why java is significantly better.
what discord?
Probably not allowed to say coz that would be advert
dm pls
lol
Its in here
i want link
it's a cesspit
oh
spigot discord is better
at least they're somewhat intelligent in the spigot discord
how tf does a discord based on an actually good Java tutorial have so many idiots
jesus christ
kotlin > java
