Giter Site home page Giter Site logo

Comments (3)

FieryCod avatar FieryCod commented on May 18, 2024 1

Making M1 work fine with HL or any other "native" (applies to compiled ones like golang, rust, c++) is hard. That's because AWS Lambda requires Linux amd64 binary. Producing valid binary for compiled languages is done by using Docker with a Linux Amazon Image. The build time of such binary on Docker varies across the different OSes and architectures. For M1, it's painfully slow and very likely that the build process will hang, which is the result of the early stage of Docker amd64 emulation on M1.

While there is an option to make some of the HL commands run fast on M1 by leveraging aarch64 Linux image, it's impossible to run the native-compiled aarch64 binary on AWS Lambda. AWS Lambda will hardly ever support aarch64, and that's why I've asked the question on GraalVM slack whether it's possible to cross-compile on aarch64 to amd64. While certainly, it's possible the GraalVM team may likely not introduce the following change soon.

For now, M1 users should believe that Docker is going to fix the emulation for amd64.

Recommended workarounds for now:

from holy-lambda.

FieryCod avatar FieryCod commented on May 18, 2024

Since 0.6.0 version users with M1 should use ghcr.io/fierycod/holy-lambda-builder:aarch64-java11-21.3.0 or any alternative aarch64 builder available here and target ARM64 Lambda Architecture.

ARM64 is actually much better for Lambda, therefore I recommend it for all the users. See here

from holy-lambda.

FieryCod avatar FieryCod commented on May 18, 2024

Fixed in 0.6.0

EDIT: cc @stevebuik

from holy-lambda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.