#💽Programming Chat v2

1 messages · Page 42 of 1

spare quartz
#

if it allows standalone game dev im all for it

rustic vine
#

I think it's experimental

spare quartz
#

i thought the roblox engine has always been nice, it's just the coupling to the platform that's a huge limiter

rustic vine
#

It's ue5

spare quartz
#

not a great sign

rustic vine
#

LOL

#

Yea, it's kinda sketch

spare quartz
#

existed for 5 yrs by now so

#

at least its not a popup

#

looks korean?

#

appears to be under these guys

#

woah, they made pubg?

#

okay a lot less sketchier, but, still dont like that platform aspect

proud creek
#

the workspace naming is the exact same as roblox lmao

spare quartz
#

i can put that aside if they actually let you do anything outside what roblox provides

#

can't patent a hierarchy

timid quartz
#

@spare quartz @rustic vine holy shit the OS exam murked me and the compilers exam was strait ass

#

We ARE NOT making it out of the hood with this one

spare quartz
#

what'd you get wrong

timid quartz
#

On OS? A lot

#

On compilers? Idk yet I took it this morning but a decent chunk of it probably

#

THE 70s MUST HAVE BEEN A WILD TIME TO BE ALIVE, right?
I often daydream about the lives of people who picked up C just at this perfect time, right at the start.
After they learned this relatively small language, they could then have spent DECADES writing JUST C, one language for all programs, on all devices.
I wonder if you can see where I'm goi...

▶ Play video
spare quartz
timid quartz
#

waah waah waah let your language fade into obscurity

spare quartz
#

pass your stupid os tests and compielr tests

#

rust iss till a stupid languege

timid quartz
#

smh

spare quartz
#

these fucking mosqutoes

#

i keep being bit

#

THERE IS ONLY ONE LANGUAGE THAT CAN DO THIS ALL TODAY

#

AND ITS ADA

#

ITS ADAAAA

#

BBBAawwWLLL

#

😭

spare quartz
#

okay

#

our bootloader works... kinda

#

might be overwriting the transfer buffer causing the ret addr to be trash

rustic vine
spare quartz
#

ugh im gonna give myself brain damage

rustic vine
#

it ain't looking good I'm scared to take those classes myself

spare quartz
#

qemu appears to be loading the correct entry, but our simulator is loading a directory entry..

rustic vine
#

feels like you're so much smarter and are still getting cooked so im gon be in the trenches

spare quartz
rustic vine
#

very good 👍

#

thats the approved method

spare quartz
#

~ an uneducated person

rustic vine
#

u smart too

#

I be over here playing with luau while you're making a computer

#

I think

timid quartz
#

thats what im saying

#

atp over here doin crazy shit

rustic vine
#

LOL

timid quartz
#

meanwhile im just idot

spare quartz
#

okay well thats because i traded my education for "infinite" free time

rustic vine
#

feelsbadman

spare quartz
rustic vine
#

me when I pull out my 4 years of theory experience to the recruiter

spare quartz
#

me when i pull out a sub-high school diploma and NO experience 😭

rustic vine
#

ok but I don't got a computer to my name

spare quartz
#

i mean they're easy to make...

#

everything in programming is... its just "do you have the time"

rustic vine
#

or the willpower

#

I be having all the time and still do nothing

#

lol

#

kinda

#

nvm thats an excuse, I def have time if I wanted to do something

spare quartz
#

well you know a LOT more about luau than i ever will so

#

thats something

#

have you tried to make your own vm yet

rustic vine
#

yea but luau is going going and gone (into the trenches)

#

also kinda

rustic vine
spare quartz
#

oh

rustic vine
#

(its a long list)

spare quartz
#

well if you ever get to it i wanna see it so i can "take inspiration off it" (recode it into kotlin and shove it into our bios as a casette BASIC)

#

i could never get into lua vms since it's not clear where 2 start

#

on secnod thought

#

thats a lie

rustic vine
spare quartz
#

asking people is scary

rustic vine
spare quartz
#

oh i was thinking more this

rustic vine
#

oh, a runtime?

#

runtimes are cool, that one is in rust though I think

spare quartz
#

ohh

rustic vine
#

so it gets negative rep from you

spare quartz
#

i might have to code our interpreter in..

#

asm..

rustic vine
#

theres also one in zig

#

which is sick

spare quartz
#

cause that would be the easiest to embed

rustic vine
#

a friend of mine made it

spare quartz
#

is there like

#

a definite list for what a luau vm consists of

#

or a list of opcodes

rustic vine
#

yes

spare quartz
#

can i see it 🥺

#

ignroe >> 0x0000E800

#

lua is risc??

#

(esi is probably not being offset)

#

OR SECTION HEADERS ARENT BEING LOADED

rustic vine
spare quartz
spare quartz
rustic vine
#

yea writing one is made more difficult by the fact that

spare quartz
#

that isnt a lot of opcodes

rustic vine
#

theres no c api docs

#

but the lua c api docs exist and are kinda helpful for most cases

#

would be nice if luau had some

rustic vine
spare quartz
#

so two more questions... sorry if im annioying yo u:

  • does luau have anything special over lua from a pure vm standpoint (excluding CG, opts), like does the vm itself carry anymore state
  • how much state does the lua vm itself have
#

e.g. an x86 vm can have it's state captured entirely by the values of its registers, while a JVMs state depends on it's heap of classes, their static values, the call stack,. ..

rustic vine
# spare quartz so two more questions... sorry if im annioying yo u: - does luau have anything ...

