4 ms·
To be fair, since 2019 Mojang has been providing the mappings instead of everyone having to use community-created ones.
by ZeWaka 1y ago
To be fair, since 2019 Mojang has been providing the mappings instead of everyone having to use community-created ones.
- tripplyons 1y agoIt took me a while to find how to obtain the official mappings, but this article seems to have instructions: https://minescript.net/mappings https://minescript.net/mappings According to the article, official mappings can be found here: https://piston-meta.mojang.com/mc/game/version_manifest_v2.json https://piston-meta.mojang.com/mc/game/version_manifest_v2.j...
- mikkupikku 1y agoThey're also linked on the wiki page for each release, along with links to the client and server jars: https://minecraft.wiki/w/Java_Edition_1.21.5 https://minecraft.wiki/w/Java_Edition_1.21.5
- zachrip 1y agoWhy do they obfuscate if they're just going to provide the mappings?
- kulahan 1y agoWell, maybe that's why they're not obfuscating anymore.
- singron 1y agoProguard can also apply optimizations while it obfuscates. I think a good JVM will eventually do most of them itself, but it can help code size and warm-up. I'm guessing as JVMs get better and everyone is less sensitive to file sizes, this matters less and less.
- mort96 1y agoAnd there's no way to do only the optimisation part? Surely you could optimise without messing up class and method names..?
- the_hoser 1y agoOne of the biggest optimizations it offers is shrinking the size of the classes by obfuscating the names. If you're obfuscating the names anyway, there's no reason that the names have to be the same length. "hn$z" is a heck of a lot smaller than "tld.organization.product.domain.concern.ClassName"
- voxic11 1y agoYeah in some ways the obfuscation and mappings are similar to minification and sourcemaps in javascript.
- mort96 1y agoAnd minification in JavaScript only reduces the amount of bytes that has to be sent over the wire, it doesn't improve runtime performance.
- voxic11 1y agoAccording to the v8 devs it also can increase parsing performance > Our scanner can only do so much however. As a developer you can further improve parsing performance by increasing the information density of your programs. The easiest way to do so is by minifying your source code, stripping out unnecessary whitespace, and to avoid non-ASCII identifiers where possible. https://v8.dev/blog/scanner https://v8.dev/blog/scanner
- mort96 1y agoSure, but that's also just in the category improving loading a bit. It doesn't have anything to do with runtime performance.
- undeveloper 1y agoVery few people use mojang mappings -- the two big modloaders, forge and fabric (and their derivatives) have their own mappings respectively, due to the restrictions of the mojang mappings. It's possible to use the mojang mappings, but much less common.
- ZeWaka 1y agoAh, I was aware of the different Fabric (Yarn) mappings and internal names (due to the few mods like architectury) but I think Forge switched over to Mojang's? > As of 1.16.5 [(2021)], Forge will be using Mojang’s Official Mappings, or MojMaps, for the forseeable future Pretty sure this applies to NeoForge as well: https://neoforged.net/personal/sciwhiz12/what-are-mappings/ https://neoforged.net/personal/sciwhiz12/what-are-mappings/
- creatonez 1y agoPaperMC exclusively uses Mojang mappings, and it's the most popular loader for server-side modding these days.
- handsclean 1y agoPaper isn’t a mod loader, it uses Fabric under the hood. Also, what makes you think it’s the most popular server? I thought it was fading. I switched my server from Paper to Fabric years ago.
- dpoloncsak 1y agoI've recently been setting up a velocity server network for some friends and friends of friends, and I agree with your findings. I don't have much history on Forge vs Paper vs Fabric vs..... (and found it all very overwhelming, honestly) but from what I can tell, the popular sites like modrinth have communities way more focused around Forge/NeoForge. Paper does seem to have it's own site for plugins, hangar or something? (Don't have my web history on this PC) but the community support doesn't seem nearly as fleshed out. It is incredible though, before 1.21 the last time I played around with MC server hosting was probably around 1.8 days, when it seemed like you only had Bukkit and a few plugins for it