#💽Programming Chat v2

1 messages ¡ Page 37 of 1

spare quartz
#

ugh

#

that thing katsumi used

#

i tguess

timid quartz
#

?

#

what thing katsumi used

spare quartz
#

idk

#

they posted a screenshot of a rust project taking like

#

half an hour

timid quartz
#

@lyric mesa ?

spare quartz
#

mrweormwerowemrwemrowemrmweoromwer,,

timid quartz
#

all I know is that your lsp took an order of magnitude longer than mine to compile

spare quartz
#

rust issue methinks

timid quartz
#

Ada issue

spare quartz
#

nope

#

probably not the same test env

timid quartz
#

It literally was?

#

I compiled both on the same machine

#

Under the same OS

spare quartz
#

okay

#

but

#

same flags?

timid quartz
#

Yep

#

Both in release mode

#

Idk what other flags als compiled with because I installed it through alire

spare quartz
#

IM PANICKING

timid quartz
#

panic!();

spare quartz
#

hehehe

spare quartz
#

ramen so tasty

#

SHOOT HIM

#

HES AT 64 HP

#

CMON m oM OcnoCM

spare quartz
#

you know what I need

#

a soda fountain

flint belfry
spare quartz
flint belfry
#

so what?

spare quartz
#

fatass.

flint belfry
#

nothing wrong with that

spare quartz
#

YES THERE IS

#

ALL OF YOU ARE OBESE

flint belfry
#

not all of them

spare quartz
#

All.

flint belfry
#

and before you say they weigh like 1000 pounds

#

thats not fat

#

ofc plane dragons will weight they have fucking engines

#

you lose\

spare quartz
#

sounds like cope

#

obesity

flint belfry
spare quartz
#

nope

flint belfry
#

yeah

spare quartz
#

send me 1 cat and ill send you 1 plaen dragoni

flint belfry
#

your the fatass who drinks soda every second

spare quartz
#

actually

flint belfry
spare quartz
#

fyi

#

im drinking chocolate milk

spare quartz
#

Bed time!!!

timid quartz
spare quartz
#

I don’t care,,,

#

I’m tired

flint belfry
#

||/j||

proud creek
#

Wow so mean

spare quartz
#

im aawke!!

timid quartz
#

Go back to eep

spare quartz
timid quartz
#

It’s dark outside

#

not that you look outside

spare quartz
#

im not tired

timid quartz
spare quartz
#

no..

#

soda..

#

/dev/sda
/devsOda

timid quartz
#

mmm yes

spare quartz
spare quartz
#

websocket is working pretty well

#

でびるんトートバッグ売り切れました!また再販します👜

spare quartz
spare quartz
lyric mesa
spare quartz
#

loop up

#

just gotta identify

spare quartz
#

got it to log in

timid quartz
spare quartz
#

gotta add reysum

#

nca t get off ke4ybuaord

#

i u7

timid quartz
spare quartz
#

#1264496483957346346 message

spare quartz
spare quartz
#

i love it when half of every field is undocumented

#

YOOOOOOOOOO

spare quartz
#

I MISSED MY PACKAGE

#

🔥

spare quartz
#

god theres so many fields

spare quartz
#

god

#

that took. forever to write

#

@timid quartz if you do make a discord api, going for completionist is HARD

#

(well more like tedious)

timid quartz
#

yeah

#

super tedious

#

I realized that with the roblox api lib

spare quartz
#

i had this idea once

#

basiaclly this protocol that transmits a schema at the beginning of comm

#

no need to determine field sizes when decoding, and client knows all possible field states

#

would probably be a pain to implement

#

i REALLY wanna get a bayachao video playing over the mic though

#

oh yeah

#

i need to make an imagehash class..

#

at least its this simple to use

#

oh nooooooo

#

i gotta write the tostring.....

#

i think i can cheat myself out of this

#

there

#

can finally do away witht his

spare quartz
timid quartz
#

It’s past your bedtime

spare quartz
#

2 pm -> 7 pm

timid quartz
#

is lept

spare quartz
spare quartz
spare quartz
#

image hashing

#

so far only 2 "dependencies" (kotlin runtime jars like reflection and serialization)

spare quartz
#

DAMN i've written a lot

#

133 KB of code

spare quartz
#

got embeds + fields working

spare quartz
#

@timid quartz i found another bayachao game i can serve over the web, however...

#

itssss written in korean

spare quartz
#

pushed!.. and..

timid quartz
full berry
#

update on my ruben sim ban bot research yada yada

#

apparently shark (former qqc member) got brought up as being a member of a weird community and ruben asked me why im friends with him skull_iphone

proud creek
#

What is nrs

timid quartz
#

@spare quartz (I tried to type @ada to find you bruhh) how would I get Ada running on a Teensy 4.1

