#⌨coders-cave
1 messages · Page 6 of 1
3 minutes to compile an api
needs some optimization when compiling
and also it depends where you compile it
you cant do that
this is not java
i think
cuz they talk about C# a lot so i think its C#
imagine after waiting for 3 minutes you realise that you typed x += 4; instead of x += 3
💀
At that point im just assuming it works
Lua is underrated
Finally, the fastest way to generate a list of random shit
from random import sample as A;from string import ascii_letters as B,digits as C;print([*(''.join(A(B+C,k=62))for D in range(10))])
stay that way
No
wtf do you even code with lua?
roblox mods
Do u know roblox
yep thats the only use for that language
also cheat engine
its only for embedding
nothing else
It's good
When I get on my pc it's time for jupe rant
Why hate lua
Titled: "Why you shouldn't support Roblox"
imagine being so bad sending the actual usage of that language counts as insult
How ez is to write a table in c or python or java
so a 2d array?
Yea
Yea
string[][] peen = new string[][] {
{"minecraft", "420"}
};
``` like that?
wait no its
wait no its
local peen = {"minecraft", "420"}
This is lua
Why tf the curly brackets
Why not
thats not even a 2d array thats just an array
those are for the prestigious dictionaries
in c# its
I asked array only
var h = new[] { "peni", "minbecraft" };
In c to create one dimensional array of strings you need to create 2 dimensional char array because c doesn't have strings, instead it has char arrays
also in python its just csharp cbt = ["big", "balls"]
wdym so much
Some people are lazy
Have you ever looked at a function or a loop in lua
they're atrocious
int add(int[] vals) => vals.Sum();
``` in csharp and thats an entire array lol
it's so much better in even like C
int add(int x, int y) {
return x + y;
}
printf("%d", add(1, 2));
wtf table is not even an array its a dict then
lua doesn't have arrays???
Replace pairs with ipairs
for(int i in array) { }
``` to iterate array
Lua also has coroutines
or foreach
pls no
But i don't how to code coroutines
Guys you are forgetting about the superior to all languages
are you really gonna compete against the creator of async/await?
Rust
we need replit bot here
what's that?
Roblox lua has WaitforChild(child)
bot to run codes
I have been hearing about children in higher level programming languages and
Why are we having children
This seems like a huge responsibility
Waht
https://top.gg/bot/730885117656039466
hmm maybe this could be cool?
//-- Sample Task
async Task<int> Minecraft() {
await Task.Delay(1 * 1000); // Wait 1 second (1000 millisecond).
return 420;
}
//-- Sample Task
async void Main() {
Console.WriteLine(await Minecraft());
}
i bet your coroutines cant
even return
lol
My C senses see so much wrong with this
I think coroutines return values
Nah people go too far for readability nowadays
We need assembly back on the scene
int second = 1000 i guess
also we can do this
public bool isSleep() => true;
// the same as
public bool isSleep() {
return true;
}``` if youre too lazy
So 15 * second
also we have Linq, its for lazy people too very useful
Anyways bye we had a good debate
someone already lost before it started lol
But I just came
jesus
Nah nah nah stay here
My beautiful name is typing
Check out my courses: https://nickchapsas.com
Become a Patreon and get source code access: https://www.patreon.com/nickchapsas
Hello everybody I'm Nick and in this video I will explain why you should be sealing all your C# classes by default. We will take a look at the functional aspect of the sealing feature and then take a look at the perform...
@wet girder @next lotus
kewl video
little unexpected optimization
Imagine that your code is so bad
It broke the fucking compiler
I dont have to imagine because I just broke cargo 💀 💀 💀
rust diff
sealed const readonly all of those are useless
just
declare public or private
then dont set :)
rust loves to error
You cant keep getting away with it
vartype varname = varvalue
💀
Thanks 
get away with what
step 1 download c#
no
bad
dont put data type
use auto thats how chads do it
auto big = 69;
auto gaming = "minecraft pocket edition free donwload no virus apk unlimited diaomonds";
auto roblo = new char[] {'x'};
thats broad question
do you mean a dll, a header file or something else
i have better idea
download visual studio and do c# instead
We all gotta start somewhere
clearly didnt watch the video
auto are
Awful
Dont use them
Ever
In c++
Thats not how it works

