#dev-general

1 messages · Page 326 of 1

jovial warren
#

and kinda somewhat works

#

idk

stuck harbor
errant geyser
#

Seems to work fine for me rn ¯_(ツ)_/¯

stuck harbor
#

I do want to do that

errant geyser
#

Do it then

stuck harbor
#

man

#

I'm smol brain

jovial warren
stuck harbor
#

and rust is big brain

#

I refuse to use C

#

I'm not an idiot

jovial warren
#

I archive everything I'm not really maintaining

errant geyser
#

ah ok

jovial warren
#

feel free to use it though

errant geyser
#

I probably will

prisma wave
stuck harbor
#

maaaan

#

yes

#

I'm making my own fucking unix kernel

jovial warren
#

if I was gonna write an OS, I'd write it in C and x86 assembly lol

stuck harbor
#

jesus

#

rust is fast and memory safe

jovial warren
#

fair

stuck harbor
#

most bugs are from companies fucking up C code

#

causing memory fuckups

prisma wave
#

using C in the 21st century is borderline self-harm

stuck harbor
#

lol yeah

prisma wave
#

Especially when modern alternatives exist

stuck harbor
#

can I make an OS with an ECS?

#

...

#

I better

#

I refuse to use objects now

prisma wave
#

Performance critical? Use rust.
Want fast development? Typescript or clojure
Both? Rust again!

stuck harbor
#

lol

jovial warren
#

if you really rely on performance that heavily, C++ is probably the way to go

stuck harbor
#

I watched a bunch of conferences by the WASM and Rust core teams

#

man

prisma wave
#

Rust is just as fast as C++

jovial warren
#

is it?

prisma wave
#

Yes

jovial warren
#

proof = ?

prisma wave
#

Most, if not all of the modern features rust has are 0 cost

stuck harbor
#

rust was designed to be memory safe and fast

#

it is both

#

gg mozilla

#

gg

prisma wave
#

rust can even be faster than c++!

stuck harbor
#

:shock:

#

😱

errant geyser
#

oh Rust is made by mozilla?

#

Rust good

stuck harbor
#

mmmhm

prisma wave
#

In dynamically-typed languages such as C++, it is much easier to miss problems and issues in your code
What

stuck harbor
#

rust has a nice site

stuck harbor
#

I think that's talking about rust's strict compiler

#

so u get less bugs at runtime

prisma wave
#

oh yeah probably

#

that's not dynamic-typing tho

onyx loom
#

since when was cpp dynamically typed 🤣

stuck harbor
#

lol

prisma wave
#

¯_(ツ)_/¯

onyx loom
#

new cpp update

#

added: dynamic typing!

stuck harbor
#

torvalds needs to learn rust man

#

he must be so suicidal using C

prisma wave
#

poor bloke

stuck harbor
#

can y'all load github?

#

it's down for me

onyx loom
#

fine for me

stuck harbor
#

mm

#

It's just you. github.com is up.

#

shut

onyx loom
#

L

stuck harbor
#

man my sr :(

#

gone down 200

forest pecan
#

u suck if its down for u

#

means github hates you ig

stuck harbor
#

sadge

forest pecan
#

you're pink now

stuck harbor
forest pecan
stuck harbor
#

that embed

#

sheesh

forest pecan
#

lol

stuck harbor
obtuse gale
#

> dynamically-typed
> C++

#

:WeirdChamp:

stuck harbor
#

man I would rather write assembly than raw C

ocean quartz
#

I'm sad, IntelliJ's annotator doesn't work on decompiled files, was going to make a plugin to add the real name of the NMS fields/methods to the obfuscated ones

distant sun
#

F

static zealot
#

what vps would you guys recommend jut for hosting a discord bot? A very small one as well. I can find from 4$ + but I don't think I need 5GB+ of ram and all that.

half harness
#

raspberry pi fingerguns

worthy sun
#

^

#

there are also free discord bot hosts

#

as well as ones who do budget

#

not vps's for something that small

#

unless Digital Ocean droplet

static zealot
#

oh Heroku is free.

prisma wave
#

heroku isn't really made for discord bots

distant sun
#

heroku is meeeh

onyx loom
distant sun
#

Someone tell me why the fuck spigot log villager deaths ??

steel heart
#

spigot is spigot

#

what did u expect

half harness
hot hull
#

Why does it keep doing this to my projects, I need to reopen it for it to show properly

ocean quartz
#

Is your name Dom?

onyx loom
#

o

stuck harbor
#

man

#

doxxed frusty

prisma wave
#

lol

half harness
#

lol

prisma wave
distant sun
half harness
#

oh

#

idk

hot hull
onyx loom
#

😂

hot hull
#

You know my name ;C

stuck harbor
#

man

#

Her Britannic Majesty's Secretary of State Requests and requires in the Name of Her Majesty all those whom it may concern to allow the bearer to pass freely without let or hindrance, and to afford the bearer such assistance and protection as may be necessary.

half harness
#

intellij is acting weird today

stuck harbor
#

man

cloud holly
#

Hey

steel heart
#

IntelliJ sucks

half harness
half harness
steel heart
#

Yes

stuck harbor
#

use vim

steel heart
#

Or NetBeans

half harness
#

ok

#

which one

stuck harbor
#

viiim!

onyx loom
#

make ur own decisions dkim

half harness
#

;-;

stuck harbor
#

vim! vim!

half harness
#

ew

#

not vim

stuck harbor
#

man

half harness
#

vim isn't java ide

#

afaik

stuck harbor
#

maaan

steel heart
#

Vim is pog if you don’t screw up

stuck harbor
#

if you do screw up, u suck

steel heart
#

Not my fault keyboard sucks

forest pecan
#

Nice to meet you

hot hull
#

Hi

prisma wave
prisma wave
#

Ok but Emacs tho

stuck harbor
#

i tried spacemacs once

#

not my fav

prisma wave
#

Emacs Lisp 🙂

forest pecan
#

"1-60" dollars

#

damn man

#

so he can just give you 1 dollar

hot hull
#

Yes

serene cave
#

@steel heart

steel heart
#

Why u ping me @serene cave

serene cave
#

@steel heart

#

@steel heart

static zealot
#

oh no. not again

dawn hinge
#

Hi trump

serene cave
#

must i need to send COPPA over to your house?

static zealot
#

yes please

static zealot
#

Fuck JDA 😦

steel heart
#

Discord4j reversed_fingerguns

jovial warren
#

JDA good

#

Discord.JS bad

#

Discord.Py huuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuge ewwwwwwwwwwwwwwwwwwww

static zealot
#

idk what's the problem

half harness
hot hull
#

Die.

half harness
#

what

hot hull
#

white theme

half harness
#

oh

#

;-;

stuck harbor
#

my god

forest pecan
#

id rather be rick rolled by dark theme rather than watch that

#

go die in a hole

prisma wave
#

i want to die

obtuse gale
#

Same tbh

stuck harbor
#

man

#

thats why u use vim :)))

