#⌨coders-cave

1 messages · Page 13 of 1

main brook
#

problem solved

cunning summit
#

do we all

#

live in a minecraft computer?

main brook
#

maybe

cunning summit
#

we are in the minecraft simulation

main brook
#

yes

cunning summit
#

ok i'm going to go now

mental gyro
#

woooh

timid field
#

I am

#

Each coding language have different limits and performance

wet girder
#

I'm not even gonna say anything

#

This stupid take doesn't need any more attention

valid charm
#

Erm why am I able to get in this server?

sturdy yarrow
#

Me too

cinder surge
#

It's for people who program

#

Not the developers

next lotus
#

w h a t

orchid frigate
#

I wonder if the people talking in this channel are bots sometimes because there is no way people actually idolize a trainwreck like lua

#

It has to be some sort of an advertising campaign

next lotus
silk oriole
barren shale
orchid frigate
#

how do you get to this point

#

nah you can get girls with C

#

you just gotta have the right strategy

cunning summit
orchid frigate
#

your language's indexes start at 1

#

you dont get to have an opinion

cunning summit
#

do you count from 0-10?

#

or from 1-10?

#

which is more logical

orchid frigate
#

0-10

cunning summit
#

it is not

orchid frigate
#

obviously

cunning summit
#

is this your holy book?

orchid frigate
wet girder
#

Lua doesn't have enough of ecosystem to support standalone apps for anything, and being targeted for embedding makes it de facto a 'secondary language'.

It's not popular as a scripting language because there are three others that already have extensive software collections and communities, and each of them has some unique-ish point (e.g. Python and SciPy, Ruby and Ruby on Rails, Perl and the most comprehensive archive of modules ever).

It's not popular for 'standalone' or systems stuff because it was never really meant for that. Here you have C, C++, C#, Java etc. that are well established, can interface directly with the OS, have libraries and whatnot etc. etc.

It's not meant for browsers, as there is really only JavaScript there. Maybe lua-to-js compiler? But then there is a lot of X-to-js 'compilers' out there already.

Lua was meant for embedding - and it's actually being used in this context! You can find it in games, in various tools (e.g. nmap), even in kernels. But embedded lang means it's an asset to something written in something else - it's not the primary language.

orchid frigate
#

I already know the basics dont need it

#

my holy book is crates.io or whatever it was called

wet girder
cunning summit
cunning summit
wet girder
#

Then you're just a dumb mf, can't say more ngl

orchid frigate
orchid frigate
#

dont worry I know a little more

cunning summit
#

dakata how did you play hide and seek

#

did you count for 61 seconds when they asked for 60?

orchid frigate
#

I didnt

#

when others played hide and seek I was commiting war crimes in small african countries

cunning summit
#

honestly

#

that does sound like a rust enjoyer

orchid frigate
#

ikr

wet girder
#

@cunning summit rn ngl

orchid frigate
#

we are just quirky like that 🥹

cunning summit
#

it even has the website link

wet girder
#

that's the point

cunning summit
#

python is the only non lua language that is bearable

#

because it basically just looks like lua

#

except it has no ends

orchid frigate
#

wait bro is lua compiled

wet girder
#

no

orchid frigate
#

ah so it really is shit

wet girder
#

it's a scripting language used for embedded applications

orchid frigate
#

if it were I would atleast give it some credit for that

cunning summit
#

insane how much brainwashing the python and c supremacists pull off

orchid frigate
#

from lua

cunning summit
#

rust

#

how are tables in rust?

#

probably shit

#

and split into dictionaries and all of that odd shit

orchid frigate
#

we dont have that

cunning summit
#

in lua

#

wtf do you mean

orchid frigate
#

atleast I dont think

cunning summit
#

do you just have variables?

orchid frigate
#

we have structures

#

if thats what you mean

cunning summit
#

this truly is the most primitive language wtf

orchid frigate
#

they are advanced af

cunning summit
#

can you even make snake in rust?

orchid frigate
#

and build a game from a graphics api

cunning summit
#

whatever you say

orchid frigate
#

wtf do you mean can you make snake

#

if you dont believe check my github

#

I have some old kernels there

#

outdated af but they work

cunning summit
#

insane how this is apparently the best language and you can make an OS AND revolutionise the world

#

yet nobody gives a shit about it

orchid frigate
cunning summit
#

use google translate if you don't understand

orchid frigate
#

for noone?

#

from english to english

#

ah yes

#

truly helpful advice

cunning summit
#

no to your native language

orchid frigate
#

ok lemme rephrase

#

define noone in the current context

cunning summit
#

here's a fun fact

#

online dictionaries exist!

#

google has one!

orchid frigate
#

just fucking define it goddamn

#

at this point i dont think you know what it means

cunning summit
#

i'm done here

#

i'm not going to argue with someone who doesn't know what "noone" or "nobody" means

orchid frigate
#

you missed my entire point

distant wraith
#

Rage quit

orchid frigate
#

average lua user ngl

cunning summit
orchid frigate
#

would have been great if you had the brain power to find it

next lotus
#

poop shit

cunning summit
#

yo bill gates

orchid frigate
#

I dont gotta make things simple for you

cunning summit
#

lua or rust?

next lotus
orchid frigate
#

I knew it

cunning summit
#

@next lotus do i know you?

orchid frigate
#

