#šŸ’½Programming Chat v2

1 messages Ā· Page 22 of 1

full berry
#

i dont see a reality in which notepad is anything other than an editor (editor != ide)

rustic vine
#

rustrover

#

actually

#

I lied

#

vsc is good too

#

I don't use rust don't take my word for it find something you like

#

I just be forwarding info from other people

#

oh interesting, thats neat

#

I imagine patterns from cpp don't really carry over though

#

probably makes using them a little

#

unconventional

spare quartz
#

(Full) C++ support isn’t mandated by the specification

#

GNAT does allow its convention though

rustic vine
#

huh

spare quartz
#

but hey

#

we beat rust to supporting C well 19 years early trolley

#

Actually I wonder how linking to stuff like a steam.dll will work

timid quartz
spare quartz
#

True…

timid quartz
#

true*

#

what are you Python

spare quartz
#

I’m gonna need to figure out how to achieve conditional compilation

#

Since uhh

#

Linux linker do not like windows function

timid quartz
#

rust has that :33

spare quartz
#

we do too bub

#

I just don’t know how to use it yet

#

Ugh my cat is so stupid

timid quartz
#

yeah you are stupid

spare quartz
#

NO

timid quartz
spare quartz
#

we dooooo 😭

#

it’s the Ada/GNAT RM

timid quartz
#

then just uh

#

read the conditional compilation stuff

spare quartz
#

what do you think im doing!!

timid quartz
#

if your docs were decent you'd have learned smh

spare quartz
#

Okay well

#

Your docs are like… arcane

rustic vine
#

at least its not 1 based indexes

timid quartz
#

seems that Ada has a preprocessor

spare quartz
#

We don’t

timid quartz
#

mhm

#

right

#

ok

timid quartz
#

ur mom

spare quartz
#

literally states that it’s GNAT only and it’s for legacy transition

#

ugh… go back to being a CRAB with safety issues

timid quartz
#

there's nothing as permanent as a temporary fix

spare quartz
#

Well I mean tbf

#

We also don’t have the type of updates you guys get where the devs can make it whenever they want

#

Ada has to go through a ton of standardization before an update can be made

#

That’s why the average time between updates is… a decade

#

šŸ’€

timid quartz
#

well yeah because we're not a standard

#

smh

spare quartz
#

I hope you become one!!!

#

Then rust 1 can never release

#

Mwhahahhaha

#

Woahhhh what

#

is separate;

#

reminds me of kotlins expect

timid quartz
spare quartz
#

WHEN

timid quartz
#

bro

#

rust stable is 1.83.0

spare quartz
#

😭 😭

#

I don’t pay attention to it okay,,,,

spare quartz
#

Very cool

timid quartz
#
#[cfg(target_os = "windows")]
// ...
#[cfg(target_os = "linux")]
// ...
#

ez pz

spare quartz
#

procedure Insert is separate;

#

ez pz

#

One thing I dislike is how Ada doesn’t just have like

#

Reliable OS detection built in

#

(Programmatically)

#

Sure you could just use an alternative unit but like, if you don’t wanna, you gotta do like case System.Directory_Separator is …

#

Or read an env variable

timid quartz
spare quartz
timid quartz
#

Just use better labels smh

spare quartz
#

mrow

lavish dove
# spare quartz

coudlve been fix in th time it took them to write that error message lol

spare quartz
#

its an LLVM bug

#

the error mesage is a workaround until LLVM fixes it

lavish dove
#

ya

#

fucking llvm

#

no wonder zig is filing for divorce

spare quartz
#

time to find out why this is erroring

#

GetLastError isnt giving me a code weirdly enough

timid quartz
#

What are you making in Rust anyways

spare quartz
#

your CLASS reader

timid quartz
#

Ah

spare quartz
#

but i wanna make a window through the win32 api first

timid quartz
#

Why are you using inline assembly...

#

oh

spare quartz
#

oh that

#

i just got it from twitter

#

some post about rust error dx

#

ada šŸ™

timid quartz
#

The error dx is quite good isn't it

spare quartz
#

its OK...

timid quartz
#

mhm right name one lang with better error dx

spare quartz
#

aaaaaaaaaaaaaaaaaaaaaaada

#

: 3

timid quartz
spare quartz
#

:<

timid quartz
#

And if you get a runtime error it's worse

spare quartz
#

naw

#

our runtime errors are descriptive *

#

