Project ideas from Hacker News discussions.

Teal – A statically-typed dialect of Lua

📝 Discussion Summary (Click to expand)

1. Questioning the need for new languages in the AI era
Commenters wonder why invest effort in languages like Teal when LLMs could generate code or even build compilers.
- “What is the purpose of gcc in the new age of AI? Can't you ask your agent to build a compiler if you want to run Hello World?” – arshxyz
- “I agree with this sentiment.” – subversiontaco (referring to the redundancy of learning new languages)

2. Artistic/experimental motivation as a valid reason
Several participants defend creating or using languages purely for fun or artistic expression, independent of practical utility.
- “What is the purpose of these kind of experiments if not for artistic purposes in the new age of AI?” – arisAlexis
- “I don't see anything wrong with coding for purely artistic purposes?” – gucci-on-fleek

3. Static typing (Teal) as a tool to improve LLM‑generated code
The discussion highlights that a type checker can help LLMs avoid mistakes and enforce correct types, especially in Lua‑heavy domains like game modding.
- “Presumably a static type checker would be quite helpful for LLMs, since it would help them catch lots of their mistakes.” – gucci-on-fleek
- “I ported a mod I made to Teal when adding a feature was taking me way too long in regular Lua … Teal … give[s] a pretty good way of statically enforcing what the actual types it should be using.” – saghm


🚀 Project Ideas

Generating project ideas…

LLM-Lua Guard

Summary

  • A static analysis tool that scans LLM‑generated Lua code for common anti‑patterns (e.g., abusive pcall usage, missing type checks) and suggests fixes or optional Teal type annotations.
  • Core value: instantly improves the safety and readability of AI‑written Lua mods without requiring developers to learn a new language.

Details

Key Value
Target Audience Lua modders, game‑dev communities (Roblox, Love2D, Factorio) who use LLMs to generate code
Core Feature Pattern‑based linting + automatic Teal annotation insertion for unsafe constructs
Tech Stack Lua (LuaLS parser), Rust (for fast analysis), optional WebAssembly for browser demo
Difficulty Medium
Monetization Hobby

Notes

  • HN users complained that LLMs “use pcall in ridiculous ways” (saghm) and wanted a static type checker to catch LLMs’ mistakes.
  • Provides immediate feedback that aligns with the desire for “a static type checker … to help LLMs catch lots of their mistakes” (gucci-on-fleek).

Tealify

Summary

  • A command‑line / web service that takes raw Lua output from an LLM and automatically converts it into idiomatic Teal with inferred type annotations.
  • Core value: lets modders keep using familiar Lua syntax while gaining compile‑time safety of Teal without manual rewrites.

Details

Key Value
Target Audience Developers who prompt LLMs for Lua mods and want type safety (e.g., Roblox creators, open‑source game modders)
Core Feature Lua‑to‑Teal transpiler with type inference, optional annotation tweaks via CLI
Tech Stack Teal compiler (Lua), Python/FastAPI for API, Docker for deployment
Difficulty Medium
Monetization Revenue-ready: SaaS tiered pricing (free tier + $9/mo for private repos & higher concurrency)

Notes

  • Commenters noted “Teal … gives a pretty good way of statically enforcing what the actual types it should be using” (saghm) and that learning a new language feels redundant now (HexDecOctBin); Tealify bridges that gap.
  • Enables discussion about mixing LLMs with gradual typing, a topic of interest on HN.

LuaLLM Playground

Summary

  • An interactive web IDE where users can prompt LLMs for Lua/Teal code, view real‑time linting/type‑checking results, and iterate with one‑click fix suggestions.
  • Core value: shortens the feedback loop between AI code generation and correct, type‑safe Lua mods.

Details

Key Value
Target Audience Hobbyist modders, educators, and anyone experimenting with LLMs for Lua scripting
Core Feature Split‑screen editor: left pane for LLM prompt/generated code, right pane for live Teal type checking and linting
Tech Stack React + Monaco Editor, Node.js backend, Teal/Wasm for client‑side type checking, optional LLM API proxy
Difficulty High
Monetization Hobby

Notes

  • Users expressed frustration with LLMs being “rather abysmal at writing reasonable Lua” (saghm) and wished for better tooling; the playground gives immediate visual feedback.
  • Sparks conversation on HN about effective prompting strategies for LLMs in statically typed dialects like Teal.

Read Later