#ot2-the-original-pubsta
652 messages Β· Page 125 of 1
smh
Hunter from india too lol
fr?
WOAH
ig
Not sure
Where r u from ashley?
London
yes that
oH
50% of the server iirc
Ye lol
over the ocean, sheesh
1.5 Billion population is of India only.
Pengium from which state?
out of 7.7B
bro? Billion or Million?
Billion
.....
ah not fifty, i remember majority of the people are from the US and then it's India
Ummm....
38
POV: You post random links in ot channels and grab random peoples' ip
Here
After the network going cheaper
Lmao
price*
Didn't u already know that tho
What's your weight?
such a nice message surely nothing could go wrong
idk, I thought you're from Canada, no shit
Wrong.
..
Weight is always in newton
There'e many indians in canada too
OHHHHHHHHHHHHHHHHHHHHH
How come kg is here.
YESS PHYSICSSSS
450 N
there are more than 700k in london too
π
Cool
sister, indians are everywhere
Cant change that ig
Mass is equal all over the universe, whereas weight isn't
- one of the main reasons why I dropped physics
yes mass vary
Bro
How tf do u think I know Hindi
Breh no
Me?
Weight is the amount of gravitational force on us.
Nope
Make that North
That's why high temperatures and no rain
Yo
Near it
uh mp ? delhi?
Nope, I live in a small town. Delhi is like 2-3 hours away
oh i live in jhansi
Cool
Ludhiana
My best guess
Fortnite kid (I also play it so no prob)
Nah, its like 6 hours from there
Hey @spiral ember
hello
So I need some help with AWS
what's up
So I was making a website and planning to host it with aws and the API backend of the website uses asyncio (and fastapi) and tensorflow and nltk to process some ebooks. Do u happen to know what configuration I should go for?
"configuration"?
Like what services should I opt for and how much memory and stuff like that (AWS beginner here idk much about it)
Ah. EC2 is very versatile and will work for all of your purposes
Well I was messing around with the price calculator
Right
For some reason this is my monthly cost which is a bit too much haha
This is the pricing model
How much is standard?
525 per month
$?
Ah okay
Eh, idrk, doesn't tensorflow require more RAM?
I mean a single processing took like 500 MB RAM or smth
AWS has their own set of machine learning services you might be able to try those out
Oh, and those can be added to my VPS?
Uh do u happen to have any docs link?
first look through all the machine learning services and find one that's the closest
if you can't find any just stick with what you have
If I am using asyncio.loop.create_task for creating a tensorflow task, will it be CPU intensive or Memory intensive? If you have any idea (No GPU)
not sure. never done ML myself
different vcpus and memory
t4g.small
How much resource usage did u type in?
I agree
100
its separate 10 bucks
Eh, why is standard cheaper?
Β―_(γ)_/Β―
I mean, isn't on demand like, as we need more, it will charge more
but standard like, you cannot use more than x RAM and x cores
it's easier for them to give you standard i'm guessing
Prolly
harder to change stuff around so more expensive
which one do u have?
std
And do u have any API hosted on one of these?
on my ec2
Yea
No problem. AWS is kind of not the best when it comes to being clear and showing you everything you need up front so it's always helpful to have someone else that knows about it
more like AOS (Amazon Obfuscation Service) amirite?
AWS alphabet soup. Sure you can use an EC2 to host the API but why not go with a R52 to an APIGW with a Lambda proxied to an SQS feeding your EKS cluster?
Toss in a few CW alarms with an SNS to your personal email and you'll have awareness of any issues too!
are notion subpages similar to creating a notebook/folder
LMAO.
i just felt lonely and then write hello world and random nums.
By first try i send a friend request lmao
so many fancy words β¨
AWS is good for that. hundreds of services at this point.
π₯΄
Finding the service that's EXACTLY what you were looking for is something else
And then building it!
226 services listed.
My goto stack at work is usually API Gateway -> Lambda proxy -> EventBus -> Target (lambda/eks/ec2/etc)
I still canβt understand why major cloud services canβt add abstractions like heroku and railway
Many of the services they offer are abstractions.
EventBus, for example, is a gateway + simple queue + lambda + simple notification service + a few other things.
I mean, there are other services I can deploy something using a single cli command
Oh sure, but the tradeoff to that level of abstraction is usually scalability.
yes, but there should be a simpler option π
AWS cli gives you some pretty simple options. Add serverless or terraform infrastructure as code and you can even deploy multi-region enterprise level services with one command line. But, yes, it takes more work.
Abstraction usually results in less functionality, and the type of people that use major cloud services (large companies, start ups, profesionals, not many hobbyists, people wanting to host discord bots for instance) so they need to have a lot of options and customizability
yo
π
huh?
be honest
how does this image make you feel