prisma wave
#

oh yeah vim macros are definitely the solution here

stuck harbor
#

mm

static zealot
#

I just want to die in general can I join you on the suislide?

stuck harbor
#

man

hot hull
#

Bruh I'm first

obtuse gale
#

Frosty I'm going with you

#

Can we hold hands?

#

No homo tho

hot hull
#

I was just about to say

dawn hinge
#

Lemme join !!

static zealot
#

can we all just go together?

ocean quartz
#

Is discord dying?

static zealot
#

why?

#

probably the server you're on

ocean quartz
#

Image taking a while to load

static zealot
#

yeah it loaded for me.

#

but sometimes that happens to me as well

#

idk

hot hull
#

Rythm died

#

I've been annoyed for the past 20min

static zealot
#

is Rythm a discord bot for music?

hot hull
#

yes

prisma wave
#

i think ive fixed it

#

a bit

#

but

#

nested generics are so horrible

distant sun
#

Anybody ever had issues with iij not wanting to download / display the sources of a library?

steel heart
#

kme

#

mememememem

#

omg

#

someone can finally relate

static zealot
errant geyser
#

Hey guis I saw quite a while ago someone had made a lib for displaying strings in a nice pretty grid thing with proper spacing and stuff for PAPI 3. Does anyone know where I can find this, if it's even been released seperately to PAPI3

hot hull
#

huh?

static zealot
#

huh?

jovial warren
#

huh?

errant geyser
#

Piggy or Sx or someone made a lib for nicely arranging strngs into a big table/grid thing for PAPI 3 and they showed it off. I'm asking if anyone knows if I can find it anywhere

hot hull
#

That's not in papi 3 I don't believe

#

That'd be in papi 2

jovial warren
#

I think ik what you're on about now

#

iirc that was Sx and it's in PAPI 2

errant geyser
#

thanks kiddos

static zealot
#

xD

steel heart
#

nice

static zealot
#

trying to send a string and an embed in the same message xD

steel heart
#

basically java in a nutshell

jovial warren
#

java.exe not responding

#

dis why Kotlin good Java bad

prisma wave
#

java bad because toString exists

#

hmmmm

jovial warren
#

hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

#

also, got a new logo done for Krypton btw

static zealot
#

how much was it?

#

you just made the request couple hours ago tho

jovial warren
#

it was like €20

#

it's just simple

#

nothing spectacular

static zealot
#

ty for the embed

jovial warren
#

lol

prisma wave
#

€20 for that 🥶

jovial warren
#

yeah maybe I could've done better than that lol

ocean quartz
#

That's one big K

static zealot
#

you should've asked Cozy to make one for free fingerguns

dawn hinge
#

Ehh

jovial warren
static zealot
#

xD

jovial warren
#

also, that logo really just shows off my creativity

#

since I kinda asked him to tweak that a bunch of times

prisma wave
#

hot

#

underrated feature

jovial warren
#

I have a method for forcing something between bounds lol

#

also, you? using Kotlin? what is this?

#

functional language circlejerk incoming

prisma wave
#

kotlin needs partial application

#

literally

jovial warren
#

private fun forceBetween(value: Float, bounds: Bounds) = min(bounds.upper, max(bounds.lower, value)) this is mine lol

#

it's for BardyBot, it forces the volume specified to it's maximum or minimum value

static zealot
#

hmm how the fuck do I remove line separators from a string? I've tried String.replace("\\n", "") also String.replace("\\r", "") and also String.replace(System.getProperty("line.separator"), ""). the last 2 I found on google but none of them actually work

jovial warren
#

makes sure you can't do any whack like giving it 1000 and it actually going to 1000 (I cap it at 200)

prisma wave
#

String.replace("\\n", "")
you don't literally mean this, right

static zealot
#

huh?

jovial warren
#

String.replace("\n", "")

prisma wave
#

yeah don't escape the \n

#

but i also meant

static zealot
#

wait why shouldn't I escape it?

jovial warren
#

escaping the \n means you get \n as a literal string rather than a control character

prisma wave
#

you're not literally doing that, you're doing str.replace("\\n", "") right?

