#⌨coders-cave
1 messages · Page 5 of 1
Noone cares if you go off topic in this chat
Other than the mods that never visit it
If anyone has problems with it tell them to speak to me
Gcc can compile c and c++
I have never used g++
Because c++ is literally just c with extra steps
Nah not true
You can test that by trying to make a variable structure
In c you gotta define it as a variable
But in c++ im pretty sure you get an error
Actually I tested that very long ago ao idk
Wdym coding software
This can mean anything
Compilers IDEs text editors
i said C in cpp
not cpp in C
that's what we did in uni
we used Cpp files but only wrote C
Yes
Me too
Structures in c are a bit different than those in c++
I have started doing cpps oop but
I gotta say rust in just better
I think its the true one and only cpp successor
discrimination
but if we talk about lua or java its obviously going offtopic since theyre so bad you cant categorize them as programming language
i dont know but the way i did it in one of my projects was just random circles and squares on a board and then the edges of those circles and squares where scrambled
very ghetto but it worked
noise
and then smooth
probably
that's for the normal world
other type ofworlds
will have different algorithm which dont look that much complicated
bruh whats ghetto? yall inventimg some new words and evolving it like changing gonna to finna like this: 'ion finna eat those nuts cuh im alergic to em' like bruh it doesnt even sound right, especially the ion short for I don't which already exists in science stuff
Ghetto isn’t slang
it’s like a slum
Slum
this is very ontopic
Frr
It was
not enough experience :)))
g0ld#5743 was banned | underage
#🤖bot-commands smh
Just use gcc to compile and ld to link
Using vs is kinda complicated because you don't have direct access to the flags
I recreated the collatz conjecture in python
i ran a number through and got this beast of a json file
456 problems done
A
are the names of the human civs and towns slavic?
your mum bylat
Get and set: No idea they seem like they dont have a purpose to me
Constructors: functions that gets called when you make a new instance of a class
Generics: read like 20 lines of docs about them they are kinda complicated
when you do new Foo()
you're making a new instance of the class Foo
its an object that uses Foo as a template
and you can save it inside a variable
Foo instance = new Foo();
of what
this is a code example of this
its not like its gonna be any different in other situations
works with any class
Foo is an imaginary class used for examples
why gay that's gay
Mf doesn't know that tabs exist
One of the key things in programming is tabs
Without tabs
Gtfo of this channel for your own good
You will be eliminated
kirill will singlehandedly end this channel with their bad syntax
rust lifetimes are
the worst thing about the language
I hate them
Like I dont get why rust tries to be so safe
isnt it a cpp successor
it should be more carefree
so uhh after 1 month I convinced my dad to buy some shit for me
now instead of a 200 dollar pc it’s gonna be 550 dollars I think
new specs are
ddr4 motherboard with wifi
idk the cost
i5-10600k
169 dollars
comes with integrated graphics which is awesome
and then ddr4 16 gigs of ram
plan on upgrading to 32 gigs once I get a job but first I need a new monitor
all in all pretty good although I’m debating on whether or not I should use my gtx 660 or stick with integrated graphics
what y’all think
Same, but only the first 3 and then I start violently beating the shit out of my laptop 
660 100%
!rank
thanks, will I have to remove extra software before putting in a 2060 once I get the money for one or no?
it's not
igpu is probably for your display only
better not strain the actual cpu
use a gpu for other processing
something like
2-4GB ram gpu
depends on your use case tbh
my dad is thinking of buying the rtx 2060 for me
if he does then all I gotta do is hustle my uncles out of some money and I’m good
yeah
12 gb
is a lot
in most cases
just get a 8 gb 3060
they are really cheap rn
due to market over supply

