#development
1 messages · Page 21 of 1
@wooden ember this right?
the data struct for both parameters is VoiceState
https://discord.js.org/#/docs/discord.js/main/class/VoiceState
yeah looks like it
"The user aborted the request"?
what does this mean again?
sometimes happen on my onjoin welcome command, even though I have a catch on the send func

stupid question, this was working fine on my windows. moved my bot to linux (my host) and it aint loading
any idea why
You need to update your nodejs version on your VPS
ah yeah probably, didnt think of that lol
💀
??= is a fairly recent addition as an operator iirc
on windows its v16.11.1, on linux v14.19.3 lol thanks @wheat mesa
stupid mistake from my side
if (interaction.member.roles.highest.comparePositionTo(member.roles.highest) <= 0) {
}
``` this a thing??? wth
ok so ive descovered that the client issues i was having causing my bot to multiply
it looks like when i reload my commands (not the client just the requires for the command files) somhow thats when it starts
havent had any issues untill now when my cli is getting spammed with memory leak errors
what do you mean? like when you reload your bot starts executing multiple commands at once?
send the error
the memory leak seems to be causing this, can you send the restart command?
2 listeners is a lot already
use a single, catch-all listener and defer to the proper handlers
@lyric mountain how useful would a lockdown command be? and how should it behave?
I wanted to add it as a anti raid feature, it would just take away permission from the everyone role
is that good or na?
if u have an anti-raid u dont need to lockdown
antiraid is supposed to not let raiders in
I mean there is also another reason for such command, just plain spam for example
for that make a spam detection instead
so that's good enough right?
punish individual users
if the mods for whatever reason would wanna lock the chnanel it should be available
discord even added the timeout feature
I do, first offence = warn second = timeout
now THAT's another scenario
don't try to justify a lock command as "antiraid/spam feature"
simply say "to allow mods to lock channel"
I mean it was one of the reasons
ye
now anyway how should I do this?
it'll be ZERO benefit if it's one of the reasons
antispam/raid are by definition self-sufficient
this will be it ig
else u get a swiss cheese feature
is there a way to get channel mention?
is message.mentions.channels a thing?
you guys know I'm waiting for a response right
uy

get channel id
you know I'm doing other stuff aside from answering your questions right?
and do <#id>
want it to work by id name and mention so no
cant u simply do !lock and lock the current channel?
I don't know if that's going to work
want it to work with the current channel and mentions
if there comes the need to lock an entire channel the mods wont have time to wonder whether they mention or get the id
what if the mod wants to lock the channel from a different channel?
okay I still want that to be a feature
then make it
I'm asking if what I done will work tho
never tried getting a channel mention in d.js
Dude has 50 lines of code but 500 lines of comments (about his own written code)

lmfao
so what?
thats just how i code, too
but once the product is finished i remove them
it helps me, honestly
we all do, unless ur an idiot and don't wanna help yourself read the code back in the future
Imagine using application commands to let people select your channel instead of checking the message mentions, possible arguments you have to validate later and the channel cache…

i am trying to do like a keylistener in react, how can i make one..
this is keyeventlistener component
what?
I'm not using interactions nor slash
I'm using message content commands
Not really… I’m looking at my code after years and still know what it is and does
congrats then
I know… that’s why I wrote: "imagine using…"
what's the permission bit name that allows people to do stuff with channels I forgot?
ic
I would take bee using 91248901 comments everytime if it means they wont write inline ifs/returns
bit is called a bit
1 << 4
aka MANAGE_CHANNELS
Docs -> searching -> permissions -> first result
You should at least mention the user (and it’s ID) as channel edit reason when executing the command, so it’s been written down in the audit logs accurately
already added an event so ig I'll log it
now before I start doing the actual lockdown thing how exactly do you edit channel overwrites in v13?
It’s import to add at least the user ID to the edit reason so it’s been logged in the audit logs
One deleting your bot message showing the log and nobody will ever know again who locked the channel
yeah nw
btw?
https://hastebin.com/oxutixukin.js code rating? 
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
update: doesn't work
why exactly does channel return promise pending?
wtf?
Because you didn’t await the fetch
it should get the current channel if I didn't fetch it, besides I edited it
it logs the channel pretty sure, so not sure why it still somehow says that's it's not a text channel
also channel name and ID is undefined
wth
why does channel.type return undefined when the channel property returns the channel??
What is the logged value of channel
also, the only channels that can't be locked are category channels and stage channels since all other channel types are text based
even then, you can prevent connect on stage and voice
okay still I don't see what's wrong with my code
idk how it returns whatever I just showed you
message.mentions.first() should return the mentioned channel
channels.fetch should return the channel by ID
cache.find should return channel by name
if none of that returned it should return the current channel
what am I doing wrong
If you’re still doing the same code, I told you already that when you fetch the channel you’re not awaiting it
Also this code format is truly horrific to read so I can’t be bothered
Also, OR chaining is evaluated in order
The result of the find returns a Collection
Does actually somebody know if the node-mariadb lib internally caches failed queries due to connection outages and send the query once again after the pool connection is back?
I mean I guess not but didn't try it out yet
Would be stupid if it did because you usually don't want to assume what the user wants and just let the user do whatever
yeah...
guess I need to create my own cache when connection issues are present to resent them later
oh
that's why
well anyway
I made it only work with mention and current channel for now
I used to prompt the user what channel they wanted because channels with duplicate names can exist
https://github.com/TsukikoDiscord/Tsukiko/blob/c31ee2e0d45177c7e0a9d9e3d1c0baa0f715a399/sub_modules/utilities.js#L175
Some optimizations can be made to the function like not executing the regexs twice, but you get the idea
Try not to read the other code too closely. You will see spaghetti
alternatively which you should be doing is using slash commands
you can have them piped down the websocket
ah, that's smart
does anyone know how to grab the user from interaction?
I forgot
uhdoes parse emoji util have a guild name property in it?
@wheat mesa Also I figured out that DI issue
Rather someone from the D#+ server did
@sharp geyser should I add an anime info command 
https://anilist.gitbook.io/anilist-apiv2-docs/ can anyone tell me the freaking endpoint for this
WHY DOES APIS NEVER GIVE THEIR FUCKING ENDPOINTS IN THE DOCS
IT'S SO ANNOYING
LIKE HOW TF AM I SUPPOSE TO GUESS IT
how do I actually fetch an anime info from this?
Pretty much standard graphql calls
Do you have experience with GraphQL?
not at all lol
I use that api
Then you should start off with https://graphql.org/learn/
bro can you help me then 😭
nope
graphql isn't as straightforward as a common api
I'm honestly just going to search for a different api
not gonna bother
that's 🧢
just too lazy to learn a whole new api system
I'd be spoonfeeding u the entire time if I helped u with anilist's
If it's a graphql API then you just request what you want
And they give you exactly what you request
fine with me idrc
Yes but that's not okay
They're not familiar with GraphQL at all, so it'd take a while to learn
Spoon-feeding doesn't do you any good
I'll be making the rest of the commmand myself anyway, only thing you'd be doing is help me get the request json data back
I mean as long as you know how to request data it doesn't matter how well you know it no?
it is but...let's say building the graphql request is a bit tricky given the sheer amount of fields they have
that's the issue: they don't know how to request data
nor how to use it in general
Wait we talking about anilist?
well I've never used that before so I don't know what you guys are expecting from me lol
yes

Ani list has a fuck ton of fields
yea :/
That's probably why they went with a graphql implementation over typical rest
The amount of data they'd be sending if it was a rest api
I see
nah, they just did it because it was modern
the way their pager is implemented is a mess
Either way it was a good choice
sometimes I wonder if there's a competition between patreon, paypal and anilist to see who has the worst response structure
what should I start with then?
all I need is to search an anime by name, and get some info back, such as desc, rating etc
Graphql at least cuts on the amount of data being sent as you only get what you request
that going to be a possible?
hypixel reigns supreme
graphql is just a json sql change my mind
You can but with graphql you have to quite literally tell it the data you want back
So if you want it's description you have to tell graphql to return the description
oh fuck no 😭
I mean it's not a bad model
it seems kind annoying to use
It cuts down on data passage
You don't wanna be sending GB (over exaggerating) data
okay misty can u tell me how to fetch an anime by name? that's all I ask, rest I'll figure out myself
ig
Mmm if you give me a sec to look at graphql docs sure
I haven't used graphql in ages
there's a playground for anilist
Oh that's even better

I'm tired asf I probably won't, but ig I can try

I mean u cant expect people to figure out the docs for u all the time
and idk how in the hell users are going to get an ID from a website they don't know exists
I'm 100% sure they mention grabbing anime by name
they also probably need to find it somehow
else I'd not be able to build my wrapper
@ancient nova have you tried reading the guides yet
With a graphql API you definitely should be able to get by any fields really
so use there way
Y'know I've used other people's graphql apis but never made my own
I have 0 clue how to implement graphql

I mean anilist wrapper
nop
no way I'd make my own gql api
I know what you mean
dude wth how the hell does that even work
how do I input my own shit into the query
I'm so confused
I think I'm gonna give up, can't even seem to be able to input a variable lmao..
Dont have a clue about the context but when I use gql I just had to query a string znd u can use templates in a string to pass a variable
I don't know how to fucking do that
replace "name" with whatever the type of name is supposed to be (e.g. String)
huh what
$title: "name" becomes $title: String
GraphQL is something I want to learn but haven’t had a use case for yet so I haven’t bothered
I don't seen an option to give it a name
You renamed name to title in Media (...).
{
"errors": [
{
"message": "Unknown argument "name" on field "Media" of type "Query".",
"status": 400,
"locations": [
{
"line": 2,
"column": 10
}
]
}
],
"data": null
}
(title: 'Title here')
doesn't work
Send the playground
now I see
it's called search, not name.
there's a box at the bottom on the left where you can input stuff
You can't in the playground
It's just regular json
Learn together?
some magic and you have data
Not much time anymore
how would I actually use that in a fetch func?
2nd day at school they’ve already got us busy
okay let me quickly try that
Ok I drive now bye
I think that's going to work
gonna start writing the command
gonna send source once I finish for u guys to rate 
0/10
it's gonna be 10/10 trust
now that I actually get how it works a little I think I can make it work
It’s called experience if you don’t fucking need auto complete etc. doing the job for you

my code is good -_-
We gonna replace the word good with unique
I never use intellisense to autocomplete my code, everything I write I write by myself
That explains a lot tbh
that doesn't make ur code better
Or change his weird style
misty just being mad because he can’t code using notepad

I definitely could and have
I just don't have the brain cells to waste after talking in this channel for so long
lmao
I agree
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
well it doesn't work but it was worth a try
graphql is weird af
they could have made a json-based protocol, instead they made a weird ass language that is similar to json but it isnt
{"data":{"Media":{"title":{"userPreferred":"Black Clover"},"description":"In a world where magic is everything, Asta and Yuno are both found abandoned at a church on the same day. While Yuno is gifted with exceptional magical powers, Asta is the only one in this world without any. At the age of fifteen, both receive grimoires, magic books that amplify their holder’s magic. Asta’s is a rare Grimoire of Anti-Magic that negates and repels his opponent’s spells. Being opposite but good rivals, Yuno and Asta are ready for the hardest of challenges to achieve their common dream: to be the Wizard King. Giving up is never an option!<br>\n<br>\n(Source: Crunchyroll)","isAdult":false,"coverImage":{"large":"https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/bx97940-bPydLjny8PUw.png"},"trailer":{"site":"youtube","id":"vUjAxk1qYzQ"},"tags":[{"name":"Magic"},{"name":"Shounen"},{"name":"Male Protagonist"},{"name":"Super Power"},{"name":"Ensemble Cast"},{"name":"Demons"},{"name":"Revenge"},{"name":"Elf"},{"name":"Bullying"},{"name":"Reincarnation"},{"name":"Cute Boys Doing Cute Things"},{"name":"Heterosexual"},{"name":"Conspiracy"},{"name":"Cult"},{"name":"Swordplay"},{"name":"Kuudere"},{"name":"Lost Civilization"},{"name":"Foreign"},{"name":"Cultivation"},{"name":"Nun"},{"name":"Disability"},{"name":"Suicide"},{"name":"Travel"},{"name":"Advertisement"},{"name":"Tsundere"},{"name":"Time Skip"},{"name":"Adoption"},{"name":"Female Harem"},{"name":"Love Triangle"},{"name":"Espionage"},{"name":"Tomboy"},{"name":"Dungeon"},{"name":"LGBTQ+ Themes"},{"name":"Age Regression"}]}}}
I think I somehow made it work (?)
dafuqbis that tags format jesuschrist
idk I didn't make it 
definitely gonna have to remvoe the br br thing
do I use regex? it seems stupid but I think it may change depending on the source
You need to convert it from html to plain text
how should I even begin writing a way to list the tags
I'll take the first 3 cause there is too many to list
any help?
ah yes, lets make our api return html text inside a json response, because that totally makes sense
you could regex remove html tags
I just list all the tags
is this nodejs
tags.map(x => x.name)
If there're too many I add ...and more X
wouldn't js string.replace(/<\/?[^>]*>/gmi, "") work
idk if gmi is right thats just my usual
ah ok
There's a lib for that btw
how do I show the first three again??
do I use filter for that? or slice?
You ask before searching urself
please 😭
asking here is a last resort for me ngl
The order is usually ctrl + space -> docs -> search for similar questions -> research -> ask online

ctrl + space?
what's that lmao
Aka intellisense
Or "autocomplete"
not using that rn
Basically u type . and let the popup tell u what can be used for that variable
coding inside a simple text editor
bro ItsOkayBae thinks #development is stackoverflow or documentation fr
just tell me how to slice those damn tags
no. look online
🚫 
duckduckgo 😳
Else u become a PM
i sent before lol
simple regex replacement
ok
ok
then use it??
I asked for something else


They want to limit the amount of printed tags
google it then
did you look online first?
did you look at the docs first?
Simple thing, should be the first result on google
did you check stackoverflow first?
no, because that's mainly what this server is for
nope
i know that sounds rude but theres always stuff online to help, we can't spoonfeed ur entire bot 
js how to get part of array
yes but people won't always be there to help you
just ask online
for god's sake
Tf
When doing my graduation project I had to search solutions in c++/latex/php to build up my java algorithm
There was literally no similar questions for what I was doing
sad
Had to take out the big java bible and convert those codes into java
My project: "Map a photo as a texture for 3D modeling usage"
And had to be realtime
On android
damn
Many weeks sleeping late learning how to fuckin sobel
I think my thesis is still out there somewhere
what should I display on the command embed??
Name, description, year, author, studio, tags, episodes, rating, etc
rating and author / studio returns garbage I don't understand
how do I convert it
convert to what?
this is json
not complicated to work with
especially if you're using javascript
how garbage?
author and studio will return their names and roles
u don't, u didn't supply the correct fields in the request query
there is only 3, nodes something else and pagination ifno
there is no way to get the name of the studio
not asking bout json wtf
it doesn't
because u didn't request them
io.to(data.room).emit("on_room_clients", all_users);
socket io this doesn't trigger to everyone, triggers to everyone but the sender. I am not sure how to send it to everyone, I tried doing broadcast too. According to documentation, I think I am correct so there must be something else that is factoring in but I don't know how to debug it. Any tips on how to debug?
there is literally no fucking way to get them
there is only 3 options
what is this anilist api ?
yep
it should never trigger for the sender
since u already have the data at hand
it fucking doesn't
wanna bet?
if I win u gonna finish this entire command using only google and docs
if u win I'll give u the entire code ready to use
I planned to do that anyway but sure
o wut i got some data stored in sever side tho
fine
huh
(source: my own graphql structure)
it works because it's what my anime command uses
it wasn't hidden, u just didn't search deep enough
(proof that it does work -> note the studio name)
studios(isMain: true) {
nodes {
name
}
}
Checkmate. ♟️
I don't think nodes has a name property
nevermind don't answer
nodes is just edges -> node
fetchResult.data.Media.studios.edges.forEach(edge => {
edge.node.name
})
hope something like this gonna work idk
the source tag is annoying tho
list the names idk
too tired to think
always include the source
no, it looks bad
else ur stealing their work
use .map instead
bruh
ever heard of "author attribution"?
you don't really need to credit for that
I would at least like to put it in the title not in the description itself
cause that looks terrible
since its always formatted like (source: ) i think, you can do little js magic to get rid of it if you really want to
I do, I would save what is inside the source and display it as a field name instead
cause having that in the description makes it look bad
¯_(ツ)_/¯
is the server the sender?
yeah
then just use the data after u broadcast
like, pass as a function parameter or whatever
u don't really need to "receive" the event
useEffect(() => {
socket.on("on_room_clients", (data)=>{
changeConnectedUsers(data);
})
i am not sure how the data is gonna go to the client if i don't do this
me too lad, me too
console log it to see its properties i guess?
no
wdym no lol
its not that complicated
I know
probably would've gotten it already if I didn't have to reboot my entire freaking bot every 1 second cause of small syntax mistakes
const embed6 = new MessageEmbed()
.setColor(configuration["starter"].embedcolor)
.setTitle(`⚠️ | We have a winner!`)
.setDescription(`${user} won this giveaway!\n${configuration["starter"].winmessage}`)
.addField(`Prize won:`, `${interaction.options.getString('giveaway-prize')}`)
.setTimestamp()
.setFooter({text: 'Aster | Giveaway System'})
r1.edit({content: `@everyone`, embeds: [embed6]})```hey guys i am basically editing my sent embed, it has a row component added to it
Now i am editing it with r1, but it still has the row component attachted to it
how would i remove that
@stark abyss don't doubt me
my bot literally takes 1 minute to boot
and I just made a mistake that cost me 5 minutes of fixing and rebooting
anyway I fixed it
that doesn't make sense..
am I missing anything?
just disable auto save
wdym auto save
idk where exactly you are coding but nodemon can restart server on save
I have a reload command, however when there is a syntax error and when I try reloading the command isn't stored in cache anymore because it errors
hence I need to reboot my entire bot
just make a test bot, and like not host it just have it locally once the command is working upload it to your original bot
looking up online for solutions to they're questions is too much work too 🤷♂️
Sounds like your bot is bloated asf
Probably all that regex /s
Not /s might genuinely take some time to compile it but idk
lol
iirc mimu takes quite a bit of time to boot
like several minutes
😳
well it loops over every command, every cache, every event and double checks them and then loads them into the client, also binds the commands
it did boot quicker, around 10-20 seconds before, but it's slower now that I switched to digital ocean
It’s not lotta work
It’s a lotta waste of time to wait 5 mins to see your code run…
Compared to instant by nodemon
I don't think nodemon will change how fast your code runs
No you are misunderstanding me
Well, you said nodemon makes the code run instantly so
I am sure I am understanding what you said pretty well
It reboots faster
All nodemon is, just a script that keeps your code running and watches for changes
It isn't ideal to use outside of a development environment
It restarts the server
It isn't meant to be used for a production level application
something like pm2 or forever is what you wanna use when you're ready for production
I mentioned earlier to create a bot hosted locally
already using pm2
I have invites If I try to find out someone has joined in through any link I can't find out because it came from the server's custom link and it may cause errors, is there a solution? Because it's the first time I've encountered this problem
This is completed, but if someone logs in via a custom link, the bot cannot know where it came from
Welp! GG
This change is only on subdomains, like resources.github.com, where GitHub markets products and services to enterprise customers.
...
not on regular github.com it seems
if you don't want to be tracked, shut ur router off and get outside
omg privacy
i love privacy
I have your passwords
omg cookies, my privacy 😭
god, i love people overreacting about the smallest changes that doesnt impact them
I only find it funny that they find personalized advertising a big deal
Companies do it all the time without even explicitly telling you
Github is doing it WHILE telling you
if people wanna be private then might aswell not use a social media and be a caveman
are u guys team discord.py or discord.js
neither
wut do u like to use
py-cord
jda 👌
D#+
Is that a fckin christmas tree sideways?
It is DiscordSharp+
ofc misty is using it 🙄
Mad cause C# > python in every way?
dpp > *
stay mad with your ugly indentation 🙄
Wym
i made first bot discord.py thinking next one ill try js
python is the one that relies on indentation
I honestly don't recommend
I regret ever learning JS
I find JS really limiting
yeah thats why its more beautiful
until I make an extra indentation in your code
and then your program no longer works
its not perfect, but figure its useful to know
you cant access my beautiful python code misty
I personally see no reason to use js
Only benefit I see from it is Angular and React
I dislike using it for anything else at this point tbh
even than I dont use just js
I use a superset
Curly bracket on separate line 🤮
Ur mother 🤮
angular is dead
No its not
the fuck you on about
AngularJS died
Angular didn't
Two different things
@round cove just ask panku
he uses Angular for RoleBots website iirc
AngularJS was the precursor to Angular
helo
What's up
do you need to have perms in a server to fetch roles?
am I gonna get my answer 
I get all my news about angular from ben awad
js community's best critic of everything
try it out and see
No
there answered
whether that answer is correct no idea
you never asked for a correct answer
well it has to be wrong
what did you say
since I can fetch roles by name and ID in a server my has admin in
but I can't do that in a server with no perms

