Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Language ShowOff Part #1: Lua

Name: Anonymous 2011-01-21 19:45

Pros:
   * Tiny
   * Crossplatform
   * Easy to embed
   * Fairly easy to extend
   * Has no external dependencies
   * Easy to learn due to simple syntax
   * Has metatables, which allow creating objects, and with that, allow OOP

Contra:
   * The builtin stdlib doesn't allow much more than just basic IO
   * The stackoriented API might be confusing to those unfamiliar with the concept of stackbased APIs
   * Due to the do ... end syntax, closures and co tend to look clumsy:
   
       pcall(function()
           stuff ...
       end)

Name: Anonymous 2011-01-22 21:02

>>36,40
I prefer Lua's object model (i.e. protos, not classes), especially for scripting. But one thing I dislike in OO is meta-anything and Lua's metatables are so broken and/or not completely documented in 5.1 (unless you want to buy the book.) It's a real turn-off. For OO scripting I'm most fond of Io: http://www.iolanguage.com/

Another thing I've found is braces aren't that important. As long as blocks are delimited consistently and by something other than weird whitespace configurations I am usually fine with it.

Name: Anonymous 2011-01-22 21:14

>>41
I prefer Lua's object model (i.e. protos, not classes)
Why do prototype based OO languages always suck? I love prototypes, but: Lua sucks, JS sucks, Io is RUBY AS FUCK.

Name: Anonymous 2011-01-22 21:18

>>42
JS sucks
I'd love to know why you think that, unless it has to do with the standard library. (Solution: stop coding for the web.)

Name: Anonymous 2011-01-22 21:19

>>42
They don't "always suck;" you just can't be satisfied.

Name: Anonymous 2011-01-22 21:23

>>43
It's shitnamyc typed, has too many gotchas and dos and don'ts.
And no, === and !== solve just one problem.
I hope ECMAScript ``Harmony'' will fix JS, it's the only language I'd use other than Lisp and C. I doubt it though.

Name: >>45 2011-01-22 21:26

shitnamyc typed
I DON'T MEAN DYNAMIC TYPING, IT IS GOOD AND ALL, I'M A LISPER AND I KNOW IT. I MEANT THE TYPE COERCION.

Name: Anonymous 2011-01-22 21:36

>>46
Oh okay, I was going to flame you for that. Never mind then.

proggles~~

Name: Anonymous 2011-01-22 22:16

>>45
Gotcha. I the gotchas are mostly the ever multiplied product of things MS did in IE. One thing about Harmony is the opt-in strategy. I don't know how well that will work out, but if it does it may bring a lot of relief to the existing problem of support for terrible decisions made in the past.

The type coercion hasn't given me any serious problems. Given that it's meant for web designers to ruin their sites with, I would have expected a far worse situation... I think we're getting off easy.

Name: Anonymous 2011-01-23 6:37

>>48
The type coercion hasn't given me any serious problems.
A flaw is still a flaw, they need to get rid of it.
Also, I'd like macros.

Name: Anonymous 2011-01-23 23:57

>>49
But all languages are flawed. Type coercion in Lua is such a minimal thing by comparison with the other flaws in the language and in the flaws in other candidate languages. Sure it should get fixed, but I'd sooner see documentation. Maybe there's a new metatable field that I can use to fix it myself.

Name: Anonymous 2011-01-24 0:01

>>50
What Lua? We were talking of JS.

Name: Anonymous 2011-01-24 0:59

>>51
Oh right. Oops. Same deal, really... only without the rest of the problems in the language. I mean if you code for a specific JS engine you're fine.

Name: Anonymous 2011-02-03 2:36

FORCED INCLUSION OF CLOSURES

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List