#general

3141 messages · Page 1838 of 4

twin lagoon
#

reposilite epic

mossy vessel
#

baseURl/configureSecurity

fallen oracle
#

Bax if you use the docker version of Nexus, I wrote a patched image that masks the IP.

mossy vessel
#

Did you not read the manual?

worn ember
#

reading is exhausting

mossy vessel
#

Project based matrix authentication with no overall access is what I do if I'm lazy

true canyon
#

I think my nexus instance is older than docker, Glare 😄

#

Either way, I'm not running docker. Happier to just scream test and be pretty sure it's fine to take down foreversies.

fallen oracle
#

Gotcha. I also maintain patched jars for the non-docker version since I'm not using the docker version yet myself

true canyon
#

So instead...

fallen oracle
#

So if you need some for a specific version, just lmk.

worn ember
#

i had it set to this

#

bruh with just read perms they can already see users kek not that i really care but thats kinda pepega

mossy vessel
#

Agent WhyIsEverythingAFSecurityRisk

worn ember
#

i couldnt even get that node to work

#

so ijust stayed with the root node

mossy vessel
#

Works fine for... 1 plugin lol

worn ember
#

jenkins keeps reeing about it lol

mossy vessel
#

Remove it?

worn ember
#

yeah i did now lol

#

weird how my builds are smaller on jenkins than when i build them locally

#

well their MB is not the same as window's MB apparently

tired heath
#

Is there actually a good reason to open ipv6 along ipv4 for a Minecraft server/proxy

kind island
#

@tired heath dont think so

#

is 1.18.1 stable? the warning is gone from the website and no new info under announcements

tired heath
#

I use it now more than a week to pregen worlds and setup stuff, so far had no issues, only the world has a lot of glitched structures but I guess that is a general 1.18 thing

serene bolt
#

I'm unaware of any glitched structure issue, and haven't experienced that myself in the multiple worlds I've created and pregenned so far

tired heath
#

Maybe just a funny seed

#

But my friend confirmed same stuff in vanilla

#

so no paper stuff

golden gust
#

structures and generation has always been fun

#

it's practically just plopped in, 95% of the time their considerations to how stuff is formed lines up

#

the other times you get a village house in a tree

void void
#

Efficient use of space!

ashen cliff
#

Vertical stacking.

void void
#

we're gonna get flats in villages soon!

viscid wedge
#

Was exposed to covid and my employer is saying I need to come in anyways if I'm asymptomatic

#

Seems irresponsible to me but alright

short yarrow
#

what are some common mistakes you guys notice that cause bugs or issues? i just realized i didn't validate an input. it didn't cause any issues (yet), but it's frustrating that i missed it

golden gust
#

input validation, forgetting that the person interfacing with stuff is an idiot (e.g. bad configuration and 0 validation of it), forgetting to check stuff, state in/validation, etc

thorny perch
#

perpendicular neighborhood

little frost
#

@void void best emily

void void
#

uwu

peak ginkgo
#

@shadow mauve Is that 1.18 and Optifine?

shadow mauve
#

Yes it is

#

Both

#

@peak ginkgo

peak ginkgo
#

Do you see the renderer freaking out in vanilla?

shadow mauve
#

No havnt even tried

peak ginkgo
#

I'm 90% sure you could switch to Fabric and use Sodium/Iris and be fine

shadow mauve
#

I will try that and report back

wintry dune
#

are you in the uk\

peak ginkgo
#

Modern modding is a way better alternative than OptiFine, I might have a link here

rare tiger
#

It uh

#

works

#

I either had to build them myself or find a fork from another impatient soul

peak ginkgo
#

Yeah no same lmao my mods folder is cursed

#

I used to back it up but my raspberry pi needs a reinstall and I've been busy on a commission

viscid wedge
wintry dune
#

oh thats weird

#

here if youre exposed you take a test and if youre negative youre clear

lean kiln
#

iirc vanilla too but I haven't checked in a bit

coarse lily
#

I've only ever seen it as a Sodium bug personally

lean kiln
#

well the person who brought it up said it happened with optifine

#

idk though

coarse lily
#

Ah interesting.

#

I haven't seen it with vanilla at all.

lone ember
#

anyone else experiencing a problem with realms where some progress is lost across the entire server?

lone ember
#

ok nvm it's probably just a datapack being dumb

magic river
#

Wow this vacuum is way too smart

#

It just used LIDAR to map out my whole house in like 10 minutes, mostly figured out what to avoid before it bumped in to it, and then took the most direct path back to its charging station without hitting anything or getting lost on the way

#

I can see, on the map it made, chair legs and such

#

It didn't figure out my desk since the feet are too low for the LIDAR but it figured out the legs and my slippers sitting next to it

static badge
#

wait till it finds one of these bad boys 🐀

magic river
#

That's what the 🐱 is for

true canyon
#

What vacuum is it?

magic river
#

iLife A10

#

You can even see my feet in the map where I was blocking it from running in to the outlet on the floor under my desk (which I marked as a no-go zone after mapping was done)

merry talon
#

those sound great until I remember my living area is in a constant state of chaos

#

also I love that your vacuum has lidar but teslas won't

serene bolt
#

I use like a $100 roomba and it just bumps into everything, and if there's any cable on the ground, it usually grinds the heck out of it or tugs it and whatever it attached to it with it :P

#

the more expensive vacuums definitely seem worth it

merry talon
#

you need one of these now too @magic river

magic river
#

I think it redoes the mapping every cleaning run too

#

It just has a mode to only generate a map and not do any cleaning so you can map things out ahead of time

#

It doesn't have to try to wedge itself into every nook and cranny when it's in mapping mode, only areas where the LIDAR doesn't make it clear if there is a wall or not

#

It basically just went around peeking around corners and bouncing off the few things where the LIDAR could see but it couldn't fit

#

I had a $100 roomba, it literally just does a random walk around the place

#

It'll go over the same area many times and not go to some places

#

Then I got a better one that would generate a map as it ran but it didn't have LIDAR so it bounced off everything to create the map and forgot it after a run

#

It would get stuck on cords or jammed in to places all the time

merry talon
#

lol yeah if you're gonna make a purchase that is basically the embodiment of affluence and laziness probably don't cheap out on it

#

and I don't mean that in a bad way at all, they're neat

magic river
#

Oh I'm super lazy, that's why I got it 😛

#

