#💽Programming Chat v2
1 messages · Page 105 of 1
Yeah the C version is super simple comparatively lol
now with a pointer...
(not the socket yet, just protocol)
i was just thinking to myself wondering if it'd be possible to free an individual memory segment (the pointer for each protocol is a slice)
but then i remembered that the freeing is controlled by Arena
use after free galore
Is the arena where you send the memory to fight
(I know what a memory arena is)
somewhat
in java theres 3 (or 4? cant remember the last)
confined (single thread), shared (multi thread) and auto (gc-managed, shared)
oh yeah
and global
i usually just use confined/auto though
what's interesting is that the JDK Arena isn't a sealed/package-private class
so you could make your own
You might think the Zig model for allocating memory is interesting
unsure how you would though
we've already spoken about it maybe 5 times now, i know abt it
Nuh uh
yuh huh
I don’t remember therefore we haven’t
well i remember
urghhhh anyways if I want to receive raw packets on macOS I’m gonna have to figure out how to use a BPF
Berkeley packet filter?
yeah
windows has something named like that called https://learn.microsoft.com/en-us/windows/win32/fwp/windows-filtering-platform-start-page
i dunno how it works though
don’t wanna disable sip
too bad you dont have something like PsExec64 for mac (to my knowledge)
ew Java RMI for windows
what? no
it allows you to run applications entirely remotely
or locally and do this
java rmi is just a simple message passing protocol
completely different
thats like saying datacenters are just massive java rmi factories
(notice how they use the jvm for HPC instead of rust)
erm yeah cause the JVM is ancient
blah blah blah
enterprise runs on ancient tech
datacenters aren't enterprise
they're research
which do use ancient tech but they work fast and thats what matters
could be even faster if they used Rust…❤️
the bar in the middle is rust
notice how the wave is moving slower after going through it but retains the same speed going backwards
its cause it hates you
oh my GOD bro
these japanese people
stupid Japanese people with their stupid squiggles
役
?
いや
burn
stop
i have no clue what any of these flags mean
aw crap another japanese person followed me back 💔
All these stupid “operating systems” with their stupid “security measures”
we need to go back to the 90s
I’ll use Linux 1.x
they only restrict RAW usage if you're in the Administrators group (over Windows 2000)
its not that extreme now
you just have to write a loader in UEFI
(and also create a virtual machine for ACPI but shut up shut up shut up)
im pretty good at swimming but no
LOL do you think atp would ever go outside much less play a sport
IDK I THOUGHT ID ASK TO BE INCLUSIVE 😅 😭 😭
IM GOOD IN THE WATER!!!!!!
I don’t rlly do sports either not formally
Thats cool 😁
it just so happens you can't have good hand eye coordination for many sports with bad eyes
ok aera.
Get contacts 😁
dawg I have fucked up eyes too I get it
no i need surgery
Oh ok, have u played pickleball
A little yeah
What’s your prescription anyways
bad eye muscles in my left cause them to spasm a ton + my corneas are awful
Neat. People keep tryna get me to join em but idk how to play lool
It’s fun
i don't have the numbers but my glasses are quite thick
I don't got a paddle either
get the numbers smh
ugh id need to talk to an eye doctor 🤮
But theres this rlly nice park nearby with pickleball courts
i do need my perscription renewed though since my glasses are falling out of alignment + scratched
but its so expensive
How u get glasses without a prescription
Both of my eyes have separate prescriptions
i got my prescription like 3 years ago
thats why i do not have the numbers
Oh u need a new one
yes
Go get a new one
no insurance makes that hard rn though
Ye same
Mine are 200 off
From each other
Whats urs
200?
Im 535 and 335
At least I’m not a bayachao fan
what're those in
In?
Idk that measurement, all I know is my right eye is -4 and my left eye is -6
what aera said
im not used to giant numbers like that
usually they're just +/- an integer and a decimal
Oh thats how China does them
huh
Interesting
alright umm both of you
So I guess I’m like 425 and 600
hold your hand in front of your face and estimate the distance it takes for them to start getting blurry
i need to estimate
Oh ok yea thats actually pretty much my difference just a little worse for both
Hand? Better estimate is text on your phone
sure that too
I have to hold my phone at most ~4in from my face for text to be clear
~3.5" for me
So we’re pretty similar
i usually squint a little unconsiously so that can bring it up to like 6"
Same lol
but with my eyes open about that much yeah
0.5” is within MoE
MoE?
Margin of error
Getting blurry at all or unable to read without squinting?
latter
lenses are so annoying when they start having those little blemshes that you cant wash away
~12"
Damn this guy has great eyesight
true
Its cuz my right is only 335
So its by far my dominant eye
And I think I just be using my right most of the time
im pretty sure my eyes are symmetrically bad so i dunno what thats like
does your brain just like, smooth out the blurriness between the two (if that makes sense)
Ye
huh okay
You can notice that you like using right eye more than left eye
Its like one is more in focus than the other
But its not a conscious choice to pick which one lol
its cause you need to start using sRGB
Adobe rgb
❌
too high of a range
Hey look it’s you
IM NOT 30
this is bayachao irl btw
yeah looks like her
Urghhh that’s the one thing I don’t like about Japanese numbering system
万 being 10k
566万
5.6十億
real
貧民は億万長者が食べる
im trying to say "the billionaires eat the poor"
i think を would imply that the poor eat the billionaires (or that the billionaires are objects?)
yes I thought that’s what you were going for
万 amongus
So uh if you’re going to use that sentence structure
<the poor>は<the rich>が食べる
You would probably need to use a passive sentence (ie “the poor are eaten by the rich”) which would be
貧民は億万長者が食べられる
You could also invert it and say
億万長者は貧民を食べる
correct me if im wrong but the dictionary says 食べられる is an "intransitive verb"
which would mean that it works without a person or entity in question right
*correction you’d use に食べられる I think
just that it works off some object?
oh
SO THE FUN PART about る verbs is that the passive and the potential form ARE IDENTICAL
oh 😭
The (食べれる) part is because, in speech, the potential form of る verbs is often shortened to that (you remove the ら)
i see
And that happens because for う verbs the potential form is made by changing the う sound to an え sound
So like 焼く to やける
So they just kinda…also do it for る verbs in speech sometimes
And guess whaaat there are also う verbs that end in る!!!! You just have to know which is which!!!!!
耳はどれにも繋がない。
ATPの耳
笑
waaaaaaaaahhh
jisho doesnt have a translation for my favorite us office
the intelligence community security coordination center :<<<<
アメリカ合衆国情報共同体安全協調中央
@rustic vine are you able to read this (curious)
(ignore kana at start htats just "a me ri ka")
Ummm
United Intelligence Community Security Coordination Center?
Goated
Thats just traditional
And there arent any weird ones so a simpleton like me who only knows simplified can read it still
Tho its kinda weird... its like, United (Country)
OHHH IS IT US
yup
Ok thats not how we say US in chinese
So that translates to United Something (Country)
Must be a jap thing
in its combination with the kana before it
I just ignored the part before it 👍
Thats so long for US
center country 💪💪
Yuh
Uhhh if I were to write that I would prob write
美国情报界安全协调中心
If thats a real thing thats probably the "official" translation too. Theres rlly only 1 way to write it formally
uhh there isnt a jap page for the USIC but there is a chinese one
they wrote it as 美國情報體系
Oh ok thats not a direct translation
That basically translates to US Intelligence System
ah
美國 (US) 情報 (Intelligence) 體系 (System/Community)
do 國 and 国 mean the same thing?
Oh, Community is the better translation here
It can be system or community
With context here community is probably better
Traditional vs. Simplified
that makes sense
now to figure this out
米国❤️❤️
They call US the rice country
reverse racism
米国人工知能学会
Oh here’s a long one
米国公認会計士協会
アメリカ合衆国連邦緊急事態管理庁 (US FEMA)
Dear lord
japanese people when it comes to being consistent
(5 billion kanji compounds for united states [federal])
I HATE AUTOMOD!!!!!!!
HAHAHAHAHA
2000fo+感谢!!!非常感谢大家一直一起来的陪伴!!!🙇♂️🙇♂️
虽然我感觉自己也没画了什么很伟大的作品.呢..今后也努力画更多的同人吧!🐱
Automod stopping you from passing off another’s Japanese as your own
THATS
CHINESE??
😭
you might need new glasses aera
augh
9 parameters for a rx function
Dear lord
okkayyy lets see
need to figure out how to tie a java byte buffer to a memory segment which i think i can do with asBuffer thru a MemorySegment
lemme close in closesocket first cause thats the easiest
thankfully RAW is connectionless
Almost reminds me of sendto on *nix which is like fd, buf, len, flags, address struct, address struct size
But that’s only 6
And it’s also weird cause even with the IPHDR flag set I still have to use that or I get EDESTADDRREQ (destination address required)
maybe if I bound the socket but
imagine not using mingw or cgwin
its mainly talking about how to tear down the connection correctly
win32 provides C POSIX functions as well, i just choose not to use them
(but they're not tied to file descriptors like on UNIX-like systems, they're separate)
also these
but i dont have ATM or an infrared port so they're irrelevant
shutdown
how
oh cool
wait nvm
i was gonna say it let me call close* multiple times
Socket operation on nonsocket.
An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.
but it eventually deallocated it
All of them :3
10022
awww
invalid alignmnet constraint,,,,,,,,,,,,
okay its running now
just need address and flags and crap
Send to 104.16.148.244
cannot send
that’s the fbi :3
i think im gonna try binding to my wifi interface and turning on RCVALL
and then ill have some dinky little wireshark
Of course the FBI is CloudFlared
ew
ill just ping the usaf
https://crl.gds.disa.mil/ my beloved
No we need to get you on as many watchlists as possible
You’re already on at least one for Telegram
and this doesnt put me on one?
have you even seen intelink?
go here
Woo more watchlists
kill snowden with missiles
why 3:
kill every whistleblower with missiles
we must let every intelligence community free
yeah
hell naw
ITS EVERYWHERE
Oh he got naturalized in 2022
UNFUNNYLAD JUST GAVE ME A GREAT IDEA
Smells like frozen chicken
TO STOP USING KOTLIN
!!!!!!!
AMAZING IDEA
WHAT
@lone sky you need to get into ATP’s brain and convince them to never use the JVM again
i will instead make them practice art harder.
what is this
r/place but on the entire earth
link
why don't we hack in your brain and convince you to resign and leave quantum
i wonder what seattle looks like
❤️
dont do the latter part pls.....
OMORI SPRITE
That や looks horrid
IKR
Did you draw that
yes
Fix the や
ughhh
but i dont have many pixels
umm
i dont know how to fix it
it looks understandable as a ゃ
i have like 4x4 to work with
again i have supppper limited space here
wassup beijing
NO WAY
THERES FLAGS AT MCMURDO
not tianenmen square 💀
i have an ideaaaa
he shall be constructed at my home address.
HE IS COMPLETE!!
detestable
meanie
i was planning on drawing a tiny little ferris in calveras...
literally was
Calaveras Lake is a reservoir on Calaveras Creek, located 20 miles (32 kilometers) southeast of Downtown San Antonio, Texas, US. The reservoir was formed in 1969 by the construction of a dam to provide a cooling pond for a series of power plants, called the Calaveras Power Station, to supply additional electricity to the city of San Antonio.
Th...
artifical lake created for cooling the gas plants that power this area
whoa
SIGH. ok
but i need to 🤮 draw art 🤮
paint.net resizing only goes so far
the hell
it got a giant pipe in it
i omor 🤮
@timid quartz so
servers are down rn
BUT
when they're back up i've UNFORTUNATELY made a sprite
yipee!!
this is terrible
I knew you liked rust deep down ❤️
my decade of programming should not have ended up here
Programming JVM in furious attempt to deny that you at least kinda like rust
that looks like a sprite from that one game in deltarune chapter 3 ngl
not powerful enough
ちゃお
me too
tbf
im also doing regular tcp/udp sockets by proxy
but also bluetooth too
We apologize for the inconvenience. We have suffered an attack and are currently investigating what happened and which vulnerability was exploited. Wplace will remain offline until we identify and fix the issue. At this time, there is no estimated time for the service to return. We appreciate everyone’s understanding and patience. 🙇
(wplace)
OOOOOOOOOO sending works on macos
I had to change a few of the structs
cause the fuckass structs are different thank you macos
rice country???
yeah lol
still isnt
米 : Rice, USA, Metre
hey i didn't invent them
good job!!!!
NOOOO WHAT WILL I DO WHEN THEY SECEDE
im still writing my socket to actually try and read data
receiving on macos is going to be a different story
uhh
either I figure out bpfs, disable sip, or just use linux
@rustic vine you're the closest to a C programmer
what is the datatype of char
a short?
wut
depends on the system but usually one byte
ye
why do u care
jvm
but USUALLLYYYY
char = one byte
short = two bytes
int = four bytes
I've seen an array of unsigned shorts used for wide characters
like um
utf16
but if u were using the BETTER language cpp
you should use wchar_t (wide char)
👍
yeah im working with win32 which usually uses utf16 (and for socks it has a char[14]) which is why i asked
uuuuhhh what was the layout for arrays.... i forgot....
unsigned char I dont think does anything
u sure?
pretty sure it's row major
wait wchar_t is in the c90 standard too
oh there is also char16_t and char32_t
cuz wchar_t is platform specific
or... compiler specific? idk
depends on compiler looks like
char is not guaranteed to be signed/unsigned
there we go
so depending on compiler doing unsigned char could land u in hot water
forgot to cast at the end of invokeExact reward
(int,MemorySegment,MemorySegment)int but found (int,MemorySegment,int)Object
whut the flip
let mut ki_result = Matrix4x3::<VoltPerRotation>::zeros();
let mut kd_result = Matrix4x3::<VoltPerRotationPerSecondSquared>::zeros();
let mut kp_result = Matrix4x3::<VoltPerRotationPerSecond>::zeros();
let mut binv_result = Matrix4x3::<VoltPerRotation>::zeros();```
too many :
omg is Matrix4x3 an entire type??
wait so theres like 20 million types for the
different sizes??
😅
ok java nerd
just use cpp bruh u ain't even gotta think about pointers
kinda
idk u still do but like you ain't gotta think about
memory management
dont have to do that in jvm either
blah blah blah
yeah but you need a real ALU to talk
7*
wait atp are u in school
no
how do u have the fancy intellij
oh cause i have a school email
brhuh
yeah
ez ide 💪
im lowk worried
I won't be able to use
the fancy ones
after I graduate
idk what im gonna do
I don't wanna pay them
NO
👍
I mean company will pay for it obv but
das not for personal use
😢
so idk
idk if I should just use the free one to get used to it
and suck it up
wait wtf professor is an "academic rank"
i didn't even know they had those
i just thought it was another word for teacher
apparently
cuz they teach stupider kids
anyone know how to make your monitor not radiate heat
i can hold my hand a few inches from the screen and feel it
dont be a few inches from the screen...?
okay but it warms up my room
hmm
conservation of energy and crap
no
OHHH
loooool
goated
u know my university's study abroad program in china got shutdown
cuz the chinese university that they partenered with got declared a national security threat
and the US pressed them to pull out
i hate when that happens
whats wrong now
oh nothing
it's just...it's peaked
the payoff of being able to send finally happened
OK. do the next logical step
there are no logical steps 
replace your computer's network stack with your implementation
os issue
that is the next logical step
and you took a whole course on it in college or whatever
OS issue stands for "Oh, Skill Issue", btw
so you're clearly qualified
unqualified*
for those uninformed
(just dont blow your leg off like me)
okay so remember that kernel i made in 2024
oh did u make a bomb by mistake
and it was made from ada and gcc and it was great right
it happens all the time actually
bad*
badwards
and now i have an assembler and CPU in my jvm
eventually an os will come out of it
but you have gcc so use it
ok microsoft
lowk msvc is goated
it has complete cpp modules support
when no other compiler does
idk why I wrote packages
package brained
modules (java modules reference)
this guy is a fan of Java 9
oh okay
lets see
👍
next logical step is to clean my rust code up
can't wait until microsoft makes the next big C
apple clang 💪
🤡 Maintainer does want to keep it oldschool. No plan to update anytime soon.
The socket has not been bound to an address with bind, or ADDR_ANY is specified in bind but connection has not yet occurred.
OHHH
catch on WSAInvalidArgumentException
perfect
i love WSA being at virtual offset 140.7 TB
the MMU is perfect
closer
now datagram read is complaining
but thats good i think
?
@timid quartz OK crazy idea
with raw sockets you can theoretically make your own protocols right
i wonder if IANA would care if i just made a beg internet protocol.....
「一→二→三→四」
これ「Why japanese people!?」って言われるけど
「1→2→3→4」
こっちも大概やろ
more like wow thats one inaccurate clock source
It uses rand.pool.ntp.org
Mmm probably not but middleboxes might drop your packets because they don’t recognize the protocol #
thats fine if it's done locally
AYYY
AERA
I GOT RAW DATA!!!
lemme read off it
4500002cd4310000f3063c4623cbd21cc0a800c4c49d08b32d0eca91000000006002ffff1be20000020405b4
no IP header cause i need to specify that in the socket opts
wonder what this is
wait actually this might be the ip header
Starting with x45 makes me think it is
Also your length is x2c00 (11264) bytes?
That’s big
44 bytes
0x002c
45 00 003c 261e 0000 33 06 67b5 a75e911e c0a800c4
508522b8e50ba7b700000000a002a5647d910000020405b40402080a685ac2c2000000000103030a
c0a800c4 = 192 168 0 196
whiiich is my local IP
okay this definitely is the IP header
the source ip is 167.94.145.30
(wBufHandle.get(rxBufferArray) as MemorySegment).reinterpret(rx.toLong()).toArray(ValueLayout.JAVA_BYTE).toHexString()
🙏
alright
thats really cool
i now have a very very simple packet tracer
question mark
cobalt lets you save what you love without ads, tracking, paywalls or other nonsense. just paste the link and you're ready to rock!
anyways made the IP bindable
also decoding the address from the socket
your bytes are backward then
whenever I send/receive ip packets, they are like x45 x0 x2c x00
im about to read off directly from the NIC
that's odd
beccause that's network order
oh wait it is
wait that's after serializing them into a struct
I bet if i receive byte-by-byte I'd get 0x0 0x2c
yeah that's what im doing personally
well not serializing into a struct
but after being read into some things on the OS that are likely LE
let's c
time for you
@timid quartz okay wplace got back up
unfortunately they rolled back so i need to redraw duke
but there.
yeah what's odd is
69, 0, 0, 38 this byte sequence results in
send failed: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }
likely macOS catching the bad length
69, 0, 38, 0 this byte sequence results in a successful send
what do you think about the thing
macos is still setting my identification for me too
which is odd
d
the same thing happens in C
and there I don't have direct control over the serialization
unsure
ill try in windows when i can
if I htons it to make it 69, 0, 0, 32 then it does this
i have to set a socket option in order for the socket handler to accept an IP header from me
yes
but FIRST pixel art
IP_HDRINCL
hey aera
rate the kohaku so far
Trying to re-implement the major part of my game loop in Rocket but it's pure hell because everything has to be coded twice.
local Rocket = require(game.ServerScriptService.Rocket.Rocket)
Rocket.Execute([[
require "game.ServerScriptService.roblox";
ServerFolder = "game.ReplicatedStorage.Server";
HousePhase = false;
function changeTime args time do
re_fire "game.ReplicatedStorage.Server.TimeSend" time;
end;
function chooseHouse args region do
if HousePhase == True then
House = random 1 8;
end;
end;
wait 45;
call changeTime 12;
RE = ServerFolder << "Subtitle";
message = "Find a house to hide in.";
re_fire RE message 7 True;
wait 15;
call changeTime 1;
]])
what is
rocket
if you don't mind me asking
programming language I made
☠️
it's so impractical to use Rocket over Luau
i'd argue it's more impractical to make another programming language to layer on top of it
but you do you
¯_(ツ)_/¯
you have to code it in Rocket AND the translation layer, so you're basically re-making the Roblox API. I'm doing some of this by myself to grow the standard library
I mean Rocket wasn't made with Roblox in mind
it just happened to line up because the interpreter was written in lua
and Roblox uses Luau which is a sandboxed and limited version of Lua, so it was pretty trivial to just port it over to Roblox
Everything that is natively in Rocket works in both, I made sure of that
However adding the functions like re_fire was not a trivial task and was pretty exhausting considering I was basically rewriting the Roblox API, a system that took a decade and some to develop fully
da hell is rocket
programming language I made
for roblox, yeah, actually, not just for Roblox
Bracketless syntax was the focus which is why it's weird to type
its not weird to type
bracketless is fine
luau is bracketless
thats not whats weird abt it
i mean like no () or [] or {}
() are not brackets
mb
one thing that immediately stands out to me is the double termination keywords
you have end to mark termination already
but then u also have ;
theres also a bitwise left shift thrown in there?
append
is that some sort of pipe operator?
that's how you append
yea using something mostly standardized for bitwise shift is kinda wonky
don't get me wrong tho im not tryna hate on purpose, if this is for fun, then awesome
its hard to parse but I partially blame no syntax highlighing
actually not only is it hard to parse for humans
its gonna be near impossible to parse for a parser
does it actually work?
yes
what kind of parser?
well like
like lalrpop?
or some sort of lr parser?
or I guess maybe thats too specific
is it top down or bottom up?
I don't even think you'd even call it any of those. It separates based on words and uses basic code to make sure the syntax is correct
which is why i call it shitty
oh ok
I think thats chill
language designers are nerds
tho having a spec is good
you should design an assembly language!
did that already
yeah my biggest worry here is just
you will run into a lot of ambiguity very quickly with syntax that looks like this
damn ive never made my own language 💔
same..
all that theory just to get beat by someone new to the channel
I should just retire bruh
hey i havent passed high school
and i havent made any languages... (just made others that already exist)
ok but u got like 20x the experience compared to me
❌
worthwhile trade..?
i hope its not terrible!
are there specific goals you set out to achieve with this?
i hope you actually get to learn how the JVM operates and DON'T just "learn java" (cause java is stupidly easy to learn, the JLS is very simple)
a big reason new languages are made and new syntax is created is because their creators didn't like how other languages expressed ideas
(the stdlib and opreating procedures are NOT!)
screenshot of it in use for a for loop
THE JVM IS LACED
no, was just built in my spare time
FUCK THE JVM!!!!
you will be killed in your sleep tmrw btw
:<
you know more about syntax and parsers than i do so quick question
if you had a language that was written programmatically (like, an ASM file but you can run code alongside it before assembly to transform it) what would that be called
just a preprocessor?
I guess I did have a goal in mind of no parentheses, braces, brackets, or commas, just the semicolon, because I felt that made it easier to understand, but at the same time, it makes some things hard to follow I guess
you should learn Ada
well, my main concerns would be difficulty to lex + parse, and then also read for humans (esp. without syntax highlighing)
I honestly like luau a lot for its syntax and how simple it is
I heard from some friends they did some really cool embedded work with it where their underlying library is cpp but they embedded lua into it and so all their real high level logic was in lua
which meant that compile times were non-existent and extremely fast even on potatoes
cuz its interpreted
at least whenever the underlying cpp that interacts with hardware didn't have to change
I thought about re-writing Rocket in Go or something because even with luac it was still not comparable to C. I didn't intend it for it to be that fast but it also isn't portable either
which is often, cuz a lot of time is spent fine tuning the high level logic or configuration parameters
I wouldn't worry abt speed
speed can come later
wdym comparable to C
getting syntax right from the get go is really important for the future of a language
luau is crutched by the decisions of lua(u) actually
sorry atp lemme read what u wrote
I think it'd be a preprocessor yea
well, the language wouldn't be called that
the compiler would be
Would you like to see my assembly syntax as well?
wait u forgot the AssemblerManufacturingSolutionStrategy
die harry
LOL