static zealot
#

ohhhh

prisma wave
#

^

static zealot
#

omfg

jovial warren
#

you want A, not 5C6E lol

#

oh also, btw, can anyone here gimme some points about Jenkins freestyle vs Jenkins pipeline?

static zealot
jovial warren
#

fuck you

prisma wave
#

might wanna consider using a more modern pipeline

jovial warren
#

like what? don't tell me: Rust? Elara? Clojure? Haskell? F#?

prisma wave
#

elixir would probably be good

jovial warren
#

yeah Jenkins has it's own pipeline format

prisma wave
#

shame

#

not very modern

#

i'd go as far as to say "legacy"

jovial warren
#

I mean, it is declarative though

prisma wave
#

i guess that's something...

jovial warren
#

also, thinking of using actions btw for test builds and Jenkins for master builds

prisma wave
#

smooth brains be like "declarative sucks! yeah i like html, sql and java streams, why?"

#

oh and kotlin DSLs

jovial warren
#

-_-

#

I swear Kotlin DSLs are declarative

prisma wave
#

yeah exactly

jovial warren
#

lol

#

I like declarative programming, I just don't like languages that don't also support imperative programming

#

I like a mix of both

prisma wave
#

have you

#

ever heard of

#

f#

#

:))

#

supports both

jovial warren
#

-_-

steel heart
#

html

#

its an object oriented functional declarative imperative asynchronous middle end framework

jovial warren
prisma wave
#

correct

old wyvern
#

Sounds like an acceptance to me 😌

#

xD

jovial warren
#

you know, if there's one plugin that does come in handy sometimes in Jenkins, it's the set next build number plugin

#

allows you to yeet builds, set the next build number, and pretend the failed build never existed

#

good for when the build fails due to errors like invalid credentials lol

jovial warren
old wyvern
#

😄

prisma wave
#

this is super interesting

lunar cypress
#

oh yeah i remember watching this

#

it's good

prisma wave
#

yup

#

prolog is very scary

static zealot
#

man idk but I need to stop being this lazy. I usually don't write down in text the way I think about code and when I go into it I just mess everything up but if I just spend a few minutes to write down everything in words it helps me so much when I convert it to code damn

static zealot
#

OMFGGGG. in String#substring(startIndex, endIndex) endindex is exclusive .... I spend 15 minutes trying to figure this out

surreal quarry
#

gg

static zealot
#

well how tf am I suppose to know?

#

why startIndex is included but not the endIndex?

#

in my mind if one is included they both should be

jovial warren
#

yeah it's pretty much always like that

#

documentation exists for a reason

static zealot
#

ugh I didn't know that's where the problem came from...

#

I had to debug the whole method

#

that's why I spent 15 minutes

#

for

#

because when I got there I imediatly realised

#

and you don't need documentation

#

because IJ already tells you

#

when you hover

#

so as soon as I saw its from the substring I just hovered to check how it works

#

and realised what the problem is

prisma wave
#

elara has a fix for this issue

obtuse gale
#

a fix?

prisma wave
#

Yes

#

Elara makes issues like this impossible

obtuse gale
#

A single one

#

What a shame

prisma wave
#

No

#

It's good

#

Bugs are now impossible

obtuse gale
#

lol

#

if (bug.exists) ::=> squash

prisma wave
#

yes

obtuse gale
#

I like my syntax

#

Modern

prisma wave
#

Me too 😍 🤤

quiet depot
#

needs more useless characters

#

if (bug.exists) ::;$&===~>! squash

static zealot
#

damn heroku really isn't that good I guess. had to test for myself xD

tall oyster
sullen rain
#

Got hired to be a consultant, company uses JHipster for a lot of stuff. Messing around with it but it does a lot of what my last couple jobs worked on.

#

Handles the boilerplate for SPAs and monoliths. Can also run for just an API gateway. Dig the MSSQL support, been hooked on that since I started usin' it.

hot hull
#

Cool?

prisma wave
jovial warren
jovial warren
#

ikr

#

LOLCAT

hot hull
#

Oh that's neat, when you push a bot token to GH

jovial warren
#

you didn't know that? lol

hot hull
#

No, I mean it sends a nice popup now

jovial warren
#

totally haven't done that like 3 times before

hot hull
#

Yea I completelly forgot about the token

jovial warren
#

yeah I did that at least twice when developing BardyBot

#

I mean, BardyBot's a bit more sophisticated than he was back then, so once I did my Spring rewrite, I started using application.properties

#

and now application.yml

#

because Spring superior

#

also, thinking about BardyBot, I wanna add an API for him, but I'm not sure whether I should create a web UI to generate tokens or have you generate them within Discord

prisma wave
#

this feature is nice but we don't really consider the consequences

jovial warren
#

wat

prisma wave
#

It proves that discord knows everybody's tokens firstly

#

How can we trust them???

#

They read all our code on github and could be stealing it all!

jovial warren
#

well Discord knows your token because it's their platform that it's a token for lol

prisma wave
#

that's not a reason

jovial warren
#

they can make requests to their own API without a token internally lol

#

or they probably can anyway

prisma wave
#

Just because it's their platform that doesn't mean they should have control over our personal information

#

How do we know they're using our tokens responsibily?

#

They could be selling them to china for all we know

jovial warren
#

it's not really "personal" when it's unique to their platform and they can't use it outside of their platform lol

#

and ik this is a joke btw

prisma wave
#

lol

old wyvern
#

bard

distant sun
#

I know

jovial warren
#

@old wyvern don't ask lol

#

