frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Algorithms and Data Structures in TypeScript – Free Book (~400 Pages)

http://amoilanen.github.io/Algorithms-with-Typescript/
52•jsontwikkeling•2h ago
I started writing this book 10 years ago in JavaScript, got through a few chapters (asymptotic notation, basic techniques, start of sorting), and then abandoned it.

Recently I picked it back up, converted everything to TypeScript, and used AI (Zenflow [1] + Claude Opus 4.6) to complete the remaining chapters. I provided the structure, direction, and initial chapters; the AI generated the bulk of the remaining content under a spec-driven workflow.

The book covers roughly a first 1-2 year CS curriculum: sorting, dynamic programming, graph algorithms, trees, heaps, hash tables, and more. All code is executable, typed with generics/interfaces, and covered with tests.

I've thoroughly reviewed several chapters (sorting, DP, graphs) and done a high-level pass on the rest. Currently in beta — corrections and contributions are welcome.

MIT licensed. Inspired by Wirth's "Algorithms and Data Structures", SICP, and CLRS.

Code and tests: https://github.com/amoilanen/Algorithms-with-Typescript

[1] https://zencoder.ai/zenflow

Comments

gausswho•1h ago
this is well structured and put together. i would think it serves as a good base for refreshing oneself on the fundamentals. and it has a satisfying bend towards being both concise and thorough.
tossandthrow•34m ago
This seems to be an entirely AI promoted post.

dang: Can we get stuff like this out?

jsontwikkeling•31m ago
It might seem so, but it is not an AI promoted post. The book was finished with the AI tools, but a bulk of it was written by myself plus the structure and direction.

And I am human, who first finished a similar course roughly 20 years ago, worked as a TA and taught students programming and algorithms

Permit•5m ago
> and done a high-level pass on the rest.

Why would I read your book if you have not read your book?

TUI Studio – visual terminal UI design tool

https://tui.studio/
232•mipselaer•4h ago•126 comments

Launch HN: Spine Swarm (YC S23) – AI agents that collaborate on a visual canvas

https://www.getspine.ai/
26•a24venka•1h ago•20 comments

I traced $2B in grants and 45 states' lobbying behind age‑verification bills

https://old.reddit.com/r/linux/comments/1rshc1f/i_traced_2_billion_in_nonprofit_grants_and_45/
648•shaicoleman•4h ago•236 comments

Bucketsquatting is (finally) dead

https://onecloudplease.com/blog/bucketsquatting-is-finally-dead
211•boyter•6h ago•109 comments

Willingness to look stupid

https://sharif.io/looking-stupid
537•Samin100•4d ago•181 comments

Okmain: How to pick an OK main colour of an image

https://dgroshev.com/blog/okmain/
119•dgroshev•4d ago•23 comments

Run NanoClaw in Docker Sandboxes

https://nanoclaw.dev/blog/nanoclaw-docker-sandboxes/
57•outofdistro•1h ago•11 comments

Show HN: Algorithms and Data Structures in TypeScript – Free Book (~400 Pages)

http://amoilanen.github.io/Algorithms-with-Typescript/
53•jsontwikkeling•2h ago•7 comments

E2E encrypted messaging on Instagram will no longer be supported after 8 May

https://help.instagram.com/491565145294150
93•mindracer•2h ago•28 comments

Executing programs inside transformers with exponentially faster inference

https://www.percepta.ai/blog/can-llms-be-computers
197•u1hcw9nx•1d ago•62 comments

Show HN: What was the world listening to? Music charts, 20 countries (1940–2025)

https://88mph.fm/
58•matteocantiello•2d ago•20 comments

Monster Is the Machine

https://kirkcenter.org/reviews/monster-is-the-machine/
7•freediver•4d ago•1 comments

What we learned from a 22-Day storage bug (and how we fixed it)

https://www.mux.com/blog/22-day-storage-bug
17•mmcclure•3d ago•1 comments

Dijkstra's Crisis: The End of Algol and Beginning of Software Engineering (2010) [pdf]

https://www.tomandmaria.com/Tom/Writing/DijkstrasCrisis_LeidenDRAFT.pdf
23•ipnon•4d ago•2 comments

Nanny state discovers Linux, demands it check kids' IDs before booting

https://www.theregister.com/2026/03/13/opinion_os_verification/
138•jjgreen•1h ago•106 comments

Prompt-caching – auto-injects Anthropic cache breakpoints (90% token savings)

https://prompt-caching.ai/
62•ermis•3h ago•24 comments

Ceno, browse the web without internet access

https://ceno.app/en/index.html?
91•mohsen1•8h ago•25 comments

“This is not the computer for you”

https://samhenri.gold/blog/20260312-this-is-not-the-computer-for-you/
705•MBCook•13h ago•282 comments

Source code of Swedish e-government services has been leaked

https://darkwebinformer.com/full-source-code-of-swedens-e-government-platform-leaked-from-comprom...
140•tavro•5h ago•124 comments

ATMs didn’t kill bank teller jobs, but the iPhone did

https://davidoks.blog/p/why-the-atm-didnt-kill-bank-teller
473•colinprince•1d ago•490 comments

Gvisor on Raspbian

https://nubificus.co.uk/blog/gvisor-rpi5/
25•_ananos_•4h ago•4 comments

Vite 8.0 Is Out

https://vite.dev/blog/announcing-vite8
438•kothariji•10h ago•135 comments

Bubble Sorted Amen Break

https://parametricavocado.itch.io/amen-sorting
365•eieio•21h ago•111 comments

IMG_0416 (2024)

https://ben-mini.com/2024/img-0416
148•TigerUniversity•4d ago•32 comments

An old photo of a large BBS (2022)

https://rachelbythebay.com/w/2022/01/26/swcbbs/
242•xbryanx•19h ago•153 comments

Enhancing gut-brain communication reversed cognitive decline in aging mice

https://med.stanford.edu/news/all-news/2026/03/gut-brain-cognitive-decline.html
350•mustaphah•22h ago•167 comments

Vite+ Alpha: Unified Toolchain for the Web (MIT License)

https://voidzero.dev/posts/announcing-vite-plus-alpha
35•cpojer•6h ago•3 comments

Shall I implement it? No

https://gist.github.com/bretonium/291f4388e2de89a43b25c135b44e41f0
1423•breton•18h ago•514 comments

Understanding the Go Runtime: The Scheduler

https://internals-for-interns.com/posts/go-runtime-scheduler/
140•valyala•4d ago•24 comments

The Met releases high-def 3D scans of 140 famous art objects

https://www.openculture.com/2026/03/the-met-releases-high-definition-3d-scans-of-140-famous-art-o...
317•coloneltcb•23h ago•65 comments