But I also have three animals here so I would need to go sweep twice a day to keep the hair under control

#

Forget that, let the robot do it 😛

merry talon
#

just a normal day

warm anchor
#

still my favorite cat video

#

it totally doesnt give a shit PepeLa

serene bolt
#

I'm not surprised that your favorite cat video is of a cat being cooked

warm anchor
merry talon
little frost
#

nelson will fight a candle relentlessly

void void
#

im scared of vtubers

#

mom come pick me up

merry talon
#

thanks reddit mods, very cool

#

miko POGGIES

#

How it feels to chew 5 gum

mighty storm
#

oh

coarse lily
#

Different chew.

peak ginkgo
#

👍

sick yarrow
#

is papermc free?

#

i wanna host a smp

merry talon
#

no but I can provide it for you at a special discount if you paypal it over to me

coarse lily
coarse lily
sick yarrow
#

i downloaded it

coarse lily
#

And explain your issue / be descriptive.

solid siren
#

hi was planning to build invisible parkour

#

is there a way to remove this

coarse lily
#

IIRC the barrier block outlines are only in certain gamemodes, not survival.

#

But you can use a modified client and see them.

#

So there's no way to 100% hide them from everyone.

solid siren
#

im in survival

#

i see

#

thank youu

coarse lily
#

I think if you're an op you see them also

peak ginkgo
#

Goto adventure I think

#

Because it only shows it on blocks you can break?

serene bolt
#

yeah adventure will hide the outlines

#

the thing with barriers and creative mode / op is the barrier particle effect which is different than the bounding box outline

#

although you might only need to hold the barrier item to see the particles, can't remember

unkempt drift
#

You still see barrier block outlines in survival? Huh

south matrix
#

sure do

#

you can technically change light block levels in survival too

#

the vanilla client just doesn't outline them

#

aint that somethin

vernal moth
#

outlines are there cause you can interact technically

#

in adventure you can't interact unless explicitly defined

#

thats why you see no outlines

south matrix
#

if you had a mod to be able to interact with light blocks the server would let you change their light level by default

serene bolt
#

which is awful design lol

#

the client can be trusted 🙂

#

pretty sure paper patches that right?

#

I remember there being a machine maker patch about that

south matrix
#

not that i've seen

#

but i'm dumb

unkempt drift
#

Oh yeah, pure just linked it

worn ember
#

Who's this machine maker guy why is he patching all my exploits smh

full fjord
#

Question?
How many servers should I be able to run on a Ryzen 7 5800X with 128gb ram, because right now I have 2st 32gb server one for each gamemode

warm anchor
#

Wut

#

You have a dedicated r7 5800x

#

Or shared host

full fjord
#

Yeah, dedicated

south matrix
#

and you're asking how much ram to dedicate to a server

#

the world is a cruel place

full fjord
#

nah

south matrix
#

realistically 8G is good for a server unless it has many people

warm anchor
#

Yes. I found it surprising someone who had a dedicated would still be asking that question lol

south matrix
#

12G if you have 100+ players

warm anchor
#

Coz there is no answer to it

full fjord
#

Not my question 🙂

#

1 dedicated server with 2 vps on it, each running 2 servers

#

or 2 vps each running 2 servers (for halv the price ofc)

warm anchor
#

That’s cursed but ok

#

If you already own the dedi why would you create more overhead

#

If you want the most out of it

full fjord
#

For an separate instance for the two diffrent servers

chrome kite
#

e

barren gazelle
#

@chrome rune

#

hello

plucky sparrow
#

so, you have a dedicated server and you chose to “split” it into vps?

rotund jewel
#

who can help me ?

nova hill
red timber
worn ember
#

lol

coarse lily
worn ember
#

go bother them about it lol, its their plugin thats causing it

vernal moth
#

mfw I got called twice now that my delivery will be here in 2 hours

worn ember
#

call them back to make sure

charred sleet
#

must be important

void void
#

Does anyone know a way to show my group manager rank on top of my head infront of my name?

#

like Hypixel does

red timber
#

nametagedit?

void void
red timber
#

you can make NTE display pretty much whatever you want

void void
#

Ty

twin lagoon
#

groupmanager

#

what is this, 1984?

red timber
#

yes

twin lagoon
#

hello mikro pepelove

red timber
#

helo

#

i remember the days when i played with bungeecord and i really liked GM

#

i wanted global groups

twin lagoon
#

literally the only reason i used groupmanager was the essentials chat integration

#

and i'm pretty sure that's the only reason people used it aswell

red timber
#

so what i tried to do, was symlinking yml files

#

didn't go that well

#

moved to PEX

#

that worked fine, had to set up NetEvents plugin to sync pex globally and that was it

#

there was one paid plugin which made life easier and iirc claimed there is no other way

#

but just had to configure pex properly

#

luckily that's a past now - luckperms is the way to go

void void
twin lagoon
#

luckperms

void void
#

at 1.8

#

1.8 isn't supported shrug

#

But how is hypixel doing it

#

while I am in version 1.8

red timber
#

idk ask them

void void
red timber
#

hypixel forums post inc

plucky sparrow
#

Well uh I doubt hypixel uses &8[&7MEMBER&8] for nons

#

They use simpler ranks

#

Such as &2[MOD]

void void
plucky sparrow
red timber
#

gotta append &r to fix names

void void
#

Fixed

#

I just removed the bolds

plucky sparrow
void void
#

Lmao shut up I play on cracked cause it's easier to use multiple instances to test plugins such as trade

#

I don't have 200 alts

plucky sparrow
#

who asked tho

void void
plucky sparrow
#

I don’t want to know it

plucky sparrow
#

Keep it to yourself

void void
#

Lmao this is funny

cobalt pecan
#

Ew cracked

void void
#

Lmao sure

cobalt pecan
#

What?..

void void
#

Notch himself told if you have no money for the game crack it

cobalt pecan
#

where lol

void void
#

twitter

#

another one for the offline mode bingo @warm anchor

cobalt pecan
#

lmao

cobalt pecan
#

notch isn't involved in mc anymore lmao

void void
cobalt pecan
plucky sparrow
#

Exactly lol

void void
#

He made it

cobalt pecan
#

how

void void
#

His own rules

cobalt pecan
#

no it's Microsoft's rules

void void
plucky sparrow
#

Yeah he might have made it but it’s owned by Microsoft

void void
#

Lame for him

cobalt pecan
void void
#

to sell it

plucky sparrow
#

“Microsoft sucks” - someone using windows and playing on Minecraft

chrome cosmos
#

this is a legit use case

cobalt pecan
#

lol

void void
#

I don't want to be traced

#

anymore

plucky sparrow
#

It is sharvesh, the issue is that he’s saying piracy is good and allowed because notch said so

frank otter
plucky sparrow
frank otter
#

and if it was added we'd have to overwrite paper-chan in the middle

cobalt pecan
#

tweet from almost 10 years ago*

#

Give it like 7 days

void void
cobalt pecan
#

no I wouldn't lol

void void
#

lol

void void
#

and theres not denying to this

frank otter
#

if I was broke I'd not play the game and work on getting not broke

void void
#

end of discussion

frank otter
#

if I was broke I imagine there'd be bigger problems that not being able to minecraft

cobalt pecan
#

Hi noah

void void
wraith trail
#

Hey, keep in mind discussion of offline mode isn't allowed here

#

Really in any way

cobalt pecan
#

oh really?

void void
#

rule change was merged recently

frank otter
cobalt pecan
#

gotcha, alright time to shut up

void void
#

lol

#

Jk

rare python
#

Is it time to report a discord account for being underaged?

plucky sparrow
rare python
#

Oh... Good.

void void
#

Sorry I am not 40 years old with no life developing in Minecraft 🙀

#

Get Real

frank otter
#

half of me wants to ping mods

plucky sparrow
#

I really want to as well

cobalt pecan
#

half of me thinks they're watching too

#

maybe with popcorn

frank otter
#

🍿

plucky sparrow
#

half of me thinks they’re already debating what to do with him

cobalt pecan
#

na

#

not that complex

void void
#

The thing is, I didn't do anything, suddenly you just started being toxic and now you're turning it on me

chrome cosmos
#

stop the reply chains

void void
#

Lmaoooo This is tooo Ratio

#

I am done

frank otter
#

discussing offline mode
"you can't discuss offline mode"
at least I have a life
guys stop being toxic

chrome cosmos
coarse lily
#

Everyone drop it

void void
#

How does that offend you

coarse lily
#

@void void we don’t support offline mode servers here. Sorry.

void void
coarse lily
#

I didn’t say you were. But arguing the point here makes no sense.

plucky sparrow
#

Ocelot, he is using offline mode for a legit use, which is not bad, the issue is that he said piracy is “good” just because an old tweet from notch said so

chrome cosmos
#

he is in his lan world
and shows proof he has a legit mc account

#

for testing

void void
chrome cosmos
#

stop the cap

coarse lily
#

Again: let’s drop it.

void void
#

@plucky sparrow Add me

plucky sparrow
#

why even

void void
#

Just do it

plucky sparrow
#

why should I do it

void void
#

To Chat

plucky sparrow
#

You can chat here

void void
#

I am not allowed

#

tho

#

?

plucky sparrow
#

Unfortunate for you

coarse lily
#

Seriously, both of you need to drop it.

#

You were both jerks.

plucky sparrow
#

I already dropped it long ago

#

He’s just insistent

void void
#

And I am stopping it here, I just want him to know that his is toxic asf

coarse lily
#

Continuing to tell someone they're toxic isn't dropping it.

worn ember
full fjord
#

Anyone else get some wierd dates from getFirstPlayed? and also with getLastPlayed, like 6h wrong

worn ember
#

define weird

full fjord
coarse lily
#

That's 6 days not 6 hours.

#

But no, I haven't seen that before.

full fjord
#

getLastPlayed is 6h wrong

coarse lily
#

Wait that's not days.

#

If it's 6 hours off check timezones.

full fjord
#

already did

coarse lily
#

If it's 4 months and 6 days off then I dunno.

full fjord
#

UTC+1 for me

#

getFirstPlayed is waaay of

#

getLastPlayed is just little off

coarse lily
#

They should return a UTC time.

merry talon
#

delete your player.dat and try again ¯_(ツ)_/¯

marble lark
#

MC was the only game i could legitimately afford kekwhyper

warm anchor
#

Wtf Sherman

#

Stop being poor!

marble lark
#

damn you're right

#

I should have willed myself to not being poor

chrome cosmos
#

that one weeb : dear poor people get rich

waxen panther
#

dear poor people get rich

worn ember
#

dear homeless people: buy a house lmao

stiff wadi
#

Just inspect element your PayPal balance

quiet shore
limber knotBOT
#

damn I wish I could justify buying a laptop now that frame.work is available in europe ;_;

grand mesa
twin lagoon
#

that tells us nothing

limber knotBOT
#

I suggest using the help channel as well as providing the full log

distant ingot
#

Hi

worthy geode
#

hi

vague frost
#

Do you guys look?

distant ingot
#

@quiet shore cool thx for boost

vague frost
#

Guys, when I couldn't download the world edit plugin, can you send a file compatible with paper mc?

rare python
#

Anything compatible with spigot will work on paper

vague frost
tender cloud
#

when you try to download a legacy version is it supposed to add 5 seconds each time you answer wrong? lol

rare python
#

Probably

#

If you don't like it, I propose a solution... don't download a legacy version.

tender cloud
#

I'm not doing it for myself, just testing my plugin on older versions but I love this is a feature

#

hey

void void
#

IMO it should multiply the wait time by five when you get it wrong

clear mulch
#

i'm seeing the warning removed for papermc 1.18.1
does this mean we are at a good release now?

autumn glen
#

There is no more #experimental paper channel either

#

So yeah looks like it

clear mulch
#

ok

void void
#

check pins in paper-gelp

rare python
marble lark
#

well you probably could just download the sources and compile it anyways if we're talking about legacy servers

short yarrow
#

what exactly is the purpose of a data transfer object?

golden gust
#

I mean, Ive never heard of that term before

#

but, a literal 2 second google just suggests that it's a plain object with no logic inside of it for doing stuff

#

?

short yarrow
#

it seems like it's just a pojo, but also have a converter to convert X -> SomeDTO or whatever. i'm not too sure what the use case is though

frank otter
#

I think it should say try again in x seconds

stiff wadi
#

INVALID ANSWERS, TRY

left swift
#

people get those answers wrong?

marble lark
warm anchor
#

they do. I think the question is too hard @left swift for your average 1.8 user

marble lark
#

