[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Idea: a meta language for (language) build systems - npm, Racket, Ru
From: |
Joshua Branson |
Subject: |
Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo |
Date: |
Tue, 01 Jun 2021 19:35:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Konrad Hinsen <konrad.hinsen@fastmail.net> writes:
> Hi Pjotr,
>
>
> The next message to get across is the need for cross-language build
> systems. The idea of one language, one platform doesn't work any more.
> Real software systems need to mix languages, even runtimes. And it's not
> just X + C any more either. Again, Guix serves as the proof of concept,
> even for people who dislike some specific implementation aspect of Guix.
Thinking about "cross-language build systems" reminds me of Zig cc
https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html
#+BEGIN SRC sh
andy@ark ~/tmp> cat hello.c
#include <stdio.h>
int main(int argc, char **argv) {
fprintf(stderr, "Hello, World!\n");
return 0;
}
andy@ark ~/tmp> zig cc -o hello.exe hello.c -target x86_64-windows-gnu
andy@ark ~/tmp> wine64 hello.exe
Hello, World!
andy@ark ~/tmp> zig cc -o hello hello.c -target mipsel-linux-musl
andy@ark ~/tmp> qemu-mipsel ./hello
Hello, World!
andy@ark ~/tmp> zig cc -o hello hello.c -target aarch64-linux-gnu
andy@ark ~/tmp> qemu-aarch64 -L
~/Downloads/glibc/multi-2.31/install/glibcs/aarch64-linux-gnu ./hello
Hello, World!
#+END_SRC
I think that's pretty cool!
>
> Cheers,
> Konrad.
>
--
Joshua Branson (joshuaBPMan in #guix)
Sent from Emacs and Gnus
https://gnucode.me
https://video.hardlimit.com/accounts/joshua_branson/video-channels
https://propernaming.org
"You can have whatever you want, as long as you help
enough other people get what they want." - Zig Ziglar
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Leo Prikler, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Pjotr Prins, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Adriano Peluso, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Leo Prikler, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Adriano Peluso, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Leo Prikler, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Adriano Peluso, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Leo Prikler, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Konrad Hinsen, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo,
Joshua Branson <=
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Adriano Peluso, 2021/06/01
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Ludovic Courtès, 2021/06/08
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Pjotr Prins, 2021/06/14
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Leo Prikler, 2021/06/14
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Pjotr Prins, 2021/06/15
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Ricardo Wurmus, 2021/06/15
- Re: Idea: a meta language for (language) build systems - npm, Racket, Rust cargo, Ludovic Courtès, 2021/06/20