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

Pages: 1-4041-

Web Development in Lua

Name: Anonymous 2010-03-20 10:53

Is it possible or advisable? It seems to me that all of the languages traditionally used for server side scripting (Python, PHP, Perl) are fucking abominations. According to Google, there is a mod_lua out there.

Name: Anonymous 2010-03-20 11:11

If you think every other language is an abomination, why would you have any reason to think that Lua wouldn't be?

The only thing Lua is good for is bolting on a scripting subsystem to a game so that retards can make stupid add-ons for it.

Name: Anonymous 2010-03-20 11:16

>stupid add-ons for it.
Like, support for Unix-powered dildos

Name: Anonymous 2010-03-20 11:31

>>3
Teledildonics is the future, after all.

Name: Anonymous 2010-03-20 11:47

User:is Teledildonics the future?
Cleverbot:Partly, but surely we can act to create the future we want.

Name: Anonymous 2010-03-20 14:04

Teledildonics is a 35 year old term. I think it's important that everyone should know that.

It is the benchmark for VR.

Name: Anonymous 2010-03-20 17:11

>>6
After all, all advancements in technology were driven by pornography.

Funnily, I looked up "war drives technology" in Google to see if there was an established sentence I could replace a word in, and to my amusement the first result is "Pornography Drives Technology".

Name: Anonymous 2010-03-20 17:42

>>6
When i hear the word "teledildonics" i reach for my phaser

Name: Anonymous 2010-03-20 18:23

>>8
Do I know what you mean by phaser?

Name: Anonymous 2010-03-20 19:14

>>6
Teledildonics is a 35 year old term
[citation needed]

Name: Anonymous 2010-03-20 19:34

Possible
Um, duh?

Advisable
Depends on numerous factors. If it's a personal project, do whatever the fuck you want. If it's a business project, you need to take your business considerations into account.

>>2
Because Lua is extremely lightweight, simple, and designed perfectly for embedding with C. Therefore, it is a good scripting language on its merits.

Name: Anonymous 2010-03-20 21:48

>>11
A good language for writing small bits of scripting code does not make a good language for standalone development of a full application.

Lua's merits are primarily that it has a lightweight, flexible API, and supplies very little in the expectation that the bulk of the code will be supplied by some other application into which it is being embedded. To try to use it by itself for anything beyond the most simplistic and trivial toy application is surely a mistake; you will only end up writing large chunks of code in C, which is certainly the last thing you want to be doing for a web application.

Name: Anonymous 2010-03-20 21:55

>>12
At the beginning, a scripting languages are fine for the purpose of simple scripts. Over time, people will want to achieve more complex results which inevitably result in the abuse of the language to contort it to perform. In the end, people will want achieve things that are easily supported in full programmng languages like Python, PHP or Perl.

Name: Anonymous 2010-03-20 22:03

full programmng languages like Python, PHP or Perl
Why do you list interpreted scripting languages only?
Those aren't the best examples of general-purpose languages.

Name: Anonymous 2010-03-20 22:11

>>14
I'd be fucked doing web programming in languages that required manual memory management.

Name: Anonymous 2010-03-20 22:34

