#dev-general

1 messages · Page 550 of 1

cinder flare
#

so there was an 18 day period where shadowjar no worky

#

though I bet you could dev build it yourself

#

or early builds

#

i like ya cut g

obtuse gale
#

owo ???

humble silo
#

Ok well i could have actually gotten in before april

#

I know i wasnt trying shadowjar 7

cinder flare
#

also wait how were you building without shadowjar lol

obtuse gale
#

k ily bye

cinder flare
obtuse gale
#

HAHA lovely

cinder flare
#

in other news

#

yugi is a hero

#

i am going to install cinnamon right this instant and apply this theme

humble silo
cinder flare
#

and then get really mad when it doesn't work yet

humble silo
#

or atleast not as a megalith

cinder flare
#

no releases yet? lol

humble silo
#

well im not even close to done lol

cinder flare
humble silo
#

though i probably should get a version of my mixin stuff out

cinder flare
#

millions of problems

#

then it looks really ugly and i get dissuaded and go back to windows 😦

#

oh also, cool fact

#

Windows itself supports BTRFS better than WSL does somehow

humble silo
#

y would you want any other theme when you can get IJ default high contrast?

cinder flare
#

well sir, IJ default high contrast doesn't really work on Cinnamon

#

but maybe i could try lmao

old wyvern
#

Ok I really though intellij just broke with the latest update

humble silo
#

lol whats cinnamon?

old wyvern
#

It stopped working completely for an hour or two straight

humble silo
#

besides an excellent breakfast roll

distant sun
#

any idea why classes from the main package aren't available on test? 🤔

old wyvern
#

Now it finally opens up

cinder flare
#

i need IJ 2021.2 to release

humble silo
#

oh cool, i cant use it!

#

i love macs

cinder flare
#

obv you can't

old wyvern
humble silo
#

though i woudlnt need it

cinder flare
#

windows or mac you're stuck on the regular DE

#

man remember when GNOME was cool

#

and then they did like one wrong move and literally 6 DE's broke off from them and became their own thing

humble silo
#

Ok wait star, y is it that gradle doesnt have something like shadow jar built in? LIke how did you do anything before it?

#

like builds

hot hull
#

With difficulty

#

I mean you can still build without shadow jar

cinder flare
#

and you can still build

#

it just doesn't shadow dependencies in for you automagically

humble silo
#

lol

#

though ive never actually done multi module builds with it

cinder flare
#

dude I've had nothing but good times with gradle

#

hardly anyone uses jigsaw, and those that do understand how to use basic tools like shadowjar

humble silo
#

Well first off, mean, but ya i defintely should have been using shadowjar... there are a bunch of little things that shadowjar will fix for me that will be nice ig

#

like the fact that a file tree as a dependency doesnt seem to work with jpms

#

in gradle*

cinder flare
#

i mean you started off the meanness by dropping "gradle is the worst im going back to maven" lol

#

when it turns out you were doing the super annoying stuff all by hand lmao

humble silo
#

whats super annoying stuff?

cinder flare
#

relocations, namespace handling

humble silo
humble silo
#

as in?

cinder flare
#

like preventing conflicts and stuff

obtuse gale
#

"Priority-Medium" lmao

humble silo
#

ah alr, well tbf im pretty sure i just super unlucky with the updating of the shadow plugin

#

and then only checked their readme

#

Alr im gonna head to bed, Cya

cinder flare
obtuse gale
distant sun
cinder flare
obtuse gale
#

House of com.google.code.gson:gson 🙂

#

Although it's on github now lol

cinder flare
#

ah that's good

#

man gentoo is really testing my dedication

#

problem after problem with package managing

#

really makes me want to plug in an arch usb and 15 minutes later be on arch

obtuse gale
#

I love that gif lol

cinder flare
#

yeah honestly, i can't figure out how to get refind to recognize my config

#

so I have to press tab twice and enter root=/dev/sda1 before every boot

#

so uh, good luck hacking my computerlmao

vocal vortex
cinder flare
ashen ore
#

oh k

#

that kinda suck

#

since it took me ages to type this

#

oh general-plugins is also for self dev'd plugins?

cinder flare
#

See how it's under the support category?

ashen ore
#

oh there is another one lmfao

obtuse gale
#

Ask for support in #dev-general and you'll regret it for life

steel heart
#

Hi I need support, dis no work?!?

cinder flare
#

that makes me very pleased

old wyvern
#

Where is that from?

obtuse gale
#

Bstats

#

My brothers and sisters be running Java 18 already lmfao

steel heart
#

Wait wtf

cinder flare
#

bstats yo

#

happy times

old wyvern
#

ah bstats

cinder flare
old wyvern
#

I thought java 16 actually was starting to be widely adopted

cinder flare
#

I really hope this change leads a lot more people to just use Java 16 for their every day java uses

old wyvern
#

🥲

steel heart
#

What’s in j17? Sealed keyword?

old wyvern
#

Not even on there

#

sad

cinder flare
#

maybe that's out of date

old wyvern
#

Its from this march

cinder flare
#

well minecraft swapped after that

#

and I think minecraft is one of the biggest java users out there honestly

old wyvern
#

Im sure its not

steel heart
#

Android

#

I think?

cinder flare
#

I mean I feel like it takes up a large chunk of the individual peeps that aren't like companies

old wyvern
#

I dont think we can really group android into any java version