mmmmm i wanna look into our exception restirction pragmas more

#

pragma Restriction (No_Exception_Propagation) is interesting

timid quartz
spare quartz
timid quartz
#

Mmmm nah

spare quartz
#

yah..

#

show your runtime errors

timid quartz
#

uhh lemme just

spare quartz
#

i love b__ files

timid quartz
#
use std::fs::File;
use std::io::prelude::*;

fn main() -> std::io::Result<()> {
    let _file = File::open("nonexistent.txt")?;
    Ok(())
}
spare quartz
#

Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }

spare quartz
timid quartz
#

actually hold on

#

if I change the ? to .unwrap()

#
thread 'main' panicked at src/main.rs:5:47:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
spare quartz
#
thread 'main' panicked at src/main.rs:5:47:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
   0: rust_begin_unwind
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_fmt
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/panicking.rs:74:14
   2: core::result::unwrap_failed
             at /rustc/90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf/library/core/src/result.rs:1700:5
   3: core::result::Result<T,E>::unwrap
             at ./.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/result.rs:1104:23
   4: playground::main
             at ./src/main.rs:5:17
   5: core::ops::function::FnOnce::call_once
             at ./.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
timid quartz
#

yeah and like

#

you don't need the entire trace normally

#

so you can just turn it on if you want it

spare quartz
#

does it show backtrace in DLL files

timid quartz
#

idfk

spare quartz
#

wondering

#

:d_class_sad:

timid quartz
# spare quartz

in this, where the error happened in your code is more hidden

#

like you have to read it to find it

#

vs with rust it's up at the top

spare quartz
#

wdym you have to find it

#

except for the ??? and b__ traces (which are due to the underlying library being compiled for prod) its at the top

timid quartz
#

yeah but there's still the ??? and b__ traces

#

and your code is in the middle of it

spare quartz
#

still appears at the top half

timid quartz
#

still gotta read more than the top line

spare quartz
#

okay well

#

your trace is 5 down

timid quartz
#

okbut

#

at the very top

#

thread 'main' panicked at src/main.rs:5:47:

spare quartz
#

fair...

#

lemme trigger an ALR error and see what that looks like

timid quartz
#

ripperoni

spare quartz
#

okay here

spare quartz
#

built with profiles=*=development

timid quartz
#

man I wish phones didn't switch to esim otherwise I could pop the sim out of my iPhone and put it in my pixel

spare quartz
#

thx for reminding me

#

i need to buy a sim holder to interface with my pico

spare quartz
#

it actually gave an error code

#

probably need pragma Volatile or something since an opt is probably interfering

timid quartz
spare quartz
#

well i mean

#

how else do you start an app (in windows)

timid quartz
#

art0

spare quartz
#

even the most barebones application will interface with mainCRTStartup

#

?

timid quartz
#

ada runtime 0

#

(I made it up)

spare quartz
spare quartz
rustic vine
#

oh just try catch everything

#

you can't have a runtime error that way

spare quartz
#

we have a pragma for that

rustic vine
#

no error no problems

spare quartz
#

No_Exception_Propagation

rustic vine
#

šŸ‘

#

lgtm

spare quartz
#

(used mainly for systems who dont support unwinding and such)

#

iirc theres also just

#

a pragma for no exceptions at all

#

Exception-related restriction:
12/5
No_Exceptions
Raise_statements and exception_handlers are not allowed. No language-defined runtime checks are generated; however, a runtime check performed automatically by the hardware is permitted. The callable entity associated with a procedural_iterator (see 5.5.3) is considered to not allow exit, independent of the value of its Allows_Exit aspect.

#

Immediate_Reclamation looks interesting

timid quartz
spare quartz
#

why are you erroringgg

timid quartz
spare quartz
#

like i dont get it

#

how does the class register fine

#

but the window just goes nope

timid quartz
#

Have you considered that the computer hates you

spare quartz
#

im gonna make this return the error string though

spare quartz
timid quartz
#

Have you tried using a library

spare quartz
#

like what

timid quartz
#

idk what ada has

#

rust has libraries but you're not using rust

spare quartz
#

first thought is gtk but i dont wanna use gtk

#

:<

timid quartz
#

Perhaps your records are not in the correct endianness

spare quartz
#

no they def are

#

if they weren't, Structure_Size/Window_Procedure/Menu_Resource_Name would be incorrect

#

and i'd get an incorrect parameter error

#

hope this works

#

oops

#