don't ask why I paid €20 for that

#

I really just can't say no to people lol

quiet depot
#

whats k effect

jovial warren
#

that's the new Krypton logo

old wyvern
#

lmao

distant sun
#

wtf bbg

quiet depot
#

hire cube to make u a logo

jovial warren
hot hull
distant sun
#

you paid 20 for that ??

prisma wave
#

🥶

jovial warren
quiet depot
#

oh

jovial warren
old wyvern
#

🇺 🇬 🇱 🇾

distant sun
#

stupid lol

prisma wave
#

And i thought the elara logo was bad value for money

#

Damn

old wyvern
#

😂

quiet depot
#

show elara logo

prisma wave
jovial warren
#

yeah I should go back and ask him for more tbh lol

old wyvern
prisma wave
#

Don't have a high Res version atm

#

Ah nice

distant sun
#

proof that people are dumb 🤣

jovial warren
#

stfu

#

I'm getting some cover art made as well if you wanna see

#

it's got a watermark on it though

distant sun
#

remember when you said you would accept other's requests just so the dont overpay or smth like that? :)))))

regal gale
#

Excuse me thonking

quiet depot
#

can someone whip out a ruler and measure from the arrow to the top and bottom tips of the moon

jovial warren
#

that's it so far

#

still getting the guy to work on it though

distant sun
jovial warren
old wyvern
#

Try to keep logos simple

jovial warren
#

I personally think that certain development is overpaid for what the developer has to do

distant sun
#

man you got scammed 🤣

jovial warren
#

yeah ik

#

I really should've asked cube though lol

old wyvern
jovial warren
#

or I should've just asked in here

old wyvern
#

My 7 y.o. brother could have done better

#

and in paint

jovial warren
distant sun
#

Man you could literally google "free logo maker" and get a better design that that

prisma wave
jovial warren
#

I'm tempted to go back and ask for more lol

#

but not sure that's allowed

jovial warren
#

or ask for the Photoshop project, so I can go and edit it myself

#

that might be a good idea

quiet depot
#

doesn’t look in the middle bm

#

on phone

prisma wave
#

Oh yeah I think it's slightly off in that version

jovial warren
distant sun
quiet depot
#

it looks like it’s too far up

prisma wave
#

elaramoon2 this one is centered better

jovial warren
#

he gave me another thing complementary though

prisma wave
#

I think

jovial warren
#

not sure what I'll use that for

#

if anything

distant sun
hot hull
#

That's nice Gaby

jovial warren
#

gaby since when could you design logos

distant sun
#

so just a gif with a mask

jovial warren
#

also, wanna know why that logo is pretty basic?

#

it's kinda based off of my creativity span

distant sun
#

being basic is not a problem

#

the problem is, it is TOO BASIC and horrible

jovial warren
#

it's just paying €20 for basic lol

#

what else could I add to it?

distant sun
#

cant call that a logo

jovial warren
#

or should I have it redone

#

or what

distant sun
#

this ia basic

#

and looks 200 times better than yours

jovial warren
#

very true

distant sun
#

you can get that K logo I have sent for 20$ on that app

jovial warren
#

debating whether to just edit the logo myself or not

distant sun
#

If by edit you mean redone, yes

jovial warren
#

yeah but by who?

#

I don't wanna have to pay another €20 if I can help it lol

distant sun
#

anybody with photoshop installed lmfao

#

if i was a designer, that logo would be something I wouldnt put on my portfolio under any circumstance

prisma wave
#

Lmao

distant sun
#

or I would put a title saying "This is my first logo I did at the age of 5 (2005) using ms paint"

jovial warren
#

-_-

old wyvern
#

😂

jovial warren
#

okay maybe I shouldn't be the one to request logo making

#

I'm literally sacking myself from that position

distant sun
#

pretty sure you could've found someone on fiverr for this logo

jovial warren
#

wondering what to do now

distant sun
#

probably nothing since you agreed on that logo

#

look for a vector app and try to make your own xd

jovial warren
#

yeah but that logo literally defines my creativity span

#

look at this

#

this is the remastered BBG logo (remastered because I lost the original and was using a 176x176 compressed version I downloaded from Google+ for years)

distant sun
#

🤣

jovial warren
#

I remade it to be 1000x1000, using the same original font

#

I originally designed that when I was 11

#

and I haven't thought of anything better ever since

#

I really like it, because it's so simple

#

when it comes to this sort of thing, I love simplicity

#

also, trying to decide if I should try and make a web UI for BardyBot or not

#

actually I cbfa with web stuff lol

#

I'd rather add localisation

distant sun
#

I suck at design just as much, dw 🤣

#

that's why I use flaticons for my resources

#

su efe

hot hull
#

LemonMobCoins v1.4
👀

distant sun
#

ofc

jovial warren
#

trying to think of a way to be able to store API tokens for BardyBot, but can't quite decide on what I actually need to store, since I haven't worked with OAuth before

#

do I just store some sort of session cookie or something for the users when they verify with OAuth?

jovial warren
#

@frigid badge you proud? xD

frigid badge
#

very proud 😛

jovial warren
#

🙂

jovial warren
#

I swear I'm fucking giving up on this shit in a minute

#

fucking pissed off

dawn hinge
#

Calm down

jovial warren
#

Minecraft's fucking block state registry is the biggest bull shit, I swear

onyx loom
#

🙂

jovial warren
#

first, you've gotta load blocks from the palette in a chunk section
then, you've gotta check those blocks against a fucking registry, where each block with a different state value has a different ID but they all have the same namespaced ID

#

