#dev-general
1 messages ยท Page 186 of 1
๐
then we got the functional api
Any reason you're comparing getClass().getSimpleName() instead of the class itself?
different classloader? or
just a gues
I don't know why i'm doing that
oh lol
old code
Spigot classloader + papi
don't assume there's any logical reason behind any of that code
I couldnt unload my listeners in expansion comparing class
final CompletableFuture<DbRow> row = getter().location()
.key("name")
.value("PiggyPiglet")
.build()
.build().get();```
(2 .builds are intentional, we're building the location, then the getter) anyway we got the functional api
then ofc the orm at the end, which is self explanatory, no code example needed
val row = getter().location()
.key("name")
.value("PiggyPiglet")
.build()
.build()
```noice
Mine more of eliminates sql queries
that's actually quite nice
you need another .build()
why?
because you're building the location, then the getter
๐ค
also why have you got .get there when your type is CompletableFuture
.exists() = self explanatory
I'll take that into account when I rewrite the entire piece of shit
or one() / all()
yeah
Kotlin uses single (and singleOrNull, but Kotlin has proper nullability so yeah), and then all
jerk
Circle
also got RowCreator, RowDeleter, and RowEditor which have similar apis
DAE kotlin good???
okay I am claiming the title of King Circle (Jerk) II now
not on my watch
๐ฆ
one can circlejerk without talking about kotlin
DAE?
wat DAE?
does anyone else
Elara > Kotlin
what is DAE
And thats a fact
does anyone else
ah okay
Elara > Go > Clojure > Kotlin > Java > idk something else
DAE kotlin good???
yis
Bm
anyone who disagrees with me is wrong
I got another idea
oh?
#private
Skript > Elara > Go > Clojure > Kotlin > Java > idk something else
yeah tbh
Skript/XML/Python > Elara > Go > Clojure > Kotlin > Java > idk something else
wat
Skript?!?!?!?! XML?!?!?!?!
Python is good but doesn't deserve to be there
Skript isn't even a programming language, it's a shameful excuse for a scripting language
What are you smoking Piggy
and XML is a markup language
oh woops the symbols are the wrong way
Skript/XML/Python < Elara < Go < Clojure < Kotlin < Java < idk something else
he's gonna say Java better than Kotlin because he gae
there we go
damn
well i can call it bad because it still uses let
๐
Java !< Kotlin
dude you're shooting yourself in the foot by using let, think about the big picture
what big picture
like employers in the future are gonna be looking at this shit
and they're gonna say
lmao
Wha
oh damn
๐
:kek:
leaf
๐ ๐ ๐ ๐
left
lefarl a = 5```
lefarl it is
Holy shit I'm dumb
culmination of let, def, var and val
lefarl lmao
Everyone wins
no
what about the C based languages
you could use something that makes more sense like create lol
they're stupid and ancient
lefarl [Type] name = value
๐
that's horrible
it's not
it's great
this is the sign of a mature and polished language
lefarl is modern
lefarl is horrible
Lefarl it is
why
it's honestly a trendsetter
it's concise, easy to type, has VERY clear meaning
๐ค
i can't see anything wrong with lefarl

bm please make a flag that makes lefarl a real thing
i'm using lefarl in all my pseudocode from now on
elarac file.el --piggy-mode
I've always wanted to make things like the basic Collections and stuff
hash table implementations are fun
please can I do the stdlib
implementing algorithms and shit
you can contribute
yay
once we get that far
probably gonna try and figure out how to do Persistent Data Structures though
we gotta write a working compiler and possibly runtime yet (if native code needs a runtime or if we want to use our own platform)
and a working parser
it's a jvm language, no?
ยฏ_(ใ)_/ยฏ
maybe
haven't really decided yet
gonna keep it interpreted at first
easier to test
We have most of it converted to Go now
๐
if we use the JVM, we get maximum portability and interoperability, but then again, the JVM really punches above its weight
I think we can make it transpile to any language
like it uses more resources than it should a mere 99% of the time
erm
My hatred for manual exception unwinding constantly grows
Elara/Clojure, Elara/Python, Elara/Skript
for what the jvm does, it's probably as efficient as it can be
etc
I guess we could use JNI to get it evaluated on JVM maybe?
we'll cross that bridge when we come to it
isn't jni slow?
Elara for .net when
like really slow
Im not really sure pig
Apparently LLVM is very tricky to learn so native might be a later addition
Havent had to use it yet
@ocean quartz very very soon
Noice

VBScript
Im not going back to that shithole
cube is proficient in vb
๐
interpreter?
is that really something to be proud of though?
I thought it was compiled
it will be
actually, why not both
but for now making an interpreter is infinitely easier
yeah
interpreter for REPL + development
Mhm
compiler for deploying
What are you guys working on
a language
"how to install OpenEDK8 working 2020"
a programming language @obtuse gale
lel

Oh
๐ถ๏ธ
oof
Guides these days
Aj3douglases these days
Itโs a custom status ahaha
yeah that's what they all say
no way?
not falling for that one anymore
Game guide
Its a practical guide

that fingerguns emoji is horiffic
Itโs in vr as well
it's a guide, as in a person, who walks you through the steps
๐
It is local multiplayer 28r

๐ค
LAN server
it's only a demo though, so maximum of 3 minutes
that's enough for newbies anyway though
=ping
โข Replied in 24ms.
โข API Ping is 38ms
@quiet depot,
=unlock <#channel>
wat
Hi barry
=help
Various Commands for Barry.
โข General Bot/Guild Commands
โข Miscellaneous Commands
โข XP and Level Commands
โข ChatReaction Help
Various Commands for Barry.
โข General Bot/Guild Commands
โข Miscellaneous Commands
โข XP and Level Commands
โข ChatReaction Help
๐ฅต
wtf is that emoji
F# is eh, nothing hits home like a C#
burn it
C# ftw
Night all
afternoon
Evening
no
this is the only time im motivated to work on sometihng
if i dont do it now ill never do it
work on what?
discord bot
Discord bots ez with Spring
plus its only 1.25
discord botz ez with rpf
discord bots ez
yeah but does RPF have proper Kotlin support? has RPF been around for years and is it trusted by loads of massive enterprises?
werent you going to sleep @quiet depot ?
ye gaby
@jovial warren no but it excels in one thing that spring doesn't
it actually has jda support
what
ok i rest my case gn people
it's not good unless it supports Elara Kotlin Go Clojure C++ C-- C# F Java Jython Odin and COBOL
actually ignore Odin
idk who'd want to support that
wait
yeah but it's filled with disgusting utility classes
there's nothing wrong with utility classes in java
I vote for Pig to write rpf in Elara when its usable
i concur
not possible
it is now
there's nothing wrong with utility classes in java
in Java, no
different paradigms
Yes
we will revolutionise reflection
but I said, Spring has Kotlin support
Yes
if elara ends up on the jvm, then maybe
maybe
and Kotlin better https://tenor.com/upk7.gif
it's not even reflection project framework anymore bm
oh
it's real pretty framework
lol
๐
I'd rather do jvm than try and figure out how Native works so
your wish might come true
Same but I do wish to at some point figure out how to compile to native
Maybe not a runtime GC
actually no it does it's just done internally I think
actually no it does it's just done internally I think ??
EJB
but i don't have a mac or iphone so i couldn't even try out the multiplatform stuff
need regex help
wat EJB?
one anything inbetween here should be picked up two anything inbetween one and two
@jovial warren what gc are you on about
Enterprise java beans
lol
one test this two test this would be picked up
one(.+)two might work but probably not
thing anything in here anotherThing
you'll need a lookahead i guess
Native required manual memory management
Go and stuff just adds its own gc to your compiled output
good old Go strikes again
fantastic design decision
unparalleled
not even James Gosling could've thought of that
we gotta make an IJ plugin so we can get syntax highlighting as well
Rust
good thing we've tightly coupled the parser to the runtime
it picks up the one and `two as well
๐
one(.*)two works for me
I mean its still fixable bm ๐
and so does one(.+)two
Plus Go version does not include that
๐ค
^
is that a regex for infix functions?
should probably refactor everything to be separate executables or something soon
There is no regex for infixes bard
wdym?
should probably refactor everything to be separate executables or something soon true true
^ wdym?
Findinf infix calls is the parsers responsibility
regex based parsers bad
At that point we arent working with context free grammer
I just want anything in between the two
and struct?
One anything here gets picked up two
You havent ever used structs?
how does one make classes?
you don't
or interfaces?
it's not object oriented
There is no class
Typing is diff as well
that picks up one BM
Composition over inheritance
is OOP optional like in Kotlin
@obtuse gale second group
Plus typing is contract based in elara
OOP is not idiomatic to Elara but it's possible
is OOP optional like in Kotlin```
What?
the second capturing group will be the stuff in between
well won't the stdlib need OOP? or we designing this stdlib a bit like Python's builtins
it's functional
wait so do i use that as the regex or
it'll all be functional based
one(.+)(?=two) do i use that or not lol
We do have structs bard
@obtuse gale yes
And remember, functions are first class here
then how do i get it to not get one
wdym first class?
struct Person {
String name
mut Int age
}
extend Person {
struct Student {
Topic major
}
}```
here Student is effectively a "sub-class" of Person, but it's not really
higher order
Structs can hold both field functions and extension functions
first class types
wdym first class? they are a datatype rather than a instruction defenition
https://img.bristermitten.me/chrome_8xhAeiqHtm.png @obtuse gale nvm use this
wait what is String name?
oki ty
How have you never seen a struct
they can't have methods
that looks an awful lot like you added Java's way of defining interface thingys
I thought you have tried C and C++
no but Java is the only language where I've actually used interfaces lol
what do interfaces have to do with this lol
There are no interfaces
yeah true
well technically every type is an interface
idk whether I like the idea of it being functional but hey, I guess I'll roll with it
functional programming good
I mean its good if a programming langauge isn't pure functional right?
Altho it isnt real OOP
it's not purely functional or purely OOP
it can be pretty much any paradigm, functional is just the most idiomatic
yh
mhm
yeah functional programming looks like a good idea, but you can have too much
Structs can easily replicate objects with extension syntax, which is the most idiomatic way of adding functionality to structs:
String name mut Int age } extend Person { let celebrate-birthday = () => { print "Happy Birthday " + name + "!" age += 1 } } ``` from here we can do somePerson.celebrate-birthday() as if it was a method. The extend syntax works with any type and can be done from any file
you can replicate objects with the extend syntax
do OOP types support generics?
What?
haven't decided yet
struct Collection<E>
```e.g.
Yes I guess
mutability bad
it's an example Niall
with jda if we just keep using .queue { } wont that just lead to arrow code?
mutability bad
Make a new person lol
yes @obtuse gale
Good idea
anything i can do to stop that
coroutines
It can with a few extension functions
Do y'all know the feeling when you spend 10 hours making a plugin without testing and it works
Cause me neither 
actually it's not jda-reactor you want, it's jda-ktx
struct Living {
alive = true
die => alive = false
}
extend Living {
struct Human {
String name
mut Int age
}
struct Tree {
String idk-Species
mut Int age
}
}
let dummy = Human {
name = "Joe"
age = 152623
}
dummy.die()
this print dummy.alive
@hot hull did it work first time?
Cause me neither
wow
๐
rust
Just the minor things which I keep fucking up, even though I know they're wrong smh
Elara is very syntactically similar to rust, just not ugly
var returnValue = false
val discord = guild.retrieveMemberById(teamMember.discordId).queue{member->
returnValue = member.roles.any{ it.name == ticketType}
}
return returnValue```
A) I feel like this can be simplified ALOT
B) Is this how .any works? I want it to return true if the member has a role that has the same name as `ticketType`
so you've kinda combined Rust with some Kotlin thingys
more from F#
Aj, optionals 
you're mixing blocking and non-blocking code
o
returnValue will always be false
@obtuse gale it will return true if the predicate matches any of the elements
coroutines, completablefutures, etc
ehh
any sort of concurrency pattern
or i could just .complete 
but thats bad isnt it?
how would one use coroutines, that seems fancy
or too complicated for this?
https://img.bristermitten.me/Discord_ywn88BWHBP.png @old wyvern methods?
complete won't block
coroutines are simple enough
mostly
until they're not
not exactly methods but since fields can take any type thats pretty much possible
Our current impl just checks for a expression after the def on struct fields for default values
Should probably have it start from Or tho
Or?
no complete is blocking afaik
Yea from the grammer order
assignments come first
since it makes the Future complete
right below it was logicalOr
hm
im thinking making the method take a callback would just be easier
yea i guess
is that how .any { } works tho?
yes
alright
nice spelling
that method can be a one liner now :))
nested lambdas :]
no
smh @ocean quartz
Caused by: java.lang.IllegalStateException: Cannot get plugin for class io.alerium.supportercodes.libs.mf-utilsgui.gui.guis.BaseGui from a static initializer
What, how did you even get that?
I've no idea
Show your code
Well I mean this is all the relevant code
final PaginatedGui gui = new PaginatedGui(
menuSection.getInt("page-rows"),
menuSection.getInt("page-size"),
Color.colorize(menuSection.getString("page-title"), player)
);
Is that legit all you are doing?
Yes, that's where it's throwing the error
Should've just left it as the plugin within the constructor ;C
I mean it's not needed, never had that happen before
this how regex works lol?
val type = Regex("(?<=one)(.+)(?=two)").findAll(title).first().value```
alright
I'm out of the loop. When did Go become a thing?
a few days ago
With great Elara comes great Go
It's probably not a thing
ok that sounds weird
mhm
Someone has to visualise the opinion hierarchy of this server, I'm losing track
i say someone pings everyone in #announcements for that
itll really get the message across for the best language
Java => Lombok => Kotlin => Frigga / Odin => Kotlin again => Clojure => Haskell => Elara => Go
I think
That's about right
reverse
๐
so java is best??????????????
bruh
use => 
oh u mean timeline
@old wyvern -> better xD
Yes
lombok ๐ฆ
I'm glad I missed out on that
I think so
Kali joined in with the clojurejerking though
And I briefly got someone to try it I think
So
Mission accomplished
lol


