Scott Richmond scott
  • Joined on 2023-07-29
scott pushed to to_janet at twc/ludus 2024-06-04 20:57:36 +00:00
fa5e298d94 ref -> box; fix box representations; add ds modifying functions to base
scott pushed to to_janet at twc/ludus 2024-06-04 20:24:58 +00:00
6cc7f045a2 complete draft of base
scott commented on issue twc/ludus#39 2024-06-04 20:18:25 +00:00
Base in Janet

Now that doc! exists in base, that means we should be done with this particular discussion.

scott closed issue twc/ludus#39 2024-06-04 20:18:25 +00:00
Base in Janet
scott commented on issue twc/ludus#39 2024-06-04 20:17:44 +00:00
Base in Janet

to_dict is used in dict, to convert structs (which are no longer in the language) and nses (now pkgs) into dicts.

I'm perfectly happy to say you can't dictify a pkg, and ditch…

scott commented on issue twc/ludus#39 2024-06-04 20:14:22 +00:00
Base in Janet

into is used in slice and set:

  • in slice it is redundant, since slices return arrays instead of seqs in Janet.
  • in set it is not enough, since Janet has no set type and we'll…
scott commented on issue twc/ludus#41 2024-06-04 20:10:59 +00:00
Give partially applied functions better names

Done, as of f80aa7a8dc. Got mixed in with other work on the same commit. Whoops!

scott closed issue twc/ludus#41 2024-06-04 20:10:59 +00:00
Give partially applied functions better names
scott commented on issue twc/ludus#51 2024-06-04 20:09:29 +00:00
Partially applied functions should be able to take arguments immediately

This was either solved in my approach to giving partially applied functions better names, OR was not an issue at all; one snafu here is that base builtin functions may not be partially…

scott closed issue twc/ludus#51 2024-06-04 20:09:29 +00:00
Partially applied functions should be able to take arguments immediately
scott commented on issue twc/ludus#65 2024-06-04 20:07:07 +00:00
Consider subtle scoping/shadowing rules

Just did it: copied the context the function closes over into a struct, never worry about this again.

Had to do some fancy footwork with forward declarations, but it the solution works!

https…

scott closed issue twc/ludus#65 2024-06-04 20:07:07 +00:00
Consider subtle scoping/shadowing rules
scott pushed to to_janet at twc/ludus 2024-06-04 20:06:36 +00:00
a25ece5a68 fixed closure/function contexts work with forward declaration & mutual recursion
scott opened issue twc/ludus#65 2024-06-04 19:52:36 +00:00
Consider subtle scoping/shadowing rules
scott pushed to to_janet at twc/ludus 2024-06-04 19:52:29 +00:00
f80aa7a8dc function contexts are fixed at declaration
scott commented on issue twc/ludus#59 2024-06-04 18:52:08 +00:00
show works for patterns

Done, with df274799be

scott closed issue twc/ludus#59 2024-06-04 18:52:08 +00:00
show works for patterns
scott closed issue twc/ludus#37 2024-06-04 18:51:34 +00:00
Good-enough Janet interpreter
scott commented on issue twc/ludus#37 2024-06-04 18:51:15 +00:00
Good-enough Janet interpreter

And pkgs work (I think!) with b86a25b5bc

scott commented on issue twc/ludus#37 2024-06-04 18:51:07 +00:00
Good-enough Janet interpreter

And pkgs work (I think!) with b86a25b5bc