incbin
abrash-black-book
incbin | abrash-black-book | |
---|---|---|
9 | 23 | |
917 | 4,389 | |
- | - | |
0.0 | 0.0 | |
4 months ago | 11 months ago | |
C | CSS | |
The Unlicense | - |
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.
incbin
-
Self-contained Linux applications with lone Lisp
OK, yes, that does work. You can totally put application specific stuff in the elf and reflect on it at runtime. Much easier is to embed it directly and point a symbol value at the start of the data.
See https://github.com/graphitemaster/incbin for a pretty wrapper around that.
Aside from there being a drastically simpler answer to this problem available in sketchily documented fashion (the asm guys know .incbin is a thing, but higher level languages overcomplicate it), it's a good post. Idea is sound and goal was achieved.
-
The theory versus the practice of “static websites”
Thanks for the link. We also make static websites by direct inclusion their HTML code in the C++ binary of ClickHouse.
I've tried to use this library but found a bug: https://github.com/graphitemaster/incbin/issues/61
-
Olive.c: a simple graphics library that does not have any dependencies
won't work, since the preprocessor won't interpret directives inside string literals of course.
In many assemblers, there is a directive called "incbin" which pastes in unstructured binary data at the point of usage. I just found a very clever C and C++ wrapper [1] for that, which gives you an INCBIN() macro. Nice!
[1]: https://github.com/graphitemaster/incbin
-
embed workaround
There's always this: https://github.com/graphitemaster/incbin
-
Finally. Embed
Haven't the people making the standards other things to do, like, integrating useful features instead of duplicating incbin.h [0] years after that feature worked?
https://github.com/graphitemaster/incbin/blob/main/incbin.h
- How do I embed files or access them without an operating system?
-
Include files into the Sketch automatically with incbin
There is a project "https://github.com/graphitemaster/incbin" that can take a file and put that file content into the sketch ROM segment as constant / resource. It is an even nicer alternative to "xxd -i" or using string literals like: const char bla[] PROGMEM = R"CERT( ... )CERT";
abrash-black-book
-
What is the lowest level of graphics access?
Michael Abrash's Graphic Programming Black Book
-
Resources for programs they used back in the 90s/early 00s?
[Michael Abrash's Black Graphics Programming Black Book from 1997 is a fantastic book I wish I had back then. It is available for free on GitHub. I read it maybe in 2015 and I thought it was fantastic even if it is dated now. It goes through the evolution of PC hardware (CPU and graphics cards in particular) from the very first IBM PC to the mid-90's pentiums, and the last chapter or two are about the author's work on Quake.
-
Where can I get behind the scenes of development of old games
Also available in eReader formats: https://github.com/jagregory/abrash-black-book/releases
- Black Book
-
Olive.c: a simple graphics library that does not have any dependencies
Also look at the source for original Quake (https://github.com/id-Software/Quake), one of the last pure software-rasterizing AAA 3D PC games. Michael Abrash's Graphics Programming Black Book (https://github.com/jagregory/abrash-black-book) explains many of the critical parts of the rendering pipeline.
By the way, quake.exe for DOS was 404,480 bytes.
-
The 2nd edition of Petzold's book CODE is now available!
It's also THICK. I have my copy of the 5th edition right here, and it's about 3 inches from cover to cover. Thicker than Introduction to Algorithms and thicker than the Graphics Programming Black Book.
-
John Carmack's new AGI company, Keen Technologies, has raised a $20M round
Read Michael Abrash's Graphics Programming Black Book for the story of how the original Quake came to life. You'll get an appreciation for John Carmack's ability to thoroughly research widely varying solutions to a problem, quickly create production-quality implementations of the promising ones, and even more quickly abandon the dead ends. The result is this almost boring, seemingly linear progression toward a final product that seems obvious in hindsight, yet it represents a leap forward the way Quake did in the mid-1990s compared to other FPSes at the time. I don't know many other public stories of individual engineers who can span both the very cutting edge of research and the practicalities of shipping real commercial software.
https://github.com/jagregory/abrash-black-book
- I want to start learning how to program DOS games
-
Older and experienced game devs that programmed games from scratch, which books and resources did you use to make stuff from scratch?
The Abrash black book is on github!
-
What was the "old," way of doing 3D graphics before shaders? (fixed function pipelines and such)
Go through Michael Abrash's Graphics Programming Black Book to see how it used to be on PC world.
What are some alternatives?
aoc-2020 - Advent of Code 2020 in 25 Different Languages
vex - A modern dialog library which is highly configurable and easy to style. #hubspot-open-source
xplain - Interactive demos
Celeste - Celeste Bugs & Issue Tracker + some Source Code
ComputerGraphics - Basic computer graphics implementation , with linux framebuffer
open-watcom-v2 - Open Watcom V2.0 - Source code repository, Wiki, Latest Binary build, Archived builds including all installers for download.
execfs - Proof of concept userspace filesystem that executes filenames as shell commands and makes the result accessible though reading the file.
VoxelSpace - Terrain rendering algorithm in less than 20 lines of code
pl_mpeg - Single file C library for decoding MPEG1 Video and MP2 Audio
binaryen - Optimizer and compiler/toolchain library for WebAssembly
SuperSimpleGraphics - An SVG generating single header file C library appropriate for "intro to programming" classes in C/C++.
awesome-dos - Curated list of references for development of DOS applications.