Alignant
https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/php.html Well, I looked for some benchmarks
Alignant
I'm not sure if they are trustworthy
Alignant
But as far as I know, name a random language and it's probably faster than python :D
BinaryByter
No
feufq
i=a is not any condition to check..i mean proper
BinaryByter
python is actually pretty fast
Avezy
well they provide the source code to their tests
Avezy
https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/binarytrees-php-6.html
BinaryByter
it's JIT compiled
feufq
python is actually pretty fast
don't fly this worng info
feufq
it is one of worst slow lang
Alignant
it's JIT compiled
You mean if it is JIT compiled
feufq
you shoud be aware of a fact that python build on c++
Avezy
Cython is pretty fast but its also precompiled
BinaryByter
You mean if it is JIT compiled
no, IT IS JIT compiled
feufq
c++ is father of alll lang..by mean father its powerful nature
Ariana
python is actually pretty fast
Yeah its speed is actually quite surprising
feufq
Yeah its speed is actually quite surprising
y dn't u relpy what i said
olli
php7 is actually quite fast
Dima
lol python7
BinaryByter
y dn't u relpy what i said
because you are wrong
Alignant
no, IT IS JIT compiled
Like, always? I believe it depends on implementation.
Dima
I think or its gone OT
Ariana
you shoud be aware of a fact that python build on c++
And because of that random.random() can be predicted given the first 624 outputs :>
Alignant
you shoud be aware of a fact that python build on c++
There is a python version that is built on python :D
BinaryByter
it's prolly just a prof of concept
feufq
even the lib like tensorflow has c++ in its core
BinaryByter
its just a python api
Ariana
One problem with python: wtf syntax
BinaryByter
yea
Alignant
One problem with python: wtf syntax
Syntax is not a major problem~
Ariana
Syntax is not a major problem~
i spend hours trying to fix python bugs because of syntax
Ariana
literal hours
Alignant
i spend hours trying to fix python bugs because of syntax
That's because you aren't familiar with it
Ariana
well yeah thats true
Ariana
But syntax quite difference from like most langs, that allows ?:, {}, ;, etc.
olli
#offtopic
olli
keep it to C++ here
Marie
#offtopic
https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ
Dima
guys do you know any channel like that but about c#?
Dima
international
Avezy
Actually the syntax in python and the peps make the code more readable than alot of c or c++ code I have seen
Dima
too many literals
Ariana
Yeah cuz indentation matter (and you cant nest ?:)
Avezy
You can nest about everything you can put too function declarations into one and you can pretty much do this if enable_function_in_debug: def Debug(param): def x(param): print praram x(param)
Avezy
*two
Avezy
Python syntax wise is pretty powerful and beatiful at times "pythonic"
Anonymous
Hi guys. I have a problem which didn't give me any useful solutions on searching google.
Anonymous
I want the ifstream function in c++ to read only a certain line of a text file. How do I make it do that. Any response is appreciated :)
Roxifλsz 🇱🇹
I want the ifstream function in c++ to read only a certain line of a text file. How do I make it do that. Any response is appreciated :)
You could seek() to that line or read until "/n" in a for loop to get to the needed line
Anonymous
c++
Noice
I don't think you can seek to a certain line with the ifstream class, the only way I can think of is by counting '\n'.
Marie
Who dis non-admin telling me what to do?
Marie
No filters are active here!
Marie
Notes in chat: - cpp - cppbook - goodcodingmentality - goodgoogling - googleit - hownottoask - ide - learn - meta - noendl - offtopic - ot - projects
Marie
The following commands are currently restricted: - setme - info - setbio - adminlist - runs - afk - me - slap
Sagar
Any one tell me how to work friend function
Sagar
??
Ariana
Any one tell me how to work friend function
You push the object a distance s, making sure the direction it moves is the same as your pushing force
Ariana
please clarify your quesitn
$hubham
Which windows is best for laptop for doing c programming
Noice
Linux
Anonymous
Which windows is best for laptop for doing c programming
I think all are same, but I prefer 7. In [windows] 🤷‍♂
Ariana
I use debian switching to arch soon
Ariana
C programming can be done anywhere tbh
Ariana
there isnt any best os or best core etc
Ariana
to be honest
Ariana
Like if you have a potato com from 1970 yeah it still works there
Ariana
just that you cant like #import<ios>
klimi
Linux
Chose whatever you want
Jussi
Yes
Anonymous
You guys are so active 😭😭
Anonymous
I need that type of activeness in my life 😔
Anonymous
New to C programming which is the best book