better name for that would just be a data class tbh

marble lark
void void
daring owl
#

Anyone have tips for reducing world size

warm anchor
#

set the border closer?

daring owl
#

I meant if there was some sort of tool t clear unmodified chunks

warm anchor
#

both Chunky and MCA Selector has it

daring owl
warm anchor
#

by chunk inhabited time

#

aka how long the chunk has a player live inside

daring owl
#

Chunky can?

#

I'm not on a dedicated or vps so mcaselector isent an option

golden gust
#

I mean

#

They just said that chunky can

#

twice pretty much

twin lagoon
#

@warm anchor riepeek

formal tusk
warm anchor
#

test against spigot jar then open an issue @formal tusk

twin lagoon
warm anchor
surreal ledge
#

when will 1.18 come out

twin lagoon
#

it's been out for ages

surreal ledge
twin lagoon
#

it's been out for ages

surreal ledge
#

:/

#

is it stable

twin lagoon
#

as stable as any other version

surreal ledge
#

no one told me

#

;-;

warm anchor
#

sorry next time we will send you a mail personally

#

make sure your address is updated!

surreal ledge
#

i meant

#

like did it say in anncouncments

golden gust
#

It's the holidays

#

and many other internal projects

#

it's being worked upon

surreal ledge
plucky sparrow
#

What a bad service

hexed dragon
#

You receive mail. I use my eyes.

warm anchor
hexed dragon
#

He doesn't care about paper-help during the holidays.

#

So there is a packet of mentos fruit near me and the only colour I have seen come out of it is just pink.

#

There is 5 left and the next I will have is pink.

deep arch
#

ok

marble lark
#

ok to be fair neither do i

left swift
#

paper help losers

raven cypress
#

Why should i build my plugin with shad-plaugin?

worthy geode
#

shad?

raven cypress
#

shade

worthy geode
#

well, if you want to shade something in, like a dependency or something

left swift
#

shade everything

#

we stan a 100mb plugin

red timber
#

upload to spigotmc in parts

#

either every part as an update, or even separate resource

golden gust
#

So, what you do is upload a bootstrap jar

#

and, then you release the base data

#

and then, everything after that is a patch file

ancient bolt
#

sounds like a blockchain

golden gust
#

maybe here and there you release a much wider roll-up patch for people who forgot to update

#

😄

ancient bolt
#

do what microsoft does for windows update

#

collect the current state on the client, then the server generates the necessary patch

#

to go from x -> y

#

don't worry how long it takes, and that it's incredibly slow, because it'll just run in the background

red timber
#

xdelta3

left swift
#

blockchain spigot plugin

golden gust
#

You know

#

am just glad that microsoft fixed the update times in XP

worn ember
#

isnt that against spigot's rules? It should work offline too

golden gust
#

right... before it was EOL'd...

#

I mean

#

blockchain is always online

left swift
#

XP still lives on in my heart...

golden gust
#

and, that only counts for premium stuff

left swift
#

and nightmares

ancient bolt
#

yeah it's made substantial improvement. my partner's friend's husband got a job working at microsoft on the windows update system

#

he told me some of the nightmares, it's ancient code they don't care touch else they might incur demons

worn ember
#

Paper developers suggesting to break spigotmc rules, you heard it here first folks 👀

ancient bolt
#

apparently there's a master xml file that no one actually knows how to make, except for one guy who makes it manually. everyone just assumed it was generated automatically

ancient bolt
#

he said tracking down the guy who made the xml to talk to him so he can document the process and later automate it, went through over 10 people, because no one had any idea where it came from

worn ember
#

windows moment

marble lark
#

what happens if something in the xml is wrong

left swift
#

ded moment

ancient bolt
worn ember
#

i read between the lines obviously

left swift
#

windows xp is code for spigotmc

marble lark
worn ember
#

maybe you should scroll up a bit

left swift
#

to the conversation I was in

worn ember
#

yes

left swift
#

ded moment

ancient bolt
#

that sounds like a fun plugin. boots up a windows XP VM alongside the server that you can RDP in to manage the MC server

left swift
#

yeah

#

fun plugin

marble lark
#

piss

ancient bolt
#

but I talked with him several months ago, and am no expert, am probably misrepresenting and misremembering things

marble lark
#

oh

left swift
#

how is your plugin efforts going ded

#

dedrtp

marble lark
#

if your memory is accurate though seems like I'd do well in a position at Microsoft

#

this sounds exactly like something I'd end up doing

worn ember
left swift
#

1 down 500 to go

marble lark
ancient bolt
#

my favorite horror story is oracle db

#
oraguy

Oracle Database 12.2.It is close to 25 million lines of C code.What an unimaginable horror! You can't change a single line of code in the product without breaking 1000s of existing tests. Generations of programmers have worked on that code under difficult deadlines and filled the code with all kinds of crap.Very complex pieces of logic, memory m...

#

What an unimaginable horror! You can't change a single line of code in the product without breaking 1000s of existing tests.

marble lark
golden gust
#

hahahaa

#

yet

worn ember
#

mvn build --notests blaze

ancient bolt
#

Oracle and OpenJDK has actually been putting in a lot of work and making a lot of process at cleaning the JDK up

worn ember
#

well ig package would be the right one but shh

marble lark
golden gust
#

problem with codebases is that sometimes you just need to have a period of time where you say, fuck it, no features, lets clean some shit up and fix a few issues

worn ember
#

now if they could only get rid of Object in old code an use generics that'd be great

golden gust
#

issue there is that then you start infringing upon everything else, e.g. now every change request probs has to be rebased, etc

ancient bolt
#

obviously it has to be an ongoing progress, but graal largely exists as a research project for an attempt at creating a better GC system, written in Java. and it's generally been really successful so far

marble lark
#

"we'll get back to you within 2 weeks" and proceeded to finally accept my request after 2 months

golden gust
#

which, gets in the way of dev time, etc, etc; so, you just end up in this case where code bases just rot

worn ember
marble lark
#

Graal is just everything rewritten in Java tbh

#

guess everyone at OpenJDK forgot about Metropolis

golden gust
#

I mean

#

being self hosted is like, the dream for every programming language

marble lark
#

the only ones I can think of that have succeeded at that are C/C++ and Rust

golden gust
#

haha

#

I just added a todo like that yesterday to a codebase 😄

worn ember
marble lark
#

but i don't really look at that many language implementations