and I just can't even

#

I'm fucking done

dawn hinge
#

Yikes

jovial warren
#

might just not even bother with Anvil and write my own fucking system at this rate

dawn hinge
#

Sounds like a good idea

jovial warren
#

but then I sacrifice any sort of compatibility

hot hull
#

You don't have my permission to quit fingerguns

jovial warren
#

and that also means that I have to create a converter

dawn hinge
#

Is it worth it though?

jovial warren
jovial warren
#

I'm tempted to just steal pretty much the whole palette system from Mojang's code and use that at this point

#

but theirs is whack

#

I mean, it's not that whack, but it's a bit hacky

#

they just have a few classes that store all the block states as values, and then you can set the block states based on a provided map

dawn hinge
#

What's the goal of this project? Is it rewriting the server from Java to Kotlin

jovial warren
#

it's a Minecraft protocol implementation

#

so it's goal is to function like the real server

#

but not be the real server

#

I've got a few different options for the palette:

  1. Pretty much copy Mojang's code, tweaking a few things to make them more Kotlinised and just better
  2. Hard-code it all
  3. Do the sane thing and load from the file from the data generator like you're supposed to and somehow be able to perform lookups based on properties
dawn hinge
#

Ahh

jovial warren
#

option #2 is the easiest in the short term, but it'll come back to bite me in the ass when new versions come out, since I'll have to hard code all the new blocks and their states, and it'll just become a mess

dawn hinge
#

Yep

jovial warren
#

option #1 is for one cheating, for two kinda not allowed, and for three just dumb, since Mojang's code is beyond whack

#

so it kinda has to be option #3

#

which I'm definitely over complicating

dawn hinge
#

I'm interested seeing how this will turn out 😄

jovial warren
#

it's really not rocket science, so I don't know why I'm making it rocket science

obtuse gale
jovial warren
eternal compass
#

Genius

jovial warren
#

and that would literally defeat the entire purpose of the project

#

I'm trying to fix Minecraft, not make it worse lol

hot hull
#

Nah it wouldn't, you'd just want to die when trying to clean it up

jovial warren
#

you're damn right about that

#

might look at how Glowstone does this

#

because if they can do it, I can do it

#

the way Glowstone is laid out though is kinda whack ngl

quiet depot
#

how glowstone does what?

eternal compass
#

@jovial warren do you plan on adding any special features, like out of the box bedrock support, or is it just a better inplementation of minecraft?

jovial warren
# quiet depot how glowstone does what?

I need to be able to load a list of blocks with properties from the section palette NBT, also load the block registry from blocks.json that is basically the global palette, and then be able to retrieve a value from said global palette based on the namespaced id and properties from the section palette NBT

#

oh, and properties can have different value types

#

e.g. some are booleans, some are integers, and others are enum values

jovial warren
eternal compass
#

Ok :)

jovial warren
#

it'll have it's own API as well, not sure if I'll add a Bukkit and/or Sponge compat layer yet or not

quiet depot
#

implement sponge

#

well fork sponge and implement it, because you'll need to make changes eventually

jovial warren
#

yeah alright

#

I'll still make my own Kotlin API though, since 1. I kinda want the challenge and 2. I want something idiomatic to the language

quiet depot
#

is this meant to be a serious contender to spigot?

jovial warren
#

mostly just a fun side project for now, but I do intend on it performing better than the Notchian server does

obtuse gale
#

> I kinda want the challenge

well it's very fucking difficult when you're the only one working on a massive project, and you're over tired, over worked, stressed out, and your motivation is starting to drop because you're putting in effort and getting fuck all back

half harness
#

oof the first quote line

#

didn't want to be a quote

obtuse gale
#

\>

jovial warren
#

-_-

prisma wave
#

generic "use a different language" message

#

🙂

jovial warren
#

I do overall enjoy the project, it's just this specific aspect is just no

quiet depot
#

tbh I think vb would be a better fit than kotlin

jovial warren
#

-_-

prisma wave
#

agreed

#

Dim > val

old wyvern
#

Holy shit do the tor installer libs for android suck

jovial warren
#

okay can we please not

#

I've actually had enough of people saying I should use a different language now

prisma wave
#

lol

old wyvern
#

The older version I had was specifically not resolving certain domains

prisma wave
#

what do you expect

jovial warren
#

it's like yesterday's news at this point

prisma wave
#

true

#

need to find a new language

quiet depot
#

yugi I didn't even know you could get tor on android

prisma wave
#

maybe Erlang

quiet depot
#

what's wrong with kotlin for an mc server?

old wyvern
#

People maybe use Orbot

onyx loom
jovial warren
old wyvern
#

but there are other libs that just us handle it without an external app

prisma wave
old wyvern
#

And none of them are consistent

prisma wave
#

although a lower level language would of course perform better

#

go or rust would probably be very good candidates

jovial warren
#

-_-

prisma wave
#

im being serious

old wyvern
#

The closest working one was from 2 years ago and that seems to work very weirdly, for eg: connectos to duckduckgo's onion domain propely, but when I try with something else, it keeps returning with a error code 1

prisma wave
#

theyre both fast, modern and have pretty good multithreading capabilities

old wyvern
#

and says that its a invalid onion domain

quiet depot
#

why don't you just use the onion proxy sites

#

like .onion.gq

old wyvern
#

wdym?

quiet depot
#

I think that's one

old wyvern
#

Not sure what that is

#

Is it one of the one's where it allows you to visit onion sites through them?

quiet depot
#

yea

jovial warren
#

I swear Tor has an API for requesting circuits or something

