XlegoX
#48936732Sunday, June 19, 2011 8:56 PM GMT

"What would be the use of making it strictly typed? It would be a lot more similar to .. strictly typed languages, yes. But it wouldn't be faster, if anything it'd be a lot slower." No, if anything it would be a lot faster, In fact, you wouldn't even need to compile it to Lua-assembly code to get a lot of those benefits. Stuff you could do while still having it completely translated to normal text Lua code: 1- Dead-Code elimination It's possible to tell in a lot more cases where there's dead-code (code that will never execute) if you have a statically typed language, especially if it has const-correctness. EG: local activate_spawns = false --never gets changed in the code if activate_spawns then ... end 2- Function Inlining and Folding It's also possible to tell when a given function dispatch will always be to the same code, and just inline it to avoid ever doing the function call in the first place so long as the code in the function is sufficiently short. EG: function square(num) return num*num end --... local a = square(5) --> Can be calculated at compile-time local b = square(a) --> Can also be calculated at compile-time local c = square(num_from_user()) --> can be optimized to: local __temp = num_from_user() local c = __temp*__temp --> no function-call needed 3- Object unpacking It's also possible to unpack an object if you can tell that the whole object won't actually be needed: function doPrint(a oftype SomeObject) print(a.Value) end function doStuff() doPrint(new SomeObject{ Value = 5 }) end doStuff() Can be optimized to: print(5) Through fully unpacking the object and inlining the function calls. Basically, the bottom line is that you won't get faster than pure Lua code. BUT you will get faster then high-quality well abstracted code: That is you can write your code in a really neat clean way and still have the same performance that you would if you had written it in as efficient a way as possible, it being really messy and convoluted as a result.
booing
#48940073Sunday, June 19, 2011 9:59 PM GMT

:P Oysi, you are a master scripter, but you have no creativity... nob have u even THOUGHT about string-embedding? Made the embedding surrounded in %type%-s. For an examle: a=5 "My age divided by 2 is %i%a%i%." >> "My age divided by 2 is 5."
booing
#48940150Sunday, June 19, 2011 10:01 PM GMT

hmm not %i%a%i%, how would you tell a from a string or something else? Make that %i%var:a%i% instead :P
oysi93
#48947050Monday, June 20, 2011 12:05 AM GMT

SNC, putting it in parenthesis would definitely make it possible. Thanks! =3 Also, I never planned on making it strictly typed. And seeing as mossy typed is a lot easier for newbies and harbor, ill go with that.
MrNicNac
#48947131Monday, June 20, 2011 12:06 AM GMT

"And the speed is equal to a normal lua script that would do exactly the same, minus the time it takes for it to parse. Which is like 0.001 for a 1k lined script or something. xD" Really now... that could be useful to help me learn syntax of other languages.
SDuke524
#48949549Monday, June 20, 2011 12:49 AM GMT

I think if it had some databse functions like mysql then it would be worth learning.
miloguy
#48964325Monday, June 20, 2011 5:08 AM GMT

MAKE JAVASCRIPT INTERPRETER IN ROBLOX LUA
aboy5643
#48966654Monday, June 20, 2011 6:11 AM GMT

Are you making custom libraries perhaps??
Merlin11188
#48966702Monday, June 20, 2011 6:12 AM GMT

Wow. I made something like that a couple months ago! Rather simple, really. However, yours is probably going to be more efficient than mine.
oysi93
#48967739Monday, June 20, 2011 6:49 AM GMT

@Merlin I've made something very similar before, too. But then I was too focused on making a new language. Here I'm basically modding the syntax, by doing fancy string manipulation stuff. =3 Which means that everything that works in normal lua, will also work in this ... language.
OBF
#48967754Monday, June 20, 2011 6:50 AM GMT

Lua++, lol. Anyways, when will it be released? Sounds epic.
aboy5643
#48967798Monday, June 20, 2011 6:52 AM GMT

Lua# That would be fail :P
oysi93
#48967868Monday, June 20, 2011 6:55 AM GMT

"Anyways, when will it be released? Sounds epic." I'm not sure, yet. Thanks, though. =P I'll probably release it in a few days. =) And I'm planning on calling it: cLua, or rather CLua. Short for Custom Lua.
OBF
#48967896Monday, June 20, 2011 6:56 AM GMT

Cool. Source code too?
oysi93
#48967960Monday, June 20, 2011 6:59 AM GMT

Aye. Though I need more ideas for it. Btw, I just noticed a major typo in my first post here. xD "I will not be able to manipulate the syntax in which you code. =P" I will _ONLY_ be able to manipulate the syntax in which you code...
OBF
#48968115Monday, June 20, 2011 7:05 AM GMT

What's your current syntax for functions, tables and events?
Merlin11188
#48968692Monday, June 20, 2011 7:29 AM GMT

Mine was very basic, I just replaced some of the syntax and made comments. For instance, the function data type was declared f_funcName().
SDuke524
#48968905Monday, June 20, 2011 7:39 AM GMT

will it have database functions? That would make it epic. results=CLua_query("SELECT name FROM table WHERE id='" .. i .. "'")
oysi93
#48971108Monday, June 20, 2011 10:08 AM GMT

@OBF You didn't have to add events in your question. Object.Event:connect(Func) Object (Table) .Event (Table) :connect (Function) Func (Function) Heh, anyway. Same syntax as lua there. Though if you had something else in mind...
Friaza
#48977226Monday, June 20, 2011 2:43 PM GMT

Ohh I see hints of Dream Maker (DM) in there, it sounds like a cool idea.
oysi93
#48986218Monday, June 20, 2011 5:46 PM GMT

Any more ideas?
kingkiller1000
#48986677Monday, June 20, 2011 5:53 PM GMT

How the heck do you get the machine to read your code and know what to do?!
Coalescent
#48987245Monday, June 20, 2011 6:01 PM GMT

Someone should make a totally simple language. Example: Give.jakinator90.chocolate.upon.entering. Lol, I know, HARD.
Waterlimon
#48989349Monday, June 20, 2011 6:29 PM GMT

@xlegox wouldnt it make the code faster than if you wrote the same thing in normal lua? Because you could optimize it more :P
Varp
#48989551Monday, June 20, 2011 6:31 PM GMT

"I will _ONLY_ be able to manipulate the syntax in which you code..." Ah. I was confused previously. "wouldnt it make the code faster than if you wrote the same thing in normal lua?" It takes less skill to get more speed.