Buffer should actually be Buffer_Pointer : System.Storage_Elements.Integer_Address; since it's overwritten to a ptr

#

OHHHHHH

#

NO WONDER LD WAS THROWING A FIT

#

awesome

spare quartz
#

this is probably really bad but i dont care

timid quartz
#

Buffer overflow!!

spare quartz
#

Format_Message will allocate a buffer for us, it's internal Buffer_Size is the minimum size for that

#

OUR buffer_size is then set from the output of Format_Message used to determine the length of Error_String so we know how much to read off from To_Address(Buffer_Pointer)

#

the error string has an extra \n\0 which we ignore by subtracting 2

#

i know what im doing surprisingly enouggh!!!

#

NOT CAP

spare quartz
#

smh go play with your rust libs which do ALL the work for you

#

lazy

burnt locust
#

Bet

spare quartz
#

okay so it IS calling the CB

#

probably why its erroring

spare quartz
#

oh yeah

spare quartz
#

i just didnt process CONFIRM_CREATION/NCCREATE

#

there we go

#

:3

#

oh yight

timid quartz
#

ez

spare quartz
#

mmmmmm okay how much do i wanna overwork this

timid quartz
#

smh ok

spare quartz
#
  • glorified echo
  • parse date too
timid quartz
#

Just write a giant if-else

spare quartz
#

NO

#

such a good dev

timid quartz
#

set -e

rustic vine
#

import datetime

spare quartz
#

i have another line which has gnatformat before alr build but it takes SO long to run

#

ewww accessibility

spare quartz
#

suboptimal.

#

so many events

#

actually

#

im in Ada_2022

#

can just use Enum_Val

#

YOOOOOOOOO

#

BEST WINDOW EVER

timid quartz
#

wind ow

spare quartz
timid quartz
spare quartz
#

mrrp?

#

progress

#

huh

#

oh thats new

timid quartz
spare quartz
#

i mean

#

it detected the bug did it not

#

the faulting line as an Ada 2022 feature of []

#

so i just made a uint

#

p.s.

#

gcc has a LOT of bugs

timid quartz
#

I believe it

#

It is written in C after all

spare quartz
#

everyone has bugs

lavish dove
#

average

#

(every rust bug is llvm bug because rust is perfect)

spare quartz
#

ITS WORKINGGGG

timid quartz
spare quartz
#

this is my own personal ada project

wraith scarab
spare quartz
#

......unlesssss...

#

is calling ada from rust allowed

#

:3

wraith scarab
timid quartz
spare quartz
#

:<

#

okay what if i decomp the class file in rust

#

then display it through ada

wraith scarab
#

why

timid quartz
#

....ok that's acceptable

#

as long as you do ALL the decomp

#

in rust

spare quartz
#

why is a website asking me to udpate

#

🧟

timid quartz
#

rust :3

spare quartz
#

so many events

pastel tinsel
#

just a few

spare quartz
#

okay noooooowwww

#

........ how to get to draw stuff

timid quartz
#

with a pencil silly

spare quartz
#

āŒ

#

windows uses BRUSHES

#

šŸ–Œļø

timid quartz
#

their mistake

spare quartz
#

a solid 1/3 of my code is just message events

timid quartz
#

god please make separate file

#

ur compiler and linker will thank u

spare quartz
#

mraw

#

tbf...

#

the compiler doesnt take that long

timid quartz
#

incremental compilation be like

spare quartz
#

rm -rf obj

timid quartz
#

well

#

if you have just the one file

#

incremental compilation doesn't do much

#

cause it recompiles that whole file b/c of the change

spare quartz
#

rm -rf obj deletes the entire library

#

but then again i only have 4 files

timid quartz
#

where do u get ur docs for java 6 class files

spare quartz
#

hmm..

timid quartz
#

oh

#

3.1

#

I didn't read down that far

spare quartz
#

4.0

timid quartz
#

4.0

#

die

spare quartz
#

the structure for CLASS files is chapter 4 in all JVMS

timid quartz
#

I jus tread that

#

bruh half-bytes

spare quartz
#

1 is intro, 2 is the bg of the jvm, 3 is compilation (iirc), 4 is class files, 5 is opcodes

timid quartz
#

are you kitten me

rustic vine
#

class file was a mistake

#

šŸ‘

#

you're welcome for the free advice

spare quartz
#

no they're actually pretty well designed

#

āŒ

#

