Base in Janet #39

Closed
opened 2024-05-19 19:30:26 +00:00 by scott · 4 comments
Owner

Rework clj base into janet:

  • identify all base functions used in the prelude
  • translate those into janet
  • ensure Prelude works with new Base
Rework clj base into janet: - [x] identify all base functions used in the prelude - [ ] translate those into janet - [ ] ensure `Prelude` works with new `Base`
scott added this to the Computer Class milestone 2024-05-19 19:30:28 +00:00
scott self-assigned this 2024-05-19 19:30:35 +00:00
scott added the
next
label 2024-05-19 19:30:42 +00:00
scott added a new dependency 2024-05-19 19:32:24 +00:00
Author
Owner

Most base is complete in e468add325

Left to do:

  • into/2
  • doc
  • to_dict

All of these have some decisions left in them.

Most base is complete in https://alea.ludus.dev/twc/ludus/commit/e468add325cb7cbc9955c5916fcdb7895afe270d Left to do: * `into/2` * ~~`doc`~~ * `to_dict` All of these have some decisions left in them.
Author
Owner

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 have to do some fancy footwork to get these functions to work properly.

We can remove into from base, although that will mean changes in base and/or prelude.

`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 have to do some fancy footwork to get these functions to work properly. We can remove `into` from `base`, although that will mean changes in `base` and/or `prelude`.
Author
Owner

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 to_dict from base.

`to_dict` is used in `dict`, to convert `struct`s (which are no longer in the language) and `ns`es (now `pkg`s) into `dict`s. I'm perfectly happy to say you can't `dict`ify a `pkg`, and ditch `to_dict` from `base`.
Author
Owner

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

Now that `doc!` exists in `base`, that means we should be done with this particular discussion.
scott closed this issue 2024-06-04 20:18:25 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
Reference: twc/ludus#39
No description provided.