#dev-general
1 messages · Page 326 of 1
https://youtu.be/FkrpUaGThTQ yes please
In this series, we'll write our own 64-bit x86 operating system kernel from scratch, which will be multiboot2-compliant. In future episodes we might expand out to other architectures and bootloaders.
In this first episode, we write our initial boot code and also include a multiboot2 header so that it can be understood by bootloaders.
This oper...
Seems to work fine for me rn ¯_(ツ)_/¯
I do want to do that
Do it then
yeah it works I just didn't really want to maintain it anymore
I archive everything I'm not really maintaining
ah ok
feel free to use it though
I probably will
An operating system written in rust that could natively run clojure code 🤤 😩 😍
if I was gonna write an OS, I'd write it in C and x86 assembly lol
fair
using C in the 21st century is borderline self-harm
lol yeah
Especially when modern alternatives exist
Performance critical? Use rust.
Want fast development? Typescript or clojure
Both? Rust again!
lol
if you really rely on performance that heavily, C++ is probably the way to go
Rust is just as fast as C++
is it?
Yes
proof = ?
Most, if not all of the modern features rust has are 0 cost
rust can even be faster than c++!
mmmhm
In dynamically-typed languages such as C++, it is much easier to miss problems and issues in your code
What
rust has a nice site
uhm
I think that's talking about rust's strict compiler
so u get less bugs at runtime
since when was cpp dynamically typed 🤣
lol
¯_(ツ)_/¯
poor bloke
fine for me
L
sadge
I wanna go to https://github.com/rust-lang

lol
man I would rather write assembly than raw C
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
F
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.
raspberry pi 
^
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
oh Heroku is free.
heroku isn't really made for discord bots
heroku is meeeh
wheres host.bristermitten.me
Someone tell me why the fuck spigot log villager deaths ??
u can turn off
Why does it keep doing this to my projects, I need to reopen it for it to show properly
Is your name Dom?
o
lol
lol
$50/month for 1GB 🙂
I know but the question was 'why'
No, it's supposed to be Home, but it's in slovene
😂
You know my name ;C
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.
intellij is acting weird today
man
Hey
IntelliJ sucks
Hey
ok should i use eclipse
Yes
use vim
Or NetBeans
viiim!
make ur own decisions dkim
;-;
vim! vim!
man
maaan
Vim is pog if you don’t screw up
if you do screw up, u suck
Not my fault keyboard sucks
Hi
vim vim vim vim vim
Emacs Lisp 🙂
Yes
@steel heart
Why u ping me @serene cave
oh no. not again
Hi trump
do you hate me child?
must i need to send COPPA over to your house?
yes please
Fuck JDA 😦
Discord4j 
JDA good
Discord.JS bad
Discord.Py huuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuge ewwwwwwwwwwwwwwwwwwww
lol
Die.
what
white theme
my god
Same tbh
oh yeah vim macros are definitely the solution here
mm
I just want to die in general can I join you on the suislide?
man
Bruh I'm first
I was just about to say
Lemme join !!
can we all just go together?
Image taking a while to load
is Rythm a discord bot for music?
yes
the worst thing ever made
i think ive fixed it
a bit
but
nested generics are so horrible
Anybody ever had issues with iij not wanting to download / display the sources of a library?
hey harry's post got revived ... https://www.spigotmc.org/threads/controversial-alert-why-you-should-dump-old-versions-of-minecraft.487999/ xD
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
huh?
huh?
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
thanks kiddos
nice
trying to send a string and an embed in the same message xD
basically java in a nutshell
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
also, got a new logo done for Krypton btw
it was like €20
@static zealot you can go and look at it https://github.com/KryptonMC here if you want
it's just simple
nothing spectacular
ty for the embed
lol
€20 for that 🥶
yeah maybe I could've done better than that lol
That's one big K
you should've asked Cozy to make one for free 
Ehh
who what where when why how
xD
also, that logo really just shows off my creativity
since I kinda asked him to tweak that a bunch of times
I have a method for forcing something between bounds lol
also, you? using Kotlin? what is this?
functional language circlejerk incoming
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
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
makes sure you can't do any whack like giving it 1000 and it actually going to 1000 (I cap it at 200)
String.replace("\\n", "")
you don't literally mean this, right
huh?
String.replace("\n", "")
wait why shouldn't I escape it?
escaping the \n means you get \n as a literal string rather than a control character
you're not literally doing that, you're doing str.replace("\\n", "") right?
ohhhh
^
omfg
you want A, not 5C6E lol
oh also, btw, can anyone here gimme some points about Jenkins freestyle vs Jenkins pipeline?
I swear if I get one person say "Sir this is #dev-general"
Sir this is #dev-general
fuck you
might wanna consider using a more modern pipeline
like what? don't tell me: Rust? Elara? Clojure? Haskell? F#?
elixir would probably be good
yeah Jenkins has it's own pipeline format
i guess that's something...
also, thinking of using actions btw for test builds and Jenkins for master builds
smooth brains be like "declarative sucks! yeah i like html, sql and java streams, why?"
oh and kotlin DSLs
yeah exactly
lol
I like declarative programming, I just don't like languages that don't also support imperative programming
I like a mix of both
-_-
html
its an object oriented functional declarative imperative asynchronous middle end framework
correct
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
-_-
😄
One of the most important lessons I've learned is that programming languages are tools and not all tools are good for all jobs. Some tasks are easier to solve functionally. Some are clearly suited for OO. Others get simpler when you use constraint solving or pattern matching.
Let's go on a whirlwind tour of 4 different programming languages emp...
this is super interesting
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
OMFGGGG. in String#substring(startIndex, endIndex) endindex is exclusive .... I spend 15 minutes trying to figure this out
gg
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
yeah it's pretty much always like that
documentation exists for a reason
also, the amount of times I've seen https://i.imgur.com/Fwpuqjs.png now is insane lol
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
elara has a fix for this issue
a fix?
yes
Me too 😍 🤤
damn heroku really isn't that good I guess. had to test for myself xD
prolog is cool!
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.
Cool?
Yeah it seems cool, but I don't understand anything that isn't a single line lol