what
why the sudden attack
i appreciate your opinion
but outright saying that a certain thing is bad because someone is using it or having it, is a shitty asshole dumb shit thing to do for a smart people like you
That's rude
No that's immature behavior. You don't just attack peoples interests and favorites.
That's highly disrespectful
Just because you don't like it doesn't mean they don't have to like it
even if its a fact
don't be an asshole about it
would you like it if i say your life sucks and that you should just get unborn
no right
@pale skiff you dont know my server nickname
But you just got yourself hunted by the #⌨coders-cave mafia
Fuck that
I appreciated your opinion however
I daunt care
Coders mafia is nerd
Based
I think junglebook is a really good memeber of bts
YIU THINK YOU ARE BETTER THAN ME
Behind the scenes
Im not just
Like the rest of you
Im stronger
Im smarter
Im better
I am better
you're also more cringer
I will beat the shit out of you 🚶♂️
You cant say that if you like kpop
i would like to say
Because you jealous
I would rather sign uo to meet army men rather than plastic bts figurines
just because you can't speak 한국 don't be shit about it
do you buy plastic jpop figurine
because i don't get that idea when i think of kpop
they're technically the same
except language
Atleast i wont starve myself just to look like an idol to a 14 year old kid
Thats just dumb
Goofy ahh
you do know they're not starving
they're literally buff asf
more specifically
lean
Ye sure
Lean?
You can see how skinny and pathetic they look
sorry but they're not a mirror
Guys guys you are missing the obvious
everyone opinion sucks
Im the superior life form
there
Its obvious
won't argue
either way, jpop also has 14 years old viewer
no idea what makes you think otherwise
I like to beat the shit out of you
Hamza you're getting unblocked
Other kpop bands are shit
i found worse entity than you
Hamza was based
Kpop kinda cringe
Plastic figurines
Oh really? Kpop stan beating someone up 🤮
@pale skiff i have the perfect comeback
Ur name stupd🚶♂️ 🚶♂️ 🚶♂️
@main brook Use this comeback
Average kpop iq
I dont even know eho they are
nah
Plastic barbie dolls
tard people don't deserve a comeback
Made of plastic😭
Thankgod they havent entered my country yet
The land is still pure

Coffee
i have arabica
Am I a kpop if I like coffee!?!
"Noone cares if you go off topic in this chat"
- @orchid frigate
yes respond to a message from 5 days ago
ok
I stand behind what I said
If anyone has a problem
Tell them to talk to me
Ban perms flex coming soon 😳 😳 😳
ایرانی هست؟
Me omw(on my way(way as in path))
to ur(your) house(as in base)
https://c.tenor.com/Q8L-Fq7ZMecAAAAM/funny-fight.gif
Guys look
The link to the gif has a C in it
C reference 😳 😳 😳 🤣 🚶♂️ 💀

Ping me and say the thing in my pfp sucks
@rose pawn the thing in your pfp sucks
I hate it
Its awful
Its so bad I hate you
I hate everything about you just because of the thing in your pfp
That is worse than anything on earth
Hell wouldn't accept it
Hello, this is my first time here.
thats mean
Yes
std::string inp; inp << std::cin;
while (inp == “start”){inp<<std::cin;}
something like that bit rusty with c++
nice useless code
they do C# not c++
which can be done in more than one way depending on how you want to do it
if you want it to be done at least once you can do it like this:
do {
// Your Code Here
} while(Console.ReadLine() == "start");
if you want it to never run if the input was not start you can do
while (Console.ReadLine() == "start") {
// Your Code
}
29299192
ok but they didn’t state that and the logic is as good as else unless they plan on just straight copy and pasting
what use is a copy and paste if you don’t understand what it’s doing
dont think a C# dev will understand what std::cin means
without c++ experience
and why does it have <<
which would make it even more confusing to a C# dev