#

like could you explain in at least some detail all the steps involved

rustic vine
#

I propose we rename atp to adastorages

spare quartz
#

Apparently there’s different langs

spare quartz
#

Also I just woke up hi

timid quartz
spare quartz
#

And start writing your own RTS if a LT, L, C or R runtime isn’t available

timid quartz
#

arm-none-eabi ❤️

spare quartz
#

if you need help on how an RTS is made, see my ufedmi kernel on GitHub and extrapolate from there

timid quartz
#

I don’t think a teensy 4.1 rts is available

#

If it DOES exist is it just automatically pulled in?

spare quartz
spare quartz
#

Mainly cause they’re each different sets of the language

#

Unless you mean “does Alire install it” in which, that’s handled by the compiler installation

#

There is a pi-pico runtime you could look at

timid quartz
spare quartz
#

See the alire index

#

Or google ada on the pi pico

#

It’s not complete like the python library, e.g., radio, but it’s operational to the point of using GPIO***

#

You can extend it though

timid quartz
#

Hmm but since it’s a pico tho

#

Would it be compatible with the Teensy?

spare quartz
#

No idea

#

I bet the difference in SoC isn’t minor though

#

Wake up time

timid quartz
#

I might just try to make my own rts idk

spare quartz
#

feel free to steal from your PC's RTS at any time

#

for example, you'll need it's copy of System.Machine_Code (or a minified version of it) to get the compiler import for Asm intrinsics

spare quartz
spare quartz
#

this guy sucks

spare quartz
#

Sleepy time

timid quartz
#

eugh

#

setting up ada for the teensy seems like an actual pain

#

why can't this just be supported by the language maintainers (see rust, zig, and any other modern lang that can be embedded)

timid quartz
#

although...I guess this is largely akin to writing say the Arduino library

timid quartz
#

--RTS flag no worky sadge

#

though ig this is for gnat pro...

#

sadge..

spare quartz
#

Also you should be configuring the RTS in GPRproject

spare quartz
#

Ada is not a continuously updated language, you know this

#

The first designer of it is dead, and AdaCore which are the closest to maintainers do make their own RTSes (also not to mention it’s a language that’s defined by international specification, so its “maintainers” can also be completely using/making a separate compiler)

#

But they can’t do everything

spare quartz
timid quartz
spare quartz
#

yeah i know

#

but you have GPR right there, use it

timid quartz
#

🤓

#

I also have better languages right here that support Teensies better

spare quartz
#

yeah well i don't see them under any specification body

timid quartz
#

Why did my keyboard insist on capitalizing that

spare quartz
#

or have existed for 50 years ..

#

guhghghguh

#

i gotta figure out how to code this bot

timid quartz
spare quartz
#

ive been told (very limited info_) to make a transactional moderation bot

spare quartz
#

it's an okay lang

#

didn't predict the future as well as ada though

timid quartz
#

says the lang with a community size of 2

spare quartz
#

WRONG!

#

our community size is classified

#

:3

timid quartz
#

mhm nobody real actually uses Ada except you and like one other person

spare quartz
#

okay but

#

airplanes

timid quartz
#

They could use rust and be fine

spare quartz
#

no.

#

we're literally helping your asses get on planes 😭

timid quartz
#

But you’re not doing anything else besides that

spare quartz
#

okay well

#

that's still major

timid quartz
#

Nobody outside of those very very very specific niches uses ada

spare quartz
#

okay what about

#

military

#

or spacecraft

#

or medical

timid quartz
#

Again really specific niches

spare quartz
#

SIGH

#

well maybe it's cause we're that versatile we lived so long.

timid quartz
#

If Ada predicted the future better then it would have been what Rust is now

spare quartz
#

okay well

#

you guys literally have the entirety of FAANG with you

#

plus you started out as a desktop/consumer lang

#

of course you'd be the most popular

#

we started off as a niche for military stuff

timid quartz
spare quartz
#

windows xp isnt used that much in the military

#

i think you have that confused with medical

#

where its used cause software is expensive and possibly deadly to update

timid quartz
#

“mission-critical”

#

meaning the computers that can’t go down for more than 30 seconds

spare quartz
#

soooo

#

you're saying rust is disposable

#

doesn't sound like a very good selling point

timid quartz
#

no im saying if it wasn’t for the military then ada would have died a long time ago

spare quartz
#

i mean yeah duh

#

rust got popular cause of again, faang/mozilla

timid quartz
#

You don’t see any ada in the Linux kernel

spare quartz
#

you have to have backing

spare quartz
#

they made linus mad

timid quartz
#

But there’s more rust in the kernel than Ada

spare quartz
#

okay and

#

theres more python and perl too

timid quartz
#