no all good, I was just doing something else

  • yea, the vm does have extra state, one example is continuations being done slightly differently in luau compared to lua 5.3, since luau diverged from 5.1 and then continuations changed past that
  • take a look
GitHub

A fast, small, safe, gradually typed embeddable scripting language derived from Lua - luau-lang/luau

spare quartz
#

oh wow its just called state.h

rustic vine
#

yes

#

and check out this

Analyze & explore the intricate details of Luau's compiler. Currently supporting 156 versions of Luau: 0.501-0.662.

#

it supports ncg too

spare quartz
#

peculiar

rustic vine
spare quartz
#

i just didnt expect to see it work that fast

rustic vine
#

oh gotcha

spare quartz
#

a lua compiler/interpreter in one package is going to be so painful to make

#

computercraft uses this

spare quartz
spare quartz
#

making a replacement to this

spare quartz
#

that isnt the right image

#

i love self aligning code

spare quartz
#

my favourite programming language is rust (that's because my code never segfaults (unless i'm doing something especially silly))

rustic vine
#

Sure you aren't being held at gunpoint?

timid quartz
timid quartz
pallid loom
#

i'm not

#

thankfully

timid quartz
#

C dev...

timid quartz
# spare quartz WRONG!
#[repr(u8)]
#[derive(PartialEq, PartialOrd)]
enum Language {
  Rust = 10,
  Ada = 2,
  Python = 1,
}

fn main() {
  assert!(Language::Rust > Language::Ada);
}
spare quartz
#

koh,,,

spare quartz
timid quartz
spare quartz
#

yooo

#

i got my first REAL programing commission today

#

:3

timid quartz
#

bet it’s for a discord bot in ts

#

what is it?

spare quartz
#

no

#

kade asked me to code him a VPN server

#

so im doing the "sstp" protocol

#

In this Japanese-style action RPG, the main character, Kohaku, a nine-tailed fox, transforms into various forms to catch evil spirits which have been mischievously unsealed, and grows as he solves a series of anomalies!Kohaku was originally notorious as a mischievous fox and is rejected by the capital's residents.Can he or she (Kohaku's gender i...

Price

$17.99

Recommendations

216

▶ Play video
timid quartz
#

gross nobody constrained you to use a certain language

#

That means you get to use Ada

spare quartz
#

i actually asked him

#

if he wants it fast/low resource (ada) or written fast but more resource (kotlin)

proud creek
#

Lua

spare quartz
#

no

timid quartz
#

@flint belfry I hope you know that a normal VPN server will be more performant and secure than any code ATP could churn out

spare quartz
#

😭😭😭

#

im literally about to get the main loop done

timid quartz
#

With the added bonus that it’s available right now and you don’t have to wait for it to be implemented

timid quartz
# spare quartz 😭😭😭

Listen I’m all for you having coding projects even if they’re in Ada but when it comes to a VPN or similar application that users expect security out of, it’s your little toy implementation vs well-tested (hopefully open source) projects with years of development and improvements

spare quartz
#

not 2 mention he explicitly asked me cause the others didnt work

#

not to mention age isn't really a factor in programs

#

sure it means it's kept up to date, but programs written today have something they didn't have back then: hindsight

timid quartz
spare quartz
#

like?

#

trying to figure out why windowws isnt porting to linux rn

flint belfry
#

i found out socks5 can work since ssh supports it but like

#

it's kinda jank

spare quartz
#

got something,,

spare quartz
spare quartz
spare quartz
timid quartz
#

You just have WolfSSL and that’s it

spare quartz
#

we have bindings

#

:3

timid quartz
#

rust does too

spare quartz
#

TLS is just uniquely hard to implement

timid quartz
#

AND we have rustls

spare quartz
#

rustls kinda sucks ngl

#

a lot of times i see your crates just defer to "native-tls"

timid quartz
#

a lot of times I see crates offer the choice

spare quartz
#

and guess who they defer to by default?

timid quartz
#

ur mom

spare quartz
#

die

timid quartz
#

nothing gets through her she’s too big

spare quartz
timid quartz
#

Bad lang

spare quartz
#

Bad user ^

timid quartz
#

worst user ^

spare quartz
#

no

#

thats the best composer who ever lived.

#

ああああ our beloved

timid quartz
#

they probably would choose rust over ada

spare quartz
#

NO

#

actually we have proof bayachao/poshi/aaaa dont

#

their latest game?...

#

it's coded in js :3

timid quartz
#

still better than Ada

spare quartz
#

NO!

timid quartz
#

yes

#

👍

spare quartz
#

shameless

#

no brain

#

all rust

spare quartz
#

OH CMON

#

@timid quartz so

#

the SSTP client im using to test this server

#

i tried sending it a status and

#

😭

#

this would NOT happen if it were made in ada

timid quartz
spare quartz
#

nope, it WOULD happen

timid quartz
#

correct it wouldn’t happen glad we agree

spare quartz
#

errmm.. blind

#

ugh whyyy1y?!?

timid quartz
spare quartz
#

Write your own :3

timid quartz
#

die

spare quartz
#

goddd

#

it keeps segfaulting

#

im convinced this thing just isnt compliant

timid quartz
#

Oh what

#

This is a different sstp lol

spare quartz
#

ehh

#

yeah

#

some guy name steve 😭

timid quartz
#

fr

#

what is sstp

spare quartz
#

Secure Socket Transfer Protocol iirc

#

MS-SSTP since its made by microsoft

#

Tunneling Protocol*

timid quartz
#

mmmmm

#

can’t really find anything