no
c# devs are devs that tried c++
then decided to just c#
nah
C# is my second language
after an old language that doesnt exist any more called blitz basic
chigai
nein
Ok
I will say a something that every beginner coder is scared for
@robust pulsar Assembly
💀
I'll say something every hobbyist developer is scared of
Scrum
DevOps
Had to double up
I’ll say something literally everyone is scared of.
Getting an error message, looking at the error provoking code, and seeing nothing the f wrong
Noooooo
Nah
I dont get the benevolence of the error messages
The most I get are triple faults and register states
the most passive message ever in this chat
evaluate the expression on each iteration
and since it's re evaluated
function is called again
and so on
its a common way
Okay okay I need to know how many of you firstly have a LinkedIn profile and secondly actively maintain it
Because I've used maybe a bit too many hours updating and making my linkedin profile look as good as possible
just because I heard it makes your changes of getting hired bigger
i don't use linkedin
I have one but i dont update it as im mot looking for a job
I'm not currently looking for a job either but I keep it updated, connect with people I know, like posts and rarely make posts of my own
looks good when looking for a job
gonna get a cockatiel
i got a cockatiel
hello 😃
Too young for a LinkedIn atleast for my country
Next summer will be getting my first job as a bartender or smt
So I wont need one in a long time
good luck
Hi
@empty mesa #💰worldbox-casino
Got to him first 

One more 0 and you would’ve said the N word in binary
How
Anyone know lua
print(string)```
local y = 420
function add(a,b)
print(a + b)
end
add(x,y) ```
It's not very hard to understand
that just looks like the very basics of coding which ofc aren't hard to understand
it's like learning second grader math.
code
@torpid isle you get the idea, check all channels
aight i won't ping anymore
sorry
~Traiteditor

Ik lua
"i like lua how could you tell?" them: 🤓
Lua is bad in general but
I have respect for it
Because alot of games are working with it
Like gmod
And ig roblox
And I think the binding of isaac
its embeddable
Dude no fcking way. This channel existed.
Gonna invite me web dev account
Anyone here uses react J's?
J's*
Wtf
React JS
There
Omfg
just type javascript
No
understandable have a nice day
sorry sir but thats offtopic this is a coding channel
No web devs here
Thank god
Only game devs if they still exist
And low level devs
Hi
i dont like it
i prefer svelte
which is easier to work with
But lua is a coding language
kinda true
lUa iS a cOdInG scripting language
It's a scripting language
I mean I have project a repo in gut hub that is based on lua
lua is a programming language that is mostly used for scripting
interpreted languages are easy to use for scripting
that's why most games use things like lua
or make their own
Hoh
Ok it might be a little underdeveloped but it's used in roblox
Roblox calls it luau
I admit lua doesn't support gui and is rarely used in standalone applications but it's good
why
lua is actually not that bad
yes there are better options
but if you want to add things to old emulated games
lua is the best option
someone ran the NEAT algorithm on emulated mario
using lua
my preferred choice is C#
yall are too young to know jass though.
Actual living hell, easily worst language made for games.
i used blitz basic for my first game
isnt this the language for wc3 maps?
yes
i used to make maps for fun
you're not man until you torture yourself by trying to use it
gigachad
reforged gave us Lua support luckily
vJass, which is now official in game thanks to reforged, just like Lua
at least that's the one I know of
oh
yeah that one
that was way easier than jass
easier debugging and editor had more colors to it
yeah it's nice but still far inferior to modern languages.
gotto go work
gl
Guys stop fighting
Rust obv carries all programming languages
Along with C
I swear im a walking rust ad and im proud of it
i wanna do a challange with making a game in 10 mins, any ideas for theme
does anyone have an experience with deep q reinforcement learning
what are u using it for
just experimenting right now, making a dot move to a another dot
I know the theory behind it etc
oh that should be easy enough
the main thing I don’t understand is q tables
if ur doing a deep q reinforcement learning there are no q tables
q learning has q tables
deep q learning uses a neural network instead of a q table
My bad I meant how I would pass the location of the other dot
To the dot that’s learning
so I would pass the x and y coordinates as a vector
you can either do 4 inputs 2 are the x,y of the dot and then 2 are x,y of the moving object
or you can do 2 inputs
which will be the distance between the object and the dot
nice
i recommend 2 inputs
Do u reccomend the gpu
the less inputs the better
version of tensor flow
for this a gpu will not do a lot better
since it is a very simple model
i would do 2 input to 16 to 8 to 4 output
4 outputs each one determines a direction
Once I develop on it
I could pass the rotation as well?
instead of the host coordinates
you can do one input and one output
angle to dot as input
and then angle to move as output
but then that's cheating
because the angle to dot should be the same as angle to move