best language ever
Oh that's neat, when you push a bot token to GH
you didn't know that? lol
No, I mean it sends a nice popup now
Yea I completelly forgot about the token
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
this feature is nice but we don't really consider the consequences
wat
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!
well Discord knows your token because it's their platform that it's a token for lol
that's not a reason
they can make requests to their own API without a token internally lol
or they probably can anyway
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
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
lol
I know
@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
whats k effect
that's the new Krypton logo
lmao
wtf bbg
hire cube to make u a logo
Wanna cuddle? 😏
you paid 20 for that ??
🥶
I would've, but he wasn't taking any more commissions
oh
as I said, can't say no to people 😦
🇺 🇬 🇱 🇾
stupid lol
😂
show elara logo

yeah I should go back and ask him for more tbh lol
proof that people are dumb 🤣
stfu
I'm getting some cover art made as well if you wanna see
it's got a watermark on it though
remember when you said you would accept other's requests just so the dont overpay or smth like that? :)))))
Excuse me 
can someone whip out a ruler and measure from the arrow to the top and bottom tips of the moon
https://cdn.discordapp.com/attachments/815323755009146900/815418482517606420/unknown.png now tell me this is worth the $30 I'm paying for it
that's it so far
still getting the guy to work on it though
that's for real
uh
ugly
I have quite strong morals about right and wrong
Try to keep logos simple
I personally think that certain development is overpaid for what the developer has to do
man you got scammed 🤣
Straight up
or I should've just asked in here
instead of #805698761442590730
Man you could literally google "free logo maker" and get a better design that that
That looks like the intro to an edgy 1.8 PvP youtuber
why lol
or ask for the Photoshop project, so I can go and edit it myself
that might be a good idea
haha
Oh yeah I think it's slightly off in that version
it looks like it’s too far up
this one is centered better
he gave me another thing complementary though
I think
not sure what I'll use that for
if anything
That's nice Gaby
gaby since when could you design logos
also, wanna know why that logo is pretty basic?
it's kinda based off of my creativity span
cant call that a logo
very true
you can get that K logo I have sent for 20$ on that app
debating whether to just edit the logo myself or not
If by edit you mean redone, yes
anybody with photoshop installed lmfao
if i was a designer, that logo would be something I wouldnt put on my portfolio under any circumstance
Lmao
or I would put a title saying "This is my first logo I did at the age of 5 (2005) using ms paint"
-_-
😂
okay maybe I shouldn't be the one to request logo making
I'm literally sacking myself from that position
pretty sure you could've found someone on fiverr for this logo
wondering what to do now
probably nothing since you agreed on that logo
look for a vector app and try to make your own xd
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)
🤣
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
I suck at design just as much, dw 🤣
that's why I use flaticons for my resources
Im so proud of this baby https://www.spigotmc.org/resources/⚡-guihelper-the-in-game-gui-builder-⚡.70831/ 🥺 ❤️
su efe
LemonMobCoins v1.4
👀
ofc
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?
also, https://github.com/KryptonMC/Krypton/pull/4 I managed to fix commit history by rebasing 🙂
@frigid badge you proud? xD
very proud 😛
🙂
Calm down
Minecraft's fucking block state registry is the biggest bull shit, I swear
🙂
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
Yikes
might just not even bother with Anvil and write my own fucking system at this rate
Sounds like a good idea
but then I sacrifice any sort of compatibility
You don't have my permission to quit 
and that also means that I have to create a converter
Is it worth it though?
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
probably not
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
What's the goal of this project? Is it rewriting the server from Java to Kotlin
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:
- Pretty much copy Mojang's code, tweaking a few things to make them more Kotlinised and just better
- Hard-code it all
- 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
Ahh
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
Yep
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
I'm interested seeing how this will turn out 😄
all I need to do is turn https://raw.githubusercontent.com/KryptonMC/Krypton/feature/anvil/src/main/resources/blocks.json into objects and then be able to compare those values with the values retrieved from the chunk section palette block states
it's really not rocket science, so I don't know why I'm making it rocket science
Just throw the whole mc code into IJ and transform to Kotlin u doofus