spare quartz
timid quartz
#

maybe find a better protocol…

spare quartz
#

like..?

timid quartz
#

idk openvpn

spare quartz
#

thats giant

timid quartz
#

Or tell Kade to like idk

#

Set up his own https proxy

#

And just use that

spare quartz
#

but thats not a vpn

timid quartz
#

close enough cause 99% of the time he’s gonna be web browsing

spare quartz
#

if he wanted a proxy he should've been upfront because that'd make my job 1000x easier

timid quartz
#

Or just like idk tell Kade to get gud with setting up openvpn

#

Or tailscale

#

Skill issue tbh

spare quartz
#

what is a tailscale........

#

everytime that name is brought up i lose all memory of it

pallid loom
#

Tailscale acts as the relay in-between when port forwarding isn't possible

spare quartz
#

ohhh

pallid loom
#

And wireguard itself is a VPN protocol that's the fastest + is quantum protected

spare quartz
#

so its a proxy router

pallid loom
#

In ~3k lines iirc?

pallid loom
#

The client you're trying to connect to connects to tailscale servers via wireguard

#

Since only the host needs to have the ports forwarded

#

(in this sense, tailscale relay)

spare quartz
#

this is why i dont like product names... way too unmemorable for me

spare quartz
#

(barring the fact that loc/language is irrelevant when talking about a protocol)

pallid loom
#

look it uo

#

has a whitepaper

spare quartz
#

so its like IKE

lavish dove
#

why do I keep running into so many problems with qemu

#

its so frustrating

#

works in bochs, real hardware, qemu fails inexplicably

#

oh I forgot to use kvm instead of qemu64

timid quartz
#

or tailscale

spare quartz
spare quartz
#

finally

#

got it to not segfault

#

problem was the client is too eager to data and attempts to read off a buffer beyond points that haven't filled yet instead of polling

#

at least thats my theory

spare quartz
#

implementing the P2P protocol now

timid quartz
#

isnt that the point of a vpn

spare quartz
#

thats the fault of the certs im using dummy

timid quartz
#

👎👎

#

get someone else to sign your cert nerd

spare quartz
#

nuh uh

spare quartz
timid quartz
#

why does @flint belfry not just use wireguard

#

or tailscale

spare quartz
#

security only came later, you can see this with PPTP

#

SSTP came after PPTP to provide security and access with only HTTPS

flint belfry
flint belfry
#

so wont work

timid quartz
flint belfry
#

no

timid quartz
#

what os are you trying to run this on

flint belfry
#

company name freescale

#

dosent even have a package manager

timid quartz
#

???

flint belfry
#

so i need to compile source code

timid quartz
#

is this like

#

your school's computer or some shit

flint belfry
#

no

#

all school computers run windows

#

which CAN run wireguard

#

but thats not what im trying to do

timid quartz
#

fuck kinda computer are you running on

#

sounds like atp is gonna have to make you a rts too

timid quartz
spare quartz
#

well im assuming since its linux its not anything too embedded...

timid quartz
#

cause this obviously isn't a normal ass pc

flint belfry
#

you fucking heard me right

#

3d printer with a linux os

#

hence the no /dev/net/tun

#

it is network enabled just dosent have tunortap

timid quartz
#

wtf

#

just

#

get a normal ass computer that's connected to this printer

#

and put tailscale on that

#

and have that computer mediate access

#

@flint belfry

flint belfry
#

besides i want to see what atp can do

spare quartz
#

well just fyi

#

lemme get the diagram

flint belfry
#

ok

timid quartz
#

cringe

spare quartz
#

okay so

#

these are the two things you are making me do

#

just instead of ssh its sstp

timid quartz
#

it would be 10000% easier if you either stole some unused desktop from your school or bought a raspberry pi

#

or if this printer is on your home network use your desktop

#

work smarter not harder

flint belfry
flint belfry
flint belfry
#

heres the issue

#

they inventory literally fucking everything

spare quartz
#

ah there you are

flint belfry
#

so its not possible

timid quartz
#

ok ask the it guy really really nicely

flint belfry
flint belfry
#

and she sucks

flint belfry
timid quartz
#

so then this printer

flint belfry
#

a jackass

timid quartz
#

is your school's printer

flint belfry
#

and not nice

flint belfry
timid quartz
#

and it's being used for school things

flint belfry
#

yes

spare quartz
#

hmm

flint belfry
#

now you mkight be asking

#

oh dosent the printer come with in built remote access or cloud access?

spare quartz
#

so you're not allowed to use an external computer but you ARE asking me to make what is essentially a RAT for your school

flint belfry
#

oh it absoutley does

spare quartz
#

close enough

timid quartz
# flint belfry yes but i have premission to do remote access

im assuming this is for some club or class or whatever so go get the teacher in charge of this whatever group that has this printer to go to the it lady and be like "hey I need a desktop computer for this printer pls give a spare desktop computer"

flint belfry
#

ok the issue is with reverse ssh tunnels

snow oak
#

Any Luau scripters in the chat, could you explain to me how I should type check properly? I don’t think I’m doing it right.

flint belfry
#

is that every 5 to 10 mins

#

the ssh connection dies because the printer os is shit

#

also

timid quartz
spare quartz
flint belfry
#

i have to manually specify which ports to foward via ssh

#

because the software that interacts with the printer uses a ungodly ammount of them

snow oak
#

Thanks gang

flint belfry
#

im not ratting my schools network with a printer and if i was theres a much better way than this atp 💀

flint belfry
#

all computers the it lady has are going to a waste center

#