so you're giving the AI the answer
ah ok
but I could give it a reward when it looks in the direction of the dot surely?
give it a reward when it moves in the right direction
make sure its very small
i would say 1% of the finishing reward
ah ok nice, end goal is to have it eat multiple food, but from what you’ve just answered I think I could just change the input aitomatically to the food I want it to move to?
yeah
@barren shale How hard is it to learn discord.net
it is not really that hard
just like any other discord api
but in C#
if you have experience in asp.net
its made to look like asp.net
so that would help
its a bit overcomplicated for discord
python is honestly ideal for discord bots to me
simple generic stuff, but bots are usually that way
usually medium-large to large bots uses file based or class based commands
but dpy have extensions
and cogs
which is scalable
plus its new version 2.0 is out officially on pypi
which supports v10 api
Bro the rust compilation times are starting to piss me off rn
It takes rust like 3 seconds every time to compile core alone
just wait until you work with js frontend
you have to press an EXTRA BUTTON (the refresh button) followed by 3 seconds of load time
nah im good
dont think I will ever work frontend
too boring and premade
building things from scratch is where its at
but rust used to compile everything in like a second
but then I started using xargo and everything went to shit
bruh goofy gcc cant find a file that vscode finds 💀 💀 💀
I need to cross compile everything
and the other tools suck
cross compile = more compiling = more time
I dont think thats how it works
ok then what is the difference of cross compiling and just normal compiling
cross compiling creates an elf file thats not system dependent
all the other ones are
not system dependent = not system optimized = more compiling
no
ok
if anything its making less code than before
the problem is
cargo slow
or xargo
nice name xargo
lol
I PUT THE FILE IN THE SAME DIRECTORY STILL CANT FIND IT
verycreative
I hate coming up with these grand fixes to big problems
and gcc just fucking say "no"
skill issue
"you dont get to have fun"
childish of you to assume GCC will atleast make you happy
then find the file
ok you know what I will do
what
considering C is the secondary language anyway
I will just put everything in one file
fuck gcc Im not dealing with its shit
how many line of code do you have
for now 100
in c
but Im doing everything in rust anyway
the only time I need C is when I need to use assembly
because ffi in rust is goofy
real goofy
just use assembly
(this tip is given to you by a stupid person)
oh ok
maybe this guy isnt as stupid as he seem after all
wait xargo fixed itself what 💀 💀 💀 💀
nah false alarm
when I dont edit any files it just doesnt recompile
its still goofy
it saw that you needed to use cross compilation and got no other option so it got goofy again
broooo
gcc is the goofiest compiler amongst them all
it just doesnt find anything
Goofy C Compiler
GCC
bro im starting to give up now c++ is being goofy
c++ ffi also sucks
goofy ahh languages and compilers man
wait am I sure I didnt install the wrong compiler 💀
i dont know im not you
a gcc that has all of its keywords mangled
and also only compiles with -Wall so that your console gets filled with garbage warnings
a gcc who refuses to compile C but compiles javascript
wait we are just describing the V8 engine at this point
yeah
its unholy
everyone knows
tell me a synonym to unholy
idk
aight so
gcc fixed its goofy ahh
so now its time to work
alright
wtf was I doing before fixing this
scroll up
nah its not there
but you dont worry
I figured it out
also
wanna enter vc
we can code & chill if you know what im saying 🫣
no
oh wow
I guess that after you get rejected
she no longer exists
shower thoughts
ask rust out
rust never rejects
unless you make him do ffi stuff then he is as useless as when your average python or c# enjoyer sees a pointer
pointer isnt complicated
Thats what im saying
But everyone coming from low level when they see anything memory related is like "too hard its impossible fuck this"
Your dad rejected you
its not hard
sounds like a skill issue
finger
can't believe some phone companies now decided to allow users to allocate swap on their own
but they promoted the feature as
"add more ram"
which is technically true but also not
even the seller told me it adds ram
the phone have 6gb ram, no idea how much base swap
but im guessing around 500mb and 1gb
imagine adding 4gb more swap
also reminds me
android 11 security sucks ass
termux now has super limited capabilities
can't even view processes
or use ip with full output

