If Haxe had an interpreter (not hscript as it is far too limited) I would use it for a lot. Now compiling takes too long. The JS version is quite fast but not good for everything. It's a fantastic product though; in my experience it is write once - run anywhere. With some tweaks but that's to be expected. Please someone implement an interpreter in Haxe for Haxe.
Hello Lua
31–40 of 74 posts
Re: Hello Lua
#32Any tutorial for a crossplatform app on haxe with using native features ( eg. gps)?
Re: Hello Lua
#33Haxe is one of the best kept secrets of the programming world. Created by none other than the author of curl, it's A C-ish, javascripty, but strictly typed language with almost infinite portability. It "compiles" to many different target languages, from PHP to Java to Python to C++ and more. It's fast, has a beefy standard library, well-documented system interfaces, and just feels fun. A remarkable accomplishment.
[1]: https://en.wikipedia.org/wiki/Curl_(programming_language)
Re: Hello Lua
#34Haxe is one of the best kept secrets of the programming world. Created by none other than the author of curl, it's A C-ish, javascripty, but strictly typed language with almost infinite portability. It "compiles" to many different target languages, from PHP to Java to Python to C++ and more. It's fast, has a beefy standard library, well-documented system interfaces, and just feels fun. A remarkable accomplishment.
Re: Hello Lua
#35Earlier quoted context omitted.
ES has all of those things except for requiring that a statement ends with a semicolon.
I would disagree that ES has classical inheritance. ES6 has syntactic sugar over prototypical inheritance that resembles classical inheritance in other languages, but it's still prototypical under the hood.
Re: Hello Lua
#36Earlier quoted context omitted.
I would disagree that ES has classical inheritance. ES6 has syntactic sugar over prototypical inheritance that resembles classical inheritance in other languages, but it's still prototypical under the hood.
Is there a meaningful ? I.e., what does classical inheritance get you that prototypes-under-the-hood don't? For a programmer using classes, that ES's are implemented using prototypes should be as important has how the JVM works.
Prototypical "inheritance" allows different types of values to be assigned to the same symbol.
E.g. if you have a method bob() on a prototype, you can set object.bob = 'astring'; and it isn't an error.
Re: Hello Lua
#37Earlier quoted context omitted.
I agree completely! ... Well, almost agree completely. Daniel Stenberg is the author of curl: https://daniel.haxx.se/ Nicolas Cannasse is the (main) author of haxe: https://medium.com/@ncannasse Both are awesome in their own right. I wrote the Lua target announced here, and am happy to answer any questions.
Can you explain who is the target audience for Lua target? What can I do with it?
How much speed?
CloudFlare's firewall system uses LuaJIT to analyse approximately 4 million GET requests per second.
(Small pause, reread)
That much speed. That was the figure in June 2015, at least.
Some of the autogenerated code looks like this: http://i.imgur.com/F5aT0NF.png (snagged via pdfimages from http://www.slideshare.net/jgrahamc/lua-the-worlds-most-infur...)
This video was where I had my major TIL moment: http://www.thedotpost.com/2015/06/john-graham-cumming-i-got-...
I also got the impression from the one other page of autogenerated code briefly visible in this video that the firewall logic is also full of regular expressions. And yet, it completes its analysis in roughly less than 1 millisecond.
It's almost a crime I haven't learned LuaJIT yet. :P
That said, looking at the slideshare link, you can see that Lua as a language has some pretty annoying syntax, so I've sorta been shying away from it.
So maybe I'll learn HaXe instead. :D
Re: Hello Lua
#38Sorry for off topic, just a heads up for the maintainers of haxe.org. Several links in the footer, inside 'Learn Haxe' section are broken. They point to '/http...'.
Re: Hello Lua
#39Sorry for off topic, just a heads up for the maintainers of haxe.org. Several links in the footer, inside 'Learn Haxe' section are broken. They point to '/http...'.
Also, on most websites, the logo/brand in the top left is a link to the homepage. I clicked it a couple times until I saw the "Home" link next to it.
I don't bother clicking that logo anymore.
Re: Hello Lua
#40Sorry for off topic, just a heads up for the maintainers of haxe.org. Several links in the footer, inside 'Learn Haxe' section are broken. They point to '/http...'.