Semantics and Scheduling for Machine Knitting Compilers
Jenny Lin, Vidya Narayanan, Yuka Ikarashi, Jonathan Ragan-Kelley, Gilbert Bernstein, James McCann
Abstract
Machine knitting is a well-established fabrication technique for complex soft objects, and both companies and researchers have developed tools for generating machine knitting patterns. However, existing representations for machine knitted objects are incomplete (do not cover the complete domain of machine knittable objects) or overly specific (do not account for symmetries and equivalences among knitting instruction sequences). This makes it difficult to define correctness in machine knitting, let alone verify the correctness of a given program or program transformation. The major contribution of this work is a formal semantics for knitout, a low-level Domain Specific Language for knitting machines. We accomplish this by using what we call the fenced tangle , which extends concepts from knot theory to allow for a mathematical definition of knitting program equivalence that matches the intuition behind knit objects. Finally, using this formal representation, we prove the correctness of a sequence of rewrite rules; and demonstrate how these rewrite rules can form the foundation for higher-level tasks such as compiling a program for a specific machine and optimizing for time/reliability, all while provably generating the same knit object under our proposed semantics. By establishing formal definitions of correctness, this work provides a strong foundation for compiling and optimizing knit programs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 6e4eed5b-ef7c-4974-9dbd-55965ed65353Cited by top-tier papers2
- MediKnit: Soft Medical Making for Personalized and Clinician-Designed Wearable Devices for Hand EdemaHeather Jin Hee Kim, Narjes Pourjafarian, Arhan Choudhury, Joan Stilling et al.UbiComp 2024 · 5 citations
- Semantics for 2D RasterizationBhargav Kulkarni, Henry Whiting, Pavel PanchekhaOOPSLA 2026
Builds on8
- Exocompilation for productive programming of hardware acceleratorsYuka Ikarashi, Gilbert Louis Bernstein, Alex Reinking, Hasan Genc et al.PLDI 2022 · 56 citations
- Engineering Multifunctional Spacer Fabrics Through Machine KnittingLea Albaugh, James McCann, Scott E. Hudson, Lining YaoCHI 2021 · 46 citations
- Knit sketching: from cut & sew patterns to machine-knit garmentsAlexandre Kaspar, Kui Wu, Yiyue Luo, Liane Makatura et al.SIGGRAPH 2021 · 34 citations
- spaceR: Knitting Ready-Made, Tactile, and Highly Responsive Spacer-Fabric Force Sensors for Continuous InputRoland Aigner, Mira Alida Haberfellner, Michael HallerUIST 2022 · 32 citations
- Petr4: formal foundations for p4 data planesRyan Doenges, Mina Tahmasbi Arashloo, Santiago Bautista, Alexander Chang et al.POPL 2021 · 24 citations
Related papers
- KODA: Knit-program Optimization by Dependency AnalysisMegan HofmannUIST 2024 · 6 citations
- KnitKit: a flexible system for machine knitting of customizable textilesGeorges Nader, Yu Han Quek, Pei Zhi Chia, Oliver Weeger et al.SIGGRAPH 2021 · 20 citations
- KnitScript: A Domain-Specific Scripting Language for Advanced Machine KnittingMegan Hofmann, Lea Albaugh, Tongyan Wang, Jennifer Mankoff et al.UIST 2023 · 28 citations
- KnitGIST: A Programming Synthesis Toolkit for Generating Functional Machine-Knitting TexturesMegan Hofmann, Jennifer Mankoff, Scott E. HudsonUIST 2020 · 27 citations
- Solid KnittingYuichi Hirose, Mark Gillespie, Angelica M. Bonilla Fominaya, James McCannSIGGRAPH 2024 · 11 citations
