swift-async-algorithms
book
Our great sponsors
swift-async-algorithms | book | |
---|---|---|
5 | 16 | |
2,102 | 1,067 | |
6.7% | 1.0% | |
8.6 | 8.7 | |
23 days ago | about 2 months ago | |
Swift | OCaml | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
swift-async-algorithms
-
Functional Reactive Programming
https://github.com/apple/swift-async-algorithms
Requires Xcode 14, which is still in beta and cannot push to the App Store.
Also, Apple fucked their back port badly. It’s supposedly fixed now, but if you built an app that used async/await anywhere in Xcode 13.X and a user installed running iOS 12/13/up to 14.5 they’d crash on launch.
So I personally wouldn’t trust it, and instead just push to raise your iOS minimum. I’ve had no problems requiring iOS15 in my projects over 1M installs
- SwiftUI in 2022
book
-
Nix-Powered Development with OCaml
I don't think they're wrong
the Jane Street side are quite prolific with blog posts etc
as a newcomer to OCaml one of the first, and nicer-looking, intro resources you'll likely encounter is the Real World OCaml book https://dev.realworldocaml.org/ which unfortunately does everything using Base instead of the stdlib
Personally that didn't sit right to me and I prefer to use the stdlib by default (which seems fine and not in need of a wholesale replacement)
-
Comparing Objective Caml and Standard ML
This is an oldie but a goodie.
OCaml has, unlike Standard ML, grown quite a lot since this page was made.
In particular, the section "Standard libraries", I'd recommend looking at:
https://dev.realworldocaml.org/
A couple of places where the comparison is outdated:
- OCaml using Base [1] allows for result-type oriented programming
- OCaml using Base uses less language magic and more module system
While there was and is truth to the distinction that SML is for scientists and OCaml is for engineers, this dichotomy is getting dated: OCaml is under active development, which means that scientists who want better tooling will choose OCaml. For example, 1ML [2] by Andreas Rossberg was built in OCaml.
-
Help getting started with Ocaml
In general, better read the second edition which is updated to use current Core versions. A print version was published recently.
-
Functional Reactive Programming
Elm is not dead. It just prefers a slow release schedule but is still actively worked on in the background.
That said, you might want to check out OCaml for general purpose programming. Super fast compiler, great performance, can target both native and JS.
It is easier to use than Haskell due to defaulting to eager evaluation (like most languages) strategy instead of laziness and being generally more pragmatic, offering more escape hatches into the imperative world if need be. Plus great upward trajectory with lot's of cool stuff like an effects system and multi-core support coming.
Real World Ocaml is a decent resource: https://dev.realworldocaml.org/
-
RWO v2 in PDF
There is a PR on the main repo.
-
Is 'Real World OCaml' 1st ed worth bying for a beginner?
I've only been through the online version so I don't know if this is true of the print copy as well, but it felt very... I don't know, abridged, I guess? There's some good info in there, but it glosses over a lot of things as well, and when I first went over it I didn't feel like I came away with a good understanding of OCaml. I think it makes a good second book choice after reading the CS3110 one, though, because the abridged explanations act like a nice refresher on what you've already learned and read before adding extra detail.
- Real World OCaml – Functional programming for the masses
-
What is your favourite Rust specific feature that you miss in other languages?
There is Real World Ocaml. It's written by one of the lead developers at Jane Street and a professor.
What are some alternatives?
awesome-ocaml - A curated collection of awesome OCaml tools, frameworks, libraries and articles.
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
learn-you-a-haskell - “Learn You a Haskell for Great Good!” by Miran Lipovača
ocaml-containers - A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license.
dream - Tidy, feature-complete Web framework
reflex - Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.
rlua - High level Lua bindings to Rust
book - V2 of Real World OCaml
DeepMenu
RIBs - Uber's cross-platform mobile architecture framework.
Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/