#š½Programming Chat v2
1 messages Ā· Page 87 of 1
stadia sucked, aera
accept it
cloud streaming is overall just not quite ready just yet
feels like a great thing in paper, but the execution for it is poor most of the time
(unless you count using steam play/moonlight as cloud streaming. but that's cause you probably have a good connection between both devices)
hmmm @spare quartz what's a good way to create log files for managed applications
I was thinking commandArray[0] .txt for the name but that could get odd if you do java -jar jar1.jar and java -jar jar2.jar
clarify
specifically naming sorry
can i hear..
if I incorporated the pid into the name, the log file would have to wait until AFTER the process is spawned, meaning that some logs could get lost
pid_*;pid_*.txt
first logs go into a stream
when process is available, dump stream and transfer control to file handler
"transfer control to file handler" you mean redirect the inputstream 
val temp = StreamHandler(ByteArrayOutputStream())
pl.addHandler(temp)
pl.ops ...
pl.removeHandler(temp)
temp.to.transferTo(file)
pl.addHandler(FileHandler(file))
pl.ops ...
I can't attach a logger to a process can I
what does that mean
this almost looks as if pl is a java.util.logging.Logger
irrelevant_
carpool -add_application="./whatever-executable"
how you determine what parts of stdout constitute as a new entry for your logger is your business
or I just redirect all of stdout
good enough
rather than try to impose some kind of logging scheme on applications, I'll just let applications log however they want, and if it happens to go to stdout it just gets dropped into a file
val temp = StreamHandler(ByteArrayOutputStream())
pl.addHandler(temp)
pl.ops ...
pl.removeHandler(temp)
temp.to.transferTo(file)
[pl is useless now]
exec.out.transferTo(file)
ćé”ćļ¼ć³ć³ć³ć³ć稲č·ćć¾ - ARMĆē夢ę³
i would suggest wrapping it in a reader of some kind
since output stream is byte-by-byte, and a reader reads character-by-character
although that might not be of any difference if you pipe the two straight to a file..
seems like .transferTo might also just by default dump whatever's there to the file
00b8b98cec03
00b8b98cec03 03 00 b19203
^ /
03b0c4fbc804 00
little confusing bug fixed
what's wrong
keeping track of the log file
you could send its canonical representation as a string
the only problem possible there is that the other end might not be on the same filesystem as you, but... i don't assume you'll be developing for such an exotic setup
nah
well
even if it is
it'll refer to a path on the FS where the process is being run
so the path will be valid on that FS
well
eh nvm
it wont be that exotic
wow its still thundering
the super fast flashes have stopped (since its day now) but i can still hear them out in the distance
its also drizzling
as expected the first 3 logs take a few microseconds since it has to cache + write
but everything after is much faster
neat
as a result of memorized level detailing the file is a lot more sparse
the majority is just message data
which... is compressible...
(theoretically. im unsure if the benefits outweigh the costs)
brb resetting router
Router setup agaainnn
Like actually or just for a test
Cause if your setup is OK enough then Iāll consider it when the new server is operational
But rn it just has to be for a test
hmm
your cat is a single cell
val transferThread = Thread.ofVirtual().start {
app.inputStream.transferTo(appLogFile.outputStream())
}
how can I kill this
also holy fucking shit i didn't know you were THAT white
once the app is removed
(tbf im pretty white aswell)
All I know is that Iāve never been sunburnt
Iāve just gotten⦠regular burnt and friction burnt
hmm
i have some of those on my right hand
was making french toast for my mother like 3 years ago
burnt myself with oil
.interrupt()
.stop() forcibly kills the thread which is why they deprecated it
.interrupt should in theory produce an interruption exception with transferTo but Iām not certain
depends on the underlying stream
well we'll see
alright
time to open dns on my router..
and see if the dns server can receive
augh
just checked CZDS
expired
Class D Containment Zone
Attachments and embeds brokenSubscribe
Investigating - We are investigating an issue with attachments and embeds not being rendered in the app.
Jun 12, 2025 - 11:02 PDT
OK
ive come up with an idea to produce even more compression
v1.1.0
this is unusable
???? Tf
you must release it as a distribution
what does that mean
sigh
cant upload images cause discord is broken rn
gradle task > build
project root/build/distributions/<YOUR DISTRIBUTION>.<zip/tar>
you need to upload this, not the jar
the jar itself is unusable to 99% of people
11317
including me
i dont have kotlin installed
sounds like a skill issue
sounds like good design
aera is the type of guy to put every entry in his fs in PATH...
IVE COME UP WITH AN ENTROPY INCREASING IDEA
IT IS TIME TO COMPRESS!!!
Just java -jar bruh
thats unusable
Youāre unusable
you're assuming the user has BSL, kotlin, annotations all on their system classpath?
are you mad?
Ship it as a docker container
this is why they made distributions
fat jar
thats just a more specialized distribution
you shouldn't do that though
well..
actually... not a bad idea... but a distribution is easier to use + you can specify default jvm args
Shame on u
so go for the distribution
the size is about the same anyways (give a few extra bytes for the .bat/.sh scripts gradle drops in for you)
346444423271415819
@everyone
None
<@&346444423271415819>
No
0
No
No
the default JVM args are that there are no args
79 channels???
?
I donāt specify default args
115 roles????
yes like -XX
Patch Notes
Events
Minecraft
QBC Followers
Sneak Peeks
QOTW Recipient
End of Month Disco
Combative Changes
Giveaways
Birthday mentions
Dev Stream
You joined Minecraft.
You left Minecraft.
Oh ok









yeah my build.gradle.kts files specifies no default args :3
entropy time
also atp did you see Appleās Java-Swift compatibility thing
yes
Your JVM is getting invaded by a better language
you already said that
Swift will be what Kotlin was meant to be and failed to become
Damn thatās big
Yea it should fit a few next gen games on it
It can fit maybe 2 copies of GTA VI
@timid quartz [ę å ± | 06/12 13:28:37.381844 | Banked File Reader Tests | nextRecord[1]] Finished; compression: 4.910237224836283%
5%!!!!!
[ę
å ± | 06/12 13:29:38.711590 | Banked File Reader Tests | nextRecord[1]] Plaintext log: 1000359 bytes
[ę
å ± | 06/12 13:29:38.761898 | Banked File Reader Tests | nextRecord[1]] Wrote [2711] times
[ę
å ± | 06/12 13:29:38.835281 | Banked File Reader Tests | nextRecord[1]] Banked log: 49113 bytes
i plan to.. using the power of encapsulation
the compression i did just now either does nothing or completely reduces a message to one byte
message length byte
v
...LLLLLLLC...
^
1 = message follows
0 = LLLLLLL0 >> 1 is the message index from before
Welcome to Discord's home for real-time and historical data on system performance.
Discord shitting itself
yeah
painful
so this message bit compression thing actually DECREASES entropy
which means that using some sort of smart chunk detection system we can do something like what LZW does
and turn a bunch of blocks of the same messages indices into only one + length
but first i need to sleep
Nah we want more entropy
ā you need to chug a 2L and stay awake
chug another
I don't have this
then google what a gradle distribution is
Has anyone else seen this
this is a fucking TERRIFYING concept lmao
the GINORMOUS cringe
damn
I tried vibe coding but holy hell it was so bad
yeah cause youāre bad at programming
@timid quartz LOL
CLOUDFLARE DOWN!!!
š
Welcome to Cloudflare's home for real-time and historical data on system performance.
YIPEE!!!!
guthib also took a shit so
i wouldn't try pushing changes or whatever for now
too late already did
ā ļø
they pushed fine
thank god
wait this is rlly cool
dang thats neat
well its not like anything can be lost
might as well try
fair enough
Yo is he cooked?
nah it's just spicy chewing gum
(yes. they're very cooked)
I can't be the only person who enjoys how loctite tastes
what is the employee color
oh its a nicer red
can I like be demoted from corporate
@timid quartz WHAT THE FUCK IS THIS
Lmao cursed UI
How can I remove this jittering... Im not sure what to do
sorry lemme fix that file..
best i can think of is server to client tweening, honestly
send an embedable file
Tween Service
is this in a script?
ye
not a localscript right
just a normal script
ok
i will guess
client tweening too?
no
although u can give that a try
I don't think that'll change anything
@runic sierra actually thats easier try that first
copy paste it into a localscript
and disable the script
oh
mb
put it in uhhh starterplayerscripts
and make sure you change the reference to point to the part still
yea idk what am I doing
like do I put local script in the starterlplayerscript orrr
yes
and then you have to change the part variable to point at the part
cuz the part won't be the parent of the script anymore
how I do that..
well, do you know how to traverse the like.. datamodel tree
like how to find a specific item
like say in the workspace
say you have
game
workspace
part1
part2
part3
part1
part2
part1 <--
do you know how to find that part in a script?
ye
how would you do it?
im
not sure what you mean
how would you reference that part from a script thats in serverscriptservice
like, a line of code
idk man im new to coding š
tbh I gotta go to sleep so I could ask later
ok
but hey at least the platform goes up and down
I can tell you the code to write if you want to check if it works
I would appreciate that! tysm
ok I can do it but u really should learn why and how it is how it is
is this part just under workspace?
you'll need to name it something special
maybe Platform
then to reference it from anywhere you can do
local part = workspace.Platform
yes
damn it that simple
any luck?
go back to bed
Oh my boss also gave me an R210
what is that
@timid quartz https://x.com/bellche/status/1932750050167538078/photo/1
ä¼ē¤¾ććć®åø°ćéā¦ęøč°·ć§č¦åÆć«å¼ć³ę¢ćććć¦ćććē®ć«ćć£ćć
č¦åÆććć±ććć®äøåŗćć¦ćæć¦ć
äæŗććÆćć¼ć(ććć£)
č¦åÆćļ¼ļ¼ļ¼ļ¼ćććÆćŖćć ļ¼ć
äæŗććā¦CPUć°ćŖć¹ā¦ć£ććā¦ć
č¦åÆćč¬ćļ¼ļ¼ć
äæŗććć½ć³ć³ć§ć¤ććā¦ć
č¦åÆććŖćć§ęć£...
Baby server
no u
mini thinkcenter on top
specs?
External dependency, use your windowing library you made
that would require an insane amount of work because id need to make a
- file dialog
- pane
- list
- label w/ editing
and considering its primary use before integration into BSL is terminals, it's pointless to add these into that
wowwww atp actually realizing that rewriting everything is way less convenient than using premade libraries?
youāre basically ready to use rust now
?
i said that making a file dialog in a library designed for terminal design is pointless
you also said itād be an insane amount of work
which i dont actually mind
but if the end goal is pointlessness it doesn't matter
but fine, since you wanna act that way, ill build it in Swing instead...
Even bigger dependency
its not
I want you to build it into your library and use that
No it not
Iām not addicted to the JVM bro
well then become addicted
I donāt drink 16L of Java every day
stupid rustlet.
Our glorious stdlib isnāt crammed full of bloat like Javaās
yeah cause it sucks
imagine needing a library to do something already in your stdlib cause your stdlib does it in trash way
(cough cough locks)
Thatās the beauty of it though we arenāt bound to the stdlib
Also for that argument imagine needing log4j
you need to rewrite it
we dont.. need log4j??
Because your logger sucks so bad
tf you on about
We donāt need parking_lot either
The synchronization primitives in rust are fine
they're not
if a crate can do them so much more efficiently they suck
log4j doesnt do java.loggings job better
it just adds more crap
mmm yeah it does :3
have you used it?
otherwise why do so many people use it
because either
- they saw others using it
- they have incredibly complex logging setups and dont wanna configurate that all using java.logging
- they got told by someone to
your locking primitives suck and your stdlib needs to be checked up using an external dependency
well there you go your logger sucks if it canāt easily handle more complex logging scenarios
accept it your language is bad
it can
incredibly complex
it might be easier for some to use XML than the integrated logging configuration
i dont care, its just "more crap"
its not the job done better at an intrinsic level
rust doesnt provide an async runtime in the stdlib so you can choose which one suits your needs better
those are the top dependents of parking lot
Say that next time
i feel like it would've been obvious from the ... python interpreter, and string interning alongside it
no
boooooring
anyways rust is beautiful ā¤ļø
Much better than Kotlin which tethers itself to the past (the JVM and Java) rather than ascending beyond
"JVM and Java" being the past
more like you're stuck in the past
read the HotSpot code if you dare
Kotlin was meant to be so much more but just became Java for people who go āum actually I donāt use Javaā
wtf is that even supposed to mean
do you know what you're saying or just saying it for saying it
uh huh
Still just Java
mmm except automatic memory management with no GC, enforced memory safety, and zero-cost abstractions
To name a few
mmm except non-nullability by default, JS/Native/WASM/Mobile support, and zero-cost inlining with reification
to name a few
god i love making analogs
Besides this applies to basically everything
that'd be like saying C is the base for every language which is obviously false
what lang is the JVM built in 
sure maybe itās that after itās compiled from C
its not from C but go off
Yes EXCEPT Java Virtual Machine
Itās in the name
The JVM was built for Java and then other things decided to use it too
the rust leeched into your brain
I think all the soda has deposited critical levels of microplastics in your brain
remember x86 is IA-32 (Intel Architecture, 32-bit), that means everything built for it must be by and for Intel
and then other things decided to use it too
this argument is soooooo dumb
come up with better ragebait
I would if Rust wasnāt so good
and elon musk
oh wait no he falls under that category
Provably false but Kotlin is definitely dying
All of us?
stack exchange you dope
ppl still out here using Java to make Android apps, Kotlin canāt even succeed at the thing itās most known for
"still" implies that its a small population, not the majority
so your counterpoint is immediately dead in the water
@lone sky
false
oh it's that guy š„ŗ
āstillā because they tried to push everyone to Kotlin but nobody listened 
source?
ur mom
exactly. terrible
yeah cause ubuntu is weak
oh yeah on a more serious note
@timid quartz so i was doing that thingwith my brain when i was waking up where i just run through a bunch of scenarios AND
i came up with a solid idea for the JVM kernel i wanna make
a 2-stage JVM
the first stage is a stripped down bytecode interpreter after the bootloader
which loads the actual JDK
for kernel initialization
Itāll come for Fedora one day
yeah whatever
jokes apart
i might try sudo-rs on a fresh arch install
just to see what really
is the difference (if any)
from the project description there isn't supposed to be one
^
Interesting
and it will beat redox... and windows... and macos....... and.....
kidding... but it'd be really cool tech
~~wouldnāt be necessary if you ran a Rust program compiled as an ELF but ~~
making it work with the nanokernel design i have in mind would also be neat
Don't bother. you're years behind my teams research.
monolithic kernels on top
ACL driven nanokernel > *
microservices >>
thats a funny thing with my nanokernel
the whole point of it is just
the kernel doesn't do anything, its just an authoritative ACL
the user services are given to hardware/cross-service resources using that ACL
a program by design is not allowed to do anything with the computer unless authorized
now THAT... is good design
Congrats you have re-discovered what a microkernel is
thats not what a microkernel is
a microkernel does not do facilitation of ACL
it is just an IPC facilitator
ADDITIONALLY, microkernels are incredibly less dynamic, modular, and safer than the possibilities of a JVM nanokernel
mmm it still manages some basic memory protection
everything does
thats a requirement of all processors
kernel architecture agnostic
and memory blocks are a far cry from what an ACL is
I think ur just dumb
i think you failed your cs class
nope
yup
I actually got an A in the OS class
(cause he didnt make the os)
get rekt liberal
You do not understand how involved those projects were
you ADDED to it
You do not understand how involved the process of even adding to it is
its cause it wasnt a JVM
JVM would be worse
if it was a JVM im telling you it wouldve been so much more better
S+
look
even ACPI is putting bytecode in their firmware crap now
thats basically just a micro JVM
this is true
no it's just germinating
Weāre in the process of putting Rust underneath everything which is why itās outside of the stack rn
ā£ļø
Itās revolting against you so you use Rust
the world when we switch to using rust
nope
ALL OF THEM.
ok Stallman
Youāre so annoying smh
go to sleep sellout.
sellout???
Iāve never sold anything out Iāve always been a Rustacean
Hating every second of it
weirdo
no.
fat
weirdo lobotomy
We wanted to congratulate you on creating the one billionth repository on GitHub! ā curl -s https://api.github.com/repositories/1000000000 { "id": 1000000000, "node_id": "R...
Man Iād love to play with this R210 but Iām lacking a power cable and a vga cable
good morning
i am currently using my newly built program for what it was designed for
furry art cataloging
Reminds me of the image archiver
honestly if that thing knew how to properly use user-defined file attributes it'd be super useful
rn im just hand typing the FS attributes using this program, which funnily enough dont even appear in explorer
its also more efficient than it was in this video
indexing speed needs to be improved though
you mean you can now call libraries to render images for you :3
cause you didnt write the windowing system yourself :3
what libraries?
didnt you use spring
wtf is spring
still basically an external library...
you're an external library
you could never rewrite me
okay time to make this thing multi-threaded
a lot of the indexing time is waiting for the windows FS to tell us if something is a directory
jesus yeah
using two Thread.ofVirtual and the thing is instantly responsive
Thread thread = Thread.ofVirtual().start(() -> {
Atp atp = new Atp();
atp.codeBadly();
atp.watchBayachao();
System.out.println("meow");
});
Thread.SECONDS.sleep(5);
thread.interrupt();
ćć¼ććć”ćć(åØ)(OSTERćć)ćØć®åć³ć©ćé äæ”ļ¼OSTERć½ć³ć°ćęććć¦ććć ććŖćć愽ę²ć®å¶ä½ē§č©±ć ć£ćććOSTERćććØć®åŗä¼ććŖć©ćŖć©ćéč«ćć¦ććć¾ćš
šę¬å®¶åē»ćæć¦ļ¼ļ¼ļ¼ļ¼ļ¼ļ¼ļ¼ļ¼(åøę)
ć¦ć”ćÆć¤
http://www.nicovideo.jp/watch/sm8947460
ććć²ć³ćÆ...
we need to kill argparsetoe
arg parse
bread_server_lib reference??
"codebadly"
holy shit??? adjacentphoenix reference?????
does come off at a ""tradeoff"" though
indexing something massive (C:\Windows for example) uses all of your cpu
aww you're basically mimicking intellij now
i love massively concurrent programming
Hey no spoilers
Iāve not played Ch 3
I had to restart from Ch 1 when I moved to Linux
it's not a spoiler š
this website sucks. session terminated
this person sucks. life terminated
MrBeast if he was cool: WE PUT A JVM IN AERASTOS PACEMAKER!
how many of these silly images do you have
a lot
many many?
Release them
You have trapped them in your stupid program
well only like 49 rn but i plan to add more
ugh i love it so much
also name ur files better
?
oh wait are you using my pixiv downloader
:( why did i even make it then
annnnnnnnd you got to learn some kotlin
for the worse
consider: qt jambi
it might be an external dependency
but it's a good one.
SMH..
-# @lyric mesa @timid quartz is she normally this insistent about not using dependencies
ok i'll
take the radio silence as a yes

i'm not in here that often to know š
Yes
fair š
š
interesting drive name
UGHHHHHHHHHHHHHHHHHHHHHHHH WHY DO I DO THIS TO MYSELF
also corrected the time unit
now unfortunately i must write an APNG extension to ImageIO
i couldn't wait for propagation anymore
its so easy
not propagated yet š
Just do recursive dns
?
You donāt need any of those access requests
yeees
but its so much easier and opens future possibilities with a zone file
plus they'll practically give them all to me cause i have such a good reason
okay time to reimplement this
bad reason*
They should give none of them you
"none of them you"
Japan was very based in that regard
yeah at least im literate
i will go to japan.. and commit TWO massive acts of robbery
Still practicing isolationism even in the modern day ā¤ļø
- bayachao merch
- the WIDE project and their stupid zone files
Very based Japan
very unbased
Iāll make a dns_nanoclient in rust
Never!!
Well all powers of 2 are of the binary form 10{0}
yo atp
?
do u know if theres a way to check from code if it was originally kt
or if it was java
in what context
... are you aiming to check some file manually or programmatically?
wdym
answer this, it's probably what im looking for
programmatically
language?
what language
I tried searching for an answer but couldn't find anything
- iterate thru SomeClass.class.annotations
- for each annotation, check annotationClass.canonicalName
- if the canonicalName is
kotlin.Metadata, it is a kotlinc compiled object
kotlin.Metadata is runtime-visible targettng only classes so it should be visible thru reflection
is there a better way than comparing names?
heres a test sample if that helps
oh I guess I can't get a reference to that annotation since im in java land
šš you already like C++ go use that
well kotlin obviously has to be in your classpath, so, use kotlin.Metadata.class.canonicalName
ay man I ain't choose the language here
I work with what I got
not necessarily
but I will just check name
it must be
you cannot load a class with kotlin annotations without kotlin in the JVMs classpath
copium
unless you're intentionally doing some incredibly strange classloader stuff or instrumentation
but you shouldn't be doing that for 99% of things
the base class is distributed in a lib
inheritors can be in kt or in java
I need to know if they are kt or java
from the base class
well then kotlin will always certainly be in your classpath, so you have two ways to check
so its not guaranteed I will have kt stuff
either thru the name or invoking loadClass of your local classloader
Whatever::class.qualifiedName.endsWith("Kt")
java, not kotlin
wth
aerasto after contributing nothing to society but shitting on the jvm
what is that
IF kotlin is not present, an error will occur in a violation of JVMS section 6
how to tell if a class is Java or Kt
thats kotlin code, aera.
all Kt classes end with Kt
they do??
they do not
they do?
they dont have to
kotlin.Metadata is the only way you can reliably check as that's a compiler intrinsic
blah blah blah copium copium jvm bad
no
go back to working on the qdfhq.
why does every class end in kt
the JVM cannot recognize either .java or .kt files
smh.
ex. MainKt describes a file w/o a class
no the class name
just functions in top level scope
does the kt compiler add that?
yes, but ONLY in files without a class
wdym
oh so if you write your own class it gets named whatever you named it?
yes
theres somehow a delta of 8 instead of 4
my mental faculties are perfectly normal
the computer won't magically know what i want it to do if i lay down so i must make it work
nono i'm saying like
you lay down for a bit and then try fixing whatever
once your mind is clear again
?!?!??!???!??!?!?!??'

proton >>
ughh,, headache,,
gross
??
babio.......
<3333333
THIS is me and rust
ā
this is a more accurate depiction of you.
anyways please finish CH2 already im tired of not being able to discuss the rest
@spare quartz snowgrave again? 
2342352737849200140-3-4939
IS THAT
saving this for when I argue with atp
yeah so
as i said you're just the queen
you!!
dude i beat ch2 in like less than 4 hours how does it take you A WEEK š
EXAMS
WORK
JOB
valid
FUCKING EXAMS KADE.
he doesn't have that
I DO
your the type of guy to work at walmart
annd now im jealous :(
~~i have 2 better servers nuh ~~
ok but I also have an R710
in addition to this new R210
BOTH for the low low price of $0
HOW
ARE YOU GETTING THIS SHIT
LOOK
I was friendly with the IT guy when I was in school
asked him if he wanted help
he said yes :3
THIS IS WHAT THEY DO
THEY JUST MARK SHIT AS DCR
AND THEN TAKE IT OUT BACK
NOT IN A MILLION YEARS WOULD THEY LET US TAKE ANYTHING š
can u turn my computer off and then on again for me thx š
wtf does dcr mean
don't care repair
function PaethPredictor (a, b, c)
begin
; a = left, b = above, c = upper left
p := a + b - c ; initial estimate
pa := abs(p - a) ; distances to a, b, c
pb := abs(p - b)
pc := abs(p - c)
; return nearest of a,b,c,
; breaking ties in order a,b,c.
if pa <= pb AND pa <= pc then return a
else if pb <= pc then return b
else return c
end
The calculations within the PaethPredictor function must be performed exactly, without overflow. Arithmetic modulo 256 is to be used only for the final step of subtracting the function result from the target byte value.
uhhhh not really sure but it's a term for inventorying or something
essentially
wth is a paeth predictor
predicts when u will mispell the word path
or a e recycling center
pretty sure the guy who came up with it is dead, but it helps with entropy
or refurbished so
little do u know everything marked as dcr goes straight to me
oh ok
carry on mr paeth
ic
the tech lady is also a jackass and called me the other day in a panic trying to ask me to reset two computers bioses beacuse some two fuckass kids put a bios password on it
kade is your high school private or public
mm mine was private
wtf
government funds make things tricky
ohhhh yess that makes sense
but private school gotta buy it with their own money so its their property
HOW IS THIS GUY BROKE HE WENT TO A PRVIATE SCHOOL
yet the only thing I could take is
the tech lady was just
the single ruler of all tech related things there
nvm it makes perfect sense now
and she just only knew how to reset Chromebooks