@digital bane is this the secret to being in tech?

Being honest? You're lying to more than yourself if techdebt waits 2 years.

Sadly yes
Drinks coffee
I'm just here sticking with Firebase
Since it's a part of the Google Cloud ecosystem
And also a battle tested service
sesquip to be specific
The website just accepts an ebook and processes it, getting information of every word in the text, using tensorflow and nltk
Then it can show u multiple things, like what words are used in the text which are rarely used and it also gets the synonyms, antonyms and other sentences the word is used in
Ah yes haha
That's what am working on nowadays
seems cool , thats what you were learning svelte for?
Just gonna complete it this time
Well, yea. But my friend has been forcing me to use React.js for the frontend haha, so I'm using it now
imagine learning js π©
its good
React is fun
But while doing it, my friend started working on sesquid again, so here I'm completing the project once and for all
Gonna get the Oracle VPS today or tomorrow and host a test website on it
How are pointers and allocating to the heap
well, i have no idea about that
im just done with datatypes, functions, classes/objects and operators for now
all i know about it is its used for memory allocation etc ( i may be wrong)
is it possible for an child to speak and understand binary from birth? if im not wrong, if we were to(def not gonna) raise a child with the only language that all humans surrounding it speak, being binary, would it learn binary fluently?
enough to put joe to shame kinda binary
and after that we can teach it assembly?
yes it is possible
UHH UH IT IS NOT GILBURT
ok ok how do u know
allah allah he told me π
?
yeah, learning about memory allocation is why people say C++ is hard
especially the whole pointer/reference mess because pointers make references redundant despite us still having references
binary is an form of representation, not a language
@jovial island why do you keep doing that markdown?
its fun
can two different operating systems works at the same time?
what do you exactly mean by at the same time?
of course VM
if you mean having two OSes in one system
yes it's possible
I do dual boot arch and windows 10
but they boot separated
yes
I thought that when the bot process took place it was as if there was a security measure that prevented another boot
Anyone know how to use Cipher.Mode = GCM in C#
Not bare metal, no
You can however run multiple type 2 hypervisors
VTA 2?
Windows does have Hyper-V, a type 1 hypervisor afaik
Question, is KVM type 1 or type 2