Barring the fact that R4L is in a pretty bad state rn

spare quartz
#

is python/perl better?

timid quartz
#

I mean Perl was Python before Python

spare quartz
#

that drives the point further then if you aggrt it to 0.3% use

timid quartz
#

Those languages excel at what they do which is basically being souped-up shell script

#

The point is ada sucks smh

spare quartz
#

theres also the fact that a lot of the rust there isn't actually doing anything itself

#

it's just a filler to get compat with c

#

meanwhile ada?

#

don't need allat

spare quartz
timid quartz
#

Lol it got to your house but you weren’t there

spare quartz
#

yeah 😭

timid quartz
#

How is that even possible you don’t go outside

spare quartz
#

oh my god look

timid quartz
#

You don’t though

spare quartz
#

we live in a weird neighborhood and i couldn't trust who was on the other side of the door

#

the mailperson left a pink slip at least ....

spare quartz
#

I CHECKED

#

nobody was there

#

also like

#

the wall next to the front door is literally just make of all window 😭

#

i can just peek frrom the side

timid quartz
#

maybe if you didn’t use ada

spare quartz
#

maybe if rust didnt exist

timid quartz
#

smh we’re at the forefront of memory safety

spare quartz
#

yeah and we beat you to that again, 50 years in advance

#

child.

#

(also java too, which came in the mid-90s, but, using a gc is cheating or something)

timid quartz
#

ok well C beat us to a lot of things too but we're still better than C

#

stands to reason we're better than Ada

spare quartz
#

yeah well c wasn't considered here

#

LOL

#

totally unrelated convo and rust comes up

#

i hate my life

timid quartz
#

heheh

#

rust is everywhere

spare quartz
#

THEY WERE MAKING A CARICATURE OUT OF YOU

#

😭

timid quartz
#

even adaforge admits rust is more memory safe than ada :3

spare quartz
#

where

spare quartz
#

SPARK wins

#

which is a subset of ada

#

which means we win twice as hard

#

cope .

timid quartz
#

ok but if nobody uses ada

#

then like

#

negative people use spark

spare quartz
#

okay but

#

you never said if people was or wasn't an integer

#

which means it may use modular arithmetic

#

which means EVERYONE uses it..

timid quartz
#

people is a signed 64-bit integer

#

anyways what I'm hearing is ada < rust

spare quartz
#

nah

timid quartz
#

yeah

spare quartz
#

rust < ada

timid quartz
#

ada < rust

spare quartz
#

Breadcrumb Microcode best programming language though

#

(when i get the time to make it)

timid quartz
#

adastorages

spare quartz
#

adasto

timid quartz
#

the 1980s called they want their lang back

spare quartz
#

okay but

#

heres a giant question

#

was YOUR language ever a specification in soviet russia?????

#

didn't think so. we win

timid quartz
#

ew that doesnt sound like a good thing

spare quartz
#

well

#

we're old enough to the point where that actually happened

#

i think it was for either 80/83 though

timid quartz
#

you will succumb to rust eventually

spare quartz
#

❌

#

what i will succumb to is bayachao though

timid quartz
#

what if bayachao said to use rust

spare quartz
#

i'd kms 😭

#

but they probably dont even know one programming lang so thatll never happen

timid quartz
#

what if I commission them to make a thing telling you specifically to use rust

spare quartz
#

$200????

#

their comm prices are like 30,000 jpy

#

okay but

#

fr

#

the rust mascot in bayachaos art style...... that'd go hard

timid quartz
#

that would be so goofy lmao

#

tbh might be worth the $200

spare quartz
#

😭

timid quartz
#

subliminal messaging from bayachao to use rust

spare quartz
#

i'm not really sure if they understand english proficiently so you'd probably need to make the req in japanese

timid quartz
#

yeah i would lo

spare quartz
#

scp sl time

timid quartz
spare quartz
#

what cani say

#

i do 2 things very well

timid quartz
#

(/gen)

spare quartz
#

cause its a unity game

#

and i dunno where i'd start

#

also t involves encryption..

timid quartz
#

mm

#

gg

#

encryption, your mortal enemy

#

if only there was another memory safe language that had libraries to do encryption………

spare quartz
#

okay but

#

consider

#

rtust issues

timid quartz
#

though it is probably impossible to decouple the Unity stuff from the server

spare quartz
#

the thing is too i dunno how unity makes netcode

#

if it does it iike roblox tehresd nothing i acn do

timid quartz
#

mmm 40F

#

cold

#

cold good

timid quartz
spare quartz
timid quartz
#

I mean why not

#

You’d probably enjoy it

spare quartz
#

well

#

i HAVE already made a windowing library..

timid quartz
#

there u go…

spare quartz
#

gay

#

make my bayachao art

