#dev-general
1 messages · Page 536 of 1
H🤢skell
dont even
Gaby I have to disagree you from your incredibly bad subjective opinion as opposed to the objective facts Haskell is good (;
instance Evaluate Expression where
evaluate context expr = case expr of
(VariableExpression name) -> maybeToRight UnboundVariableError $ variables context M.!? name
(ConstantExpression value) -> pure value
(AddExpression left right) -> binaryCombine (+) left right context
(SubtractExpression left right) -> binaryCombine (-) left right context
(MultiplyExpression left right) -> binaryCombine (*) left right context
(DivideExpression left right) -> binaryCombine (/) left right context
``` 😌
it literally looks like expanded version of kotlin's when
expanded?
this would be longer in kotlin
when (expr) {
is AddExpression -> binaryCombine(Int::plus, expr.left, expr.right, context)
}
how is it longer?
is AddExpression -> binaryCombine(Int::plus, expr.left, expr.right, context)
(AddExpression left right) -> binaryCombine (+) left right context
how isn't it?
at least i can normally read it, your code block looks like some c code
lol
I mean, tbf to Haskell, or any language for that matter, you can read the Kotlin better because you know Kotlin better
😌
config[BanConfig.ENABLED] smh
has anyone used graalvm native image before 🥺
oop
Hey @cinder flare How's FJ doin
what lift does?
wdym?
lift function
Show the function
this would be an example of the lift function
ops I forgot to turn ping off
Uh
idk exactly what it "does" but the signature is something like (Applicative a) => (b -> c -> d) -> a b -> a c -> a d
lexDigit :: String -> Int
lexDigit ('-' : str) = negate $ lexDigit str
lexDigit str = foldl (\acc val -> acc * 10 + val) 0 $ map charToInt $ takeWhile isDigit str
``` 😌
😌 😌
oh shit i need decimals
hmm
it reverses the decimals
fixed it
ez
😌
😌
So let's talk about video game preservation, data hoarding, and Minecraft.
(🧵 thread)
825
2346
i am once again a peasant 😖
LOSER
shut it
How come?
welcome to the team
student license ran out
@half harness is that time of the month again
wat
cant u renew it?
no
i will once i get graalvm working
why graalvm?
exe file
packaged jre
spent like 7 hours on it
so far
like the past 2 days
i might be getting somewhere
it always errored out at like 1 minute
o
plzplzplzplzplzplzplzplz
f
noooooooooooooooooooo
whyyyyyyyyyyyyyyyyyyyyyyy
it no workey
i shall persist
and the problems shall persist too
what
well it tells you exactly what's the problem
idk how to fix it
lombok be like
@Getter
@Setter
@AllArgConstructor
@HashCode
@ToString
@ValueOf
@LolIdkSomeShit
@InlineMethodOfSomeShit
@HahahEvenMoreAnnotsIamTrueProProgrammerNow
class Popo {
final Object state;
}```
"Reducing boilerplate"
🤔
while I don't like lombok, I never had the impression that you have a lot of annotations with it
its a joke mostly
But you do end up with a lot of annots tho
well if u follow lombok purism
just to make sure, the last one was saying that type of dev doesn't exist right?
@half harness u got your thing working btw? xD
Yea
ok good. bcz I was confused. I thought they either mean that, or those devs are super clean or something
lol
spiderman
Damn luna loves mc
nope
ok
🥲
lmfao
imagine not having an about me cough blitz cough
tbh should be c
lolol
what's that?
what for? I'd just set it to NO!
I think my name and my status does the job
oh I Lost my status bcz it is 12:08
lmao

I've set it 10 minutes ago...

oh also @steel heart
ye
there we go
oh.
NO! NO! NO!
I didn't know they rolled it out to everyone
thought you were trying to flex
or something
lmfaooo
whats the new javascript engine called
in papi
engine: nashorn is the old one
what should i change it to
i tried engine: javascript, didnt work
lol
you shouldn't need to change it
- The config will no longer listen to the "engine" specifier for each script.
#852317810394267708
I hink it's using a V8 java implementation
It uses monads
ummm clearly it does
one sec ill show ya
ඞ
stop that
Oo
we cant send pics rip
use imgur
u r the man alex
once you succeed you shall find the true power I promise 😄
ImporterAdapterCandidateParameterWorkerInterpreterSingletonDatabaseTagProducerPoolModelClientBroadcasterDatabaseDecoratorIteratorPrototypeStrategyAdapterAdapterCloneHelperSetterQueueConfigurationTestTestsExpressionTestComposerAdvisorThreadTestContainerFilterTestInterpreterErrorSchemaOrderDatabasePoolInterpreterAuthenticationDecoratorDefinitionMapperDatabaseWorkerBroadcasterRequestComparatorDescriptorDefinitionUtilsPropertyTemplateErrorMappingAuthenticationWrapperListBroadcasterContextSchemaCallbackFieldSingletonIteratorBridgeWorkerObserverUtilsConfigurationWrapperValueHelperMessageCandidateEventMethodPublisherIteratorConsumerContextPoolMapFacadeTemplateObserverProccesorModelComposerManagerStateComparatorWrapperListenerSingletonBroadcasterStrategyInterpreterInterpreterTestTaskClientRepositoryAuthenticationAdvisorAttributeClientAnnotationMethodInstanceWrapperComparatorReponseExpressionCallbackPublisherPolicyCandidateInstanceSerializerUtilsProducerPrototypeSingletonPrototypeConsumer
anyways enjoy
quickjs maybe
i doubt that's because of the scriptengine type
are you even using the updated version?
o maybe it is v8
well
nevertheless
.
i tried graalvm, but it doesnt work anymore since there isnt a stable graalvm for 1.16
yews
i am reasonably sure that the engine type won't matter whatsoever
yes
Did you steal that
From meh
hehehehe
Pulse wyd rn
Ill get the qjs one out soon
Playing clarinet
ooo
I got it polished
odd
😬
classic
probably one of my devs messed with the ecloud download command
that ones my bad sorry XD
np np
Idk if the sound quality is great cause I put the phone in front of my clarinet
Lol
sounds nice
i did it
bind :: Parser a -> (a -> Parser b) -> Parser b
bind p f = Parser $ \tokens -> do
let initialParsed = parse p tokens
concatMap flatten initialParsed
where
flatten (resEither, remainingTokens) = case resEither of
Left err -> [(Left err, remainingTokens)]
Right a -> parse (f a) remainingTokens
not sure if it works
but it compiles
😌
its 1:22 am and I had my speakers at max 🥲
Great job
yeah Ik
Embrace my playing lmao
Ayyyy my boy popping off on the clarinet
Elara is written in Haskell now?
Oh no
I use to run the violin and piano I feel the music vibes
nah this is a learning project
Yeah lol
Was gonna say, it started in Kotlin (i think) then Go now Haskell xD
bm
yo
Is the parser spec being prepared?
oh ok
lol
xD
Uh not really just woke up why?
oh nvm then, just needed some help testing the js exp
Oh ya I'll be there in like an hour
Alrighty
LIT AF
man why do gradle stack traces have to be SO FUCKING HUGE
Wanna know what’s also huge
uranus
damn okay
And a lot of the times with cryptic information!!
i see you slick with the ladies young man
@sacred frigate yeah I gave it a look, their custom repo is down so you literally can't even compile the plugin right now
I think I need some more ram guys
Download some 😌
oh, I see 😦
so just forking it from github won't work?
not really sure how this works haha
I mean I literally cloned their repo and it is so over-engineered
You can't compile without accessing their repo for the compat modules or something
i see
Also that thing is a beast, it looks very painful to maintain
I doubt you'll get it by July
does anyone offer services to create a tebex website for a discord shop?
#849215409295196180 #849215410560827432 @placid palm
alr!
anyone know anything about the legality of reproducing things?
Im making a portfolio site for my java development and one of my projects was the recreation of NES tetris using no libraries. I didnt know if I was allowed to have that content on my site know it is copyrighted and whatnot
tetris itself probably doesnt belong to a company, its kind of a general game
ah
Just make sure you dont refer to anything specific from other versions in your version
what does that mean
As in dont have references to other companies
Remove the NES and redesign the background if you copied that
I mean even if you do release this with references, I doubt they really care
I'm pretty sure EA owns it
Or Sega
really?
Oh maybe not
arent there like a lots of tetris implementations?
ok this
like that
i changed that to say,
Original concept and design by Alexey Pazhitnov, code written by Jonah M
something like that is probably ok as long as you make it very clear you didn't invent it
Yeah
I am not a lawyer tho so don't quote me on that
yea np
i just wanted to make sure it wouldnt like instantly blacklist my site for copyright reasons idk
You can't copyright concepts or general gameplay ideas I think
EA sure tried for lootboxes
Really? That's a pretty broad idea
What about cards that give stuff?
Same concept
yeah I think it's like luck-based rewards or something vague
Just installed Java 16 on linux and the server had this error:
[16:53:53 INFO]: [STDERR]: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-16-openjdk-16.0.1.0.9-3.rolling.fc33.x86_64/lib/libawt_xawt.so
It won't start, should i try and reinstall java?
which distro?
also I recommend you install it with SDKMan, that is definitely worth a try
Managed to get it to work, thankyou
@prisma wave remind me of what that system is called that shows all those stats on your profile
hmm?
How do I get the HTTPS URL from a new project?
Doing step 7 rn but can't figure it out
Ohhh right so it's from the already existing repo I should do it
ty
np
remove that second 'remote'
yeah
kinda weirdly worded
np
I use gradle 7.1?
my plugin reached 100 servers today, might not be much but i'm really proud of it
Grats!
thanks :)
gradle wrapper --gradle-version 7.1
It's not on that project
do that
or do ./gradlew wrapper --gradle-version 7.1
depends what type of wrapper you're using but if one doesn't the other will
Ah so basically youre in a stuck spot
Using an unsupported version to get to a supported version
Ayy grats!!!!
Doesn't sound good lol
Try to change your java version to like 11
Then change to gradle 7.1
Then change back to 16
ooo
!!!
Worked! Tyvm
Awesome, np
I can't find any events like PlayerBowShootEvent or smth
Does someone know one like that?
ProjectileLaunched or smth
Ahhh yeah ty
Ummm it's not possible to check if the shooter is a player or skeleton lol
e.getEntity() returns the projectile entity lol
So idk what to do
Projectile#getShooter or something
Ahhh great, thanks
Ughhh I remember having to fix this but I forgot how it's fixed, it was something simple I remember, that's not on the given link
Show your gradle build script @timber oak
Replace everything in processResources with this
eachFile { expand version: version }
Alright, and btw ik I fkd it up with the DuplicatesStrategy, I just didn't know what to do lol
Works, tyvm
Oh what, I thought that Java 16 could run servers in 1.16.5?
ooooooooooooof
Spigot 🤡
Paper totally can
Oh lol
Anyways
Can someone explain this???
I did try restarting cmd multiple times
And the env variables
make sure you set it in the PATH
JAVA_HOME by itself does nothing but create an env variable, which some apps do use, java command does not
system ones yeah
Weird that it's java 16 enabled then
the first one (Oracle/java/javapath) is probably pointing to the java 16 path
so it "picks" that one first
I'm just testinnggggg lol
yylime
#849215408627253268 message
skript 👀
is there a dev version of 1.17 deluxemenus?
?dm-builds
You can find the latest DeluxeMenus dev builds here: https://ci.extendedclip.com/job/DeluxeMenus/
@turbid geode maybe
Check pinned messages in #general-plugins (the right channel for the question as well)
#general-plugins more updated
i wanna speak to the manager
👀

I'm sorry sir, but the manager is not here right now.
damn
But.. you are the manager!
wot. no
Anyone know if there's a feasible limit to the amount of data that can be stored on an entity/chunk's PersistentDataContainer? Like, a couple megabytes? Maybe even a few hundred megabytes? This seems like a https://tryitands.ee situation and also kind of sounds like a stupid idea but I may as well find out
My only concern would be if it ends up slowing down the chunk loading process for entities with a ton of data stored in their nbt
My question is tho, why in the hell would you need that much data
:)
I'm considering trying to move the stack data for my stacker plugin onto the chunks and entities instead of in the database since there are some possible data loading issues with it
Storing your pron collection on chunks?
I serialize entities into their nbt and store them in an array in the database as the stack data on an entity so I have a 1:1 copy of the entity when I respawn it out of a stack
I probably need to find a way to compress that array down since most of it is identical info anyway
You're storing more than you actually need so yea
The main things it really needs to store are entity equipment and the different variants of mobs, guess I'll just do some experimentation and see if this is even a good idea or not
i am 100% certain that is actually documented somewhere, there is a certain size limit a chunk will simply refuse to save to disk
i just can't find where 🙃
probably either wiki.vg or the minecraft fandom
chunk/region/world format etc
I mean you realistically will never reach that limit if you're using atleast 1% of your brain so
ya bet
good thing I can use 2% of my brain then
Isn't that how some duplication glitches work
exactly
Yup
ok, was messing around with some spring stuff, for security config, would basic auth be enough or is oauth2 a significant improvement?
enough as in someone is not just going to bruteforce it
alrighty
That seems possible with basic auth
ah
yeahhh
🥲
cl;ear lag sooo good
They didn't remove your message
And it was most likely removed because you double-messaged
alr thats ridiculous but ok
Ghost ping?
the palace guy as mad at you two for "removing his message" lol
Lmao
@tranquil crane the only limit I can think of in terms of data is with the actual packet sending
like the maximum packet size is 2 MB iirc
The actual nbt of the entities isn't sent over packets so that should be fine
so if your chunk data, for example, exceeds that, the client complains
I don't think spigot sends over the custom data saved on chunks either
probably doesn't, since I doubt the client would understand it
mad is not accurate i am just curious
cuz i rarely come to this server
Showcases need to be recent
No worries
Hey plugin devs, is it allowed to post Spigot plugins to dev.bukkit.org?
Why would you ever want to?
also why did i got showcase muted lmao
More organic reach, bukkit still gets some traffic, no?
doubt anyone even still use bukkit these days
Hardly
It will disappear just cause you had 2 posts removed so close together
And I don't know what "organic reach" means
so when will i get unmuted?
just curious
24 hours or something
Please sir do not ghost ping me
alr
yeah sorry it was mistake
Well, I checked a few plugins and for every 100 downloads they have on Spigot they have like 15-30 on bukkit. That's worth the effort imo 😄
surprised people still use bukkit dev
Yeah I'm surprised people even post their updated plugins on bukkit dev
Curseforge needs to take that site down or archive it or something
lol
I guess the bukkit forums are still somewhat active, no? Maybe people over there enjoy using bukkitDev 💁♀️
i thought bukkit was down back in 1 year ago
theres still older versions
isn't bukkit just the api that plugins use?
No
im getting sent to a different school for 2 days
Spigot is
bruh
Bukkit was yeeted from existence due to the DMCA
what is bukkit?
so they made Spigot, which is literally bukkit but with a fresh coat of paint and a little less copyrighted code
goku>all
good thing it's not relocated starting in 1.17 🙂
lol i love how yo use see the msg people send before it gets deleted
like?
hmmm
Spigotmc.org accepts spigot/bukkit plugins only, curseforge accepts pretty much anything really, so as of today curseforge is the only place for distribution like that that accepts paper only plugins
Until hangar™️ soon
wafflers
what
Good point emily, thanks
curseforge still runs bukkit dev that's what I'm talking about
and I don't see how your message is a response to what I was saying
I said "Why would you ever want to upload to Bukkit dev"
Yes and she explained why 😄
I can understand uploading to normal curseforge
Hey plugin devs, is it allowed to post Spigot plugins to dev.bukkit.org?
Why would you ever want to?
why would you ever make plugins for free :::))))
looool
Does curseforge not have a section on their main website for plugins?
If you want to publish a paper only plugin you can do it in there, spigotmc will take it down instead
isn't bukkit dev / curseforge the same tho? Different sites but the same plugins, no?
Has left 😦
Nop
Didn't let me ban him
sad!
dbo is under curseforge
ya but on their main website
idk but the plugins section is the same as dbo I think
It's literally the same thing
look this guy came to the help chat for this 😆
well lets get rid of dbo it's ugly 🙂
ok funnycube I'm boutta post rn 😎
are you saying I'm special?
D:
Of course you are!!
you motherfucker
wew
In a good way ::))
banned
It's so cold I cannot feel my toes
good
Sounds like an #off-topic kind of thing
Shh
maybe your toes will feel special
bukkit chat reminded me of this https://www.youtube.com/watch?v=m7SNzJx05IE&ab_channel=TheStaticAge98
Lol
Ok
kek
Difference between World.playEffect() and World.spawnParticle()?
I know that one uses Effect and the other uses Particle
But I can't get the effect one to work
I'm trying to make coloured fireworks
https://minecraft.fandom.com/wiki/Effect this is an effect
https://minecraft.fandom.com/wiki/Particles these are particles
what makes this even more confusing though is that particles are sometimes called "particle effects"
actually, ik what playEffect does
it 100% sends https://wiki.vg/Protocol#Effect , which plays a specific sound effect
@timber oak
you want spawn particle with a dust effect I think
Ohhh so effects are basically just sound effects?
yes
an effect in terms of the protocol is literally just a sound effect from a list of pre-defined sound effects specific to that effect packet
actually, apparently you can send particles with this as well, though nothing you want
these are all block particles
So I just need to play the dust effect particle?
no, you need to send the firework particle from the looks of it
Yeah but there's only FIREWORKS_SPARK in 1.16.5
Which isn't really what I'm looking for
@tranquil crane maybe you can help here?
my knowledge of particles is running out lol
I have all particle knowledge
Firework particles basically
they can't be colored
fireworkspark particles are colored client side
oof
Yeah trust me I wish you could color them but you just can't
How are they made
wdym trails
arrow trails for example
lol
just keep track of spawned arrows and spawn particles in a runnable at the arrow locations
consult the particle spawning guide above :3
This?
Yup, ty
my guide still helping people to this day
need to update it with the new 1.17 data types
Is it yours?
yeah lol
Damn, nice
I know essentially everything about particles so if you have any questions feel free to just ask
Alright, sounds good
most of the knowledge dump is in that spigot post though
tyty
Hmmm it won't work
Lemme show what I made
double note = 6 / 24D; // 6 is the value of the red note
new BukkitRunnable(){
@Override
public void run() {
arrow.getWorld().spawnParticle(Particle.NOTE, player.getLocation(), 0, note, 0, 0, 1);
}
}.runTaskTimer(customBows, 1, 1);
Nothing happens
You probably want to spawn the particles at the arrow location and not the player
oh bruh
Same thing tho
No particles
This is the entire event
@EventHandler
public void onShoot(ProjectileLaunchEvent e){
if(!(e.getEntity().getShooter() instanceof Player) && !(e.getEntity() instanceof Arrow)) {return;}
Player player = (Player) e.getEntity().getShooter();
Arrow arrow = (Arrow) e.getEntity();
NamespacedKey key = new NamespacedKey(customBows, "Special-boy-arrow");
PersistentDataContainer tagContainer = arrow.getPersistentDataContainer();
if(!(tagContainer.has(key, PersistentDataType.STRING))){return;}
System.out.println("debug 1");
double note = 6 / 24D; // 6 is the value of the red note
new BukkitRunnable(){
@Override
public void run() {
arrow.getWorld().spawnParticle(Particle.NOTE, arrow.getLocation(), 0, note, 0, 0, 1);
}
}.runTaskTimer(customBows, 1, 1);
}
and customBows is just the main class
And it actually prints debug 1?
in that first if statement you want to use || instead of &&
that tag container will probably never contain that key since you never actually saved it unless you're doing that somewhere else
So gotta fix that rq
I did set it somewhere else
But it's in the onHit event... lol
So gotta move that around
You're going to want to put a check inside that runnable for if (!arrow.isValid()) this.cancel();
otherwise you'll just get particles endlessly spawning even when the arrow despawns
I've got a ProjectileHitEvent that removes the arrow
if it doesn't hit a player I mean
oh that event does handle block hits ok
if you shoot an arrow into an upwards bubble channel it could still despawn without ever hitting a block
Ah yeah true, will isValid() check for that?
Any way to increase count with SPELL_MOB?
You're saying in the guide it needs to be 0
@old wyvern RRCATWebSecurityConfigurerAdapter the enterprise level 
It does need to be 0, if you want to spawn multiple you need to use a for loop
If you use anything other than 0 it'll either use black or just randomly color the particles, I don't remember which
🌞
Alright, I'll just make a loop, not sure if it will be bad for performance tho, with all those particles
😌
you can spawn particles async if that makes you feel any better
🥲
Still not too good with using async sadly
lmao spring ok u have a reason
still pales in comparison to HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor.java
+1

boolean ohYesItHas = false;
the only acceptable part of eclipse
Nicole what would you do to make something like a firework explosion at the onHit then?
Right now I use the spark
But it's kinda bad
@tranquil crane
Atleast I want to make the sparks smaller if possible
You can simulate your own little firework explosion by applying a velocity to the particles but they wouldn't be colorable
there aren't really any terribly good options
you could try spawning a firework with a power of 0 at the location but then you'd have to cancel the damage it deals too
How can I change the velocity of the particle though?
I say how to make them directional in that particle guide, though you'd need to probably do some vector math to get them to spread out in a sphere from a point
oh my.... I do hope they made that class as a joke
I just need to subtract from the vector tbh
How how can I handle vectors from a particle?
Can't find that in your guide
It's the directional particles section
I guess that one is quite a bit less documented than the others
still tells you how though I suppose
But setting count to 0 just allows the use of colors in the particle I use
pass the vector x, y, and z to the offsetX, offsetY, and offsetZ particles
only some particle types can have a velocity applied
the list is in a spoiler
none of the colored ones can have a set velocity
Oh right I don't use colors for this particle
to make things worse the velocity applied isn't even consistent across all the particle types so you'll just have to experiment with it
The difficult thing will be to make it like an explosion
https://github.com/Esophose/PlayerParticles/blob/master/src/main/java/dev/esophose/playerparticles/styles/ParticleStylePulse.java
Here's the code for a little pulse if it helps you in the slightest
https://i.gyazo.com/2050ae57b2991c8f187783128eb4b593.gif
Might help a bit, but the explosion has to go all around in 3d
Vector v = Vector.getRandom().subtract(0.5, 0.5, 0.5).multiply(2);
you could just try using that as the vector and see if it explodes in a circle like you'd expect
use a different randomized vector for each particle
Java util vector or bukkit?
bukkit
Bukkit doesnt have getRandom()
the java util vector is a List type class
are you using a bukkit version that's older than dirt
wait nvm
lol
I copied your code just before and it said random() instead of getRandom() lol
o yeah my b didn't remember exactly what it was called
Which particle type are you using?
Ehhh wat
Firework_spark
I didn't remember the exact parameter types of the vector methods
just wrap it in new Vector(0.5, 0.5, 0.5)
so like .subtract(vectorhere)
Vector.getRandom() returns a vector with all the values between 0 and 1, subtracting 0.5 from them all makes it between -0.5 and 0.5 and then multiplying it by 2 makes it between -1 and 1
doing that should get you a spherical looking particle distribution
You might need to do .normalize() on the end if you want them to all go the same distance away from the center point
Alright, I'll test that now
I'm going to head to sleep, if you need my response ping me and I should be away for at least the next 10 minutes
Alright sounds perfect, this should work tho
Not sure what I'm doing wrong here
Vector v = Vector.getRandom().subtract(new Vector(0.5, 0.5, 0.5)).multiply(2).normalize();
projectile.getWorld().spawnParticle(Particle.FIREWORKS_SPARK, projectile.getLocation(), 0, v);
Just reply whenever you got time @tranquil crane
Instead of passing the vector as the data parameter pass v.getX(), v.getY(), and v.getZ() as the offset parameters instead
Oh right
Aight no particles spawns lmao
Oh wait nvm, I need to loop it to do it multiple times
Ayeee it works
can you record a gif or video so I can see it 👀
If you want the particles to go a different distance just change what it gets multiplied by
Yup
Wait the clip doesnt work does it?
no lol
oo pretty
Yeah, 4th of July theme
Is what I was going for lol
Kinda annoying with no colors in explosion tho
Looks like it lol
You might be able to get away with using an actual firework explosion using a small ball if you wanted to
So what’s suppose to be the difference between dev general and development
this is where developers talk about general stuff, not really just development I guess
its more of an off-topic
where development is where you get support/help
or give it
Sorry I messed it up lol, thought I was in the other channel
Circlejerk everywhere
anyone has any good API for placing structures in world with plugin, like schematics from bukkit, but smaller objects like max 10x10x10?
Fawe?
i dont want to have another dependency
not everyone has worldedit on server
and i dont want to force them to have it if they want to use my plugin
Oooh Gasper long time no see
hellu Matt
trying to implement custom trees into my plugin and i cant find a good way to generating trees
yes
redlib is also a plugin dependency btw
ya just reading right now
i want some sort of api that i can just inject into my plugin
didnt realise it was in a plugin 😛
Yuck
Dammit Redempt why wouldn't make it a plugin 😩
¯_(ツ)_/¯
so no ideas, only way would be to make my own structure thingie i guess?
It's MIT so i guess you can copy the part of code that handles that
ya i guess
wait if it's MIT do you have to credit them? if so how do u do it? since i thought u have to copy and paste the license header but redlib doesn't have them..
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
This means you put it in the file(s) you copy, for example
bruh Fabric let me down for the first time
sad ☹️
dat has nothing to do with Java?
what is fabric written in then HUH?
public void doSmthing(String x) { // bad, typo
return x.hashCode(x.toString());
}
public void doSomething(String x) { return doSmthing(x); } // "refactored" to have a proper name, no code modifications necessary
how to refactor whilst adhering to the open closed principle
well
java be popo no function first class object
(functional interfaces donot count)
no
void return
String s = "what";
s
mmm reference variables
first class functions are a pointer to a functions
having a crush is just a pointer to them in your heart
well its not a function ?
it can be seen as the identity function but it only works with 1 value
id 3 = 3
so 3 is the same as the function id 3
so 3 is a function
ish
not really
I mean that's literally mathematics
Technically anything can be represented as a function
i do not care about mathematics
exactly
strings are functions
ints are functions
It's the same with set theory, everything is a set
yes 😌
god
see star gets it
fun fact void and return are functions in haskell
Implementation detail
im not interested in "points of view"
String x = "a"
i only care about facts
String -> String x = \_ -> "a" 😮
hey i watched a video about this
Veritasium 😌
woah there's a Veritasium video about set theory
I watched like a few hour long lectures about it
looking forward to the veritasium video on profunctors
haha good one brister mitten
thanks
i think you forgot to swap to your alt there bro
what no
https://www.youtube.com/watch?v=HeQX2HjkcNo i think its this one
Not everything that is true can be proven. This discovery transformed infinity, changed the course of a world war and led to the modern computer. This video is sponsored by Brilliant. The first 200 people to sign up via https://brilliant.org/veritasium get 20% off a yearly subscription.
Special thanks to Prof. Asaf Karagila for consultation on...
oh ya I watched taht
alan turing is also in here 😌
EWWWW
Did you know that in the Java specification, a method is executable code that can be invoked, passing a fixed number of values as arguments
So technically a String literal is executable code, that can be invoked, by passing itself as the argument
😌
I think varargs, at runtime, counts as a fixed number of arguments
yes in deed
The last formal parameter of a method or constructor is special: it may be a variable arity parameter, indicated by an ellipsis following the type.
Dude I need to read more of the Java spec
Look at how cool this shit is
I've never even heard of the word arity
theres some quite fancy type theory in there
arity just means like how many args it can take i think
recognise that from the clojure days
uh I did not think it came from arity
not smooth
bini
i dont care
so yeah not from arity lmao
"threefold," early 15c., from Late Latin ternarius "consisting of three," from terni "three by three," from ter "thrice," which is related to tres "three" (see three).```
latin is a fake language that never existed
ah true true
^
they made it up like Klingon or something
Arity isn't even a word on this etymology site lmao
dogru
türk var mı
what the fuck
tu dis quoi ?? ?
I am Turkish
evet KEKebab
hello kardes
ok
johny
is that racist lmao
maybe
👍 👍 👍
MERICA
its coming home !!!
FUCK YEAH
wrong
damn
I'm too used to twitch
lmao
ono
where

