ETamil

Uses your system voice; voice and rate in settings.

Snapshot

≈ 5 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

eTamil is a high-level programming language whose keywords are words of the Tamil language. It is designed as a domain-specific language for Indian accounting, taxation and financial technology, and also provides the features of a general-purpose programming language, including first-class functions, user-defined record types, modules, database access and an HTTP server. Financial concepts are part of the language's vocabulary rather than a library: (credit), (debit), (tax) and (balance sheet) are keywords.

How it works

Every number is a fixed-point decimal, so that 0.1 + 0.2 evaluates to exactly 0.3 . Each keyword may be written in Tamil script, in an ASCII romanization, or for most keywords with an English alias. eTamil was created by Esan Maruff. It first appeared on GitHub in June 2024, and its current implementation dates from January 2026. Its reference implementation is written in Rust and includes a bytecode virtual machine and an experimental LLVM back end. Its standard library, nUlakam, is written in eTamil itself.

eTamil is a high-level programming language whose keywords are words of the Tamil language. It is designed as a domain-specific language for Indian accounting, taxation and financial technology, and also provides the features of a general-purpose programming language, including first-class functions, user-defined record types, modules, database access and an HTTP server. Financial concepts are part of the language's vocabulary rather than a library: (credit), (debit), (tax) and (balance sheet) are keywords.

Every number is a fixed-point decimal, so that 0.1 + 0.2 evaluates to exactly 0.3 . Each keyword may be written in Tamil script, in an ASCII romanization, or for most keywords with an English alias. eTamil was created by Esan Maruff. It first appeared on GitHub in June 2024, and its current implementation dates from January 2026. Its reference implementation is written in Rust and includes a bytecode virtual machine and an experimental LLVM back end.

Its standard library, nUlakam, is written in eTamil itself. assignment with = , and the statement, which binds a name once; reassigning it or changing an element or field of its value is rejected before the program runs; the and conditional statements; the loop, which repeats while its condition holds, and the ... loop over arrays, records and strings; function definitions and the statement; , which imports a module, resolving the path beside the importing file and then along an ETAMIL_PATH environment variable; , which declares an HTTP route, and , which sends a response; , which runs a block repeatedly at a fixed interval under the HTTP server. அச்சு "வணக்கம், உலகம்!"; Exact decimal arithmetic, with the output of each line shown in a comment: அச்சு 0.1 + 0.2; // 0.3 அச்சு 99.99 * 3; // 299.97 அச்சு 18%; // 0.18 A conditional, reading an income and applying a tax rate above a threshold: எண் வருவாய்; அச்சு "வருமானம்: "; உள்ளிடு வருவாய்; வரி = 20%; (வருவாய் > 800000) எனில் { அச்சு (வருவாய் - 800000) * வரி; } இன்றேல் { அச்சு "வரி இல்லை"; } Error handling with result values; ? returns the failure to the caller: செயல் வகு(மேல், கீழ்) { (கீழ் == 0) எனில் { திரும்பு தவறு("பூஜ்ஜியத்தால் வகுக்க முடியாது"); } திரும்பு சரி(மேல் / கீழ்); } செயல் சராசரி_விலை(மொத்தம், எண்ணிக்கை) { ஒன்று = வகு(மொத்தம், எண்ணிக்கை)?; திரும்பு சரி(வட்டமிடு(ஒன்று, 2)); } அச்சு சராசரி_விலை(1000, 3); // சரி(333.33) அச்சு சராசரி_விலை(1000, 0); // தவறு(பூஜ்ஜியத்தால் வகுக்க முடியாது) A record shape with a method computing a loan's equated monthly installment: வடிவம் கடன் { எண் அசல், எண் ஆண்டு_வீதம், எண் மாதங்கள், செயல் தவணை(இது) எண் { ம = இது.ஆண்டு_வீதம் / 12; காரணி = 1; எண்ணி = 0; (எண்ணி Iteration over an array of records, using the standard library's rupee formatting with Indian digit grouping: இறக்கு "nUlakam/paNam/paNam.qmz"; செலவுகள் = [ {"பெயர்": "வாடகை", "தொகை": 18000}, {"பெயர்": "மின்சாரம்", "தொகை": 2450.50} ]; மொத்தம் = 0; ஒவ்வொரு பதிவு இல் செலவுகள் { அச்சு பதிவு.பெயர் & ": " & ரூபாய்(பதிவு.தொகை); மொத்தம் = மொத்தம் + பதிவு.தொகை; } அச்சு "மொத்தம்: " & ரூபாய்(மொத்தம்); // மொத்தம்: ₹20,450.50 An HTTP route returning JSON: வழி பெறு, "/api/hello" { ஜேசான்_உரை "{\"message\": \"Hello, World!\"}", 200; } வழங்கி_தொடங்கு "localhost", 8080;

Text derived from https://en.wikipedia.org/w/index.php?oldid=1378158960 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

20 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.