Live data from Hacker News

Hello Lua

haxe.org

51–60 of 74 posts

Re: Hello Lua

#51
Does anyone think Haxe is a good server-side language? I'm still desperately thirsty for a server-side language that has a sound, yet understandable and easy-to-use static type system.

Re: Hello Lua

#52

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.

Definitely.

I use it for some game development projects and its able to compile and run code on all Windows/Mac/Linux/iOS/Android (all native code) and even Javascript+WebGL.

Obviously the framework I use is targeted to games but there are other frameworks that target webdev (can target Node.js/PHP and lots of other things).

Re: Hello Lua

#53

Does anyone think Haxe is a good server-side language? I'm still desperately thirsty for a server-side language that has a sound, yet understandable and easy-to-use static type system.

What about Go?

Re: Hello Lua

#55
post #53

Does anyone think Haxe is a good server-side language? I'm still desperately thirsty for a server-side language that has a sound, yet understandable and easy-to-use static type system.

What about Go?

[deleted]

Re: Hello Lua

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

Thanks for the authorship correction! Sorry, Daniel Stenberg, you complete stud!

Re: Hello Lua

#57
I did not get around to use haXe in a production env yet but it is one of the very few language/ecosystem/target areas where there has been a huge amount of both innovation and consolidation during the past n years.

Shouts to Nicolas and all contributors!

Re: Hello Lua

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

> "compiles"

* transpiles

Re: Hello Lua

#59
post #43
post #37

Earlier quoted context omitted.

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 w…

> CloudFlare's firewall system uses LuaJIT to analyse approximately 4 million GET requests per second. While I agree with your premise (LuaJIT is a pretty awesome project), this example means nothing in terms of performance. — "analyse" doesn't give an indication of the workload -- it could vary from "matching against a precompiled regexp" to running advanced statistical models. — 4 millions requests per second does…

> While I agree with your premise (LuaJIT is a pretty awesome project), this example means nothing in terms of performance.

Yup, without knowing deployment details etc this number doesn't really mean much.

perhaps you might have heard of the snabb-switch project ? which does line rate 10gbps forwarding of 64b packets on a single x86 core. entire thing is written in lua including the user land 'drivers' for Intel 10g cards :)

Edit: s/shabby/snabb (damn you autocorrect)

Re: Hello Lua

#60

Does anyone think Haxe is a good server-side language? I'm still desperately thirsty for a server-side language that has a sound, yet understandable and easy-to-use static type system.

Yeah, I think so. The most common server-side usages of Haxe are the php, node.js, C++, and neko targets.

UFront is a good example of a server-side usage for Haxe: http://ufront.net/

Post reply on HN