Live data from Hacker News

Android: The Land That Python Forgot

speakerdeck.com

41–50 of 127 posts

Re: Android: The Land That Python Forgot

#41
post #7

You can replace Python in Ruby or Lua for the most part and also Android with iOS. Dynamic languages aren't yet a big deal and I think it's because they don't bind well or give you a significantly better developer experience than Objective-C or Java on these platforms do. RubyMotion is probably the closest I've seen to making a language like Ruby or Python a very compelling mobile developer experience while maintaini…

the irony is the use of javascript in solutions like Titanium,to code ANYTHING but the ui ( the business logic is in javacript , the ui is native ). I like the approach though, it's a better approach than phonegaps and likes. the only drawback : doesnt seem the engine they use is opensource.

In Titanium, you code both the business logic and UI in Javascript. The Javascript UI APIs Titanium provides call native APIs under the hood.

Titanium is open source; the repository can be found on GitHub.

Re: Android: The Land That Python Forgot

#42
post #35

Earlier quoted context omitted.

Exactly. I've never understood why someone would prefer a untyped language. It's just a bad developing experience, code needs more debugging, it is harder to maintain and overall productivity is lower. Untyped languages are fine only for small scripting languages.

There's a difference between typed and statically typed. Python is a strongly typed language, but it is dynamic. > bad developing experience, code needs more debugging, it is harder to maintain and overall productivity is lower All of these observations are highly subjective. > Developing experience: I much prefer developing in python than java. If IDEs factor in, there are a number available for python, none of whic…

Working in C# right now and agonizing over the class hierarchy...

Re: Android: The Land That Python Forgot

#43
post #35
post #29

Earlier quoted context omitted.

I like to add some more. That's correct that the type system is the crucial attribute as a platform language. But that's not the only reason. It's also for correctness, safety, productivity and manageability. That's because a platform is huge and complex monster. So all those properties are archive-able only by automated tools, and those tools need rich metadata for each word of code. Type information is crucial meta…

Exactly. I've never understood why someone would prefer a untyped language. It's just a bad developing experience, code needs more debugging, it is harder to maintain and overall productivity is lower. Untyped languages are fine only for small scripting languages.

Are we really going to discuss this again?

> code needs more debugging, it is harder to maintain and overall productivity is lower

References?

Re: Android: The Land That Python Forgot

#44
post #33

Earlier quoted context omitted.

If you think that programming languages are strictly worse or better than others on a linear scale, then there is something important you have missed.

Always use the correct tools for the Job. Pragmatism wins

thumbs up.

Re: Android: The Land That Python Forgot

#46
post #25

Earlier quoted context omitted.

"write a Python compiler for iOS or Android to make it compelling, which means adding type checking " No PyPy is a (JIT) compiler for Python, no type checking addition needed.

the point is adding type system, not compiling it.

Python has a type system.

Re: Android: The Land That Python Forgot

#47
post #42

Earlier quoted context omitted.

There's a difference between typed and statically typed. Python is a strongly typed language, but it is dynamic. > bad developing experience, code needs more debugging, it is harder to maintain and overall productivity is lower All of these observations are highly subjective. > Developing experience: I much prefer developing in python than java. If IDEs factor in, there are a number available for python, none of whic…

Working in C# right now and agonizing over the class hierarchy...

I love C#, but when moving between it and python, I find I focus too much on the types and hierarchies.

Re: Android: The Land That Python Forgot

#48
post #36
post #35

Earlier quoted context omitted.

Exactly. I've never understood why someone would prefer a untyped language. It's just a bad developing experience, code needs more debugging, it is harder to maintain and overall productivity is lower. Untyped languages are fine only for small scripting languages.

I doubt you really mean untyped languages. Untyped languages includes many assembly languages, BCPL and some Forths. It does not include typical scripting languages like Perl, Ruby or Python - all of which are strongly typed.

To be pedantic, assembly languages do generally have multiple types, if by 'type' we mean 'a set of values disjoint from other sets of values'. For example, x86 has the types integer, floating point, MMX, SSE, and registers of these types cannot be confused for each other. It's just that these classifications/types aren't so useful, and we can't make our own (and perhaps all we really wanted was a distinction between integer and pointer)

Re: Android: The Land That Python Forgot

#49

What about performance? Seems one of the biggest concerns on mobile devices is to achieve high performance with low overhead. What kind of penalty comes with a separate python runtime?

Dalvik isn't very fast already; I doubt a native Python runtime is that much slower for lightweight tasks. The usual caveats apply, of course, in that you shouldn't try to do things that are ill-suited to your target platform (be it Python or Dalvik).

Re: Android: The Land That Python Forgot

#50
post #35
post #29

Earlier quoted context omitted.

I like to add some more. That's correct that the type system is the crucial attribute as a platform language. But that's not the only reason. It's also for correctness, safety, productivity and manageability. That's because a platform is huge and complex monster. So all those properties are archive-able only by automated tools, and those tools need rich metadata for each word of code. Type information is crucial meta…

Exactly. I've never understood why someone would prefer a untyped language. It's just a bad developing experience, code needs more debugging, it is harder to maintain and overall productivity is lower. Untyped languages are fine only for small scripting languages.

Thats your opinion dude
Post reply on HN