From ac7daffc276b6845f203f2adecf48a1e01cba909 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 14 Sep 2015 05:58:09 -0700 Subject: [PATCH 01/37] update readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 359cf51..731da55 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ library | lastest version | category | LoC | description **stb_vorbis.c** | 1.06 | audio | 5441 | decode ogg vorbis files from file/memory to float/16-bit signed output **stb_image.h** | 2.08 | graphics | 6509 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC **stb_truetype.h** | 1.08 | graphics | 3235 | parse, decode, and rasterize characters from truetype fonts -**stb_image_write.h** | 0.99 | graphics | 843 | image writing to disk: PNG, TGA, BMP +**stb_image_write.h** | 1.00 | graphics | 993 | image writing to disk: PNG, TGA, BMP **stb_image_resize.h** | 0.90 | graphics | 2586 | resize images larger/smaller with good quality **stb_rect_pack.h** | 0.08 | graphics | 572 | simple 2D rectangle packer with decent quality **stretchy_buffer.h** | 1.02 | utility | 216 | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++ @@ -27,7 +27,7 @@ library | lastest version | category | LoC | description **stb_leakcheck.h** | 0.2 | misc | 124 | quick-and-dirty malloc/free leak-checking Total libraries: 18 -Total lines of C code: 46298 +Total lines of C code: 46448 FAQ @@ -62,6 +62,7 @@ Not public domain: - **2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license) - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) +- **audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license) - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) From 5378a965369b5870dff58b11e187688f83623a8c Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 14 Sep 2015 07:07:20 -0700 Subject: [PATCH 02/37] clarify that olick's GIF also does animated --- README.md | 2 +- tools/README.footer.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 731da55..29c4e78 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Yes. I'll even tell you about some. However, I haven't used most of these librar and can't comment on their quality. (If you use them and aren't their author, feel free to tell me about their quality.) -- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): tiny GIF writer (public domain) +- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) - **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) - **images** [tiny_jpeg.h](https://github.com/serge-rgb/TinyJPEG/blob/master/tiny_jpeg.h): JPEG encoder (public domain) - **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) diff --git a/tools/README.footer.md b/tools/README.footer.md index f6292c4..914bf83 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -14,7 +14,7 @@ Yes. I'll even tell you about some. However, I haven't used most of these librar and can't comment on their quality. (If you use them and aren't their author, feel free to tell me about their quality.) -- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): tiny GIF writer (public domain) +- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) - **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) - **images** [tiny_jpeg.h](https://github.com/serge-rgb/TinyJPEG/blob/master/tiny_jpeg.h): JPEG encoder (public domain) - **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) From 34d6c2ca873b51428d12804fb0305ce4cf0e3583 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Wed, 23 Sep 2015 05:01:16 -0700 Subject: [PATCH 03/37] update tinyexr's list position --- README.md | 2 +- tools/README.footer.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 29c4e78..d64c7af 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ free to tell me about their quality.) Not public domain: +- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* - **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) - **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) - **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) @@ -74,7 +75,6 @@ this! But you might like them anyway: - **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) - **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* - **3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib) - **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) - **2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain) diff --git a/tools/README.footer.md b/tools/README.footer.md index 914bf83..7f63591 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -25,6 +25,7 @@ free to tell me about their quality.) Not public domain: +- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* - **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) - **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) - **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) @@ -43,7 +44,6 @@ this! But you might like them anyway: - **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) - **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* - **3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib) - **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) - **2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain) From 6998a8e064eeac13bbce69bda25c2fea8a7ccfbf Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 26 Sep 2015 11:51:23 -0700 Subject: [PATCH 04/37] add gb_string.h --- README.md | 1 + tools/README.footer.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index d64c7af..9b33168 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ free to tell me about their quality.) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) - **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) +- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C Not public domain: diff --git a/tools/README.footer.md b/tools/README.footer.md index 7f63591..81eed5a 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -22,6 +22,7 @@ free to tell me about their quality.) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) - **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) +- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C Not public domain: From 616633b557a792c1059883e6041e83e63b7898d0 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 26 Sep 2015 12:03:09 -0700 Subject: [PATCH 05/37] italicize most recent others' libs --- tools/README.footer.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/tools/README.footer.md b/tools/README.footer.md index 81eed5a..90526d8 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -12,7 +12,7 @@ to do anything else, although I appreciate attribution. Yes. I'll even tell you about some. However, I haven't used most of these libraries and can't comment on their quality. (If you use them and aren't their author, feel -free to tell me about their quality.) +free to tell me about their quality.) _Newest additions are in italics._ - **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) - **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) @@ -22,7 +22,7 @@ free to tell me about their quality.) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) - **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) -- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C +- _**misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C_ Not public domain: @@ -30,14 +30,14 @@ Not public domain: - **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) - **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) - **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) -- **2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license) +- _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) -- **audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license) +- _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) -- **tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license) +- _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ There are some that have a source file and require a separate header file (which they may not even supply). That's twice as many files, and we at nothings/stb cannot condone @@ -45,23 +45,23 @@ this! But you might like them anyway: - **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) - **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- **3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib) +- _**3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib)_ - **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) -- **2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain) -- **geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain) +- _**2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain)_ +- _**geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain)_ - **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) - **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) - **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) -- **AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license) +- _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ - **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) - **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) - **compression** [fastlz](https://code.google.com/p/fastlz/source/browse/#svn%2Ftrunk): fast but larger LZ compression (MIT license) -- **compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license) +- _**compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license)_ - **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- **misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib) +- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) @@ -85,9 +85,10 @@ to get too far from what we do here. ###### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? -Probably because I don't know about it, feel free to submit an issue. But I might not include -it for various other reasons, including subtleties of what is 'minimal other dependencies' and -subtleties about what is 'lightweight'. +Probably because I don't know about it, feel free to submit an issue, email, or tweet it at +me (it can be your own library or somebody else's). But I might not include it for various +other reasons, including subtleties of what is 'minimal other dependencies' and subtleties +about what is 'lightweight'. ###### Why isn't SQLite's amalgamated build on this list? From 3eb363c193c9ebe88e3c554caa1d3004ae668fc9 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 26 Sep 2015 12:03:24 -0700 Subject: [PATCH 06/37] italicize more recent others' libs --- README.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9b33168..97f9320 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ to do anything else, although I appreciate attribution. Yes. I'll even tell you about some. However, I haven't used most of these libraries and can't comment on their quality. (If you use them and aren't their author, feel -free to tell me about their quality.) +free to tell me about their quality.) _Newest additions are in italics._ - **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) - **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) @@ -53,7 +53,7 @@ free to tell me about their quality.) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) - **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) -- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C +- _**misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C_ Not public domain: @@ -61,14 +61,14 @@ Not public domain: - **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) - **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) - **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) -- **2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license) +- _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) -- **audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license) +- _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) -- **tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license) +- _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ There are some that have a source file and require a separate header file (which they may not even supply). That's twice as many files, and we at nothings/stb cannot condone @@ -76,23 +76,23 @@ this! But you might like them anyway: - **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) - **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- **3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib) +- _**3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib)_ - **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) -- **2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain) -- **geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain) +- _**2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain)_ +- _**geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain)_ - **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) - **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) - **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) -- **AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license) +- _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ - **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) - **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) - **compression** [fastlz](https://code.google.com/p/fastlz/source/browse/#svn%2Ftrunk): fast but larger LZ compression (MIT license) -- **compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license) +- _**compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license)_ - **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- **misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib) +- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) @@ -116,9 +116,10 @@ to get too far from what we do here. ###### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? -Probably because I don't know about it, feel free to submit an issue. But I might not include -it for various other reasons, including subtleties of what is 'minimal other dependencies' and -subtleties about what is 'lightweight'. +Probably because I don't know about it, feel free to submit an issue, email, or tweet it at +me (it can be your own library or somebody else's). But I might not include it for various +other reasons, including subtleties of what is 'minimal other dependencies' and subtleties +about what is 'lightweight'. ###### Why isn't SQLite's amalgamated build on this list? From 60e3ecac85065955d5cd1fc1038e762fe78375e6 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 26 Sep 2015 12:14:37 -0700 Subject: [PATCH 07/37] added ImGui to other_libs --- README.md | 6 ++++++ tools/README.footer.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 97f9320..62b7e03 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,12 @@ There is also this XML library, but if you're using XML, shame on you: - **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) +There are some libraries that are just _so_ awesome that even though they use more +than two files we're going to give them special dispensation to appear in their own +little list here. If you're a crazy purist, be warned, but otherwise, enjoy! + +- _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ + *List FAQ* ###### Can I link directly to this list? diff --git a/tools/README.footer.md b/tools/README.footer.md index 90526d8..c355c54 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -69,6 +69,12 @@ There is also this XML library, but if you're using XML, shame on you: - **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) +There are some libraries that are just _so_ awesome that even though they use more +than two files we're going to give them special dispensation to appear in their own +little list here. If you're a crazy purist, be warned, but otherwise, enjoy! + +- _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ + *List FAQ* ###### Can I link directly to this list? From b1160eb7e9df9e639551e6004affdd9a84b54a0e Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:09:25 -0700 Subject: [PATCH 08/37] update other_libs --- README.md | 13 ++++++++++--- tools/README.footer.md | 11 +++++++++-- tools/README.list | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 62b7e03..e11a0df 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ library | lastest version | category | LoC | description **stb_image_resize.h** | 0.90 | graphics | 2586 | resize images larger/smaller with good quality **stb_rect_pack.h** | 0.08 | graphics | 572 | simple 2D rectangle packer with decent quality **stretchy_buffer.h** | 1.02 | utility | 216 | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++ -**stb_textedit.h** | 1.7 | UI | 1301 | guts of a text editor for games etc implementing them from scratch +**stb_textedit.h** | 1.7 | user interface | 1301 | guts of a text editor for games etc implementing them from scratch **stb_voxel_render.h** | 0.83 | 3D graphics | 3750 | Minecraft-esque voxel rendering "engine" with many more features **stb_dxt.h** | 1.04 | 3D graphics | 630 | Fabian "ryg" Giesen's real-time DXT compressor **stb_perlin.h** | 0.2 | 3D graphics | 182 | revised Perlin noise (3D input, 1D output) @@ -64,8 +64,10 @@ Not public domain: - _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) +- _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ - _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) +- _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) - _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ @@ -83,6 +85,7 @@ this! But you might like them anyway: - **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) - **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) - **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) +- _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ - _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ - **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) - **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) @@ -92,13 +95,17 @@ this! But you might like them anyway: - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib)_ +- _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ +- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ +- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license) - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) +- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) -There is also this XML library, but if you're using XML, shame on you: +There is also these XML libraries, but if you're using XML, shame on you: - **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) +- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) There are some libraries that are just _so_ awesome that even though they use more than two files we're going to give them special dispensation to appear in their own diff --git a/tools/README.footer.md b/tools/README.footer.md index c355c54..a417215 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -33,8 +33,10 @@ Not public domain: - _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) +- _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ - _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) +- _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) - _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ @@ -52,6 +54,7 @@ this! But you might like them anyway: - **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) - **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) - **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) +- _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ - _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ - **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) - **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) @@ -61,13 +64,17 @@ this! But you might like them anyway: - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib)_ +- _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ +- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ +- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license) - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) +- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) -There is also this XML library, but if you're using XML, shame on you: +There is also these XML libraries, but if you're using XML, shame on you: - **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) +- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) There are some libraries that are just _so_ awesome that even though they use more than two files we're going to give them special dispensation to appear in their own diff --git a/tools/README.list b/tools/README.list index 8cf1f5f..5ad58a1 100644 --- a/tools/README.list +++ b/tools/README.list @@ -5,7 +5,7 @@ stb_image_write.h | graphics | image writing to disk: PNG, TGA stb_image_resize.h | graphics | resize images larger/smaller with good quality stb_rect_pack.h | graphics | simple 2D rectangle packer with decent quality stretchy_buffer.h | utility | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++ -stb_textedit.h | UI | guts of a text editor for games etc implementing them from scratch +stb_textedit.h | user interface | guts of a text editor for games etc implementing them from scratch stb_voxel_render.h | 3D graphics | Minecraft-esque voxel rendering "engine" with many more features stb_dxt.h | 3D graphics | Fabian "ryg" Giesen's real-time DXT compressor stb_perlin.h | 3D graphics | revised Perlin noise (3D input, 1D output) From 37a493ae21b7dec3c339ac0a4d73c1d0db7158c7 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:11:02 -0700 Subject: [PATCH 09/37] fix typo --- tools/README.footer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/README.footer.md b/tools/README.footer.md index a417215..82cdf8e 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -66,7 +66,7 @@ this! But you might like them anyway: - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) - _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ - _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ -- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license) +- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) From 6464d059ab09e012a4e7f00fcbbbb91212d08d9c Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:11:09 -0700 Subject: [PATCH 10/37] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e11a0df..373a76a 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ this! But you might like them anyway: - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) - _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ - _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ -- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license) +- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) From 847fb2c230859aa91eae47bba3b6fbb86fe91f84 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:13:09 -0700 Subject: [PATCH 11/37] put other_libs list in its own file --- docs/other_libs.md | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 docs/other_libs.md diff --git a/docs/other_libs.md b/docs/other_libs.md new file mode 100644 index 0000000..ff21519 --- /dev/null +++ b/docs/other_libs.md @@ -0,0 +1,95 @@ +#### Are there other single-file public-domain/open source libraries with minimal dependencies out there? + +Yes. I'll even tell you about some. However, I haven't used most of these libraries +and can't comment on their quality. (If you use them and aren't their author, feel +free to tell me about their quality.) _Newest additions are in italics._ + +- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) +- **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) +- **images** [tiny_jpeg.h](https://github.com/serge-rgb/TinyJPEG/blob/master/tiny_jpeg.h): JPEG encoder (public domain) +- **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) +- **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) +- **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) +- **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) +- **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) +- _**misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C_ + +Not public domain: + +- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* +- **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) +- **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) +- **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) +- _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ +- **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) +- **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) +- _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ +- _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ +- **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) +- _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ +- **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) +- **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) +- _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ + +There are some that have a source file and require a separate header file (which they may +not even supply). That's twice as many files, and we at nothings/stb cannot condone +this! But you might like them anyway: + +- **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) +- **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) +- _**3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib)_ +- **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) +- _**2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain)_ +- _**geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain)_ +- **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) +- **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) +- **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) +- _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ +- _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ +- **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) +- **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) +- **compression** [fastlz](https://code.google.com/p/fastlz/source/browse/#svn%2Ftrunk): fast but larger LZ compression (MIT license) +- _**compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license)_ +- **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) +- **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* +- **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) +- **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) +- _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ +- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ +- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ +- **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) +- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ +- **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) + +There is also these XML libraries, but if you're using XML, shame on you: + +- **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) +- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) + +There are some libraries that are just _so_ awesome that even though they use more +than two files we're going to give them special dispensation to appear in their own +little list here. If you're a crazy purist, be warned, but otherwise, enjoy! + +- _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ + +*List FAQ* + +###### Can I link directly to this list? + +You can use [this URL](https://github.com/nothings/stb#other_libs) to link directly to this list. + +###### Why isn't library XXX which is made of 3 or more files on this list? + +I draw the line arbitrarily at 2 files at most. (Note that some libraries that appear to +be two files require a separate LICENSE file, which made me leave them out). Some of these +libraries are still easy to drop into your project and build, so you might still be ok with them. +But since people come to stb for single-file public domain libraries, I feel that starts +to get too far from what we do here. + +###### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? + +Probably because I don't know about it, feel free to submit a pull request, issue, email, or tweet it at +me (it can be your own library or somebody else's). But I might not include it for various +other reasons, including subtleties of what is 'minimal other dependencies' and subtleties +about what is 'lightweight'. + From 4b587a409ab26b0e471c021863e5dd82ad101b97 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:14:48 -0700 Subject: [PATCH 12/37] Update other_libs.md --- docs/other_libs.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index ff21519..a34c541 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -1,6 +1,6 @@ -#### Are there other single-file public-domain/open source libraries with minimal dependencies out there? +# Other single-file public-domain/open source libraries with minimal dependencies -Yes. I'll even tell you about some. However, I haven't used most of these libraries +People have told me about quite a few of these. However, I haven't used most of these libraries and can't comment on their quality. (If you use them and aren't their author, feel free to tell me about their quality.) _Newest additions are in italics._ @@ -72,13 +72,13 @@ little list here. If you're a crazy purist, be warned, but otherwise, enjoy! - _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ -*List FAQ* +## *List FAQ* -###### Can I link directly to this list? +### Can I link directly to this list? -You can use [this URL](https://github.com/nothings/stb#other_libs) to link directly to this list. +Yes, you can just use this page. If you want a shorter, more readable link, you can use [this URL](https://github.com/nothings/stb#other_libs) to link to the FAQ question that links to this page. -###### Why isn't library XXX which is made of 3 or more files on this list? +### Why isn't library XXX which is made of 3 or more files on this list? I draw the line arbitrarily at 2 files at most. (Note that some libraries that appear to be two files require a separate LICENSE file, which made me leave them out). Some of these @@ -86,7 +86,7 @@ libraries are still easy to drop into your project and build, so you might still But since people come to stb for single-file public domain libraries, I feel that starts to get too far from what we do here. -###### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? +### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? Probably because I don't know about it, feel free to submit a pull request, issue, email, or tweet it at me (it can be your own library or somebody else's). But I might not include it for various From f6d172d92be7db105184419f80ec25be7b14616a Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:15:32 -0700 Subject: [PATCH 13/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index a34c541..a4cf3d9 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -64,7 +64,7 @@ this! But you might like them anyway: There is also these XML libraries, but if you're using XML, shame on you: - **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) -- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) +- _**parsing** [pugixml](http://pugixml.org/): XML (MIT license)_ There are some libraries that are just _so_ awesome that even though they use more than two files we're going to give them special dispensation to appear in their own From 2bd2e571a22db8a3c48f5b4314d0d95f18a1f3cb Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:16:13 -0700 Subject: [PATCH 14/37] Update other_libs.md --- docs/other_libs.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index a4cf3d9..e8e69fb 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -93,3 +93,7 @@ me (it can be your own library or somebody else's). But I might not include it f other reasons, including subtleties of what is 'minimal other dependencies' and subtleties about what is 'lightweight'. +### Why isn't SQLite's amalgamated build on this list? + +Come on. + From 8d0ae2d39ffa973230bc33ee4c35d221f046e42b Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:16:33 -0700 Subject: [PATCH 15/37] move other_libs list to its own file --- README.md | 97 +------------------------------------------------- tools/README.footer.md | 97 +------------------------------------------------- 2 files changed, 2 insertions(+), 192 deletions(-) diff --git a/README.md b/README.md index 373a76a..0fb310e 100644 --- a/README.md +++ b/README.md @@ -41,102 +41,7 @@ to do anything else, although I appreciate attribution. #### Are there other single-file public-domain/open source libraries with minimal dependencies out there? -Yes. I'll even tell you about some. However, I haven't used most of these libraries -and can't comment on their quality. (If you use them and aren't their author, feel -free to tell me about their quality.) _Newest additions are in italics._ - -- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) -- **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) -- **images** [tiny_jpeg.h](https://github.com/serge-rgb/TinyJPEG/blob/master/tiny_jpeg.h): JPEG encoder (public domain) -- **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) -- **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) -- **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) -- **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) -- **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) -- _**misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C_ - -Not public domain: - -- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* -- **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) -- **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) -- **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) -- _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ -- **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) -- **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) -- _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ -- _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ -- **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) -- _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ -- **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) -- **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) -- _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ - -There are some that have a source file and require a separate header file (which they may -not even supply). That's twice as many files, and we at nothings/stb cannot condone -this! But you might like them anyway: - -- **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) -- **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- _**3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib)_ -- **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) -- _**2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain)_ -- _**geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain)_ -- **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) -- **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) -- **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) -- _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ -- _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ -- **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) -- **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) -- **compression** [fastlz](https://code.google.com/p/fastlz/source/browse/#svn%2Ftrunk): fast but larger LZ compression (MIT license) -- _**compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license)_ -- **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) -- **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* -- **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) -- **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ -- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ -- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ -- **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) -- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ -- **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) - -There is also these XML libraries, but if you're using XML, shame on you: - -- **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) -- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) - -There are some libraries that are just _so_ awesome that even though they use more -than two files we're going to give them special dispensation to appear in their own -little list here. If you're a crazy purist, be warned, but otherwise, enjoy! - -- _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ - -*List FAQ* - -###### Can I link directly to this list? - -You can use [this URL](https://github.com/nothings/stb#other_libs) to link directly to this list. - -###### Why isn't library XXX which is made of 3 or more files on this list? - -I draw the line arbitrarily at 2 files at most. (Note that some libraries that appear to -be two files require a separate LICENSE file, which made me leave them out). Some of these -libraries are still easy to drop into your project and build, so you might still be ok with them. -But since people come to stb for single-file public domain libraries, I feel that starts -to get too far from what we do here. - -###### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? - -Probably because I don't know about it, feel free to submit an issue, email, or tweet it at -me (it can be your own library or somebody else's). But I might not include it for various -other reasons, including subtleties of what is 'minimal other dependencies' and subtleties -about what is 'lightweight'. - -###### Why isn't SQLite's amalgamated build on this list? - -Come on. +[Yes.](https://github.com/nothings/stb/blob/master/docs/other_libs.md) #### If I wrap an stb library in a new library, does the new library have to be public domain? diff --git a/tools/README.footer.md b/tools/README.footer.md index 82cdf8e..e910267 100644 --- a/tools/README.footer.md +++ b/tools/README.footer.md @@ -10,102 +10,7 @@ to do anything else, although I appreciate attribution. #### Are there other single-file public-domain/open source libraries with minimal dependencies out there? -Yes. I'll even tell you about some. However, I haven't used most of these libraries -and can't comment on their quality. (If you use them and aren't their author, feel -free to tell me about their quality.) _Newest additions are in italics._ - -- **images** [jo_gif.cpp](http://www.jonolick.com/home/gif-writer): animated GIF writer (public domain) -- **images** [gif.h](https://github.com/ginsweater/gif-h): animated GIF writer (public domain) -- **images** [tiny_jpeg.h](https://github.com/serge-rgb/TinyJPEG/blob/master/tiny_jpeg.h): JPEG encoder (public domain) -- **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) -- **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) -- **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) -- **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) -- **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) -- _**misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C_ - -Not public domain: - -- **images** [tinyexr](https://github.com/syoyo/tinyexr): EXR image read/write (BSD license) *uses miniz internally* -- **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) -- **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) -- **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) -- _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ -- **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) -- **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) -- _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ -- _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ -- **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) -- _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ -- **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) -- **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) -- _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ - -There are some that have a source file and require a separate header file (which they may -not even supply). That's twice as many files, and we at nothings/stb cannot condone -this! But you might like them anyway: - -- **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) -- **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- _**3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib)_ -- **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) -- _**2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain)_ -- _**geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain)_ -- **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) -- **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) -- **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) -- _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ -- _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ -- **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) -- **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) -- **compression** [fastlz](https://code.google.com/p/fastlz/source/browse/#svn%2Ftrunk): fast but larger LZ compression (MIT license) -- _**compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license)_ -- **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) -- **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* -- **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) -- **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ -- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ -- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ -- **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) -- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ -- **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) - -There is also these XML libraries, but if you're using XML, shame on you: - -- **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) -- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) - -There are some libraries that are just _so_ awesome that even though they use more -than two files we're going to give them special dispensation to appear in their own -little list here. If you're a crazy purist, be warned, but otherwise, enjoy! - -- _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ - -*List FAQ* - -###### Can I link directly to this list? - -You can use [this URL](https://github.com/nothings/stb#other_libs) to link directly to this list. - -###### Why isn't library XXX which is made of 3 or more files on this list? - -I draw the line arbitrarily at 2 files at most. (Note that some libraries that appear to -be two files require a separate LICENSE file, which made me leave them out). Some of these -libraries are still easy to drop into your project and build, so you might still be ok with them. -But since people come to stb for single-file public domain libraries, I feel that starts -to get too far from what we do here. - -###### Why isn't library XXX which is at most two files and has minimal other dependencies on this list? - -Probably because I don't know about it, feel free to submit an issue, email, or tweet it at -me (it can be your own library or somebody else's). But I might not include it for various -other reasons, including subtleties of what is 'minimal other dependencies' and subtleties -about what is 'lightweight'. - -###### Why isn't SQLite's amalgamated build on this list? - -Come on. +[Yes.](https://github.com/nothings/stb/blob/master/docs/other_libs.md) #### If I wrap an stb library in a new library, does the new library have to be public domain? From cd9c6d7b436f643ac612bd3bc18025226974fc47 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:21:39 -0700 Subject: [PATCH 16/37] Update other_libs.md --- docs/other_libs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index e8e69fb..dd7b48e 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -1,5 +1,7 @@ # Other single-file public-domain/open source libraries with minimal dependencies +In addition to all of [my libraries](https://github.com/nothings/stb), there are other, similar libraries. + People have told me about quite a few of these. However, I haven't used most of these libraries and can't comment on their quality. (If you use them and aren't their author, feel free to tell me about their quality.) _Newest additions are in italics._ From bbdb4f65efad46b47be8ddfd8f7cf198beb46d0c Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:23:56 -0700 Subject: [PATCH 17/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index dd7b48e..a42086a 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -60,7 +60,7 @@ this! But you might like them anyway: - _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ - _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) -- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ +- _**misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) There is also these XML libraries, but if you're using XML, shame on you: From dc92c6c4c455e6c32222309e52978a55071c9c1c Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 08:30:16 -0700 Subject: [PATCH 18/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index a42086a..a41e8ce 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -27,6 +27,7 @@ Not public domain: - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) - _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ - _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ +- _**mulithreading** [mts](https://github.com/vurtun/mts): cross-platform multithreaded task scheduler (zlib license)_ - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) - _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) From bdcc1535d6b5e2c8386f5126d267ab2bfeb9c8cb Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 27 Sep 2015 11:04:06 -0700 Subject: [PATCH 19/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index a41e8ce..221fcc5 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -60,6 +60,7 @@ this! But you might like them anyway: - _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ - _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ - _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ +- _**misc** [minilibs](https://github.com/ccxvii/minilibs): two-file regex, binary tree (public domain)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - _**misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) From cc3bb7c45828e6db4d441e68f6af02f1d60d6109 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 5 Oct 2015 09:43:27 -0700 Subject: [PATCH 20/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index 221fcc5..017c449 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -63,6 +63,7 @@ this! But you might like them anyway: - _**misc** [minilibs](https://github.com/ccxvii/minilibs): two-file regex, binary tree (public domain)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - _**misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ +- _**misc** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license) - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) There is also these XML libraries, but if you're using XML, shame on you: From 0b79b3bfe1cf790ef783e1b9df4a8a9dd58fb91e Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 5 Oct 2015 09:43:46 -0700 Subject: [PATCH 21/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 017c449..f3f0690 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -63,7 +63,7 @@ this! But you might like them anyway: - _**misc** [minilibs](https://github.com/ccxvii/minilibs): two-file regex, binary tree (public domain)_ - **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) - _**misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ -- _**misc** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license) +- _**misc** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) There is also these XML libraries, but if you're using XML, shame on you: From 3e404042c5b1f02bd64d3430a5b79434aa95584a Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Wed, 7 Oct 2015 21:53:40 -0700 Subject: [PATCH 22/37] other_libs: added TweetNaCl --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index f3f0690..a360b57 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -48,6 +48,7 @@ this! But you might like them anyway: - **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) - **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) - _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ +- _**crypto** [TweetNaCl](http://tweetnacl.cr.yp.to/software.html): high-quality tiny cryptography library (public domain)_ - _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ - **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) - **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) From 6a9cdd1c83630f4f27af8e0c6b8b6ba427354975 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Fri, 9 Oct 2015 02:03:44 -0700 Subject: [PATCH 23/37] other_libs: add a few libraries --- docs/other_libs.md | 49 ++++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index a360b57..53dc747 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -12,9 +12,9 @@ free to tell me about their quality.) _Newest additions are in italics._ - **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) - **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) -- **misc** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) +- **strings**; **files & filenames** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) -- _**misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C_ +- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C Not public domain: @@ -22,17 +22,17 @@ Not public domain: - **images** [lodepng](http://lodev.org/lodepng/): PNG encoder/decoder (zlib license) - **images** [nanoSVG](https://github.com/memononen/nanosvg): 1-file SVG parser; 1-file SVG rasterizer (zlib license) - **3D** [tinyobjloader](https://github.com/syoyo/tinyobjloader): wavefront OBJ file loader (BSD license) -- _**2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license)_ +- **2D** [blendish](https://bitbucket.org/duangle/oui-blendish/src): blender-style widget rendering (MIT license) - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) -- _**geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license)_ -- _**audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license)_ -- _**mulithreading** [mts](https://github.com/vurtun/mts): cross-platform multithreaded task scheduler (zlib license)_ +- **geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license) +- **audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license) +- **mulithreading** [mts](https://github.com/vurtun/mts): cross-platform multithreaded task scheduler (zlib license) - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) -- _**parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license)_ +- **parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license) - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) -- _**tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license)_ +- **tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license) There are some that have a source file and require a separate header file (which they may not even supply). That's twice as many files, and we at nothings/stb cannot condone @@ -40,43 +40,46 @@ this! But you might like them anyway: - **images** [picopng.cpp](http://lodev.org/lodepng/picopng.cpp): tiny PNG loader (zlib license) - **images** [jpeg-compressor](https://github.com/richgel999/jpeg-compressor): 2-file jpeg compress, 2-file jpeg decompress (public domain) -- _**3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib)_ +- **3D** [mikktspace](https://svn.blender.org/svnroot/bf-blender/trunk/blender/intern/mikktspace/): compute tangent space for normal mapping (zlib) - **2D** [tigr](https://bitbucket.org/rmitton/tigr/src): quick-n-dirty window text/graphics for Windows (public domain) -- _**2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain)_ -- _**geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain)_ +- **2D** [noc_turtle](https://github.com/guillaumechereau/noc): procedural graphics generator (public domain) +- **geometry** [Tomas Akenine-Moller snippets](http://fileadmin.cs.lth.se/cs/Personal/Tomas_Akenine-Moller/code/): various 3D intersection calculations, not lib-ified (public domain) - **geometry** [Clipper](http://www.angusj.com/delphi/clipper.php): line & polygon clipping & offsetting (Boost license) - **network** [yocto](https://github.com/tom-seddon/yhs): non-production-use http server (public domain) - **network** [happyhttp](http://scumways.com/happyhttp/happyhttp.html): http client requests (zlib license) -- _**network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2)_ +- **network** [mongoose](https://github.com/cesanta/mongoose): http server (GPL v2) - _**crypto** [TweetNaCl](http://tweetnacl.cr.yp.to/software.html): high-quality tiny cryptography library (public domain)_ -- _**AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license)_ +- **AI** [micropather](http://www.grinninglizard.com/MicroPather/): pathfinding with A* (zlib license) - **compression** [miniz.c](https://github.com/richgel999/miniz): zlib compression,decompression, zip file, png writing (public domain) - **compression** [lz4](https://github.com/Cyan4973/lz4): fast but larger LZ compression (BSD license) - **compression** [fastlz](https://code.google.com/p/fastlz/source/browse/#svn%2Ftrunk): fast but larger LZ compression (MIT license) -- _**compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license)_ +- **compression** [pithy](https://github.com/johnezang/pithy): fast but larger LZ compression (BSD license) - **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) -- _**parsing** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license)_ -- _**misc** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license)_ -- _**misc** [klib](http://attractivechaos.github.io/klib/) many 2-file libs: hash, sort, b-tree, etc (MIT license)_ -- _**misc** [minilibs](https://github.com/ccxvii/minilibs): two-file regex, binary tree (public domain)_ -- **misc** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) -- _**misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license)_ -- _**misc** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license)_ +- **strings** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license) +- **strings** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license) +- **data structures** [klib](http://attractivechaos.github.io/klib/): many 2-file libs: hash, sort, b-tree, etc (MIT license) +- _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-file libs: generic hash, list, etc (BSD license)_ +- _**data structures** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license)_ +- **data structures**; **algorithms** [minilibs](https://github.com/ccxvii/minilibs): two-file regex, binary tree (public domain) +- **files & filenames** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) +- **misc** [dbgtools](https://github.com/wc-duck/dbgtools): cross-platform debug util libraries (zlib license) +- _**misc** [stmr](https://github.com/wooorm/stmr.c): extract English word stems (MIT license)_ +- _**misc** [levenshtein](https://github.com/wooorm/levenshtein.c): compute edit distance between two strings (MIT license)_ - **tests** [pempek_assert.cpp](https://github.com/gpakosz/Assert/tree/master/src): flexible assertions in C++ (WTFPL v2 license) There is also these XML libraries, but if you're using XML, shame on you: - **parsing** [tinyxml2](https://github.com/leethomason/tinyxml2): XML (zlib license) -- _**parsing** [pugixml](http://pugixml.org/): XML (MIT license)_ +- **parsing** [pugixml](http://pugixml.org/): XML (MIT license) There are some libraries that are just _so_ awesome that even though they use more than two files we're going to give them special dispensation to appear in their own little list here. If you're a crazy purist, be warned, but otherwise, enjoy! -- _**user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license)_ +- **user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license) ## *List FAQ* From ff085b88f49935a43aec1828f7e64e371b7fa980 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Fri, 9 Oct 2015 02:11:28 -0700 Subject: [PATCH 24/37] Update other_libs.md --- docs/other_libs.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 53dc747..2fb1bf6 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -61,7 +61,7 @@ this! But you might like them anyway: - **strings** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license) - **strings** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license) - **data structures** [klib](http://attractivechaos.github.io/klib/): many 2-file libs: hash, sort, b-tree, etc (MIT license) -- _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-file libs: generic hash, list, etc (BSD license)_ +- _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-header, 1-license-file libs: generic hash, list, etc (BSD license)_ - _**data structures** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license)_ - **data structures**; **algorithms** [minilibs](https://github.com/ccxvii/minilibs): two-file regex, binary tree (public domain) - **files & filenames** [whereami](https://github.com/gpakosz/whereami): get path/filename of executable or module (WTFPL v2 license) @@ -79,7 +79,11 @@ There are some libraries that are just _so_ awesome that even though they use mo than two files we're going to give them special dispensation to appear in their own little list here. If you're a crazy purist, be warned, but otherwise, enjoy! -- **user interface** [ImGui](https://github.com/ocornut/imgui) an immediate-mode GUI ("imgui") named "ImGui" (MIT license) +- **user interface** [ImGui](https://github.com/ocornut/imgui): an immediate-mode GUI ("imgui") named "ImGui" (MIT license) + +Also you might be interested in other related, but different lists: + +- [clib](https://github.com/clibs/clib/wiki/Packages): list of (mostly) small single C functions (licenses not listed) ## *List FAQ* From c4082cfb890946a0c37df6b4c97f57b52042969e Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Fri, 9 Oct 2015 15:31:50 -0700 Subject: [PATCH 25/37] Update other_libs.md --- docs/other_libs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 2fb1bf6..10325a1 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -26,8 +26,9 @@ Not public domain: - **geometry** [sdf.h](https://github.com/memononen/SDF): compute signed-distance field from antialiased image (MIT license) - **geometry** [nanoflann](https://github.com/jlblancoc/nanoflann): build KD trees for point clouds (BSD license) - **geometry** [jc_voronoi](https://github.com/JCash/voronoi): find voronoi regions on float/double data (MIT license) +- _**network** [wby](https://github.com/vurtun/wby): lightweight webserver, fork of webby (BSD license)_ - **audio** [aw_ima.h](https://github.com/afterwise/aw-ima/blob/master/aw-ima.h): IMA-ADPCM audio decoder (MIT license) -- **mulithreading** [mts](https://github.com/vurtun/mts): cross-platform multithreaded task scheduler (zlib license) +- **multithreading** [mts](https://github.com/vurtun/mts): cross-platform multithreaded task scheduler (zlib license) - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) - **parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license) - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) From 385927fb4b8a06d72402fb3971acea1d67142ec4 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 15 Oct 2015 17:59:40 -0700 Subject: [PATCH 26/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index 10325a1..0e0433b 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -31,6 +31,7 @@ Not public domain: - **multithreading** [mts](https://github.com/vurtun/mts): cross-platform multithreaded task scheduler (zlib license) - **parsing** [SLRE](https://github.com/cesanta/slre): regular expression matcher (GPL v2) - **parsing** [PicoJSON](https://github.com/kazuho/picojson): JSON parse/serializer for C++ (BSD license) +- _**parsing** [zange](https://github.com/vurtun/zange): JSON parser (MIT license)_ - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) - **tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license) From 06ae60645efc713362fef70ef6d9c69516ddd425 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 31 Oct 2015 11:17:02 -0700 Subject: [PATCH 27/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index 0e0433b..2931064 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -35,6 +35,7 @@ Not public domain: - **tests** [utest](https://github.com/evolutional/utest): unit testing (MIT license) - **tests** [catch](https://github.com/philsquared/Catch): unit testing (Boost license) - **tests** [SPUT](http://www.lingua-systems.com/unit-testing/): unit testing (BSD license) +- _**misc** [lualite](https://github.com/janezz55/lualite/): generate lua bindings in C++ (MIT license)_ There are some that have a source file and require a separate header file (which they may not even supply). That's twice as many files, and we at nothings/stb cannot condone From 702c5bfee860946b1c9c513a7259a74e0e61f999 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Tue, 3 Nov 2015 15:10:58 -0800 Subject: [PATCH 28/37] Update other_libs.md --- docs/other_libs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 2931064..f9af1b8 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -14,7 +14,8 @@ free to tell me about their quality.) _Newest additions are in italics._ - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) - **strings**; **files & filenames** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) -- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C +- **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C (public domain) +- _**hardware** [EasyTab](https://github.com/ApoorvaJ/EasyTab): multi-platform tablet input (public domain)_ Not public domain: From 76b8ff0051194f554413a791dde0be7974ef12ee Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 04:47:36 -0800 Subject: [PATCH 29/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index f9af1b8..b62e3ea 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -12,6 +12,7 @@ free to tell me about their quality.) _Newest additions are in italics._ - **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) - **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) +- _**math** [sobol](https://github.com/Marc-B-Reynolds/Stand-alone-junk/blob/master/src/SFH/Sobol.h): sobol & stratified sampling sequences (public domain)_ - **strings**; **files & filenames** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) - **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C (public domain) From 450db24449ace1f50f29642b4955acecbe418744 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 04:47:49 -0800 Subject: [PATCH 30/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index b62e3ea..684c561 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -12,7 +12,7 @@ free to tell me about their quality.) _Newest additions are in italics._ - **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) - **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) -- _**math** [sobol](https://github.com/Marc-B-Reynolds/Stand-alone-junk/blob/master/src/SFH/Sobol.h): sobol & stratified sampling sequences (public domain)_ +- _**math** [sobol.h](https://github.com/Marc-B-Reynolds/Stand-alone-junk/blob/master/src/SFH/Sobol.h): sobol & stratified sampling sequences (public domain)_ - **strings**; **files & filenames** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) - **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C (public domain) From b6602ab0850f378154da3395c621862acbed16be Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 04:51:38 -0800 Subject: [PATCH 31/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 684c561..8530770 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -11,8 +11,8 @@ free to tell me about their quality.) _Newest additions are in italics._ - **images** [tiny_jpeg.h](https://github.com/serge-rgb/TinyJPEG/blob/master/tiny_jpeg.h): JPEG encoder (public domain) - **images** [miniexr](https://github.com/aras-p/miniexr): OpenEXR writer (public domain) - **geometry** [nv_voronoi.h](http://www.icculus.org/~mordred/nvlib/): find voronoi regions on lattice w/ integer inputs (public domain) +- _**geometry** [sobol.h](https://github.com/Marc-B-Reynolds/Stand-alone-junk/blob/master/src/SFH/Sobol.h): sobol & stratified sampling sequences (public domain)_ - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) -- _**math** [sobol.h](https://github.com/Marc-B-Reynolds/Stand-alone-junk/blob/master/src/SFH/Sobol.h): sobol & stratified sampling sequences (public domain)_ - **strings**; **files & filenames** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) - **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C (public domain) From a44e950d9a0626d16da0622cc4bb63fd58ccef6d Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 04:58:42 -0800 Subject: [PATCH 32/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 8530770..45a21e8 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -14,6 +14,7 @@ free to tell me about their quality.) _Newest additions are in italics._ - _**geometry** [sobol.h](https://github.com/Marc-B-Reynolds/Stand-alone-junk/blob/master/src/SFH/Sobol.h): sobol & stratified sampling sequences (public domain)_ - **network** [zed_net](https://github.com/ZedZull/zed_net): cross-platform socket wrapper (public domain) - **strings**; **files & filenames** [DG_misc.h](https://github.com/DanielGibson/Snippets/): Daniel Gibson's stb.h-esque cross-platform helpers: path/file, strings (public domain) +- **strings** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) - **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C (public domain) - _**hardware** [EasyTab](https://github.com/ApoorvaJ/EasyTab): multi-platform tablet input (public domain)_ @@ -64,7 +65,6 @@ this! But you might like them anyway: - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) - **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) - **strings** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license) -- **strings** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (zlib license) - **data structures** [klib](http://attractivechaos.github.io/klib/): many 2-file libs: hash, sort, b-tree, etc (MIT license) - _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-header, 1-license-file libs: generic hash, list, etc (BSD license)_ - _**data structures** [PackedArray](https://github.com/gpakosz/PackedArray): memory-efficient array of elements with non-pow2 bitcount (WTFPL v2 license)_ From 20eea21e0114a79bfa179f0cf7db5242ca31f220 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 05:11:34 -0800 Subject: [PATCH 33/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index 45a21e8..10cbce1 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -17,6 +17,7 @@ free to tell me about their quality.) _Newest additions are in italics._ - **strings** [utf8](https://github.com/sheredom/utf8.h): utf8 string library (public domain) - **misc** [MakeID.h](http://www.humus.name/3D/MakeID.h): allocate/deallocate small integer IDs efficiently (public domain) - **misc** [gb_string.h](https://github.com/gingerBill/gb): dynamic strings for C (public domain) +- _**misc** [loguru](https://github.com/emilk/loguru): flexible logging for C++ (public domain) - _**hardware** [EasyTab](https://github.com/ApoorvaJ/EasyTab): multi-platform tablet input (public domain)_ Not public domain: From d4cea6123a0fa8638acef6ea28d99336fed9d174 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 05:13:00 -0800 Subject: [PATCH 34/37] Update other_libs.md --- docs/other_libs.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 10cbce1..32e804f 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -64,7 +64,6 @@ this! But you might like them anyway: - **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) -- **parsing** [Zange](https://github.com/vurtun/zange/blob/master/json.c): another JSON parser (MIT license) - **strings** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license) - **data structures** [klib](http://attractivechaos.github.io/klib/): many 2-file libs: hash, sort, b-tree, etc (MIT license) - _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-header, 1-license-file libs: generic hash, list, etc (BSD license)_ From fa9a6e4e0a99bda20688d4df9d1d1588a790e35e Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 06:48:42 -0800 Subject: [PATCH 35/37] Update other_libs.md --- docs/other_libs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/other_libs.md b/docs/other_libs.md index 32e804f..2827045 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -64,6 +64,7 @@ this! But you might like them anyway: - **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) +- _**parsing** [jzon.h](https://github.com/Zguy/Jzon): JSON parser, C++ (MIT license) - **strings** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license) - **data structures** [klib](http://attractivechaos.github.io/klib/): many 2-file libs: hash, sort, b-tree, etc (MIT license) - _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-header, 1-license-file libs: generic hash, list, etc (BSD license)_ From 3f73dfd7ce055de51fae53c21b7887cc90d86f4d Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 5 Nov 2015 06:49:02 -0800 Subject: [PATCH 36/37] Update other_libs.md --- docs/other_libs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/other_libs.md b/docs/other_libs.md index 2827045..96651bd 100644 --- a/docs/other_libs.md +++ b/docs/other_libs.md @@ -64,7 +64,7 @@ this! But you might like them anyway: - **profiling** [Remotery](https://github.com/Celtoys/Remotery): CPU/GPU profiler Win/Mac/Linux, using web browser for viewer (Apache 2.0 license) - **profiling** [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile): CPU (and GPU?) profiler, 1-3 header files (unlicense) *uses miniz internally* - **parsing** [json.h](https://github.com/sheredom/json.h): JSON parser (public domain) -- _**parsing** [jzon.h](https://github.com/Zguy/Jzon): JSON parser, C++ (MIT license) +- _**parsing** [jzon.h](https://github.com/Zguy/Jzon): JSON parser, C++ (MIT license)_ - **strings** [dfa](http://bjoern.hoehrmann.de/utf-8/decoder/dfa/): fast utf8 decoder (MIT license) - **data structures** [klib](http://attractivechaos.github.io/klib/): many 2-file libs: hash, sort, b-tree, etc (MIT license) - _**data structures** [uthash](https://github.com/troydhanson/uthash): several 1-header, 1-license-file libs: generic hash, list, etc (BSD license)_ From 31eff2dcaf568aec77112d27e772e2f1223de2ae Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 8 Nov 2015 00:37:52 -0800 Subject: [PATCH 37/37] fix bug in integer parsing --- stb_c_lexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_c_lexer.h b/stb_c_lexer.h index 1cf53e4..c1c4279 100644 --- a/stb_c_lexer.h +++ b/stb_c_lexer.h @@ -634,7 +634,7 @@ int stb_c_lexer_get_token(stb_lexer *lexer) if (p[1] == 'x' || p[1] == 'X') { char *q = p+2; #ifdef STB__CLEX_use_stdlib - lexer->int_number = strtol((char *) p, (char **) q, 16); + lexer->int_number = strtol((char *) p, (char **) &q, 16); #else stb__clex_int n=0; while (q != lexer->eof) {