Can I ask a favour: start a really intellectual conversation that means I get enough XP to overtake frosty
it would be really cool
I promise
About ?
@prisma wave smh
Coding on cheapest laptop ever! - Programming with Boris
๐ Get Boris gear here: https://weslav.com
Watch my Cooking videos: http://bit.ly/LOBcook
Subscribe: http://bit.ly/subBoris | ๐Make sure to enable ALL push notifications!๐
In this video I teach you the basics of program...
3:50
๐
$200
I thought it was going to be something random like the dude normally posts welp
He's a pro developer
crusade
Eclipse is nice
said no one ever
Shut up Conclure, before the dog meets the oven 
the dog can catch these hands
frosty has moved onto more animals to chuck in the oven ๐ณ
what in the
when arrow code is idiomatic
Ikr
thats noice
Matt i had something similar to write on paper for exams
๐
fucking 3-4 pages of table data
marks
Oh god
๐คทโโ๏ธ
you have to WRITE code?
and a bit of css at some point
mostly just to reposition the canvas
xD
I think I have python in my optionals either next sem or the one after
fun
so fuck yes 1 wrong letter and bam you lose points
miss 1 semi colon 
ouch
1 semi colon is rip
Especially when you write wrong convention when trying to overload in c# and use new keyword in c randomly
you lose like 2-3 points out of 15
very fun
import UnityEngine.SceneManagement; <- 5 points
#import <iostream>
java does
My java classes starts 2 sems later
mark my words
nop
the entire world will be teaching elara in about 9 months
It's like a new baby
ppl say the same stuff about Kotlin
Gasper where is Kotlin
Kotlin is being taught in some universities over Java already
eh
yup
eyy eastern europe gang
One day everyone will be using Kotlin, it'll be a beautiful future ๐ฅบ
One day everyone will be using Elara, it'll be a beautiful future ๐ฅบ
@ocean quartz fixed it
One day everyone will be using Kotlin, it'll be a beautiful future ๐ฅบ
@ocean quartz I'm already studying it
Kotlin is being taught in some universities over Java already
@ocean quartz really?
Yeah
we have CET, CEST here.
@dusky drum everything slavic is eastern ๐ค
no
I might volunteer for a coding workshop at my Uni for kotlin
They dont teach it there
I should become a teacher, so people can write shitty code like i do
@wintry magnet
http://images.virtusdevelops.eu/shareX/e51op9vd.png

