Writing a as-portable-as-possible script for downloading and compiling an Analog Clock written in my programming language (called AEC).

This page summarizes the projects mentioned and recommended in the original post on /r/bash

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • AECforWebAssembly

    A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.

  • For AEC-to-WebAssembly: bash if [ $(command -v git > /dev/null 2>&1 ; echo $?) -eq 0 ] then git clone https://github.com/FlatAssembler/AECforWebAssembly.git cd AECforWebAssembly elif [ $(command -v wget > /dev/null 2>&1 ; echo $?) -eq 0 ] then mkdir AECforWebAssembly cd AECforWebAssembly wget https://github.com/FlatAssembler/AECforWebAssembly/archive/refs/heads/master.zip unzip master.zip cd AECforWebAssembly-master else mkdir AECforWebAssembly cd AECforWebAssembly curl -o AECforWebAssembly.zip -L https://github.com/FlatAssembler/AECforWebAssembly/archive/refs/heads/master.zip # Without the "-L", "curl" will store HTTP Response headers of redirects to the ZIP file instead of the actual ZIP file. unzip AECforWebAssembly.zip cd AECforWebAssembly-master fi if [ $(command -v g++ > /dev/null 2>&1 ; echo $?) -eq 0 ] then g++ -std=c++11 -o aec AECforWebAssembly.cpp # "-std=c++11" should not be necessary for newer versions of "g++". Let me know if it is, as that probably means I disobeyed some new C++ standard (say, C++23). else clang++ -o aec AECforWebAssembly.cpp fi cd analogClock ../aec analogClock.aec npx -p wabt wat2wasm analogClock.wat node analogClock

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts