Live data from Hacker News

Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

elementscompiler.com

101–109 of 109 posts

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#101
post #85

Earlier quoted context omitted.

The point I was trying to get across is that by cross-compiling from C/C++ with Emscripten, static type information can be used to give native performance, that a program written directly in Javascript wouldn't. It's still AOT in that sense - it's not like JIT where only hot bits of code get converted to native to code, and only then when some heuristics have determined what actual types the code ends up dealing with…

But it isn't AOT in CS speak.

I'm not sure how you claim to be the authority on 'CS speak', but it's a sufficiently blurred line here, for reasons I clearly explained and which you seem unable to understand. Emscripten/asm.js can use static information to generate Javascript which can be compiled to native code, before the code in question is run, aka Ahead of Time.

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#102
post #54

Earlier quoted context omitted.

In fact that's exactly what it does: https://blog.mozilla.org/luke/2014/01/14/asm-js-aot-compilat...

I wasn't aware there was a CPU that could run that code natively without a JIT translation layer.

There isn't, perhaps you're getting confused again.

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#104
post #85

Earlier quoted context omitted.

But it isn't AOT in CS speak.

I'm not sure how you claim to be the authority on 'CS speak', but it's a sufficiently blurred line here, for reasons I clearly explained and which you seem unable to understand. Emscripten/asm.js can use static information to generate Javascript which can be compiled to native code, before the code in question is run, aka Ahead of Time.

Well, I majored in compiler design.

Ahead of time compilation is used to describe the process of generating machine code at compilation time, in a form that can be executed directly by a processor without any additional transformation process.

Which clearly is not happening here, as the code is converted into JavaScript and relies on a JavaScript implementation to run. Regardless of the optimization processes used by the JavaScript engine.

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#105
post #59

Make a cross plattform game framework to this - as good as SpriteKit and I'm set. :) Otherwise I have to go with HaXe

Actually I am really of the opposite opinion! Since I am not interested in developing games but rather in cross-platform support I think that Silver is what Haxe should have been!

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#107
post #104

Earlier quoted context omitted.

I'm not sure how you claim to be the authority on 'CS speak', but it's a sufficiently blurred line here, for reasons I clearly explained and which you seem unable to understand. Emscripten/asm.js can use static information to generate Javascript which can be compiled to native code, before the code in question is run, aka Ahead of Time.

Well, I majored in compiler design. Ahead of time compilation is used to describe the process of generating machine code at compilation time, in a form that can be executed directly by a processor without any additional transformation process. Which clearly is not happening here, as the code is converted into JavaScript and relies on a JavaScript implementation to run. Regardless of the optimization processes used by…

The nuances unfortunately appear to escape you.

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#108
post #84

Earlier quoted context omitted.

No, not really.

Any available benchmarks?

Considering this downvoting-because-I-don't-like-being-wrong ... maybe just benchmark it yourself.

If you have time for making stuff up and downvoting, then you surely have time to run some benchmarks.

Re: Silver: A free implementation of Swift for .NET, Java, Android, and Cocoa

#109
post #59

Make a cross plattform game framework to this - as good as SpriteKit and I'm set. :) Otherwise I have to go with HaXe

Actually I am really of the opposite opinion! Since I am not interested in developing games but rather in cross-platform support I think that Silver is what Haxe should have been!

We're not of the opposite opinion then ;-) I think Silver is also what HaXe should have been!
Post reply on HN