
Harsh Agarwal
72 posts

Harsh Agarwal
@harsh_agw
Software Developer


Introducing Viri Checkout the code - github.com/harshagw/viri Playground - harshagw.github.io/viri Viri feature set 🧠⚙️ – functions with closures – classes with methods and inheritance – lexical scoping and block scopes – loops, conditionals, and expressions – modules with import / export and resolution – runs as both a tree-walking interpreter and a compiler + bytecode VM (~3× faster) Follow along. Actively building and iterating.






Added fuzzy search, regex search, and prefix search⚡️ Check it out - github.com/harshagw/posti… All of them fall out naturally from the FST-based term dictionary. Fuzzy queries use a Levenshtein distance automaton, regex queries use a regex automaton, and prefix queries are just a range scan over the FST to collect matching terms. Once terms are collected, the rest is straightforward: fetch postings and aggregate docs. The heavy lifting is done by the FST.

Introducing postings 🔎 A search engine built to reason about modern full-text search architecture. github.com/harshagw/posti… The system follows an LSM-style design: writes go to a mutable in-memory layer and flush into immutable on-disk segments. Segments are memory-mapped (mmap) for efficient reads, FST-backed dictionaries drive term lookups in the inverted index, and per-segment bitmap tombstones hide obsolete documents. In parallel, reading Introduction to Information Retrieval and studying @blevesearch’s production search engine design.

Introducing postings 🔎 A search engine built to reason about modern full-text search architecture. github.com/harshagw/posti… The system follows an LSM-style design: writes go to a mutable in-memory layer and flush into immutable on-disk segments. Segments are memory-mapped (mmap) for efficient reads, FST-backed dictionaries drive term lookups in the inverted index, and per-segment bitmap tombstones hide obsolete documents. In parallel, reading Introduction to Information Retrieval and studying @blevesearch’s production search engine design.




Viri website is live 🚀 - harshagw.github.io/viri/ I finally gave the language a proper home. The site has a clear overview of what Viri is and a full grammar reference. Next up: an in-browser playground 🧪

Viri website is live 🚀 - harshagw.github.io/viri/ I finally gave the language a proper home. The site has a clear overview of what Viri is and a full grammar reference. Next up: an in-browser playground 🧪