marble lark
#

I can't fucking spell gg

golden gust
#

Well, not a major one

ancient bolt
#

java's JIT and graal's work at AOT compilation ends up being legit good enough these days to match C code compiled with -O2 optimization most of the time. It's absolutely possible, with time, for Graal to become a fully self-hosted JDK/JVM

golden gust
marble lark
#

Graal still has the AOT?

ancient bolt
#

The only real slowdown Java has over stuff like C is the GC and much much more heap allocation. The upside is Java can allocate on the heap faster than malloc() can

ancient bolt
golden gust
#

I fucking hate the way IJ commented that block of code too, but, I was tired and really CBA

marble lark
marble lark
ancient bolt
marble lark
#

java's JIT and graal's work at AOT compilation ends up being legit good enough these days to match C code
tbh though wasn't that usually the case given equal level developers for both?

golden gust
#

well

#

working in C, you have more grounded access to stuff

ancient bolt
#

you missed my point

marble lark
#

like using C doesn't just magically mean it'll be fast you actually have to know your shit for it to be fast

golden gust
#

in java code ofc you can micro-op shit for the JIT

marble lark
golden gust
#

but, the goal is that you don't gotta do that stupid shit to get good perf out of it

marble lark
#

oh

#

i see

ancient bolt
#

the point is that the machine code generated from the JVM's JIT can match the optimization level of C code compiled with -O2. Java still has several things inherent to it, which I mentioned a few being GC, lots heap allocations, bounds checking, type validation, and others, which will mean it's always going to be doing more work than C

#

but Java of today is orders of magnitude more efficient than it was several years ago, and it's continuing to improve

marble lark
#

yep

#

it's definitely come a long way

#

surprises me that people still think it's as slow as it was way back in the day

golden gust
#

Well, I mean, people just regurgitate shit

#

especially around areas which they don't understand, just look at the perf improvements java has had over the past few years alone

ancient bolt
#

The biggest thing is Java is a simpler language than C. Not simpler in terms of syntax, C is dead simple. Simple in terms of being able to write code that works first try, code which is safe and not leaking memory, code which can handle errors clearly and effectively. So that's the tradeoff.

Rust does all of that at compile time, and is extremely good at it. But that also creates inherent complexities and limitations that can be difficult to work around. And of course it has the most complex language syntax I've ever seen

golden gust
#

people still think we're in java 1.4 territory

marble lark
#

yeah

#

how long ago was 1.4 i can't even remember

#

(The Java version not the Minecraft version)

ancient bolt
#

computers didn't exist yet

wide chasm
marble lark
#

wait a minute

ancient bolt
#

the first C compiler was written in C

#

before there was a C compiler

#

fun fact

marble lark
#

.g java 1.4 release date

limber knotBOT
#

The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Ja...

marble lark
#

...

upbeat falconBOT
wide chasm
#

February 2002

ancient bolt
#

Not joking, dennis ritchie wrote the C code and then compiled it by hand using the rules of the compiler he just wrote

marble lark
#

woah

#

i thought he wrote it in assembly

ancient bolt
#

One of very very few languages (and only early languages) which was entirely self-hosted from the beginning

marble lark
ancient bolt
golden gust
#

C is supposed to map pretty damned tight towards the ASM output

ancient bolt
#

these days C compilers generate huge unbelievably complex instruction sets for seemingly simple C programs. But that's not how it always was

#

yeah back then most things were 1:1

marble lark
golden gust
#

So, "compiling" manually is trivial, especially back then

ancient bolt
#

basically just shorthand for assembly

golden gust
#

nowadays you have much more complex instructions and such as well as steps of optimisation to produce more efficent output, etc

marble lark
golden gust
#

Well, more

#

x86 is more complex

#

SSE, etc

#

and then you have many other architextures too

wide chasm
#

x86 is a fucking behemoth

ancient bolt
#

it was still useful to write the C code, as a shorthand for assembly, because that's what it is (was). a shorthand

wide chasm
#

There was a video named "top ten craziest x86 instructions" and, like, wtf

marble lark
upbeat falconBOT
ancient bolt
#

TOP TEN CRAZIEST X86 INSTRUCTIONS! YOU WON'T BELIEVE NUMBER 8!!

wide chasm
#

Even if you don't know x86 it's pretty understandable

ancient bolt
#

if you want to have your mind blown, see https://youtu.be/KrksBdWcZgQ

A processor is not a trusted black box for running code; on the contrary, modern x86 chips are packed full of secret instructions and hardware bugs. In this talk, we'll demonstrate how page fault analysis and some creative processor fuzzing can be used to exhaustively search the x86 instruction set and uncover the secrets buried in your chipset....

▶ Play video
void void
#

me when PCMPxSTRx

marble lark
#

i know a little of it but not enough to write hello world in it

void void
#

😌

ancient bolt
#

there are more instructions available on most CPUs than what is publicly documented

marble lark
#

sounds kinda like public APIs vs internal methods to me

wide chasm
#

I wrote diff (not entirely obviously) in x86, but if you asked me now I couldn't even let the program exit with exit code 0.

marble lark
#

bad analogy but meh

ancient bolt
marble lark
#

ay you now have a new follow C:

golden gust
#

Yea, I recall doing ASM like once in college

#

never again, basically

ancient bolt
marble lark
#

I've only written one very simple one before and it defo wasn't x86 or annything fancy

ancient bolt
#

would have been better to implement my own memcpy in assembly imo

golden gust
#

pmsl

ancient bolt
#

x86 did away with the shift registers instruction that the 8086 has

#

so you can't dump all of the registers with a single instruction anymore

marble lark
#
# memcpy seems to screw with all kinds of registers
# So just to be on the safe side...
    push rax
    push rbx
    push rcx
    push rdx
    push rdi
    push rsi
    push r8
    push r9
    push r10
    push r11
    push r12
    push r13
    push r14
    push r15

    call _memcpy

    pop r15
    pop r14
    pop r13
    pop r12
    pop r11
    pop r10
    pop r9
    pop r8
    pop rsi
    pop rdi
    pop rdx
    pop rcx
    pop rbx
    pop rax

wide chasm
#

I also only did it once, forgot all about it and now Secure Programming comes along, gives a piece of assembly code and asks to find the security vulnerability. Like, come on

ancient bolt
#

probably lack of bounds checking

wide chasm
#

