foam3 VS remote-apis

Compare foam3 vs remote-apis and see what are their differences.

foam3

FOAM: Feature-Oriented Active Modeller, Version 3 (unstable) (by kgrgreer)

remote-apis

An API for caching and execution of actions on a remote system. (by bazelbuild)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
foam3 remote-apis
4 5
39 299
- 2.3%
9.9 5.8
6 days ago 12 days ago
HTML Starlark
Apache License 2.0 Apache License 2.0
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.

foam3

Posts with mentions or reviews of foam3. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-11.
  • How could the early Unix OS comprise so few lines of code?
    3 projects | news.ycombinator.com | 11 Sep 2023
    Thank you for sharing that video! Your foam project looks fascinating too: https://github.com/kgrgreer/foam3
  • A repository of “BASIC Computer Games” code in modern languages
    3 projects | news.ycombinator.com | 31 Jul 2023
    I wrote a BASIC to JS compiler/transpiler that includes all of the programs from "BASIC Computer Games" as examples.

    You can try it out in your browser at: https://codepen.io/kgr/full/yLQyLjR

    Just select the game you want to to run from the top-left list box, then press the "Compile" button and you'll see the translated JS source in the right text-area. Then press the "Run" button to run it.

    The source code for the compiler is available at: https://github.com/kgrgreer/foam3/tree/429f2fd2b4cef0e37996a...

  • Architecture diagrams should be code
    16 projects | news.ycombinator.com | 11 Jan 2023
    Sort of related but an interesting idea is take it one step further with the Feature Oriented Active Modeler (FOAM) [1,2] paradigm and use code to model your whole system, which generates diagrams model, and runnable code in whatever language needed. The project is still young and it may not be practical today with the available tooling but it seems like a cool idea and project. It is influenced by the unix principle of “coding the perimeter not the area” which is essentially factoring your dev tasks into building NM capabilities, but instead of building NM things individually build N+M tools that can be composed into N*M capabilities [2].

    So with FOAM the idea is if we want to maintain a model of our software, and build it as well, what if we can use one composable tool to generate both, rather than model everything and code it separately.

    [1] https://github.com/kgrgreer/foam3

    [2] https://foam-framework.github.io/foam/

    [3] https://m.youtube.com/watch?v=3Ea3pkTCYx4

  • Programming Breakthroughs We Need
    17 projects | news.ycombinator.com | 17 Aug 2022
    https://github.com/kgrgreer/foam3#videos

    FOAM is a modelling framework that generates cross-language boilerplate for you, but it takes a much broader view of what constitutes boilerplate than most systems. Typically, it can generate between 95-98% of a working cross-language cross-tier system.

    FOAM helps you create features for modelled data. Features include things like a Java/Javascript/Swift classes to hold your modelled data, code to marshall to/from JSON/XML/CSV/etc., various GUI Views, and support for storing your data in various databases or file formats. However, FOAM models are themselves modelled, meaning they're afforded all of the above benefits as well. This lets you apply the MVC technique of having multiple views work against the same underlying data-model concurrently (say a grid and a pie-chart in a spreadsheet), so that you can choose the best view or views for your current need. When treated this way, your code is no longer text (but it can be, if that's one of your views), and you can easily view and store it in many different ways and more easily programmatically manipulate it.

remote-apis

