Commit Graph

84 Commits

Author SHA1 Message Date
K. Lange 2793090d07 Make deb package versions a bit smarter 2022-07-31 19:36:22 +09:00
K. Lange 473f0baabb Fix Makefile oops with rpath=$ORIGIN 2022-07-29 12:22:27 +09:00
K. Lange ed81bc9c03 Randomize the opcode table. 2022-07-12 05:41:35 +09:00
K. Lange 5d77dec70e Set rpath in tools 2022-07-04 07:50:53 +09:00
K. Lange f8139f9352 Add versions, local Kuroko to benchmark 2022-05-05 08:23:40 +09:00
K. Lange 300d64495f Relocate modules to resolve a build annoyance. 2021-04-27 21:41:43 +09:00
K Lange 5d9df1ca25 Let's not pull in tcmalloc any more
It seems whatever was causing the ridiculous malloc times previously
is resolved and was something on our end. Let's stop linking with
tcmalloc so we can also get rid of psapi and libstdc++.
2021-04-25 11:32:53 +09:00
K. Lange e4db90d392 Update benchmark suite with fair timing and micropython support 2021-04-16 19:58:05 +09:00
K. Lange 5f766a5726 Add benchmark suite 2021-04-14 22:25:22 +09:00
K. Lange 900e8fb487 Invert debugging-related build flags 2021-04-12 12:05:35 +09:00
K. Lange 7111294f3e Build with -pthread even though I don't know if it matters 2021-04-10 20:02:34 +09:00
K. Lange a9adf8236e After a long day of messing around, just build -O2 instead of -O3... 2021-04-10 16:09:07 +09:00
K Lange f29aac816a Link against archive file so we build it, rather than against objects directly... 2021-04-09 21:58:20 +09:00
K. Lange dc91091de4 Build static archive; build static interpreter where possible 2021-04-09 21:50:44 +09:00
K. Lange 562b3b4122 Update license flag when building deb package 2021-04-09 17:47:32 +09:00
K. Lange 1e40e9b6ad Fix typo 2021-04-05 08:30:59 +09:00
K. Lange 438acaf8a9 Rename DEBUG to KRK_ENABLE_DEBUG to avoid conflicts with third-party libraries 2021-04-05 08:27:15 +09:00
K. Lange 13fea2ce96 Add deploy-docs phony make target 2021-03-29 09:26:24 +09:00
K Lange 551b5d8f2e Add cloc language definition file 2021-03-26 22:47:54 +09:00
K Lange 4f94919bc1 Need to make target directory for codecs module on install 2021-03-24 21:26:52 +09:00
K Lange 8a36b92343 Don't rebuild codec data files unless the sources changed 2021-03-24 21:23:41 +09:00
HarJIT 5c2de206b9
Codecs package (#4)
Codecs package

Co-authored-by: HarJIT <harjit@harjit.moe>
2021-03-24 04:53:02 -07:00
K Lange 9da1577245 Make sure ctags includes headers 2021-03-24 20:49:44 +09:00
K. Lange 573e9b7074 Bundle socket module 2021-03-24 12:28:04 +09:00
K. Lange c905809197 macos doesn't even have objcopy? meh 2021-03-22 12:38:28 +09:00
K Lange a13fb0a837 Remove srv/vendor/*.o on clean 2021-03-22 10:17:09 +09:00
K. Lange a0ad38e225 Header reorg I've been meaning to do for a while 2021-03-22 09:22:39 +09:00
K Lange 8c1ebe531a socket.connect(), general win32 support 2021-03-21 22:27:32 +09:00
K. Lange 658eeb6afd Separate debug symbols from libkuroko.so by default 2021-03-20 21:23:05 +09:00
K. Lange 23839cde76 Add a Make flag for KRK_NO_DOCUMENTATION 2021-03-20 09:29:32 +09:00
K Lange 3daf95bd47 (win32) only link static deps on the core library 2021-03-03 23:37:44 +09:00
K. Lange 9ecbc894ed Build against tcmalloc on win32 2021-03-03 10:41:11 +09:00
K. Lange e06a132a21 Resolve link resolution issue on Darwin 2021-03-03 10:36:44 +09:00
K Lange 9faec7b318 Threading support in mingw win32 builds 2021-03-02 23:24:52 +09:00
K Lange 4c94aab5c1 win32 build fixes 2021-02-26 22:18:40 +09:00
K. Lange 73feea3cc0 Makefile should also install tools 2021-02-24 12:54:54 +09:00
K. Lange db4185d035 I think that should fix up installs to /usr/local ? 2021-02-24 11:22:18 +09:00
K. Lange 361aeb3927 Fixup LDLIBS linking for libkuroko, interpreter, tools, modules? 2021-02-23 16:30:10 +09:00
K. Lange 7df8c0803f Don't use 'git' to do comparison for tests 2021-02-23 14:01:55 +09:00
K. Lange 21afbb3fb1 Actually try to determine the required min libc for deb package 2021-02-23 10:50:37 +09:00
K. Lange d5d3d721e7 The big documentation system overhaul 2021-02-20 14:10:36 +09:00
K. Lange f14cc086e0 Just always enable threading outside of Emscripten and Windows 2021-02-19 13:32:45 +09:00
K. Lange c53b532e9f Fix static build 2021-02-13 09:01:12 +09:00
K. Lange ce28992c83 Clean exec versions of tools 2021-02-13 08:55:03 +09:00
K. Lange e6a50d6746 Clean tools on 'make clean' 2021-02-12 15:54:13 +09:00
K. Lange 13371611e2 Add tools (and tools/kuroko contains symlinks to headers) 2021-02-12 11:48:50 +09:00
K. Lange a15e936d87 Fixes from building on macOS 2021-02-11 20:52:30 +09:00
K. Lange 6f95124bcd Threading
Don't be deceived by its size: this commit is mostly a bunch of
sed replacements to move thread state out of "vm" and introduce
a thread-local "KrkThreadState" object to hold stack pointers and
call frames for individual threads.

Threading support is incomplete and there's almost definitely a
bunch of really easy ways to break everything just by allocating
objects, but really simple stuff like carefully modifying a
a list of ints should work okay.

The README has been rewritten to remove code samples, which have
moved to the Wiki (as has the section on integrating with C).

Some other stuff has also moved around because the threading changes
necessitated a major API break anyway, so I also took the time to
fix some ABI issues.
2021-02-09 18:51:09 +09:00
K. Lange 20676f790e bump libc for deb to 2.29
math module built on Ubuntu 20.04 has a symbol dep for 2.29 for
log, pow, exp
2021-02-09 09:16:02 +09:00
K. Lange b3b56c8e44 Clean up Makefile and add install target 2021-02-08 17:36:03 +09:00