everything thats inventoried needs to go to a location

#

they cant just give our class stuff

timid quartz
#

lame

spare quartz
#
     A bit map that enables (bit set to 1) or disables (bit set to 0) the use of character escapes for asynchronous links for the 32 ASCII control characters from 0x00 to 0x20. By default, character escapes are used. The ACCM bit map is set to 0x00-00-00-00 for links with XON/XOFF software flow control.
flint belfry
#

very

#

the inventory system on this school is really fucking tight so they watch litearlly eveything

#

im pretty sure they inventory computer components too

#

not the computer itself the fucking hard drives and ram too

#

thats why i asked atp to make that server so that i dont need to use the shitty raise 3d cloud interface

timid quartz
#

here

#

buy this

flint belfry
#

(the camera updates every 30 seconds-2 minutes and also sucks ass)

timid quartz
#

problem solved

flint belfry
#

i literally cant

#

they do routine inventory checks

timid quartz
#

get ur teacher to buy it

flint belfry
#

if that isnt authorized

timid quartz
#

or buy it yourself and put it with the printer

flint belfry
#

as well as a reason for buying said item

timid quartz
#

or buy it yourself and put it with the printer

flint belfry
#

i

#

was getting

#

to that

timid quartz
flint belfry
#

inventory checkers routinely come to check every single thing in a classroom so if they saw a suspciouis ass raspberry pi next to a 3d printer that wasnt under the schools inventory database some funky shits gonna happen

flint belfry
#

like i said the ssh tunnels work but what im asking atp to make is way simpler in this case due to the circumstances

#

im not ratting the damn network

timid quartz
#

idk bro

timid quartz
#

for a system like this there's always a way for a teacher to be like "hey I need this for class" and get it ordered

flint belfry
#

then the school said we couldnt have any openwrt devices

timid quartz
#

because now you're putting some random ass software made by atp onto a printer that has access to your school's network

#

and atp's software may have vulnerabilities that atp doesn't know about

spare quartz
#

it doesn't

timid quartz
#

and boom your whole school network gets infiltrated because of this one printer

flint belfry
timid quartz
#

instead of getting your teacher to harass the right people and get a device that can run battle-tested software

flint belfry
#

it just needs to be able to connect to 127.0.0.1

#

aka the printer tiself

flint belfry
timid quartz
spare quartz
flint belfry
#

nobody can exploit it since it wont open any ports on the printer

#

not like it can

spare quartz
#

i know it doesnt because there isnt anything serious in it yet 😭

timid quartz
#

ok if theres no open ports how tf are you accessing the printer remotely

flint belfry
#

for the fifth time

#

reverse ssh tunnels

#

the printer can only handle so much so thats why the only one will be to atps server

#

and because you need to predefine ports with reverse ssh tunnels

timid quartz
#

and also since you WILL be accessing this remotely, this implies that your printer is connected to the internet likely through your school's network meaning that there IS an attack surface created by this printer

flint belfry
#

what is your point being

#

the printer has been connected to the internet and network for four years now

#

also nobody in my school is smart enough to fucking hack

timid quartz
#

the printer pinging some api doesn't need your school to open a port for it

flint belfry
#

a printer

#

and why would they want to

#

what good

#

is someone hacking a printer just to have what

#

your describing as a rat??? i dont know

#

on the schools network good going to be for them

#

that seems like way too much fucking effort and not a real world scinerio aera

timid quartz
#

also you're operating under the assumption that your supposedly hyper-vigilant school isn't going to notice traffic over whatever reverse ssh port you use and block it on the firewall

#

and under the assumption that they haven't already blocked it on the firewall

flint belfry
#

the only reason i ask atp now

#

is because if it drops from the multiple streams of reverse ssh then it needs to be manually restarted

#

there is no network monitoring at my school

#

theyre really good at inventory yes

#

but they dont give a fuck what happens on the network

#

and then again

#

why are you so concerned about this considering im not doing malicious shit

#

if i was doing something malicious i wouldnt be asking atp and i would have hidden something like a lan turtle in a classroom by now

timid quartz
#

cause there's just a better solution then loading some random ass code on your printer just to get remote access

flint belfry
#

ive already tried your idea if its the pi thing and it didnt work since it was oversuited for what i needed it to be so im not going to go harass my teacher go to harass the person that approves po orders to get a pi

timid quartz
#

why do you even like

#

need remote access

#

just start print jobs before you leave

#

or if you like realize you need to start one on the weekend then it can probably wait until Monday morning

flint belfry
timid quartz
#

the what

flint belfry
flint belfry
#

hold on

timid quartz
flint belfry
#

circa 2022-2023
this is why we need to be able to monitor the thing reliably

flint belfry
flint belfry
timid quartz
flint belfry
#

someone used wrong slicer settings and overnight the hotend jammed and spewed a shitton of petg out onto itself

flint belfry
timid quartz
#

sounds like an issue of people not knowing how to use the slicer correctly

flint belfry
#

but it would be nice if i could stoop it in time

flint belfry
#

aera where the fuck is this convo supposed to go

#

why are you even so on top of this in the first place 😭

#

i literally just need atp to make software for a specific use case thats literally it

#

ok then

#

im going to go back to what i was doing

spare quartz
#

okay got PPP LCP CR done

#

now to send something back

timid quartz
#

So either you’re not sleeping or you’re not printing when you’re gone

flint belfry
#

hold on a second

#

ok back

flint belfry
#

for example

#

the petg explosion was meant to be a bath tub for some prop a kid needed for a science fair related project

#

dont remmber what it was but it took up a lot of the buiild plate

#

due to the shitty raise 3d cloud monitoring software we didnt have a good way to monitor it nor did i think to

#

so it failed halfway

#

i would only monitor large prints with the thing and you saying if i was asleep wouldnt probably matter

#

i probably wouldnt go to sleep ngl since i do that alot and my scheudle sucks but thats besides the point

#

its nice to have an actual good camera feed and way to control the printer and start jobs without having to deal with shitty chinese cloud software

timid quartz
flint belfry
#

so that if it starts failing i can catch it early

#

if it extends into like saturday or sunday or after school thats when i monitor it

#

i have used this system for 3 years now as a reminder

#

all im litearlly doing

#

is changing it to be more stable and reliable

#

aka the connection not shitting itself due to the 5 reverse ssh tunnels

#

and atps thing assuming i do get it setup we would only use it for another year

#

we plan to get a bambu or prusa soon the next po order since this printer has given nothing but issues

timid quartz
flint belfry
#

well like i said tailscale dosent work on the os

#

and the remote access is well

flint belfry
spare quartz
#

oh yeah um

#

i was meaning to ask you that

flint belfry
#

ask what

spare quartz
#

when will i be able to run a "test" of this program on that printer

#

cause im worried itll be all ready and yknow

#

not function

flint belfry
#

uhh

#

it depends

#

i have a reverse ssh tunnel to the printer i havent used in a while thats hanging on by a thread and i dont want to test your software if the tunnel drops and i cant do anything (and im on spring break)

#

could we maybe do it in like a week or two

#

since thats when i get back

spare quartz
#

sure

flint belfry
#

k

#

when do i send you that game

spare quartz
#

whenever you want i guess

flint belfry
#

ill do it either later or tomm

#

i dont have my card added on steam anyways and i need to find it

rustic vine
#

hello I am here to shill wireguard

#

idk any context but wireguard good

#

👍

spare quartz
#

Microsoft

rustic vine
#

I used to use openvpn and it was solid but kinda slow

#

wireguard has been solid and fast

spare quartz
#

Yóuxì qǐdòng bàocuò, shuō zhǎo bù dào shénme shénme wénjiàn, wǒ shùnzhe bàocuò mùlù shǒudòng qù wénjiàn mùlù fānle yīxià, wǒ dū zhǎo dédào, xīwàng zhèngshì bǎn chū liǎo zhīhòu néng bǎ zhè wèntí jiějuéle

flint belfry
#

i literally use it every day and im not joking since thats my primary way of lan access

#

its just that wireguard needs /dev/net/tun

spare quartz
#

RFC 1661

#

my LCP code actually works

timid quartz
spare quartz
timid quartz
#

spare quartz
#

just have to calculate the checksum corerctly..

#
   Then, PPP MUST send NCP packets to choose and configure one or more
   network-layer protocols.  Once each of the chosen network-layer
   protocols has been configured, datagrams from each network-layer
   protocol can be sent over the link.
timid quartz
#

you really do have too much time on your.....paws

spare quartz
#

no ..

timid quartz
#

also atp

#

ur stupid language can't count

spare quartz
#

wdym

#

what

timid quartz
#
with Ada.Text_IO;
procedure Ada_Test is
   T : Integer := 0;
begin
   for I in 1 .. 1_000_000 loop
      T := T + I;
   end loop;
   Ada.Text_IO.Put_Line (T'Image);
end Ada_Test;

this causes a runtime overflow constraint failed exception

#
fn main() {
    let mut t = 0;
    for i in 1..=1_000_000 {
        t += i;
    }
    println!("{t}");
}
#

but this code works just fine

spare quartz
#

hold on

lavish dove
#

im so fuckin mad

lavish dove
#

lmao

spare quartz
#

you cannot overflow signed integers in ada

lavish dove
spare quartz
#

well he's doing + I not + 1

timid quartz
#

yes

spare quartz
#

if you want wraparound then use a modular type

timid quartz
#

I dont want wraparound

spare quartz
#

what do you want

lavish dove
#

insatiable

timid quartz
#

to show that ur lang can't count but rust can

spare quartz
#

it proves our lang is safer unironically

#

if your lang isnt bounds checking on integers it sucks sorry not sorry

timid quartz
#

hm I see

#

the bounds checks are removed in rust's release profile

#

interesting

spare quartz
#

ohh

#

kinda like -gnatp (i think thats the right flag)

#

i think the compiler can still force checks even with it on though

lavish dove
timid quartz
#

fr

#

no bounds checks == more speed 🔥

spare quartz
#

"blazingly fast" blazingly horrible

timid quartz
#

at least we're not ancient and forgotten

#

:3

spare quartz
#

no you're just full of femboys

#

arguably worse

timid quartz
#

says the furry

spare quartz
#

not a furry

#

just a devote bayachao fan

timid quartz
#

explain ur pfp then, furry.

spare quartz
#

thats my pet cat

timid quartz
#

you saying you're not a furry is like saying the sky is red

#

objectively false

spare quartz
#

i mean

#

thats situational

timid quartz
#

ok uh

#

you saying you're not a furry is like saying humans breathe nitrogen not oxygen

#

objectively false

spare quartz
#

explorer went demented again and imagined i held Alt on everything

#

anyways thats even more wrong

#

you literally need it to live you dope its in the air

timid quartz
#

ok but we don't like

spare quartz
#

the MAJORITY of air is it

timid quartz
#

our lungs do oxygen <-> carbon dioxide exchange

#

not nitrogen <-> carbon dioxide

spare quartz
#

okay you should've said "humans metabolize aerobically using oxygen not nitrogen"

timid quartz
#

ohhhhhhhh my goodness there you go being pedantic

spare quartz
#

ITS NOT PEDANTIC

#

you're just flat out wrong

lavish dove
#

how do you remember all these fucking words

timid quartz
#

that is literally being pedantic

spare quartz
#

no 😭

spare quartz
#

aera probably knows more computer words than i do

lavish dove
#

well yeah but I dont remember the words

timid quartz
#

"erm ackshually I'm going to completely ignore the fact that 'breathing' is used as a colloquialism to refer to the process of taking in a certain gas into your lungs for the purpose of aerobic metabolism and call you out on the fact that you did not use the hyper-specific terminology to correctly refer to the process"

#

that's LITERALLY being pedantic

#

you are literally stallman but in high school and a furry

spare quartz
timid quartz
spare quartz
#

ITS NOT AC actually yeah it si ☹️

lavish dove
#

omg mesa symbol

spare quartz
#

not that far away from a good connection...

lavish dove
#

im still wrestling with fucking gdt

#

somehow the pointer or gdtr is messed up

spare quartz
#

how are you loading it

lavish dove
#

lgdt [cs:bx]

#

bx_dbg_read_pmode_descriptor: selector (0x0008) > GDT size limit

spare quartz
#

heres how its loaded in our tiny bootloader

#

i prefer using the address directly

lavish dove
#

I cant do that because its right below 4 gigs

#

and in real mode

#

😭

spare quartz
#

eehhhh

#

this is functionally in real mode

#

since no MMU is set and the lgdt instruction is called before a GDT set, making the operation 16-bits

lavish dove
#

unreal mode no way

spare quartz
#

oh nonono we're not doing any segment hacking

#

but our bootloader** is positioned at 0x500 just for more flexibility

lavish dove
#

yea

#

they shouldve like bloated everything out when they made bios

#

i mean like

#

ibm shouldve stepped up and improved legacy booting a tiny bit

spare quartz
#

ms and them tried with stuff like the bios extensions

lavish dove
#

yeah but arent those just functions

spare quartz
#

oh you edited your message oops

lavish dove
#

I changed bios to legacy boot

spare quartz
#

this bootloader can't work on a floppy

#

mkisofs -input-charset UTF-8 -boot-load-seg 0x0000050 -R -J -c boot/bootcat -b boot/loader -no-emul-boot -boot-load-size 4 -o bootable.iso ./fs/

lavish dove
#

el torito lets you do that??!!!

#

I thought it was just some mbr extensions

spare quartz
#

yeah

#

the default load segment is at 0x7C0 (or "0" when in iso)

lavish dove
#

woah a boot catalogue

spare quartz
#

idk what that is honestly 😭

#

it's just there to make the command work

lavish dove
#

it seems like just a normal table

lavish dove
spare quartz
#

does GDT.Pointer have both the segment/offset next to each other

lavish dove
#

idfk
.Pointer:
dw $ - GDT - 1
dq GDT

spare quartz
#

iiii dont think you're supposed to be using a quad there

#

try dd for 32-bits?

spare quartz
#

ohhh

#

wait

#

are you trying to load a GDT for 64-bits in real mode?

lavish dove
#

yeah

#

its supposed to be possible

spare quartz
#

then i think the instruction will still use 16/32

#

lemme check the manual

#

yeah 16/32

lavish dove
#

uhm idk what that would mean

spare quartz
#

just means a 16-bit segment selector next to a 32-bit offset

#

at the specified addr

#

(only the lower 24 bits of the offset will be used though going off that screenshot)

lavish dove
#

its like a page below the fourth gigabyte

spare quartz
#

iiiiii think you can use an operand override to let it load the full 32-bit offset

lavish dove
#

oh shit

#

o32

spare quartz
#

idk how that would be represented in your assembler though

lavish dove
#

I forgot about that

#

its o32

spare quartz
#

oh okay

lavish dove
#

fuck still doesnt work

spare quartz
#

damn

lavish dove
#

😭

#

whys it allways the gdt fuckin with me

#

when I first started I thought the gdt was paging

#

this is why intel wants to remove segmnets

spare quartz
#

i wonder what the gameplan for that would be honestly (along with removing real mode since thats the only reason segments still exist anyways)

#

do you run old apps in a virtual 8086-like mode or just dont

lavish dove
#

real mode and legacy 32 bit would be gone, only to be seen in vmx

spare quartz
#

vmx is scarry

lavish dove
#

yeah

#

crazy that they even thought about keeping compatibility mode tho

#

I mean why would they have compatibility mode

#

its wasted effort (only linux uses it)

spare quartz
#

shrug

lavish dove
#

I tried to use it earlier today actually but I had to install the 32 bit version of fucking everything

#

I guess thats just me though

lavish dove
#

man even jmp 8:0 doesnt work

spare quartz
#

basic negociation done

#

okay LCP done

#

just gotta do... CCP, IPCP....

#

good news is after parsing this giant attribute the connection is finally established

spare quartz
#

Onegashimasu!

timid quartz
#

yapppppp

#

yapper

#

yappity

tidal silo
#

how do these little shits work, ive read all the document things and it makes zero sense

#

need to use them for a UI

#

Kicking unauthorised goblins out of a room and I want a UI to pop up telling them nuh uh.

This is the script im using to do the teleporting and idk how to add the remote event stuff

#

then ive just got my UI in startergui

snow oak
timid quartz
# snow oak I would first off recommend using :MoveTo() when moving the character. Secondly...

:MoveTo() causes a character to attempt to walk to a certain point, I think a better solution to what @tidal silo is doing is using :PivotTo(). A character might not be able to walk to the exit point, and what Mildly is trying to do is teleport them, which is accomplished with :PivotTo()

-- snip
if hit.Parent:FindFirstChild("Humanoid") then
  hit.Parent:PivotTo(exit:GetPivot())
end
-- snip

Second, I'm not really sure what you're solving by recommending the use of a RemoteEvent. While Roblox's client security has increased in recent history, a malicious actor still has control over basically everything on their client. Checks of this nature need to be done on the server because we can only trust the server to do them

If you're recommending that the teleportation code be put in the LocalScript, then
a) a malicious client could edit themselves to completely sidestep teleporting
b) because the client teleported itself, due to FilteringEnabled, the client's position wouldn't actually replicate to all the other clients
If you're recommending that the client script detect the Touched events, then a malicious client could also edit that part to completely sidestep telling the server that they touched the teleport brick

