retro-httpaf-bench VS assert-combinators

Compare retro-httpaf-bench vs assert-combinators and see what are their differences.

retro-httpaf-bench

Benchmarking environment for http servers (by ocaml-multicore)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
retro-httpaf-bench assert-combinators
6 5
21 23
- -
0.0 5.7
2 months ago 3 months ago
Jupyter Notebook TypeScript
- GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

retro-httpaf-bench

Posts with mentions or reviews of retro-httpaf-bench. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-22.
  • Parser Combinators in Haskell
    10 projects | news.ycombinator.com | 22 Dec 2021
  • Ask HN: Alternatives to Rust Programming Language
    3 projects | news.ycombinator.com | 22 Nov 2021
    I do. The benchmark results itself is here: https://aws1.discourse-cdn.com/standard11/uploads/ocaml/opti.... This comes from the OCaml multicore monthly news, the october 2021 edition: https://discuss.ocaml.org/t/multicore-ocaml-october-2021/882.... The benchmark's repo is here: https://github.com/ocaml-multicore/retro-httpaf-bench. However that image is not the whole story, and there's a bit more info here: https://watch.ocaml.org/videos/watch/74ece0a8-380f-4e2a-bef5.... In that video, the author says that the result vary depending on the load (sometimes Rust Hyper can end up above OCaml httpaf eio), that OCaml currently uses an io-uring backend while Rust doesn't, and that the results are for single core as previous OCaml implementations are single-core themselves.

    I do feel that this benchmark is incomplete. I'd like it to see the results while using all of the cores of a machine, and I'd like to see different type of loads. I do think that the results are impressive: performance between Go and Rust is great. I do hope that it stays this way with multicore.

  • Adapting the OCaml Ecosystem for Multicore OCaml
    2 projects | news.ycombinator.com | 31 Aug 2021
    We don't compare against Go pervasively. Benchmarking across languages is hard generally, but here is a result on a specific benchmark comparing several versions of OCaml benchmarks against Go and Rust on a Http server benchmark: https://github.com/ocaml-multicore/retro-httpaf-bench/pull/1....

    If there are suggestions to make the Go and Rust versions, please feel free to tell us how in the issue tracker.

  • I don't see a future for Go. It's big within the kubernetes world right now but it will slowly be replaced by Rust.
    1 project | /r/programmingcirclejerk | 9 Aug 2021
    multicore already faster than Go
  • Functional Programming in OCaml
    4 projects | news.ycombinator.com | 27 Jul 2021
    Multicore is coming along, you can read the latest news here: https://discuss.ocaml.org/t/multicore-ocaml-june-2021/8134

    In terms of performance, there is this paper https://kcsrk.info/papers/system_effects_feb_18.pdf where on a single core async OCaml and effect OCaml are close to Go's net/http, and there is also this project https://github.com/ocaml-multicore/retro-httpaf-bench but I haven't see any results from it.

assert-combinators

Posts with mentions or reviews of assert-combinators. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-24.
  • Kysely: TypeScript SQL Query Builder
    19 projects | news.ycombinator.com | 24 Jan 2023
    We use in prod variant of no 1. [0]. Why? Because:

    * it's extremely lightweight (built on pure, functional combinators)

    * it allows us to use more complex patterns ie. convention where every json field ends with Json which is automatically parsed; which, unlike datatype alone, allows us to create composable query to fetch arbitrarily nested graphs and promoting single [$] key ie. to return list of emails as `string[]` not `{ email: string }[]` with `select email as [$] from Users` etc.

    * has convenience combinators for things like constructing where clauses from monodb like queries

    * all usual queries like CRUD, exists etc. and some more complex ie. insertIgnore, merge1n etc has convenient api

    We resort to runtime type assertions [1] which works well for this and all other i/o; runtime type assertions are necessary for cases when your running service is incorrectly attached to old or future remote schema (there are other protections against it but still happens).

    [0] https://github.com/appliedblockchain/tsql

    [1] https://github.com/appliedblockchain/assert-combinators

  • GraphJin – An Instant GraphQL to SQL Compiler
    12 projects | news.ycombinator.com | 28 May 2022
    We use not so much frameworks but combination of lightweight libraries:

    - runtime assertions [0] - to map unknown values at i/o boundary into statically typed code (rpc input parameters, sql results etc)

    - template based sql combinators to sanitize sql/generate sql [1]

    - jsonrpc over websockets - for bidirectional comms between f/e and b/e

    [0] https://github.com/appliedblockchain/assert-combinators

    [1] https://github.com/appliedblockchain/tsql

  • Parser Combinators in Haskell
    10 projects | news.ycombinator.com | 22 Dec 2021
  • An Inconsistent Truth: Next.js and Typesafety
    5 projects | news.ycombinator.com | 2 Dec 2021
    Types can be asserted at runtime (parsed) at IO boundaries (reading http request or response, websocket message, parsing json file etc). Once they enter statically type system they don't need to be asserted again.

    The difference it makes is illusion of type-safety vs type-safety this article touches on.

    You can try to bind service with client somehow but in many cases this will fail in production as you can't guarantee paired versioning, due to normal situations by design of your architecture or temporary mid-deployment state or other team doing something they were not suppose to do etc. It's hard to avoid runtime parsing in general.

    Functional combinators [0] or faster [1] with predicate/assert semantics work very well with typescript, which is very pleasant language to work with.

    [0] https://github.com/appliedblockchain/assert-combinators

    [1] https://github.com/preludejs/refute

  • Parsix: Parse Don't Validate
    6 projects | news.ycombinator.com | 15 May 2021
    Once i/o boundaries are parsing unknown types into static types, your type safety is guaranteed.

    [0] https://github.com/appliedblockchain/assert-combinators

What are some alternatives?

When comparing retro-httpaf-bench and assert-combinators you can also consider the following projects:

codeworld - Educational computer programming environment using Haskell

httpaf - A high performance, memory efficient, and scalable web server written in OCaml

parser - String parser combinators

pyparsing - Python library for creating PEG parsers

ocaml-h2 - An HTTP/2 implementation written in pure OCaml

refute - Refute module.

angstrom - Parser combinators built for speed and memory efficiency

dune - A composable build system for OCaml.

generator - Generator module.