News for hackers. Stuff that matters.
Re:I Am Worried About The Future Of Python by dazzawazza on Monday September 24, 2012 @08:20AM (#4564233)
Regarding games: I chose lua over python because:

* smaller runtime foot print.

* faster runtime.

* simpler to embed

* the fewer batteries that are included are simpler to embed in your runtime. Python's libraries are often very tricky to embed.

I prefer python to lua, although they are both expressive and powerful languages, however the convenience of python isn't enough to trump the flexibility and speed of lua.

(edit formatting)

Re:I Am Worried About The Future Of Python by protomyth on Monday September 24, 2012 @09:36AM (#4564558)
There is also a lot more experience in the mobile space of using Lua than Python. That means a lot more blog posts and documentation.
Re:I Am Worried About The Future Of Python by dazzawazza on Monday September 24, 2012 @09:43AM (#4564588)
Ah yes, thanks for reminding me. This is also very important.
Re:I Am Worried About The Future Of Python by gte910h on Monday September 24, 2012 @01:14PM (#4565761)
And corona is a pretty nice kit for iOS/Android and is fully supported.

http://www.coronalabs.com/products/corona-sdk/

Re:I Am Worried About The Future Of Python by bitcracker on Monday September 24, 2012 @12:14PM (#4565347)
I also like Lua. The speed of the virtual machine is awesome. But sadly Lua is still missing Unicode support. This is a big issue that needs to be solved.
Re:I Am Worried About The Future Of Python by threedaymonk on Monday September 24, 2012 @06:39PM (#4567431)
> But sadly Lua is still missing Unicode support.

Whenever I hear someone complain about (lack of) Unicode support, my ears prick up. See, Unicode support is a many-headed beast, and almost no languages have very much of it, and most of what people naively think of as Unicode support (length, indexing into "characters", case conversion) doesn't really work when you take into account combining diacritics, ligatures, Turkish I, German S, etc.

I'm not especially familiar with Lua, but it transparently stores and compares UTF-8 strings, and there are even bindings for ICU. So what's missing from "Unicode support"? Script specifiers in regular expressions, perhaps? I'm asking out of genuine curiosity.

Re:I Am Worried About The Future Of Python by est on Tuesday September 25, 2012 @12:17AM (#4568538)
Those who fail to realize the importance of unicode support is the same group of people think handling strings with \0 terminator is OK.

But no, it's fucking not OK. Lacking basic unicode handling means everyone handles unicode strings in different ways, so various libraries clutter in basic string capabilities. Sometimes this really piss me off.

Re:I Am Worried About The Future Of Python by cmccabe on Tuesday September 25, 2012 @01:01AM (#4568672)
Um, UTF-8, a valid unicode encoding, handles strings with a null terminator just fine. Those who throw stones, should not live in glass houses.

Proper unicode support would include things like normalizing strings (Unicode has 4 different normal forms!) and testing for fuzzy equivalence. But last time I checked, the usual library for doing those things, libicu, was bigger than the whole Lua interpreter. So I can see why there isn't a lot of enthusiasm, especially if there isn't a real use case.

Re:I Am Worried About The Future Of Python by est on Wednesday September 26, 2012 @08:29PM (#4578722)
yes, packing icu with every lua distribution or standalone app is bad, and we don't even need to think about OS's Unicode capabilities. So every lang deserves to be suck at unicode handling. Because, you know, ICU is big.
Re:I Am Worried About The Future Of Python by bitcracker on Tuesday September 25, 2012 @11:16AM (#4570765)
> but it transparently stores and compares UTF-8 strings

Thanks for this good news! The last time I tried Lua it didn't work. UTF-8 is ok, full Unicode is not necessary.