I mean, that was one of the common ones

#

But, as an example the professor wrote like ten lines of C code to print "Hello name" and there were four security vulnerabilities in that

ancient bolt
#

well

marble lark
#

gotta love buffer vulnerabilities and all

ancient bolt
#

10 lines of C to do that is already a sign you're doing something wrong

marble lark
#

printf();

ancient bolt
#

or more accurately, doing way more than you should be

#

best security in code is not having the code at all

marble lark
#

s t o n k s

golden gust
#

joy is all of the buggy baby bumpers using a managed language gives you

marble lark
#

this is probably the most assembly I've seen in a repo ever

worn ember
#

i heard stef loves assembly

ancient bolt
#

small problems generally don't need a lot of code to solve, but with assembly even doing simple things sometimes requires a lot of instructions when you don't know how to use all the fancy vector shit like me

marble lark
wide chasm
#

Actually 11:

#include <stdio.h>
char ∗hello(const char ∗name) {
    char message[256];
    sprintf(message, "hello %s \n" , name);
    return message;
}

int main(int argc, char ∗∗argv) {
    char ∗message = hello(argv[1]);
    printf(message);
    return 0;
}

This was the code, if you feel like it, find the four security vulnerabilities, three of them are quite easy, the other one is more difficult imo

marble lark
#

never tried fortran but heard it has a bad rep

ancient bolt
#

fortran definitely has some things which are much less convenient than C, but there's other things which are way easier than C

#

remove the requirement of defining all variables at the top of any function or procedure and honestly, it's not that bad

#

other than that oddity it feels much more modern than C does in some ways lol. Much richer type system

marble lark
ancient bolt
#

That said, this is modern fortran, it used to be much much more rigid than it is now, much harder to work with. The file type is f90 because it's the 90's version of Fortran where they removed a lot of ridiculous shit like every line has to be 8 characters indented, unless it's a comment....

#

it supports complex number types natively too, pretty cool

worn ember
#

you rather than me

wide chasm
golden gust
#

kinda reminds me of how go is basically this language designed around "devs out of college know jack shit but we need productivety"

ancient bolt
#

well fortran isn't remotely like go lol

worn ember
#

hey thats me

golden gust
#

Like, theres so many languages out there which look interesting but are so stupidly complex to get into and such

ancient bolt
#

it's a language targeted for mathematical shit, basically made by/for a bunch of mathematicians

worn ember
#

Sad thing is, i'm probably one of the best java devs out of my college and that says a lot lol

#

well from my year

ancient bolt
#

and because of that, modern fortran compilers can sometimes produce more efficient code and use more obscure intel instructions etc than C compilers, being a language targeted at efficient math work

wide chasm
#

I mean, the larger companies want you to both know how to program pretty well and want you to know all the theoretical stuff behind it as well, even though those are two studies, not one.

golden gust
#

Like, java is one of the weird areas where it's a pretty darned simple language and easy to work with (but, the ecosystem is somewhat kinda semi-ass at times)

ancient bolt
#

out of all of the problems, fortran produced by far the smallest binary

marble lark
golden gust
#

Like, fortan at least from my understanding is a pretty powerful language, but, at the same point, so much of a chore to get into for most

ancient bolt
#

and only linked with system, which in macOS land is the same as only using kernel syscalls

golden gust
#

and then you have go, which seems to cut out stupid things in the quest of being "easier"

worn ember
#

I like that C# for example has nuget which just works out of the box, so you dont need a build system like gradle or maven, its just integrated

ancient bolt
#

arrays start at 1 too

#

because, math

#

same as matlab

wide chasm
marble lark
golden gust
#

I mean, it's consistent, for the most part

worn ember
#

being able to use var now already solved most of my grudges with java

marble lark
#

grr

golden gust
#

but, java is so far behind other languages

#

and we have such a dated ecosystem which has many massive pros and cons

marble lark
#

i shouldn't be struggling this much

golden gust
#

e.g. we had the node.js "random person deletes a library and breaks the entire ecosystem" solved before n.js existed

wide chasm
#

There are 256 characters, but how long will the message be that is going to be stored in there?

marble lark
#

The memory isn't allocated
my mistake yeah got a bit mixed up with something from C++

ancient bolt
wide chasm
#

Yep, that's two out of four

ancient bolt
#

oh y'all are talking about it down here

marble lark
#

oh i had it backwards

wide chasm
#

Indeed, it's not that it is too much, but that it may be too little

ancient bolt
#

oh no check on the length of argv

wide chasm
#

Yes, that's another one

marble lark
#

yep that's what I was thinking

#

we have 1 left?

ancient bolt
#

does sprintf automatically add the ending null terminator?

wide chasm
#

sprintf doesn't change the null termination I believe and the provided string is null-terminated, so that shouldn't be an issue.

marble lark
#

it sounds like it would, being labelled as safe printf after all

wide chasm
#

It's at least not listed as an issue here.

ancient bolt
#

sprintf means it prints to a string

#

not safe lol

marble lark
#

wait

#

why am I getting all the standard library calls mixed up

#
#include <stdio.h>
char* hello(const char ∗name) {
    char message[256];
    sprintf(message, "hello %s \n" , name);
    return message;
}

int main(int argc, char ∗∗argv) {
    char* message = hello(argv[1]);
    printf(message);
    return 0;
}
#

might as well move it down here so it isn't all the way at the top lel

#

at this point it's a guess lmao

ancient bolt
#

technically the * should go on the name, but doesn't matter

wide chasm
#

I copied from a PDF, which didn't really like the monospace font, so I manually tried to make it readable, but may have missed some stuff

ancient bolt
#

technically that's a style issue, but in C the * is a label on the name, separate from the type

marble lark
#

might be something to do with printf being passed message instead of the return value of hello directly but I really doubt that

left swift
#

sheesh this stuff be do going on Nerdge

wide chasm
#

Storing it in a variable first is fine

marble lark
ancient bolt
#

for instance, this is legal:

int notAPointer, *isAPointer, **pointerToAPpointer;

If you did:

int* thing1, thing2;

then only thing1 would be a pointer.

#

Is the other security issue that the result of sprintf isn't checked? Doesn't verify that it returns a success value

upbeat falconBOT
marble lark
ancient bolt
ancient bolt
#

all it gets is a pointer

wide chasm
#

Yes, but that falls under the buffer overflow issue

#