obtuse gale
#

Android doesn't really "run" Java though I think

cinder flare
#

plus android uses kotlin mostly

steel heart
#

Oh fair

old wyvern
#

Its kinda stuck at 7 with 8 syntax and some api allowed through sugar

obtuse gale
#

Android is such a weird thing

old wyvern
#

ikr

cinder flare
#

iphone gang

steel heart
#

True

cinder flare
#

swift is actually kinda nice yo

steel heart
#

iOS all the way babe

frigid badge
#

🙂

cinder flare
#

though xcode a little funky

#

but that's why we have AppCode wooooo

old wyvern
#

Yea I looked at swift once earlier, havent got a chance to use it yet

cinder flare
#

it's a lot like kotlin

old wyvern
#

Seems like kotlin with some extra features added

#

yea

cinder flare
#

and a hell of a lot better than objective c lol

steel heart
#

You do manual memory management with Swift or no?

obtuse gale
#

😷

steel heart
cinder flare
#

p sure it has gc

steel heart
#

Oh that’s hella lit then

cinder flare
#

though swift uses reference counting

#

which is... an interesting choice

#

has less lag spikes I guess lol

old wyvern
#

looks like it also allows unmanaged objects where needed

#

Android is this hell hole of, "Is it Java?", "Well..."

#

Imagine debugging

#

and trying to evaluate something with the standard api

#

only for it to say "ClassNotFound"

#

😌

steel heart
#

lol

obtuse gale
#

🥲

old wyvern
#

Because it never linked it as it wasnt shaded

#

even the jdk

#

😌

#

Absolute fine piece of ________

obtuse gale
#

I still don't know if it fully supports Java 8 lol

#

Like fully

old wyvern
#

It doesnt suppourt the stream api unless you build with like api version 28+

cinder flare
#

java 8? who needs all this newfangled technology

#

btw did you hear about the Security Manager in 1.3? seems very promising!!!

old wyvern
#

Theres a stream suppourt library that provides an extracted version of the stream api

obtuse gale
#

This is why you use Kotlin for Android

cinder flare
#

seriously dude

#

kotlin is like its own layer of abstraction over java versions haha

old wyvern
#

😌

#

I'll admit kotlin brings its own set of issues sometimes

#

Android's permissions are cancer

#

Absolute

cinder flare
#

oh boy just started recompiling gcc again

old wyvern
#

cancer

cinder flare
#

time to sleep

obtuse gale
#

Yes!!!

#

The whole permissions system is ass

cinder flare
#

what is it

old wyvern
#

Oh you want to do something now? Before you do anything, split off into two ways, you need to make sure the user has the permission

obtuse gale
#

Request and whatnot

#

Then listen to the response

old wyvern
#

So now you have a billion branches or permission response listeners to respond

cinder flare
#

oh I thought you were complaining about like ACLs lmao

obtuse gale
#

And fuck off

old wyvern
#

And they themselves have so many issues due to the lateinited context

#

Oh you initialized your listener too soon? too bad, time to crash, I didnt get a context

#

Actually I think it was the opposite with those

obtuse gale
#

I do not miss Android dev lmao

#

It was fun I'll admit

#

An experience

old wyvern
#

Like they needed to be initialized when the context is created

old wyvern
#

I think the older android versions asked for permissions during installation

#

That was probably much much better

#

like during kitkat or something

obtuse gale
#

But yeah the whole permissions system was garbage, it being in the manifest, then asking explicit permission for others, listening to the response "what is this array for??", not know what to do when this is that happens, then there are like 3 or 4 different "permission" classes with int flags but they all do different things

#

The amount of int flags there are

#

Oh my god

#

Everywhere

old wyvern
#

yea and the classes they are from make no sense either

#

The permissions result is from PackageManager

cinder flare
obtuse gale
#

Oh and navigating the source files is literally impossible

cinder flare
#

oh I thought that was a python-only problem haha

obtuse gale
#

All I remember is "throw new AssertionError("stub!")"

#

Lmfao

cinder flare
#

i got a typerror in my python django project

#

turns out the JSON boi can't work with Decimals, so I had to manually convert my values to Floats

obtuse gale
#

Lmfao

cinder flare
#

and do you think the error message was anywhere close to the actual problem?

#

it was at least 6 files removed

old wyvern
#

i actually managed to break a part of the permission system yesterday

#

Well kindof

#

the java api itself thinks all permissions were granted

#

but anything native checked with the app's uuid

#

so that failed

obtuse gale
#

oh lord

#

I seriously wonder how people make S-grade apps for Android

old wyvern
#

I mean it works, but just gets really annoying at times

obtuse gale
#

Yeah

#

Yeah once those tiny little things are sorted out it's fine mostly

old wyvern
#

Also, apparently jb compose is really good

#

Its still in alpha tho

#

Tho they renamed it a bit for android

#

"Jetbrains Compose" -> "Jetpack Compose"

obtuse gale
old wyvern
steel heart
#

🥲

jovial warren
#

the continuous scrolling ones, that is

#

where you scroll and it's kinda like a video

#

well, more like a slideshow, but you get the point

cinder flare
#

really makes me actually respect web developers

#

they are very cool indeed

jovial warren
#

I might actually try something like this on Krypton's website when I eventually get round to it lol

#

because why not

cinder flare
#

hey how's krypton coming

#

almost a full server impl?

distant sun
#