what, you can fetch all roles with 0 perms
continue experimenting
idk that doesn't appear to be the case for me

from member perspective you can read roles
so for the bot as a member it can do that as well
but only for members it sees
iirc
noob
nah
🤔
i don't take him seriously
professional or not, all are just personal takes
Im sorry tim
-Infinity/10 go read some docs
hey tell me when you can use threads in python without diving into c /s 🙃
I don't use python
so
why would I know
wait you don't?
my code is good
thought you said you do
and I will continue to say that
who be daff

I use it occasionally
then it's good
dafft punk
it's you who write your code
sugg my gestion

lmao
it's okay you can share with me
oh, is he the fbi?

Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
no idea which one is the newer snippet
You always like this
if you dont know, how are we supposed to know
Want people to rate code that is irrelevant
it's hosted on toptal so it must be good righy
Cause

can anyone rate my python indentation
2 or 4
0/10
and what is your definitions of "relevant" code then
8
You showed code that could be old
so
waste of time since it's no serious problem
at this point just hire a code auditor / quality assurance advisor
that was the snippets I wrote earlier todsy
or even your ide
bruh
yes, hire your ide
wait why
8 spaces is way too much imo
8 space indents
discord.js also uses it
can u not as a person take a look at another humans code and just say whether it's good or bad
don't understand what ur problem is
I stick with 2
2 is a bit clittered for me so i use 4 but github format did it dirty
I don’t need to look at it to say it’s bad 😉
who uses spaces
4 is usually a tab
I use tabs
I use tabs, 4 width
I use 4 tabs
i keep tabs on you
tell me why you think it's bad then 
lies
Not lies
i dont see you
nope
if you were really here youd know that
I did know it
you didnt, so you asked
inlining multiple statements instead of separating by line
:^)
For starters, you’re still using that horrendous “inline everything” style that you think is efficient for some god forsaken reason
calling Promise.then() without transforming the result value inside callback in async context
Ayo who the fuck still does that
chaotic
real
you got an attic?
I just do
channel.send(
{
embeds:
[
new MessageEmbed()
.setTitle("Balls")
]
}
)
why would I make a space for that, we have ; in js for this reason
what is an attic
storage room under the roof
I do that for a good reason 
channel.send({
embeds: [ new MessageEmbed({ title: "amogus" }) ]
});
Your code is usually better understood separated
channel.send({
embeds: [
{
title: "Balls"
}
]
});
I think that works
I haven't used djs in a while
even the formatter doesn't do that
yeah
Reading
embed.addField(...)
embed.addField(...)
embed.addField(...)
embed.addField(...)
return message.channel.send(...)
Is a lot more understandable than
embed.addField(...); embed.addField(...); embed.addField(...); embed.addField(...); return message.channel.send(...);
you can use methods of a class instance or use object constructs
my code doesn't look like that tho
yes it does
^
it looks like that
so it looks like what I displayed
at this point just do
embed.addFields([...]);
I only inline if ; is short
the ... is just a placeholder
I'm just going to say it
your code "style" is terrible and should be looked down upon
sorry
ouch
If it's really your kink go with it but just know most people can't tolerate it.