I don't think anyone here does Kotlin in school either
Our 3rd years gave us a class on Java and Sql
tch
My fist year was C, second Java, third Java + SQL
I love SQL
its boring
I have Java only at 3rd year first sem
What
SELECT blabla FROM badfag WHERE dwakmd = widmnain
SQL comes under DBMS course next sem I think
and then you get Excel at SQL classes isnt THAT FUN!
anything
lmao
I used to have so much fun when it came to using JOIN and stuff in SQL
anything u need for 1.5$
I need a life
Nah
okay
@native stirrup can you implement our compiler to native code, java bytecode, whatever c# uses and also skript and python
i'll give $2 since it's a big request :)
@native stirrup can u code me my own custom server core with 1000 features, must run like a feather oh and also buy me a car
@native stirrup Bring me a genie
yes please
hand delivered to my house ofc
๐
money upfront using steam giftcards right?
๐
bitcoin ok?
bytecoins
haha that guy in #750658586761232505 said hes gonna give me 100Mil EUR in 25 years
crazy
@native stirrup I need 1000$ for 1.5$
Also the anything for $1.5 just reminds me of this
YES!
๐
lmao
i mean gay is okay.
but $20 is $20
yes level 18
im gonna get this tommorow:
http://images.virtusdevelops.eu/shareX/dkqflo20.png
anything
You will get the 1.5$ on delivery
too expensive
What's the CPU on that?
What's the CPU on that?
Epyc or xeon gold.
๐
Yugi ever whached Hunter x Hunter?
poor guy kiss*****.ru is down no more good websites.
dont watch it yugi
Oh, i'm guessing no, it's an anime, there is a character that allows you to make wishes, but in return she makes simple wishes to you, and if you ask something big the next wish she makes is also big, and one of the wishes she did was actually someone's kidney xD
matt big weeb
Not a weeb, i just really like anime
oh god

