kcgi VS picostdlib

Compare kcgi vs picostdlib and see what are their differences.

picostdlib

Nim wrapper for the raspberry pi stdlib (by EmbeddedNim)
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
kcgi picostdlib
4 4
268 61
- -
8.1 2.1
about 1 month ago 2 months ago
C Nim
ISC License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

kcgi

Posts with mentions or reviews of kcgi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-11.
  • Newbie here, is it possible to use c for website backend ? And what framework?
    3 projects | /r/C_Programming | 11 Aug 2022
    You can use KCGI to use C or C++ as a FastCGI backend.
  • New embedded programming language with C as a host language
    7 projects | news.ycombinator.com | 25 Jul 2022
    I like the premise of embedded generating inline c. Kinda like php for c, rather than html

    I'm not sure of custom BNF per generating command. I notice they're mostly order independent, which makes it a little easier to learn, but what's the advantage over c syntax? Is it roughly that pointers etc are impossible. Maybe a c-esque syntax would be more learnable

    How does the existing syntax compose, i.e. can the user run away with writing tcl-style scripts

    If you don't get a lot of feedback, I would guess it is inpart due to custom syntax being an entry barrier to understanding

    I don't know, I think html is easy, so people want power with php. On the other hand c is powerful and hard, by the time I'm using that, does Vely's custom syntax give me more than a set of convenient c library calls... such as https://kristaps.bsd.lv/kcgi/

    In any case, I like the apis, and I think the premise has legs

  • Seriously, why is everyone doing the same thing nowadays?
    2 projects | /r/ProgrammerHumor | 29 Mar 2022
    It's not that hard, I use kcgi.
  • BCHS: OpenBSD, C, httpd and SQLite web stack
    6 projects | news.ycombinator.com | 18 Jan 2022
    The C library used (https://github.com/kristapsdz/kcgi) is portable and working on linux as well. Putting this behind nginx as fastcgi seems very well doable.

picostdlib

Posts with mentions or reviews of picostdlib. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-22.
  • Introduction to Embedded Systems Programming (Ada)
    3 projects | news.ycombinator.com | 22 Nov 2022
    Heres the rp2040 wrapper someone else did: https://github.com/EmbeddedNim/picostdlib
  • How to get clean simple C output?
    5 projects | /r/nim | 8 Sep 2022
    As a workaround, you might be able to just get Nim to output the c sources (nim cc), and set up your own build system (make or whatever) to build and link it. This is the approach taken in https://github.com/EmbeddedNim/picostdlib. If you do this, you might want to pass in --cpu:m68k or some other supported 8-bit arch, though I'm not sure that --cpu is used for anything else than selection the C compiler exec and flags.
  • New embedded programming language with C as a host language
    7 projects | news.ycombinator.com | 25 Jul 2022
    C++ has decent industry acceptance in embedded nowadays, or at least that has been my impression.

    After C++, rust is likely the most popular, quite a lot of effort has been put into running rust on embedded, see eg https://github.com/rust-embedded. However, once again to my understanding, industry acceptance is still highly marginal.

    After that, there's a bunch of toy-ish efforts to run other languages. Zig, nim, python and javascript variants, etc. Usually anything that has C ABI compatibility should be possible to get up and running (without writing a compiler backend from scratch). I've had fun with some toy projects using nim for ARM cortex-M targets (https://github.com/EmbeddedNim/svd2nim, https://github.com/auxym/nim-on-samd21, https://github.com/EmbeddedNim/picostdlib).

    Using Nim (and eg svd2nim to generate the equivalent of CMSIS headers for register access in pure nim), it would be entirely possible to write even the low level stuff (SPI drivers and whatnot) in 100% nim, with the same performance as C and better safety (better static type system and compile-time checks, etc). Runtime (eg overflow) checks and garbage collection are available (at the cost of some performance) but optional. See eg. a pretty basic higher-level API for GPIO access, that provides native performance, since the abstraction is implemented as macros (compile-time abstraction): https://github.com/auxym/nim-on-samd21/blob/master/src/port....

  • Emulator of Original Dell Charger Using ATTINY85
    6 projects | news.ycombinator.com | 24 Feb 2022
    To be clear: Ratel isn't my project, just something I'm following due to interest.

    In the interest of shameless self promotion :), my own experimentations are :

    https://github.com/EmbeddedNim/svd2nim

    https://github.com/auxym/nim-on-samd21

    And I've used and contributed to picostdlib (https://github.com/beef331/picostdlib), the rp2040 support library.

    All just as a hobby, but it's interesting to learn that some companies are actually looking into Nim for firmware! Embedded seems like such a slow moving industry. I believe the author of Nesper and Nephyr also developed them for professional work.

What are some alternatives?

When comparing kcgi and picostdlib you can also consider the following projects:

awesome-c - A curated list of awesome C frameworks, libraries, resources and other shiny things. Inspired by all the other awesome-... projects out there.

dell-charger-emulator - Emulator of original Dell charger using ATTINY85

bdwgc - The Boehm-Demers-Weiser conservative C/C++ Garbage Collector (bdwgc, also known as bdw-gc, boehm-gc, libgc)

svd2nim - Convert CMSIS ARM SVD files to nim register memory mappings

nimOnAVR - Nim language test program for Arduino UNO/Nano or its compatibles

nim-on-samd21 - Template for programming Microchip SAM D21 MCUs with Nim

SDS - Simple Dynamic Strings library for C

ThinkpadBattery - Open source Thinkpad T420 battery design

Git - Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.

micronucleus - ATTiny usb bootloader with a strong emphasis on bootloader compactness.