There are two ways to use files in c++
- Header files
- Linking libraries with externs aka ffi
You will rarely need to use ffi because header files are simpler
But anyway I came here for a different reason
Everyone that knows ai stuff here
This is a question to you
Yall know geometry dash right
How would one go about creating an ai or bot which completes the level on its own
yes
Adaf moment
Anyway I'm actually studying to make my own Minecraft mod
not possible haydot
:((( I hate ai it sucks it cant do shit
it'll get confused on the amount of blocks a level these days had
plus
you can do some client side change on the level and it would work in game and in server
not relevant but you can put more than 30k objects
I could bot levels but that takes like
Hours if the level is hard
Damn ai not advanced enough
Smh
How will ai terrorise the world if it can't beat fingerdash on its own
Anyway @main brook I was gonna ask you
So
I fucked up my partition sizes again with arch
I gave way too little space to home and dont have space for shit
I can resize both root and home it I unmount them right
give a good reason why
isnt it redundant to int[] gaming = new int[] {12, 69};
too late i already made one lol i monopolize gd mods
haha funny
whats funny
In c++
just create a single partition for root and home
Especially with bits
if you keep fuckin up
Uints
ide will tell it anyways
Wait wait guys
I cant keep up with the both of you
One at a time
Ok so I think im gpt
But like if I resize
I wont lose my shit right because
That means I will just reinstall
No
You always gotta know
What int you are using
Is it unsigned
What bits
Otherwise it will just default to int32 I think
of course its possible
Wait
its a game about precision
@next lotus you said you did it
ai's favorite type of games
yes i did
right
well....
NO WAY
not really ai
I need details
wait look
Can it beat levels like ballistic wistfully
Download XBot Reborn (2020.4):
http://raboninco.com/1cOkh
Old (2020.4): http://raboninco.com/1V2Ts
(more links soon)
[Music]
Porter Robinson - Language: https://www.youtube.com/watch?v=EF7oP2thG1M
Ctr + R will restart/start macro recording.
F10 will stop and save the macro.
Ctrl + S will stop but not save the macro.
macro sharing server now ...
this is the
very old
Ah you mean this
basically you just have to hover the mouse over the game
ok do you need an actual ai
there is one
No no no I mean like it actually beats it without you having to record the macro
there is one
I have used zbot and another tool
but its more of a bruteforce ai it just does random clicks and records the farthest position
Pizzabot is an AI that learns to play Geometry Dash.
Source Code: https://github.com/Pizzaroot/Pizzabot-v4
here it is
Thats gonna take a while
just tell openai to make a deep q learning ai that can play this game
they made an ai that can play dota 2
so this should be a breeze
i actually had an idea to make a bruteforce bot that does it at millions per try per second
Goddamnit if I just knew Ai
you need a really good machine to train it fast enough
you just have to calculate the physics and brutefroce a macro
bruteforce takes too much time
But bruteforcing will take forever
AI will be able to solve levels it never saw
like for ex. when a player jump does it have a spike along the way? etc. etc.
if it has enough experience
I have been thinking if it can see the hitboxes
there is a big problem for that
what if a level is full of long fake routes that makes the player die at the end
bruteforce is faster
yeah
but that's not typical
and you just need a ltsm ai
so it can remember
that the route is fake
ofc this will take years to train
unless ur elon musk
how is it faster then bruteforcing then lol
yeah ngl its way more intersting
check this guy
he is
one of my biggest competitor
april fools video
but like this is what gd ai will look like
just some rules and some pathing
bruteforcing on the way
900 threads doing this
oh
like 900 players on the same level doing this
Wait how will you do bruteforcing
Will it click like
Every millisecond
Or smt
Every frame ig
i think every frame
ai can also work
i mean its good at predicting
and maybe if you feed it the level's objects and their positions
it can uh
haydot
can't arch just install on filesystem like
ext4 /
fat32 /boot/efi
then you'll have very flexible /home and /
uh yes?
I think so
But both my /home and /mnt are ext4
you can combine /home with /
most linux allows that
so instead of
sda1 /
sda2 /home
just
sda1 /
So /home is inside of /
Personally I dont see that being a problem
i personally do
because arch is unstable
and constant system changes
that's why some people separate / and /home
nah its still the same
I do
Im installing manjaro on a usb rn to do the partitioning
Manjaro because
Every other distro is huge
I need gparted
Idk if cfdisk will do the job otherwise
Well graphics is always better
Idk gparted feels safer plus I can always just switch it I need to
I think I should do this on a vm first
But im waaay too lazy to set all this up
This would take hours
I dont trust qemu for this shit
fair opinion
I have seen how unstable it is
Just the installation will take a millennia
Plus even if I fuck up my current installation
I installed it like 3 days ago
I have to like install alot of dependencies and maybe even graphics and stuff
Im willing to risk it
o
Also I have never known that kde plasma is so cool
Idc I like it so I'm keeping it
My computer has only frozen from it like
7 times
Thats a wr for arch

Arch is not fun
But its more fun than the finished diatros
Because you get extra side quests every time something gets fucked up
you really prefer unstable, hard to fix, always screwed, need more maintenance
I tried mint
Ran it for a few months
But I got a major case of being bored of it
Nothing ever happened
I was able to code in peace
it is made for consumer grade
Thats so fucking boring
It felt like a usable os
And fuck that I need side quests
Yes
I like fixing things
Because
Ngl the code I do is boring af
Im bored out of my mind from oss
Its just data structures
Memory management
Registers
Nothing I can actually see
fix me
Are you an os?
yes
ReiOS
Now with graphics support
Bro why is the only tool that arch has easy access to multiwriter for isos
Burning this is taking forever
Everything in arch is breaking even yay is corrupted af
My cargo broke
Pacman js acting weird
I hate arch now
Character development
BRO MANJARO IS SICK WHAT
How have I never known about this
Alright Im switching idc about arch anymore its lame
average haydot
That's how easy it is to change my mind
Is bill gatsw dud still here
When it's like that by default
You know the distro is good
Idc im deleting the current arch partitions rn
Manjaro is the only os im using from now on
Until I dont find a distro with better shell
By default
me
Nah I'm not switching
I have to rebuild the cross gcc compiler
And thats a process I dont wanna have to do again in my lifetime
eh
I already have efi and swap
Actually I have two swaps
For some reason
The entire point of resizing was to not do that
bytes
what
I had 170 gb to root
i thought you're gonna use / for /home
And 25 to home
Idk how to do that effectively
lose all your user data
What
No
Dont make me rebuild the cross compiler
I still have flashbacks
110gb to root
Rest to home
then just resize
and remember to efs2chk
or something
and to reread your partition
I have no idea what that is
Jass > any other coding language
there's a command i forgot
Wait by resizing
ef2check /dev/sdaX
you just need to check disk file
and see if everything works
if not
you can always revert
The Fun module is disabled in this server.
@orchid frigate what's output of df -h
@tawny hedge Don't spam and speak english in here.
@tawny hedge english only please
#817762451293470730 can be used to gain access to other channels.
Cowspace
Why do I have a cow farm in my pc smh
I was wondering why am getting frame drops
Do you want lsblk
I dont wanna have to reboot
I think im gonna do this later because I was supposed to go somewhere
2 hours ago
sure
With oversymplyfying things
@main brook the colorful keyboard was too good
And the time was very limited
So I just installed manjaro
took you long enough to respond
And erased the shit out arch
Now that I have done that
I can safely go school shopping for everything 2 days before school starts
nice
i just got to school today
and got back home after 2 hours
turns out im not ready for school yet, still sick
Stay home
Enjoy linux
Also im already bored of manjaro
Thinking of changing rn
@next lotus this look real?https://youtu.be/Jq9iYzG-GHU
that’s incredible
that you can teach an ai to beat something with so many different outcomes
Like blues can either be good or bad
not sure
looks
fake
wait no
this
this is real
I've been designing an inventory system in unity with scritableobjects and I sure damn hope my codebase won't be messy. I've used 6 hours a day for 3 days so far just for fucking planning
I made nice architecture documentation and all
Because it was required as it's a school project
Sometimes if i code alot and dont do organizing early on i feel its too late to make proper organizing
This is for me but if i do organize at the beginning it becomes easy
This situation is probably different for some people
Is it possible to change character sprites on worldbox? (I'm on mobile btw)
Not that I know of
modding on phone is next to impossible
It's not fully impossible
but you'll have my respect if you manage to do it
Anything is possible if you try hard enough
Why would mods not work on mobile anyway
Oh right
Root
And stupid file permissions
I hate how locked phones are
It feels like im using only 10% of my phone's functionality
?
call the fire department, we just nuked the building
bro
colonel is pronounced kernel
stupid noob
so colognel is pronounced like "colonel" (because cologne is "colone")
colonel is pronounced "kernel"
colognel is pronounced "colonel" (because cologne is "colone")
but what is pronounced like "colognel"
if no word is pronounced like "colognel" then the following statement is true:
colognel = (nothing)
but kernel = colonel = colognel
so kernel doesnt actually have a pronunciation
therefore
@barren shale @orchid frigate you're both stupid noob
colognel isnt a word
"colognel is pronounced "colonel" (because cologne is "colone")"
this is the most
stupid
statement
ive
ever seen
does beard sound like bear with a d?
dont think so
noob
male bear have d
that is one of the many "special cases" English makes in the resulting effect of English being a mixture of many different and diverse in language groups and culture of peoples that uses it 🤓
You left coding cave and touch some grass therefore kick off lmao
i touch grass everyday
why :(
bro
imagine being stupid
and asking in a channel
that's compeletly unrelated
to the question
imagine
lmao
Hamza learned the work stupid recently
He is growing so fast
I remember just yesterday he was your moming everyone
🥲
bro said work instead of word
such stupid
if the word is blocked you shouldn't really send an image of it 
i like c#, c# doesnt like me
i pronounce C# as C hashtag
now C# isnt sharp and @next lotus wont pop
MARRY C#
In worldbox code is there a class for weapons
Ok
Hello, I came here a few months ago, but now I am a newcomer.
fards
God fucking damnit debian tricked me
I thought it was good
But it sucks
Installing graphics drivers is pain
And the os by itself is mid at best
At this point I have tried so many distros I dont even know what to download next
Hey, fellow coders
I am a newbie when it comes to coding
But I know a little web development
I have a problem though, and I want to know if y'all could help me
How do you save data to your website so that it stays there even if you reload or edit the website?
a database
Thx
@errant trail @barren shale @orchid frigate my username would be pronounced kernel kernel, one being a piece of corn and colonel being a military rank
It's pronounced C plus plus plus plus
Its pronounced C Sharp
Guys i think its pronounced see sharp
always has been
Ні
use cookies :)
bascially
u store everything on the user's end
So if they make a purchase on my website, I can use cookies?
Hey guys wanna hear a joke that you wont get?
A man says "scan the room"
The other man responds "why would a dürüm do that"
no
?
sea shanty
That was a question
But i wasn't talking about it when i said that wasnt a question 😎😎😎😎😎😎
As you can see, its not replying to you
the reply was to the question
I was just saying a lyric from a song that i dont remember the name of
And you canr prove me wrong
k bye
Bye ham
Wait if the purchase info is saved on the user's pc
Cant you easily bypass purchases
no
you'd store a token
which needs to validated
its not just true or false
Yes
But
There is a token check
You have done reverse engineering you know what im talking about
You could do it safe but it's dumb for whole fleet of other reasons
does anyone know if objects in python are pointers to objects or just containers
Wait so cookies would work without a risk of the user bypassing?
The reason I want to use cookies is because I'm not rich enough to have a lot of people log on at once and overload my poor server
Nope
what are you using at the backend
this.reserve = this.supply * 0.2;
this.supply = this.production - this.load;
this.load *= 0;
if (states[this.s].money < 100000 && this.supply > 0) {
this.supply /= 2;
states[this.s].money += this.supply;
}
let x = (Math.round(Math.random() * 2) + this.x + 48) % 49;
let y = (Math.round(Math.random() * 2) + this.y + 48) % 49;
if ((map[x][y].s != this.s || map[x][y].supply < 1 || map[x][y].supply < map[this.source[0]][this.source[1]].supply) && map[this.source[0]][this.source[1]].s == this.s) {
x = this.source[0];
y = this.source[1];
}
this.supply += map[x][y].supply * 0.7;
this.load += this.unit / 10000;
if (this.supply > 50) this.supply = 50;
this.supply -= this.unit / 10000 - this.reserve;
if (this.supply < 0.5) this.unit *= 0.8;
if (this.supply < 0) this.load -= this.supply;
map[x][y].load += this.load * 0.95;
this.source = [x, y];
if(this.supply < 0) this.supply = 0;
```me when the
oh yeah this code doesnt work
😭
please dont tell me this is inside an update function
use comments please I beg
nah
comments are trash
never use comments
you dont understand
because there's no context
also some bad variable naming
It really got the average roblox dev right 💀
depends the type
if it's an array or an instance, they're pointers
if it's any other primitive type, it's immutable and is cloned
that's c++
containers are objects that hold more than one object
there are no pointers in python
i mean there are pointers
but they are only used for referencing
you cant use them like you do in c++
My.bad, should have explained that yeah
Theyre 'pointers', modifying them modifies the original variable
Reference vs value based parameters
Why you should never set a list as a default value for a parameter of a function in python
And instead should do if xx is None
yeah but python does not have value types
everything is a reference type
makes it simpler
I mean like if I have an object inside an object saved as smth like
this.object
then if I change a value of that then will it change the object in the object array
That I took it from
That’s what I mean by pointer
👍
cell machine
Very nice
👍
no array
its just object reference
for str, int and its subtypes
they're not referenced
so yes immutable
and technically everything is an object
I literally cannot code without pointers
Pointers are the best thing in programming
All hail pointers
how about rust's borrow functionality?
The only thing I hate about the language
Other than macros
Or marco syntax
And inline assembly but that's easily replaceable
Hey yall
What extensions should I install in vs code when using HTML, CSS, and JavaScript?
you just need prettifier
for formating
but you dont really need anything else
So I don't need to install live server?
if you want to you can
i dont use it personally
console.log("cheese")
Hoi4 command "its time for operation Moscow" and that's instantly train all divisions
what is
rust borrowing?
does it automatically free all resources inside a code block when the code block exits?
I dont know what it does because I dont give a shit
Similar to any garbage collection service
But its annoying af sometimes
Its like if I want to write unsafe code
Let me write unsafe code
I know what im doing
alr then its similar to c# gc it does the same
Actually no
It doesn't use a garbage collector
Google says it uses complex type systems
Rust is weird because it calls itself a systems language and it is pretty low level
Yet it does everything like a high level language
And prioritizes safety
wait a second i have
question
c++
like if you have
{
int i = 0;
}
int x = 0;
``` does `i` automatically get freed
once run exits the code block i is in?
or do you have to manually dispose it
I have never done any mm in c/c++ in my life
If we dont count actually creating a memory manager
But dont you only have to free if you actually used up memory
So if you used a pointer
Or malloced some space
Borrow solves the issue of pointers, no?
And pointers are still accessible within unsafe blocks
Just need to be sure what you're doing
When did pointers have an issue
If beginner programmers cant solve what a memory address is that doesn't mean we should just erase them leaving them as a secondary feature
At this point I just make every file unsafe
Its annoying to have to put an unsafe block for every tiny use of pointers
Because you shouldnt have to use pointers
Borrows are a perfect replacement and are far safer
Pointers are far from necessary
Since the fact the software industry literally pisses on pointers being an issue lol
Theyre dangerous if youre not careful enough with your code
rust is very strict that's why it does not need garbage collection
it will not let you write code that requires garbage collection
Then how the hell am I supposed to make a kernel
Or pass a structure so that another function can modify it
Or work with graphics
Or make anything low level
I swear the programming industry pisses on low level stuff as much as possible
Thats why I dont wanna be a part of it and be a hobbyist
mutable borrow
look at bevy and piston2d
graphics is easy
even with opengl
i used rust to run shaders
for a simulation
it's super easy to do low level
I know
You could say im a
Veteran at rust
I know its ins and outs
Have used everything from lazy statics to vulkano
But still
They shouldn't have made the language so safe and strict
i created an abomination
any beginner backend devs?, no expierience or anything, im just looking for a backend dev for a short project
Im the best here at backend
With my 3 minutes of reading articles and getting bored
how about a backend developer with 7 years experience in C# and 4 years experience in ASP.NET ?
umm well, sure but im just learning frontend
well if i can do the backend in a couple of hours ill do it
otherwise i dont really have time
what is
trying to code
i do the backend
architecture is just a fancy word for design
Theory wise
you can follow this map

