Live data from Hacker News

Hello Lua

haxe.org

21–30 of 74 posts

Re: Hello Lua

#21
Another reason to make 2d games with haxe! It already has some great frameworks and libraries for it. So its great from a practical perspective if you want to build something like that.

I have found the language to be a bit quirky. Its powerful but an odd combination ocaml features and actionscript cruft.

Re: Hello Lua

#22
If you have a piece of business logic that you want to make available in N languages/platforms, is Haxe a valid option? The only other alternative I know is to write a library in C/C++/Rust and use the FFIs in your target languages to call it.

Re: Hello Lua

#23
post #6

Earlier quoted context omitted.

Haxe is what ActionScript should have been. However (imo), it's hard to find a niche for it now. What does it get me that Perl and OCaml don't? I've been drawn to Haxe several times over the years, but have never really thought of a project, "huh, Haxe would be a great fit here". Maybe if I wrote a mobile game or something.

The reason we started using it at work was we could target both Javascript and Flash from the one codebase. However, we finally don't need to support flash anymore... so now there's no reason to not just write in javascript.

I find Javascript is quite a good reason not to write in Javascript, but YMMV...

Re: Hello Lua

#24

Earlier quoted context omitted.

Off the top of my head, Haxe has: block level scoping (vs. function level scoping) classic inheritance (vs. prototypes) distinction between hash and object (vs. nope) required semicolons (vs. still uncertain on that after 10 years) There's also the whole raft of static typing features, but there's too many of those to mention.

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

#25
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.

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?

Re: Hello Lua

#27
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.

You might be also interested in https://github.com/alehander42/pseudo-python . It's still in very early stages, but some of it goals overlap with Haxe-s

Re: Hello Lua

#28

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?

My guess would be for current lua embedding scenarios - for example for use as a scripting language in games.

Re: Hello Lua

#29
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.

[deleted]

Re: Hello Lua

#30
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.

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.

Lua is still my goto embedded scripting language. I don't have any experience with haxe per se, but is the transpiler embeddable as well?
Post reply on HN