NamedType
F#
NamedType | F# | |
---|---|---|
6 | 26 | |
742 | 2,199 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | over 1 year 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.
NamedType
- Named Types in C++
-
Named Booleans prevent C++ bugs and save you time
This article seems to be targeted towards beginners. From the title, I was expecting it to cover something like https://github.com/joboccara/NamedType, which is a technique I would recommend.
-
Please put units in names
I haven't used this library in particular or this one, but bless the authors and all the others for trying to make it happen… the project I'm now leading uses strongly typed strings for different component addresses, and it saves me to constantly look up the documentation what the functions need – it's beautiful.
-
Why do you like C++ ?
I think you are thinking of something like https://github.com/joboccara/namedtype
-
ISR Context Guards in C and C++ — Creating better interfaces for Embedded Systems by selecting the correct functions at compile time
The basic jist is that if you use strong types, you can dispatch more easily inside the function. Because of how the template function is generically written, I don't need to do any manual calls to the template parameters, it all gets figured out through automatic template deduction. In this example I'm using really simple types, but in a more production system I would use something more along the lines of Jonathan Boccara's NamedType. Here is a great article that explains it pretty well [link].
- Alternative to long boolean parameter lists
F#
-
old languages compilers
F# F*
-
From Script to Scaffold in F#
This year I've been attempting Advent of Code in my favourite programming language, F#. This is a beginner(ish) centered post about making incremental changes from the smallest possible solution to something more robust.
-
for newbie , VScode+ionide or VisualStudio
I can recommend polyglot notebooks in vs code, so you can mix different languages.Take a look athttps://fsharp.org/ for some project ideas and frameworks.
-
The comeback of the Fediverse and the Old Web
I have many less followers on Mastodon than in the Birdsite (40 vs 341), yet my activity has generated many more interactions than there. Not only that, among the users who decided to interact with me I counted: a co-discoverer of the Laniakea supercluster, one of the lead developers behind F#, the author of many important books on Java & JVM, plus many others. I'm literally a nobody, but this time there was no algorithm relying on relevance and engament metrics to decide what to present to each one of us.
-
Chicago and London TDD Styles for Functional Programming
FP devs differ based on language here. Elm, like F#, tends to encourage "a bunch of functions and types in a file". While Elm supports modules, we don't really care where it came from; they're all pure, all deterministic, the compiler tells us if it works.
-
Performance of immutable collections in .NET
The builtin fsharp collections actually are just "immutable", not persistent as you mention. (Ref: https://github.com/fsharp/fsharp/blob/master/src/fsharp/FSharp.Core/map.fs. This is just an AVL tree that returns a copy on mutations: https://github.com/fsharp/fsharp/blob/577d06b9ec7192a6adafefd09ade0ed10b13897d/src/fsharp/FSharp.Core/map.fs#L118)
-
Coming from Scala
You can dive into .NET ecosystem by trying F#. It's functional-first language so this should be familiar.
-
Parsing Lambda Error Logs in ReScript & Python
ReScript code is just like F# or OCAML; it doesn’t have a function parse phase like JavaScript, so we have to define our functions and types first before we can use them. That’s fine, but makes explaining the code backwards (meaning you start at the bottom of the file and work your way up), so we’ll start at our lambda handler and explain each part, regardless of where it’s defined.
-
Please put units in names
F# is a JavaScript and .NET language for web, cloud, data-science, apps and more.
-
E
Also a programming joke
What are some alternatives?
newtype-ts - Implementation of newtypes in TypeScript
ClojureCLR - A port of Clojure to the CLR, part of the Clojure project
Squants - The Scala API for Quantities, Units of Measure and Dimensional Analysis
julia - The Julia Programming Language
durationcheck - Go linter to detect erroneous multiplication of duration values
Roslyn - The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
Nemerle - Nemerle language. Main repository.
VisualFSharp - The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
IronScheme - IronScheme
Bridge.NET - :spades: C# to JavaScript compiler. Write modern mobile and web apps in C#. Run anywhere with Bridge.NET.
Fable - The project has moved to a separate organization. This project provides redirect for old Fable web site.
scala - Scala 2 compiler and standard library. Bugs at https://github.com/scala/bug; Scala 3 at https://github.com/scala/scala3