Live data from Hacker News

Hello Lua

haxe.org

31–40 of 74 posts

Re: Hello Lua

#31

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.

Is Neko what you'd be looking for? Or a completely interpreted version?

Re: Hello Lua

#32
Haxe seems an interesting alternative for mobile development ( cross platform) for my currently chosen way : Xamarin.

Any tutorial for a crossplatform app on haxe with using native features ( eg. gps)?

Re: Hello Lua

#33
post #2

Haxe 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.

Wait which curl are we talking about because I'm not sure Daniel worked on Haxe. There is also Curl the programming [1] language (which reminds me of Haxe's goals) but I don't think the creator of that worked on Haxe either.

[1]: https://en.wikipedia.org/wiki/Curl_(programming_language)

Re: Hello Lua

#34
post #2

Haxe 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.

Also, HaXe is the only viable technology which enables a high-quality canvas-based applications which mirror native applications (while also permitting compilation to those native applications).

Re: Hello Lua

#35

Earlier 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.

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.

Re: Hello Lua

#36

Earlier 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.

Classical inheritance enforces that a method can only be overridden by another method in a subclass.

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

#37

Earlier 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?

Well, with LuaJIT you get speed.

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

#38
post #18

Sorry 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.

Re: Hello Lua

#39
post #38
post #18

Sorry 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've been trained out of this because many company blogs link to the root of the blog, and not back to the company product website.

I don't bother clicking that logo anymore.

Re: Hello Lua

#40
post #18

Sorry 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...'.

Can confirm. "API Documentation", "Try Haxe", "Haxelib", and "Code Cookbook" all start with href="/http://".
Post reply on HN