references are guaranteed non-null, pointers aren't
@surreal trail π Congratulations. π
hi
Hi
A question. How can I become motivated towards coding?
It's hard to start sometimes. Especially if you are full of problems around. It's hard to connect and flow with the learning process.
starting a car at first is always rocky, just do what you enjoy honestly - don't code for the sake of it
coding is more about problem solving than writing code
Why do you want to learn to code?
That's the problem. I guess I had to connect with something I'd enjoy building.
Job. To be honest, I need a job as soon as possible. I guess this makes it worse, because I'm not enjoying the process of learning. I have to push myself to do it yes or yes.
It's about what I expected, if that makes it better. You see the obstacle in front of you; you aren't enjoying learning something because the stress and pressure of requirements are in the way.
A tactic you could try is to write down the goal. Define it as clearly as possible. Not just "a job". What job, doing what, making what, and where. Then start brainstorming all the things that need to happen to get there. Could be submitting applications, reading certain books for specific skills, working on learning code an hour a day for N days, etc. Break stuff down as small as possible.
The goal here is to give yourself micro-tasks that are not only doable but something you can look at and immediately associate how it gets you to where you want to be.
That feels good. Feeling good about anything in a stressful situation is the first step to defeating the stress.
Wow, that's quite a good piece of advice. Thank you so much. It actually looks like the way a coder would solve the problem, haha. I'll do it.
It's how I survived 2014. :) That and this:
At the end of the day it doesn't matter if you were better than someone else. If you were more productive than someone else. Or even what someone else thinks of you. You are there, in your head, and the only thing that matters is if you can answer this question: Did you try your best?
I just updated to python 310
might have something to do with it. not sure.
pip is working with python 39
*3.10
try running py -m ensurepip, that can sometimes help if your install got corrupted
its gives same error
classPath(PurePath):
^
SyntaxError: invalid syntax
same
File "C:\Users\ojasv\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 943
classPath(PurePath):
^
SyntaxError: invalid syntax
somehow, your pathlib is corrupted
that's most unusual
try rerunning the install, there should be a repair option
ohk
lol after doing that also it gives same error
there is also the option of just adding the space back by hand
open C:\Users\ojasv\AppData\Local\Programs\Python\Python310\lib\pathlib.py in your preferred editor, go to line 943 and add a space between class and Path
this?
ohk
where?
classPath -> class Path
huh?
Eh, I am surprised that can also happen
yeah, idk how that ended up happening. Probably a misclick at some point
sometimes stuff like that happens to me too
looks like my dad's advice, "try your best, and you are your best"
love my dad, as much as i hate him sometimes
he's the only one i know who doesn't give a rats ass about what grades i get as long as i'm happy with them, which has motivated me more
so much so that i've started to get pretty good grades now β¨
Sounds like good advice for sure.
indeed it is
Lucky
Super Mario Simps
@jovial island It's hard to explain without context but this is the best I could do
def lol(a):
if len(a) == 0:
return[[]]
# if list a is empty return a list with a empty list in it (Needed for so the last 2 lines (not including the
# return) so it doesn't run forever)
l = [] # initialize empty list
for i in range(0, len(a)): # For every number between 0 and the length of the list a
b = a[i] # B equals the the value of a[(index of the current niteration)
# From now on, if where there's an "i" in the index of a list that's for the current iteration
c = a[:i] + a[i+1:] # c is (from the first index of "a" to i)) + (a from i + 1 to the rest of a)
for j in lol(c): # Repeat everything prior
l.append([b]+j) # Add ["b"] and j, with j the index of the nth list lol(c) returns
return c # return final value
print(lol('1234'))
thx
yo
hola sparky, also my choice of songs is weird-
no problem
there are 289 in that one
cool
are songs repeated?
none
all are different
wow nice
thanks :D
pleasure is mine
nice all coding
π π
The only things you have in a SQL database are tables, right?
Yessir
Well, you have data too. π
Yeah, but in the tables, like a database has tables and tables has data, am I right?
Tables have rows and columns and tows and columns constitute cells, which in turn, have data
Ok I got it
you cant have data outside tables tho can you?
tables are the most fundamental unit in relational dbs
my 1 friend deleted his account :(
Sadge
I got an idea... a guide to git... called: "Git gud scrub"
What error now?
Consciousness is a very complex thing
It exists yet doesnt exist
Cant be proven yet
Cant be not proven
Hmm
Yes.
The only way for us to exist is by being created
Its the only scientific way yet its impossible
Yet its the only possible way
$ sudo create Human
You heard about big bang?
At first, the universe was a single singularity. But one day the singularity imploded and everything was created.
Well
I believe in the big bang theory
But i dont believe it started from nothing
Must have a greater reason
The big bang happened
Cause scientifically impossible
For that to happen out of nowhere
The universe cant exist by itself
I have a theory that tells us why there was 1 singularity.
And if it was that great then its basically the creator
I think there was another universe in which all the black holes and stuff ate the whole universe and then started becoming smaller and smaller, it became so small that it got destroyed by the singularity in it. Then the singularity stayed there until it imploded.
Shrey's theory of universe.
Ayo where did that universe come from tho
From universe before.
@sour echo
I think now my theory should be official.
If there are no more questions.
Explain
Explain what?
From the one before it.
Any other questions?
Not really
Lol
@sour echo the first one came from god.
Well
For us to exist
There must be a start
A line needs a starting point
Cant have a line without a starting point
Imo its beyond our mind capabilities
Cause like
A line don't have starting point, ray*
a line is infinite in both directions
so a timeline is actually a timeray π€
Hmm
Yes
This is very deep.
Yep
So there must be a starting point
Which is impossible yet the only possible way
So it means we cant understand it yet
so we don't know the part of the line before the big bang
Maybe in the future we will
Exactly
We only know the mechanism not the cause
Its really mysterious tbh
is there even "before" on a line?
We don't know what caused the very first big bang to happen.
So... how a black hole became a white hole?
We gotta exist for a reason prob
we were just here
Maybe, it never started...
Noone uses white mode bruh
Because that's not what the big bang theory is there to explain. Both that and the steady-state theory are only there to explain what happened, not why or how it happened...
if a line is infinite in both directions then we're technically living 0% of total time
Saying it may have not started is like saying ima let u in without opening the door
... knock a hole in the wall?
Yes, that's exactly what it is.
Lmao
Thank calculus for limits..
An infinite line is impossible tho
as life approaches infinity from the positive side, ...
Well
wait
are we going forwards or backwards?
Forwards...
If we say the universe came from itself then its basically considered god
To get that, we first need to know what cause time and from where time started going.
If the universe found itself from nothinf and was always there
Then this is the defintion of god ig
we say "forwards", but that's relative to how we view it
.
Time is an illusion that helps things make sense
The sad part is that we can never have a complete understanding of the universe since we're limited to our super-cluster of galaxies (our observable universe), a tiny, tiny portion of the giant universe
Time isnt proveable
i wake up and ot2 is already tripping balls
Lmao
XD
But if the universe is having changes then time is ticking.
So this means time started universe.
Time... or entropy?
Time is ticking?
We only observe changes
Not time passing by
But time passes all the time.
We link changes in objects to an imaginary thing
Depends on what u define as "time"
Yes, at 9,192,631,770 spins of a Cesium isotope (1 second)
but yet, a second is defined physically (see above message)
That's very hard to define.
time is money π
Lmao
"The indefinite continued progress of existence and events in the past, present, and future regarded as a whole."
It is a dimension. No more, no less
Like x, y, z
the fourth dimension is time
is it the 4th?
That's why we have space-time
Yes
Prove it
or are there more before or after time?
We are living in a 4D universe
No, time is not 4th dimension
Lmao I was joking
Ok so
Consciousness is weird
Because you are limited by your senses?
ok now let's skip ahead a little farther
what is time in a black hole?
Living outside your body or vicariously through something/someone requires a full simulation of the events that transpire around that entity
vsauce could definitely make this conversation into a video about time
No what makes me see out of my eyes when the brain processes data and acts by them? Meaning that we shouldnt see but only know where things are. What differentiates me and a macine learning model?
What makes u feel
Not talking about the nervous system
Well, responses have been "programmed" into your gene code through pure (weighted) randomness...
we went from talking about the start of everything to time to life to randomness
Why do we even exist
Is there anything else except of length, breadth or height?
No import random, instead import secrets
Why couldnt our bodies work by themselves?
will 42 help us solve the problem?
And what makes me inside me and not u lol
there's no "ordering" of dimensions
?
What if I don't want you inside me... π
there's a signature, though, and for our universe it's +2 - we have 3 dimensions of one kind (which we call "spacelike") and one of a different kind ("timelike"). No matter what reference frame you're in, that signature is invariant.
Maybe this don't exist, we don't exist, nothing exists...
copilot disagrees
I also.
Stop flexing 
definitely is a dimension though (copilot answers yes)
what that?

Lemosaurus
Yes, I wanted to explain that but its very hard for me without visual representation and only text.
Time is not related to dimensions.
Ask, is copiolet stupid.
Then we are not listening to him.
what
lemme just log out of github..
Maybe this is too deep for us to understand...
No... is yes.
And yes.... is yes.
Then what means no?
Vsauce music plays
copilot just brought us back to the topic of time
LMFAOOO
if im logged onto github but have the gituhb auto-comp disabled, does it still read my files?
Lmao I'mma absolutely s*** on your logic: 42
lol
actually maybe copilot disagrees with that stackoverflow question but why specifically about time
what
3.5k upvotes for that?
thats why i have it disabled
Many say that time is the fourth dimension
I don't think so
@daring jay
Imagine if you are 2nd dimension, there is no height just length and breadth. If we combine 2ds it would become a 3D as height will become a thing. So, as a 2d if a 3D comes in your area you can only see 1 part of it at a time, because he have height and you do not.
So time shouldn't be 4D it should just be another unit like length breadth and height made from combined 3d.
@versed wigeon @sour echo
when u are in 2d, even 3d seems 2d to you. Similarly maybe we can't see 4d but it might be there.
We can see 4d in 3d state.
Then why is there not anything that is 4d but we see in 3d
mfs casually rejecting special and general relativity
mfs don't listening to smart people
mfs like the flat earthers
Lol

Hello

Here we have come to invade the channel
so, for the docs
using sphinx would be literally easier than writing a markdown or something if you documented your methods and classes..
So don't use docs strings?
just use the autodoc ext that uses dock strings
that sounds like an extension
vsc
πΏ
im saying if you used doc strings and use sphinx you wont have to code the docs manually
π
Why have you only said this now
because akeno uses it?
^^^
π
Okay
No
I haven't documented anything yet
lol
Since i haven't finished all of the methods
I actually thought i did
That was before i talked to sarth
literally just rst .. autoclass:: YourClass :members:
And he talked me into more work
a cache is not a big deal uk
or the module if you dont have privates
π³
I have to debug it and make sure it's efficient
And somehow not break anything in the code
And add more code to every method
Since it's a cache
for me all i had to change is
- adding a class with some dictionaries for storing data
- adding the data in the dictionary per API call
this was for the Client.get_pokemon calls
Hi
No
i know a thing or two about flutter, but just ask the question, no-one here bites
you need to give it initial value
or you can mark it as nullable
via question mark
if you don't supply any value, it's going to default to null, but because you have String type, you can't assign null to it, it has to have String instance in it, OR you change type signature to String?
how do i do that
the String from, String to can be prefixed with late if you want to assign values to them later on
change String to var
Will try that thank you!
oh im the right server.
hi
Hi
hi
Elonmusk bought twitter
huh
that's awesome
...
okay
what is he going to do with it
what is ot2?
Make it better
ot2
this channel, off topic 2
Hi
otn n+1 th channel
*bought
i always thought it was @clever salmon π
we use disco hook for most of those things
:sadge:
since we just export it as a json, so if we need to change it we don't need to rewrite everything
but does @clever salmon have an option to create embeds if you send a .json file?
like a !embed <json_file> command?
!embed [channel] <text>
Send the input within an embed to either a specified channel or the current channel.
it's just raw
huh
and ofc, these messages aren't in embeds
kek
#βο½how-to-get-help is a plain message, so to get links in there you need to use a webhook
hyperlinks specifically that is
ayo clion docs are next level
Nah thats gotta be fake, we all know all docs need to be as uneasy on the eyes as possible!
it has that feature too
ah
huh, did jetbrains just reimplement a html renderer
or did they use the one swing ships with
yeah, having first party doxygen is kind of expected of a C/C++ IDE
Anyone know what setting in OBS will remove the yellow outline around my screen?
lmao
Lmao i think im in my third cup already today
haha i had two during the day today
maybe more tomorrow
presenting to some execs tomorrow
plus ceo

im just an intern so it doesnt matter lel
as in, no one expects anything
epitome of entropy
Good luck nonetheless lmao
imagine setting replication level on production database to 1
π
I love how it's normalized to talk about a literal drug addiction
Caffeine is a drug. The public eye doesn't really see it as one, but it is just as addictive and probably harmful in the long term
I think Sugar is the one that should have more awareness
If we scroll up in this channel alone, it's always the same people talking about drinking 3 or 4 cups a day... like... that's not healthy
Mostβ’οΈ people will agree that caffeine is an addictive chemical
I agree with the general statement, but I'd mostly apply it to nicotine and alcohol than caffeine
Iirc FDA classifies it as a drug
Or some type of agency like that
Makes sense
It was banned from the olympics in the early 1900s for being a performance enhancing drug
Those are obviously "worse" but this is what I mean; it's normalized to talk about it like it's not a problem
It's basically as bad as drinking multiple red bulls or other energy drinks in one day, minus some sugar
Depends on the overall caffeine content right?
I guess I see what you mean. It's just that I've always been more weirded out by alcohol, because it's also normalized to talk about - yet it's way more harmful, whereas caffeine is like one of the best (in harm per effect) stimulants known to humanity.
Not really... if you're drinking 3, 4, 5 cups per day that's seriously not good for you
Yeah, I agree. I think it's a problem with regulation though. People my age go to parties, get flat out drunk, and are proud of it (at ~16)
And the not good for you part is dependent on the caffeine content, right?
Yes, and additives. But either way, even decaf in those amounts is a lot of caffeine
Decaf doesn't mean caffeine free, it means less caffeine
yuh same but 18
According to the FDA, 400 mg of caffeine a day is the limit before you enter into negative effects
it's weird as fuck that USA has a separate drinking age from age of majority, and it's higher.
Yet you can do weed and stuff at 18 lol
spilling beans
Of course they had to do that
As far as I know, the states that have legalized marijuana also impose an age limit equal to the drinking age (21)
I'm not even in the US, but I am towards the higher end of the income bracket so it's probably also a problem when people are as rich as most at my school
you can vote or get yourself killed in Afghanistan or something at 18, too
I know they did that in Virginia, but I didn't see anything in any other stats
^^ not saying you're wrong
I just know there was a Virginia only law about that really recently
At 18 you become a legal adult and can vote, make legal decisions for yourself, join the armed forces, purchase lottery tickets and in most states can purchase tobacco products. At 21, you are able to purchase alcohol and marijuana
According to this, Virginia is 21 as well https://www.cannabis.virginia.gov/
But to circle back a little bit, the FDA cites 400mg as being the highest "safe" daily intake of caffeine
An 8oz brewed cup of coffee has on average 95mg
From this one article: https://www.healthline.com/nutrition/how-much-caffeine-in-coffee
Yet it's literally all people in this specific OT channel talk about
I probably have 3 cups a day: 1 big pour over in the morning that is probably 2 servings, and then sometimes one later in the day around lunch time
i just drink water
Tbh I'll drink like 2 coffees in the morning and then sometimes when I go out get another one with friends, but I still know it's not great for me
+, that's only really on weekends
I guess another point to make here is that I get why people smoke and drink coffee, but don't get why people drink. Nicotine and caffeine are both fairly nice stimulants, and nicotine improves concentration. That's all very tempting. But alcohol just, like, fucks you up and makes you think worse?? I don't really understand why people drink recreationally at all, much less why there's a culture about that.
I think the kicker is if you are drinking enough to notice a change in sleep patterns / heavy withdrawals / heart rate
I think the difference is binge drinking vs social drinking
I like alcohol, and if "drinking" I usually have 3ish drinks in an evening
But I am also content with having a (singular) beer after a long day at work
Cultural drinking is not the same as drinking because you can
also a huge vice for many modern cultures
I've never had alcohol but it seems to be a cool drink
In college though, binge drinking is common, and usually comes at a time in people's life where they have more freedom in their personal choices than before, and due to peer pressure / social settings drink more than they should without realizing it
Ohh yeah for sure
There is a massive peer pressure issue with drinking, but another think is people don't realize what they're doing, and they don't have a limit
Smh my phone always autocorrects "what" to "eBay", sorry
Talking about common drugs like caffeine, alcohol and even Sugar / Nicotine
And having a conversation around them
My school is k-12, and a fucking 6th grader and a 5th grader got caught vaping together
I don't even know how 10 year olds or however old they are get access to that
Yeah vaping is all around a bad thing. I get that at first it was the "safer" alternative to smoking tobacco, but now it is something else entirely
Yep
Dude vaping sucks
Now people start with vaping
Do marijuana instead
And it's literally so gross
...
Ok anyways
Vaping is also a problem bc it's hard to smell on people
Well, to those people that have a nicotine habit, that is a benefit to them
Well yes
Instead of smelling like cigarettes, they can smell like cotton candy
Mmhm
Vaping was made as an alternative to smoking, there should have never been flavors added
iirc the early vaping products were marketed to older people and had more "savory" flavors
But then someone was like, "We can make this taste like green apple, and market it to 18-21 year olds"
Oil company type asshole right there
That person should be jailed for life for the countless lives vaping has taken
Salary / bonus tied to increasing company profit type of person more likely. Add in lobbying to loosen regulations on what can be marketed and bingo, you have a disaster product
Mmhm
Fun fact: shell is the reason that so Somalian pirates are so prominent
Just another case of a massive industry causing global problems
Its a complex world for sure
Hola
I don't have any opinion about science shit
what even is there in chemistry, its too easy, plus I dont study it since I dropped it two years ago :doge:
Mostly because i never got to do them irl
lmao
oh
Like i wanted to experiment with chemistry so i can make grenades
chemistry is for nerds
Chemistry is pretty dang cool
Chemistry is for maniacs
Thermochemistry is where it is at
But the rote memorization of organic chem is pure pain
u gotta cram alot of stuff in chem, i just can't do it
guess the name of the 1st chapter in phys (9th)
Stabbing a frog seems cool
Introduction
newton laws
easier if you know how to learn then
nope
huh?
Physics
then?
Gravitation or motion cz motion's the easiest
why slow mode in ot π
Yeah
Motion
kek
Also wondering
Sure, but there is no way around the memorization of the different organic compounds
Why ctypes so hard
bruh newton laws come under motion π
my fav subject is comp i always top there :D
lmao
uh
me who gets C grades
thanks 
I don't even know my grades
lol
because u dont know c π€·ββοΈ , i mean just learn a little bit about the syntax or something, u will start to get the feel of ctypes
I never once seen my grades in this school
there was a chemistry test today in my school and i got 9/10
sick
nice
I think i did good on my science tests
my whole class got 9 and 10 π€£
I'm usually never that far from being perfect on the score
guess what were the questions lmao
aha, found the option
wo cool
π time to find my alt
lmao i have 6
Motion is easy though, and I LOVE physics
nice
motion is easy agreed
God does give worthy lives only to a few
fails to solve one numerical problem
"physics is fun" <-- a naive and younger me before several semesters of analytical mechanics
lmao
fun
what does the wiser and older you say
same, although i didnt have a choice, i had to take phy π€·ββοΈ
I just want to understand how does adding 24 just skip shit
still don't know shit about analytical mechanics despite passing it. that's just how shitty courses are
history is easy
f
but physics is fun, I guess. I'd probably enjoy it more if I were smarter, though.
ya idk that yet either ask hsp
pointer arithmetic
Must succeed
Russian revolution was interesting
leave
Physics is pretty great. Although I am fairly biased
french*
ye its my 1st chap
Elaborate or explain to it to me like i'm a 6 year old
what if u are 6 years old π
hm ic cool
russian and french are different
ohh
seems about right, though I don't really get the context. in a list, pointers to elements are the width of a pointer apart - so 8 bytes on a 64-bit system.
I'd be proud of myself for learning python at 6 years old
according to that one study I've read, 6 years old is too young to learn C, only visual languages.
How about python
only visual languages
ah for context #esoteric-python message
Physics
forgor name......scratch yeah
Toys
uh
Oh yeah that thing that feels like it was made for 6 years old
ah, that one works because small int caching in CPython works by having an array (not list) of int objects. 24 bytes must be the offset between the beginning of the int object and the place in it where the array of "digits" is stored.
I never learned what an array is
visual basic, say
ah interesting
array is like a list of fixed length and data type
Like hashmaps being dicts
Tuples?
@runic saffron from where did u learned esoteric python from?
Ryuga
no like int arr[5] means that u make an array of ints and length is supposed to be 5, no more no less
well i think u can have less then 5 elements
I tried to actually learn c before
i asked him but he said just check the channel frequently
u are basically allotting 5 spaces in memory to store ints
But i said fucked that when it looked confusing
Ryuga is god of esoteric python
it's the simplest data structure imaginable. You have a bunch of data, of equal size - let's say it's just bytes. You want to store them all. You allocate some memory and write them all there one after the other.
That's it. Now how do you access the ith byte? You take the pointer to the beginning of the allocation, increment it by i-1, and read the byte at that address.
What if the elements are wider than one byte - say, 8-byte doubles? Then it's the same, except the ith double starts at address start_ptr * (i-1)*8 (and you read 8 bytes at that address and interpret them as a double).
nah i am not
u are
does c have vectors or is it a cpp thing?
Notice how it's necessary that an array is homogenous. If it's not, how do you know where the ith element starts?
i didnt learned how to convert code to single line
Drinking coffee again lmao
C basically doesn't have anything, no. Want a vector, write your own.
ah damn, list implementation must be painful then
Also one of the reason i didn't do c
a list is just a vector of pointers to pyobjects, yeah.
I heard it didn't even have classes
I didn't even know what classes are at that time
c dont got classes
the types are stored in the objects themselves. Each python object starts with a pointer to the type of that object. So to read an element from a list, you:
- get that element of the array. That's a pointer to the object.
- Read the PyObject header at that address. It stores the object's type and, for dynamic-size python objects like ints or strings, the size.
- Knowing the type, read the rest of the object.
But since c++ is the successor of c and c++ has classes
I just thought "nah not this one"
i have been stuck on this seg fault for like 3 hours now π
Seggs
hi
Are arrays in python
oh damn thanks really cool
I'm guessing no
!d array.array
class array.array(typecode[, initializer])```
A new array whose items are restricted by *typecode*, and initialized
from the optional *initializer* value, which must be a list, a
[bytes-like object](https://docs.python.org/3/glossary.html#term-bytes-like-object), or iterable over elements of the
appropriate type.
If given a list or string, the initializer is passed to the new arrayβs
[`fromlist()`](https://docs.python.org/3/library/array.html#array.array.fromlist "array.array.fromlist"), [`frombytes()`](https://docs.python.org/3/library/array.html#array.array.frombytes "array.array.frombytes"), or [`fromunicode()`](https://docs.python.org/3/library/array.html#array.array.fromunicode "array.array.fromunicode") method (see below)
to add initial items to the array. Otherwise, the iterable initializer is
passed to the [`extend()`](https://docs.python.org/3/library/array.html#array.array.extend "array.array.extend") method...
this is prolly the closest thing to it
Wtf
also numpy, my beloved
and numpy yes
Oh yeah numpy
numpy
What does numpy arrays do
numpyy
I don't do alot of math with python
numpy is so good that C# people, instead of having their own library like that, use C# bindings for numpy π₯΄
i dont even know at this point. im making a recursive function to calc det to matrix and it just doesn't wanna work
maybe your stack overflows or something?
well, they are multidimensional arrays you can do vectorized operations on.
How do people know that adding 8 to the address to a bool skips the not needed members
by reading the C source
by looking at the CPython source.
I just don't wanna memorize that this does this without understanding what it does
the struct definitions are there.
Dear fucking god
Objection! Hearsay
https://www.toptal.com/developers/hastebin/egorarowum.cpp
idk, im testing it over a 3x3
hmm, can't find the corresponding header file
Hmm nice i don't understand shit
I just watched the johnny depp video about the multiple hearsay
Funny
works fine for 2x2, idk why it doesn't for 3x3... i think i translated my alg correctly
C++ is it's own language now
Also what am i supposed to look for here
The closest you'll get to the original C++ vision of "C with Classes" is GNU's GObject library
WebAssembly is the answer
Are you serious?
ah, finally found it
Include/cpython/longintrepr.h lines 79 to 82
struct _longobject {
PyObject_VAR_HEAD
digit ob_digit[1];
};```
and PyObject_VAR_HEAD is a macro that expands to PyVarObject ob_base; according to https://github.com/python/cpython/blob/364ed9409269fb321dc4eafdea677c09a4bc0d8d/Doc/c-api/structures.rst
I'm a confused duck now
Include/object.h lines 109 to 112
typedef struct {
PyObject ob_base;
Py_ssize_t ob_size; /* Number of items in variable part */
} PyVarObject;```
anyway, if you go down this rabbit hole, you'll eventually find out how bit PyObject_VAR_HEAD is (it's probably also written somewhere)
what all langs do yall know?
English
English is more messy than asm
Esoteric seems so hard now
Yes, I found that out when I looked up that C# people use for ndarrays.
First it just seemed weird and the dark side of python
u dont need to know cpython to do estoric stuff
just mess around with normal python
What esoteric things do you recommend for me
F# is still used
why wouldn't it be?
its like older than c
idk, just convert code to one-liners

