Roslyn
Fable: F# |> BABEL
Our great sponsors
Roslyn | Fable: F# |> BABEL | |
---|---|---|
87 | 35 | |
15,917 | 2,396 | |
1.4% | 1.5% | |
10.0 | 9.5 | |
about 9 hours ago | 7 days ago | |
C# | F# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Roslyn
-
Method overloading error in 2022 and I don't know why.
Local functions do not support overloading
-
Why does foreach on arrays and strings get lowered into a while loop that ignores IEnumerable, even though both classes implement it?
Honestly, I don't have a clue why these would be different. I found the relevant Roslyn code here. You can see on line 719 that this is definitely intentional:
- .Net 6.0 - The new Program.cs "flat" style - too implicit/magic?
-
Why is Python so popular?
compiler: https://github.com/dotnet/roslyn
-
How to call a variable from a string, if that make sense lol
Why not use Roslyn Scripting…you can pretty much do any kind of dynamic evaluation with this and it does not require any reflection. https://github.com/dotnet/roslyn/blob/main/docs/wiki/Scripting-API-Samples.md you can add the support via a Nuget.
-
What’s the maximum number of arguments for method in C# and in .NET?
It was discussed at one point: https://github.com/dotnet/roslyn/issues/5058
-
What parsing techniques do you use to support a good language server?
It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)
-
Why is no-one using Roslyn token-based code generation with Source Generators?
I'm planning to rewrite all of our company's old T4-based codegen tools into Source Generators. I've been looking at how other Source Generators are implemented and what surprised me is that everyone seems to assemble the output code manually as text with string builders or at best some simple templating engine (eg. Scriban). I expected that I would see a lot of projects assembling their output code from Roslyn tokens and then using Roslyn's formatter to produce the actual code that can be emitted into the output file(s), like this article demonstrates. No-one seem to be doing that though. Why?
-
Actix Web v4.0 (Rust)
Clearly nobody ever manages to use this Go thing with over 700: https://github.com/golang/go/issues. Or .net, over 5000 issues for the compiler alone: https://github.com/dotnet/roslyn. I'd guess stuff like Java, glibc would be similar if they used github
Fable: F# |> BABEL
- Fable: an adaptation of F# for Javascript
-
F# records and DUs to TypeScript types/classes via json
Fable's TypeScript generation seems to have been abandoned, and Giraffe's efforts to integrate with Swagger seem to be in a weird spot.
- F# records and DUs to Type script classes/types via json
-
Functional language for desktop apps
Purescript or F#/Fable with Webview or Photino Native. Alternative to Electron that is light and uses the built in browser.
-
TypeScript vs. ReScript vs. F# - a simple comparison of syntax
Let's compare how 3 languages that compile to JavaScript - TypeScript, ReScript and F# with the Fable compiler - are able to chain immutable data.
- Don't make me think, or why I switched to Rails from JavaScript SPAs
-
F# and WebAssembly
When I talk about F# and Web development I tend to speak about Fable which is an F# -> JS compiler (although, in Fable 4+ it will officially target more than just JS), in a sense you're basically replacing Typescript or Flow or any other JS compiler for F#.
-
Anyone interested in collaborating on building an F# to Dart compiler?
There is already Dart, Rust, Php and Python in the Beyond branch. You might consider helping with that.
-
From TypeScript to ReScript
There is also F# via Fable: https://fable.io
Business logic can be shared with .NET and it has lots of ways to interoperate with JS. There's even a TypeScript converter though of course it's not as pleasant as "yarn add" and YMMV : https://fable.io/ts2fable/
Here's a demo of building some React components in F#: https://www.youtube.com/watch?v=a6Ct3CM_lj4&t=860s
-
Progressively Adding Fable to JS Projects
The Fable project is a F# -> compiler where is any of Javascript, Typescript and Python at the time of writing the last two are more experimental and the main support is for Javascript future iterations of Fable will cover these languages and even more like PHP, Rust, Dart.
What are some alternatives?
Mono-basic - Visual Basic Compiler and Runtime
rescript-compiler - The compiler for ReScript.
Sutil - Lightweight front-end framework for F# / Fable. No dependencies.
F# - Please file issues or pull requests here: https://github.com/dotnet/fsharp
Bridge.NET - :spades: C# to JavaScript compiler. Write modern mobile and web apps in C#. Run anywhere with Bridge.NET.
MSBuild - The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
SharpLab - .NET language playground
ClojureCLR - A port of Clojure to the CLR, part of the Clojure project
Roslyn-linq-rewrite - Compiles C# code by first rewriting the syntax trees of LINQ expressions using plain procedural code, minimizing allocations and dynamic dispatch.
Feliz - A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
VisualFSharp - The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio