order-pp
http_server
order-pp | http_server | |
---|---|---|
5 | 5 | |
102 | 29 | |
- | - | |
0.0 | 8.5 | |
over 2 years ago | 15 days ago | |
C | Pony | |
Boost Software License 1.0 | BSD 2-clause "Simplified" License |
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.
order-pp
- Announcing the Hare programming language
-
No Us Without You: elifdef and elifndef
Looping is already totally doable, up to a finite maximum number of iterations. Local variables and the like can be simulated through suitably clever preprocessor definitions and logic, too. The syntax and trickery you need to take advantage of it is thoroughly, thoroughly unpleasant though.
For anyone curious about the practicality of that sort of thing, A CPS macro continuation machine like https://github.com/rofl0r/order-pp/blob/master/inc/order/cm.... would give you about 18 quintillion loop iterations if my math was right; double the length of that file and you’d have more loop iterations than atoms in the universe.
-
Have constexpr string mixins been proposed?
Macros can already accomplish this and more quite handily, using order-pp for example:
-
datatype99: C99 with sum types, v0.1.0
Here is an example of the power of order: https://github.com/rofl0r/order-pp/blob/master/example/fibonacci.c
http_server
- ponylang/http_server: Pony library for building HTTP server applications.
-
Announcing the Hare programming language
I use pony https://ponylang.io/ as a language - it's an Actor based language with GC where every actor has its own memory and is responsible for its own GC.
The main feature is its ability to safely share or move data around between actors in a way that is data-race and deadlock free. Pony doesn't use locks anyways :-)
A high level as to how it achieves this:
-
Green Threads vs Async/Await, ergonomics-wise, toward thread-safety
And it's not just the mathematics. The non-type-theoretic paradigm-upending let-it-crash-to-keep-code-correct resilience for which Erlang/Elixir is famous was one of the biggest eye-openers for me in my programming career (which began in 1972 when I was 12). Also, the simple behaviour and very high performance results of contemporary Actorish implementations, especially Akka.io and the in-some-ways-more-impressive ponylang.io and related ORCA GC ("concurrent and parallel garbage collector for actor programs ... does not require any STW steps, or synchronization mechanisms ... zero-copy message passing and sharing of mutable data ... data race free ... [no] read/write barriers"), are eye-catching affirmations of the Actor model's approach.
-
Mutability vs Immutability vs Renaming vs other ideas
Being an unabashed Ponylang fanboy, I'd say that mutability is a separate question from the "actual" type. I'm simplifying a lot here, but generally in Pony you'd express this in a couple of different ways depending on whether you want the binding itself to be immutable or whether you only care about the instance itself:
-
Pony – High Performance Safe Actor Programming
There's an http server and a small "sinatra" like web framework.
- https://github.com/ponylang/http_server
- https://github.com/theodus/jennet
Someone might have done SQLite for Pony, but I'm not aware of it. Writing network protocol stuff in Pony is usually pretty easy and the C-FFI is usually pretty easy which generally makes writing database connectivity (for at least happy path basics) fairly easy. (Add lots of caveats here).
If you'd like to talk more in-depth, swing by the Zulip and myself and other folks from the community can help out with answers.
https://ponylang.zulipchat.com/
What are some alternatives?
awesome-c-preprocessor - A list of awesome C preprocessor stuff
C-headers
datatype99 - Algebraic data types for C99
zig_comptime_lisp
CSP - Compile-time LISP interpreter on C macro preprocessor
exotracker-cpp
jennet - A simple HTTP web framework written in Pony
pony-protobuf - Pony implementation / compiler of Google protocol buffers
hare-color - Color package for Hare (harelang.org)
Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
rust - Empowering everyone to build reliable and efficient software.
xvm - Ecstasy and XVM