lzz-bin
dogma
lzz-bin | dogma | |
---|---|---|
1 | 9 | |
2 | 59 | |
- | - | |
3.6 | 7.3 | |
almost 2 years ago | 11 months ago | |
- | GNU General Public License v3.0 or later |
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.
lzz-bin
-
CLion features to reduce pain of juggling .cpp and .h files?
IMHO, the best investment Jetbrains could possibly make for CLion would be to have one of their employees give Lzz3 (https://github.com/mjspncr/lzz3) and Lzz (https://github.com/SnapperTT/lzz-bin) some love & polish so it could be seamlessly integrated into CLion's workflow as a first-class feature that effortlessly "just works" and requires little more than checking "use .lzz and autogenerate legacy .cpp+.h files" when creating a new class. Or, logistics permitting, hire Mike Spencer so he can work on it full-time.
dogma
-
Interval Parsing Grammars for File Format Parsing (2023) [pdf]
Yes, the offset function does this by specifying an offset to branch to. For example the ICO dir_entry, which is a directory list of icon resources in the file.
- https://github.com/kstenerud/dogma/blob/master/v1/examples/i...
- Show HN: Dogma: a metalanguage for describing data formats in documentation
-
How Big Should a Programming Language Be?
I'm facing this dilemma now with the Dogma metalanguage [1]. On the one hand, I want it to be small so that it can be picked up quickly and mastered easily (very important since its primary use case is documentation). On the other hand, it needs enough power to actually be useful in the real world.
In the end I opted to avoid most conveniences since they can easily be built using a few common macros such as `u16(v) = ordered(uint(16,v))` and the like, except for cases where it would be just silly not to (like strings and regex-style repetition chars ? * +).
But even then the spec is over 2000 lines long (admittedly the examples take up a fair bit of room, though).
[1] https://github.com/kstenerud/dogma/blob/master/v1/dogma_v1.m...
-
Show HN: Dogma Metalanguage – Beta5
Hi HN!
I've just released the 5th beta of the Dogma metalanguage, which is designed to describe text and binary data for use in documentation.
https://github.com/kstenerud/dogma/blob/master/v1/dogma_v1.md
Most of the kinks are now worked out, and I'm hoping for a final release soon.
Notable changes:
* Cleaner byte ordering support with new byte_order, ordered, and bom_ordered functions
* New peek and offset functions
* Renamed swapped function to reversed
* More examples in the examples dir https://github.com/kstenerud/dogma/tree/master/v1/examples
Thanks to all for reviewing and helpful criticism :)
-
BNF Was Here: What Have We Done About the Unnecessary Notation Diversity (2011) [pdf]
The diversity of notations stems from the fact that the current BNF notations are always lacking in something fundamental that each use case needs.
For me, the breaking point came in trying to describe binary formats. I eventually had to come up with my own: https://github.com/kstenerud/dogma
-
Ask HN: How long does it take for you to release your open source project?
https://concise-encoding.org/ will be released this year and has been in development for 5 years. This one has been slow because of all the support projects such as https://github.com/kstenerud/compact-float and https://github.com/kstenerud/compact-time and https://github.com/kstenerud/enctool
https://github.com/kstenerud/dogma has been in development for 4 months and will be released in about a month. This is yet another support project for Concise Encoding (hopefully the last!).
https://github.com/kstenerud/kscrash was in development for about a year and a half before being released.
https://github.com/kstenerud/Musashi took just under a year before its first release as a MAME core (after a TON of testing - I spent 4x more time testing it than I did writing it).
But other smaller things that don't require so much precision I just write up in a couple of weeks and release, such as https://github.com/kstenerud/virtual-builders
The key is to build empathy with your potential users. What will their motivations be that lead them to try out your project? What will they be looking for when they use it? What would someone who has never seen the project before struggle with? (that last one is the hardest because you're so close to the project that it's hard to see what it's like to know nothing about it). These tell you what kind of UX you'll need, what kind of documents you'll need, what kind of tutorials you'll need, how to structure your project for your target audience, etc ("it's for everybody" is never a good idea).
A lot of times it comes down to recruiting people to just try it and do a brain dump of everything that goes wrong or frustrates or confuses them. I've done show-HN posts for things that are unreleased, just to get the valuable criticism. It's nearly impossible to develop good projects in a vacuum.
If you're not posting out of worry for doing it wrong, THAT is doing it wrong. The point is to find out where you're doing it wrong so that you can correct it! And that's where the crowd is a HUGE help.
-
Ask HN: Who is looking for code contributors?
I have two projects that could use help:
---
The first is Concise Encoding, a secure ad-hoc data format (think JSON, but secure, more data types, and also has a binary encoding). https://concise-encoding.org/
The spec is largely done, and I'm primarily working on the reference implementation (in golang) and portable tests (so people don't have to keep rewriting tests for every implementation), but I could use help getting other language implementations out there.
---
The second one is Dogma, a BNF-style metalanguage for describing binary and text data (because there wasn't a decent one for describing binary data). https://github.com/kstenerud/dogma
Dogma is mostly there as well, but while it is primarily focused around writing technical documentation (and I have written a syntax highlighter for VS Code), there are probably a lot of other tools that could be built around this technology (which I simply don't have enough time to pursue).
-
Ask HN: What Are You Working On? (March 2023)
Two things, one which supports the other:
First is Concise Encoding, a secure, binary and text ad-hoc data format with full type support: https://concise-encoding.org/
Almost all existing data formats are horribly insecure and ripe for exploitation (many of them are already). And they can't be fixed because the formats aren't versioned.
-----------------
But describing the data format was painful because most existing metalanguages are only for describing textual grammars, and the few that support binary aren't really suited for documenting for human consumption.
So I'm putting the finishing touches on Dogma ( https://github.com/kstenerud/dogma/blob/master/dogma_v1.md ), a modernized BNF-style metalanguage with better expressiveness and binary grammar support.
For example:
A UDP packet consists of a source port, a destination port, a length, a checksum, and a body. The length field refers to the size of the entire packet, not just the body.
udp_packet = src_port
What are some alternatives?
cpplinks - A categorized list of C++ resources.
KSCrash - The Ultimate iOS Crash Reporter
glaze - Extremely fast, in memory, JSON and interface library for modern C++
firestarter - A starter kit for quickly building your next app. Side project or startup!
binary-communicator
compact-time - Encoding schemes to store a complete time, date, or timestamp in as few bytes as possible for data transmission.
iperf3-win-builds - iperf3 binaries for Windows. Benchmark your network limits.
Musashi - Motorola 680x0 emulator written in C
compact-float - An encoding scheme to store a floating point value in as few bytes as possible.
DIN-91379-Characters-and-Sequences - List of characters and sequences of DIN 91379
keygen-go - Keygen SDK for Go. Integrate license activation, automatic updates and offline licensing for Go binaries.
go-concise-encoding - Golang implementation of Concise Binary and Text Encoding