惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
量子位
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
H
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
博客园 - 聂微东
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
L
LangChain Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
Teak - A Kotlin-inspired language that runs on Node.js
asadawadia · 2026-05-20 · via Hacker News: Show HN

Introduction

I really enjoy programming in Kotlin but it can be a bit of a chore to get started with the initial project setup boilerplate like Intellij and Maven + pom.xml file. In fact, it has been such a persistent issue that I have a whole boilerplate repo setup to insta-clone and get started. You can read more about it here

I wanted Kotlin but with no build step, no dependencies to manage, no project structure required, don’t even need a main(). When insiration strikes, I wanted something that allows you to try out an idea quickly without all the ceremony. Initially I was trying to mimic bhai lang as a DSL in Kotlin but then I started thinking why a DSL and why in Kotlin? Why can’t I just write my own lexer, parser, and interpreter combo and have the exact syntax I want. With AI assisted development becoming common, I decided to vibe code a language with the exact semantics and syntax that I wanted.

Teak lets you focus on what you’re building, the core idea, not the tooling around it.

The language

Teak is to Kotlin what Crystal is to Ruby. It takes in some parts of Golang as well and mixes them in certain areas. If you have used Kotlin before the syntax will feel familiar.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

println("Hello from Teak!")

data class User(name, score)

val users = mutableListOf(
User("Ada", 95), User("Grace", 88), User("Linus", 92)
)

val top = users
.filter { it.score > 90 }
.sortedByDescending { it.score }

top.forEach { println("${it.name}: ${it.score}") }


Key features:

  • Data classes for simple data holders
  • Default parameters on functions
  • Functional operations on lists and maps (map, filter, fold, etc.)
  • Functions are a first class citizen with convenient lambdas
  • Built in http server and client
  • Can import and use any npm package

How to run it

After installing via npm (npm i @teaklang/teak), you get two commands:

  • teak file.tk - runs a Teak script directly
  • teakc file.tk - compiles Teak to JavaScript (outputs to stdout)

The dev loop then becomes:

  1. Get an idea
  2. Write your .tk file
  3. Run teak your-file.tk
  4. See the output

Standard library

Teak comes with a standard library for scripting:

  • File system operations (read/write files, walk directories)
  • HTTP client (get, post, download)
  • JSON parsing and serialization
  • Collections with functional operations (list, map, set)
  • Concurrency primitives (go {} for goroutine-like concurrency, channels)
  • Math and string utilities

An HTTP server library is built directly in to the language

1
2
3
4
5
6
7
8
9
10
11
12
val server = HttpServer(3000)

server.get("/") {
it.html("<h1>Hello from Teak!</h1>")
}

server.get("/users/:id") {
val id = it.params.get("id")
it.json(mutableMapOf("userId" to id))
}

server.start()

Try it

Install: npm i @teaklang/teak
Docs: https://teak-lang.aawadia.dev/
Examples: https://github.com/asad-awadia/teak-lang/tree/main/examples