frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Tomo: A statically typed, imperative language that cross-compiles to C [video]

https://www.youtube.com/watch?v=-vGE0I8RPcc
15•evakhoury•4d ago

Comments

az09mugen•2d ago
TLDW; For those interested in the syntax, here the repo with some examples : https://github.com/bruce-hill/tomo
az09mugen•2d ago
Well thought language, I like the concepts.
tines•1h ago
I like the effort, but this

> No polymorphism, generics

makes it DOA for me. Also the fact that this is a GC language makes it feel like it's aiming at higher level applications than C.

netbioserror•1h ago
The feature list here has significant overlap with Nim. Maybe we need a website that categorizes languages with feature tags, so we can visualize the overlap!
spijdar•1h ago
Superficially similar, but from a look at the README, it has no polymorphism or generics, which hugely differentiates it from Nim, which leans very, very heavily on templates/generics throughout the entire language/standard library.

Granted, that also means Tomo probably has better incremental compilation, and would likely be more amiable to creating shared libraries. You can do that with Nim, too, but the external interface (generally) has to be "C" semantics (similar to most other "high level" languages).

tines•1h ago
> would likely be more amiable to creating shared libraries.

Why's that? There's a gc/no-gc barrier to cross, and also being able to use other features in an implementation doesn't make creating a C interface harder.

spijdar•24m ago
I was thinking more along the lines of compiling Tomo code, then being able to link against that pre-compiled binary from other Tomo code. Basically being able to substitute a source file module for a binary module.

I don't know if Tomo supports anything like that, but not having generics would make it easier/simpler to implement (e.g. no need to mangle symbol names). Note "easier/simpler", Nim can also "precompile Nim libraries for Nim code", but the resulting libraries are brittle (API-wise), and only really useful for specific use cases like creating binary Nim plugins to import to another Nim program, where you'll want to split out the standard runtime library [0] and share it across multiple images. It's not useful for e.g. precompiling the standard library to save time.

I know Nim has been working on incremental compilation, too, but I don't know what the state of that is. I think it might have been punted to the rewritten compiler/runtime "Nim 3".

[0] https://nim-lang.org/docs/nimrtl.html

jll29•59m ago
It's a very clever aspiration to devise a new language not as something you hope everyone is going to switch to, but, as the OP states more of a test-bed to demonstrate a bunch of nice features, which you hope other people (that implement mainstream languages) will borrow/steal/copy. For instance, I very much appreciate the automatic parsing of command line arguments (and beyond just strings), which I hope the Rust folks will take over one day. Who would not like to skip all the boiler plate writing, but still offer decent cmd line options? For that reason, I will not compare the current Tomo feature set with any other language (as many other commenters do). But I will say that 150 lines for a complete terminal "snakes" game is pretty cool!

It's also smart to facilitate integration with C or other languages that have an abundance of libraries, because it's unlikely that you will create the momentum to rewrite everything in your facorite baby language.

IshKebab•55m ago
Looks like a neat little language. I didn't see anything especially novel that other languages would want to steal though. The CLI parsing stuff is very similar to Typer, or clap_derive. Arbitrary precision integers are in Python (though I wish more scripting languages would do this too). Zig has great C interop.

I wish it was an embeddable language like Lua though - there are a gazillion languages that are similar to this that you can use for non-embeddable cases... But there are very very few statically typed embeddable scripting languages. The only ones I know of are Gluon, which leans waaaay too far into the obscure functional stuff for a scripting language... and AngelScript which is just a bit too ancient and Javaesque for me.

The Codex App

https://openai.com/index/introducing-the-codex-app/
279•meetpateltech•2h ago•171 comments

Ask HN: Who is hiring? (February 2026)

192•whoishiring•4h ago•236 comments

Hacking Moltbook

https://www.wiz.io/blog/exposed-moltbook-database-reveals-millions-of-api-keys
119•galnagli•4h ago•81 comments

Todd C. Miller – Sudo maintainer for over 30 years

https://www.millert.dev/
177•wodniok•3h ago•101 comments

Advancing AI Benchmarking with Game Arena

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/kaggle-game-arena-updates/
56•salkahfi•2h ago•29 comments

