Is the Hello World compiler for F #?

I do not believe that I will see this . It says:

In April, Chris Smith will appear before writing a Java compiler on x86 in F #.

The presentation can go on for an hour or two, which is definitely not enough to write a compiler. I heard that F # is powerful but powerful?

Well, all I wanted to ask is this: Can you quickly write a compiler in F #?

+3
source share
4 answers

Providing a presentation about a project is not the same as implementing an entire project during a presentation.

Java x86 : , .

+15

:

  • Java, Java.
  • , , .
  • , , , , . , GCC 3 . , .

, , , , , .

F # ML ( , OCaml), . , , ML () , , . ( ), ( ) , ( ). ? F # - . - , .

Lang.NET F #, , .

Fredrik Holmström IronJS, ECMAScript 3 Runtime. , AST .

48 - , Haskell, F #.

90 Scheme, .

Ruby Scheme, live- Scheme Ruby , 15 .

+18

Java - , , Chris Java. , , ( ) F #, .NET. F # (, Microsoft)

, fslex fsyacc, . . , IL- ( .NET) . .NET 4.0, , .

, , , langauge, -.

+8

F #?

Last week I wrote two tiny compilers in F #, each around this time. So yes, it can be done. Here is one of them.

Please note that the ML family of languages ​​from which F # comes from was specifically developed for this application (metaprogramming).

+5
source

Source: https://habr.com/ru/post/1741787/


All Articles