timid quartz
#

What you can do is have ONE zone.Touched connection that does the rank check

#

so something like

-- snip
local zone = script.Parent.Zone
zone.Touched:Connect(function(hit)
  if not hit.Parent or not hit.Parent:FindFirstChild("Humanoid") then
    return
  end

  local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  if player:GetRankInGroup(0) < 1 then
    -- teleport them away
  end
end)
tidal silo
#

Mmm ok I think I get it.
I was going to use a remote event to show the "you dont have access" UI for the user, is there any other way to do that then if remote events arent secure like you said?

timid quartz
#

Ahh if you're showing a UI then that's fine

#

Forgot about that part

#

Using a RemoteEvent for showing a UI is perfectly fine because the worst thing that could happen is the malicious client just ignores the GUI

#

But that doesn't really matter

tidal silo
#

Alr

#

Not entirely sure how they work 💀

timid quartz
#

Basically as that guy said

#

You set up a RemoteEvent object (as simple as adding a new RemoteEvent in Studio the same way you would add a Part) in a place that both the client and server could see, such as in ReplicatedStorage

#

Your server script is in charge of doing event:FireClient() to tell the client to do something, and your client's local script is in charge of taking that event (via event.OnClientEvent:Connect()) and then showing the GUI

#

roblox has a bunch of great docs

tidal silo
#

Yeah those are the ones I looked at

#

then didnt understand

timid quartz
#

What part did you not understand?

tidal silo
#

The example they added, no clue what they're trying to do and how to translate the principle to what im trying to do

lyric mesa
timid quartz
lyric mesa
tidal silo
#

basically me rn

snow oak
snow oak
# tidal silo The example they added, no clue what they're trying to do and how to translate t...

When a player joins, the onPlayerAdded function is called. It automatically passes through the player object and is (in my opinion) a cleaner way to handle various connections.

When the player added event is connected to the function, it fires (sends the event signal) to the client. Once the event is received on the client, (the OnClientEvent block) it again connects it to a function and automatically passes the parameters through that were sent from the server.

From there, in your case, you can change your code

Sorry if this isn’t good enough, I’m on my phone right now but I can get some better insight later

flint belfry
spare quartz
spare quartz
#

There’s still more protocols to do

flint belfry
spare quartz
#

I’m just far enough that the client thinks it’s got the connection up

#

Also I just woke up

flint belfry
spare quartz
#

Yeah

#

I was awake from like

#

5 pm yesterday to 10 am today

timid quartz
#

not gashi

#

gaishi

spare quartz
#

uUGGHH

#

it’s easy to forget the い okay

#

Go code my network control protocols for me

timid quartz
#

you must really love kohaku

#

not being the furry allegations

spare quartz
#

funnily enough that’s not my video

#

but I still love こはく。

timid quartz
#

not beating the furry allegations

spare quartz
#

ugggh forgot to hit the KATAKANA BUTTON

#

コハク!!!

spare quartz
spare quartz
#

okay am awake now

timid quartz
#

ergo furry

spare quartz
#

UGH I KEEP FALLING INTO THE SUN

timid quartz
#

wtf

#

what game r u playing

spare quartz
#

outer wilds

timid quartz
#

ohhh

#

makes sense

spare quartz
#

im doing a completionist run okay

timid quartz
#

keep falling in rot

spare quartz
#

(biden moment)

timid quartz
#

learn colemak-dh

#

dewit

spare quartz
#

n o

#

learn the NCP for IP

timid quartz
#

or is it....because you cant :3

spare quartz
#

because i dont want to.

timid quartz
#

I just think it's because it's too hard for you

#

you can't do it :3

timid quartz
#

it's ok if it's too hard for your little paws then just say so

spare quartz
#

okay furry

timid quartz
#

grrr succumb to the reverse psychology

spare quartz
# timid quartz grrr succumb to the reverse psychology

TVアニメ「てっぺんっ!!!!!!!!!!!!!!!」でEDアニメーションを担当したばやちゃおさんと一緒に歌っちゃいました!

Original:
May'n - あはっててっぺんっ
https://youtu.be/zR99bqxQyw8
作詞:May'n・大石昌良
作曲・編曲:大石昌良・やしきん

▼ TVアニメ「てっぺんっ!!!!!!!!!!!!!!!」 ED動画はこちら!🏆
https://youtu.be/1Ka_Z9_mb7c
TVアニメ『てっぺんっ!!!!!!!!!!!!!!!』公式サイト
https://teppen-anime.com

