Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
1 people like thisPosted: 29 days ago by Phillip Trelford
Download and install Ollama: https://ollama.com/ Ollama is a free common host for multiple different LLM-models like Google Gemma, OpenApi's GPT-OSS, Deepseek, etc.
0 people like thisPosted: 3 months ago by Tuomas Hietanen
ModelContextProtocol with FSharp (MCP with F#) https://modelcontextprotocol.io/docs/getting-started/intro Client and Server examples using https://github.com/modelcontextprotocol/csharp-sdk
0 people like thisPosted: 3 months ago by Tuomas Hietanen
Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
0 people like thisPosted: 3 months ago by Tuomas Hietanen
Example of shaping an anonymous-object-as-JSON structure for an Azure dashboard using strong typing and minimal code using Farmer F# https://compositionalit.github.io/farmer/
2 people like thisPosted: 3 months ago by Tuomas Hietanen
A functional wrapper around MailboxProcessor that simplifies agent-based concurrency, adds error handling via events, and provides convenience functions to avoid common pitfalls when working with asynchronous message processing in F#.
2 people like thisPosted: 4 months ago by halcwb
I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.
124 people like thisPosted: 15 years ago by Blake Coverett
Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.
74 people like thisPosted: 15 years ago by Tomas Petricek
Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.
92 people like thisPosted: 14 years ago by Wolfgang Meyer
I'm working on parallel computations and I thought it would be useful to break work into chunks, especially when processing each element asynchronously is too expensive. The neat thing is that this function is general even though motivation for it is specific. Another neat thing is that this is true lazy sequence unlike what you'd get if you used Seq.groupBy. There are three versions for your enjoyment.
73 people like thisPosted: 15 years ago by Dmitri Pavlenkov
A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async
Posted: 14 years ago by Ryan Riley
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
237 people like thisPosted: 15 years ago by Tuomas Hietanen
reflection (19) learning f# (16) computation builder (17) generic programming (17) array (22) kata (17) lists (15) list (56) wpf (20) seq (54) string (29) agent (20) mailboxprocessor (27) quotations (21) async (98) lazy (20) sequences (48) fold (22) sequence (32) silverlight (22)
David Klein (16) Vesa Karvonen (8) fholm (26) Tao Liu (17) Cesar Mendoza (17) Robert Pickering (10) Joel Huang (13) Taha Hachana (12) Tomas Petricek (150) NIck Palladinos (14) Tuomas Hietanen (80) Phillip Trelford (87) Ryan Riley (25) Samuel Bosch (12) mavnn (17) Zhukoff Dima (8) Fabio Galuppo (14) Antonio Cisternino (8) nagat01 (19) Eirik Tsarpalis (89)
Database contains 3207 snippets out of which 1719 is public.