#💽Programming Chat v2
1 messages · Page 33 of 1
Discovery on and/or public invite link
condo games publicaly advertise their links
I'm not sure where he gets his data from
there's always going to be that one bad egg that will tear everything down if it does happen
there's no way he doesn't get it from bot accounts
unless you like have random ass people run api calls for specific servers???
¯_(ツ)_/¯
kms honestly
I’m laced can you fix this for me #1290206018848030720 message
i saw
ill look at it later i gotta get ready for class
oh my god did you still not fix that docker thing 😭
what's the pissue even
oh shit guys i said piss im now on the list because i'm into a weird fettish
GitHub’s docker repo requires login to pull images
Well then you gotta use dind
wtf did something happen to the sso
i think he means in CI
and I did use PAT and when I pulled the image it failed
we have always used authentik
it says my password is invalid though
it works eith ldap
Oh right I gotta recreate your account
Bruh
dies
tf is dind
docker in docker

bro that's why I was trying to use something else
also my account's only login is oauth
Idea
Mango mango mango
Also it’s funny cause we were gonna use it but the list is literally censored
Yeah lmao
yawn zig has that
and also valgrind
yeah but this is built into GNAT
it's also moderately advanced and can hook up to gnatmem
which i think is pretty cool
zig's is built into the stdlib
I dont wanna read your stinky spec
cause yours is inferior.
I think you misspelled superior
nuh uh
mmm
m,,mmmmmm
i dont know what to work on
i cant optimize my server further without using syscalls
Then what do you recommend?
but then you lose the giant part of ada where it exists everywhere
A real relational database?
MariaDB and PostgreSQL are the two big ones
There are a limited number of cases where a document store DB like Mongo would be preferable, but most data will benefit from the “relational” part of a relational DB
qusetion sincei never really understood
whats the benefit of a database over like
just a csv file
Organization and storage space are two big ones I can think of
CSVs also aren’t ACID compliant (atomicity, consistency, isolation, durability) which does wonders for data integrity
I can type out something longer when I sit down
damn, none of my projects could benefit from persistence now that i think about it
What I need data storage for is per-server settings and a shitton of config data, so I'm taking the chance to level up from JSON files. 
That's a case where MongoDB would probably be more beneficial
I'd still argue that your data is structured enough to get benefits from a relational database
I'm guessing this is for like a Discord bot or smth
Discord bot yea.
I'd still argue that your data is structured enough
But there's a better argument for MongoDB in your case
@spare quartz so imagine the data that QDF deals with, we'll say like operatives and patrols
if this were stored in a csv, it'd look something like
discord_id, roblox_id, rank, patrol_start, patrol_end
consider that if the same person goes on multiple patrols, we end up with duplicated data (discord_id, roblox_id, and rank)
and consider what happens if we want to store more data about operatives, consider how much more data has to get stored in that one csv
in a relational database, there would be two tables, one for operatives and one for patrols
// operatives table
operative_id, discord_id, roblox_id, rank
// patrols table
// operative_id references the operatives table
operative_id, patrol_start, patrol_end
now you may just say "why not use 2 csv files" and yeah that's valid, however if you use a relational database, the database system is optimized for querying across multiple tables and would probably be more performant than having to use two csv files
and I'd imagine InnoDB (the most popular storage engine) has way better storage sizes than two massive csvs
For example, the QDF database right now is a little under 36mb
ada has something... "similar" built in, but it's for shared partitioning on distributed systems, the persistence just comes with it
303 operatives stored, 43950 patrols, 347 strikes
just under 36mb
it took 0.010 seconds (a centisecond?) for mysql to count the patrols
a hundredth of a second works fine
but neat
okay i think im gonna try and learn SQL and make my own database
i wont have anything to test it on though so... ill figure that out...
wdym test it on
no projects i've made have any reason to have any form of persistence
well
the "plan" for that if its ever gonna be executed is to just have like
a file of users and passwords
or you could make a database system :3
I can send you a different one
do i write a PUT feature in my server or have you send it over discrod...
write put
okay 👍
relational databases are made for stuff like this
this basically finds the time an operative spent patrolling in a month
select
Operative.roblox_username as 'Name',
sum(timestampdiff(MINUTE, Patrol.start_time, Patrol.end_time))
as `Total Time`
from Patrol
inner join Operative on Operative.id = Patrol.operative_id
where Patrol.start_time >= '2024/01/01'
group by Operative.roblox_username
order by `Total Time` DESC;
theres one thing that irks me about people talking about databases though
like occassionally i'll be told they just store JSON strings in them
and i wonder what's the point, why not binary data
mm yeah
storing json data in a column is a bit weird
it COULD be useful but idk properly integrate it with your database
pls hold this
I recently ran into an app that really didn't want to be debugged — let's see if we can break into it anyways!
00:00 - Intro (ft. Beans the Cat)
00:36 - PT_DENY_ATTACH
02:37 - Bypassing PT_DENY_ATTACH
08:58 - Reboot/Respring
13:14 - Injecting Code
Accompanying text post - https://bryce.co/undebuggable/
saw this vid, guy explains it really well
NOOOOO
I was in the process of pinging u
@timid quartz
Yep, I thought it was great too so I wanted to share
not seen yet
Should watch!
mo.
terrible
The high storage usage of JSON is part of why I'm researching alternatives (and better ways to structure data). I keep thinking about how just the indexes for settings could easily devour a shitton of space.
No, just for storing.
Whats wrong with using json
It's just text in a format
You'd be hard pressed to actually hit any significant size
And if you do I'd argue you should've designed to use a diff format from the get go
insomnia
Knockoff postman wth
😭😭
fr]
theres still a tiny vulnerability i need to fix but you can't cause it with any http client
should be easy to fix though
Port 7777? How am I gonna serve my Just Cause 2: Multiplayer Mod Server now?
factorio**
Using a different thing is exactly what I'm trying to do. 
What about my Terraria default server
Or the Super Foosball multiplayer gameplay
👍
Now I can't play SCP: Secret Laboratory Multiplayer Server
Not really my point, I think having to use something else is exceptional - what are you trying to store?
Per-role data for a shitton of roles for a shitton of servers.
"Roles":{
"945386020847894568":{
"SettingSomething1":true,
"SettingSomething2":false,
"SettingSomething3":null,
"SettingSomething4":9
"SettingSomething5":1000
}
}
CREATE TABLE `Server` (
server_id VARCHAR(36) NOT NULL, -- I don't trust ints here
-- whatever else
);
CREATE TABLE `Role` (
role_id VARCHAR(36) NOT NULL,
server_id VARCHAR(36) NOT NULL REFERENCES `Server`.`server_id`,
setting1 BOOLEAN NOT NULL,
setting2 BOOLEAN NOT NULL,
setting3 VARCHAR(50),
setting4 INT NOT NULL,
setting5 INT NOT NULL,
-- whatever else
);
and then you hit em with a nice
SELECT `Role`.`setting3` FROM `Role`
INNER JOIN `Server`
ON `Server`.`server_id` = `Role`.`role_id`
WHERE `Server`.`server_id` = 'whatever';
@spare quartz 
sounds like you can just store it in a json
what size are you hitting? I don't see it going over 100mb unless you've stored like a million servers or something
sure json might not be the best format to manipulate this data in, but thats besides the point
This bot likely won't ever see enough usage to reach 100 MB, let alone 1, but I'm building it as if it was going to service a shitton of servers. Why? 'cause I can (and I want to take the opportunity to grow my knowledge in this data storage stuff).
@spare quartz ugh it’s really looking like I’m gonna have to use selenium for this whole art scraper thing
Because for some reason APIs are so sparse
Or locked behind fucking paywalls
welcome to the modern web ☹️
@timid quartz do you have a way to upload files via put
Postman and curl can I think
you stupid
that's your local ip
ok did you get that
:<
idk
whatever database data file there is
so i can try and replicate it in my structure
c:\users\adenosine3phosphate\desktop\http operations\employees.sql 4194 / 4193
that's just the schema
not rlly
damnit turn it back on
nope
ok now im done
c:\users\adenosine3phosphate\desktop\http operations\teehee.mp4 1 / 1810588
Terminated copying of c:\users\adenosine3phosphate\desktop\http operations\teehee.mp4
stop terminating your copies!!!
it'll destroy them if the other socket closoes 😭
idk handle curl properly
cause we all know curl is right
anways I'm done uploading
stoopid
watch
watch what
the 3 videos I sent
why not
魔魔魔魔 マジカル・アンド・ミラクル
この広い世界-
かわい かわい カワイぁぁ むずかちゃあぁぁぁ💥
STOP ADDING LYRICS TO RANDOM BAYACHAO VIDEOS ⚠️
【歌詞】
たくさん遊んでサンキュッキュ(サンキュー)
ありがとさーん
メルメルメルメルメルシー
オッオッオッオッオブリガード
シュクシュクシュクシュクシュクランラン
スパスパスパスパスパシーバ
もっとあそぼ!(サンキュー)
also ow
im cooking pizza and dropped it while it was stilled wrapped and icy on my foto
i hate cooking
まずいよ。また遅刻だ!!はやくも遅刻魔の異名をとってしまう。
WHAT
I DIDN'T ADD THEM
Dude I need to move my Mariadb instance from windows to linux
then how did you find ? ?? ? them ???
BY LISTENING
Who tf eats cold pizza
cause i wanted it fast
Brug
Microwaving pizza be like:
<15 seconds: 🧊
16-17: Perfect
18: Here comes the sun! 🎵
What are the different SQL join operations when sending a query
Are you asking a real question or are you complaining
thats a little general
what are you trying to achieve
well from what i can tell
something that resembles a relational db and can execute sql
but ascertaining what i want completely requires information i do not possess right now
wait hold on, you're trying to make your own db?
huh wait what
i write things its what i do
how is ftp the alternative
i need to code things or i will cease to exist
Average flight after DOGE plugs in to help upgrade our aviation system
Quoting Secretary Sean Duffy (@SecDuffy)
Big News - Talked to the DOGE team. They are going to plug in to help upgrade our aviation system.
im confused but ok
its very simple to understand
I got nothing for how to make a db im sorry
damn
I've unfortunately not made a db before
and instead fell prey to "oooooh use this already existing one"
no yea I know that
hey at least its source available https://github.com/mongodb/mongo
isnt that one document based or whatever the nerds call it
i dont exactly know where sql lies in the chain between management software and actual db software so
i just want something to be able to execute it
SQL is a language and also a standard
Databases implement parts of the SQL standard (I don’t think any implements it in its entirety) and use the SQL language as a way to query the data
wikipedia said its rare for an implementation to fully supoprt it.. ..
Yeah
oh
how are databases used
To store data silly
omg
精巣腫瘍魔術
My feelings on MariaDB are mixed
I wish they had like proper boolean values
Postgres does
so basically you'll have some kind of library that mediates the connection between you and the database
I'm not sure about in other langs but in Java there's normally a "driver" that handles the actual talking to the database and exposes some higher-level abstractions and libraries use the driver
oh so
there isn't like a specification between driver-db communication
just a common interface on the driver itself
I mean if you looked at the database's docs you can probably find how the driver is talking with the db\
thats irrelevant to me
i just need specifications and i can sort out anything "implementation defined"
Well it depends if you're going to use a pre-written driver or write your own
but
:despair:
thats not secure!!!
you don't compress TLS traffic before OR after encryption
NOT MY PRESIDENT
No he's not
String (1 .. 10 )
❤️
Designers having fun again 😍
hey guys
this is becoming a trend
yes it does
Tell that to me trying to copy an image from reddit
Only to be greeted by the only option being to copy a link
When I can copy the image on iOS!!!!!
Takes after you :3
Anyone?
aera help the lost child
isn't this a single search away
iirc theres inner joins, left/right joins and complete joins?
I tried
What 😭
wym what brah
It's 6 in the morning
im confused, what's your actual question
I responded with the different joins and you just said what
What do they do exactly
say you have a table A
ID Name Email
1 Harry [email protected]
etc..
then another table B
ID Role
1 Intern
SELECT a.id, s.name, s.email, s.role
FROM A a
JOIN B b ON a.id = b.id
okay i think i understand this file now
it took me a second of watching youtube videos befoer i gave it a second look
however i will be reading the sql...specification since guessing syntax usually doesnt work except for http
inner joins select all matching rows from all tables
left/right joins select all rows from the left/right table in the join operation
full joins combine all rows from all tables
think of inner joins as intersections, left/right joins as just set A and B, then full joins as unions of both sets
JOIN is implicitly an INNER JOIN
The syntax of the SQL programming language is defined and maintained by ISO/IEC SC 32 as part of ISO/IEC 9075. This standard is not freely available.
i hate iso
sci hub to the rescue
(maybe)
lets see
a lot of ISO documents aren't very well written to implementors so
hopefully thats also different here
Unfortunately, Sci-Hub doesn't have the requested document:
ISO/IEC 9075-1:2023
damn
okay, was able to find a link frm https://modern-sql.com/standard
Collection of free resources about the SQL standard
thank god vsc is an electron app so i can read pdfs in it
😢
Hmm ic
There's also "natural join" where the database does an inner join by guessing what column to join on but it's rarely used
Oh I forgot abt those 😅
Nice graphics very fancy
Do joins require a primary-foreign key relation
It doesn’t make much sense to do joins without some kind of foreign key
the replies to this image on twitter range from sane "debug/static build" to "i thought it was memory safe??"
Fair enough
rustc -O main.rs yields 416k
-O is short for opt-level=2
let's see 3
stil 416k
seems that the smallest it can go is 416k
364k* with lto
you typically use JOINs to operate on data that is already related in some way
and if data is related then it probably has some kind of foreign key relationship
and you typically use primary keys for this because primary keys are guaranteed to uniquely identify an object
you could also use a unique non-primary key though
but you'd usually have something like
CREATE TABLE `Table1` (
id INT,
-- whatever else
PRIMARY KEY (id)
);
CREATE TABLE `Table2` (
id INT,
table1_object INT,
-- whatever else
FOREIGN KEY (table1_object) REFERENCES Table1(id)
);
there are a few different ways to set up the relationship depending on what you need it to do but that's kind of the basic foreign key example
This makes sense yeah
I honestly never used foreign keys in my projects but seeing how they work, the implementations I used could very well be replaced with this
You CAN do joins without explicitly defining foreign keys like this
It IS possible
But the columns you’re using in the joins are probably basically already foreign keys or can be easily turned into them
I’d imagine that setting up foreign keys in the schema gives your database opportunities to optimize
hmm
i wonder if this is how compilers work
im looking at the sql code and im just thinking like
type Entity is (TABLE, DATABASE, ...);
type Keyword is (CREATE, DROP, SELECT_ENTRIES, USE_ENTRY, ...);
for Operation (Op_Keyword : Keyword) is record
case Op_Keyword is
...
end case;
end record;
wow this is really unfortunate
making this db requires at least making a lexer and parser
totallyf orgot
i can set pre/post clauses
oops that Pre clause will be accepting the contents forgot about that
are you making the actual database, the driver, or something to interface with the driver
rn im just writing a SQL reader to plug in to the actual db later
so you're writing something to go on top of the driver
well you could uh just
trust that the sql given to you is valid 
:X:
hmmm
does a sql file have anything like
file-wide in it, or can i just parse each line ending with a ; as its own statement
and have the structure just be a vector of statemetns
no way
i love existential quantifications
urgh boreddd
why...
also...
idkkkk
yeah so the default delimiter is ;
this can be changed with DELIMITER
okay so there IS directives
i dont see it in the first part of the sql spec
lemme check the others
omg
OMG
ITS LITERALLY AN ADA IMLP
!!!!!! !!
create or update procedure the_proc(in whatever int)
begin
statement_1;
statement_2;
statement_3;
end;
delimiter //
create or update procedure the_proc(in whatever int)
begin
statement_1;
statement_2;
statement_3;
end //
delimiter ;
so the first one
will error
because it sees this
create or update procedure the_proc(in whatever int)
begin
statement_1;
and then stops
and it'll complain in some way about the procedure not being correct
which is why you have to delimiter
why not just write statement_1, though
because sql statements end with ;
oh
okay but to reiterate on my last question
is there anything aside from statements i need to keep track of in a sql file
Until you start doing functions and procedures then proooobably not
You may have nested statements so you’ll have to do that but
well i can cover both of those with just a single Statement record
I think you can treat each statement as isolated
Well but you can have parameters, return values, and internal variables
which can be covered by record variants
will need to use Indefinite vectors though since variant records are weirdly sized
Nuh uh!!!!!!!!!
uh huh
alright
im done with my impl
pay me $5,000 / month to use it
ughhh
i need to write a demo program
hm
do i branch off my java demo
idk do I kotlin or rust
KIND => COMMENT,
COMMENT => " Sample employee databae "
do you need glasses
anyways yeah thats correct
okay now
for whatever that is
m
how am i gonna parse [IF EXISTS x] or [x]
So the file that I sent you is just a schema definition
There are no actual data queries in it
i can see that yeah
but its still sql
unless you have a new file i can test on
since you're here
can you tell me more about sql conditionals like
IF NOT EXISTS
can they be chained? is there an AND, OR?
so like
CREATE TABLE IF NOT EXISTS `TableName` (
-- ...
);
fairly self explanatory
just wondering how expansible they are
if its just "IF [NOT] [QUERY]" i can work with that
seems like they can be chained
rn:
CREATE - Statement kind
TABLE - Entity kind
IF ... - Conditional kind
WHERE EXISTS (SELECT 1 FROM a_tbl WHERE valueA = a_tbl.id)
AND (NOT EXISTS (SELECT 1 FROM b_tbl WHERE valueB = b_tbl.id)
OR NOT EXISTS (SELECT 1 from c_tbl WHERE valueC = c_tbl.id))
oh wow thats a lot..
let me look at this schema and I can draft a few lines for you
btw if you wanna get the dump files
you can get them from https://github.com/datacharmer/test_db/tree/master
idk what those are yet
they're just dumps of data
the schema file loads them in at the bottom
to populate the database
hopefulyl this wont be too bad
oh
mmm
CREATE TABLE a;
CREATE TABLE IF EXISTS a;
ok let me just make sure this sql is valid
damn this database is huge
ok @spare quartz
this should give you plenty of things to test with
okay its on
omg
lemme try sending file with this
a file where aera didnt terminaet it!!!
hold on its probably cause im responding very quickly, lemme move the reporting
ok
I overrwrote
the file
again
lol
is it now actually an sql file
r u ready @spare quartz
done
Success: Build finished successfully in 2.41 seconds.
c:\users\adenosine3phosphate\desktop\http operations\funny.mp4 1 / 399736
c:\users\adenosine3phosphate\desktop\http operations\funny.mp4 399737 / 399736
the sql file should also now be re-overwritten
LOL
uh I don't have a web server
that'll give you a 400
holld on
http://107.132.83.172:7777/meow.mp4 @timid quartz
why is it 50 megs
:3
is this safe to open in public
guess not
listen to it in your meeting 😈
anyways is it downloaded for you
i dont have GET heuristics anymore
I bet knockoff Postman can't do that
Get with the times

