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.
>>52131035import 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*