timid quartz
#

now you just need 3d rendering

#

some light physics sim and then a bit of netcode

#

And you’re set

spare quartz
#

oh and encryption too 🤓

timid quartz
#

nahhh

spare quartz
#

modern netcode virtually requires ssl..

timid quartz
#

not for proof of concept

spare quartz
#

why dont you make your onw game..

timid quartz
#

cuz I don’t wanna

spare quartz
#

bad coder

timid quartz
#

no u

#

u use bad langs

#

ergo worse coder

spare quartz
#

you use a language titled after the literal deterioration of iron

timid quartz
#

you use a language that wasn’t even mainstream when it was made

spare quartz
#

therefoer i wi

timid quartz
#

I have depicted you as the soyjak and me as the chad therefore I win

#

You also get -1000000 points for furry

spare quartz
#

nah

#

glados gave me 50 science collaboration points :3

timid quartz
#

Still doesn’t beat my 1000 superiority points

spare quartz
#

okay "rustlet"

timid quartz
#

See we even have nicknames for users of our language

#

There’s nothing to call an ada user except old

spare quartz
#

their GAY nicknames

#

our AWESOME naes..

#

names.

timid quartz
#

ok grandpa

#

better to die a rustacean than live as an outdated fossil

spare quartz
#

tell me rust man

#

how do i apply a range to a type

timid quartz
#

Use an enum, that defines all possible values a type can have

#

If you need a range on a numeric then use modular arithmetic like a normal person

spare quartz
#

1 .. 1,300,500

#

1,300,500 enunm values??

timid quartz
#

or 1..=1_300_500

spare quartz
#

this is essentially just an object

timid quartz
timid quartz
spare quartz
#

okaybut

#

is that type associated with a discrete integer type

#

or is its own thing

full berry
#

random one i found

timid quartz
spare quartz
#

so its its own thing

#

boooooooooring

#

encode it into the type

#

give us x'Min and x'Max

timid quartz
spare quartz
#

that doesnt count 😭

timid quartz
#

how does it not

spare quartz
#
type X is range 1 .. 10;
X'Min = 1
X'Max = 10
#

those constants are just

#

2^32 or 0

timid quartz
#
struct MyCustomInteger {
  val: u32
}
impl MyCustomInteger {
  pub fn min() -> MyCustomInteger {
    MyCustomInteger { val: 1 }
  }
  pub fn max() -> MyCustomInteger {
    MyCustomInteger { val: 10 }
  }
spare quartz
#

ewww

timid quartz
#

ADAFRUIT???

#

GET OUT OF MY ESP32

spare quartz
#

AdaFruit :3

timid quartz
#

is that an ada thing?

spare quartz
#

no

#

but they pollute our searches

full berry
timid quartz
timid quartz
full berry
#

stab it kill it drown it water board it

#

going to school has become a 9-5 for me in the last like

#

week

#

competition tomorrow...
and first time meeting someone i've met in qsp irl

spare quartz
#

i need to buy that kohaku hoodie for formal wear

full berry
#

you need to buy a santa claus outfit

spare quartz
#

no

#

im not jolly

full berry
#

that took uncomfortably long to type out

timid quartz
#

platformio is so much better though

spare quartz
timid quartz
# spare quartz

a) im not running that, give me the source code
b) im on mac idot

spare quartz
#

a) YOU HAVE IT ITS OPEN SOURCE YOU IDIOT
b) parallels

timid quartz
#

actually wait I have the exe parser

spare quartz
#

class d with the micro..

timid quartz
#

that's still half-finished

timid quartz
#

nx_compat

spare quartz
#

booring

timid quartz
#

ugh I never finished the data directory stuff

full berry
#

i don't know why people insist on using arduino ide it's so ass

#

it would be considerably better if it had version control

spare quartz
#

ばやちゃおさんこんにちは!いつも素敵なイラストを拝見しました!

spare quartz
#

keep programming chat open

full berry
spare quartz
#

Do

#

yayyy we're still here :3

timid quartz
#

@spare quartz oml vhdl is so similar to ada

#
process (clock)
begin
  if clock'event and clock = '1' then
    ...
  end if;
end process;
#
process (sel, A, B, C, D)
begin
  case sel is
    when "00" =>
      Y <= A;
    when "01" =>
      Y <= B;
    when "10" =>
      Y <= C;
    when "11" =>
      Y <= D;
  end case;
end if;
spare quartz
#

UGHHHHHHHHH

#

I FINALLY BEAT IT ALL

#

shower time

spare quartz
#

this sucks on ice

proud creek
spare quartz
proud creek
spare quartz
spare quartz
#

docker chat in technology again 😓

proud creek
#

Atp in programming chat again 😓

spare quartz
#

i am literally the only person who actively talks here aside from aera

