Commit Graph

240 Commits (389762e2aefb2f0843e51a9d48189c8cad6c850c)

Author SHA1 Message Date
Brett 93812fd138 namespace change 2024-03-31 13:57:42 -04:00
Brett 2280046f14 socket error handler 2024-03-31 13:56:56 -04:00
Brett 31bc3f3bf7 add doubles, floats and longs to argparse 2024-03-30 17:23:23 -04:00
Brett 9b4d0cc9a8 push version 0.12.0. Breaking changes to the hashmap typename, Now blt::hashmap_t and blt::hashset_t
This was done to be more consistent
2024-02-25 14:39:56 -05:00
Laptop Windows 89bde7c6e8 warnings 2024-02-21 20:36:22 -05:00
Laptop Windows 43cf8c0ba1 windows 2024-02-21 20:24:00 -05:00
Brett 83fff1652d he's a beautuful lad though -michael 2024-02-17 20:46:29 -05:00
Brett 6ec0b1f886 changes? 2024-02-14 16:19:48 -05:00
Brett ea31d8f26c add resize to scoped buffer to allow better usage in the GP assignment 2024-02-14 15:21:59 -05:00
Brett 3473247e6c what changed? 2024-02-13 23:49:18 -05:00
Brett 82821c0095 add to_string values to argparse (make it cleaner 2024-02-08 08:49:19 -05:00
Brett a54c45a975 refractor 2024-02-06 00:54:22 -05:00
Brett 8c4c618cc0 refractor a bit 2024-02-06 00:20:37 -05:00
Brett db158fcff3 comment 2024-02-04 14:39:25 -05:00
Brett 83729b83d0 ugh TODO: measure gcc version 2024-02-04 14:38:52 -05:00
Brett b2534baaf0 Merge remote-tracking branch 'github/main' 2024-02-04 13:07:31 -05:00
Brett 527595e1cf add assert with custom runtime fail message 2024-01-31 17:24:46 -05:00
Brett 215a596d21 assert print function 2024-01-31 17:13:22 -05:00
Brett 93f56ebcb2 system 2024-01-31 01:16:13 -05:00
Brett e219444d76 Merge remote-tracking branch 'github/main' 2024-01-19 16:36:50 -05:00
Brett 710656013e loader to BLT_THROW 2024-01-19 16:31:30 -05:00
Brett 3163e66879 loader to string_view 2024-01-19 16:30:35 -05:00
Brett a4f0b1e3d4 obj laoder 2024-01-11 15:51:00 -05:00
Brett 60ec2051d8 nyahh 2024-01-11 11:16:46 -05:00
Brett 8bba4754dc fix warning, make lib shared 2024-01-08 08:58:14 -05:00
Brett bc8134e3a2 pt2 2023-12-16 02:50:16 -05:00
Brett 0ede652ee6 int64_t 2023-12-16 02:49:31 -05:00
Brett 3a4b78144b need max 2023-12-16 02:48:18 -05:00
Brett 320a5af9b9 WHY DEFINE GNUC 2023-12-16 02:42:38 -05:00
Brett 19f775b919 boxes now work nicely 2023-12-15 02:36:50 -05:00
Brett 1d52b21131 ascii box now fixed and back to where it was 2023-12-15 01:49:42 -05:00
Brett 90f271961f visit 2023-12-11 17:52:24 -05:00
Brett c1c989d416 love lambdas 2023-12-11 16:58:20 -05:00
Brett 4e526f1e8e boxes
need to make titleless boxes work next
2023-12-11 16:48:44 -05:00
Brett caaf91e9c7 boxes 2023-12-11 14:57:10 -05:00
Brett da891be991 fix memory leak in assert, add demangling and link options to find function names 2023-12-07 15:59:26 -05:00
Brett cfa9494ffc fix broken columns 2023-12-03 17:08:37 -05:00
Brett 03c63cdf90 formatting broken 2023-12-01 15:03:47 -05:00
Brett 34451b5b86 please make all men gay -brett (to santa, xmas forever list) 2023-12-01 12:02:20 -05:00
Brett 98b5f6fa1e minor formatting 2023-11-30 20:14:18 -05:00
Brett e2b278e8bd working now 2023-11-30 19:56:45 -05:00
Brett b248d9ef91 bad idea for boxing 2023-11-30 17:17:53 -05:00
Brett da32f9b98a Autism (Ascii trees)
making ascii trees because fun
2023-11-29 21:36:22 -05:00
Brett 583807af96 fix profiler sorting 2023-11-26 18:05:38 -05:00
Brett 82d960f833 remove map depend 2023-11-24 13:52:48 -05:00
Brett da0609e0fd C++ 17 2023-11-22 23:06:29 -05:00
Brett 6514736262 add format to cycles to make look nice 2023-11-22 20:39:46 -05:00
Brett e2cc09e8ff tests 2023-11-21 02:34:32 -05:00
Brett 5472783bd7 it's still recursive but it's honest work 2023-11-13 15:32:39 -05:00
Brett 3d7abd2765 fix assert, working on loading 2023-11-13 15:15:27 -05:00
Brett 19baf8b048 include recursive 2023-11-13 14:27:51 -05:00
Brett 32e2d48cd3 worsen logging 2023-11-10 12:40:10 -05:00
Brett e28f30bcec fix uninit error 2023-11-09 15:28:17 -05:00
Brett e81cddf6ba fix posargs 2023-11-08 21:31:53 -05:00
Brett 97860853cf size check 2023-11-08 20:25:47 -05:00
Brett 2a5d643285 minor cleanup 2023-10-05 01:55:15 -04:00
Brett 9c712402f3 profiler_v2 seems to be completely functional 2023-10-05 01:48:54 -04:00
Brett ab24a8733b add partial API compatability with profiler v1
the general idea is the same however due to how profiles are handled after calling write or print profile the intervals inside are no longer valid.
(they are deleted and will be removed from the internal hashmap)
print profile is also now consistent with the new API, old calls will need to be updated.
2023-10-05 01:40:36 -04:00
Brett 3266a7b102 fix profiler disable macro 2023-10-05 01:31:54 -04:00
Brett 620c8b9e33 auto_interval, formatting see details for information
auto_interval now accepts an interval_t* which must be created manually. allows for clean RAII
format now switches to seconds after 1000ms instead of after 100ms. This feels more natural
2023-10-05 01:18:47 -04:00
Brett fd3eb73008 profiler_v2 is WIP. seems to work but isn't fully tested 2023-10-04 01:39:43 -04:00
Brett 0bbcb8eeef Merge remote-tracking branch 'github/main' 2023-09-21 23:24:03 -04:00
Brett 029132c622 macro sackro allocator get fuckedero 2023-09-21 23:23:27 -04:00
Brett a438baeca3 fix time returning only extra nanoseconds. function now returns the total nanoseconds sine starting the program
this might be changed in the future
2023-09-17 16:24:53 -04:00
Brett 0b907867a2 argparse get_cast update to work with all is_arithmetic types 2023-09-17 15:22:37 -04:00
Brett 7a07f4a729 rename internal fields away from help to subcommand 2023-09-16 17:50:37 -04:00
Brett 45aeb13dd8 fix SUBCOMMAND action type 2023-09-16 17:49:52 -04:00
Brett 02a1dc1a8c rename help disabler to SUBCOMMAND action type 2023-09-16 17:40:35 -04:00
Brett 9db6dd8456 fix bug with postional args preventing the warning of missing args
add option to print full filename
fix issue with some help printing full filename
2023-09-16 17:22:15 -04:00
Brett 1e293c7dba argparse update
a "janky" solution has been added to the argparse module of BLT.
The new update allows for the creation of "help disablers" which are basically akin to how git operates with
git submodule
git commit
etc
the primary command "git" can have flags (in the case of the tests, --no-color)
while having multiple help disabling sub commands (currently graphics and blt)
everything before the sub command arg will be processed as a primary command flag
everything after the sub command arg will be processed by the sub command arg_parse
this allows for effective namespacing of command modules

TODO:
- Make this as an action?
- cleanup the code
- use a name that makes more sense than "help disabler"
2023-09-16 16:27:48 -04:00
Brett 9e4bfad087 add more features to argparse
can now add git [name] [args] type calls
2023-09-10 15:33:11 -04:00
Brett 215220f98b move defines to c++ 2023-09-07 00:23:13 -04:00
Brett 9348207ffb Add exceptions / assertions
Only works for linux / GNU
2023-08-23 15:23:47 -04:00
Brett a3f6757146 Add Crow log handler. Crow now logs with BLT 2023-08-14 22:55:03 -04:00
Brett 546acf24bb readd fs tests 2023-08-11 13:50:05 -04:00
Brett f78eec792b make contains work with -- - or non flagged checks 2023-08-11 12:10:00 -04:00
Brett b04591fadb no color 2023-08-11 11:27:59 -04:00
Brett e176030868 Merge remote-tracking branch 'github/main' 2023-08-10 02:30:39 -04:00
Brett e68d7aa87f files? 2023-08-10 02:30:09 -04:00
Brett 04fd3aec8b static, nbt, cassert, algoritmn, get exposed
Basically fix a bunch of stuff that came up in production
2023-08-09 21:48:30 -04:00
Brett a44590c195 add pre/postfix to help 2023-08-08 14:08:03 -04:00
Brett 7e05fb3d60 arg parse should be completely functional!
help works
not all functions have been tested!
2023-08-08 14:06:19 -04:00
Brett 4ae730c9bb remove blt::logging from argparse
use std::cout now as it produces more logical outputs
2023-08-07 22:39:25 -04:00
Brett 2a656a687e use new arg parse + defaults now assigned 2023-08-07 17:42:59 -04:00
Brett b083245ab4 partial rewrite on parsing
- will move new one to replace old one in next commit
- basically the same code but works
- args now support arg_data_t as a default
- arg_data_t is now much smarter
2023-08-07 16:12:43 -04:00
Brett e91c915238 fix logging memory errors 2023-08-03 01:48:24 -04:00
Brett 4a3c03dd5e add -vvv support and add some actions + version 2023-08-02 14:00:11 -04:00
Brett c6cb3c59d4 list consume 2023-08-01 13:58:08 -04:00
Brett a0492df393 args 2023-08-01 13:43:00 -04:00
Brett e702a651df parse names 2023-07-31 13:53:10 -04:00
Brett 620a16574d update hashmap to include hash, eq and alloc 2023-07-30 14:04:59 -04:00
Brett 147c46a1a4 fix cmake lists and move hashmap decl to hashmap.h 2023-07-29 17:41:45 -04:00
Brett 0febd6e8aa arg 2023-07-29 14:04:46 -04:00
Brett 90350e8584 parse 2023-07-29 13:38:19 -04:00
Brett 21425cff55 add parallel hashmaps optional submodule 2023-07-29 02:03:28 -04:00
Brett 7b7d9df67b NBT appears to be completely working 2023-07-28 01:35:01 -04:00
Brett 11408ea4cc fix long array and string due to mistype in constructor 2023-07-27 02:09:50 -04:00
Brett 6c7fab292c Add missing destructors 2023-07-27 01:53:01 -04:00
Brett 126faa0b03 NBT working!! 2023-07-27 01:47:11 -04:00
Brett ff1765c52e reader 2023-07-26 14:03:21 -04:00