me when i have to --amend šŸ™

timid quartz
spare quartz
#

where...

timid quartz
rustic vine
#

least cursed java language design decision

spare quartz
#

thats

#

thats

#

4 bytes

rustic vine
#

thats

spare quartz
#

and 3 2 bytes

#

idiot.

rustic vine
#

oh

spare quartz
#

IT LITERALLY SAYS WHAT THE UNITS ARE IN THE JVMS

#

!!!!!!!!

timid quartz
rustic vine
#

wait yeah I think ur cooked brah

timid quartz
#

maybe don't use CONFUSING NOTATION

spare quartz
#

ITS NOT CONFUSING

#

u = unsigned
i = signed

rustic vine
#

usually the number is bits

timid quartz
#

erm but

rustic vine
#

not bytes

timid quartz
#

Unsigned_32 is not 32 bytes

#

yeah

rustic vine
#

idk who cooked that

#

thats pretty cursed still

#

u2 is a unsigned 2 bit int

#

in any world

#

other than this one

spare quartz
#

okay well you're not gonna have weirdly sized bits in a file unless you're working with like

#

DEFLATE

#

and again

rustic vine
spare quartz
#

its in the JVMS if you READ

rustic vine
#

lets be honest

spare quartz
#

its so short cmon

rustic vine
#

booleans are 16 bytes in luau

#

so its only natural

spare quartz
spare quartz
rustic vine
#

10^2 is not 10e2 btw

timid quartz
#

Normally the number is bits

#

Not bytes

spare quartz
#

since booleans aren't technically their own type its up to an implementer to pack their booleans or have them as octets

#