proud creek
#

lol!

spare quartz
#

go back to technology instead of clutter .

spare quartz
#

ughghhghg

#

stop CRASHING YOUR PLANES

pastel tinsel
#

yeah fx is broken rn

#

use vx

spare quartz
#

THE PACKAGE IS HERE WOOHOO

spare quartz
#

コハク
こはく

spare quartz
spare quartz
rustic vine
spare quartz
#

ANOTHER KOTLIN COMPILER ERROPR

timid quartz
spare quartz
#

i bet that was the C part

timid quartz
#

It’s time they switched to Rust

spare quartz
#

nope

#

switch to Ada 95

#

i love being a nerd dude

timid quartz
#

We love virtual memory

#

(It’s making my life a living hell rn)

spare quartz
#

we're talking bout virtualizing a russian clone of an IBM computer

#

for the sake of running tetris

timid quartz
#

lol

spare quartz
#

i love my bookmarks

timid quartz
#

I wonder if risc v has virtual memory support

spare quartz
#

id assume so

#

if linux can run on it

timid quartz
#

oh true

spare quartz
#

yeah looks like they have an MMU

#

LOL

#

I FOUND AN OLD PROJECT OF MINE

timid quartz
#

Windows in Roblox

spare quartz
rustic vine
#

@spare quartz ada in the wild?

spare quartz
rustic vine
#

Or more likely to be C 😭

rustic vine
spare quartz
#

ada is a component of airplanes

#

its usually a minority with C/C++

#

and more for the actual controlling bits

rustic vine
spare quartz
#

and if it were ada its likely to be the 1983 ver

rustic vine
#

Gooood

rustic vine
#

In C??

spare quartz
#

probably

rustic vine
#

That's gotta be awful

spare quartz
#

i bet theres a subsystem for entertainment and its under that

#

probably uses its own set of computers

rustic vine
#

Have I sent you that before actually

#

I feel like I have now

spare quartz
#

well if you did i dont remember

rustic vine
#

Oh ok

#

Yeah the flight just showed that for the first 20 minutes

#

Instead of any entertainment

spare quartz
#

no wayyy

#

when i tried rendering stuff using textlables

rustic vine
#

Oh no

spare quartz
#

(back in mid 2023 when there were no editableimages :<)

#

unfortunately roblox has a char limit

spare quartz
#

til

#

russia is canonical in bayachao

spare quartz
spare quartz
#

im in love

spare quartz
#

170 files written

#

and 237,298 characters..

spare quartz
timid quartz
#

lol typical nix

spare quartz
#

worst os

timid quartz
spare quartz
timid quartz
#

I want this project to be over so bad

spare quartz
#

I love my room..

spare quartz
timid quartz
#

No

#

OS

spare quartz
#

Ohh

timid quartz
#

copy on write

#

I never wanna deal with virtual memory again after this

spare quartz
#

awww

#

could you help us write our MMU for bread modthen 🥺

timid quartz
#

mayhaps

#

I’d have to learn about risc v virtual memory

spare quartz
#

Oh uh

#

Our CPU is.. IA-32

#

Not RISC-V

#

We used to have a RISC-V cpu but it was very basic and I wrote it while I was in JROTC

timid quartz
#

jrtov

spare quartz
#

So I ended up removing it

timid quartz
#

You’re telling me you quit JROTC

#

smh

spare quartz
spare quartz
timid quartz
#

Not loyal to the corps 👎

spare quartz
#

Yeah well when the administration is trying to kill it

#

Not much opportunity left

timid quartz
spare quartz
#

Yes

timid quartz
#

Oh yipee

spare quartz
#

IA-32 is the predecessor to x86-64/amd64

timid quartz
#

ok anyways I gotta sleep I’m so sleep deprived

spare quartz
#

Okkkkk

#

waitttt

#

can you rate one picture 4 me..

snow oak
full berry
spare quartz
snow oak
spare quartz
#

oh eyah

#

i watched like a minute of his video

#

he said some crap about it all being writetn with chatgpt

full berry
#

<3

timid quartz
#

@spare quartz IT'S DONE

#

THE PROJECT IS DONE

spare quartz
#

you translated the manga!!!!- no it’s the os :<

timid quartz
#

the os

#

yes

spare quartz
#

I should wake up and continue coding but I’m so bored

timid quartz
spare quartz
#

and the reply to it is so mean

timid quartz
#

rust 1.85.0 today

spare quartz
#

also read that

#

I see they added async closures

timid quartz
#

OOOH 2024 EDITION STABLE

spare quartz
#

🥱

#

Kotlin compiler errors continuing to plague me

#

I found a fix but it involves switching to 2.1 and 2.10 back and forth

#

Otherwise an exception during IR lowering is produced

