Commit Graph
100 Commits
Author SHA1 Message Date
ed 3e064f6443 progress on sanity_tests.c, adding back md_str8_styllize
Eventually a heavy reduction of base & OS should be provided via libgen or done here to reduce the overall surface area of the library for the user.
Base and os were dragged from raddbg and the original metadesk didn't need as many definitions.
2025-02-13 09:53:46 -05:00
ed 28d0c85771 preogress on sanity_tests.c, NodeFlags -> MD_NodeFlags (somehow not renamed) 2025-02-13 07:41:10 -05:00
ed 2d96f311da move metagen to source/auxiliary 2025-02-12 16:38:45 -05:00
ed f94bd1d374 add link to Jonathan Blow's implicit context vod which has an introduction to the allocator interface 2025-02-12 16:00:29 -05:00
ed 27f873cd8d adding back docs/readme for now as its still relevant.. 2025-02-12 15:57:08 -05:00
ed 0bf3f13c83 omitting tests offloaded to metadesk_libgen 2025-02-12 15:48:17 -05:00
ed 6ee929295a finished corrections/formating after adding prefix 2025-02-12 15:32:12 -05:00
ed 4a6a6b2290 WIP: corrections/formatting post prefix addition 2025-02-12 15:11:20 -05:00
ed 0ab226f739 adding prefixes to source
They'll be removed on demand in libgen repo
2025-02-12 14:40:11 -05:00
ed aa5c1efb36 readme update 2025-02-12 14:15:49 -05:00
ed d569b93bbd adjusting repo for removing extra features not part of the original library 2025-02-12 13:57:45 -05:00
ed ea67e889e0 Moving over lib gen features to a different repo, changing this repo to just be minimal metadesk lib from raddbg 2025-02-12 13:52:09 -05:00
ed 1fad37ad90 began to work on docs 2025-02-12 12:08:41 -05:00
ed 99097b765a attempting to see compatability with old metadesk tests... not looking good... 2025-02-12 00:19:26 -05:00
ed d80a6b61da fixup _Generic macro usage
distinct macros failed (didn't realize). Was able to get proper setup with _Generic_L2 pattern
2025-02-12 00:19:04 -05:00
ed 90836817e9 got c11_sanity.c working (both segregated and single-header)
from now on I'm assuming both will work.
2025-02-11 20:26:03 -05:00
ed f41658efd8 updated gencpp_c11 to latest (backported changes from here to its repo) 2025-02-11 19:30:52 -05:00
ed b3d205da01 Adding MF_Identifier_Decorator option for STB_SPRINTF_DECORATE 2025-02-11 18:58:45 -05:00
ed 85ba3615e3 gen_c11 segregated: metaprogram now splits stb_sprintf_h content between metadesk_deps header and source 2025-02-11 18:24:46 -05:00
ed 6e36cee9e3 was able to parse stb_sprintf.h, had to make mods to gencpp_c11.h (will eventually protogate to its repo) 2025-02-11 16:39:17 -05:00
ed 4976d79ab3 attempting to do a parse on stb_sprintf.h for segregated 2025-02-11 15:32:18 -05:00
ed a6e12a9580 update gen_c11 & gen_cpp17 docs 2025-02-11 13:15:34 -05:00
ed 66d9b4e98a finished inital pass of gen_c11 (singleheader and segeregated) 2025-02-11 13:00:55 -05:00
ed a5af8b3d80 finished initial pass on generating single-header with gen_c11.c (still need to review it) 2025-02-10 23:39:17 -05:00
ed a2938ef3fa gen_c11.c: generates base 2025-02-10 21:48:46 -05:00
ed 5d8850af55 got the baseline drafted for gen_c11.c 2025-02-10 18:41:56 -05:00
ed b989bece73 starting to draft out gen_c11.c 2025-02-10 17:07:11 -05:00
ed e07d7dbc2b update c11.refactor for mdesk symbols 2025-02-10 14:35:09 -05:00
ed d84c47c5ee confirmed code_sanity.c, doing gen_c11 next 2025-02-10 14:06:05 -05:00
ed 42b87be084 oops 2025-02-10 13:43:38 -05:00
ed 03ae07485b fix bugs with inline linked list macros 2025-02-10 12:39:22 -05:00
ed 632bc6d47f memory fixes 2025-02-10 12:00:39 -05:00
ed a54d309fbf finished collaping arena->allocator info code paths 2025-02-10 01:43:33 -05:00
ed fd44c53e57 progress on collaping arena->allocator info code paths: string.h/c done 2025-02-09 20:46:52 -05:00
ed 546c50885f progress on collaping arena->allocator info code paths (did some generic selection changes)
Going to offload prefix naming to the c11.refactor and cpp17.refactor
2025-02-09 19:14:33 -05:00
ed dc9743b003 progress on collaping arena->allocator info code paths for strings.h/c, at string arrays 2025-02-09 14:35:31 -05:00
ed 51d97a71d4 progress on collaping arena->allocator info code paths for strings.h/c, adjusting naming convention 2025-02-09 14:07:01 -05:00
ed 007614c4e6 collapsed arena -> allocatorinfo : math.h 2025-02-09 12:14:04 -05:00
ed 716f8a7f3f coallpsed arena -> allocatorinfo : command_line.h/c 2025-02-09 12:07:44 -05:00
ed c8cb9f3995 prepping to collapse Arena receiving functions to those that receive AllocatorInfo
perf impact of the indirection should be minimal, reduces code duplication.

Ideally we'd use gencpp to just have the user specify what they want, then modify which proc is avail by doing the refactors required for using either
However, it can't process execution bodies yet or expressions so thats not possible.

The other way is to just utilize _Generic to generalize the codepath so that it collapses neater but that leads to a ton of implementation getting lifted to preprocessing... so no.
2025-02-09 11:51:50 -05:00
ed e4f797f594 finished initial pass on stb_sprintf.h 2025-02-09 10:42:26 -05:00
ed 5798526a54 progress on stb_sprintf.h 2025-02-09 05:40:33 -05:00
ed 0485058938 got past init 2025-02-09 05:40:04 -05:00
ed d867a8b0c0 setup os_init() for manually starting up os_context 2025-02-09 02:20:36 -05:00
ed 83ce4d1bb2 more fixes 2025-02-09 00:37:35 -05:00
ed d82af845bc forgot about stb_sprintf.h... 2025-02-08 23:53:35 -05:00
ed 50c7853b9f its compiling... (prepping for runtime testing) 2025-02-08 23:27:06 -05:00
ed 3b12268f46 progress on compiler errors 2025-02-08 22:36:11 -05:00
ed 835bfe654b beginning to tackle compile errors 2025-02-08 21:13:42 -05:00
ed b42f4631ed setup inital build script to start tackling compile errors 2025-02-08 20:54:50 -05:00
ed 14d6c45e91 misc 2025-02-08 20:07:10 -05:00
ed ad47dc037f draft of base.c 2025-02-08 20:02:31 -05:00
ed 843cc7fa90 adjustments to parse_from_text_tokens 2025-02-08 18:08:27 -05:00
ed 2ef486b7a0 misc 2025-02-08 16:26:54 -05:00
ed c8490143a4 initial review of parse_from_text_tokens 2025-02-08 15:01:27 -05:00
ed 558cda3524 sidetrack: doing some basic gen library metaprogram bootstrapping 2025-02-08 14:38:20 -05:00
ed af2c9eceaa mdesk: at Tokens -> Tree Functions 2025-02-08 14:11:56 -05:00
ed 31b8084dcf mdesk: at tree comparison 2025-02-08 13:08:22 -05:00
ed cc5320450c mdesk: at tree introspection 2025-02-08 12:41:07 -05:00
ed fb60578a42 created a non-macro code-path for linked list macro impl ops 2025-02-08 12:39:03 -05:00
ed e77c3c6385 more progress 2025-02-08 11:28:37 -05:00
ed 68fadce5c6 starting to review mdesk.h/c 2025-02-08 11:10:23 -05:00
ed 43baf82a8b c11.refactor (os was simpiler ) 2025-02-08 10:46:00 -05:00
ed 6dd05ebcd9 c11.refactor (base should be mapped) 2025-02-08 10:42:32 -05:00
ed 9afebbea54 in process of updating c11.refactor (last at toolchain.h) 2025-02-08 02:17:19 -05:00
ed e8809a243f initial pass done for os 2025-02-08 00:52:54 -05:00
ed ee6a43e136 doing linux at the same time.... 2025-02-07 19:46:49 -05:00
ed a4f915d27d progress on os (on files) 2025-02-07 19:05:04 -05:00
ed 475dd029e0 reorganizing os 2025-02-07 17:11:54 -05:00
ed 1eb1565a53 remove metagen base (should be converted...) 2025-02-07 17:11:40 -05:00
ed d7498d9511 finished with base? 2025-02-07 17:11:28 -05:00
ed 4ba6e69156 entrypoint.{h, c} 2025-02-07 16:13:53 -05:00
ed 5db492acbb logger 2025-02-07 16:03:22 -05:00
ed 0cb0df469f command_line, markup, profiling... 2025-02-07 15:34:36 -05:00
ed 74388f4163 Finished string.h/c pass (finallY)
moving on to the others...
2025-02-07 12:50:10 -05:00
ed 39ddd820a8 progress on strings, reached serialization fns 2025-02-07 09:58:59 -05:00
ed 40a67c8da9 progress on strings (currently on basic text and escapes) 2025-02-06 19:51:39 -05:00
ed f0b8eaa232 various base progress 2025-02-06 18:54:51 -05:00
ed 887851e36c updating base with stuff missing from metagens's base (was in the regular base of raddbg) 2025-02-06 18:00:46 -05:00
ed 1a3f7e0e8a segregated text stuff to its own set of files agian... progress on strings 2025-02-06 17:03:32 -05:00
ed 75d0f5bca1 progress on base/strings 2025-02-06 13:01:37 -05:00
ed 54d03b35df successful adapted raddbg Arena to new substrate allocator strat 2025-02-06 12:34:11 -05:00
ed bfef61bd0b Seems this strat is still fine... 2025-02-06 11:39:43 -05:00
ed 4221064785 still figuring out some allocator strats around offering opt out of Area 2025-02-06 10:12:17 -05:00
ed 259cb23810 finished reviewing thread_context.h/c for now 2025-02-05 23:56:04 -05:00
ed af0dc24160 progress on strings.h/c started to look at thread_context.h/c 2025-02-05 22:56:35 -05:00
ed 61f2fad8ef working on strings.h/c, added stb_sprint.h from the raddbg repo 2025-02-05 22:02:57 -05:00
ed bf1ec52c3a fix error 2025-02-05 21:13:34 -05:00
ed a1a39d8736 finished math.c (removed math.c its all inlined) 2025-02-05 21:12:27 -05:00
ed 6f9b96fefa progress (cleaning up math.h/c) 2025-02-05 19:39:19 -05:00
ed 21c8d90f5d Added generic_macros.h 2025-02-05 19:15:29 -05:00
ed 9faca77c74 base progress 2025-02-05 18:13:22 -05:00
ed 648e15daa6 Kinda have this memory alloation strat sorted... 2025-02-05 17:18:16 -05:00
ed a41bd8a5f1 frying my brain coming up with a decent compromise on arena usage... 2025-02-05 15:46:58 -05:00
ed 268271e4a7 beginning to lift vmem ops out of the arena 2025-02-05 13:42:36 -05:00
ed 8936ae9aa7 progress on base, deciding to keep the MD namespace minimal on macros pre-c11 or cpp17 gen refactors 2025-02-05 11:20:32 -05:00
ed c1d24b3a07 various progress 2025-02-05 10:37:25 -05:00
ed e19dd6b58c base progress 2025-02-01 23:43:46 -05:00
ed 078bf4b271 base progress 2025-02-01 22:58:35 -05:00
ed 97e54f15a3 base progress 2025-02-01 22:38:48 -05:00