Genius
if only
and that would literally defeat the entire purpose of the project
I'm trying to fix Minecraft, not make it worse lol
Nah it wouldn't, you'd just want to die when trying to clean it up
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
how glowstone does what?
@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?
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
I could work with Geyser or Floodgate or whatever to add that in maybe later, but for now I'm strictly focusing on Java
Ok :)
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
implement sponge
well fork sponge and implement it, because you'll need to make changes eventually
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
is this meant to be a serious contender to spigot?
mostly just a fun side project for now, but I do intend on it performing better than the Notchian server does
> 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
\>
-_-
I do overall enjoy the project, it's just this specific aspect is just no
tbh I think vb would be a better fit than kotlin
-_-
Holy shit do the tor installer libs for android suck
okay can we please not
I've actually had enough of people saying I should use a different language now
lol
The older version I had was specifically not resolving certain domains
what do you expect
it's like yesterday's news at this point
You should
yugi I didn't even know you could get tor on android
maybe Erlang
what's wrong with kotlin for an mc server?
Yea you can
People maybe use Orbot
die
yeah I've asked that quite a few times, but these guys just like to circlejerk lol
but there are other libs that just us handle it without an external app
in theory nothing
And none of them are consistent
although a lower level language would of course perform better
go or rust would probably be very good candidates
-_-
im being serious
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
theyre both fast, modern and have pretty good multithreading capabilities
and says that its a invalid onion domain
wdym?
I think that's one
Not sure what that is
Is it one of the one's where it allows you to visit onion sites through them?
yea
I swear Tor has an API for requesting circuits or something
They arent safe since theres a middle man for the connection, plus I had to work with XMPP and not HTTP
over Tor?
is he a drug dealer?
Yea
wow
xD
didn't think you were into that sorta stuff
yugi just admit it you're a druggy
awesome
🤐
😌
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
looks like a lot of effort
Yea been stuggling with this for a while
Oh it would, but im not allowed to use it in this project
They explicitly said it shouldnt depend on external apps
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
Installing and running tor* is going to be worse a few versions in as Android doesnt allow excuting files with ProcessBuilder in writable directories
even though WireGuard and SSH are completely unrelated
like SSH is running on standard port over TCP, and WireGuard is 51820 over UDP
tho there are work arounds rn with how android implicitly copies assets to a read-only folder I think
somehow, if you connect to SSH, the main server immediately starts sending you response packets
now that's some whack amirite
probably just some funky configuration on your firewall or ssh
try switching wireguard to tcp
yeah that's not gonna work
why
WireGuard doesn't support tunneling over TCP
oh it doesn't
ok
sorry I swear I used wireguard the other day over tcp, turns out I was using openvpn
it is very strange how it works when I connect to SSH though isn't it
cuz you can switch between the two in pia
what?
and I thought it was set to wireguard
wdym you can switch between the two?
doesn't really apply to you
also, I had numerous problems with OpenVPN as well, and that was running over UDP
private internet access (pia) allows you to switch between wireguard and openvpn
I may or may not have used a script for OpenVPN though
so irrelevant for you
that I'm not sure if I really trust did the job
yeah I've had issues with openvpn aswell, but I haven't tried running my own vpn in years
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
right
and something that's easy to setup and use, since some of the people who need access to this aren't technical
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
oh jesus christ yeah
I mean, I somehow have Postfix and Dovecot running on separate servers communicating over a local network
is postfix the smtp one
and also communicating with my main server's MariaDB server on the same local network
sorry I always get confused between the two
yeah
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
well I actually use exim but that just offloads to sendgrid
anyway, any ideas about how I could actually do what I want to do?
no
why does nothing just work out of the box these days lol
on my friend's dedi I ended up just installing a desktop and added chrome remote desktop so I could get in
lol
vpn wasn't an option because dynamic ip, and I also have to access their modem firewall to open ports
yeah I'm using ufw on Ubuntu 16.04 for the main server iirc
mind you it's a dynamic ip, but it rarely changes
nvm, make that Ubuntu 18.04 for the main
I don't think I've ever used ufw
and then Ubuntu 20.04 on the dev
I never had an issue with using iptables itself
yeah me trying to use iptables is like my Grandad trying to use a mobile phone lol
i mean I rarely have to touch it anyway
most of the software I use hooks into iptables and manages it for me
# 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
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
for some reason PlayerInteractEvent left clicks only get like half the clicks, but it gets like all right clicks 
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
Right click may fire twice
Because offhand
Disgusting
nah that's enough for me to say you are not receiving any support with that
;-;
Yeah Bardy native multi-protocol support when
maybe in the future
once the server actually functions
rip kotlin pot pvp server
Pvp servers on latest version aren't bad, good part is that there aren't too many 1.8 whiners in them
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
bUt CliCks PeR seConD!
mouse go brrrrrrrrrrr
-_-
well, with the new combat system you have to actually think
with 1.8 you just click and pray
lol
lol
lol
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
i can click around 9-10
I'm like "how is that even humanly possible to click 13 times in a second"
jitter clicking / butterfly too
my brother's one of those kiddies who thinks 1.8 PvP superior
lol
7 is not bad though
my brother has this keyboard that is so bad that you have to press Fn to access delete
like more than a couple seconds
like wtf
its the only thing that actually allows me to compete pulse lmao
not enough endurance
like someone please explain wtf https://www.duckychannel.com.tw/upload/2019_06_042/201906041806076h41f2D9T1.png this is
that's my brother's shitty keyboard
It probably is ngl
60% keyboard
that cost £150
Why white though?
"oh yeha, i got that keyboard with red, white, gold and all caps on it and spent an extra 120 bucks on the tops"
That shit can look dirty so fast
he bought it because it's a mechanical gaming keyboard
It better have RBG
No numpad 🤮
u seen the hyperx 60% pig
no
its got a topographic space bar and it looks so sexy
it's 60% so it can't be good
Give yourself a bit more desk space by removing non-essential keys to play your FPS games. The Alloy Origins 60 is the perfect keyboard to give you what you need, and what you don’t.
at a design point tho 👌
yeah no
please don't tell me you program with a ducky keyboard lol
I wish
just look at dat
bardy have you seen ducky's other keyboards?
do ducky even do full size?
yes
o
Just memeing btw Kali, it's a nice looking keyboard
But 60% are a turn off
eh, they're not bad
yeah i wouldnt buy a 60% myself matt
Depends on the data type
And that too yeah
At least 3 Bits
int
Byte array uses less than long array etc
4 bytes per int
66,325,500
Big
thicc
pointers wouldn't help here?
Cause i have a lot of dupes
in the values
if i pointed it to one, it wouldn't be constantly used
Ah right
is there any data structure
which can do that
im thinking of some sort of hashed tree
Java has references
java.lang.Pointer class
nothing
Just pass ovee the object
You need ordering and fast random access?
It's the same object if you don't create a different instance
Well, in my case, I have a 3d array (with red, green, blue)
If you write Apple a = b
no no
A and b are the same apple
we know
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
depending on the amount of dupes it might actually be beneficial to use an RGB wrapper since you can use "pointers" there
Hm yeah
That sucks
although wait
only 86 possible pointers total
thats possible in a short
or something
if i make a custom implementation
wot
Like only 86 possible unique values
where can i get help with a problem?
depends on what type it is
problem with skins
You could use a byte for that lol
Byte can have 256 values
like coding?
What is this for again?
ah
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?
what
SP?
minecraft gratis
you mean cracked Minecraft?
yes
yeah they won't see you with your proper skin
sorry for the incongruity
We don't support that here
no I have the premium
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
For 64 bits systems pointers would be worse than ints, double in size
yea
yeah you've got object headers too
although i can use bytes
Stay with them primitives
The scope for optimising is pretty limited on java
yeah
Yeah byte is probably the best you can do
C++ ftw
but then why the cracked users see they see my friends with their skins but to me they see me as a Nazi?
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?
¯_(ツ)_/¯
It doesn't know
well then how does it work?
You can interpret the value at a certain address as whichever type you want
Yeah
I heard the OS tells it, but isn't the OS still doing the same thing?
A language like C lets you do that by casting pointers
it's still got variables that it has to declare
Something in the System class probably
Maybe you could hack something together with a bitset but not sure of how fast that wold be 😂
yeah it'll be something that interacts with the JVM
Anyway, afaik a runtimeless language would completely erase types
actually everything interacts with the JVM so that's literally the most useless piece of help I've given lol
System.getProperty("os.name") should do it
^
...
"If you don't do this for me I'll tell everyone you use MacOS!"


