All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Thinking in K: A Practical Guide to Array Language Programming with ngn/k

By

tosh

9d ago· 4 min readenCode

Summary

A tutorial chapter from the ngn-k-tutorial on GitHub that introduces the concept of "thinking in an array language" using K. It covers practical REPL-based programming workflows, the use of ngn/k with rlfe for history navigation, testing functions interactively before moving to production code, and leveraging ngn/k's prettyprinting feature which always returns valid K data for precomputation to optimize programs.

Key quotes

· 3 pulled
Most K programming happens through the REPL, because it is very useful to iterate upon previous code.
Functions are tested in the REPL, and then moved to actual code.
ngn/k's prettyprinting always returns valid k data, and you can precompute some things beforehand to speed up your program.
Snippet from the RSS feed
An ngn/k tutorial. . Contribute to razetime/ngn-k-tutorial development by creating an account on GitHub.

You might also wanna read