http://www.lua.org/pil/
http://www.lua.org/manual/5.1/
http://lua-users.org/wiki/TutorialDirectory
(12:29:10 AM) The topic for #lua is: http://lua-users.org/wiki/IrcChannel :: Paste on http://codepad.org/?lang=Lua :: Please consider registering with NickServ if you haven't already.
(12:29:16 AM) magic_mage: duuudes
(12:29:19 AM) magic_mage: ok lua vs tcl
(12:29:24 AM) magic_mage: tell me differences
(12:29:31 AM) magic_mage: why not take aolserver
(12:29:35 AM) magic_mage: and embed lua in it?
(12:29:36 AM) magic_mage: woa!!
(12:31:16 AM) magic_mage: is tehre a kqueue epoll lua webserver?
(12:31:30 AM) magic_mage: or does lua docontinuations so not ned fast embedded internpreter
(12:31:34 AM) spacemonkey: not used tcl, so this probably does not help much, but I have used lua extensively on embedded systems and huge corporate ones. Its easy, fast and works.
(12:31:44 AM) magic_mage: just fork and let lua process request more input and request db queries n stuff
(12:32:09 AM) magic_mage: can you run rsync n stuf from lua
(12:32:18 AM) spacemonkey: you can run what you like
(12:32:24 AM) magic_mage: or does lua kinda have its own rsyncy ssh way of synicing file from 1 box other?
(12:32:34 AM) magic_mage: in tclI canrun shell command
(12:32:36 AM) spacemonkey: I have used it as the main process controller in a real-time system
(12:32:38 AM) magic_mage: fromtclshell
(12:32:42 AM) magic_mage: oh wow
(12:32:46 AM) spacemonkey: just run shell commands from it
(12:32:57 AM) jesterKing left the room (quit: Changing host).
(12:32:57 AM) jesterKing [~nletwory@blender/coder/jesterKing] entered the room.
(12:32:58 AM) spacemonkey: or write your own C functions and use them from within lua, its easy
(12:33:29 AM) micro-world [~micro-wor@2001:470:1f0b:1bde::8669:9f50] entered the room.
(12:33:41 AM) micro-world left the room (quit: Remote host closed the connection).
(12:33:46 AM) spacemonkey: I had it directly interfacing with the hardware on a few products so its really flexible.
(12:33:58 AM) pcarrier left the room (quit: Ping timeout: 264 seconds).
(12:34:08 AM) legumbre_ [~leo@r190-135-51-175.dialup.adsl.anteldata.net.uy] entered the room.
(12:34:16 AM) spacemonkey: Also use it to serve web-sites doing a lot of number-crunching and SQL accesses for well over 3000 users.
(12:35:32 AM) legumbre left the room (quit: Ping timeout: 240 seconds).
(12:35:52 AM) magic_mage: woa
(12:35:56 AM) ***spacemonkey eagerly awaits his commision from Lua HQ
(12:35:56 AM) magic_mage: what kinda web setup?
(12:36:12 AM) spacemonkey: initially xavante, but it was crap
(12:36:14 AM) magic_mage: something liek modperl?
(12:36:18 AM) magic_mage: oh
(12:36:19 AM) spacemonkey: so now apache2 and wsapi
(12:36:23 AM) magic_mage: wsapi?
(12:36:41 AM) spacemonkey: http://lua-users.org/wiki/LuaWsapi
(12:36:51 AM) spacemonkey: I did an install guide for it yesterday
(12:37:07 AM) spacemonkey: http://keplerproject.github.com/wsapi/
(12:37:25 AM) micro-world [~micro-wor@2001:470:1f0b:1bde::8669:9f50] entered the room.
(12:37:47 AM) micro-world left the room (quit: Client Quit).
(12:37:58 AM) magic_mage: why not gninx or somethign everty?
(12:38:14 AM) magic_mage: apache 2 fork? or event or worker threaded?
(12:38:45 AM) spacemonkey: not sure I get you
(12:38:58 AM) magic_mage: ah its fastcgi
(12:39:13 AM) magic_mage: so apache hands off to fastcgi
(12:39:21 AM) magic_mage: cool
(12:39:40 AM) magic_mage: so that setupcan scaleto 1000s of users?
(12:39:48 AM) spacemonkey: yep
(12:39:53 AM) magic_mage: using say postgresql?
(12:39:55 AM) micro-world [~micro-wor@2001:470:1f0b:1bde::8669:9f50] entered the room.
(12:39:56 AM) magic_mage: backend
(12:40:01 AM) spacemonkey: probably, but I use mysql
(12:40:03 AM) micro-world left the room (quit: Read error: Connection reset by peer).
(12:40:41 AM) magic_mage: hardcore nerds alays calim pg nicer
(12:40:47 AM) magic_mage: I dont know who tobelieve
(12:40:57 AM) magic_mage: then there is firebird sqldb
(12:41:00 AM) magic_mage: hmm
(12:41:15 AM) magic_mage: so lua has lists? or what kinda data structures?
(12:41:21 AM) naohiro19 [~naohiro19@115-39-251-234.aichieast1.commufa.jp] entered the room.
(12:41:26 AM) spacemonkey: I use mysql in production systems and get paid for it. Good enough for me
(12:41:57 AM) magic_mage: how scale it?
(12:42:04 AM) magic_mage: use replicated read only salves?
(12:42:10 AM) magic_mage: slaves?
(12:42:22 AM) magic_mage: how much an hour?
(12:42:25 AM) magic_mage: like 200?
(12:42:29 AM) magic_mage: big consultant $$?
(12:42:31 AM) spacemonkey: depends on what you really want to do with it
(12:43:19 AM) spacemonkey: Each request is basically working on its own thread. Just write your application like you would on a mainframe
(12:43:30 AM) RenaKunisaki: wsapi and xavante could really use some decent documentation >.>
(12:44:07 AM) spacemonkey: Where would anyone start with those?
(12:45:30 AM) spacemonkey: For a period I was playing with the idea of porting lua into mongoose directly to avoid using all the keplerish stuff
(12:46:50 AM) magic_mage: so to learn it do i need to buy that programming lua 5.1 book?
(12:46:54 AM) magic_mage: is it anywhere free online?
(12:47:48 AM) magic_mage: http://lua-users.org/wiki/TutorialDirectory ah ha!!
spacemonkey Spark
(12:47:56 AM) spacemonkey: The whole book is free anyway online
(12:48:11 AM) magic_mage: spacemonkey: ok so to learn toprogram well with lua what dou reccomend?
(12:48:18 AM) magic_mage: well 5.0free
(12:48:18 AM) spacemonkey: just download lua and you will pick it up quickly. I dont recall a learning curve with it.
(12:48:21 AM) magic_mage: 5.1 ?
(12:48:35 AM) spacemonkey: http://www.lua.org/manual/5.1/
(12:48:41 AM) Textmode: and http://www.lua.org/pil/
(12:48:45 AM) magic_mage: well I am only basic program skill
(12:49:08 AM) magic_mage: ok
(12:49:18 AM) Textmode: read the pil (linked)
(12:49:24 AM) spacemonkey: Start with "hello world" :)
(12:49:37 AM) magic_mage: lol
(12:49:41 AM) magic_mage: ok
(12:49:55 AM) magic_mage: good for systems admin stuff too?
(12:49:55 AM) Textmode: heh
(12:50:04 AM) magic_mage: replace perl?
(12:50:05 AM) spacemonkey: I use it for everything
(12:50:08 AM) spacemonkey: yep
Thursday, May 5, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment