AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Integrating Lua into AutoHotkey
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Fri Feb 22, 2008 4:28 pm    Post subject: Reply with quote

majkinetor wrote:
You can just go and use Ranorex.

...**** THAT...PAYWARE! NO!...

Lua's current syntax sucks...it's fine if they keep it & call it LuaDumbass, but they need to create a JavaScript-like syntax...with if(){} not if then else...& "&& || !" not "and or not"...also the way they convert x="10"+1 to 11 is really dumb...it should equal 101...+ is concat (& add) not anything else!...
Back to top
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Fri Feb 22, 2008 4:51 pm    Post subject: Reply with quote

Laughing
_________________
Back to top
View user's profile Send private message MSN Messenger
Guest






PostPosted: Fri May 23, 2008 9:44 pm    Post subject: Reply with quote

i agree if ahk is going to intergrate external language it must be lua not else. why? lua is in second position of simplicity ranking right after autohotkey. intergrating lua does not mean that we just get more commands. we will get much possibilities. wxlua is good sample. and many other lua-bindings. intergrating lua may require less effort than adding more standard windows controls that ahk missing currently. if you could learn ahk. there will not be any problem of learning lua.
Back to top
Fry(^)
Guest





PostPosted: Sat May 24, 2008 4:18 pm    Post subject: Reply with quote

majkinetor wrote:
AHK lang sucks IMO.


Thats crazy talk.

AHK does not suck
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sat May 24, 2008 10:22 pm    Post subject: Reply with quote

Our dear anonymous guest is a good troll...
If he wants JavaScript syntax, just use JavaScript, I don't see where the problem is.
I love C-like syntax, but I have absolutely no problem with Lua syntax, which is simple and terse, and probably much more readable for the newcomer than C syntax, with so much symbols to memorize.
And unlike what he writes, + is for better for addition only, not for concat...
Autoconversion of types is common in some languages, Perl trying hard to make it in every possible form (like "x" * 10 giving "xxxxxxxxxx"...)

Back to original idea, I only skimmed, but I don't see the interest to embed a language into another.
I was playing with the idea of using the code of AHK as library supported by Lua, but it is too much work, and as long as AHK is GPL (still need some bits to be rewritten to get rid of it), I wouldn't take this work anyway.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Thu Jun 05, 2008 3:45 pm    Post subject: Reply with quote

Philho wrote:
Back to original idea, I only skimmed, but I don't see the interest to embed a language into another.

Nobody said that. The point was to totaly remove the weakest part of the AHK - its language. Not to embade Lua into the current form of AHK - that is horror. Smile
_________________
Back to top
View user's profile Send private message MSN Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2391

PostPosted: Fri Jun 06, 2008 4:16 am    Post subject: Reply with quote

majkinetor wrote:
The point was to totaly remove the weakest part of the AHK - its language.
Thousands of users seem to disagree... or they'd be using lua instead of AHK...
Back to top
View user's profile Send private message Visit poster's website
Tuncay



Joined: 07 Nov 2006
Posts: 383
Location: Berlin

PostPosted: Fri Jun 06, 2008 4:24 am    Post subject: Reply with quote

corrupt wrote:
Thousands of users seem to disagree...

... does not mean, that all of them knows about Lua and the advantages what we could have ...
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2391

PostPosted: Fri Jun 06, 2008 4:30 am    Post subject: Reply with quote

Tuncay wrote:
corrupt wrote:
Thousands of users seem to disagree...

... does not mean, that all of them knows about Lua and the advantages what we could have ...
True, but it likely means that the majority of them like the current syntax/functionality. The suggestions here sound like the outcome would end up being lua with AHK functionality added in - not the other way around... unless I'm misunderstanding...
Back to top
View user's profile Send private message Visit poster's website
tank



Joined: 21 Dec 2007
Posts: 471

PostPosted: Fri Jun 06, 2008 3:21 pm    Post subject: Reply with quote

Relative new commer and Newb here
but I agree the syntax of ahk is ..... well clunky the language alone
the functionality is great
and what is it people finds so objectionable to a strict well defined language that is simple and well defined

i use vb js php fluently
of them my fav is php of course
but to much flexibility leads to poor development initiatives because it creates to many obsticals
Code:
ahkvar:="this is text"
ahkvar= % "this is text"
ahkvar=this is text
ahkvar=
(
this is text
)

seriously i could go on and on why why do we need so many ways to set text yes im aware one is expression one is forced expression one is text
one is multi line
good god
concatenate if you need all of that instead
Code:
ahkvar="text"

is all thats needed
variables dont need to be in quotes any how and we have a concatenation and new line characters already


sorry im done now just figured i would add to this rant
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6560
Location: Pacific Northwest, US

PostPosted: Fri Jun 06, 2008 3:23 pm    Post subject: Reply with quote

:= and = will be merged into just = in v2 of ahk
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2391

PostPosted: Sat Jun 07, 2008 4:57 am    Post subject: Reply with quote

tank wrote:
seriously i could go on and on why why do we need so many ways to set text yes im aware one is expression one is forced expression one is text
one is multi line
good god
concatenate if you need all of that instead
Code:
ahkvar="text"

is all thats needed
variables dont need to be in quotes any how and we have a concatenation and new line characters already
The main reason was likely to allow stuff like
Code:
a = blah
myvar := a
%myvar% = Hello World
MsgBox % "blah = " . blah
Do ya feel it now? Do ya? huh? Do ya? Laughing Wink
Back to top
View user's profile Send private message Visit poster's website
tank



Joined: 21 Dec 2007
Posts: 471

PostPosted: Sat Jun 07, 2008 5:05 am    Post subject: Reply with quote

corrupt wrote:
tank wrote:
seriously i could go on and on why why do we need so many ways to set text yes im aware one is expression one is forced expression one is text
one is multi line
good god
concatenate if you need all of that instead
Code:
ahkvar="text"

is all thats needed
variables dont need to be in quotes any how and we have a concatenation and new line characters already
The main reason was likely to allow stuff like
Code:
a = blah
myvar := a
%myvar% = Hello World
MsgBox % "blah = " . blah
Do ya feel it now? Do ya? huh? Do ya? Laughing Wink


all of which can be accomplished without the need for all of the insain ways it is done in ahk
in most other lang's
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2391

PostPosted: Sat Jun 07, 2008 5:18 am    Post subject: Reply with quote

tank wrote:
all of which can be accomplished without the need for all of the insain ways it is done in ahk
in most other lang's

AutoHotkey isn't the only language that I use... What's so insane about the current methods? They are very simple...
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3615
Location: Belgrade

PostPosted: Sat Jun 07, 2008 12:34 pm    Post subject: Reply with quote

Quote:
What's so insane about the current methods? They are very simple...

They are unintuitive, error prone and generaly very limited in expressivness. You also don't have some basic programming mechanisms.

It didn't matter much when AHK was generaly used for 10 - 50 line scripts. Today AHK is used more broadly so now it does matter.

Also, Lua is separately developed wich means that functionality could change on its own, and language on its own by the team of dedicated ppl.

About "simple" part, to me, Lua is easier to learn and understand.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group