wfc
sqldb-logger
wfc | sqldb-logger | |
---|---|---|
8 | 3 | |
334 | 339 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | 4 months ago | |
C | Go | |
- | 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.
wfc
- Wave Function Collapse library in pure C (plus a CLI tool)
-
Hacker News top posts: Jan 5, 2022
Wave Function Collapse library in pure C\ (37 comments)
-
Wave Function Collapse library in pure C
This is a typical idiom frequently seen in modern C and C++ codes. As https://github.com/krychu/wfc#how-to-use-the-library says, you need to define a macro in a C file in order to "expand" the actual code there.
Having the code in the header gives a bit more flexibility considering the file layout. IMHO this is an awkward consequence of the missing de-facto-standard in C/C++ build systems.
- Procedural Map Generation: Wave Function Collapse library in C (plus a CLI tool)
-
Ask HN: What are some tools / libraries you built yourself?
I recently wrote a single-file library in C for Wave Function Collapse: https://github.com/krychu/wfc
It’s a procgen algorithm that takes small image as input and generates a larger one with similar local features. I hope to add tiled method to the library some time.
- Show HN: Wave Function Collapse library in C, plus command-line tool
sqldb-logger
- A logger for Go SQL database driver without modifying existing stdlib usage
-
DB Question: Can I get the final sql query from db.Exec?
You can use this to get instant query logging for sql.DB. https://github.com/simukti/sqldb-logger
-
Ask HN: What are some tools / libraries you built yourself?
sqldb-logger: https://github.com/simukti/sqldb-logger
It's a thin layer that wrap Go (Golang) SQL database driver, it does not change sql.DB usage in any existing Go app.
It is because I prefer to use vanilla Go sql.DB in my web service and I could not find any SQL logger for Go SQL database standard library that can use structured JSON logging.
What are some alternatives?
kondo - Cleans dependencies and build artifacts from your projects.
logxi - A 12-factor app logger built for performance and happy development
fast-wfc - An implementation of Wave Function Collapse with a focus on performance.
logutils - Utilities for slightly better logging in Go (Golang).
vaku - vaku extends the vault api & cli
go-logger - Simple logger for Go programs. Allows custom formats for messages.
Pion WebRTC - Pure Go implementation of the WebRTC API
lumberjack - lumberjack is a log rolling package for Go
snipp.in - Fast, Light-weight, Notes, Snippet manager and code editor directly inside your browser
phuslu/log - Fastest structured logging
gutenberg - A fast static site generator in a single binary with everything built-in. https://www.getzola.org
glog - Leveled execution logs for Go