[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Is there anything this language can't do?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 119
Thread images: 14

File: python.png (80KB, 1000x1000px) Image search: [Google]
python.png
80KB, 1000x1000px
Is there anything this language can't do?
>>
Being fast
>>
>>56148387

This is bait.

I've been here for some time and I know bait when I see it.
>>
File: Programming Languages.png (958KB, 1200x5000px) Image search: [Google]
Programming Languages.png
958KB, 1200x5000px
>>
>>56148401
pypy
>>
File: turingFull560.jpg (20KB, 560x253px) Image search: [Google]
turingFull560.jpg
20KB, 560x253px
Is there anything this machine can't do?
>>
>>56148387
It's a "language", meaning it's a method of communication between you and your PC to give it instructions on what to do/how to do. There's nothing you can do in Python that I can't in C. There's nothing you can do in C that I can't in assembly.
>>
File: needamedic.jpg (29KB, 565x345px) Image search: [Google]
needamedic.jpg
29KB, 565x345px
I'm using its syntax with the Godot engine.

Holy shit, how does anyone stay organized with it? I'm coming from C# and I can tell where my function starts and ends because of the brackets. It's a good way to be organized.

But when I use the python syntax it's hard to tell when it starts and ends. It's just tab spacing. It's not bad when you write little code but if you are doing a big project then it is hell.

Pic is what I need after using the python syntax.
>>
>>56148387
Multithreading.
>>
>>56148387
being useful
>>
>>56148454

I heard if you use one of those it'll legitimately kill your own father.

Is this true?
>>
>>56148537
Yes
>>
>>56148387
{
}
>>
Express dependent types (or the univalence axiom)
>>
>>56148487
use pycharm and you will easily see where block ends
>>
>>56148425

This is actually pretty funny..

10/10 would read again
>>
>>56148387

Get you a gf
>>
File: 1469955361256.gif (1MB, 200x200px) Image search: [Google]
1469955361256.gif
1MB, 200x200px
>>56148387
Can it help you deal with your morning wood in an effective manner?
>>
>>56148387
having braces a.k.a. proper flow control so it doesn't need to spazz out over whitespace
>>
>>56148387
Decide the Halting problem
>>
>>56148387
Get developers writing code targeting the same version
>>
>>56148487
Write shorter functions.
>>
>>56148523
Fuck off cunt
>>
Be fast without relying on C libs.

>>56148428
Better than CPython but still pretty slow. Also most libs aren't compatible with it which defeats the whole purpose of using Python in the first place.
>>
>>56151006
So what do you recommend????

Any such thing as a fast scripting lang?
>>
>>56149230
>having braces a.k.a. proper flow control so it doesn't need to spazz out over whitespace

This why isn't there a python preprocessor that allows you to write code with braces like C/PHP so you don't have to worry about indentation?

I mentioned this in a circle of autistic pedantic python language designer nerds, their mouths started foaming and they tried killing me.

These faggots sure love indentation.
>>
>>56151027
Use CPython as a glue between libs written in C that do the heavy lifting.

>Any such thing as a fast scripting lang?
JS :^)
>>
>>56151027
>Any such thing as a fast scripting lang?
How long have you been a programmer?
If you are advanced and scripting for web i suggest you combine these two my friend;
http://mgdm.net/weblog/php-at-the-speed-of-c/
http://gwan.com

If you are a beginner, learn how to properly profile/debug performance issues; oh and keep the critical path locally in RAM &, don't use spinning disks/network.
>>
>>56151151
>How long have you been a programmer?

A year or so. I use mostly perl and python but python is really really slow. Annoyingly slow for text processing and regex
>>
>>56151211
>A year or so. I use mostly perl and python but python is really really slow. Annoyingly slow for text processing and regex


Mkay, you want to read this:
https://swtch.com/~rsc/regexp/regexp1.html

