[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
How would you fix python, /g/?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 34
Thread images: 1
File: python-logo-master-v3-TM.png (82 KB, 601x203) Image search: [Google]
python-logo-master-v3-TM.png
82 KB, 601x203
How would you fix python, /g/?
>>
>>52131035
Either:
- Harden the semantics so that it is a fast compiling, statically typed, semifunctional language with tail recursions.
- Fix the semantics and the interpreter so that it starts fast and can be embedded in a sane way.

Of course, that's only the technical side, I'm not so sure about how to fix the community.
>>
Make it statically typed and ditch the stupid OOP system
>>
>>52131189
I think the community is okay. What wiping with the community?
>>
>>52131216
The same thing that sucked about the vim community, basically. They think CPython is somehow defendable and that a BDFL is acceptable.
>>
>>52131035
It's hopeless. Tell them to use go or haskell or c++ or pretty much anything else (except maybe javascript heh)
>>
Ditch the GIL
>>
Make everyone use C#
>>
>>52131374
The Gil has issues - but it does make life simpler.
>>
>>52131496
Unless you do any multithreading.
>>
>>52131035
import faggot
print "op is a faggot"
>>
>>52131599
Why would you import a function and then dont even use it?
>>
>>52131189
>compiling, statically typed
that's a whole different language

>starts fast and can be embedded in a sane way
that's Lua
>>
>>52131651
he's from /v/eddit
>>
Make it like Visual Basic .net by allowing the user to enforce modern programming languages basics like static types and OOP encapsulation. That way you get all the lightness of Python combined with the ability to find bugs before runtime and a better code completion.

# just like vb.net, you can enforce certain rules inside a file
option explict on
option strict on

import random

abstract class World:

def say_hello() as str:
str x = "Hello"
return x

public class Hello(World):

int begin = 0
str y = ""

#no need for self everywhere
def __new__(begin as int, y as str):
self.begin = begin
self.y = y

# methods are public by default but they can be private if specified
private def get_random_number(end as int) as int:
int rn = random.randint(self.begin, end)
return rn

def print_message():
str message = self.say_hello() + self.y
print message

#static methods
static def static_method():
print "This is a static method"

#specifying the type is optional, type inference works
h = Hello(1, "World")
h.print_message()
print h.get_random_number()

>>
Kill yourself
>>
some one teach me this language
>>
It's already perfect.
>>
>>52131651
>function
>>
>>52131035
make it into java
>>
>>52131651

Because he only learned how to do Hello World in 20 languages and is using it to post that "joke", thinking it makes he smart or witty.
>>
remove the indentation stringency bullshit
>>
>>52137239
This
>>
>>52131035
delete it and start over
>>
remove double underscores, init, self
>>
>>52131651
Library
>>
>>52131035
You don't, leave it the fuck alone.

>>52131651
You're obviously just as retarded and more so for making it sound like you aren't

>>52132353
God... just leave. Fuck.
>>
remove java
>>
While we're on the subject of python, anybody know the best stack to host a django site on?
>>
>>52131189
>fix the community
Python has a great community.
>>
Easy, take out all the high level crap. Programming should not be this easy.
>>
>>52131717
>that's a whole different language
Good.

>that's Lua
No, that's Python with an interpreter built the way interpreters are supposed to be built.
>>
>>52138750
More like brainwashed.
>>
>>52139114
*tips fedora*
Thread replies: 34
Thread images: 1

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.