I fucking knew it

next lotus
orchid frigate
#

honestly being a c# man is better that lua man

orchid frigate
#

bill gates made a cool os not computer

next lotus
#

no, bill gate made the computer back during the industrial revolution back when america was in war with germany

cunning summit
#

😭

cunning summit
#

this guy has a mutual friend who was deleted

orchid frigate
cunning summit
#

how do you do that in rust?

#

can you?

orchid frigate
next lotus
#

hmmmm........a rust user, a mutual friend who plays geometry "robtop" dash

cunning summit
#

i don't play geometry dash

#

i don't know who that mutual is

orchid frigate
#
fn main(){
  println!("hello world!");
}
cunning summit
#

the mutual is friends with some people i know though

cunning summit
orchid frigate
cunning summit
#
print("Hello World!")
#

wtf is print1n!

orchid frigate
#

if you cant decipher that you arent supposed to be in this channel

distant wraith
#

Imagine

next lotus
cunning summit
#
Table = {
  ["John"] = {
  ["Age"] = 306,
  ["ActualName"] = "Rust_User",
  {,
} ```
#

how you do this in

#

your cringe language?

orchid frigate
#

oh boy if that seems difficult for you I cant wait to show you how string manipulation and iterators look like

orchid frigate
cunning summit
#

looking horrid does not = good

cunning summit
#

your mother

next lotus
#

wait no theres no garbage collector in rust

cunning summit
#

rust is the garbage, the user is the collector

orchid frigate
#

its safe enough to not need one

distant wraith
#

There's only ownership, and have been proven to be better than garbage collectors

cunning summit
#

Rust users b like: "Look at this! such a beautiful piece of code. I love rust."

distant wraith
#

Like future of Lua "programmers"

distant wraith
next lotus
#

mmmm lua, the roblox language, like java, the minecraft language

cunning summit
cunning summit
#

lua, the roblox language

#

java, the minecraft language

next lotus
#

mmmmmmm c++, the increment c with 1

cunning summit
#

Ok so

#

lua = roblox
Java = Minecraft

#

python = all ai
Rust = ...?

#

Rust wasn't even made in rust

#

so i don't even know anymore

orchid frigate
cunning summit
#

linux 💀

next lotus
orchid frigate
#

bro is in a 1v3 and is trying to clutch so bad

rose pawn
distant wraith
#

What is it this time

next lotus
#

calm down here comes a random skid post

cunning summit
rose pawn
#

Active users ^

orchid frigate
cunning summit
rose pawn
#

Do you think the app is dying

#

Or is this normal

distant wraith
#

They can't learn anymore jokes or their little smooth brain will explode

cunning summit
#

actually lua users are hella funny

next lotus
rose pawn
#

From a bot api

#

I run the api multiple times for different dates

cunning summit
#

why?

rose pawn
#

To get the data

cunning summit
#

what data

rose pawn
#

The data from a social media app

#

Folioscope animation network

cunning summit
#

what data

knotty root
#

Py is bad

cunning summit
#

python?

rose pawn
#

Users who posted at least once in that month

#

Yes with python

cunning summit
#

why though

rose pawn
#

Because im not a programmer

cunning summit
#

learn to program

rose pawn
#

Python works for me

cunning summit
#

lua is better but you can also use python as it looks and feels similar to lua

next lotus
rose pawn
#

Screw yall coding nerds pyrhon rules

#

Doesnt look ugly with stupid }{}{{{ everywhere

orchid frigate
cunning summit
#

he just declared war on all of us

cunning summit
#

python doesn't even have ends

orchid frigate
#

why does everyone here know one language and think its the best

#

try more langauges ffs

distant wraith
#

Do you even know what Python is know for

orchid frigate
#

knowing one isnt enough

rose pawn
#

Ai

cunning summit
#

live footage of a python user looking for the line's end:

rose pawn
#

True

orchid frigate
#

ngl

distant wraith
orchid frigate
#

its so simple

#

it has like

#

3 things

#

that you need to know

#

its basics are easier than any other language's

cunning summit
#

lua is probably better

distant wraith
#

About printf then probably

rose pawn
#

Isnt there like a way to modify python so it shows you line ends

orchid frigate
cunning summit
#

that much crying is going to end us all

orchid frigate
#

ok thats funny af

#

made me lol

rose pawn
#

No

cunning summit
#

dude what even is this

orchid frigate
#

(laugh out loud)

cunning summit
#

"printf"

#

the creator of C couldn't even spell print right

orchid frigate
cunning summit
#

"void", what's void?

#

string manipulation usually always looks like shit

rose pawn
#

Now show me an image of lua

distant wraith
#

Average Lua

#

Void means that the function will not return results

cunning summit
orchid frigate
orchid frigate
cunning summit
#

where is the "local" in all of ya'lls languages

#

hella confusing

orchid frigate
#

it looks so fucking bad

cunning summit
#

how

distant wraith
#

Not even return type hint

orchid frigate
#

it makes me peel my eyes out

distant wraith
#

Boo

rose pawn
#

The f is 0 and 1

orchid frigate
#

btw I have made my own programming languages

rose pawn
#

And why is it being retuned

#

R

orchid frigate
#

and I made sure they are nothing like lua

cunning summit
#

you made your own?

#

pretty cringe

orchid frigate
#

yes

cunning summit
#

(very cool)

orchid frigate
#

stfu

rose pawn
#

Bruh imagine finding anything coding related cool

cunning summit
rose pawn
#

Pretty nerdy

cunning summit
orchid frigate
#

I have done everything that programming has to offer other than networking

cunning summit
#

networking is cringe

orchid frigate
#

W claim

rose pawn
#

What do you even do with your codes if not get data from an animation network app

cunning summit
#

i don't know

rose pawn
#

See

orchid frigate
#

im an os dev

#

graphics api user

#

language maker

rose pawn
#

If you actually have a reason to code python is superior

cunning summit
#

generate words using a phonetic table and phonotactics

orchid frigate
#

I am truly a godlike being amongst you

rose pawn
#

Easy and simple

#

No need for unnecessary nerd bractets }|{{|~☆

cunning summit
#

LUA DOESN'T HAVE NERD BRACKETS

orchid frigate
cunning summit
#

lua is better than python

#

ez

orchid frigate
#

as a keyword

cunning summit
#

also what is the point of those python things

#

s = (1,1,1)

#

if you can't change it

#

wtf is the point

distant wraith
#

That's the point

cunning summit
#

the point is bad

distant wraith
#

It's tuple, they're immutable

orchid frigate
cunning summit
#

just use a table that you don't change

orchid frigate
#

thats not how that works in rust

#

why would it be immutable

cunning summit
#

damn rust has a good feature!??!

#

insane

distant wraith
#

Hmm?

#

I thought we were talking about Python

cunning summit
#

honestly it's not a good feature

#

it's the lack of a bad feature

orchid frigate
#

yes but why immutable in python

#

whats the point of having it then

cunning summit
distant wraith
#

Ask the one who implemented them, I don't know

rose pawn
#

The only bad thing about python is that its hard to find ends

distant wraith
#

It could be so that they don't to allocate memory for the new elements like lists do

distant wraith
#

It's just the end of the indentation

#

And like the easiest language in existence

cunning summit
#

i just found live footage of a lua user entering the python HQ with 1 indexes and a tupleless language

#

ngl

#

lua users are an oppressed minority within programming

orchid frigate
cunning summit
#

💀

orchid frigate
#

nah thats too much i might get yelled at

cunning summit
#

most sane Rust user:

orchid frigate
#

the sanest of programmers

#

we are living chads

#

unline c# users who are unliving chads

next lotus
cunning summit
#

false

#

the peak of java is minecraft

#

and even that is being eroded

orchid frigate
#

I wish I could show you rust iterators

#

but vscode dont work so well on windows

#

and Im too lazy to switch to linux

cunning summit
#

is that not what it was made for

orchid frigate
#

what

cunning summit
#

windows

orchid frigate
#

I gotta set everything up

#

download cargo

#

and rust

#

and thats too much work

cunning summit
#

how many VMs do you have?

orchid frigate
#

none]\

#

I have dual boot

cunning summit
#

wtf is that

orchid frigate
#

hold on ima switch to linux

orchid frigate
cunning summit
#

why not just

#

use a

#

vm

orchid frigate
#

I hate vms

cunning summit
#

bruh

orchid frigate
#

I only use emulators when I gotta test my os

cunning summit
#

what about vpns

orchid frigate
#

I mean they are cool

cunning summit
#

do you have nordvpn code jeff???

orchid frigate
#

nah I dont use one

cunning summit
#

lmao

#

insane how nordvpn had a breach and told noone for 6 months

orchid frigate
#

Hold on restarting PC rn

cunning summit
#

and is still respected because of its budget

#

zamn

orchid frigate
#

Bouta show you how rust is done

cunning summit
#

cringe

orchid frigate
#

🧞

#

Ok I think my Linux is broken

#

I haven't used it in a while

#

Oh no it's good

#

@cunning summit not string manipulation

#

but even better

#

iterator manipulation inside iterator manipulation

#

enjoy

#

why tf did it

#

do that

#

hold up

#

ima just pastebin it

#

there

cunning summit
#

pastebin is shite

#

i have to be afk

tawny raft
#

whats a good way to check if there are more than 1 space in a row and delete them, so there's only 1 in a string
||python||

cinder surge
#

I hate strings, sorry can't help

#

You could say I'm a bit of a stringist

#

Can't stand them

#

Nor lists

#

So im also a listist

orchid frigate
#

so you basically hate one of the most fundemental things in programming

#

and lists which I understand

#

vectors, structures and arrays are better

#

which reminds me I dont see vectors being talked about alot which is suprising

steel fox
#

hmm how will I ever source real talk in my code

#

im too stringist

rose pawn
#

This "juicy" mod in fr*nch channel

#

What a pain in the ass

#

Deletes my english messages and then deletes the french messages after i translate what i said to french

#

Then gives me a warn when i ask them why they deleted the french messages too

#

Im telling yall too many unnecessary mods in this server

#

Deadasses dont have shit to do

quartz pumice
#

Im surprised more dont hate strings

high schooner
#

Strings and lists aren’t bad they can let you do a lot of things when paired with some for loops and Elif statements

But this is just personal experience I haven’t coded terribly much and stopped as of late

high schooner
tawny raft
#

Yeeee, already found a way, yet thanks

high schooner
#

I did python so it wasn’t very bad
Could be worse on other languages

orchid frigate
#

idk anything about lists

#

but strings

#

they are literally one of the most fundemental things

#

you cannot hate them

#

its like hating subtraction in math

quartz pumice
#

I allways get that wrong

#

subtraction

high schooner
#

Change the ; to the Greek ; question mark in your friends javawbsmirk
Unlimited syntax errors

quartz pumice
#

5-1 but its supposed ot be 1-5

orchid frigate
#

well I guess you can hate subtraction

#

I didnt think about that

#

well its like

#

what do you hate about strings

#

specifically

#

exactly there is nothing

#

other than string manipulation

quartz pumice
#

bro string manipulation is like ltierally

#

💀

orchid frigate
#

it can be fun

#

but its painful to figure out

#

in rust simply deleting spaces takes 9 lines of difficult iterator work

quartz pumice
#

Yeah

#

In C deleting the spaces would require alot of pre-setup

orchid frigate
#

well wouldnt it be a bit easier

#

you just iterate through the string like a pointer and remove the spaces

#

and put it in a buffer

quartz pumice
#

buffers dont expand easily

orchid frigate
#

doesnt the std have something like a buffer that doesnt have predefined size

#

or is that c++

quartz pumice
#

thats c++ and its probably kinda slow too

orchid frigate
#

wait no im stupid I meant pointer

#

you put it in a pointer

#

not buffer

quartz pumice
#

pointers point to buffers its the only way to use them

orchid frigate
#

yes but like you use it as a raw pointer

#

im not good at terminology

#

but like

quartz pumice
#

do u mean like char str[50] or char *str = (char *) malloc(50)

orchid frigate
#

kinda

#

I was gonna put a raw address in there because I forgot I can use malloc

#

but basically yes

quartz pumice
#

Im confused so im just gonna comment ```c
char *remspace(char *v,int size) {
char *ret = (char *) malloc(1); // raw pointer?
uint32_t psx=1; // ret size
for (int in=0;in<=size;in++) {
if (v[in] != ' ') {
psx++;
ret = (char *) realloc(ret,psx); // slow
ret[in]=v[in];
}
}
return ret;
}

#

the memory management 😭

orchid frigate
#

this but

#

simplified

#

hold on

barren shale
quartz pumice
barren shale
#

yeah

#

one of them is on the stack the other is on the heap

#

but dont you have to do sizeof(char) in malloc

#

or is it 1 byte anyway

quartz pumice
#

yeah

#

char is 1 byte

#

sizeof() wont slow it down tho cuz its gives it at compiletime

#

wait shit multiplying would

#

I dont wanna think hard anymore

knotty root
quartz pumice
#

yo lets make a list of defines

#

like funny defines

#
#define core main
#define kawaii ()
#define harder {
#define softer }
#define fr ;
#define dave(x) (printf("%i",x))
#define num int
#define bussin ++
#define fortnight while(1)
#define cap break

num core kawaii harder
  num a fr
  a bussin fr
  a bussin fr
  fortnight harder
    dave(a) fr
    cap fr
  softer
softer```
barren shale
quartz pumice
barren shale
#

sizeof is compile time and multiplying it by constant keeps it compile time

quartz pumice
#

oh I thought the compiler would like do sizeof() * num to 1 * num

timid field
#

I just became friends with Bing thanks to its AI tool

#

Now I get some suggestions while coding

quartz pumice
#

theres also a writing thing

#

on the top right

#

it will generate alot of sentences dont know if its openai though

#

you cn even ask it to use html markdown or whatever

timid field
#

It's most likely open ai but

#

With Microsoft 's touch

#

Its pretty useful imo especially It can be used easily in edge browser

quartz pumice
#

I just asked it and it made like 12 paragraphs for me

quartz pumice
timid field
#

I asked like 50+ coding question

#

I think

#

It kinda saved some of my time

barren shale
jolly oxide
knotty root
jolly oxide
#

idk i just love it

#

its so sweet

knotty root
jolly oxide
#

atleast you can say hello world

#

thats something

#

we all been there

regal ginkgo
main brook
#

my first program was actually

#

hello, vadim

distant wraith
#

Can you ask Bing's AI about programming

timid field
#

It can generate scripts for stuff it knows and explains them, stuff it doesnot know usually brings websites that discussed it, and sometimes just tells u what stuff you need to use from some documentations

#

It sometimes brought up for me the roblox devforum where they discussed some errors I had asked Bing about

#

It's pretty smart AI tho it can remember recent questions for some time

#

It does search through the web unlike Chatgpt so it gives more advantage, you could ask questions about answers it gave you and stuff

#

And it can also inspect the page you are in, I used it on youtube and roblox it could suggest stuff from it

#

Bing AI works perfectly for me if I use it built in within edge browser so bit quick for me

#

Apparently you can ask it 15 times per conversation I don't really understand what this feature, basically after the 15 times finishes, you press the new topic button and then you can ask back and redo the 15 time process

#

It still makes few errors in the generating code part, it sometimes mixes local script code with server sided script stuff, and sometimes uses deprecated stuff but you can tell it to use another way rather the deprecated way by telling that the certain method is deprecated

#

At least for me in roblox stuff

timid field
main brook
#

not me tryna use an old lib

#

and tryna make a workaround

#

meanwhile a newer lib exist

#

and switched

#

man i could've saved like 4 hours of banging my head

#

and actually make some progress

distant wraith
main brook
#

yes

#

i was banging the table

#

WHY THE FRICK WOULD A LIBRARY NOT PROVIDE AN ACTUAL DOCUMENTATION HOW TO INITIALIZE EVERYTHING

#

i scraped answers from so

#

and most of them are from 5 years ago

#

imagine errors on every corners

#

"im sorry but something that we require does not exist on your pc and we don't wanna tell you"

#

even the documentation was shif

barren shale
#

not a problem in C#

#

since the nuget package manager allows you to easily search for libraries and sort by new

next lotus
#

c# library lifetime is king, barely any breaking changes at all

#

nodejs libraries be like entire codebase changes every minor revisions

barren shale
#

fr

haughty stratus
#

im not rlly a coder thats looking forward to learn a coding lang., my question just is, is python a good coding lang

lapis flint
# haughty stratus im not rlly a coder thats looking forward to learn a coding lang., my question j...

It is depends on what you need: If you planning to work with python and python-related stuff, yes, it is good coding lang for you, if you planning to learn and use other languages later, better to start with something other, not with python
Python has very specific syntax, so if you want to learn other languages later, better to start with javascript for example, it have syntax similar to java, c#, c++
I suggest javascript because it is much easier to learn than java, c# or c++

haughty stratus
wet girder
#

With C# you can make games and shit which is cool lol

orchid frigate
#

rust string manipulation and iterators are something else bro

#

its not even finished

barren shale
#

and why the fuck do you have to collect after each function

#

I mean sure it can be useful but it shouldnt be the default

#

ew

orchid frigate
barren shale
#

oh yeah i remember that

#

ew

orchid frigate
#

.to_string changes from &str to String

orchid frigate
#

Usually an iteratable one

#

or a different type from the stupid Map exclusive ones

cunning summit
orchid frigate
#

this is why you dont get to have an opinion

cunning summit
#

say that message but in rust

#

i'll wait however many years it'll take you to do that

orchid frigate
#

println!("this is why you dont get to have an opinion");

cunning summit
#

how do you concatenate in rust?

#

print("your ".."mum")

orchid frigate
#

you can format

#

it has format in its basics meaning you dont need an std

#

in the form of macros

cunning summit
#

you don't need a what

orchid frigate
#

println!("your {}", "mum");

orchid frigate
#

you are the worst most inexpirienced programmer

#

in here

#

no cap

cunning summit
#

i just don't know what it has to do with programming or why it's relevant to bring up

orchid frigate
#

its the standard fucking library

cunning summit
#

for what

orchid frigate
#

look it up on google

#

rust std

cunning summit
#

no wtf

#

you can google that

orchid frigate
#

or any programming language std

#

bro

#

Im not even kidding pleasre

#

educate yourself on the most simple concept of programming

cunning summit
#

"pleasure"?

#

you're making this worse for yourself

#

by every message

#

wtf are you on

orchid frigate
#

nah bro I cant argue with you

#

you have no experience

#

in this shit

#

ask anyone here

#

what std is

cunning summit
#

dude you said it yourself

orchid frigate
#

they will tell you in a hardbeat

cunning summit
#

you had to create a programming language on your own

#

because i assume you were bad at the others

#

so you can't judge me

orchid frigate
#

I dont even know how to continue

#

you are just so

cunning summit
#

i'm going back to learning python

#

this channel is impacting my braincells

tribal heart
#

Does anyone know intermediate level of luau scripting

#

just asking

cunning summit
#

luau bad though

quartz pumice
#

luau isnt bad

#

It was just made by roblox for roblox

cunning summit
orchid frigate
#

its lua

#

so its automatically bad

quartz pumice
cunning summit
#

(need 3 hands)

orchid frigate
#

you dont know what std is

#

you are as good of a programmer as a skid

quartz pumice
#

Meanwhile making io interfaces and database servers

cunning summit
#

being a linux user is essentially proclaiming yourself to be a skid

#

"i use linux because i'm a tough guy programmer!!"

orchid frigate
#

I use it because I need the terminal

#

and most programming related programs are easier to use on linux

#

because they were made for linux

quartz pumice
#

linux is based off unix which unix was literally created for running backstage deployments

raven steppe
#

!rank

#

0 percent

#

👍

cunning summit
limpid kindle
untold gazelle
#

!rank

worn socket
#

Bruh

#

Can I rank myself

hardy field
#

Stop doing the rank command here

jolly field
distant wraith
#

Fools

barren shale
#
internal class Interpreter
{
    private readonly byte[] _buffer;
    private int _index;

    public Interpreter()
    {
        _buffer = new byte[30000];
        _index = 0;
    }

    public void InterpretCode(string code)
    {
        var cursor = 0;

        while (cursor < code.Length)
        {
            cursor = InterpretCharacter(code, cursor);
        }
    }

    private int InterpretCharacter(string code, int cursor)
    {
        var character = code[cursor];

        switch (character)
        {
            case '>':
                IncrementIndex();
                break;
            case '<':
                DecrementIndex();
                break;
            case '+':
                Increment();
                break;
            case '-':
                Decrement();
                break;
            case '.':
                Print();
                break;
            case '[':
                return OpenLoop(code, cursor);
            case ']':
                return CloseLoop(code, cursor);
            default:
                throw new NotImplementedException();
        }

        return cursor + 1;
    }
#

    private void IncrementIndex()
    {
        _index++;
    }

    private void DecrementIndex()
    {
        _index--;
    }

    private void Increment()
    {
        _buffer[_index]++;
    }

    private void Decrement()
    {
        _buffer[_index]--;
    }

    private void Print()
    {
        var character = (char)_buffer[_index];

        Console.Write(character);
    }

    private int OpenLoop(string code, int cursor)
    {
        if (_buffer[_index] != 0)
        {
            return cursor + 1;
        }

        var brackets = 1;
        var searchIndex = cursor + 1;

        while(brackets > 0)
        {
            if (code[searchIndex] == '[')
            {
                brackets++;
            }
            else if (code[searchIndex] == ']')
            {
                brackets--;
            }

            searchIndex++;
        }

        return searchIndex;
    }

    private int CloseLoop(string code, int cursor)
    {
        if (_buffer[_index] == 0)
        {
            return cursor + 1;
        }

        var brackets = 1;
        var searchIndex = cursor - 1;

        while (brackets > 0)
        {
            if (code[searchIndex] == '[')
            {
                brackets--;
            }
            else if (code[searchIndex] == ']')
            {
                brackets++;
            }

            searchIndex--;
        }

        return searchIndex + 2;
    }
}
#

brain fucked

#

idk why i just did this

#

oh and dont feed this invalid code

#

or it will get brain fucked

rose pawn
#

Looks cool

#

;

cunning summit
quartz pumice
#

cuh

quartz pumice
cunning summit
#

that's why i asked

#

if i wanted to read it

#

i would have

robust cliff
#

!rank

split parrotBOT
barren shale
cunning summit
#

wassup normal programmers and non lua users

split parrotBOT
#
\> why admins keep bots enabled in this channel?

As an AI language model, I don't have access to the specifics of the channel you are referring to. However, in general, admins may keep bots enabled in a channel for various reasons. Bots can help with moderation, automate repetitive tasks, provide useful information, and enhance the overall user experience. Additionally, bots can help reduce the workload of the admins and ensure that the channel runs smoothly. However, it is important to ensure that bots are not causing any harm or inconvenience to the users and are functioning as intended.

lapis flint
#

Oh, so it works here

half warrenBOT
#

A commemorative tower was built in Scotland for a cat named Towser, who caught nearly 30,000 mice in her lifetime.

lapis flint
unkempt shell
tawdry storm
#

!rank

split parrotBOT
lapis flint
rocky elm
#

!rank

split parrotBOT
quartz pumice
#

Two wbsuffer

lapis flint
#

!rank

split parrotBOT
lapis flint
#

Oh what i did

#

@fair quarry bots flooding the cave

cunning summit
#

the only way of fixing this is by making everyone learn lua

cunning summit
buoyant rapids
cunning summit
#

google when lua was created

#

and you'll get your answer

buoyant rapids
#

just for its old doesnt make it good

lofty phoenix
#

lua is lua

cunning summit
#

but it's still

#

the best

cunning summit
#

it's the best

buoyant rapids
#

lua sucks

lofty phoenix
#

no 🦧

#

I’ve been using it for 3ish years or something and I can confidently say, it’s just ‘lua’

buoyant rapids
#

one more rank and im green :p

lofty phoenix
#

I tried looking for an alternative to lua and tried out Python and C# and yeah, Lua isn’t that great lol

buoyant rapids
#

ye it just

#

sucks lol

buoyant rapids
#

the one that makes them go bang when they die

lofty phoenix
#

Nope, I just joined this server like 3 days ago or something and didn’t even realize how big this game’s community is lol

#

I’m not literate on modding and all that

buoyant rapids
#

yearssss ago

#

i should've gotten it then

#

it was like 5 quid

cunning summit
buoyant rapids
cunning summit
buoyant rapids
#

i wasnt 3d printed lol

cunning summit
#

So, let me get this straight. Your mother is RELATED to you and you ADMIT IT????

buoyant rapids
#

I DONT UNDERSTAND

#

EVERYONES MOTHER IS RELATED TO EM

#

unless ur adopted

cunning summit
#

i bet your dad is also related to you 🙄

buoyant rapids
cunning summit
buoyant rapids
cunning summit
#

your mother

rose pawn
#

Go tı sleep

cunning summit
#

No

rose pawn
#

ΦΥΧΚΙΝΓ ΗΡΛΛ

cunning summit
#

i don't speak ancient turkic

rose pawn
#

Demek öyle he

cunning summit
#

i don't speak spanish

#

or whatever that is

rose pawn
#

The first one is greek

#

The second one is turkish 💀

cunning summit
#

how was i supposed to know

buoyant rapids
cunning summit
buoyant rapids
cunning summit
rose pawn
cunning summit
#

stop speaking turkish

#

actually i think you can speak turkish here

#

it doesn't say

rose pawn
#

Zaaa ağla zırla

cunning summit
#

what?

rose pawn
#

SÖYLENİR TÜRKÜMÜZ

#

ÇAĞLARDAN ÇAĞLARA

buoyant rapids
#

senin yunan pisliğin

cunning summit
rose pawn
#

Yunanca konuşmuyom aga konuşuyomuş gibi yapıyom

buoyant rapids
cunning summit
#

חבר'ה אנחנו צריכים לדבר אנגלית

buoyant rapids
rose pawn
#

Εγώ δεν μιλο ελληνικά

buoyant rapids
cunning summit
#

it's not yiddish

buoyant rapids
#

same thing basically

cunning summit
#

no

#

yiddish is germanic

#

hebrew is afro-asiatic

buoyant rapids
#

העלא
שלום

#

they are very similar

cunning summit
#

turkish is also very similar to arabic

buoyant rapids
#

wouldnt say so

cunning summit
#

Şalom
Shalum

buoyant rapids
#

persian is tho

cunning summit
#

practically no difference

buoyant rapids
cunning summit
#

maltese uses latin

#

therefore

buoyant rapids
#

persian and arabic look similar depends tho

cunning summit
#

matlese and turkish are the same

buoyant rapids
#

idk what ur telling me

#

ur just kinda

#

going off on a random

#

talk about malta

cunning summit
#

malta speaks an arabic language

buoyant rapids
#

cool

cunning summit
#

and turkish is the same as arabic

#

therefore turkish and maltese are the same

buoyant rapids
#

but the turkish alphabet doesnt look like the arabic one

#

so idk what u mean

cunning summit
#

not the arabic alphabet

#

the maltese alphabet

buoyant rapids
#

cool but im on about arabic

cunning summit
#

maltese: jisimni jeff
Turkish: benim adım jeff

#

maltese is an arabic language

buoyant rapids
#

ا ب ج د ه و ز ح ط ي ك ل م ن ص ع ف ض ق ر س ت ث خ ذ ظ غ ش ء

cunning summit
#

if they still considered themselves muslims, they would call their language "arabic"

#

this is all to say

#

Lua is the best language

buoyant rapids
#

lua sucks

cunning summit
#

you are mother

#

you're mother*

buoyant rapids
cunning summit
#

what

buoyant rapids
#

use ur brain

cunning summit
#

where?

buoyant rapids
#

in skull

cunning summit
#

they are bad

#

because lua is better

proud garden
#

I GOT PERMS BACK

#

oops wrong channel

#

nvm its just perms for this channel

safe prawn
#

ayo can anyone explain to me how pull requests work on github

rose pawn
#

Can someone explain to me how url headers work

wet girder
# safe prawn ayo can anyone explain to me how pull requests work on github

In this video, we cover how to use pull requests to merge code back into the main branch and also how to enforce the use of pull requests and manual reviews before merge.

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Full tutorial + entire series: https://eliteionic.com/tutorials/requiring-pull-req...

▶ Play video
wet girder
# rose pawn Can someone explain to me how url headers work

I expect you're talking about query parameters and not http headers
https://www.youtube.com/watch?v=Z_o7iilNdLQ

What is are Query strings and Parameters? Little bits of information encoded directly to the URL. It is often used by Marketing Tools such as Google Analytics, AdWords, Facebook and more. In this video we are going to learn how to encode our own information into a Query String and make it useful to us marketers

OUTLINE:
00:00 - Intro
0:18 - Wha...

▶ Play video
rose pawn
#

Actually i am talking about authorisation HTTP header

#

Should have clarified

wet girder
#

ooooh you're in for a treat

#

I love those

rose pawn
#

Yep

wet girder
#

i learned them by just looking at the authorisation parameter thing in postman

rose pawn
#

Now im one of the two people who can access the bot api of a website

#

A dev explained it but i wanted to see what this channel can tell

wet girder
#

what authorisation is the api using

rose pawn
#

Whats that?

#

They just said http header

wet girder
#

so just api key

rose pawn
#

Yes

wet girder
#

one api at work uses username password combo for some reason

rose pawn
wet girder
#

You just make the Auth header look like this

Authorization: Basic APIKEYHERE
#

depends on what language you're using how you would do that

rose pawn
#

soup =BeautifulSoup(requests.get(url,headers={ "Authorization" : "thetoken" }).content, "html.parser")

#

This in python?

wet girder
#

I think so yeah

rose pawn
#

Aight ima figure it out

wet girder
#

It might want the "Basic" before the token but not sure

cunning summit
#

pointing out the stupidity of the comparison

buoyant arch
#

Just use scratch bruh

upbeat pine
#

Does anyone know if this game was made in unity or unreal. Or was it coded from scratch using C#, C++, etc.

radiant agate
#

Uhm is brackets good or no??

wicked spindle
#

Don’t share pirating websites here please

wicked walrus
#

Пон

plush gate
#

Oh

lapis flint
#

I am sure they already know about all the sites, only thing you did is promoted that website here, i am suggesting you just do not mention it at all

wet girder
#

The developers are aware of these sites and do as much as they can to battle against them but it's an impossible fight to win. Best a single person can do is not go to those sites and not mentioning any sites by name

light canyon
wild magnet
#

@lapis flint Sorry for the ping and the lay question, which program do you use to create mods?

I promise not to bother you again, just the names would be of great help...

lapis flint
wild magnet
#

🥶

#

Thanks for the answer

dry spire
#

Is IntelliJ a good place to learn JavaScript?

barren shale
#

Wat

#

I dont think you can do javascript in intellij

cunning summit
#

i would learn lua

#

is it possible to make a website with lua?

tidal osprey
#

Anyone here has some experience with c++ complier? I got a problem it "g++ is not recognized as an internal or external command and operable program or batch file" i already has the mingw bin added in path multiples times already in response to this error but it wont works

#

Ok i try restarting my pc.It kinda worked no more g++ not recognized but another problem emerged.Now it "g++ error: missing filename after '-o'

quartz pumice
#

Java and JavaScript are two entirely different things

dry spire
#

Oh

quartz pumice
#

The former is for TV remotes and the latter was created and is maintained explicitly for frontend websites

#

Bro

#

Literally every language

#

Can do both of those things

dry spire
#

Just ignore that question then🫠

#

I’ve been learning JavaScript on CodeHS but I’m kind of at a stalemate since it isn’t really teaching me that much anymore, so I’m trying to find a place I could learn and code JavaScript

quartz pumice
#

look up vs code

#

Not vs studio, vs code

#

vs code download is a bit harder to find

lapis flint
quartz pumice
#

it isnt is it 💀

lapis flint
#

First link in google -> two download buttons

quartz pumice
#

it took me like 5 minutes to find it 😭

lapis flint
tidal osprey
upbeat pine
#

Does Anyone here know anything about sprites

#

I cant for the life of me figure out how to make my 2d guy look like he is in battlestance (arms raised)

knotty root
#

J

bright rampart
formal wraith
#

Someone please help me code, I need someone to merge a ton of files into a single APK

#

And I need someone to code .ini files for extra races

#

For Android

#

Make a modded android version with modding capabilities, but no premium and can't buy premium Because it's not the original, I don't want money, I want mods for me to play on Android, so I need help.

split wasp
#

𝙷𝚎𝚕𝚕𝚘 𝚙𝚎𝚘𝚙𝚕𝚎

#

𝙶𝚘𝚘𝚍𝚋𝚢𝚎 𝚙𝚎𝚘𝚙𝚕𝚎

stable arch
lapis flint
#

Why wrong?

#

They have same word in names

#

Thats all

#

Java is very near to c#, but not js

lapis flint
cunning summit
#

i mostly use lua, it has no problems like this

lapis flint
#

It is not problems

#

it is funny useless or hellish code

rose pawn
#

Fricking french mods

knotty root
#

man defines the whole alphabet wbsalut

knotty root
cunning summit
#

what is wrong with

#
x = math.floor( math.pi )
knotty root
cunning summit
#

wassuo skids and lua coders

cunning summit
#

"console.log"

#

damn

#

just use normal syntax pls

knotty root
#

demo debugger

#

too lazy

cunning summit
#

what language is that

#

it looks clapped

#

almost like javascript

knotty root
#

ye

#

it does the same no matter the language x)

cunning summit
#

what

knotty root
#

it does what it do man

cunning summit
#

lua: print(math.floor(math.pi))

#

readable

#

code

knotty root
#

i know bit lua i was making rp servers in fivem for gta 5 ^^

#

plus hosting

cunning summit
#

lmao

#

are those done in lua?

knotty root
#

mods usually yes

cunning summit
#

wtf

#

why?

knotty root
#

idk

#

its funny

#

first time lua seeing was like huh what it do??

cunning summit
#

lua is good

knotty root
#

c++ superior

#

fast af boiii

cunning summit
#

c++ is shit

knotty root
#

You did not say that

cunning summit
#

are you blind

#

because i just did

knotty root
#

what?

cunning summit
#

i said it

knotty root
#

what?

cunning summit
#

looking at c++ code is like looking at plus sized models

#

you know

#

it hurts your eyes, but it can be changed

cunning summit
knotty root
#

xDD

#

so true

#

those are some codes from other modders who create mods for fivem rp gta5

#

also you make good money with hosting such servers ^^

upbeat pine
#

Should I include TXT versions of my code on GitHub. I honestly have no clue how to do github. i include a zipped file of the .Java and all that stuff. But i also include a text file in the main branch in case anyone just wants to copy and paste the code into their IDE.

quartz pumice
quartz pumice
# cunning summit ```lua x = math.floor( math.pi ) ```

In JavaScript, you can use the Math object to access mathematical functions such as floor and pi. The console.log() method logs the output to the console. The code you provided should log the value of the floor of pi to the console.

The reason why you are getting NaN (Not a Number) is because you are trying to access a variable that has not been defined in your code. You need to define math before using it in your code.

  • bingai
barren shale
#

guys this guy is either a troll or just dumb

#

either way you better ignore him to not waste time in unwinnable arguments 👍

knotty root
#

who?

distant wraith
rose pawn
#

Python is the best

lapis flint
lapis flint
knotty root
#

?

lapis flint
#

not you

#

math.floor( math.pi ) will return 3 always, its useless operation

fringe leaf
#

Html 💯maximsob

noble ginkgo
#

nah bro

#

css best language

hardy field
#

I mean... It does look good

#

But I'd say that's the end of the praise I can give it

orchid frigate
#

css looks good?

#

thats a new sentence you just made

#

noone has said that in the history of man

azure carbon
#

Can anyone recommend a pixel art program for me to create concepts?

rose pawn
#

9/10 pixel artists recommend pixel art . com !

orchid frigate
#

only in rust can it take 200 lines to create a single variable

#

I love this language so much

noble ginkgo
green spade
#

I have a question

#

How hard would it be to code bridges into worldbox?

#

Wha

#

Oh my I had no idea