#general
3141 messages · Page 35 of 4
my activation is working fine 😛
Note with IJ update, if you have outdated plugins, when you open the upgraded version it might not correctly index your JDK so update the plugins and then restart IDE and for me that fixed the indexing process.
prior to update it automatically updated the plugins
didn't for me. two plugins were outdated post-upgrade. upgraded IJ through the toolbox
such as the lombok plugin
didn't update on its own
Toolbox is super easy
Yes on my other PC i updated now with toolbox but the plugins where not updated
yes i use it
but not on my mac
i like keeping it of junk 😄
Anyone else rocking Dracula from Material Theme UI?
I use gruvbox
gruvbox ? wat
owo new jetbrains version
also apparently a computer networks competition here is half a CCNA exam
holy shit
I just accidentally ran a clean task on my src dir instead of my dist dir
thank god vs code saved most of it cached
I'm gonna start commiting more often
Mm, Material UI's Dracula with contrast mode, and nyan cat progress bars, hawtness.
Gruvbox is easy on the eyes
.g kotlin in action free pdf
(MiniDigger) https://github.com/liuzhanta/Android-Developer-Books/blob/master/Books_Kotlin/Kotlin in Action .pdf -- Android-Developer-Books/Kotlin in Action .pdf at master ·...: "Android-Developer-Books. Contribute to liuzhanta/Android-Developer-Books development by creating an account on GitHub."
🤢
so how damaging would it be if spigot or whatever implemented a feature that allowed you to set a cap on how many chunks can be ticked at the same time
lol is this old minecraft
mebe
oic
.mcstatus
(MiniDigger) Online: account.mj, api.mj, authserver.mj, minecraft.net, mojang.com, session.mc, sessionserver.mj, textures.mc
no the old auth servers for pre beta 1.8 are gone
anyone else notice big usercache file takes much longer to startup in 1.13 than 1.12
What movie/series to watch? Urgent 😄
lol
free headaches
^^
Hey anyone here on a desktop?
I'm on phone with no JavaScript console
Need to debug my website
societyproject.group
i have created multi module project with gradle and with minecraft development plugin. How do i apply dependencies on all 3 modules without putting them on every single moudle's build.gradle file ?
Now check
Idk why
@proud inlet look PM
Check the new website
The link which says new website
It was supposed to be very spruced up but it just has no CSS
https://paste.md-5.net/iyojuvafed.cs the dependencies don't apply to the parents
Wait what are you talking about the main page?
Because the bug isn't on the main page it's the new website not loading any CSS
@void void https://paste.md-5.net/imugategib.cs still don't apply
Also, you've not got any css rules?
ivan you should've simply replaced subprojects with allprojects
If you send a manual request to the css urls it will display rules
also why so old shadow plugin?
But on the website it displays no CSS rules
5.0.0 is out lol
Like wtf
@void void idk. the mcdev ij plugin configured dat
A group on 2b2t dedicated to statistics.
yeah... don't always trust automatics
Does the CSS load
mikroskeem like that it again doesn't apply https://paste.md-5.net/eyeloyefas.cs
last time I checked the mcdev plugin didn't even generate gradle for bukkit?
define "doesn't apply"
MiniDigger: it didn't created a build.gradle for the common
hahah
maybe evolving into an human finally? 👀
DemonWav didn't created the multi module creation very good
think i need to trust the good old maven
and do it alone
multi module support in gradle is kinda crap anyway, even i haven't figured it out properly
especially with kts ffs
multi module?
well, sub-projects support or w.e you'd call it
Im dyanakiev 😄
subprojects are gradle calls them
oh
as*
gradle works fine with subprojects wat?
have to apply e.g kotlin plugin in root project and then in subprojects {} block
if i don't do that in root project, then gradle bitches about unresolved references in subprojects {} block
oh, are you talking specifically about mc-dev's generation
not about gradle in general
howdie
i am speaking about gradle in general tbh :D
maven masterrace
i will have core, bootstrap, bukkit and bungee
...if i don't do that in subprojects block, then kotlin plugin isn't applied in subprojects (obviously)
think its ok
maven > gradle
What happens if I cut this method for entities?
maven is ok if you don't need to do some advanced stuff
which is 90% of the time (not needing to adv stuff)
like yeah it's nice you can script advanced scenarios in gradle, but those situations are the minority, gradle treats them as the majority.
i like gradle's buildSrc functionality
"5-hour ENERGY® | Made for Hard Working People | 5hourENERGY.com" lol nice ad title
why does it say 'Updating' O.o
I think they released 2019.1
How dafuq do i delete something from jetbrains toolbox @slim nymph
I saw that, I think it's just saying that the install is set to track EAPs too
Click the settings thing and then uninstall from there
ahhh 2019.1 is out
Oh thats a settings button
I thought it was just a glorified design button
And i think 2019.1 is released https://tknk.io/vQZE
Yea, was running the RCs recently
They updated the splash in like the last RC, before that it was some weird static thing, and then i seem to recall it was the weird static thing but without the static, and now
Such fancy <34
electroniccat: thank god they changed the splash before release
Clion looks cool too https://tknk.io/yCT2
every version gets a new splash, yes
@acoustic pilot
waoh
New Single / New Album: https://www.rammstein.com Video Director: Specter Berlin #Rammstein #Deutschland #duhastvielgeweint
(DiscordBot) Rammstein - Deutschland (Official Video) - length 9m 23s - 142,924 likes, 1,871 dislikes (98.7%) - 455,562 views - Rammstein Official on 2019.03.28 - NSFW****
oh shit: Fixup and Squash actions are now available from the context menu of the VCS Log tab providing you with the ability to quickly create commits with the fixup! and squash! commit messages.
that can be EXTREMELY helpful for paper development
What does your guys paper development environments look like.
a folder and IDEA?
Like you don’t make the patch files manually right?
In the paper repo ?
yes
the file named "paper" at root of repo
i have 'p' aliased to that
and ec aliased to my personal forks version
and p12 for paper 1.12 lol
So you work on source and then the script makes the parched and then patches for you
give it some water :(
um im not sure what you just said
but when we run paper patch, it gives us fully pathed repos
we edit said repos, then 'save the state' with paper rb
Ahh gotcha
its basically snapshots
Ye that’s dope
we can rebase, reorder, edit, delete, add, anywhrre to the whole commit stack
then snapshot save the new state of the patches
I’ll need to look into that
i wonder what kind of nightmare would spigot have been if I hadnt created this system for him all those years back
I'm the one who started this patch process for spigot 😛
If only the while project went in that direction
just spigots scripts are now so far behind papers in friendlyness
Hey does http://societyproject.group/newWebsite/index.html have CSS?
A group on 2b2t dedicated to statistics.
For some reason nginx is being dumb
me open a 2b2t link at work? no thanks lol
saw some porn content on the reddit the other day thankfully reddit masked as NSFW
Lol I tried to ask on a non-2b discord because no one trusts links on the other ones
But seems like no one trusts an honest question
Im stranded on a phone
its not that i dont trust the link safety, i dont trust the SFW nature of the content lol
And I can't access JavaScript console
Idk how to prove it's sfw...
Society project isn't like that we just measure queue length and do world downloads
Oh wait I'll attach a screenshot
its sfw
@heady spear wtf your name
Is it loading css
yes
yes
I tried clearing
could be CF Edge Cache
Is 2b2t dead
If I wrote a plugin using JDK 8 will it work with JRE 9, 10, 11 and 12 too?
No it's too big
@gusty idol yes
But if I wrote it using JDK 12 it wouldn't work on JDK 8, would it?
12
Is there a jdk 12 ?
yes
When was that released
Well I saw this
there are even pre 13 builds I think
this month
Should I stick with Java 8? Isn't it the current LTS and don't most people use Java 8?
11 is the latest LTS
My host is only at 8

Java 11 adaption is incredibly slow.
So I can’t use 11
not everything is ready to deal with modules
Still renders like this
I want to use it but honestly guava has everything I wanted from 11
no it doesn't
I am using Java 11 without modules and everything seems to work fine.
For me it does on mobile
Wait what’s this module talk about with 11
lol
The Java Platform Module System specifies a distribution format for collections of Java code and associated resources. It also specifies a repository for storing these collections, or modules, and identifies how they can be discovered, loaded and checked for integrity. It inc...
So a standard for what maven has been doing for how long ?
full control over whats an API vs not to the outside world regardless of use of the public keyword
ive hated that java didnt have a way to say 'anyone in my package and children'
ie module-scope
i wish they would of added module scope as a keyword instead of the more complicated nature of module definitions instead though
let the manifest define what packages are part of your module
internal in C# totally isn't abused at all tho
well anyone violating api contracts is unrelated 😛
I just hate that Im forced to bundle all my classes into same package, cant separate them into other packages
and at this rate itll be a while before libraries can safely mandate 11 :/
That's only 1.6 million combinations, I'd opt for more characters. (the 4 characters)
You wouldn't want to have duplicates in the first place.
Can't you use something like https://mcuuid.net to make them readable?
Minecraft UUID and username lookup. Resolve, convert and view name history of any username/UUID today.
take a look at something like alphaID
@void void store it as int, if you really want you can print it in hex form...
of course
I'd go with more if I were you.
@slim nymph do you know if this might be a bug with paper
or just dont do any. use an int, convert to hex form if you want a shorter number
they are both not opped and it says they are when tabcomplete
@lavish lichen #paper-help
prob an mc bug
Or yeah ^^
kk
What's that
A queue length graph for 2b2t
why done on a phone
mfw I just realised that entityJoinedWorld in 1.12.2 is actually tickEntity when compared to the mcp
now I understand why MCP is so beloved
also why ain't this async? https://i.tcpr.ca/anslhxr
that naming is actually on grum :P
phoenix616: came in a commit by grum, but not necessarily by grum; many people worked on version bumps and then had it squashed
@ornate spindle https://github.com/PaperMC/Paper/issues/1522
¯_(ツ)_/¯ their fault if they don't attribute commits properly
I really hope that ends up on 1.12.2 also, but doubt it based on the progress
no it wont
it'll end up on 1.14 or 1.15 :^)
😦
it wont even make 1.13 at this rate
I feel it'll be next to impossible to backport it
wouldn't it be based off the current chunks though
though if 1.12 is still active and you do the work to backport it and its implemented correctly, id prob take it
that specific task isnt chunk based
sorry meant the other stuff in Regionized & Parallel Processing
Integrate custom recipe creator
yeah lot of the other stuff def wont be backportable w/o the same major effort
@void void we already have that in paper
On 1.12.2 is?
only thing I could see maybe being backportable along with the tracker would be the entity and tile entity ticking
@slim nymph not worth doing for 1.13, 1.14 refactors entity tracking
rip
none of the existing classes exist in 1.14
@cosmic raft i wont even be ready for it lol
im trying to get my ow ndamn server to update, which looks like 1.14 will land before i can
1.13.x will need i9 to have perfect tps?
It requires an Intul e8-1337Q
welcome to existence
thanks
where did you exist before then?
invaded by a sponger
lol
they sent a request from the Minecraft guild, only one we share
lol
Thanks for letting us know you need to change your account password.
Update it by clicking the button below.
I didn't request a password change, but thanks Sony
Shit
I took a long at ACF
It indeed looks way better than my thing
How does it not need you to use plugin.yml

fuck it's hard to make java ignore invalid certs
You can register in bukkit's command map
TIME TO FLOSS BOYS
It would figure this would show up the day after I ordered a ROCK64 https://forum.odroid.com/viewtopic.php?t=33781
Although that's more competition for a RockPro64
Amaranth: interesting
you ordered a ROCK64 already?
Yeah, right after we talked about it I ordered a board, aluminum case, and power brick
oh wow
I was thinking about getting a rock64 or similar competitor
might hold off for that now
Kingston A400 120GB SSD for $28.99.. hmm
The ODROID-N2 with 4GB costs more than I spent on that whole kit btw
Although hardkernel is usually really good about working with upstream and keeping things up-to-date
I'm probably more in the market for a rock64pro
which is closer to odroid prices
unless they're cheaper from resellers I guess
havent really done much than spitball around
yep
anyone know if https://www.kingston.com/us/ssd/consumer/sa400s37 is good?
The A400 SSD is an entry-level solid-state drive that provides ultra-responsive multitasking, higher performance and speeds 10x those of a 7200RPM hard drive.
only bought samsung ones in the past
some of the benchmarks put it about average with other sata ssds
idk about price/performance etc
but if you can find a deal idk why not
$28.99 for 120GB, which isn't bad
what do you mean for good?
its ssd and its cheap
it should work just fine
what for you gonna use it?
storing the nuclear launch codes
make sure to encrypt it then 
sha256
uh never mind just store in plaintext and add random characters at the beginning the to verify str replace them
genius
thanks
base64(rot13(base64(rot13(value))))
i use SHA 25543278965273895783512 to encrypt so hard that your mother
what is rot13 tho
rotate 13 degrees
Hey look it's a headless Nintendo Switch for $99 https://www.phoronix.com/scan.php?page=article&item=nvidia-jetson-nano
The ROT13 encoding shifts every letter 13 places in the alphabet. Numeric and non-alphabetical characters remains untouched.
oh lol never heard of this
we need bot for this
.rot13 do we now
(DiscordBot) qb jr abj
lol..
.-.
do you judge me?
wow
ooh phool i like that word
(DiscordBot) cubby
cubby pog
oh i love indians they smell so good
ew.
(DiscordBot) puhathf
Presenting PHOOL PHOOL PE BANI TERI TASVEER FULL VIDEO SONG from PHOOL movie Madhuri Dixit in lead roles, released in 1993. The song is sung by Kavita Krishn...
(DiscordBot) Phool Phool Pe Bani Teri Tasveer | Kavita Krishnamurthy, Udit Narayan | Phool Songs | Madhuri - length 8m 13s - 26,269 likes, 6,415 dislikes (80.4%) - 15,577,006 views - Gaane Sune Ansune on 2018.02.10
this shit is trash
@void void so you offer?
No
😭
it's actually hilarious
I dont think that irc bridge is GDPR safe
ur not gdpr safe
how can you have a boolean called gender.. isn't the point of a binary option that each is worth 50%? girls are worth fucking 0.2%
more like a booleanot
Sry
what does gdpr stand for? global d? privacy ?? 😄
gigantic dick pubic rasputin
i knew it
private boolean hasDick = true;
why private?
insecurities
are you woman but secretly man?
I’ve got trousers on
Already doing that
tushy
It’s actually so outdated that it has weird math concepts
my dad just ran into the house at 95 mph and is screaming in the bathroom
it sounds like hail over the ocean
what the fuck
he's literally screaming like a goddamn autist
shit in silence you moron
... how do people typically deal with bot swarms raiding a server?
just have one that lasted only a couple minutes
had*
egg's plugin question mark
Does paper have any additions to jukeboxes? apparently spigots is very strict
we only deal in juiceboxes here
potato
yikes juiceboxes
at least its not a leaf
2 ur retarded
3 ur bad
do you have 3 functioning braincells
they don't call me Brian the Magnificent for nothing whips out massive hamburger
god, flashbacks
watching a youtube video
mentioned "master/slave IDE pins"
go back to hell, master/slave pinning
I'll take 5.
@cosmic raft install your damn windows updates
no!
😦
https://paste.gg/p/kashike/e8c91846142a48169c78923b8cb33766 wheee updated list
they are legal backups of his dvds
at least I run non-pirated operating systems and software like intellij etc
kek
definitely not lots of illegal pirated content on these drives
@cosmic raft remember moving the jumper on your motherboard to reset CMOS 
I still have a jumper on my motherboard for that ._.
wow
tbh most of them probably do now
changing RAM timings in 2019
and i think there's a couple other neat buttons on there
but ignore them for the most part
it's more dealing with OCd ram
rather than timings
this dark reader chrome addon is quite nice. my eyes are happy
does a pretty good job at making every website decently readable in dark
yeah i use github dark
and prefer native dark themes
but otherwise dark reader is nice
So with YAML at least, you can preserve the order of keys (SnakeYAML can), but Configurate doesn't expose anything like a Yaml Factory that can be passed in to control the creation of the Yaml object, which would be necessary to do this. Gotta write my own loader, or use reflection 😛
But good to know it's possible
@acoustic pilot yaml factory? you mean to create the Yaml?
Yeah
what would you need to do to make it preserve order? code?
Ugly, though lol
you'll have a hard time doing that too
as it's stored in a ThreadLocal internally
(hard time using reflection)
Yeah I'd have to replace the ThreadLocal if I wanted to use reflection
Custom loader seems cleanest
definitely
Also I think Bukkit uses a cleaner approach to ordered keys
Might use whatever they are using
@acoustic pilot are you using YAML solely for preserving the order of keys 
It uses org.bukkit.configuration.MemorySection#getValues
Well I don't particularly care what the configuration backend is
Because I don't intend to store much there
Most of my stuff I will have configured in teh database.
The configuration is only necessary for things like actually storing the database credentials lol
I have been naming things cleverly to order them, although one thing I straight up named Z-something
Yeah I probably wouldn't do that 😛
With HOCON you can't really do it because of config merging and stuff, I think
Or so I remember reading on lightbend/config's GH
My configuration needs actually are really simple, I've thought about using properties lol
what are your configuration options?
Mainly in the core plugin it would store database credentials, in every other plugin I would have them configured through the database.
And I assume I'd add some other configuration stuff down the line, but the idea is most configuration will happen in the database.
properties passed in the command line would work too, docker friendly too :3
Could also just pass in hikari.properties directly into Hikari, too
Hm, yeah I think I can do everything from the database, only need the database configuration to be on disk in one plugin. Even my RabbitMQ can be configured in the database.
Why not? 😛
because that's something that, to me, should be configured just like you're configuring the database
shouldn't require connecting to one service to connect to another
The database is a required service for any plugin
It's going to have to be there, always
doesn't change what I said :P
It's merely getting the configuration from the database, which again, is required.
So it makes no real difference
So I think it does change what you said.
cuz he dont wanna ssh/sftp into his serbur ever again
maybe he building web panel for configs
Panel is farther down the line, but yes that is one of the ideas, too.
ayyy
don't see why on earth you'd change settings like that on the fly like that
my configurations have always been git managed
easier to track changes and rollback
if only some plugins would stop re-ordering keys every time they load
like paper and spigot.yml
bukkit.yml iirc doesn't change so why do those
do they?
personally i store my db zipped in json form on git
yaml is unordered so yeah
For some things it does work great though, like mcMMO config was always good for git versioning
you save and it goes lolololol
2 it uses a linked map
For Bukkit's configs it uses a LinkedHashMap for keys for order is preserved if using the Bukkit Config API
idk what snakeyaml is doing
but Spigot/Paper don't use that API
yaml itself has no ordering in the spec
that's what I figured
something's different ¯_(ツ)_/¯
oh wait yeah it does, it uses YamlConfiguration so it actually would be using the same Representer, too
find and inspect the src of the plugins
The difference is Bukkit uses setDefaults, we set default values
that's about the only difference I can see
you use default values because that makes managing it easier :>
wat dat
what is that cancer and why
bukkit.yml and spigot.yml are pretty much loaded the same way
So the problem is somewhere else
and what are the diffs
The difference is Bukkit uses setDefaults, we set default values
basically just that
the rest is pretty much exactly the same
hmm the last few commits were one line diffs actually
new stuff, so maybe ordering was fixed
have a 39+- diff from a commit 2 months ago
lets see it
that one had a config version change, found another with 29
config version change in it too?
no
diff?
ugh idk how to copy diff on gitlab
ctrl + c
but how do i paste
Yeah it was definitely broken in the past. I have my old server configs still on BitBucket, the diffs were bad
alt + f4
ya it doesn't take the +- stuff
So if it works now it's a recent fix
view it in patch format?
Or fairly recent
take a screenshot
burn a leaf
must've used a hashmap for storing them or something
or serialized it to one before
something retarded certainly
paper.yml and spigot.yml were in every commit
ya
jesus
even bukkit back then used a linkedhashmap
Let's see what bukkit.yml diffs looked like
Also from 2015: https://i.imgur.com/XdiYKZX.png
I purge my repo from time to time to clear up space hence only 5 months
lol
bukkit.yml was always clean
btw kashike, I haven't written a custom loader yet, but I get the feeling it wouldn't work any way.
Just by looking at the object mapper code
Fields are cached in a hash map, so when it gets serialized back to the node, order isn't guaranteed, I would assume.
mmm.. probably
I showed my coworker that you can change final fields in java with reflection
he was like that's awful
😄
Lol
And then there's SimpleConfigurationNode which also forces map values to be returned as an ImmutableMap
ah fuck 2019.1 updated
i need to do my thing
oh no i don't
I already did my thing
horray
hurray?
w/e
oh yes i do
I need to release a build for2019.2
oi demonwav
im on 2019.2 and my plujen is borken
wtf r u doin pls fix nao kthxbai
that doesnt look guitar hero enough
git checkout 2019.1
git merge dev
git checkout dev
git merge 2019.1
so when are browsers going to decline prompts for notification access by default. There's like 2 that I want them from and a million I dont
sigh
you can set that in chrome preferences already
in site settings
set default to no
when I was back for holidays
open up my parents pc and immediately get like 15 notifications
monkaS blah blah
peak performance 
Speaking of oob, reminded me of oobe, and thus reminded me of the best classic there is: https://www.youtube.com/watch?v=SKricIeeru0
The music track featured when Microsoft Windows XP is used for the first time. The audio file can be found on all Windows XP editions at: C:\Windows\system32...
(electroniccat) Microsoft Windows XP Welcome Music - length 5m 25s - 2,251 likes, 40 dislikes (98.3%) - 284,479 views - MicrosoftWindowsUser on 2007.09.08
look at mr uses branches
a coworker is working for a client that doesn't understand why branches are useful
only thing that peaks once is 2's braincell count
and wants them to just commit directly to HEAD (with CVS)
if they're from CVS they probably dont know why they're useful
"ok so I can have 50 copies but why"
because they used them like once and then tried to merge that shit and when fuuuuuuu
CVS stands for "cancer versioning system"
so throughout jetbrain's different intellij dependencies
they have groupids including com.jetbrains.intellij, org.jetbrains.intellij, org.jetbrains.idea, and com.intellij
and a few others
and com.jetbrains.intellij is the groupId for the actual intellij
@cosmic raft re dark reader, i just found it has different 'modes', like for spigot it was a weird blue background but 'static' mode helped make it normal
github dark > dark reader
for github
yeah im turning it off on stuff that has good dark modes
https://i.imgur.com/gLupgDa.png its a bit buggy but best balance of colors
why is it so blue
Spent 12 hours trying to figure out a bug triggered when I changed our code from generated commonjs modules to ES modules
so weird in blue
https://i.imgur.com/QmjLSWp.png this is normal spigot blue
Turns out when using commonjs modules a library's isPromise check was failing for an async function we were having it call so it expected us to call the callback it provided to us (and we did) but with ES modules the check passed like it should and it ignored the callback and used the return from our function
Our functions all returned void so it was setting everything to undefined
I spent half my day trying to figure out if our polyfill for promises was resolving twice since it looked like the callback was getting triggered twice, turns out one of those was us and one of those was the library being helpful
I feel like this was a terribly dumb issue to spend a whole day on
I am using core-js, I was trying to figure out if it was broken :P
over/under them actually fixing this? https://youtrack.jetbrains.com/issue/IDEA-209948
I wonder if they do those releases manually and are just like "fuck I don't want to do all of these dependencies"
Probably :P
The worst thing is all my async getComponent() functions were actually returning the return value of calling that callback so I just have to change return callback(null, component); to return component;
We almost had it :P
Project Paper-1.13-Maven-Deploy build #529: FAILURE in 17 sec: https://papermc.io/ci/job/Paper-1.13-Maven-Deploy/529/
fucking hell why does javadocs have to be so strict
how do I reach peak performance
@upper flicker 😮 fuck jetbrains hasn't released their first 2019.2 EAP build to the maven repo yet
I use pre
code explains itself amirite
<code><![CDATA[
What will I do 😦
i did pre
worked for me
<itemStack> and <string> are xml tags there
well, if javadoc's parser works anything like c#s
tbh i have no clue how it works but
rider has a 2019.2 snapshot versions for whatever fucking reason
i really dislike javadocs being html.
Kotlin uses markdown in kotlindocs but it's missing some (imo) really key & important features from javadoc
so it's like
one or the other, they both kinda suck
looks like i need {@code}
which will autoescape everything in the tag
looks right
You didn't do what I said
you can't put @literal in @code like that
what i really dislike about this is that its now less friendly to copy/paste from the IDE
at least I don't think you can
pretty sure you can
oh shit that is disgusting
this said to do that
brb gonna puke
biggest issue with {@literal @} is it includes the leading space in front of the @
suppose I should move that irc notification too
Which is annoying as shit
I don't even write javadocs
godocs says there's no formatting in godoc
just write it all in comments
all you got is pre-formatted with 4 spaces
have people decompile your code
does that even work I don't think so
no
just include a string in your code
a string for each method
called <methodName>Docs
It'll survive compilation then
probably n ot stricter
I wanna stab whoever thought the right syntax for listing available java versions was status
dude just make array of string called comments
violent
but hug whoever included the switcher script in arch
i believe you did have some issue with 11 in past Z, it feels familiar
with the line the comment is supposed to be and then the comment itself
will test locally
switcher script is dope in arch
but I need to be able to switch faster / on other platforms with more versions
so I wrote my own scripts
and it works on mac too
On other systems I just write a function for it in bashrc yeah
Project Paper-1.13-Maven-Deploy build #530: STILL FAILING in 14 sec: https://papermc.io/ci/job/Paper-1.13-Maven-Deploy/530/
ah yes
switch (boolean?) {
case (1):
"please remind me how to do a switch statement I'm too tired for this"
}
wtf is that shit
help
use if else for boolean
like this?
if (boolean):
then {
System.printline("hello"):
}
else
{ System.printline('goodbye"): }
?
like ternary
what in god's fucking name is that
a seizure, presumably
aikar why is ur jd change in the reuse buffers commit
@austere ivy this is the canonical way of writing that (boolean ? (Runnable) () -> System.out.println("hello") : (Runnable) () -> System.out.println("goodby")).run();
don't worry
i'll save you @static badge
public class Permuter {
private static void permute(int n, char[] a) {
if (n == 0) {
System.out.println(String.valueOf(a)) ;}
else {
for (int i = 0; i <= n; i++) {
permute(n-1, a) ;
swap(a, n % 2 == 0 ? i : 0, n) ;}}}
private static void swap(char[] a, int i, int j) {
char saved = a[i] ;
a[i] = a[j] ;
a[j] = saved ;}}
stop that retarded shit before I die
I guess rather than:
if (boolValue) {
doStuff(1);
} else {
doStuff(2);
}
you could uh..
int num = boolValue ? 1 : 2;
doStuff(num);
right?
you write ur code branchless
GOODNESS GRACIOUS thank you so much Kashike
I've never seen that before I'm going to use that in my code now
like I've seen these:
mfw I literally gave you the best way to do it without branches
if (whatever)
{
System.out.println("whatever");
}
my way is branchless and fast
but like whoa
You don't appreciate my way
your way still has branches
rip
its still doing a comparision
System.out.println(boolean ? "hello" : "goodby"); @austere ivy
I can show you a branchless way
lol
if failed to predicte *
predictable branches are very cheap
i.e loops
with a counter
ur cheap
how will I implement AI then
branchless variant: int a = (boolean ? 1 : 0) + 1
jit should optimize out that to just use the boolean value itself
you will get 2 if true, 1 if false
what
I gave you ur branchless variant
Another branch-less way of building AI:
try {
(b ? "" : null).getClass();
// if branch
} catch (final NullPointerException e) {
// else branch
}
this PersistentStructureLegacy file is such yuck to import
The 3D Pinball for Windows - Space Cadet official music sounds like something that would be used in a keygen
(DiscordBot) 3D Space Cadet Pinball Music full - length 8m 48s - 2,368 likes, 39 dislikes (98.4%) - 162,675 views - Thi Be on 2013.08.15
@upper flicker for you ^
thanks
@ancient bolt why for him
he asked how to make AI
no
ok I agree but what even is a branch o-O
a branch is where leaves grow
a branch is spotted's parent
therefore we should avoid them at all costs
but like.. what does Java define a branch as?
it doesn't
are you asking about jls specs or jvm specs?
java just has jump instructions
what really matters is what it jits to
and then from there you can tell what branches and what doesn't
i mean semantically, java does refer to break/continue(/return?) as branching statements
semantically it's something that goes in two code paths
i'll have you know that try-catch blocks don't compile to jump instructions 😃
oh wow really ok?
that doesn't necessarily mean anything about what things compile to
wait where can we magically see this "JIT" to
asm output
I'm completely unfamiliar with what JIT does to code so is there like a simulator or something
a branch is just basically a jump
-Xbatch -XX:-TieredCompilation -XX:+PrintCompilation
goto
there's a jvm flag to print jitted asm
the fuck do you think it compiles to
a small mouse
java runs on potatoes
well if it's running on my laptop