https://spark.lucko.me/35Im0islSC can somebody help me out with this? 😅 the server operated just fine last night with the same amount of players (~40) and today it almost crashed 😵

jovial warren
#

nowhere near

#

though I do have a new team member now

cinder flare
#

any progress since I last checked?

#

oh who!?

jovial warren
#

look in the Discord

cinder flare
#

ah Mr. TheRealJan

#

have they contributed much?

steel heart
#

I see this wannabe cartoon guy on every GitHub repo

#

Called Starmism

#

Cant possibly be you Star? Right????

cinder flare
#

damn, you look at my repos? smiling_face_with_3_tears

#

feels good

steel heart
#

And

#

I see maven

cinder flare
#

wait where lol

#

in hotelman?

steel heart
cinder flare
#

oh yea yea

steel heart
#

🤪

cinder flare
#

that was before I had heard of gradle

#

anything before like, the start of this year basically

steel heart
#

Lol yeah figured

#

Cute one tho

cinder flare
#

awww

#

im actually redoing that in rust and making it actually good

steel heart
#

Oo good boi

cinder flare
#

also i spent an inordinate amount of time on hotelman for my sql class, I was the only contributor in the group, and we got 5 extra credit points

#

that's it

#

felt pretty bad

steel heart
#

🥲

cinder flare
#

YOOO

steel heart
#

Dev team on the spot

cinder flare
#

MY MESSAGE

#

i added that

steel heart
#

?

sly sonnet
cinder flare
steel heart
#

Ye

cinder flare
#

in the latest papi update, I added that

steel heart
#

Oo

cinder flare
#

before I added it, it would've given a really nasty error and broke the entirety of PAPI

#

like you can't even do papi dump or reload

steel heart
#

Contributed BB8Yes

static zealot
#

I got listed as contributor on the update page.

#

I did absolutely nothing except offer moral support tho

cinder flare
#

moral support is very helpful though

#

i could've used you when I was getting railroaded by the boys over my minor code formatting

static zealot
#

well

#

you see

#

I would've joined them

steel heart
#

What’s the catch?

static zealot
#

so its better for you that I wasn't there

cinder flare
steel heart
#

Does any of you have access to the DeluxeMenus repo?

static zealot
# cinder flare 😦

yeah I usually join the bigger and cooler group even tho I Don't agree with them. I Just want to look cool

steel heart
#

Lmao

#

Oo blitz add me or ip bane

static zealot
steel heart
#

Nooooo

#

Outsmorted

#

😦

steel heart
#

One punch guy

#

Blitz ok add me and ban me

#

