Commit Graph

791 Commits

Author SHA1 Message Date
Kartik K. Agaram 97a0254042 standardize CFLAGS in luasec
What in the world is up with the $MYCFLAGS convention in these Lua
makefiles? I don't know, but I'm going to leave it undisturbed as far as
possible.
2021-11-22 18:06:20 -08:00
Kartik K. Agaram c4ecb9a53d standardize on gcc
cc and gcc are identical on my system. But why rely on that.
2021-11-22 17:56:45 -08:00
Kartik K. Agaram 3e04ab5597 chess: make white pieces red for legibility 2021-11-22 17:45:55 -08:00
Kartik K. Agaram c79527b784 delete final vestiges of embedded luasocket 2021-11-22 17:41:08 -08:00
Kartik K. Agaram 70a2e1db1d delete most of the embedded luasocket in luasec
Hilariously, I wasn't linking against it in the first place.
2021-11-22 17:37:41 -08:00
Kartik K. Agaram fe9708fd29 clarify implications for the `require` keyword 2021-11-22 10:52:19 -08:00
Kartik K. Agaram 4dffcacc3a . 2021-11-22 09:08:29 -08:00
Kartik K. Agaram 50008ed438 showcase other apps in the Readme 2021-11-22 09:06:21 -08:00
Kartik K. Agaram b37cbc9ea4 link to video in Readme
I played with inlining video files, but this seems like the sweet spot:
accessible video that isn't in the reader's face.
2021-11-22 08:59:34 -08:00
Kartik K. Agaram 22da460930 chesstv: light colored square on bottom right
1-based indexing is a hassle.
2021-11-22 00:32:48 -08:00
Kartik K. Agaram d40471e9dc luasec: fix 'make clean' 2021-11-22 00:12:37 -08:00
Kartik K. Agaram 86dfa10e05 chesstv.tlv: render clocks 2021-11-21 23:50:10 -08:00
Kartik K. Agaram f9cd9f75c5 chesstv.tlv: looking much better
- square colors are slightly different
- moves are now highlighted

In the process I found lots of bugs in the rendering, and gave up on
supporting adjustable orientation. Just always keep White's side at the
bottom.
2021-11-21 23:38:28 -08:00
Kartik K. Agaram 47524cb007 chess: better colors 2021-11-21 22:48:32 -08:00
Kartik K. Agaram 49cf88e189 almost done with chess app
It's still not very legible.
2021-11-21 22:23:32 -08:00
Kartik K. Agaram f564a5afc5 figured out streaming http!
http://lua-users.org/wiki/FiltersSourcesAndSinks
2021-11-21 20:47:14 -08:00
Kartik K. Agaram 440f6e92c1 . 2021-11-21 18:05:00 -08:00
Kartik K. Agaram e43cdbeac8 more thinking around compatibility and governance 2021-11-21 18:02:27 -08:00
Kartik K. Agaram 80d6db0760 include new dependency in Readme 2021-11-21 17:23:57 -08:00
Kartik K. Agaram 5a484efe8c https now working!
Still extremely ugly:
- I've inlined all the namespaces under ssl, so you need to know that
  context and config are related to ssl.
- luasec comes with its own copy of luasocket. I haven't deduped that
  yet.
2021-11-21 15:55:52 -08:00
Kartik K. Agaram 3b44b9827d basic http requests starting to work
In the process we're starting to load almost all of luasocket by
default. And everything is working as expected, no unpleasant surprises.
2021-11-21 15:07:42 -08:00
Kartik K. Agaram f7ab5dd291 start on HTTP client 2021-11-21 14:33:57 -08:00
Kartik K. Agaram fdd87c5eda now. we. have. JSON.
Completely unmodified from upstream.
2021-11-21 14:22:20 -08:00
Kartik K. Agaram 6643fdee96 . 2021-11-21 14:20:44 -08:00
Kartik K. Agaram b793604279 first glimmers of networking working 2021-11-21 09:59:27 -08:00
Kartik K. Agaram 15b43d3092 drop some redundant `require`s 2021-11-20 23:35:22 -08:00
Kartik K. Agaram 548d59f918 luasocket now loading properly
I still haven't tried actually running it.
2021-11-20 23:34:29 -08:00
Kartik K. Agaram 02acfa7c9c rename 2021-11-20 21:03:38 -08:00
Kartik K. Agaram fa6faaa700 extract a helper 2021-11-20 20:35:37 -08:00
Kartik K. Agaram 6bdc3d17a7 inline luasocket
Just builds for now, isn't available yet to Lua code.
2021-11-20 20:26:17 -08:00
Kartik K. Agaram 38b21ef79b bugfix: support running from top-level
Unfortunately we can't currently run teliva from anywhere else :/
2021-11-20 19:59:32 -08:00
Kartik K. Agaram 17ccb059b4 update Readme to reflect lots more curses bindings 2021-11-20 16:48:13 -08:00
Kartik K. Agaram d6ff198e78 get rid of a distracting name
No distinction now between the C and Lua versions of the curses library.
We build them all together in one place.
2021-11-20 16:33:41 -08:00
Kartik K. Agaram b618bfc7cf port changes from minimal to maximal version
From lcurseslib.c to lcurses/ directory.
2021-11-20 16:33:41 -08:00
Kartik K. Agaram 8a3e81b4b0 report errors when calling non-existent functions 2021-11-20 10:13:58 -08:00
Kartik K. Agaram e693448b65 inline in C is not worth the trouble
https://merveilles.town/@akkartik/107310347838372198
2021-11-20 10:10:26 -08:00
Kartik K. Agaram b43747ecef inline lcurses maximally rather than minimally
Until now we had just the bare minimum bindings needed for the demos
built so far. Now we have all of lcurses building in place with minimal
changes.

The changes in this commit can run hanoi.lua when inlined into Lua 5.1,
but don't work with Teliva.
2021-11-19 19:11:03 -08:00
Kartik K. Agaram 9837d327f5 . 2021-11-19 07:12:25 -08:00
Kartik Agaram 428afbb19d demo
https://archive.org/details/akkartik-2021-11-14
2021-11-14 14:40:55 -08:00
Kartik K. Agaram 720d728a8d tested on Mac OS 2021-11-14 12:33:25 -08:00
Kartik K. Agaram 96e07cd8c9 list dependencies 2021-11-14 12:32:27 -08:00
Kartik K. Agaram 0d9e0d15ea . 2021-11-14 12:20:14 -08:00
Kartik K. Agaram 9846256738 drop mentions of the old .teliva extension 2021-11-14 12:19:06 -08:00
Kartik K. Agaram 015d065bf2 . 2021-11-14 12:17:46 -08:00
Kartik K. Agaram 156f978236 tweak Readme 2021-11-14 12:16:07 -08:00
Kartik K. Agaram 34e3579ddb get rid of old script files 2021-11-14 11:10:51 -08:00
Kartik K. Agaram f40bc31cc3 import life.teliva into image format 2021-11-14 11:10:18 -08:00
Kartik K. Agaram 58d2d596ea cleaner error handling 2021-11-14 09:55:13 -08:00
Kartik K. Agaram a3ca7877da . 2021-11-14 09:48:41 -08:00
Kartik K. Agaram 7b91691b14 remain in editor on error 2021-11-14 09:48:41 -08:00