timid quartz
#

async closure stabilization is nice

spare quartz
#

Damn I wanna make my own language againnn

#

but then I’d have to do the whole compiler and UI crap

timid quartz
#

do u want me to work on ur mmu

spare quartz
#

I was half kidding there, but if you could find anyway to help when we do get to PE/VM sure

#

org.bread_experts_group.breadmod.experimental.computer.ia32 I think it is

#

Unless you mean my OS, in which I’ll do that myself… hopefully

spare quartz
#

Should also build a disassembler for myself..

timid quartz
timid quartz
#

k

spare quartz
#

I really need to genericize a lot of it

#

total affront to DRY

spare quartz
pastel tinsel
#

oh my god is that still there???

full berry
proud creek
#

W h a t

proud creek
# spare quartz

y 🔥 🔥 🔥 🔥 🗣️ 🗣️

timid quartz
#

atp how big is YOUR default hello world hmm

#

probably....2 billion megabytes

timid quartz
#

the answer is 438k

timid quartz
#

hm

#

ok gg

spare quartz
lavish dove
#

x86s when

spare quartz
#

also that would've went to long mode quickly which i cant do rn

spare quartz
#

OH CRAP‼️ ITS LOADED A GDT!!

full berry
#

i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth i hate auth

full berry
#

web auth

#

logging in

#

sessions

spare quartz
#

super easy

full berry
#

permissions

#

how is it easy

spare quartz
#

because it is

#

unless you're using a billion libraries

full berry
#

??

spare quartz
#

what is the issue you are having

full berry
#

ive been thinking about using lucia auth

#

its so weird

full berry
#

and do not send me a image of that weird ass client-server flowchart

spare quartz
#

Server: Set-Cookie: ...
Client: Cookie: ...
Server checks Cookie
Cookie OK?
...

#

this is all what a session is

full berry
#

oh wait i have one question

#

waiwtiaiwait

#

you know how for example

#

in roblox you have serverscriptservice to run server scripts

spare quartz
#

its more of a container, but yes

full berry
#

starterplayerscript for client scripts and so forth

#

yes

#

if you were using BASE html css and js, no libraries no frameworks

#

you run client scripts in the <script> </script> tags right

spare quartz
#

yes

full berry
#

but where do you run SERVER scripts

#

or well how do you trigger them

spare quartz
#

the server software, the one sending the files

spare quartz
#

<client>
POST /hello HTTP/1.1
...
<server>
http.route("hello").handle(() => console.log("meow"))

#

psuedocode obviously

full berry
#

yes

#

hm urggh shakes ass

#

its so confusing

#

i wanna do like front end a bit

#

everyone's telling me to not do it

#

😭

spare quartz
#

well then stop listening to them

full berry
#

which i know why i can see it already but i have to and i wanna get the best of it

spare quartz
#

but i don't see how it is confusing; the code you send in a js file is run on the client, the code sending the js file is your server

full berry
#

so many new terms like """server-side rendering"""

spare quartz
#

again i'd just suggest to ignore whatever they're making up

#

SSR just means you create an HTML file for a request

#

instead of sending js files that do it on the browser

full berry
#

i see

#

okay guhhhhh

#

i think the best framework to get started is definitely

#

next or nuxt but like

#

they have a steep learning curve and i think i should start lower but idk where

spare quartz
#

if you wanna start lower you don't need a framework at all

full berry
#

i tried out svelte(kit), it's good and simple but there's a few things they do that dont really "follow standards"

full berry
#

well hm actually

#

nvm

timid quartz
#

This will require looking into how the CPU handles PAGING

spare quartz
#

passing?

timid quartz
#

keyboard

spare quartz
#

OH

timid quartz
#

Paging

spare quartz
#

paging isn't implemented yet so it doesn't handle it in anyway, theres not even a control reg yet (im adding it rn)

timid quartz
#

yeah ik

spare quartz
#

when you said pushing i was just gonna show you these

timid quartz
#

no paging

#

Because the cpu will detect improper accesses and raise page faults

timid quartz
#

Do you have a mechanism to raise traps yet

spare quartz
#

sorta

#

exceptions/interrupts don't exist yet, but the INT(errupt) command has a few hard coded branches within it that act as a semi-BIOS

#

for example INT 13h will trap into kotlin code that "handles" the interrupt and returns control

#

.fetch() aswell, when it's at the reset vector, it traps into "BIOS" code

timid quartz
#

Mm I’m more referencing the CPU causing traps for software running on it

#

Cause that’s a big part of vm

spare quartz
#

like breakpoints?

timid quartz
#

No so what happens

spare quartz
#

ohhh wait

#

you mean like Machine Check or GP

#

right?

timid quartz
#

If GP means general protection then I think so

