📕 subnode [[@melanocarpa/c]] in 📚 node [[c]]

C is one of the most known programming languages. Its key features include ‘simplicity’, unfriendliness and lack of many helpful abstractions. Overall, it is a nice experience.

= Links

=> https://justine.lol/ape.html => https://justine.lol/cosmopolitan/index.html | cosmopolitan libc

Cosmopolitan makes C a build-once run-anywhere language, similar to Java, except it doesn't require interpreters or virtual machines be installed beforehand. Cosmo provides the same portability benefits as high-level languages like Go and Rust, but it doesn't invent a new language and you won't need to configure a CI system to build separate binaries for each operating system. What Cosmopolitan focuses on is fixing C by decoupling it from platforms, so it can be pleasant to use for writing small unix programs that are easily distributed to a much broader audience.

=> https://blog.nelhage.com/post/a-go-c-polyglot/ | A Go/C Polyglot

Someone on a Slack I’m on recently raised the question of how you might write a source file that’s both valid C and [[Go]], commenting that it wasn’t immediately obvious if this was even possible. I got nerdsniped, and succeeded in producing one, [[which you can find here]]. It's the backslash that does the trick.

Receiving pushes... (requires JavaScript)
Loading context... (requires JavaScript)
📖 stoas (collaborative spaces) for [[@melanocarpa/c]]