old wyvern
#

They arent safe since theres a middle man for the connection, plus I had to work with XMPP and not HTTP

quiet depot
#

well what are you even accessing

#

tryna buy drugs or something?

old wyvern
#

a messaging server

#

lol

#

with Ejabberd

jovial warren
#

over Tor?

quiet depot
#

is he a drug dealer?

old wyvern
#

Yea

quiet depot
#

wow

old wyvern
#

xD

quiet depot
#

didn't think you were into that sorta stuff

old wyvern
#

oi

#

Admin abuse!!!!

#

welp

quiet depot
#

yugi just admit it you're a druggy

old wyvern
#

😮

#

maybe I am

quiet depot
#

awesome

old wyvern
#

🤐

#

😌

#

Ill admit I just finally gave up and copied some code from a flutter lib's android module

#

They combined 2 of the tor intaller libs and got them to kind of work

quiet depot
#

looks like a lot of effort

old wyvern
#

Yea been stuggling with this for a while

quiet depot
#

so what about the orbot thing you mentioned?

#

why wouldn't that work?

old wyvern
#

Oh it would, but im not allowed to use it in this project

#

They explicitly said it shouldnt depend on external apps

jovial warren
#

oh actually, Piggy, wonder if you'll be able to think of a reason to explain this:
so, I use WireGuard as a VPN on a couple of my servers, and it's kinda stable on one server and kinda doesn't work half of the time on the other. I've got it setup correctly, so I don't exactly know what the problem is, but wait. it gets better. when connecting to WireGuard, the main server only connects if you also connect to SSH

old wyvern
#

Installing and running tor* is going to be worse a few versions in as Android doesnt allow excuting files with ProcessBuilder in writable directories

jovial warren
#

even though WireGuard and SSH are completely unrelated

#

like SSH is running on standard port over TCP, and WireGuard is 51820 over UDP

old wyvern
#

tho there are work arounds rn with how android implicitly copies assets to a read-only folder I think

jovial warren
#

somehow, if you connect to SSH, the main server immediately starts sending you response packets

#

now that's some whack amirite

quiet depot
#

probably just some funky configuration on your firewall or ssh

#

try switching wireguard to tcp

jovial warren
#

yeah that's not gonna work

quiet depot
#

why

jovial warren
#

WireGuard doesn't support tunneling over TCP

quiet depot
#

oh it doesn't

#

ok

#

sorry I swear I used wireguard the other day over tcp, turns out I was using openvpn

jovial warren
#

it is very strange how it works when I connect to SSH though isn't it

quiet depot
#

cuz you can switch between the two in pia

jovial warren
#

what?

quiet depot
#

and I thought it was set to wireguard

jovial warren
#

wdym you can switch between the two?

quiet depot
#

doesn't really apply to you

jovial warren
#

also, I had numerous problems with OpenVPN as well, and that was running over UDP

quiet depot
#

private internet access (pia) allows you to switch between wireguard and openvpn

jovial warren
#

I may or may not have used a script for OpenVPN though

quiet depot
#

so irrelevant for you

jovial warren
#

that I'm not sure if I really trust did the job

quiet depot
#

yeah I've had issues with openvpn aswell, but I haven't tried running my own vpn in years

jovial warren
#

I just want something I can hide my Pterodactyl panel behind

#

for an extra layer of security

#

and also something I can use to have two servers communicate securely over the net with

quiet depot
#

right

jovial warren
#

and something that's easy to setup and use, since some of the people who need access to this aren't technical

quiet depot
#

anyway the ssh thing is semi weird

#

I've seen a lot of weird stuff before

#

this doesn't make the top of the list

jovial warren
#

lol

#

kinda wanna know what's at the top now

quiet depot
#

idk

#

probably mail servers

#

they're funky af

jovial warren
#

oh jesus christ yeah

#

I mean, I somehow have Postfix and Dovecot running on separate servers communicating over a local network

quiet depot
#

is postfix the smtp one

jovial warren
#

and also communicating with my main server's MariaDB server on the same local network

quiet depot
#

sorry I always get confused between the two

jovial warren
#

yeah

quiet depot
#

I only run dovecot

#

I route my smtp through sendgrid

jovial warren
#

Postfix does SMTP, Dovecot does IMAP

#

ah

#

yeah I use Postfix with rspamd and a custom milter made by my friend (who also kinda made the config I use)

#

and then Dovecot with MariaDB

quiet depot
#

well I actually use exim but that just offloads to sendgrid

jovial warren
#

anyway, any ideas about how I could actually do what I want to do?

quiet depot
#

no

jovial warren
#

why does nothing just work out of the box these days lol

quiet depot
#

on my friend's dedi I ended up just installing a desktop and added chrome remote desktop so I could get in

jovial warren
#

lol

quiet depot
#

vpn wasn't an option because dynamic ip, and I also have to access their modem firewall to open ports

jovial warren
#

yeah I'm using ufw on Ubuntu 16.04 for the main server iirc

quiet depot
#

mind you it's a dynamic ip, but it rarely changes

jovial warren
#

nvm, make that Ubuntu 18.04 for the main

quiet depot
#

I don't think I've ever used ufw

jovial warren
#

and then Ubuntu 20.04 on the dev

quiet depot
#

I never had an issue with using iptables itself

jovial warren
#

yeah me trying to use iptables is like my Grandad trying to use a mobile phone lol

quiet depot
#

i mean I rarely have to touch it anyway

#

most of the software I use hooks into iptables and manages it for me