Instrumental:狐野智之
https://twitter.com/kokkuri_music
Guitar:レーファ
h...

▶ Play video
rustic vine
#

please keep the discussion on topic!! I don't see enough programming I might have to kick yall out

#

goated commits

spare quartz
spare quartz
#

accidentally left the half baked SSTP server running

timid quartz
timid quartz
#

urghhhh why won’t the weather channel post the hourly update

spare quartz
#

cause they're all DEAD. trump FIREBOMBED everyone.

timid quartz
#

No but it’s Fox News he likes Fox

#

Welp ok I’m going to bed and praying a tornado doesn’t take me in the night

spare quartz
#

why dont you just google weather or smth

timid quartz
#

Because that doesn’t have an actual meteorologist near me explaining the weather in detail

spare quartz
#

i mean

#

it has links to the NWS

timid quartz
#

ok sure but

#

it feels better to me to have a local meteorologist explain stuff

spare quartz
#

9 in 10 doctors reccommend you spend all your money on bayachao merch

timid quartz
#

there’s a tornado threat and they do stuff like pull up radar views that can indicate possible rotation

spare quartz
#

oh yeah about that

#

mmm i actually wont say that here

#

buuuutt

timid quartz
#

What

spare quartz
#

log work

#

okay crypto binding attribute/connected packet done

#

now for the actual ncps..

#

hmm

#

@flint belfry do you think i should add authentication rn... or just keep going onto making the thing work...

flint belfry
#

make it keys so its automatic

#

you have 2 weeks lol take ur time

#

or well whenver i get back to schoo

spare quartz
#

Expelled

flint belfry
#

die

spare quartz
#

BLEH

#

these stupid random ips

#

they don't know im using a protocol from 2007 all they know is that its tls

flint belfry
#

tls :(((((((((((((((((((((((((((((((((((((((((

spare quartz
#

well i assume you want some amount of privacy...

flint belfry
#

im not saying its bad its just it make my brain hurty

#

also yes privacy is a priority since i dont want some random jackass to be able to control a printer

#

i mean they already can if theyre on my school wifi since the printer software literally uses zero authentication (thanks raise3d) but still

spare quartz
#

dammit

#

i made ONE "hit" post on twitter and now

#

i have american, japanese, AND viet people looking at me

#

💔

flint belfry
#

atp.....

#

what did you post...

spare quartz
#

you wouldn't get it...

#

1897437979716575722

flint belfry
#

i dont

spare quartz
#
   This memo provides information for the Internet community.  This memo
   does not specify an Internet standard of any kind.  Distribution of
   this memo is unlimited.
spare quartz
#

unfortunate i have to NAK all of this out

#

in other news

#

an RFC writer made a tiny mistake

#

but someone caught that since theres errata

spare quartz
#

i cant for the life of me tell what that hiragana on top is

#

maybe a わ? i cant tell

#

all i know is the second is an い

spare quartz
timid quartz
#

It has the little mark in the top right

spare quartz
#

yeah i see that

#

i used that as a diffrentiator but

#

this part was weird for me

timid quartz
#

It’s probably just because of the font

#

Probably comes from an older stroke order

spare quartz
#

probably,...

timid quartz
#

Cause if you squint it looks like an お

timid quartz
spare quartz
#

they go straight to using a digital font after so hooray

spare quartz
#

getting tired again

#

emm

#

remind me to send back a NAK with all of these compressions

#

when i wake up

lavish dove
#

how do I get something like microsoft ime on linux 😭

lavish dove
#

きやー

lavish dove
#

@spare quartz I SET IT TO THE WRONG SEGMENT

#

tahts why it didnt work

#

the segment was org 0xFFFF0000:FFF0

#

it doesnt start at 0xf000

#

for some reason cs is 32 bits long

#

but only 16 bits are accessible

spare quartz
#

forgot that BIOS starts up in a weird version of real mode

#

its only goes back to the normal one after it goes tothe loader

timid quartz
#

You’ll also need either ibus or fcitx5

spare quartz
#

i need to send an ak

lavish dove
lavish dove
#

but the uh

#

I allreayd have mozc setup with ibus

#

fcitx5 kept crashing

spare quartz
lavish dove
#

fr

#

I mean 286+ loads the first 12 bytes of rom to some special 12 byte large memory thing and then it runs that

#

thats waht i read (and saw)

#

the rest of the rom went to the actual 0xf000:0 lol

#

oh 0xf000 is the upper bios ram thing

#

thats nice

lavish dove
spare quartz
#

a nak

lavish dove
#

bruh

#

lgdt isnt even setting gdtr

spare quartz
#

thats not right

lavish dove
#

I put hlt after lgdt and info registers says its zero 😭

spare quartz
#

your debugger might not be refreshing it? i dunno

#

try an SGDT

#

if even that shows zero then do a LJMP

lavish dove
#

hold on I didnt know what sgdt was before now

spare quartz
#

store gdt

timid quartz
lavish dove
#

im on dwm

#

so idk

timid quartz
#

Mmm fair

lavish dove
#

it was also missing a bunch of plugins or whatever

timid quartz
#

tf

lavish dove
#

lmao

timid quartz
#

should just be able to install fcitx5 from package manager and be ok

lavish dove
#

my computers really fucked up

#

I have two cursors (the flashing white line on terminal) lmao

lavish dove
spare quartz
#

just a memory address

lavish dove
#

thats not working

#

😭

spare quartz
#

how

lavish dove
#

yea I tried memorry avlue

#

im looking at the exact same page