(they're treated as a byte otherwise)

timid quartz
#

me when I make the CPU suffer by storing them with 1 alignment

spare quartz
#

packing in arrays

rustic vine
#

but yeah bools are 16 bytes in luau

spare quartz
#

since an array's size in java is defined at it's creation, you can align/pack

spare quartz
rustic vine
#

u can store 128 booleans in the size of 1 by doing it in a buffer

#

instead

#

good for sending over network actually

timid quartz
#

bruh what

rustic vine
#

all values in luau are 16 bytes

spare quartz
#

honestly wish lua had more numeric types

timid quartz
#

Wait did you mean to say 16 bytes or bits

rustic vine
#

bytes

timid quartz
#

ohhh my God why

rustic vine
#
local t = true

thats 16 bytes

#

cause

#

thats how we vibe

timid quartz
#

that's cursed

rustic vine
#

a little

#

its not too bad though

spare quartz
#

oops, forgot to update

spare quartz
# timid quartz

oh yeah there is actually 2 bad design decisions in CLASSes/JVM opcodes i wanna make clear

#

long/double entries take up 2 slots of whatever they're in, like the constant pool, local variables, and potentially stack

#

AND

#

these things

#

i hate them so much

spare quartz
rustic vine
#

type erasure is kinda funny

#

they spent all that time to have a statically typed language just to get none of the benefits at runtime

spare quartz
#

kotlin reification save us

rustic vine
#

or can a JIT take advantage of it?

#

no it can't nvm

#

types are erased when going to bytecode

#

brah

#

they cooked

spare quartz
#

a java compiler could save a reified version of a type along with its value in a CLASS file using a private attribute

#

and a compliant JVM could take advantage of that

#

but that's all private

pastel tinsel
timid quartz
#

me when I reify you

timid quartz
#
reified Atp
spare quartz
timid quartz
#

šŸ‘€

spare quartz
#

i hate these terminals!!!!!

#

bleghh

timid quartz
#

nixos ā¤ļø

#

why do you hate these terminals tho

spare quartz
#

just their adjacency to techbro stuff

timid quartz
#

hmm well

#

warp that's a fair argument cause ai and rust

#

ghostty ig it's only fair with zig but zig is way less tech-bro-y

spare quartz
#

ghosttys adjacency mainly comes from the creator/users of it

#

rather than the program itself

#

(i know thats a little unreasonable but yeah)

timid quartz
#

mm

#

I'd use alacritty but

#

ehh

spare quartz
#

oh yeah thx for reminding me..

#

i need to use the window context for something...

#

OpenGL in ada šŸ’€

timid quartz
#

kitty is also written in python so 🤢

spare quartz
#

isnt alacritty different

timid quartz
#

alacritty is rust

spare quartz
#

g

#

incinerate

timid quartz
#

naw

spare quartz
#

thinnnnnnnking

#

how would i move this into a task WHILE maintaining ownership of Window_Handle

#

cause the function won't return ever if the task is initiated by it

spare quartz
#

threads are dying

#

only 1.3 MB

spare quartz
#

OK tis time to do this

spare quartz
#

lole

#

damn

#

675 lines today

spare quartz
#

hhhhhhhhhhhooooooh

#

pytho .

full berry
#

puke emoji

spare quartz
full berry
#

then you are forgiven

timid quartz
spare quartz
#

ole32 has COM stuff

timid quartz
#

Why are you doing that tho

spare quartz
#

wdym

timid quartz
#

wdym wdym

spare quartz
#

why am i doing what/why're you asking

timid quartz
#

I've never done any windows dev like this

#

What even is COM

#

other than a TLD

spare quartz
#

a common binary interface for different types of systems in windows

#

for example, a 2D rendering system

#

it's based on a much older system that was made in the 90s iirc

timid quartz
#

oh ic ic

#

So.......you're using a library then......

#

For SHAME

spare quartz
#

It’s a system library

#

At that point the entirety of Ada is a library

#

Writing a device driver and shipping it with my library isn’t exactly an attainable goal

timid quartz
spare quartz
#

Actually yeah cmon you didn’t write all of rustc yourself?

timid quartz
#

rustc is the compiler

#

std is well...the stdlib

spare quartz
#

GNAT is also the compiler

#

it just happens to provide an RTS

timid quartz
#

oh

spare quartz
#

I need more cats!!!! Furry art of cats!’nnnnn!!!!!

timid quartz
#

Make an Ada program to scour the Internet and download one at random

spare quartz
#

Mmmmmmm but

#

I can’t guarantee the quality of the downloaded images

#

What if it gets like, pork or something

timid quartz
#

pork??

spare quartz
#

k with n

timid quartz
#

and not being able to guarantee quality is just a part of the Internet

timid quartz
spare quartz
timid quartz
#

LOL

#

idk atp just uh

#

scan websites without that

spare quartz
#

: <

#

I did make something like that

#

But it ran off of tumblr instead

timid quartz
#

gg

spare quartz
#

Annnnd it was made in mode js

timid quartz
#

ewww

spare quartz
#

this was like 4 years ago

timid quartz
#

I made a thing in kotlin to scrape my saved images on Reddit

#

Ended up downloading like 850mb worth of omori

timid quartz
#

yknow I wonder where that tool is

#

might have deleted it

timid quartz
spare quartz
#

TIL

#

there is a horizontal and a vertical scroll wheel

#

they are parsed differently

timid quartz
spare quartz
timid quartz
#

You sure the person you’re dating is British and not Australian

spare quartz
#

yes 😭

rustic vine
#

its 7pm

#

or was

#

I think u should take a night shift

spare quartz
#

its 6:20 pm here

rustic vine
#

wrong timezone

#

but yea

#

its 7:20

spare quartz
#

no

#

it's 6:20

rustic vine
#

where even is 6:20

#

what timezone

spare quartz
#

cyst

#

i mean cst

rustic vine
#

I forgot that was a timezone

spare quartz
#

yeah ok bub

rustic vine
#

america could merge the east and west coast together and cut out the center part

#

and I think we'd lose approximately

#

1 and a quarter persons

spare quartz
#

5 morbillion dolalrs

#

and like

#

one nuclear bomb plant

rustic vine
#

oh

#

nvm

#

we cant cut it out then

spare quartz
rustic vine
spare quartz
rustic vine
#

virus

#

@mods

spare quartz
#

evil programs when they're NOT evil

rustic vine
#

virus

#

someone

#

deal with it

#

I need a mod

spare quartz
#

yaeh mods pls run it

#

youll be great test samples

rustic vine
#

this is ur job

spare quartz
#

heres the src of that

#

if you can find an UNKOWN ill be impressed

rustic vine
#

virus site

#

mods

spare quartz
rustic vine
#

I only know guthib

spare quartz
spare quartz
spare quartz
spare quartz
#

holy crap i hate this langauge

full berry
#

its weird

#

@spare quartz if i hypothetically wanted to learn kotlin (hypothetically), should i learn java first

#

since it's

#

yeah

spare quartz
#

If you want you can

#

Helps with reading it when you’re working with java

#

But it’s not needed

full berry
#

alr alr

#

this year i want to learn kotlin and lua so

#

we'll see

spare quartz
#

IncompleteReference { class: Incomplete(89), name_and_type: Incomplete(240) }

#

cool

spare quartz
rustic vine
#

syntax wise i mean

spare quartz
spare quartz
timid quartz
full berry
#

what's a good low resource linux distro

#

i have a 9 year old laptop that i want to use as a mini server to host things and test shit out, but i wanna choose the correc tthing

#

im using debian 12, it's good but it can get slow during high loads

timid quartz
#

Arch perhaps

#

Or well if you're using it as a server, maybe Alpine

timid quartz
#

@spare quartz

lavish dove
timid quartz
#

astro said debian is too heavy šŸ’€

#

im using debian 12, it's good but it can get slow during high loads

lavish dove
#

I guess

#

I have 8 gigabytes of ram and it only uses like 60 megabytes

#

Just delete the window manager they are incredibly heavy

#

Uhhhh

#

Yeah arch šŸ’€

#

I don't even know how you get Debian to be slow it's what alot of servers use

lavish dove
full berry
spare quartz
#

also im blind

timid quartz
spare quartz
#

sounds gay and hippie

#

hmmmm hmhmhhmhm

#

YOOOOOOO

#

NEW ADACORE POST OUT

timid quartz
#

Your community is nonexistent so ig this is the only thing you have to look forward to

spare quartz
#

hold on im playing with tis 100rn

#

yay it work :3

spare quartz
#
MOV UP, ACC
JLZ LT
JGZ GT
MOV 0, ACC
ADD LEFT
ADD RIGHT
JMP SEND
LT:MOV LEFT, ACC
 MOV RIGHT, NIL
 JMP SEND
GT:MOV RIGHT, ACC
 MOV LEFT, NIL
 JMP SEND
 
SEND:MOV ACC, DOWN
timid quartz
#

gotta love the ~/zig-bin/bin/lib/std/fmt.zig:646:21: error: cannot format slice without a specifier (i.e. {s} or {any})

lavish dove
#

raah hate zig

#

(I like it)

spare quartz
#

markiplier

spare quartz
#

its always handy to have a taskkill on command

rustic vine
#

I had to wait it out

#

I needed it to finish building

spare quartz
#

what were you building??

rustic vine
spare quartz
#

cpp is all you had to say

rustic vine
#

LOL

spare quartz
#

cat is stepping om leyboard hold on

rustic vine
#

it was a clean build so I kinda expected it

spare quartz
#

wh

#

yall i think im an idiot

#

i accidentally made a sorting algorithm 😭

spare quartz
#

i understand now why division is computationally expensive

timid quartz
#

It’s kinda neat

spare quartz
#

I’ve only seen the electromechanical ones

timid quartz
spare quartz
#

Oh

#

But yeah I found out it’s practically just

#

Long division until JLZ/JEZ and NEG to get the remainder

timid quartz
#

@spare quartz

pub fn main() !void {
    std.debug.print("Hello, Zig!\n", .{});

    var gpa = std.heap.GeneralPurposeAllocator(.{}).init;
    const alloc = gpa.allocator();
    defer {
        switch (gpa.deinit()) {
            .leak => std.debug.print("WARN - leaks detected\n", .{}),
            else => {},
        }
    }

    var args = try std.process.argsWithAllocator(alloc);
    defer args.deinit();
    _ = args.skip();
    const in_path = args.next() orelse return ProgramErrors.NoPathProvided;

    const file = try std.fs.cwd().openFile(in_path, .{});

    var buf: [4]u8 = undefined;
    try file.seekTo(0);
    const magic_read = try file.read(&buf);
    std.debug.print("Magic: 0x{X} ({})\n", .{std.mem.readInt(u32, &buf, .big), magic_read});
}

const ProgramErrors = error{
    NoPathProvided,
};

const std = @import("std");
timid quartz
spare quartz
#

Because I usually sleep for 10 hours at a time

timid quartz
#

gfg

spare quartz
#

This time I only fell a sleep for

#

5

timid quartz
#

gfg

spare quartz
#

golf for goobers???

timid quartz
#

it's like gg but with f

timid quartz
#

so successive calls to it increment the pointer

spare quartz
#

i love sterams,,,,,,,

spare quartz
#

AFCB = Ada File(system) Control Block

lavish dove
#

im using eufi again its not as bad as I remember it

#

still bad though

#

(im enjoying using it)

lavish dove
#

why the fuck is there not a enter key

#

I liek how it has page up and down but not a fuckin enter key lmao

spare quartz
lavish dove
#

it doesnt give me

lavish dove
#

wait no

lavish dove
spare quartz
#

this is under Table B.4 Example Keyboard Layout

#

are you using the simple text proocol

lavish dove
#

the docs i have only go to b.2

spare quartz
#

oh

lavish dove
#

where tf did you find this šŸ’€

spare quartz
#

the latest ver

lavish dove
#

and I trierd to find one too and it was null

lavish dove
spare quartz
#

put a new flash into that!!!

lavish dove
#

what version is uefi on

#

oh its only 3 minor versions off

#

sounds like a pretty big thing for enter to only be in the latest version of uefi lmao

spare quartz
#

theres no way enter just doesnt exist on the lower vers

lavish dove
#

I mean I read somewhere that the first versions of uefi didnt even work at all

#

so its not surprising lmao

#

ah it costs 3k to look at the latest uefi docs...

#

crazy shit

#

yeah now im surprised the first versions of uefi even had the name efi instead of being copied from somewhere else

#

looking more like a cash scam to get money out of companies now like hdmi instead of an actual standard

spare quartz
#

Mhmgmhmmgmgmhmgmhmhm

#

Mhmhmhmmgmhmh

#

I’m going insane

lyric mesa
#

WOOOOOOOO

#

PROGRAMMER STRUGGLES

spare quartz
timid quartz
#

huh

#

interesting

rustic vine
#

I think it was interesting

timid quartz
#

all im gonna say is

#

org mode >

full berry
proud creek
#

Watch their other product ads

#

Like they got jack quaid to act 😭

pastel tinsel
#

l o l

#

There is a reason why I have a lot of their products

#

At least 2k spent though

full berry
#

the issue is (and i really hate this) my router is celluar meaning it gets its traffic from a sim card

pastel tinsel
#

yeah it is better to have coax or fiber with that kind of stuff

#

especially if you are going to be hosting things

#

or get a simple unifi express

spare quartz
#

alright

#

my life is complete

pastel tinsel
#

jdk

#

1.0 wtf

spare quartz
#

jdk 1.0.2 from 1996

pastel tinsel
spare quartz
#

the applets in it still work too

pastel tinsel
#

a tiny bit old

spare quartz
#

but the disc folder has a bunch of non executable 16-bit apps

spare quartz
full berry
spare quartz
full berry
#

my dad's house is elligible for 5G/optic but he lives abroad

#

i could ask him to pay

#

maybe idk

full berry
#

@flint belfry @pastel tinsel SO MY DAD APPARENTLY HAS UNIFI HARDWARE AT HOME kms

#

i am jealous

flint belfry
#

bro why are we in programing chat

#

ALSO WHAT HARDWARE

spare quartz
flint belfry
spare quartz
#

I AM PROGRAMMIGN!!!!

flint belfry
#

SURE YOU ARE

spare quartz
flint belfry
#

oh

#

well ill be damned

spare quartz
#

dumbass obese plane dragon ass

flint belfry
spare quartz
#

wait so you finally admit plane dragons are obese??

#

thank god

flint belfry
#

not all of them

#

IDIO

spare quartz
#

mhm

#

mhmmmmmm

#

ACC_PRIVATE, ACC_PROTECTED, ACC_VOLATILE, ACC_TRANSIENT << IGnore

#

god thinking is hard

flint belfry
spare quartz
spare quartz
flint belfry
full berry
#

i told him to go to the

#

networkj long

#

logionm

flint belfry
#

whazt

#

astro are you drunk

full berry
#

login

#

like

#

and its SO WEIRD

#

why is his login like

#

10.0.0.1

full berry
#

ip when you run ipconfig

flint belfry
#

why is he using the busieness class of ip range

full berry
#

also probably because its UBIQUITI

flint belfry
#

the 10.0.0.0 range of ips is used for busiensses and shit

full berry
#

also i think its one of these

flint belfry
#

192.168.0.0 is used for home networks

flint belfry
full berry
#

then probably because its ubiquiti

flint belfry
flint belfry
full berry
flint belfry
#

im pretty sure you can configure it to be 192.168 as well

full berry
#

+/- 10 bucks

flint belfry
#

so either it came like that

#

or he literally chose the busienss ip range

flint belfry
full berry
#

my dad doesnt know the

#

router login into the ui so like

flint belfry
#

do NOT give ben access to that

full berry
#

iM NOT

#

im gonna ask him something

#

@pastel tinsel UNIFI MAN WAKE UP

#

wait

#

@flint belfry wasnt there some vulnerability with wordpress sites, specifically those having /wp-admin as a route

flint belfry
#

uhhhhhhh

#

dont remember

#

i dont even use wp šŸ’€

full berry
#

me neither

#

my fucking dad does though

flint belfry
#

what does your dad do

full berry
#

jack shitt

#

he does front end now apparently iN WP

flint belfry
#

like

#

he works on wordpress

#

or what

#

like what is his job

full berry
#

yes he has his busines' website

pastel tinsel
#

I still use 192.168

spare quartz
flint belfry
#

told you

spare quartz
#

oaky...

pastel tinsel
#

It lets you use whatever though

full berry
#

BEN

pastel tinsel
#

Whatttt

full berry
#

where do you find the login for the router

pastel tinsel
#

WiFi

#

Ex

full berry
#

no no

#

i know that

#

his login is 10.0.0.1 for some reason

pastel tinsel
#

okay…?

full berry
#

im saying

#

the

#

credentials

#

the base credentials

pastel tinsel
#

So he has UniFi or

full berry
#

yes

pastel tinsel
#

You don’t

#

Then

full berry
#

what

#

there is a log in i swear

pastel tinsel
#

yeah a page

#

But there are no default credentials

#

As it is tied to account credentials

pastel tinsel
#

Yeah that

#

Read what I said

full berry
pastel tinsel
full berry
#

?

pastel tinsel
#

Yes

#

You have to login with that

#

That is how you login to the router

#

It saves over

full berry
#

MY DAD GAVE SOME IT GUY THE CREDS

#

OH MY GOD

proud creek
#

erm

#

rule 5

#

where program

spare quartz
# spare quartz

not (PRIVATE or else PROTECTED or else VOLATILE or else TRANSIENT)

pastel tinsel
spare quartz
#

little cursed

proud creek
pastel tinsel
#

no

pastel tinsel
full berry
pastel tinsel
#

Probably not

#

Since you can add and remove accounts

full berry
pastel tinsel
#

No if you dad has an account

#

The IT guy probably moved it to your dads account

#

Multiple creds work

#

Depending on the account

full berry
#

im gonna try logging in with his email hold

spare quartz
pastel tinsel
#

Try resetting his password then ig

spare quartz
#

uuuuuuuugggggghhhhhhhhh

#

250 lines for just the specification of a class file šŸ”„

spare quartz
#

some output!

spare quartz
spare quartz
#
when CLASS | STRING =>
               declare
                  Name_Index : Constant_Pool_Index :=
                    Constant_Pool_Index'Input (Stream);
               begin
                  if Item.Contains (Name_Index) then
                     declare
                        Element : Utf_8_Constant_Pool_Entry :=
                          Utf_8_Constant_Pool_Entry
                            (Item.Element (Name_Index));
                     begin
                        case Read_Tag is
                           when CLASS =>
                              Item.Include
                                (Constant_Pool_Position,
                                 Constant_Pool_Entry'
                                   (CLASS,
                                    new Utf_8_Constant_Pool_Entry'(Element)));

                           when STRING =>
                              Item.Include
                                (Constant_Pool_Position,
                                 Constant_Pool_Entry'
                                   (STRING,
                                    new Utf_8_Constant_Pool_Entry'(Element)));

                           when others =>
                              raise Constraint_Error;
                        end case;
                     end;
                  else
                     case Read_Tag is
                        when CLASS =>
                           Incomplete_Map.Include
                             (Constant_Pool_Position,
                              Incomplete_Entry'(CLASS, Name_Index));

                        when STRING =>
                           Incomplete_Map.Include
                             (Constant_Pool_Position,
                              Incomplete_Entry'(STRING, Name_Index));

                        when others =>
                           raise Constraint_Error;
                     end case;
                  end if;
               end;
spare quartz
#

272 line function so far

full berry
#

why did that reply to

#

ok

#

i might go with the unifi express honestly i've bene looking at it for a day no

#

w

spare quartz
#

it took 6 hours

#

but im done

#

1076 lines for the class file format

pastel tinsel
#

it’s for something else

full berry
#

alr figured

#

well then the unifi express is literally all in one

#

except it has only one port but i can just buy a switch