sounds like a weeb to me
scam
I think the only anime that I have watched is probably Yugioh
that's pretty good
Dont know if that even qualifies
it does
64gb ram for 30 euros wtf
ryzen 5 ๐
bruh I wanna start a server now
so first month is 2x price
Cheap but not too great though
@ocean quartz
http://images.virtusdevelops.eu/shareX/v9m4ef50.png
That one is better yeah
average of 0 players ๐
lmao
The same on OVH is $84 i think, but they have good DDOS protection
me too 
hetzner has good anti ddos to :3
but for the past 6 months its been at 0 players 
rip
omg now you remember me i had server with 50players then the fuckers came and fucked my server since i forgot that you can bypass bungee if you have all ports OPEN!
oh I have no idea what to play on prisons
i dont even think it supports 1.16 yet
๐ก
make it support 1.16!
that's unacceptable
NOW!
i just cba updating it lmfao
Only think I have played on mc is factions, towny and minigames
its been like 6 months ๐ญ
i don't have optifine for 1.15 ๐ฆ
Wow so you're saying i can't type in gay in chat?
and factions was like 5 years ago
Wow so you're saying i can't type in gay in chat?
@ocean quartz lmao
Anyone up for some bedwars maybe?
@ocean quartz something for ya:
http://images.virtusdevelops.eu/shareX/dgifuem7.png
Yea
HDD 
Thats pretty much the only thing I open mc for if anything at this point
you can get ssd
but its ENTERPRISE
@ niall
The game gets kind of stale after a while
@onyx loom your server lies:
http://images.virtusdevelops.eu/shareX/27ft0a6g.png
๐
I have this for $20, it's pretty nice
where is that MATT?
TitanNodes VPS
shall i quickly throw on via version for u nerds 
They are alright, the support is meh but the hardware is pretty nice
webpage i have there takes 10 mins to load.
i mean i guess they are in US
and prices are insane
for vps
@onyx loom Not joining if it doesn't have markdown rainbow support 
my bad
4core 8gb ram 20โฌ monthly
ill quickly throw on ur lib np
Noice
Here i wrote you a chat plugin for it
Also learned about the buildString recently and it's awesome
top 10 hidden kotlin features
There is also experimental buildList and buildMap
Oof that's totally fair
james gosling is dead
i will crash a plane into his house
he deserves it
andrey too
the hard times is a work of art
it truly is
i think i have a new hobby
going into support discords to find people having null pointer exception errors
and adding a reaction with 


