Commit Graph

254 Commits

Author SHA1 Message Date
Kartik K. Agaram
acb5e88b3c indent 2021-11-23 22:03:14 -08:00
Kartik K. Agaram
32517f428c consistent style 2021-11-23 22:03:00 -08:00
Kartik K. Agaram
c28174bdf5 chess: tweak colors a bit 2021-11-23 15:00:19 -08:00
Kartik K. Agaram
ae3ef2ac66 chess: extract color parameters 2021-11-23 14:56:51 -08:00
Kartik K. Agaram
76fe92c6e3 chess: extract a new function 2021-11-23 14:54:56 -08:00
Kartik K. Agaram
694e4e5f96 chess: fix inconsistency in light piece color 2021-11-23 14:53:19 -08:00
Kartik K. Agaram
7d96a886d8 . 2021-11-23 09:30:17 -08:00
Kartik K. Agaram
1bf2504a8b clean up a warning and a bit of duplication
Now we have 2 probably-valid warnings caused by my edits, and 1
false-positive.
2021-11-22 19:25:05 -08:00
Kartik K. Agaram
76329c0206 standardize warning flags everywhere
I'd like to enable -Wextra as well, but that creates some false
positives.

I've at least made my changes clean w.r.t. -Wextra.

Now we have 4 remaining warnings with gcc 9.3 that seem genuine. Need to
fix those.
2021-11-22 19:01:07 -08:00
Kartik K. Agaram
e77f3eb9f9 . 2021-11-22 18:47:56 -08:00
Kartik K. Agaram
11d370493a drop a warning implied by -Wall 2021-11-22 18:37:11 -08:00
Kartik K. Agaram
ef68041137 standardize CFLAGS in luasocket 2021-11-22 18:36:04 -08:00
Kartik K. Agaram
3b4d7131cb standardize CFLAGS
Adding -Wpedantic creates a new warning. Leaving it alone for now:
  https://stackoverflow.com/questions/31526876/casting-when-using-dlsym
2021-11-22 18:11:38 -08:00
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 requires 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