they didn't even add any whitelist
just another day of tech company doing (kinda) evil stuff
Linux kernel panicked which even if its scary because its my os is fascinating to me because I can copy its design :)))
But now idk what to do
The pc is unresponsive
delete system 32
i might just cold reboot
in someone elses computer
How does that like
My system crashed
How do you expect me to do that
Ok I did cold reboot and it fixed itself nice
Losing linux would be absolutely awful because of the amount of projects I have saved on it
be hacker
I dont remember how I set up my disks in linux
But I have recently been thinking about switching to another distro anyway
Im getting bored of mint
So ima set up my disks right when I do that
I do dual boot
So my entire ssd is windows
Because of games
But I see what you are saying
what no
dual boot is having 2 operating system on the same disk
i think
i may be wrong
so take it with a grain of salt
According to google:
A dual boot is a technique through which multiple operating systems can be kept within the boot sequence on the same computer. It enables a user to select from more than one operating system at the initial boot sequence or system startup.
Dual boot is also known as multi boot.
Boot sequence probably being bootloader
yeah
well its not double boot in this case
just standard recommendations for linux
ssd on /
hdd on /home
so if your system fucked up
your data on user are safe
and we know Haydot keeps fucking up his system
Tbh I dont even try
I just boot and use the same 5 apps
Idk how I constantly get my system destroyed
But this kernel panic I got is
Both advanced and not as advanced as I thought
It kinda just outputs some random information
I thought linux would do better smh
Brooo
This distro is like
Made by me
Everything from scratch
Even the package manager
ye
it has 2 version too
glib and musl
i would suggest glib tho
its also not that heavy
using xfce4 on vbox idle only consumes like 1gb memory
it takes time to migrate tho
makes it even worse
Does anyone know anything about blackarch
I have been interested in it since I first tried linux
But there arent many reviews
Damn it seems even more lightweight than arch
At this point it barely has gui
So the choices are
Void or arch
Hmmm
void are stable
thats why you got demoted
Queen Elizabeth just died
wrong channel my man
It can be annoying but its best to let ppl mourn (imo)
i mean
they can mourn in #🌎general
or even better in the #941809618236104725 thread specifically made for it
Alright well I have made up my mind and
Im changing to arch
I have saved all of the projects I care about to my github
So now I wonder if I should save something else before switching
Wow
I fucked up a usb so bad last time I did this that
Even windows cant reformat it
Wtf did I do
Well the installation failed
Due to faulty iso
It warned me to check it but I didnt
i think i do that every day on mobile AND on pc
epic hackermen hacking into the us federal buildings
Me need mobile
Honestly I don't even care
About typing on mobile is hard
Typing code on stupid tash phone is
I think I commited a warcrime
hey! leute, die wach sind?
Tell this trustworthy gentleman named stalker which country you live in
If I said something wrong, I'm sorry
I see
from which country are u from
I am from Russia.
I live in the city of Novosibirsk, the best city for me
Can you put my house back together 🥹
oh... Man, I feel sorry for you...
the politicians are to blame for this
I agree
I don't know but I know that smooth roads have not been made in Russia yet😂
I wanted to ask what kind of games did you play?
I don’t have a computer or wifi anymore so… 😂
I have a phone and we get a limited amount of data
I used to play csgo
Nah its just your name and the question match up nicely
its just sounds rather funny
a guy name STALKER is asking someone what country do they live in
couldn't be more funny than that
do any of you got 4 bucks to spare so I can buy a cpu cooler and finish the build
yeah but what state of matter do you live in
water
Hello mam your computer has a virus may I get the exact coordinates of the computer so that I can fix it?
69,69,69
The virus is pretty bad
I will need inject antibiotics into it
May I get any bank information for help?
can you make me exist
Ok
Say these words with me
"im a little grinch pinch whinch with a syringe of dinch"
mother
god
work really drains my coding energy
after spending 8-9 hours a day programming i really cba to do more at home
but it's also what i love doing
8-9 hours a day?!?!
Bro if I was doing that much a day for work only you bet im never opening a code editor on my personal pc again
I'm on the computer 9 hours a day for work, when I come home I get on mine for the rest of the night
how many line of code do you guys code every hour?
mine is 100-50 (depends on how much math it requires)
its not something i can put in a number
yeah
that's very situational
i can code 1000 lines per hour
of code that does nothing
I've made 500 lines of code in an hour for sure. But probably on average it's way less than 100 because debugging and shit
Any problems with my program?
#Basic Collatz Conjecture Program
X = int(input())
def CConjecture(I):
if I % 2 == 0:
I = I / 2
elif I % 2 == 1:
I = (I * 3) + 1
return I
import time
print(X)
while not X == 1:
time.sleep(0.5)
X = CConjecture(X) #so meta
print(X)
does it run?
yeah i ran it, i just want to know about readability problems if there is any
no bugs
maybe you can change not X == 1 with X != 1
does the conjecture always work though?
i think it does
and its not I % 2 == 1 it is I % 2 != 0
or you can just do else instead of elif
Seems like it's an unsolved math problem
# Basic Collatz Conjecture Program
def CConjecture(i):
if i % 2 == 0:
i = i / 2
else:
i = (i * 3) + 1
return i
x = int(input())
while x != 1:
print(x)
x = CConjecture(x) #so meta
print(x)
print("Done")
then you can just check for repeats
"As of 2020, the conjecture has been checked by computer for all starting values up to 2^68 ≈ 2.95×10^20"
"This computer evidence is not sufficient to prove that the conjecture is true for all starting values. As in the case of some disproved conjectures, like the Pólya conjecture, counterexamples might be found when considering very large numbers."
yeah but that is a very huge number
Yes, that is to say the conjecture is not yet proven
it has worked so far, but until it's proven true you can't be sure it will work for every number
i guess it is one of these math problem that are impossible to fully solve
also i would use lowercase letters for non constant variables
yeah i thought that it would be a fun little project to do, even though i know that the collatz conjectyure isnt able to be solved, i was just asking you about my program cause i wanted to practice having neat programs
aight
talk to this guy @barren shale
best neatest programs ever to be made
neat is my second name
alright
anyways thanks for the help!
i just wanna read it as it prints out cause its easier than reading a whole wall of numbers
Yea dont talk to me about neat programs
You can see that on my github
But talk to me for anything low level
As I have most likely done it
whats that for?
Bro I just learned it takes 125 seconds to build the linux kernel 💀 💀 💀
Imagine building that thing to test something and realising you forgot to do that little thing
So now you gotta wait 2 more minutes
You clearly haven't experienced unity. It takes 30 seconds to compile a fucking scritableobject
Bro that would make me go insane
I can barely handle 7 second compile times
Usually same for me but for some fucking reason, in the latest lts it takes ages to compile scriptableobjects
Well it takes ages to open unity or any new windows as well in it
Any noticable compile time is annoying af
imagine 3 minutes
we have one huge codebase for our central API and it takes like 3 minutes for first time compile
after that (when doing restart on save) it's like 5 seconds
At that point I would just give up
Between every compile I would be able to go and make coffee and come back
2 times if I speedrun
I compile 5 times a minute 💀 💀 💀
Cant you like
Only rebuild the things that changed
So for instance you have a makefile
Which checks for which things changed
And compiles only them
If you use a compiled language that is
probs could if we optimized it
no time/money to do that lul
client wants what the client wants
Ig client wants you to suffer 💀