>>15
Lua is more of a `real' language than PHP. It's had far more time go into it's design. Lua has a lot in common with javascript. Personally, I'd choose javascript over Lua for server side scripting since you get the benefit of using the same language client and server side.

Name: Anonymous 2010-03-20 22:49

>>15
Where did you see me mentioning manual memory management?
Have you not heard of any other general purpose language than C?C is more of a system's language than general purpose.

Some examples of general purpose langauges: Common Lisp, SEPPLES, D, Haskell, GO, C#, Java, ...
They are all suitable for web development, and they are all garbage collected. Some of these languages have very advanced web frameworks and some even implement web application servers which you can extend as you wish. They tend to be compiled to native code or JITted. And they're almost always better alternatives to using PHP.

Name: Anonymous 2010-03-20 22:51

SEPPLES is exactly as garbage collected as C is.

Name: Anonymous 2010-03-20 23:08

>>18
You can add garbage collectors to C, just don't expect them to be as good as precise ones. The thing about SEPPLES is that it's possible to avoid manual memory management, even if the approach is not the best one.

Name: Anonymous 2010-03-21 6:19

Lua is the real abomination.  You have to explicitly declare variables local or else they're global.  That is the definition of fucked up.

Also, library support in Lua is nonexistent.  Good luck with that web thing though.

Name: Anonymous 2010-03-21 6:24

Real Men do web development in C.

Name: Anonymous 2010-03-21 8:29

>>21
You quiche eaters, real programmers use 8088 assembler.

Name: Anonymous 2010-03-21 9:06

>>22
* VAX

Name: Anonymous 2010-03-21 10:03

VAX MY ANUS

Name: Anonymous 2010-03-21 10:05

WAX MY ANUS

Name: Anonymous 2010-03-21 11:04

>>25
Gonna have to pay me a little for that one.

Name: Anonymous 2010-03-21 11:43

WANE MY ANUS

Name: Anonymous 2010-03-21 11:59

>>26
And all the other things you do for him are free? You are a sick individual.

Name: Anonymous 2010-03-21 12:20

>>27

The waning gibbous.

Name: Anonymous 2010-03-21 13:36

>>22
That shit ain't portable, dode.

Name: Anonymous 2010-03-21 13:45

>>30
Wrong. See DOSBox.

Name: Anonymous 2010-03-21 14:15

>>31
There's plenty of old DOS applications that just don't work in DOSBox. That's because everybody was a cowboy in real mode - they hooked interrupts, switched to protected mode, setting up their own mini OS to get more memory, and various other tricks which DOSBox just can't handle. When I want to run such applications, I just fire up my DOS VM. Now that is reliable.

Of course, who would write 16bit x86 web applications. You'd probably write 32bit x86 or 64bit x86, and maybe add a portability layer(futile as it is), if you wanted to support both *nix or win*. Or you could ... you know, write in C. Wait, you're doing web development, performance only matters here for very large scale sites, so you can even use SLOWASFUCK if you wanted, or you could pick a reaonably fast compiled or JITted general purpose language which already has a bunch of web frameworks/web servers written for it, and just use that and make your site in a few hundred lines of code, instead of going for high thousands by the road of asm or C.

Name: Anonymous 2010-03-21 14:25

>>32
All of the things you mentioned work fine in DOSBox.
Try harder.

Name: Anonymous 2010-03-21 16:35

>>33
I have plenty of applications which plain don't work in DOSBox and work fine in a VM, or on a real machine.

Name: Anonymous 2010-03-21 19:11

Step 1: Use slowest language in existence to write your website.
Step 2: Couple with crap »database«.
Step 3: Sprinkle magic memcache powder liberally.

And it works!

Name: Anonymous 2010-03-21 19:22

I will write my web application in my brainfuck interpreter written in ruby.

Name: Anonymous 2010-03-21 21:07

>>36
You should use xml for your database

Name: Anonymous 2010-03-21 21:31

>>37
XML is the future!

Name: Anonymous 2010-03-21 22:59

>>38
Hmm...
Teledildonics is the future
XML is the future

Teledildonics is XML!!

Name: Anonymous 2010-03-21 23:15

>>34
dosbox is a vm.
seriously, try to be less obvious when trolling in the future.

Name: Anonymous 2010-03-21 23:23

>>39
Transitive property for the whoops, thought I was a twelve year-old for a second!

Name: Anonymous 2010-03-22 1:54

>>20
this is a total myth. it's so easy to bind to any C library you need that library support is only a *consideration* if you absolutely -cannot- write C to save your life.

seriously, you can import all the libraries you need in <200 lines of C.

Name: Anonymous 2010-03-22 7:04

>>40
Look at it that way. Real VMs, like VMWare or VirtualBox, they only run on x86 architecture. They use your processor to execute code of your DOS programs. You can't run DOS in VirtualBox on ARM processor.

DosBox, on the other hand, works on all architectures, because it is an interpreter. It uses processor to emulate another processor, not to run programs. That's why its functionality is so limited.

Name: Anonymous 2010-03-22 7:06

>>42
I'm sure he wasn't even talking about C libraries. Lua has no concept of modules; if you want to add functionality of some lua program into another, you have include whole file, there's no other way. This is the problem with lua libraries, absence of them.

Name: Anonymous 2010-03-22 14:42

>>44
That's why you learn to write proper Lua, then you won't have this problemdon't bother trying to write anything too complex in a language intended for cheap game scripting.

Name: Anonymous 2010-03-23 12:54

Lua on Laughter

Name: Anonymous 2010-03-23 13:22

I am interested in web scripting with Lua.

Name: Anonymous 2010-12-21 6:41

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