Nano-vLLM: How a vLLM-style inference engine works

https://neutree.ai/blog/nano-vllm-part-1
185•yz-yu•7h ago•23 comments

4x faster network file sync with rclone (vs rsync) (2025)

https://www.jeffgeerling.com/blog/2025/4x-faster-network-file-sync-rclone-vs-rsync/
191•indigodaddy•3d ago•92 comments

Ask HN: Who wants to be hired? (February 2026)

67•whoishiring•4h ago•141 comments

Geologists may have solved mystery of Green River's 'uphill' route

https://phys.org/news/2026-01-geologists-mystery-green-river-uphill.html
114•defrost•7h ago•28 comments

The largest number representable in 64 bits

https://tromp.github.io/blog/2026/01/28/largest-number-revised
22•tromp•2h ago•18 comments

EPA Advances Farmers' Right to Repair

https://www.epa.gov/newsreleases/epa-advances-farmers-right-repair-their-own-equipment-saving-rep...
105•bilsbie•2h ago•38 comments

Why software stocks are getting pummelled

https://www.economist.com/business/2026/02/01/why-software-stocks-are-getting-pummelled
54•petethomas•15h ago•69 comments

Being sane in insane places (1973) [pdf]

https://www.weber.edu/wsuimages/psychology/FacultySites/Horvat/OnBeingSaneInInsanePlaces.PDF
46•dbgrman•3h ago•23 comments

Show HN: PolliticalScience – Anonymous daily polls with 24-hour windows

https://polliticalscience.vote/
13•ps2026•2h ago•11 comments

IsoCoaster – Theme Park Builder

https://iso-coaster.com/
68•duck•3d ago•16 comments

Pretty soon, heat pumps will be able to store and distribute heat as needed

https://www.sintef.no/en/latest-news/2026/pretty-soon-heat-pumps-will-be-able-to-store-and-distri...
67•PaulHoule•1d ago•56 comments

My fast zero-allocation webserver using OxCaml

https://anil.recoil.org/notes/oxcaml-httpz
121•noelwelsh•9h ago•42 comments

Show HN: Adboost – A browser extension that adds ads to every webpage

https://github.com/surprisetalk/AdBoost
59•surprisetalk•7h ago•82 comments

Waymo seeking about $16B near $110B valuation

https://www.bloomberg.com/news/articles/2026-01-31/waymo-seeking-about-16-billion-near-110-billio...
140•JumpCrisscross•5h ago•185 comments

Tomo: A statically typed, imperative language that cross-compiles to C [video]

https://www.youtube.com/watch?v=-vGE0I8RPcc
15•evakhoury•4d ago•9 comments

UK government launches fuel forecourt price API

https://www.gov.uk/guidance/access-the-latest-fuel-prices-and-forecourt-data-via-api-or-email
49•Technolithic•7h ago•71 comments

Parking lots as economic drains

https://progressandpoverty.substack.com/p/stop-incentivizing-surface-parking
91•surprisetalk•2h ago•68 comments

Claude Code is suddenly everywhere inside Microsoft

https://www.theverge.com/tech/865689/microsoft-claude-code-anthropic-partnership-notepad
287•Anon84•8h ago•414 comments

Treasures found on HS2 route

https://www.bbc.com/news/articles/c93v21q5xdvo
116•breve•22h ago•64 comments

LinkedIn Is Down

https://ctrlv.link/8aQX
7•palakd•18m ago•4 comments

My iPhone 16 Pro Max produces garbage output when running MLX LLMs

https://journal.rafaelcosta.me/my-thousand-dollar-iphone-cant-do-math/
409•rafaelcosta•23h ago•194 comments

Hypergrowth isn’t always easy

https://tailscale.com/blog/hypergrowth-isnt-always-easy
105•usrme•2d ago•42 comments

Valanza – my Unix way for weight tracking and anlysis

https://github.com/paolomarrone/valanza
20•lallero317•4d ago•6 comments

Kernighan on Programming

114•chrisjj•4h ago•29 comments

Apple's MacBook Pro DFU port documentation is wrong

https://lapcatsoftware.com/articles/2026/2/1.html
190•zdw•17h ago•71 comments