Time to start playing with bash commands!
>>
>>56148387
Well it's a high level language so, you can't write drivers or a kernel in Python. I love how flexible and comfy it is though.
>>
>>56151338
>you can't write drivers or a kernel in Python

it is turing complete; everything is a dildo if you are brave enough
>>
>>56148387
No. Even the NSA uses it.
>>
>>56151392
>No. Even the NSA uses it.
maybe thats why they got their shit pwnd
>>
>>56148425
>Visual Basic
>>
File: 1463523636317.png (146KB, 738x554px) Image search: [Google]
1463523636317.png
146KB, 738x554px
>>56148387
It can't get me a gf
>>
>>56151027
>So what do you recommend????
Using languages that compile to native, fast binaries for real applications.
>inb4 Cython
Yeah, no I mean really fast binaries, without abandoning most of the language.

If you want a better interpreted language, use Wren or Lily, once they are finished.
>>
>>56148612
i bet you don't have a gf
>>
>>56148387
get me a gf
>>
>>56151082
Worrying about indentation is only a problem if you ever write code that's not indented properly.

If you don't indent your code properly, go kill yourself.
>>
Write multi statement anonymous functions
>>
Have proper and good native UI support.
>>
>>56153838
>Python doesn't let me write bad code
>>
>>56148487
####################################################################################
>>
File: longc++man0.png (218KB, 324x495px) Image search: [Google]
longc++man0.png
218KB, 324x495px
>>
>>56148487
the whole "whitespace is enforced lmao" is the worst part of python, honestly
>>
>>56154101
>>56154103
Damnit anon.
>>
>>56148487
>Holy shit, how does anyone stay organized with it?
Indent guides in your editor

>>56154103
If you ever write code without the proper whitespace you shouldn't be writing code anyway. Might as well kill two birds with one stone.
>>
>>56153786
this tbqh
>>
File: plusplusplusplusplus.png (186KB, 324x495px) Image search: [Google]
plusplusplusplusplus.png
186KB, 324x495px
>>56154101
>>
Pythonfags, is there any kind of syntactic sugar or some trick to write Python classes better? It really fucking sucks to prepend "self." at the start of each instruction.
>>
>>56148425
Assembly
C++
Javascript

Best minor boons combined
>>
Do multithreading well.
>>
File: IMG_20160802_115632.jpg (3MB, 3024x4032px) Image search: [Google]
IMG_20160802_115632.jpg
3MB, 3024x4032px
>>56151392
We at NASA use it for a lot of stuff too. Mostly not flight (VxWorks does not run Python interpreters) but the majority of testing is done using Python, and sometimes Tcl
>>
>>56153838
Except it can. You can nest lambdas
>>
>>56148387
>Is there anything this language can't do?
Be the topic of a thread without huge amounts of collosal faggots shitposting.
>>
File: 1463078451357.jpg (32KB, 500x500px) Image search: [Google]
1463078451357.jpg
32KB, 500x500px
>>56148406
>>
>>56148387
Actual work.
Ohhhh, snap!
>>
>>56148387
>Is there anything this language can't do?

Being a decent language
>>
>implying C hashtag and C double plus aren't objectively superior
>>
>>56157128
>C hashtag

I'm using this from now on
>>
>>56148589
/thread
>>
>>56148401
/thread
>>
>>56151082
Because everyone figured out they could use C instead of using whitespace like Karlie
>>
File: cancer.jpg (5KB, 298x169px) Image search: [Google]
cancer.jpg
5KB, 298x169px
>>56148425
>that horrible font
>>
>>56156212
4chan has infiltrated NASA
>confirmed!
>>
>>56148425
>it doesn't like semi colons
But it really doesn't matter if it's there anyways
>>
>>56159023
>You are now aware that all large institutions have some people who browse 4chin
>There are people who work for IBM and Intel who once shitposted on/b/
>Space x and NASA are populated with some cockbags from /g/ and /a/
>even McDonald's literally employ hundreds of posters from /pol/ to clean their floors
>>
>>56148401
First post best post xD
>>
>>56148487
# pass
>>
>>56148387
Handle spaces and tabs without fucking up.
>>
>>56151027
terra, wren, etc.
>>
>>56160891
This, what he fuck, it can handle everything apart from 4 spaces
>>
>>56148425