jovial warren
#
# Server
[Interface]
Address = 10.8.0.1/24
PrivateKey = CENSORÉD
ListenPort = 51820
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o enp1s0f0 -j MASQUERADE; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -A POSTROUTING -o enp1s0f0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o enp1s0f0 -j MASQUERADE; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -t nat -D POSTROUTING -o enp1s0f0 -j MASQUERADE
```this is the config the server itself is using
#
[Peer]
PublicKey = CENSORÉD ; (ik this is pub key but ya know)
AllowedIPs = 10.8.0.2/32
```then each of the client peers has this
#
[Peer]
PublicKey = CENSORÉD ; (ik this is pub key but ya know)
Endpoint = yeah lets not:51820
AllowedIPs = 10.8.0.40/32
PersistentKeepalive = 10
```then the dev server looks like this in the main's conf
#

there's like 12 peers iirc + the dev server

#

and mine's the one with the SSH issue

#

others don't have any issues

#

the server owner's config takes a little longer to connect but works without issues

quiet depot
#

I was at a tafe (kinda like college, certificates & diplomas) convention thing a while ago and they had a beast of a pc running hashcat on display. I asked how long it would take to find a 521 bit private ecdsa key from the public and they said 4 minutes. bs

#

moral of the story no need to hide ur pub keys

jovial warren
#

they're 128 bit keys encoded in base64 iirc

#

but fair enough

half harness
#

for some reason PlayerInteractEvent left clicks only get like half the clicks, but it gets like all right clicks thonking

jovial warren
#

yeah you can derive your public key from your private key, that's actually how you get your public key, you pipe the private key into wireguard and it can give you your pub key, but doing the opposite is pretty much impossible without a hell of a lot of time

obtuse gale
#

Because offhand

half harness
#

nope its not

#

its firing once

#

(im on 1.8 client, 1.16 server though)

hot hull
#

Disgusting

jovial warren
#

nah that's enough for me to say you are not receiving any support with that

half harness
#

;-;

obtuse gale
#

Yeah Bardy native multi-protocol support when

hot hull
#

No, latest only

#

Fuck off

jovial warren
#

once the server actually functions

half harness
ocean quartz
#

Pvp servers on latest version aren't bad, good part is that there aren't too many 1.8 whiners in them

jovial warren
#

also, new PvP >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> old PvP

#

change my mind

#

new PvP mechanics means that these kiddos who literally no life the game won't be able to fuck you up with their 13+ CPS compared with your like 7

#

balances the game out more

ocean quartz
#

bUt CliCks PeR seConD!

hot hull
#

mouse go brrrrrrrrrrr

jovial warren
forest pecan
#

well, with the new combat system you have to actually think

#

with 1.8 you just click and pray

#

lol

prisma wave
#

clicking as fast as possible requires lots of thought

#

wdym?

jovial warren
#

lol

forest pecan
#

lol

jovial warren
#

I can't stand going into a PvP arena though and getting ruined by these people that can somehow click at 13 CPS

#

and I can only click 7

forest pecan
#

i can click around 9-10

jovial warren
#

I'm like "how is that even humanly possible to click 13 times in a second"

forest pecan
#

idk

#

drag clicking

#

or smthin

onyx loom
#

jitter clicking / butterfly too

jovial warren
#

my brother's one of those kiddies who thinks 1.8 PvP superior

onyx loom
#

u think 7 is bad tho bardy

#

i click 5 fingerguns

jovial warren
#

lol

forest pecan
#

jitter clicking is not effective for me

#

i cant do it for long periods of time

dawn hinge
#

7 is not bad though

jovial warren
#

my brother has this keyboard that is so bad that you have to press Fn to access delete

forest pecan
#

like more than a couple seconds

jovial warren
#

like wtf

onyx loom
#

its the only thing that actually allows me to compete pulse lmao

forest pecan
#

lol

#

its just my hand

#

prolly fucked up

#

or smthing

onyx loom
#

not enough endurance

forest pecan
#

yea

#

but i don't like it cause of the feeling you get after

jovial warren
forest pecan
#

and i feel that its bad for you

#

lol

onyx loom
#

lmao

#

its so tiring

jovial warren
#

that's my brother's shitty keyboard

dawn hinge
#

It probably is ngl

onyx loom
#

60% keyboard

jovial warren
#

that cost £150

onyx loom
#

yes

#

probably got some boutique switches in it

dawn hinge
#

Why white though?

forest pecan
#

"oh yeha, i got that keyboard with red, white, gold and all caps on it and spent an extra 120 bucks on the tops"

dawn hinge
#

That shit can look dirty so fast

jovial warren
onyx loom
#

what keyboard is it

#

brand

dawn hinge
#

It better have RBG

ocean quartz
#

No numpad 🤮

quiet depot
#

hey ducky keyboards are good

#

it's just small keyboards in general that suck

onyx loom
#

u seen the hyperx 60% pig

quiet depot
#

no

onyx loom
#

its got a topographic space bar and it looks so sexy

quiet depot
#

it's 60% so it can't be good

onyx loom
#

at a design point tho 👌

quiet depot
#

yeah no

jovial warren
#

please don't tell me you program with a ducky keyboard lol

quiet depot
#

I wish

onyx loom
#

just look at dat

ocean quartz
quiet depot
#

bardy have you seen ducky's other keyboards?

onyx loom
#

do ducky even do full size?

quiet depot
#

yes

onyx loom
#

o

ocean quartz
#

Just memeing btw Kali, it's a nice looking keyboard
But 60% are a turn off

jovial warren
#

eh, they're not bad

onyx loom
#

yeah i wouldnt buy a 60% myself matt

forest pecan
#

If I initialized an array with 255^3 elements

#

how many megabytes would it be?

prisma wave
#

big

#

Depends on the system probably

obtuse gale
#

Depends on the data type

prisma wave
#

And that too yeah

ocean quartz
#

At least 3 Bits

forest pecan
#

int

prisma wave
#

Byte array uses less than long array etc

forest pecan
#

what if it was int

#

just normal int

prisma wave
#

4*255^3 + object headers

#

I think

obtuse gale
#

4 bytes per int

forest pecan
#

66,325,500

prisma wave
#

Big

forest pecan
#

thats aroound 66 megabytes

#

yeah

onyx loom
#

thicc

forest pecan
#

i wish pointers

#

exist in java

prisma wave
#

pointers wouldn't help here?

forest pecan
#

Cause i have a lot of dupes

#

in the values

#

if i pointed it to one, it wouldn't be constantly used

prisma wave
#

Ah right

forest pecan
#

is there any data structure

#

which can do that

#

im thinking of some sort of hashed tree

unreal briar
#

Java has references

onyx loom
#

java.lang.Pointer class

forest pecan
#

What's that

#

never used it

#

xD

onyx loom
#

nothing

unreal briar
#

Just pass ovee the object

prisma wave
#

You need ordering and fast random access?

unreal briar
#

It's the same object if you don't create a different instance

forest pecan
#

Well, in my case, I have a 3d array (with red, green, blue)

unreal briar
#

If you write Apple a = b

forest pecan
#

no no

unreal briar
#

A and b are the same apple

forest pecan
#

im not talking about

#

that

prisma wave
#

we know

forest pecan
#

its primitives

#

...

unreal briar
#

Ah

#

You can use wrappers, outside oc that, hmm

forest pecan
#

In my case, I am setting up a 3d array with [red][green][blue], and dithering each pixel to allow for faster dithering

#

But as you know, the palette after dithering will have common values

prisma wave
#

depending on the amount of dupes it might actually be beneficial to use an RGB wrapper since you can use "pointers" there

forest pecan
#

Hm yeah

old wyvern
#

A reference is still 4 bytes

#

no gain

prisma wave
#

Oh true actually

#

Yeah I'm dumb

forest pecan
#

That sucks

#

although wait

#

only 86 possible pointers total

#

thats possible in a short

#

or something

#

if i make a custom implementation

prisma wave
#

wot

unreal briar
#

If ram cries, try OJ9

#

May reduce your footprint a bit

forest pecan
#

Like only 86 possible unique values

sinful remnant
#

where can i get help with a problem?

forest pecan
#

depends on what type it is

sinful remnant
#

problem with skins

prisma wave
unreal briar
#

Byte can have 256 values

forest pecan
#

like coding?

forest pecan
#

lol

old wyvern
#

What is this for again?

forest pecan
#

saves more

#

basically, sacrificing memory for a faster runtime

old wyvern
#

ah

sinful remnant
#

I'm trying in 3 different discord to find a solution. SP users see my pg with a Nazi skin while my friends see me with the right skin (an RGB slime). Anyone have any ideas on how to fix?

prisma wave
#

what

sinful remnant
#

minecraft gratis

jovial warren
#

you mean cracked Minecraft?

sinful remnant
#

yes

jovial warren
#

yeah they won't see you with your proper skin

sinful remnant
#

sorry for the incongruity

prisma wave
#

We don't support that here

sinful remnant
#

no I have the premium

jovial warren
#

since you're not authenticated, you won't even see your own proper skin

#

even if you are premium, if you're joining a cracked server, no one is authenticated

#

also, fun fact as well: your traffic isn't encrypted either, which means anyone sniffing on the network can read everything you send

#

every chat message, every command, every password you enter into AuthMe

obtuse gale
forest pecan
#

yea

prisma wave
#

yeah you've got object headers too

forest pecan
#

although i can use bytes

obtuse gale
#

Stay with them primitives

forest pecan
#

and i wouldnt need pointers

#

byte

prisma wave
#

The scope for optimising is pretty limited on java

forest pecan
#

yeah

prisma wave
#

Yeah byte is probably the best you can do

obtuse gale
#

C++ ftw

sinful remnant
#

but then why the cracked users see they see my friends with their skins but to me they see me as a Nazi?

jovial warren
#

just a random question on the topic of low-level stuff btw, how does the computer actually know what type of data is being stored in memory at what address? and how does it know how long it is and when to stop reading?

jovial warren
#

well then how does it work?

obtuse gale
#

You can interpret the value at a certain address as whichever type you want

prisma wave
#

Yeah

jovial warren
#

I heard the OS tells it, but isn't the OS still doing the same thing?

prisma wave
#

A language like C lets you do that by casting pointers

jovial warren
#

it's still got variables that it has to declare

stuck harbor
#

pointers

#

mutable

prisma wave
#

Something in the System class probably

old wyvern
#

Maybe you could hack something together with a bitset but not sure of how fast that wold be 😂

jovial warren
#

yeah it'll be something that interacts with the JVM

prisma wave
#

Anyway, afaik a runtimeless language would completely erase types

jovial warren
#

actually everything interacts with the JVM so that's literally the most useless piece of help I've given lol

ocean quartz
#

System.getProperty("os.name") should do it

prisma wave
#

^

onyx loom
#

this man about to dox someone tf

#

idk

forest pecan
#

...

ocean quartz
forest pecan
#

dont actually do it..

#

he was joking

#

and you can't get someone's ip