frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Nola – a TypeScript superset where LLM inference is a language feature

https://nola.sh/
2•emykhailenko•2h ago
Hi HN, in a world where 100% of code is written by AI (phew, sometimes even 200%), there might still be a small percentage of us who want to write code in a more efficient way, especially when it comes to LLM interaction. I honestly tired converting my existing TS types into JsonSchemas or wrapping a function into tool object with all this bells and whistles around arguments.

And I started experimenting with an idea - how can make LLM integration feels native? How can an LLM become part of the language / compiler, instead of being just one more external API that we have to integrate through yet another SDK?

And I took the async / await / Promise idea as a starting point, ok so: 'async' - defines an asynchronous boundary, 'Promise' - represents an asynchronous intention, 'await' - resolves it.

So I started thinking, what if we could do something similar for LLMs? That led me to create Nola, a TypeScript superset built around three concepts:

'infer' - like `async`, defines the LLM inference context,

'Intent' - encapsulates the data and instructions that will be sent to the LLM,

'ask' - like `await`, resolves the `Intent` into a typed result

Right now, Intent represents two operations: extract the data and call the function (yes native TS function), but more to come soon.

Docs at: https://nola.sh/docs

Thanks for your honest feedback

Comments

nateb2022•1h ago
Love the idea but I can't help but think of this as RCE as a feature haha
softwarewright•1h ago
This is a good approach. I am also am trying to integrate ML and AI into a language as first class concepts, but currently more focused on the ML side, but also using inference. https://sw-ml-study.github.io/sw-mlpl/

Nola asks: "What if calling an LLM were a language primitive?"

sw-MLPL asks: "What if the mathematical operations used to build and understand ML were language primitives?"

Your approach shows some added some value that I might try to incorporate into my ML array language.

Nola puts the LLM into the language. sw-MLPL puts the math of ML into the language.

Show HN: DOOM in the kernel, or fibers in eBPF

https://ayles.github.io/doom-in-kernel/
13•ayles•1d ago•5 comments

Show HN: MultiMatte, a Promptable Image Background Removal Model

https://usefeyn.com/blog/multimatte/
10•snyy•2h ago•4 comments

Show HN: Syq – copy files between machines fast (better than rsync)

https://greaber.github.io/syq/
21•greaber•3h ago•25 comments

Show HN: Nightshift – Your code gets better while you sleep

https://github.com/openslop/nightshift
2•tcbrah•23m ago•1 comments

Show HN: Pixel Agents – A pixel-art mission control for your Claude Code agents

https://github.com/mateovalle/pixel-agents
2•mateovalle•29m ago•0 comments

Show HN: Art – draw one stroke, let symmetry complete it

https://mrdee.in/mandala/
79•cyb0rg0•5d ago•32 comments

Show HN: Filament – Fast data movement engine in Go

https://github.com/galaxy-io/filament
19•ikswolzok•2d ago•3 comments

Show HN: Raiders at the Gate – tower defense web game

https://games.chrisbeach.co.uk/raiders-at-the-gate/
2•cbeach•44m ago•3 comments

Show HN: Let coding agents work across your laptop, remote machines, and S3

https://github.com/vasinov/ridge-core
2•vasinov•1h ago•0 comments

Show HN: What if the speed of light was 5 km/h?

https://rivendell.dmitrybrant.com/relativity/
552•dmitrybrant•16h ago•243 comments

Show HN: I created a translation service prompt

https://github.com/AlkalineGarrett/language-root-translator
2•alkaline9•1h ago•1 comments

Show HN: We served 5k dynamic websites from a 2-vCPU, 4 GB VPS

https://github.com/Kooboo/Kooboo/blob/main/Docs/5000-sites-benchmark.md
7•zguoqi•3h ago•0 comments

Show HN: Globalping CLI – Run network commands from anywhere in the world

https://globalping.io/cli
2•jimaek•1h ago•0 comments

Show HN: Compute polynomials twice as fast

https://thomasahle.com/fast-polynomials/
121•thomasahle•1d ago•37 comments

Show HN: Dbmask – Discover, mask, and verify sensitive data in SQL databases

https://github.com/sealandseacat/dbmask
4•SiyuanFeng•3h ago•0 comments

Show HN: Nola – a TypeScript superset where LLM inference is a language feature

https://nola.sh/
2•emykhailenko•2h ago•2 comments

Show HN: Turn wire protocols into structured statements LLMs can understand

4•andriosr•2h ago•0 comments

Show HN: I built an AI 'Fog of War' for life goals

https://www.tryworthit.app
2•AvityN•2h ago•1 comments

Show HN: Math Gambling

https://kuber.studio/math-gambling/
6•kuberwastaken•4h ago•0 comments

Show HN: Symphony – a live map of your AI coding agents

https://github.com/itsloganmann/symphony
2•loganmann0324•2h ago•0 comments

Show HN: Talleyrand – Open-source AI thinking workspace built as a question tree

https://talleyrand.app/
2•steshinss•2h ago•0 comments

Show HN: Pascal's Pager – Webhooks In. Push Notifications Out

https://www.pascalspager.com/
2•mflake93•2h ago•0 comments

Show HN: MySamantha – a productivity app where the AI is optional

3•thejasonsamuel•2h ago•0 comments

Show HN: Calmscroll – a reader that shows the current paragraph in the library

https://calmscroll.com
3•amadeuspagel•4h ago•0 comments

Show HN: I built an AI 'Fog of War' to kill my 3AM Notion templates

https://www.tryworthit.app/about
2•AvityN•2h ago•1 comments

Show HN: ObserverBench – Test internal AI monitors by the harm they miss

https://kwisatzh.github.io/observerbench/try/
4•kwisatzh•2h ago•1 comments

Show HN: EterDB, a Postgres fork that makes it easy to recover from incidents

https://eterdb.com/
3•fdeth•2h ago•0 comments

Show HN: An app for passively watching Product Hunt launches as a video playlist

https://github.com/OlegIGalkin/ProductTrailers
3•cantouch•3h ago•0 comments

Show HN: Subnet Calc, visual subnet planning for teams

https://www.subnetcalc.com
3•RossMason•3h ago•2 comments

Show HN: Matcha Filter Remover – browser-first green cast correction

https://matchafilterremover.net/
3•robot1996•3h ago•0 comments