aoc2020
interface99
Our great sponsors
aoc2020 | interface99 | |
---|---|---|
3 | 15 | |
0 | 262 | |
- | - | |
0.0 | 1.9 | |
over 1 year ago | about 1 year ago | |
Java | C | |
MIT License | MIT 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.
aoc2020
-
Diamonds in the Rough : An Honest Trial for any Language
An example of many of the listed features is this solution to an adventofcode problem for identifying allergens and ingredients of cryptic food labels.
-
AdventOfCode driving design of the Tailspin programming language
The latest mad rush of development activity has come from wanting to use relational algebra to solve some problems in a more elegant way. Day 21 turned out quite nicely.
-
2020 Day 21 Solutions
Tailspin solution for today https://github.com/tobega/aoc2020/blob/main/a21.tt
interface99
- Full-featured OOP interfaces for C99
-
Templates in C
There is a project that achieves something like this, and quite nicely I think, worth checking it https://github.com/Hirrolot/interface99
-
Pretty-Printable Enumerations in Pure C
I agree; I would especially not recommend abusing macros throughout an application codebase too much. Conceptually, Metalang99 is more of a (sub)language than a library, which also adds some entry barrier. Ideally, I see the application of Metalang99 being used "behind the scenes", e.g., encapsulated in separate code files/libraries such as Datatype99 and Interface99. This is what I (mostly) do in SmolRTSP.
- Just Lua things
-
Comparing Golang and Interface99
There are also some differences. Golang, for example, can resolve interface methods at run-time, whereas Interface99 constructs virtual tables statically. Interface99 allows default implementations; Golang doesn't. And, of course, Interface99 mandates placing impl(MyIface, MyType), whereas Golang uses a.k.a. duck typing for interfaces (interface implementations are indistinguishable from ordinary methods). Also, when you would use embedding in Golang, such as this:
I think your github repo link is broken. Here's a working link.
-
lipstick: a Rust-like syntax frontend for C
I've done something similar with Datatype99 and Interface99. They are like a macro eDSL that compiles to C. The first one features algebraic data types, the second one features interfaces.
-
Any alternative to vala?
If you need a bit more high-level constructions, you can use the Datatype99 and Interface99 libraries. The former provides polymorphism over data, the latter -- over behaviour (I am the creator of these libraries).
-
Diamonds in the Rough : An Honest Trial for any Language
Is it possible that you could benefit from "a better C"? If so, I'd love to hear your take on Crystal, and the recent announce on Interface99.
-
Comparing interfaces: Rust and Interface99
There is a full example code: https://github.com/Hirrolot/interface99/blob/master/examples/state.c.
What are some alternatives?
Odin - Odin Programming Language
COS - C Object System: a framework that brings C to the level of other high level programming languages and beyond
tailspin-v0 - A programming language with extreme data-pattern matching and data-declarative syntax, hopefully different enough to be interesting
smolrtsp - A lightweight real-time streaming library for IP cameras
rps-tailspin - A rock-paper-scissors server written in tailspin
crystal - The Crystal Programming Language
sps - Pre-Scheme to (GNU) C compiler written in Pre-Scheme
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
Cloak - A mini-preprocessor library to demostrate the recursive capabilites of the preprocessor
datatype99 - Algebraic data types for C99