News for hackers. Stuff that matters.
Re:Nodejs+Fabric as fast as multi-threaded C++ by FabricPaul on Saturday November 12, 2011 @01:03PM (#3228357)
Hi there - yes, it's partly about marketing message. When we did early validation, people were concerned about a 'custom language' - the reality is that the majority of the application is written in JS - the performance parts are in KL. KL itself is almost identical to JS, but right now you have to declare types. In the future we may switch to inferred types, at which point code will be indistinguishable from JS. Just don't use closures :)
Re:Nodejs+Fabric as fast as multi-threaded C++ by almost on Saturday November 12, 2011 @05:40PM (#3229132)
> Just don't use closures :)

So very much not Javascript then

Re:Nodejs+Fabric as fast as multi-threaded C++ by FabricPaul on Saturday November 12, 2011 @05:50PM (#3229156)
Closures break the high-performance part of things. If we could have just used JavaScript, we would have done so - KL is as close to JavaScript as we can get, and still offer native, multi-threaded performance. If we introduce inferred types, then the only difference will be 'no closures'.
Re:Nodejs+Fabric as fast as multi-threaded C++ by almost on Sunday November 13, 2011 @01:58PM (#3231465)
That makes sense, I'm sure it is hard to optimize closures and untyped code. However, if you remove those you no longer have JavaScript so it is incorrect to say that you have made Javascript fast, you've just created a different language and made that fast. Of course if it plays nicely with Javascript that's cool, but please say that!
Re:Nodejs+Fabric as fast as multi-threaded C++ by FabricPaul on Sunday November 13, 2011 @02:56PM (#3231643)
I agree. I have made a separate post on this thread that calls this out.

Thanks -Paul