You could count it separately, but then there are five issues 🙂

ancient bolt
#

I disagree in that instance, they are different issues. But that's cool, that means there's something else somewhere...

marble lark
#

i swear it's going to be something extremely obvious and me and DenWav will end up headdesking

ancient bolt
#

I think I know it

wide chasm
#

I personally didn't find it obvious when I was going through the manual, the three obvious ones you have spotted already

sonic shadow
#

is there a way to get the latest build of 1.17.x from v2 API? without the need to specify the build

ancient bolt
#

should either be:

printf("%s", message);

or

puts(message);

Since otherwise printf would try to parse message

wide chasm
#

Yes, very good

marble lark
ancient bolt
#

I'm by no means an expert, just gotten my hands dirty with C a few times lol

wide chasm
#

If you were to put formats in the provided message, C would start grabbing those from the stack (if it doesn't already fail with a segmentation fault).

ancient bolt
#

enough that I am aware of the fundamental things you gotta watch out for

wide chasm
ancient bolt
#

which the C compiler should set to 0 beforehand

marble lark
#

i assumed the parameters were all in the right places to begin with :P

ancient bolt
#

but yeah you should never pass a string to printf, the format string should be a literal, to prevent that kind of issue

wide chasm
#

Haven't tested it myself, just said what was stated in the manual

ancient bolt
marble lark
#

I only understand a bit of this lmao

lea rdi, [rip+printf_input]
mov rsi, rax
mov al, 1
call _printf 
ancient bolt
#

I mean there's a comment on each line to explain what it's doing

wide chasm
#

Looking back at my old Assembly I don't seem to be doing that. But that may just be my code being wrong.

ancient bolt
marble lark
#

load effective address of instruction pointer + input to rdi
move rax to rsi
move 1 to al
call printf imported from somewhere

marble lark
ancient bolt
#

rdi is the first arg, rsi is the second arg, etc

#

there are other rules for non-int functions (or functions with param lists longer) which utilize other registers and/or the stack, but I made sure to only use int functions (functions which take integers or pointers) in all of my functions, and any functions I called

#

that's defined by the calling convention, this is at least true for macOS

marble lark
wide chasm
#

I remember that being the convention as well

#

rdi first, rsi second, I believe there's a third one as well and then more arguments go on the stack.

marble lark
#

i really can only remember rsp and rip

#

the rest are pretty foggy

ancient bolt
#

rdi, rsi, rdx, rcx, r8, r9
I think there's more after that, but that's all I needed for my reference

#

I think I should have done mov rax, 1 tbh, to clear out anything else in that register to be safe

#

but the info I found said it only reads al

wide chasm
#

Looking back at the course manual for systems architecture they don't state anything about al, they only state that rax controls the vector arguments, which should be set to zero if you're not going to be using them.

#

But this was also for x86_64 AT&T

ancient bolt
#

ah, so I'm right that I should have nuked all of rax

#

the reason that code worked is probably just that the value stored in rax immediately prior (the result of the problem) was small enough to just fill al

#

still a security risk

wide chasm
#

Probably, but if you're going to do more Assembly, should definitely check it, cause looking at my old code, the syntax is different so there are probably differences.

marble lark
#

all of the potential issues with asm waiting to blow up in your face makes me wonder how those guys at OpenJDK manage to retain their sanity lmao

#

10k lines of assembly

wide chasm
#

Like, that instruction you wrote would have been movq $1, %rax for me.

marble lark
#

if you're going to do more Assembly
I did want to try it but ended up giving up partway through :/

wide chasm
#

(I believe it would work without the q as well, but still.)

frank otter
#

oh I'm not a fan of assembly

#

wrote a whole bunch code a while ago

#

called the switch to 64 bits thing

#

now I have to put r in front of all the registers? what?

#

makes no sense to me

wide chasm
#

If you work with different sized registers, you need different instruction to accomodate for those.

#

In my message above the q is to make it for 64-bit registers.

woven idol
#

Hello guys there is a channel to ask about textures?

golden gust
#

er, I mean

#

we do server stuff

#

if you're creating resource pack stuff this is probs far from the best community for it

foggy veldt
#

First

cosmic raft
foggy veldt
#

I always wanted to do that

zealous fractal
left swift
#

oh no

plucky sparrow
#

secon

left swift
#

slow mode is coming

worn ember
#

those reactions going crazy

grizzled edge
#

Let's go

plucky sparrow
#

I can feel #general IQ levels dropping soon

left swift
#

reactions are lagging on my screen

left swift
plucky sparrow
#

who are you

real zealot
vernal moth
plucky sparrow
vernal moth
#

holy these samples are big

low niche
cosmic raft
#

new forums entirely

foggy veldt
#

I learned to never click on announcements after everyone ping

#

It’s instant client crash usually

worn ember
#

i like to watch the chaos

tacit dome
#

Damn the new forums looking fancy

plucky sparrow
#

The new forum looks great

worn ember
#

what forum software is that?

worn crest
#

pls make forum default dark theme kekw eyerape is that

worn ember
#

oh nvm im blind

formal turret
#

ohhh yeaaa using the superior forum software now

worn ember
#

its literally at the bottom lmfao

left swift
#

hangar powered by xenforo

foggy veldt
#

Am I dum forum looks the same to me

worn ember
formal turret
#

it was discourse yea

balmy isle
#

so why are they using 2 forums?
is the old one gonna go away after hangar?

tacit dome
#

oh now I'm blind

amber frost
#

epic

foggy veldt
#

Is this what it looks like or is my cache fucked

balmy isle
#

wrong url

frigid ferry
#

Yo since when did the forums change

#

🥵

left swift
#

tomorrow

foggy veldt
#

Oooh

cosmic raft
#

it'll go read-only soon

balmy isle
#

aha

#

before hangar is done? 👀

#

also, what's with the facebook emojis? 👀

tacit dome
worn ember
#

Paper on its way to overtake Spigot:
Xenforo: ✅
Plugin repo: stonks
Biggest market share: ✅

tacit dome
#

will a migration happen later?

left swift
#

paperbucket

cosmic raft
tacit dome
worn ember
#

Don't forget to ping mini every now and again to work on hangar blaze

tacit dome
#

Can't wait for Hangar do

red panther
#

new forum looks amazing paperUwU

tacit dome
#

As I'm making great progress with my world gen resource

foggy veldt
#

Time to claim my username so I don’t have to pay $10 to change it aikar

tacit dome
#

that has paper support(Only really implemented platform atm)

twin lagoon
#

where is dark mode

#

yooooo there is dark mode

cosmic raft
plucky sparrow
#

Show dark mode

#

Omg it looks so fancy with dark mode

worn ember
#

is the footer supposed to look like that?

left swift
#

o em gee

red panther
golden gust
#

no

#

as per typical

#

DED shows up

cosmic raft
golden gust
#

AND FUCKING BREAKS SHIT

worn ember
#

i swear i dont do it on purpose

worn ember
plucky sparrow
#

Ded really just here breaking shit all day

worn crest
left swift
#

gecko

worn ember
#

i prefer light mode for forums tbh

golden gust
#

yes and we think that you're bad

ebon needle
#

Wow, new forums site looks incredible!

worn ember
#

if you cant make it ded proof dont make it at all zoop

ebon needle
#

But why I receive this message when trying to register?

worn ember
#

well cuz you should probably register and not login?

ebon needle
#

Yeah, but this is register window

worn ember
#

after you fill everything in?

ebon needle
magic river
worn ember
#

damn im 66 sad

#

not real og

magic river
#

Look at my join date 😛

worn ember
#

thats no fair

golden gust
#

Better yet

worn crest
#

only second user?

golden gust
#

ofc, kash cheated

worn ember
#

fabulous

ebon needle
worn ember
#

see, i'm not the only one breaking stuff

foggy veldt
#

im going to be top poster on paper forums, believe it!

tacit dome
#

Member #58 ye

foggy silo
#

number 80

cosmic raft
#

► Lazy Town - New Videos!: http://bit.ly/2pomR9p

Sing along to the Songs of Lazy Town!

Subscribe to the Lazy Town YouTube channel: https://www.youtube.com/channel/UCNuLcjVa3vCeHFyUeTKtBlA?sub_confirmation=1

Click to watch more Lazy Town Videos 🎬 🎤🎼

🎬 🎤🎼 All New Lazy Town - Karaoke/Sing-a-long HD : https://www.youtube.com/playlist?list=PLZs...

▶ Play video
ebon needle
#

member 77

#

cool)