C, C++, Javascript minor skills.
>>
>>56148401
This^
>>
>>56159194
/v/ shitposter here, worked at hp for a while
>>
>>56159194
My co worker even unironically installed Gentoo on our testing machines. Pretty sure he is a /g/entooman too.
>>
File: lego.png (15KB, 100x100px) Image search: [Google]
lego.png
15KB, 100x100px
>>56156212
Why is there a lego on the lunar module?
>>
>>56148454
Can it love me?
>>
>>56161767
We are talking about things that are physically possible to achieve. you being loved doesn't fit into that category.
>>
embed into c/c++ without being bloated and a huge hassle

lua master race
>>
>>56148387
crash the computer with no survivors (like C++ does)
>>
>>56163998
>c++
>crashing the computer
what did he mean?
>>
Take your virginity.

Actually it's far worse since it's become a SJW/KEK language and the women of python will not only *not* have sex with you but will make you pay for their black child.
>>
>>56164093
>implying those "women" can have children
>>
>>56156212
this. Almost every code at NASA uses either IDL or Python. There are individual programmers that use their language of choice, but Python is universal.
>>
>>56161765
it just werks™
>>
>>56148387
It's can't fill the debilitating emotional void I feel because I have no waifu.
>>
Wtf I hate python now
>>
>>56148401
This, fucking python vn reader crashes if i click too fast.
>>
>>56148387
Cure your autism
>>
>>56148387
Can't do concurrency like go.

Can't compile into sharable binaries.

Can't avoid the GIL unless you want to is retardation like multiprocessing
>>
>>56166445
>>>56148387 (OP)
>Can't do concurrency like go.
Except that it can.
>Can't compile into sharable binaries.
What is py2exe?
>Can't avoid the GIL unless you want to is retardation like multiprocessing
What is Gil?
>>
>>56166463
async is blocked by GIL.

py2exe is windows only, gtfo

Exactly, what is GIL; maybe Google before looking stupid?
>>
>>56157128

what is c double plus? are you talking about c plus squared?
>>
>>56156212
yo NASA bro, what Code are you?
>>
>>56148387
Make you get hired.
>>
>>56151027
LuaJIT
>>
>>56151664
why is his dick above his navel
>>
>>56167459
yes
>>
>>56151664
im weirdly fapping to this
>>
>>56166501
Bro have you even heard of Celery for python
>>
>>56148487

Classes or structs like most programming languages
>>
>>56153786
>not worrying about mixed whitespace and tabs

God what a feelings
>>
>>56148387
input: 0.1 + 0.2
output: 0.30000000000000004
>>
>>56149230
Are you telling me that you don't indent in your brackets?

If you can't fucking tab, or hit your space bar 4 times, your autistic as fuck.
>>
>>56170223
That's a problem in any language
>>
>>56148387

be non-whitespace dependent
>>
>>56148425
Javascript
C++
Visual Basic -> master mathematics
>>
>>56148387
Multithreading
>>
>>56173662
import threading
>>
>>56173687
Let me rephrase that. Real multithreading
>>
>>56148387
It's Turing complete so the answer is obviously no.
>>
>>56174412
Ayy
>>
>>56174412
import real_multithreading


r u dum?
>>
File: Untitled.png (275KB, 600x480px) Image search: [Google]
Untitled.png
275KB, 600x480px
>>56151082
>>
>>56148425
C++, runtime error, C
You're all retarded
>>
>>56148387
Multiline anonymous functions
>>
>>56173662
The language can. The most notorious and popular implementation that 90% of the people will use can not.
Thread posts: 119
Thread images: 14


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.