spare quartz
#

yeah

timid quartz
#

I suppose actually you could implement virtual memory without page fault traps at all because the project I was hacking on didn’t handle page faults

spare quartz
#

they're going to exist eventually (when the LIDT instruction is called), but for now they have no need to exist aside from running the 0x0F0F UD instruction that memory is filled with

timid quartz
#

I’ll have to revisit what translations the cpu does under the hood

#

Because the cpu handles the virtual addresses

spare quartz
#

the closest to an mmu in the current state is the simulated memory busses in the Computer class

#

or this function

#

(an MMU is probably a generic concept i could separate from the ia-32 cpu now that i think about it)

spare quartz
#

man this looks so much better

#

im a genius

#

who needs return values when we can just simulate a stack

full berry
#

i take back the bad things i said about vue its not that bad

spare quartz
#

conversion complete

#

now back to lgdt

full berry
#

lgbt

#

🪞

spare quartz
proud creek
spare quartz
proud creek
spare quartz
#
GDTR(Limit) := SRC[0:15];
GDTR(Base) := SRC[16:47];
spare quartz
#

OH!!!@! ITS GONNA DO IT!!!

timid quartz
#

@spare quartz opinion on graalvm

spare quartz
#

im just happy im about to go into PE

timid quartz
# spare quartz

you forgot to backwards longjump after you enabled 32bit mode

spare quartz
#

ohcrapp

#

i gotta make the control registers work

timid quartz
#

hahahah

#

and the extended registers

spare quartz
#

its okay itll probably be fine

spare quartz
#

rx - 64b
ex - 64b (32 masked) - tex - 32b
x - 64b (16 masked) - tx - 16b
l - 64b (8 masked low) tl - 8b
h - 64b (8 masked high) th - 8b

#

should probably make a subclass of Register for cr0

timid quartz
#

cr0 cr1 cr2 cr3

#

all very important

spare quartz
#

c1 isnt real
c2 is just an address
cr2/3/4 are ignorable for now

#

cr5/6/7 aren't real

timid quartz
#

LOL GET TIMED OUT

spare quartz
#

@timid quartz your moderation sucks ass

timid quartz
spare quartz
#

ALL i was trying to say is registers TREE and FOR

spare quartz
#

trying to load the kernel in doesnt require vm

timid quartz
spare quartz
#

reminder that a breadmod computer is just:

timid quartz
spare quartz
#

there

#

super simple

#

wait..

#

i need to coalesce the flags parameter into an rx...

#

dfmsdkgfdkgk,

#

woohoo

timid quartz
spare quartz
#

okay so now i have to..

#

good code, hire me

#

aha nice

timid quartz
#

backwards long jump spotted

spare quartz
#

um nuh uh

timid quartz
#

uh yuh uh

#

do u see that ljmp

spare quartz
#

but they're all going forawrd

timid quartz
#

I mean they all go forward

#

I just like the super mario 64 reference

spare quartz
#

you're a nerd and you should feel bad because of that

#

wait*

#

where is this long jump taking me ??

#

00000000000082E8

#

ughh i gotta get the disk offset

#

BIOS DISC CPY 0x00000000002C1800 -> 0x00000000002C9800 @ 0x0000000000008000
BIOS DISC CPY 0x00000000002C9800 -> 0x00000000002D1800 @ 0x0000000000010000

#

LJMP 00000000000082EF

#

org.bread_experts_group.breadmod.experimental.computer.ia32.instruction.H8EInstructionMOV cannot support 32-bits.

#

for once im actually upgrading an insrtuction instead of adding a new one

spare quartz
spare quartz
#
  1. The moffs8, moffs16, moffs32, and moffs64 operands specify a simple offset relative to the segment base, where 8, 16, 32, and 64 refer to the size of the data. The address-size attribute of the instruction determines the size of the offset, either 16, 32, or 64 bits.
#

what do you mean...

#

iiiiiiilllllll assume it means DS:OFF