left swift
#

under 100 club

#

just for it to be deleted when hangar comes out in 2030

ebon needle
#

They would reset accounts especially for hangar?

cosmic raft
#

If anything, you'd need to do a password reset or similar at some point

quick pasture
foggy veldt
vernal moth
#

actually not working on hangar right now, just rebooted my PC, lol

#

I completely changed the layout of my room, had to rewire everything

#

PAIIIN

ebon needle
#

F

foggy veldt
#

the other day i changed the mounting bracket position on my desk and it was horrible

#

my fingers still hurt thinking about it

vernal moth
#

really like how it turned out

foggy veldt
#

ye looks nice

vernal moth
#

no longer piano party in the kitchen tho

foggy veldt
#

that couch next to the desk looks dangerous tho, id probably take a nap break every 10 minutes lol

vernal moth
#

reason 12457234 why hangar isnt done 😛

#

where else should I put my couch tho? lol

#

I only have this room and a big kitchen

uncut kindle
#

Not sure where best to ask but, how would I go about custom model data texture for a chest? I've done it with other items, but chests are... funky.

ebon needle
#

Hangar is probably the thing that I'm most waiting for in minecraft)

golden gust
#

jesus that place is kinda narrow

#

and that sofa is thic

#

wait, is that your bed behind the PC? o.O

vernal moth
#

yes thats what I did today

cosmic raft
#

that photo hurts my eyes

#

i can't tell what is what

vernal moth
#

lemme get a non distorted photo

golden gust
#

Like, now I kinda wanna go see minis house just to see what the fuck of a layout his place is

magic river
#

Yeah doing a landscape shot that goes around a corner makes my brain die

fallen oracle
#

Yeah

vernal moth
magic river
#

I'm assuming the room is L shaped anyway

fallen oracle
#

I was trying to figure out the problem

magic river
#

Oh, or not...

twin lagoon
#

Why has my Forums post been removed

quick pasture
#

cable management tm

vernal moth
#

and the couch is collapsible so I got room for VR shit

#

ignore that cable mess next to my desk, thats my 5.1 sound system that I need to connect....

golden gust
#

Okay, that makes the place look like less of a total abomination

vernal moth
#

the rest of the cables are somewhat nicely managed

foggy veldt
#

It reminds me of trainwreckstv old apartment if you know who that is, everyone used to say he lived in a shipping container

unkempt drift
#

it really is like the most oddly proportioned room in terms of length vs width

foggy veldt
#

Looks nice for the space available tho

magic river
#

It looks like someone took a bedroom and walk-in closet at the end of a hallway and made it in to an apartment

vernal moth
#

this is the flat

#

the walls are not even that far off angle wise 😂

mossy vessel
#

Actually quite small, room wise, yet a lot of space

vernal moth
#

I like the bed in the niche

#

its 43sqm

#

I don't really need more for me alone

mossy vessel
#

My living room has 39sqm

vernal moth
#

its enough to spend a weekend as 2, or to invite friends for an evening

mossy vessel
#

But it's opened to the staircase

vernal moth
#

am pretty happy and lucky that I have this

#

am living around parks, I can walk to everything, I have the subway/tram infront of the house, 5 min cycle to work, 2 min to autobahn, its perfect

golden gust
#

ah

#

My place is kinda the same sorta setup

#

studio flats are literally ass

mossy vessel
#

I have a few km to the next bigger city... with 20k people living around

golden gust
#

but, like, what else can you do

vernal moth
#

oh 20-40min (depending on BAC) to the cologne party street is a big plus too

mossy vessel
#

Countryside rocks KEKW

vernal moth
#

having a bigger flat would just mean more work, not worth it 😄

golden gust
#

living out of the city has some pros but defo some cons

vernal moth
#

until am in an actually stable relationship for once it makes no sense for me to move

mossy vessel
#

Means more space to fill with dumb crap you need to tidy up

vernal moth
#

I can't even buy stupid amount of cloths since I only have a small drawer 😄

golden gust
#

for me, I just kinda hate the bed in the living room setup

vernal moth
#

I did cheat and have some cloths stored under my bed now tho

magic river
#

Oh god I have too many clothes

#

At some point I seem to have managed to buy about twice what will fit in my dresser