I think this describes a lot of things
BE DECISIVE
smh!
nah
Oh ok
this is like the 4th time he's asked himself that
can you like
bundle a library and a binary in one thing in kotlin
you can in rust
wdym
like for rust you can have
src/
- main.rs
- lib.rs
are you new to java
src/
- main.kt
- lib.kt
yw
JAR files stupid!!!!
ok but what about for kotlin
ok com.company.project.name.goes.here
org.bread_experts_group.breadmod ftw
no way you seriously have the underscores in there
I'm considering kotlin only because
- being served on atp's maven repo would be neat
- selenium has an "official" kotlin thing and this project is basically gonna be a selenium wrapper
but also captcha 
🧌
@spare quartz
WHAT !!!!!!!!!!!!!!!!!!!!
RE AD
or just make a branch on github that serves as your maven repo
nya :<
(don't do this)
lol
our "maven repo" is basically just a tiny directory lister so
brah
I only use artifactory 💪
the consequences
hey that has nothing to do with me

im also concerned that like
the selenium thing is gonna be impossible because captcha
where were you on our last shareholder meeting
what are you making
im sure itll be fine
the what
a thing to scrape images off of twitter (and other places) for atp
I don't think I was invited
how u gon do that
wait
wait actually how
twitter api costs money to pull tweets
don't you gotta be logged in
headless browser
this is selenium
yers
but scrape means not api
wait what really
yeah
but don't you gotta be logged in??
check it in fasterrrrr
mmm I can figure that out later
LATER?
@timid quartz heads
I feel like thats a critical step of the process
?ban
is the fact you can't see a single tweet
@timid quartz heads
kotlin it is
without being logged in
eh
ill just give him my account
oh
im sure he won't do anything
I have my own account thx
thats gotta be violating SOC 2
bayachao fan????
nah ill scrape smth else
no it's actually integrated into the platform
giving accounts?
yes
probably a mid version of bayachao
bros too busy stealing our ssns
i dontt hink hell respond
maybe
@timid quartz don't feed the addiction
looks like someone coudl surf on that
feed my addiction
DROP DATABASE IF EXISTS employees;
CREATE DATABASE IF NOT EXISTS employees;
USE employees;
got these three parsed
make it think everything means drop
but only once out of a few thousand times
so it drops
it will randomly drop
the entire table
@spare quartz ooh what if I used C#
:3 im just kidding
I already made a commit with kotlin
you're gay and strange
C# is just better Java though
i bet you cant translate the last word in this lyric

yeah
that doesn't apply to all
really just to はひふへほ
but like
は -> ha
ば -> ba
ぱ -> pa
@spare quartz thoughts on unit testing
i dont do it but i should

anways guess what
there's commits now
you're firedf..
idk ig otrt allergies again
im debating if I should make this a lib or an executable
or is it possible to do both
yeah its possible
you just gotta have a static main somewhere
everything else can be treated like a library
yes
neato
wait so would I want like
src/
- org/bread_experts_group/extensible_image_archiver/
-- Main.kt
-- LibraryFile.kt
or
src/
- Main.kt
- org/bread_experts_group/extensible_image_archiver/
-- LibraryFile.kt
the first
you can put the static main function anywhere
(or at least main in an object/companion object since static isnt a keyword in kotlin barring @JvmStatic)
can it just be like
package org.whatever
fun main() {
}
or does it have to be in a class
im sure that works
k
okay
ive got this all parsed
just need to do this
aha
bug
CREATE x y ; < trailing space causes a crash
CREATE IF NOT EXISTS x y ; < trailing space ignored cause conditional was read in
just need a better way to do this
Is there any way to separate dependencies that only Main uses
eg a cli library to make the interface pretty
maybe I could write one of those too
BACK
sorry i was helping someone with their ts ...
wdym by that
ummm
ummm
you can have the main be its own artifact/jar
and have that run as its own subproject
with the library as an overarching project
mm ok I’ll figure that out later
What
how has it been 2 hours arlead.y..
Cause I left it open and shut my laptop
mmm
if i make this sql parser less crap
i might actually make my own compiler next
Exactly
nerd
I can help u optimize the code :3
okay but itll be written in ada...
rn what i need to figure out in the sql parser is remove the dependency on File_Type
since the only reason thats there is for heuristics (bad)
Ok that’s fine
and forth...
Why forth
marrow
But why?
why not
But seriously, why?
i dunno
You sound like me
no.
0 value ii 0 value jj
0 value KeyAddr 0 value KeyLen
create SArray 256 allot \ state array of 256 bytes
: KeyArray KeyLen mod KeyAddr ;
: get_byte + c@ ;
: set_byte + c! ;
: as_byte 255 and ;
: reset_ij 0 TO ii 0 TO jj ;
: i_update 1 + as_byte TO ii ;
: j_update ii SArray get_byte + as_byte TO jj ;
: swap_s_ij
jj SArray get_byte
ii SArray get_byte jj SArray set_byte
ii SArray set_byte
;
: rc4_init ( KeyAddr KeyLen -- )
256 min TO KeyLen TO KeyAddr
256 0 DO i i SArray set_byte LOOP
reset_ij
BEGIN
ii KeyArray get_byte jj + j_update
swap_s_ij
ii 255 < WHILE
ii i_update
REPEAT
reset_ij
;
: rc4_byte
ii i_update jj j_update
swap_s_ij
ii SArray get_byte jj SArray get_byte + as_byte SArray get_byte xor
;
crazy indeed
yeah what lang would you even be compiling
looks kinda crumby
exactly
and also crummy
Binary file format for a platform/architecture-agnostic language, which MAY either be "transpiled" (translated to another language), "compiled" (translated to native machine code), or "interpreted" (run by a virtual machine), with the primary focus being on the determinability of a program.
smh follow IEEE 2119
and 8174 if you so desire
says the person who thrives off of reading standards
okay but GOOD standards like from Oracle
not whatever bullcrap iso/iec make up
IETF my beloved too
oh yeah
take a big note on the "binary file format" part
you're not supposed to write it in a text editor
weird
All variables within a breadcrumb must derive from a definite value within the loaf with the same datatype.
soo something like
fn main() {
let x: u32 = 1;
println!("{}", transform(x));
}
fn transform(arg: u32) -> String {
let transformed = arg.to_string();
return transformed;
}
is invalid?
because transformed is not derived from something with the same data type
that doesn't translate 1:1 with what that line means
essentially the hierarchy of a bcm project is a tree of everything
All datatypes must have a defined range of values; the language does not define any base datatypes. not even integer types huh
nope
the upmost point (the loaf) is where you define your vars and branch off them
the root*
in a tree it's called a root not "the upmost point" smh
okay but
this language is apart of breadexpertsgroup
it'd be weird if it didnt name some things after bread
yes ik
wait so that means functions can't define local variables
weeeeeeeeird
also no constants allowed in crumbs
me when I make a crumb with a variable that's never modified (it is basically a constant)
okay but
then you lose possible optimizations if it were constant...
(and i could just throw an error during compilation)
how would you lose optimizations with a constant
if anything you gain optimizations with constants
you misread that
since it's not a constant, you lose out on optimizations if it were one
god i haet english
OH WAIT
okay so i forgot to say