Not to mention you have a ton of uses of semicolons that are completely unnecessary
but when thinking about open source you can't just think about what is readable to you
um the compiler will place them there anyway
no it wont what

ah yes there we go, the fun part of code review
Voltrex said otherwise
that's not how a block works lmfao

it parses the code, not place them
only the prettier plugin does that post save
js blocks do not end with semicolons, nor does pretty much any c style language in the last 50 years
Voltrex said smth about the v8 engine trying to place them there as best as possible
Like, I can't interpret this as easily.
I'm talking about this shit
for block splitting
it's better practice to put semicolons on where you think a block should end, so the compiler doesn't do that for u
Then yea
I have to trust waffle here
no?
i don't
that's mostly for return statements
there is no compiler in js anyway
it still works the same way
that's a different story
yes
im fucking dumb
lmao
i meant you don't compile the code to machine code
Isn't nearly every language compiled

basically all langs nowadays are either JIT or AOT compiled
it compiles to ASM, i have seen it with my own eyes

yea
im dum af
There's very few that actually still run on bare interpreters
loom
what else could you be?
ot DOES compile to assemnly
:(
bytecode VM, treewalk interpreter, etc
oh interpreted
my hod i can:t type
loomi dummi
I will compile all of you to asm
hod
no
my hod they can't type
nvm
I'm going to sleep gn
i have my own runtime
your code will haunt you in your nightmares
and I will suspend your github account
bytecode is sorta an AOT compiled thing but not really because AOT compilation usually refers to asm compilation
i will compile your hod
the more you talk the more I hate the sound of lang dev
cry about it
<3
I haven't worked on it in a bit
or is school stopping it
I have planned it out more though
Thats good
I'm having a HIR phase instead of attempting to go straight from AST -> cranelift JIT
i don't even know what it takes to write a language that's fun to write
it takes drugs
esolangs are fun to make because you don't have to care about what other people think of using them
you just be as creative as possible
lsd powered lang
BreakfastLib when?
never
maybe rust FFI but never planning on making an stdlib
tiny breakfast discord
I mean hey, if I add FFI then you can technically do anything C can
tim using C
add a fifi
ill make you in C
please do
misty.c
Ima learn Fortran
Learn asm for a TI-84 calculator






