Cosmopolitan Libc: build-once run-anywhere C library

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • cosmopolitan

    build-once run-anywhere c library

  • Author here. The example and repository has been updated. Many eyes make all bugs shallow. I was hoping to do more testing before posting on Hacker News. Now that the cat's out of the bag, I'd like to explain what's being done to make sure bugs like that never happen.

    Cosmopolitan implements a simplified version of the Address Sanitizer (ASAN) runtime. See https://github.com/jart/cosmopolitan/blob/master/libc/log/as... I've been systematically working towards using it to vet the entire codebase. It's helped to address many memory issues so far. However more work needs to be done polishing the ASAN code so it can be bootstrapped for the purposes of having memory safety in the lowest level libraries like LIBC_STR.

    This has been less of an issue, because bugs are normally very evident in functions like strcpy(). The BSD version is an exception though, since it was only used to port programs from the OpenBSD codebase which were used sparingly. But in either case, the real focus here is having continual incremental improvements over time, and I'm very committed to addressing any and all concerns.

  • freebsd

    Discontinued FreeBSD src tree (read-only mirror) [Moved to: https://github.com/freebsd/freebsd-src]

  • I think you are right. `strlcpy` is only supposed to copy `n-1` bytes from src to dest.

    https://github.com/freebsd/freebsd/blob/master/sys/libkern/s...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • glad

    Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.

  • Having given the apelife source a glance, it seems quite possible to me; it already shows you how to create a window on Win32.

    And SDL2 has already been ported to Emscripten/WASM after all, and OpenGL is really no trouble, since it's usually accessed through a mostly platform-agnostic C API wrapper already (see for example, https://github.com/Dav1dde/glad ).

    And maybe you could use MinGW to support POSIX on Win32...

  • web-ui-skeleton

    Skeleton for a cross-platform native app with a web-based UI.

  • I think the right way to add GUI support to this is to use the web. Simply embed an HTTP server in your binary and open the user's default web browser on launch. I have a framework for this here: https://github.com/jdarpinian/web-ui-skeleton

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

  • How do I enable anisotropic filtering with GLAD?

    1 project | /r/opengl | 6 Dec 2023
  • Implications of running OpenGL inside a VM(parallels) on a Mac

    1 project | /r/opengl | 14 Jun 2023
  • How do you setup OpenGL?

    1 project | /r/archlinux | 23 May 2023
  • Modern OpenGL loading library solution

    3 projects | /r/opengl | 14 May 2023
  • When I compile my program, it has a problem with my include statement for the GLFW header file.

    1 project | /r/learnprogramming | 13 Apr 2023