๐
or do
Sorry Gaby, it had to be done
"wouldn't get that if you were using kotlin"
This was funny at some point.

But if someone ask for help with java stop saying that
Yeah for real it can be a bit annoying to say "wouldn't happen in Kotlin" a lot of people are asking for help, not to learn a new language

damn gaby taking it seriously
It's ok to say it to people you know but stop doing it to other's.
He matured after having contact with women 

nah gaby got angier
It wasnt because of this joke lol, just something I wanted to point.
i dont think he actually got that contact
Yeah for real it can be a bit annoying to say "wouldn't happen in Kotlin" a lot of people are asking for help, not to learn a new language
this
You still takin shit way too seriously my dude
Fuck off @ocean quartz ๐
Never ;p
Bruh
if matt using java and gets an NPE, ima tell him to use kotlin 
I dont care about your kotlin reaction joke
I never get NPE though 
๐ฎ
Exect when you do 
I didn't say you did, I'm saying you took something that was a joke and then turned it into some serious shit that you're now angy over 
Gaby is never angry, he's just perpetually Gaby
Who said I'm angry
i don't help people regardless cus i suck at java and kotlin so it's aight 
i'm not angry, i'm just a lombok user ๐

now thats an actual sin
What im saying is, people dont want to hear "wouldnt happen if you were using kotlin".
We need a viking execution


