Live data from Hacker News

Why nobody talks about Lua

goplexian.com

71–78 of 78 posts

Re: Why nobody talks about Lua

#71

Earlier quoted context omitted.

I am still waiting for node.js for windows.

FWIW, I'm working on something similar in Lua, which uses libevent for high performance on Unix but also has a pure Lua (based on LuaSocket.select) backend for portability. I haven't tested it on Windows yet, but I don't expect any issues with running it there, and I'm planning on supporting it as a platform (for developing convenience, not performance). It's reasonably complete, but its development is being driven b…

Sounds great. I can help if you want help. Is your project hosted somewhere?

Re: Why nobody talks about Lua

#72
post #71

Earlier quoted context omitted.

FWIW, I'm working on something similar in Lua, which uses libevent for high performance on Unix but also has a pure Lua (based on LuaSocket.select) backend for portability. I haven't tested it on Windows yet, but I don't expect any issues with running it there, and I'm planning on supporting it as a platform (for developing convenience, not performance). It's reasonably complete, but its development is being driven b…

Sounds great. I can help if you want help. Is your project hosted somewhere?

Not at the moment. I'm putting a webpage together to post a bunch of projects ATM, I'll get back to you. My contact info is in my profile.

Re: Why nobody talks about Lua

#73

I like Lua as a language. I especially like how easy it is to embed it into another program. I'll be using Lua for scripting my current project. The only thing I really don't like about it is that it treats all numbers as double-precision floats. It can be compiled to use 32-bit ints instead, but I'd really like to have access to both, especially since floating point arithmetic is insanely slow on embedded processors…

Consider using LNUM patch then.

Thanks, LNUM looks like it'll do just what I wanted.

Re: Why nobody talks about Lua

#76
post #32

I like Lua as a language. I especially like how easy it is to embed it into another program. I'll be using Lua for scripting my current project. The only thing I really don't like about it is that it treats all numbers as double-precision floats. It can be compiled to use 32-bit ints instead, but I'd really like to have access to both, especially since floating point arithmetic is insanely slow on embedded processors…

If the processor doesn't have an FPU, there's not much of an extra disadvantage to compiling with int32s and then making reals just another data structure, implemented in terms of ints, with a library to manipulate them.

You'd lose the syntax for real literals, though.

And although you're technically true, the lack of a library implementing reals as userdata let me guess that few people have found this approach practical. Unless I missed it?

I guess people just use the LNUM patch.

Re: Why nobody talks about Lua

#77

I love Lua. Wish there was a shorter syntax for anonymous functions, though. (function(x) return x*x end) Also, Lisp macros would be nice (didn't look at metalua)

Metalua comes out-of-the-box with a short lambda syntax: "function (x, y, ...) return foobar end" is shortened as "|x,y,...| foobar".

And it comes with macro capabilities, plus syntax extension facilities to make them more user friendly.

Re: Why nobody talks about Lua

#78
Lua is a GREAT scripting language. >_http://www.roblox.com/

The users are allowed to script in this dynamic(changing) enviroment. ROBLOX is a plastic brick based online lego game. The massive physics engine creates realistic explosions, and LUA lets you alter it, make things happen. LUA is a GREAT language.

Post reply on HN