I will take the punishment (:

static zealot
#

no ty

#

bcz then I will have to take a harsher punishment for you

frigid badge
#

do not hate on me but

#

i have had to make a sad decision

#

I have enabled light mode on my ides

#

but just temporarily cause i can't see shit in the sun

#

hope you guys can forgive me

#

multi tasking is important: tanning and working

#

lmao

cinder flare
#

lol

#

i mean you've already got so much light

#

i don't think light mode really affects much

#

it's just really bad when you're in a dark room and you click on the tab and you get flashbanged lol

frigid badge
#

yup

hot hull
#

@frigid badge You're forgiven. Go get a sexy ass tan

frigid badge
#

yay 😉

sly sonnet
steel heart
jovial warren
forest pecan
#

Lol

distant sun
frigid badge
#

lmao

static zealot
#

here

#

get flash banged

gritty ermine
#

@obtuse gale please send me a friend request to talk about your plugin request

forest pecan
static zealot
#

deleted it bcz its pretty bad x

ocean quartz
#

It was yeah xD

prisma wave
#

he's back!

#

he keeps playing on EU servers for some reason

static zealot
#

maybe he moved to EU?

prisma wave
#

😩

ocean quartz
#

He's trying to get your attention so you invite him 😩

prisma wave
#

i think he might be

#

but im shy 🥺

static zealot
#

don't worry. I'm not

prisma wave
#

👀

onyx loom
#

its only 1 click to invite him!

prisma wave
#

true!

#

although i cant rn

#

hes in a game

forest pecan
#

Wait for him

eager patio
#

why do i get this error:

[20:20:56 ERROR]: Could not load 'plugins\fabledRank-0.001.jar' in folder 'plugins'
Caused by: java.lang.NullPointerException
at net.mytale.fabledrank.FabledRank.<clinit>(FabledRank.java:66) ~[?:?]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_291]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_291]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[paperSpigot.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[paperSpigot.jar:git-Spigot-db6de12-18fbb24]
... 6 more

half harness
ocean quartz
#

Before you re-ask though, give more information

static zealot
#

I got a weird question but lets say I have openjdk1.8.0 installed and also 11 is there a way to run a jar with the 1.8.0 one?

#

bcz java runs the 11 one

#

or where do I select which java version should be used? like when using java

#

I'm on kde plasma

old wyvern
#

You would have to modify your path variabel

distant sun
#
@echo off
set JAVA_HOME="D:\Program Files\Java\jdk-16.0.1"
set PATH="D:\Program Files\Java\jdk-16.0.1\bin";%PATH%
java -Xmx2G -Xms2G -jar paper-1.17.1-104.jar nogui
PAUSE```
This is what I use to start my servers
old wyvern
#

If you used sdkman to install, you can use it to switch between versions

static zealot
old wyvern
#

should be in .bash_profile

static zealot
#

oh apparently I can just use update-alternatives --config java

old wyvern
#

You can add java 8 to the bginning of the path as well if you just want it temporary

static zealot
#

yeah that seems to have worked. what I just found

#

oh

#

I could've just ran the path

#

instead of the java command right?

#

like /path/1.8.0/java WHATEVER

humble silo
#

aaaannnnnddd, spring data jpa had a release 4 days ago that fixed all my module issues which i could have fixed anyways with the shadowjar plugin... so many feelings

static zealot
#

yup the second option worked as well

#

ty yugi

half harness
humble silo
distant sun
steel heart
#

Maybe invalidate caches

distant sun
#

nope

static zealot
#

wait wakatime doesn't store the info for projects? Like I Know you can only see last 14 days with free account but I would've thought I Could see how much I've spent in a project or something like that

#

but even per project stats are 14 days max

ocean quartz
#

Yeah it's always just 14 days

static zealot
#

I wonder if premium would give you the stats from before. like does it store them?

ocean quartz
#

I think it does

#

Don't know for sure though

hot hull
#

Just go through your emails nerd

old wyvern
#

Pre-resolutions work 😌

obtuse gale
#

idk what that is all about but 😌

old wyvern
#

resolving the dependencies at compile time to speed up the resolution process

prisma wave
#

pff

#

pdm had it first

old wyvern
#

Didnt pdm do it at runtime as well?

prisma wave
#

it did it at compile time if possible

old wyvern
#

I see

prisma wave
#

😌

#

great minds think alike

old wyvern
#

😌

obtuse gale
#

did pdm work on java 18?

#

thought so

prisma wave
#

did i ask?

obtuse gale
#

no but i did

prisma wave
#

nobody cares

obtuse gale
#

right because nobody uses pdm

prisma wave
#

shut up

#

please

obtuse gale
#

hahahahahahhaahahahahaa

prisma wave
#

😢

obtuse gale
#

in kotlin are things like .filter .map etc (on a collection/iterable, not a Stream) eagerly or lazily evaluated?

prisma wave
#

eagerly

#

Sequences are lazy

#

yes exactly

#

eager = loser
lazy = hypebeast

obtuse gale
#

WHAT

ocean quartz
obtuse gale
#

😌 😌 😌 😌 😌

static zealot
#

lmao

prisma wave
#

😌 😌 😌 😌 😌 😌

#

🙂

obtuse gale
#

sHuT uP

prisma wave
#

have a nice day! 😄

old wyvern
#

btw matt

#

i got the plugin management thing working

#

I had to delete the module file from the local repo to get it to work like the issue you had earlier

ocean quartz
#

Did you try the change i did to not generate it?

old wyvern
#

Oh I dont remember what changes you did

#

Do you have ti some where?

ocean quartz
obtuse gale
#

okay

#

so

#

klass or clazz?

potent nest
#

cIass 🥲

obtuse gale
#

lmfao

#

c1ass

potent nest
#

okay even better

distant sun
#

cla$$

ocean quartz
#

I normally do clss or clazz

ocean quartz
old wyvern
#

😮

#

Ill give that a shot

timber oak
#

Can someone tell me a quick explanation of stream in java?

#

For example in maps

#

But I think it's also used in other scenarios?

distant sun
#

@prisma wave wheres your milf filter example

obtuse gale
#

the what 🤣

prisma wave
distant sun
#

I think he changed it eventually

prisma wave
#

my blog has been down for like a year now ☹️

distant sun
#

F

prisma wave
distant sun
timber oak
prisma wave
#

Not necessarily

jovial warren
prisma wave
#

But not necessarily

#

For example the SplittableRandom class has methods ints() and doubles() that return an infinite stream of random numbers

timber oak
obtuse gale
#

yesn't

timber oak
#

welp

obtuse gale
#

it won't sort the collection itself

timber oak
#

I know

obtuse gale
#

but you can get a sorted collection from another one

timber oak
#

But you can access methods through the stream to do it

#

right?

prisma wave
#

kinda

obtuse gale
#

yeah there are methods

jovial warren
#

imagine a stream as being an actual physical stream of flowing water

prisma wave
#

there are things called Collectors which will turn all of the elements in the stream into 1 thing (eg a list or a map)

jovial warren
#

the stream just keeps flowing, right? well, until it runs out of water, of course

onyx loom
#

should definitely read the javadoc of a stream

prisma wave
#

But using streams just to sort a list is stupid because Collections.sort is a thing

onyx loom
#

its quite detailed

prisma wave
#

Yes

#

then once you're indoctrinated, learn haskell where every list is a stream

jovial warren
#

lol

timber oak
#

Aight, because I'm not sure what the difference between a stream and collection is then, a stream is unlimited or what?

prisma wave
#

Streams can be unlimited, but not necessarily

timber oak
#

So it's just a collection?

jovial warren
#

collections are, for the most part anyway, limited to the maximum size of Int.MAX_VALUE

onyx loom
#

Long: am i a joke to u?

prisma wave
#

A collection is just like a box of things, a stream (like bardy and I said) is more like a literal stream, where it just keeps flowing until something makes it stop

jovial warren
#

unless you use fastutil, which has big arrays/collections that, iirc, use BigIntegers or something to store their size

timber oak
#

Wait what are the limit sizes actually for like ArrayList or HashMap?

prisma wave
#

big

onyx loom
#

big enough to where ull probably never reach it

steel heart
#

No need to worry lol

prisma wave
#

probably int max value but it would depend on the implementation

#

well theoretically anyway

#

You'll usually run out of heap space before you could hit the theoretical max

onyx loom
#

d;jdk Stream

ruby craterBOT
#
public interface Stream
extends BaseStream<T,​Stream<T>>```
Stream has 36 methods, 1 extensions, and  3 super interfaces.
Description:

A sequence of elements supporting sequential and parallel aggregate operations. The following example illustrates an aggregate operation using Stream and IntStream:

Since:

1.8

steel heart
#

d;methods jdk Stream

ruby craterBOT
#
Methods:
java.util.stream.Stream#noneMatch
java.util.stream.Stream#flatMapToInt
java.util.stream.Stream#skip
java.util.stream.Stream#of
java.util.stream.Stream#distinct
java.util.stream.Stream#flatMapToLong```
obtuse gale
#

Collections contain data themselves, the data is already there
Streams are "processing pipelines" that don't contain data, the data is evaluated as it passes through the pipeline

#

Then you can use what's called a collector to collect the data the pipeline has processed

prisma wave
#

Yes based and true

onyx loom
prisma wave
#

Pipeline is a good term

#

Streams generate and process data, collections just hold the data

onyx loom
#

^^

prisma wave
obtuse gale
onyx loom
#

🥶

prisma wave
#

which is a lot

timber oak
#

But wouldn't that be kinda the same as looping through a collection then?

onyx loom
#

1tb of ram incoming

onyx loom
#

yesnt

timber oak
#

Oh well

obtuse gale
#

using a loop would require the data to already exist

steel heart
#

Usually IntelliJ offers a way to convert streams to a for chain loop or whatever it’s called in Alt + Enter

obtuse gale
#

streams work based on what's called "lazy evaluation", things are "pulled in" as they are needed

timber oak
obtuse gale
#

The stream doesn't have a concept of the already existing data

#

it just processes one element at a time, regardless of where it's coming from

prisma wave
steel heart
#

It’s pretty meaningless to use a stream if you don’t have any data/elements to process, but that goes for a normal loop also

prisma wave
#

A stream could take data from a file, reading a new line each time, or a website, or a database, or a mathematical formula, or anything really

obtuse gale
#

The data that goes through the pipeline can and usually is coming from a collection with already existing data, yes, but it can also be generated as it is needed, not from a collection, but from a generator

prisma wave
#

They don't have to be infinite but one of their core concepts is that they can be

#

^^

timber oak
timber oak
#

Ohhh yeah

steel heart
#

Hi also everyone here should start playing Clash of Clans ok ty pog

prisma wave
#

A generator could also be a collection (I think it reads it lazily?)

steel heart
obtuse gale
#

But this server is house of Raid Shadow Legends

timber oak
steel heart
#

🥲

#

lmao raid shadow legends, does anyone even play that for more than 10 minutes

steel heart
#

Also btw when would one use this

static zealot
#

those who get sponsored multiple times. bcz they have to play 10 minutes every time

steel heart
#

d;StampedLock

ruby craterBOT
#
public class StampedLock
extends Object
implements Serializable```
StampedLock has 1 all implementations, 28 methods, 1 implementations, and  1 extensions.
Description:

A capability-based lock with three modes for controlling read/write access. The state of a StampedLock consists of a version and mode. Lock acquisition methods return a stamp that represents and controls access with respect to a lock state; "try" versions of these methods may instead return the special value zero to represent failure to acquire access. Lock release and conversion methods require stamps as arguments, and fail if they do not match the state of the lock. The three modes are:

  • Writing. Method writeLock() possibly blocks waiting for exclusive access, returning a stamp that can be used in method unlockWrite(long) to release the lock. Untimed and timed versions of tryWriteLock are also provided. When the lock is held in write mode, no read locks may be obtained, and all optimistic read validations will fail.
  • Reading. Method readLock() possibly blocks...

This description has been shortened as it was too long.

Since:

1.8

steel heart
#

ReentrantLock would be capable of that also or what’s the difference?

obtuse gale
#

how much I care about it

obtuse gale
#

that's the difference

steel heart
#

Hmm so no difference

obtuse gale
#

They are not reentrant, so locked bodies should not call other unknown methods that may try to re-acquire locks

#

StampedLocks have no notion of ownership. Locks acquired in one thread can be released or converted in another.

steel heart
#

Oh okay, danke

prisma wave
#

Locks are kinda cringe

obtuse gale
#

just like you

prisma wave
#

🥰

steel heart
prisma wave
#

Fuck you

obtuse gale
#

oh shit

#

sw

#

dsa

prisma wave
obtuse gale
#

where

prisma wave
#

😵‍💫

obtuse gale
#

\😵‍💫

steel heart
#

A fine addition to my collection

#

Wtf why red dot

obtuse gale
#

dot

steel heart
#

Worm

obtuse gale
#

lmao

steel heart
#

🥲

prisma wave
#

\😵‍💫

#

😶‍🌫️

#

\😶‍🌫️

obtuse gale
#

LOL

prisma wave
#

We have been deceived

#

\🤥

#

\😷

#

\🤧

#

What else are they hiding from us

#

\🤐

obtuse gale
#

\🧐

#

\🤠

#

that is cursed

prisma wave
#

\🤕

#

Ridiculous

#

\😓

onyx loom
#

\🌞

prisma wave
#

Some kind of joke???

obtuse gale
#

yo BM do you have a repo mirroring central?

prisma wave
#

I think so

#

Why?

obtuse gale
#

because

prisma wave
#

🧐

#

\🦾

#

🦿

#

📅

#

Aw man we missed it

obtuse gale
#

\☹️

prisma wave
#

❤️‍🔥

#

🔰 ⚜️ 🔱

obtuse gale
#

\❤️‍🔥

prisma wave
#

〽️

obtuse gale
#

woah

prisma wave
#

Nooo

obtuse gale
#

\🔰 \⚜️ \🔱

onyx loom
#

im lovin' it

prisma wave
#

\🇮🇴

#

Fuck you

#

\🇺🇲

#

aaaaa why does github actions suddenly take over 10 minutes to build 2 docker images

#

Taking the piss

#

all I did was make it produce an arm64 image as well

steel heart
prisma wave
#

almost 20 minutes now

steel heart
#

Okay I need to knoe

#

if (x == null)

or

if (null == x)

obtuse gale
#

Objects.equals(null, x)

onyx loom
#

if statements 🙄

steel heart
#

mhm

#

sexy

forest pecan
#

lol

#

just wondering

obtuse gale
#

lol no

forest pecan
#

cause that actually looks like a nice way

#

to avoid all the if shit

obtuse gale
#

I mean you still have to put it inside an if

forest pecan
#

oh

#

i meant the requireNonNull

#

actually

#

yeah that

#

do you guys use that?

obtuse gale
#

More for API elements or things that should straight up not be null (e.g. getResourceAsStream) but yes

forest pecan
#

the world should use more Optional

#

sadge

steel heart
#

I use preconditions cuz im weird

obtuse gale
forest pecan
#

mhm

obtuse gale
#

Returning null is straight up an act from hell

#

When returning collections you don't return null, you return an empty collection

steel heart
#

lol I mean
Optional<YOU> lol(Optional<ME> me, Optional<THEM>); pog

obtuse gale
#

Same should go for objects

#

Return an empty object, an empty Optional

steel heart
#

oh wtf

#

bruh emote

obtuse gale
#

hehehaha

steel heart
obtuse gale
#

Also known as @quiet depot

pallid gale
#

o

#

🐷Pig_Concern 🐽 pig_unamused Baby_Pig mc_pig muddy_pig muddy_pig_mini pale_pig piebald_pig

steel heart
obtuse gale
#

🐷

steel heart
#

ah rip thought it was 200

obtuse gale
#

Huh

#

It should?

#

For big nitro users

#

Like you

steel heart
#

yee, maybe they couldn't handle it or something lol

plush loom
#

Hello

#

Im looking for any avalible Minecraft Bedrock devs

obtuse gale
#

Uh how does that work

#

BE doesn't support modding

#

Or is there any "official scripting" or smth?

cinder flare
#

Since, ya know, it really should error out if one of the required methods isn't available

#

Plus it provides a nice message too!

obtuse gale
#

Yeah for API elements rnn is fitting

steel heart
#

Lombok @NotNull codegen🤤

steel heart
#

Oh lol

cinder flare
#

no annotations will save you

cinder flare
#

you should see what doing /papi parse me %luckperms_primary_group_name%

#

hmmm

#

try printing it with the javascript

#

then see what it is raw

#

print it

#

with javascript

#

console.log or whatever

#

cause your chat is parsing the color codes

#

and i bet it's not what you think it is

#

That's not the same

#

Print the javascript

#

then you'll see what you're actually receiving

obtuse gale
#

that's because PAPI is rarded and pre-parses the color formatting

cinder flare
#

tfw you forget which username and password you used to ssh onto a server

cinder flare
#

my boy Carl L. really helpin me out

obtuse gale
#

T-t-together ???

cinder flare
#

yeah he's a little weird

#

he asked me if my problem was like 4 different problems and I just kept reiterating the same thing lol

old wyvern
#

They probably have some systematic they are asked to deal with customers

#

like get any of the basic possibilities out of the way before wasting time

cinder flare
#

He knows!

obtuse gale
#

plot twist: Carl is an AI

cinder flare
#

what a relatable man

pallid gale
#

LOL!

obtuse gale
#

LOL!

cinder flare
#

awe yeah he gave me a survey

#

time to rate him 10/10

#

i think my dynmap is a little big

#

this has been going for that entire support conversation

pallid gale
#

its fiiiiine

cinder flare
#

we've upgraded to region files!

cinder flare
#

k so uh, that generated about 25GB of dynmap

old wyvern
#

😌

obtuse gale
old wyvern
#

👀

cinder flare
#

damb

#

radio waves back at it agian

hot hull
#

imagine getting fucking wallbanged by an AI

cinder flare
#

war of the future

#

literally aimbots in real life

old wyvern
#

wallhacks

distant sun
timber oak
#

Difference between define and instantiate?

#

Is instantiate just for objects?

prisma wave
#

i have never heard anyone say "define" in that context

timber oak
#

oh

steel heart
#

Define ye I mean you could say define a class or define a variable

#

Nothing special about it probably

timber oak
#

So like in this example

int x;

x = 10;

What would you call the action when you do x = 10?

#

instantiate right?

steel heart
#

Assign

#

Or set x to 20

#

Guess you could say define x to be 10

#

Sounds weird imo

#

Instantiate is when you create a new object

timber oak
#

Ohhhhhh okay

steel heart
#

10 is an int, which is a primitive type and not an object

timber oak
#

and yeah Assign sounds better

#

You just assign the value to the variable ig

#

In the example above

prisma wave
#

assign, yes

#

you declare x and then assign it the value 10

timber oak
#

So assign for primitive types and instantiate for creating new objects.

steel heart
#

No

#

Assign is for variables

#

Like when you assign a variable a value

timber oak
#

Oh yeah

#

It doesnt have to be a primitive type

steel heart
#

Instantiate has nothing to do with assignment

#

It’s just object creation

#

new Object();

timber oak
#

Ohhh

steel heart
#

This would also be an instantiation

prisma wave
#

assigning and declaring are to do with variables

steel heart
#

No assignment to variables there

timber oak
#

Because this is instantiation Object obj = new Object() but this isn't Object obj = anotherObject
Second example would also be assign right?

#

But first is instantiation

steel heart
#

Both are assign

#

Former is instantiation also

timber oak
#

hmm

#

ig that makes sense

#

Because you assign an object to both of them

steel heart
#

You declare a variable in both examples and then you assign both variables to an instance, the first one is where you create a new object, second one is just assigning it to an already existing object.

timber oak
#

Yeah, and when creating the object with new Object() it's instantiation right?

#

But only that part

steel heart
#

Yes

timber oak
#

declaring when you do int x and assign when you set it to a value?

steel heart
#

You can assign a variable multiple times, only declare it once

prisma wave
#

yes

#

^

timber oak
#

Makes sense

prisma wave
#

typically you do both at the same time though

timber oak
#

Yeah

steel heart
#

Ideally ye

prisma wave
#

int x = 10;

old wyvern
#

imagine reassignment being allowed 🤮

timber oak
#

so final means you can only assign a value once right? but that value could potentially change?

prisma wave
#

yes

#

it's "reference immutability" - the variable can't change, but if you're storing something like a list, that list could still change

old wyvern
#

Which is why

#

You should

prisma wave
#

^

old wyvern
#

Move

#

To

#

H

prisma wave
#

🅰️

steel heart
timber oak
#

What's so good about Haskell or whatever, I don't get it

old wyvern
#

🇸

prisma wave
#

everything

timber oak
#

The code looks so ugly imo lol

prisma wave
#

nahhhhhhhhh

old wyvern
#

Absolutely not!

steel heart
#

Good statement there valdemar

prisma wave
#

nothing ugly about it

#

well

#

usually

steel heart
#

The ValdemarF Haskell Theorem

old wyvern
#

I mean in that same sense people could write horrible things in any language

timber oak
old wyvern
#

That doesnt make the language inherently bad

steel heart
#

It’s bizarre sometimes

old wyvern
#

That makes the author of the snippet bad

steel heart
#

Gross incapable humans

old wyvern
#

ikr

#

This is why we must let the compiler decide

timber oak
#

So what are the advantages of Haskell?

steel heart
#

Copilot 🤡

prisma wave
old wyvern
#

Very safe

prisma wave
#

it's concise

timber oak
#

Wdym "safe"?

prisma wave
#

it's pretty much impossible to get bugs apart from logic errors

old wyvern
#

The type system makes sure you dont run into much of any errors

timber oak
#

Like error-wise?

prisma wave
#

yes

timber oak
#

So more warnings when making the code?

prisma wave
#

it's pretty hard to get actual errors at runtime

timber oak
#

Or what makes it more safe

distant sun
#

is there a library with multimap, other than guava? That shit is thick

prisma wave
#

so yeah, i guess so

timber oak
#

Ahhhhh

old wyvern
#

The error messages are well....

#

yea

prisma wave
#

which obviously means it's harder to write code, but it usually means that if it compiles, it works

old wyvern
#

Not as bad as c++

prisma wave
#

i dont think theyre that bad

timber oak
old wyvern
#

I mean compare it to Elm with similar capabilities

prisma wave
old wyvern
prisma wave
old wyvern
#

But it can get complicated sometimes

prisma wave
#

but elm is significantly better than every language

old wyvern
#

Yes

prisma wave
#

elm and rust win the error message competition

timber oak
#

So it won't compile if there's a chance of a null? Or what

old wyvern
#

No

timber oak
#

Which shouldn't be there ofc

old wyvern
#

There is no Null

timber oak
#

What?

steel heart
#

Null is great

old wyvern
#

Haskell has no concept of nullability

prisma wave
#

none at all

#

every value must exist

steel heart
#

Bad

timber oak
#

So if you try and get something from config.yml but it's not there what does it return?

prisma wave
#

depends, often you'd use something called "Maybe"

#

which is kind of like null, but it forces you to check it

distant sun
#

smh fine bm

prisma wave
#

it's really easy to make your own

#

just wrap a Map with a few extra methods

timber oak
#

Just wondering, but which language does Hypixel devs use? And why

#

If you know

prisma wave
#

almost definitely java

old wyvern
#

lol

prisma wave
#

but probably not exclusively

timber oak
#

Why tho

prisma wave
#

what other options are there?

old wyvern
#

Because the sever software is written in java

timber oak
#

Haskell?

prisma wave
#

i wish

timber oak
#

Or am I misunderstanding this lol

prisma wave
#

you cant write plugins with it sadly

timber oak
#

Oh what

prisma wave
#

not without immense amounts of pain anyway

timber oak
#

I thought you used it for plugins also lol

old wyvern
#

Not every language runs on the JVM

prisma wave
#

sadly not

#

it's not a jvm-based language

#

it's more similar to C or C++

timber oak
#

Ahhhh

old wyvern
#

You can hack around it with ffi to get it to kind of

#

bm tried that once

prisma wave
#

not worth it

timber oak
#

Did it work?

old wyvern
#

mhm

prisma wave
#

as a proof of concept yes

#

but it's very long winded and very messy

old wyvern
#

I dont think any sane person would try that

#

Rather

#

switch to Elara

#

ez

timber oak
#

Elara?

old wyvern
#

😌

timber oak
#

welp

prisma wave
#

a language yugi and i are making

#

very inspired by haskell although not as "extreme"

timber oak
#

Are you creating a new language???

prisma wave
#

well

#

yes

timber oak
#

Sounds complicated lol

prisma wave
#

it's not as complicated as you might think

timber oak
#

Like you're creating it from the bottom or what?

prisma wave
#

yep

timber oak
#

But like that requires using binary code etc doesnt it?

prisma wave
#

like, sure it's difficult, but a simple interpreted language is actually fairly simple

#

nah not necessarily

#

you could write an interpreted language in any language

timber oak
#

what is an interpreted language?

#

Like it goes through another language?

#

Or what

prisma wave
#

yeah like the opposite of compiled

#

like python, you just run a file

#

whereas with java or C or something you have to compile it first, which is usually a bit more complicated because you have to write the compiler

timber oak
#

Interesting, how far are you with the language?

prisma wave
#

uh

old wyvern
#

well xD

prisma wave
#

yeah...

timber oak
#

lol

prisma wave
#

we have a "working" version that's very old

old wyvern
#

The 3rd rewrite is being worked on

prisma wave
#

^

old wyvern
#

lol

prisma wave
#

actively worked on

#

i definitely havent forgotten about it

old wyvern
#

very

timber oak
#

rewrite? Are you remaking it or what?

old wyvern
#

🥲

prisma wave
#

yeah pretty much

#

our original idea was kind of a mess

old wyvern
#

major changes in design goals

#

yea

timber oak
#

So what makes something like Python so good? If it's also an interpreted language?

prisma wave
#

im not sure everyone would agree that python is good lol

old wyvern
#

Library, ease of use

prisma wave
#

but yeah

#

python's biggest strengths are that it's easy and has a massive ecosystem

obtuse gale
#

What is the lang based off?

old wyvern
#

Haskell

prisma wave
#

how the language actually works doesn't really matter too much

old wyvern
#

F#

prisma wave
#

^

old wyvern
#

...ect..

prisma wave
#

a bit of kotlin and rust thrown in for fun

timber oak
obtuse gale
#

Ah ok, and I see Python as just a good lang for scripting

timber oak
#

How many libraries it has?

old wyvern
#

A lot

prisma wave
old wyvern
#

Its also one of the best languages for ml which if you havent noticed, is booming in recent times

prisma wave
#

what i mean to say is that whether a language is compiled or interpreted doesn't really matter too much

#

yeah definitely

timber oak
#

So python is mostly good because ease of use and because it's so popular already?

#

Kinda

#

or what?

obtuse gale
#

Used for quick magic

old wyvern
#

Pretty much

prisma wave
#

yeah

#

it's easy and popular

timber oak
#

Hmm

obtuse gale
#

You want to get into python or something?

timber oak
#

Nah just wondering lol

prisma wave
#

https://www.youtube.com/watch?v=QyJZzq0v7Z4
this is quite an interesting video - it doesn't actually talk about functional programming much, it basically just explains how the big languages today got popular

Richard is a member of the Elm core team, the author of Elm in Action from Manning Publications, and the instructor for the Intro to Elm and Advanced Elm courses on Frontend Masters. He's been writing Elm since 2014, and is the maintainer of several open-source Elm packages including elm-test and elm-css packages.

▶ Play video
timber oak
#

I know a bit of python but not a lot

old wyvern
#

Simon also talks about that in the ivory tower video

prisma wave
#

java got popular because it was cross platform
ruby got popular because of rails
etc

distant sun
#

So I have these classes with an ID and I want a new instance of any when is needed. Would be a bad idea to use a supplier? Map<String, Supplier<Anything, MyClass>>

prisma wave
#

probably not

timber oak
prisma wave
#

yeah i guess that caused a big spike

#

python had more of a slow and steady growth initially though

#

there wasn't any "gamechanger", it just gradually got bigger and more popular over the ~30 years it's been around

timber oak
#

But I don't get how something like C++ isn't better for ML? I'm just thinking ML of something that requires great performance and python is pretty slow

prisma wave
#

you would be correct

#

the majority of libraries like numpy and tensorflow are written in c++

#

they just have python bindings, which makes them a lot more accessible

timber oak
#

Ohhh that's smart

#

Ah yeah I remember something about a lot of Python's math libraries are actually running in C++

prisma wave
#

mhm

#

so theyre fast but also easy

timber oak
#

Smart

#

How come Java doesn't use that?

prisma wave
#

it does in some places

timber oak
#

Or well I don't know any libraries that does at least