Cross-compilation for F# to Javascript

63 views
Skip to first unread message

Alexandru Nedelcu

unread,
Sep 30, 2015, 8:09:45 AM9/30/15
to F# Discussions
Hi,

I'm interested in either FunScript or WebSharper, but being new to F# (and .NET) I have a question ... using any of these, can I build F# libraries that are cross-compiled to Javascript and .NET? Are there such libraries in existence? If yes, how will the distribution of such dependencies work?

Thanks,

--
Alexandru Nedelcu

Anton Tayanovskyy

unread,
Sep 30, 2015, 11:03:59 AM9/30/15
to fsharp-o...@googlegroups.com
With WebSharper, the answer is definitely yes. WebSharper produces
assemblies that can be distributed using NuGet. These assemblies can
carry a mix of JavaScript-only, .NET only, and mixed (runs on both
JavaScript and .NET code). If you are careful, you can minimize the
surface of code that is not in mixed mode, and make the entire
application work in both modes. It is not a common usecase, but it is
possible. --A
> --
> --
> To post, send email to fsharp-o...@googlegroups.com
> To unsubscribe, send email to
> fsharp-opensou...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/fsharp-opensource
> ---
> You received this message because you are subscribed to the Google Groups
> "F# Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to fsharp-opensou...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Alexandru Nedelcu

unread,
Oct 2, 2015, 7:58:25 AM10/2/15
to fsharp-o...@googlegroups.com
Thanks Anton, that sounds good.

--
Alexandru Nedelcu
www.bionicspirit.com
Reply all
Reply to author
Forward
0 new messages