#
[20:21:13;586/WARN [modloading-worker-0/org.bread_experts_group.breadmod.experimental.computer.ia32.IA32Processor] 0x0000000000000000:000000000000830E (  ,  ): HA1InstructionMOV
[20:21:13;586/WARN [modloading-worker-0/org.bread_experts_group.breadmod.experimental.computer.ia32.IA32Processor] 0x0000000000000000:0000000000008313 (  ,  ): H89InstructionMOV
[20:21:13;586/WARN [modloading-worker-0/org.bread_experts_group.breadmod.BreadMod] Memory address out of bounds, 402653315 while setting 15
#

ufgdmgkdffs

spare quartz
#

We are excited to announce that the Rust 2024 Edition is now stable! Editions are a mechanism for opt-in changes that may otherwise pose a backwards compatibility risk. See the edition guide for details on how this is achieved, and detailed instructions on how to migrate.

This is the largest edition we have released. The edition guide contains detailed information about each change, but as a summary, here are all the changes:

pastel tinsel
#

l o l

spare quartz
#

ITS ALL IN THE MODRM

#

An operation is not implemented: ROL, ROR, RCL, RCR, SHL, SAL, SAR /4!

lavish dove
#

no nodejs

#

name it SECURITY_SHARE_NOONE a random ass 64 bit long number and your poggar

lavish dove
#

if we could do everything from memory on x86

#

like im sure theres a way

spare quartz
lavish dove
#

like yk how we can do add [], []

#

wait can we do that

#

I dont think so

spare quartz
#

lemme check

lavish dove
#

fuck

#

well it would be really cool

#

if you could like

#

work on offsets from rsp

spare quartz
#

you can add an immediate value to an address

#

but everything else is reg->rm

lavish dove
#

yea

#

so imagine we could do add [], []

#

add [rsp-8], [rsp-16] would be so fuckin cool bro

#

wait can you even do negative numbers with immediate value

spare quartz
#

does it matter

lavish dove
#

shitty ahh add [rbp+8], [rbp+16]

lavish dove
#

but it would be epic asf

#

well actually it would probably be easier to make parallel

spare quartz
#

just SUB [x], 52

lavish dove
#

yeah but that hased to run

#

before uh

#

the memory write

spare quartz
#

oh you mean a displacement in rsp

lavish dove
#

yeah

#

oh shit yeah

spare quartz
#

iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiimmmmmmmmmmmmmmmmmmmmmmm pretty sure

#

let me check my decoder

lavish dove
#

bruh I deleted my bios bootloader so I cant test it 😭

spare quartz
lavish dove
#

yes

#

integer

#

owo

spare quartz
#

the decoder is probably the closest thing in the cpu to a real electrical component

lavish dove
#

oh unsigned

#

😭

#

what is that even doing

spare quartz
#

decodes the memory component of a modr/m

lavish dove
#

dyamn

spare quartz
#

MOV EAX, [bx+0xd]

  • register: processor.e.ax
  • decider:
    • register: <empty>
    • memory: [bx+0xd]
lavish dove
#

wait

#

why didnt

#

intel remove gdt, segments from 64 bit mode

spare quartz
#

i duno

#

im pretty sure they're rendered useless anyways in long mode

lavish dove
#

yea

#

and why isnt there a real long mode 😭

#

I hate protected memory

#

would probably make it so gcc would support relative jumping instead of using the weird tables

spare quartz
lavish dove
#

😭

spare quartz
#

a "real long mode" would probably just be programming the MMU to map directly to a physical address

#

would still be protected though

lavish dove
#

yeah thats what I did

#

its rly annoying tho cuz you haved to map everything

#

and that takes alot of memory

#

qemu64 doesnt have 1gig pages

spare quartz
#

blehhh i have to make my decoder return a third value

lavish dove
#

does you decoder have 1gig pages

spare quartz
#

the decoder doesn't do that type of stuff

#

its an instruction decoder

lavish dove
#

what are you doing with it then

#

disassembly

#

??

spare quartz
#

decoding instructions so the cpu can know how to execute them 😭

lavish dove
#

oh

spare quartz
#

first it goes through this giant table

lavish dove
#

by decoder I meant the entire emulator 😭

lavish dove
spare quartz
spare quartz
#

it only supports 1 mib of memory rn

#

the mmu doesnt exist

lavish dove
#

hell yeah

#

(I hate mmu)

#

give me real long mode mmu I dare you

spare quartz
#

i mean technically

#

the emulator also has no exceptions

#

so if you WANTED to, you could address 5 gb of memory in real mode

#

no instruction would support it though

lavish dove
#

sob

#

what about segments

spare quartz
#

yeah we have segments

#

all segment registers are 64-bit

lavish dove
#

how much can I access if I use segments as if they are in real mode

spare quartz
#

even though you can only use 16-bits in instructions

lavish dove
#

😭

spare quartz
#

everything thats a Register has 64-bits as it's core value

lavish dove
#

ok

#

make a custom mode thats long mode but better i dare u

spare quartz
#

again no instruction would support it 😭

lavish dove
#

make instructions to support it

#

it is yours for the imagination

spare quartz
#

that i "can" do

lavish dove
#

damn now I wanna make a shitty qemu bios again 😭

#

oooh and partition scheme too

spare quartz
#

im kinda sad our BIOS has to be fake but i wouldnt know how to write it in assembly

lavish dove
#

then learn

#

dammit

spare quartz
#

no

#

its not that i dont know how to write assembly

#

its cause i dont know how to interact with the computer object in the assembly code