Pavel Kulyov pkulev
pkulev pushed tag 6.0.0-win1 to pkulev/chicken6-4-win 2026-10-09 00:40:27 +02:00
pkulev pushed to main at pkulev/chicken6-4-win 2026-10-09 00:38:57 +02:00
2c27d42d7e Run the CHICKEN test suite from build.sh.
pkulev pushed to main at pkulev/chicken6-4-win 2026-10-09 00:36:58 +02:00
1deae560ea Add -Latest to fetch whatever releases/current is serving.
pkulev created branch main in pkulev/chicken6-4-win 2026-10-09 00:24:30 +02:00
pkulev pushed to main at pkulev/chicken6-4-win 2026-10-09 00:24:30 +02:00
4adc949e1b Keep the upstream version, hash, and Gitea coordinates in chicken.json.
11310502f8 Call Windows tar so unpack does not treat the drive letter as a host.
4683bd4839 Add the Windows CHICKEN 6 build and release scripts.
pkulev created repository pkulev/chicken6-4-win 2026-10-09 00:20:43 +02:00
pkulev deleted branch type-inference from alex-eg/sex 2026-10-08 22:31:27 +02:00
pkulev pushed to main at alex-eg/sex 2026-10-08 22:31:27 +02:00
a860da6d7e show the cases the comments were describing
fe72a109bf read a var's type as a type, not as a call
e87463be87 type the operators the walk had no rule for
f5eee71eb7 declare the closure environment in c99
024e97553b keep closure signatures apart when mangled
Compare 17 commits »
pkulev merged pull request alex-eg/sex#39 2026-10-08 22:31:26 +02:00
type-inference
pkulev approved alex-eg/sex#39 2026-10-08 22:30:50 +02:00
type-inference
pkulev pushed to main at pkulev/sex 2026-10-02 22:17:31 +02:00
ca88d9b386 implement compound and designated literals support
a9b00f2135 use true bool, since we target c99 onwards
26e8e6c374 fix lambdas and add a test to prevent rotting
62316e1e3d enable includes to have multiple targets
b1ab18b9af dev: require make deps manually for dev & CI
Compare 38 commits »
pkulev created repository pkulev/foreplay 2026-09-30 19:34:57 +02:00
pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

walk-parts walks the type as well as the initializer. A list whose head is an in-scope closure is rewritten as a closure call, including a parameter name inside a fn type.

pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

The forms that reach this walk are &&, `

pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

When the ranks tie this keeps the left operand, so the declared type depends on the order of the source.

pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

resolve-closure-types runs here and resolve-wildcard does not. (var n _ 1) at toplevel emits static _ n = 1. cc: unknown type name '_'. The same form inside a function becomes int n = 1.

pkulev suggested changes for alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

Built and ran this on CHICKEN 6.0.0 at 9daaa42. make run-tests is green, including closures, fixpoint, wildcards, and inference. The holes below are outside that suite. I compiled each one with ./sexc -C and, where it emitted C, with cc.

pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

The callee is typed before it is walked, so a closure literal has no type yet and falls through to convert-arguments. After the walk the form is a call of the constructor:

pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

An array operand is returned as the array. decay in infer.scm is the conversion this comment describes, and nothing in the walk calls it.

pkulev commented on pull request alex-eg/sex#39 2026-09-30 11:39:23 +02:00
type-inference

A subscript types only when the base's surface form is already (¤ ...). An (* int) is not, so