Posts with mentions or reviews of remote-apis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-22.
  • Mozilla sccache: cache with cloud storage
    4 projects | news.ycombinator.com | 22 Dec 2023
    In the case of the Remote Execution/Cache API used by Bazel among others[1] at least, it's a bit more detailed. There's an "ActionCache" and an actual content-addressed cache that just stores blobs ("ContentAddressableStorage"). When you run a `gcc -O2 foo.c -o foo.o` command (locally or remotely; doesn't matter), you upload an "Action" into the action cache, which basically said "This command was run. As a result it had this stderr, stdout, error code, and these input files read and output files written." The input and output files are then referenced by the hash of their contents, in this case.

    Most importantly you can look up an action in the ActionCache without actually running it. So now when another person comes by and runs the same build command, they say "Has this Action, with these inputs, been run before?" and the server can say "Yes, and the output is a file identified by hash XYZ" where XYZ is the hash of foo.o

    So realistically you always some mix of "input content hashing" and "output content hashing" (the second being the definition of 'content addressable'.)

    [1] https://github.com/bazelbuild/remote-apis/blob/main/build/ba...

  • Distcc: A fast, free distributed C/C++ compiler
    11 projects | news.ycombinator.com | 1 Jun 2023
    Not only it's distributed like distcc, Bazel also provide sandboxing to ensure that environment factors does not affect the build/test results. This might not mean much for smaller use cases, but at scale with different compiler toolchains targeting different OS and CPU Architecture, the sandbox helps a ton in keeping your cache accurate.

    On top of it, the APIs Bazel uses to communicate with the remote execution environment is standardized and adopted by other build tools with multiple server implementation to match it. Looking into https://github.com/bazelbuild/remote-apis/#clients, you could see big players are involved: Meta, Twitter, Chromium project, Bloomberg while there are commercial supports for some server implementations.

    Finally, on top of C/C++, Bazel also supports these remote compilation / remote test execution for Go, Java, Rust, JS/TS etc... Which matters a lot for many enterprise users.

    Disclaimer: I work for https://www.buildbuddy.io/ which provides one of the remote execution server implementation and I am a contributor to Bazel.

  • When to Use Bazel?
    13 projects | news.ycombinator.com | 13 Sep 2022
    Regardless of whether you should use Bazel or not, my hope is that any future build systems attempt to adopt Bazel's remote execution protocol (or at least a protocol that is similar in spirit):

    https://github.com/bazelbuild/remote-apis

    In my opinion the protocol is fairly well designed.

  • Programming Breakthroughs We Need
    17 projects | news.ycombinator.com | 17 Aug 2022
    > The thing I really would like to see is a smarter CI system. Caching of build outputs, so you don't have to rebuild the world from scratch every time. Distributed execution of tests and compilation, so you are not bottle-necked by one machine.

    This is already achievable nowadays using Bazel (https://bazel.build) as a build system. It uses a gRPC based protocol for offloading/caching the actual build on a build cluster (https://github.com/bazelbuild/remote-apis). I am the author of one of the Open Source build cluster implementations (Buildbarn).

  • Distributed Cloud Builds for Everyone
    4 projects | news.ycombinator.com | 3 Jun 2021
    Very nice! I really like the ease-of-use of this, as well as the scale-to-zero costs. That's a tricky thing to achieve. Seems like it could become a standard path to ease the migration from local to remote builds.

    If the author is interested in standardizing the same, I'd suggest implementing the REAPI protocol (https://github.com/bazelbuild/remote-apis). It should be amenable to implementing on a Lambda-esque back-end, and is already standard amongst most tools doing Remote Execution (including Bazel! Bazel+llama could be fun). And equally, it's totally usable by a distcc-esque distribution tool (recc[1] is one example) - that's also what Android is doing before they finish migrating to Bazel ([2], sadly not yet oss'd).

    The main interesting challenge I expect this project to hit is going to be worker-local caching: for compilation actions it's not too bad to skip assuming the compiler is built into the container environment, but if branching out into either hermetic toolchains or data-heavy action types (like linking), fetching all bytes to the ephemeral worker anew each time may prove to be prohibitive. On the other hand, that might be a nice transition point to switch to persistent workers: use a lambda backed solution for the scale-to-0 case, and switch execution stacks under the hood to something based on reused VMs when hitting sufficient scale that persistent executors start to win out.

    (Disclaimer: I TL'd the creation of this API, and Google implementation of the same).

    [1] https://gitlab.com/BuildGrid/recc

    [2] https://opensource.googleblog.com/2020/11/welcome-android-op...

What are some alternatives?

When comparing foam3 and remote-apis you can also consider the following projects:

xv6-public - xv6 OS

dylint - Run Rust lints from dynamic libraries

MyDef - Programming in the next paradigm -- your way

bazel-gba-example - Bazel GBA (Game Boy Advance) Example

TALA - A diagram layout engine designed specifically for software architecture diagrams

llama

C4-PlantUML - C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures

basic-computer-games - An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See https://coding-horror.github.io/basic-computer-games/

bazel-buildfarm - Bazel remote caching and execution service

language-server-protocol - Defines a common protocol for language servers.

embedded-postgres-binaries - Lightweight bundles of PostgreSQL binaries with reduced size intended for testing purposes.