frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Languages Designed for WASM?

3•90s_dev•5h ago
Hi everyone. I'm on a hunt to find all languages that are designed specifically to compile to WASM. I have a project (hram.dev -- hand-rolled assembly machine) that I want to build to share the joy of unwrapping a new computer in the 80s/90s that boots up with an editor so that you can program it directly in assembly, and I plan to use wamr+llvm for near-native performance while still having isolation so that you can mess things up. Obviously the ability to write WAT directly will be fundamental and certainly fun, but I am looking for higher level languages that make it slightly less convenient to write, to bundle with it internally so that users have at least two choices of how to write code. Do you know of any other languages designed specifically for wasm? These are all I could find:

Most likely:

curlywas (https://github.com/exoticorn/curlywas) -- c-like but very low-level; seems very complete; rust impl; mit license; short but seemingly thorough docs?

wa (https://github.com/wa-lang/wa) -- go-like, not clear how high/low level it is, thorough docs, seems promising, agpl license, lots of mandarin in docs

virgil (https://github.com/titzer/virgil) -- ruby-like? gc; cant find license; last commit 3 hours ago; thorough docs but all in md files in repo

assemblyscript (https://github.com/AssemblyScript/assemblyscript) -- typescript-like; apache 2 license, minimal runtime with gc; implemented in js

walt (https://github.com/ballercat/walt) -- JavaScript-like made for wasm, 25 contributors! decent looking docs, might actually be usable! most commits 7 years ago but last commit 3 years ago though, mit license

onyx (https://wasmer.io/posts/onyxlang-powered-by-wasmer, https://github.com/onyx-lang/onyx) -- ocaml-like? recent activity, full docs, bsd license, not sure if it has lower level capabilities or how much the higher level features cost at runtime or build time

waforth (https://github.com/remko/waforth) -- forth for wasm! upside is that its forth, downside is that its forth; mit license; great docs; seemingly inefficient due to constant lookups?

Less likely:

thinscript (https://github.com/evanw/thinscript) -- js-like with macros; abandoned 9 years ago; not yet licensed

wase (https://github.com/area9innovation/wase) -- C-like syntax but still wasm-like, not super recent but not super old, only a few contributors, not sure how complete it is but its docs give a feeling of being mostly-complete, MIT license

wam (https://github.com/kanaka/wam) -- wasm macro preprocessor, just one guy, last commit 7 years ago, very few built in macros, mozilla license (???)

wah (https://github.com/tmcw/wah) -- wasm but with infix, doesn't seem extensible with macros, two contributors, last commit 8 years ago, eclipse license (???)

Honorable mentions:

mini-c (https://github.com/maierfelix/mini-c) -- C to wasm compiler, seemingly abandoned 8 years ago, not sure how complete it is

c4wa (https://github.com/kign/c4wa) -- c to wasm compiler, no activity in 3 years, no license, written in java

Comments

90s_dev•5h ago
I am leaning towards curlywas strangely enough. It just feels like the right language somehow. Not too low level to be boring to write, not too high level to take the fun out of writing low level code, not too old to consider it abandoned, docs relatively thorough and thoughtful, just enough syntax to make it familiar to C programmers and become a good stepping stone into writing C (maybe).
90s_dev•5h ago
One thing it's missing is arrays/structs as a way to access memory more conveniently, which I think is probably a must-have, though I bet I could add them on top of this language with how small it looks. Well, except that it's written in Rust and I don't understand Rust despite trying many times.
Alex-Programs•4h ago
This looks fun. I don't have any specific suggestions - I've always used WASM with Rust - but I wish you luck with your project!

P.S. You might have more success with replies on Reddit. HN is very all-or-nothing.

90s_dev•4h ago
Thanks I'll give it a try.
jedisct1•4h ago
Zig.

Zig produces extremely small, optimized WebAssembly modules. The language includes WebAssembly-specific built-ins like @wasmMemoryGrow, and its entire standard library offers first-class support for WebAssembly.

Zig can also optimize code for specific WebAssembly runtimes, making it, in my opinion, the most efficient WebAssembly compiler available today.

90s_dev•4h ago
I forgot to mention that I'd like it to be embeddable. I was in the zig subreddit and asked about that, they said basically no it's not possible to embed it, the best that can be done is bundle zig with my app and run it as a subproc to compile zig code, but then I have to do ipc and shared memory and it's a whole other bundle of worms.

The Chan-Zuckerbergs stopped funding social causes

https://www.washingtonpost.com/technology/2025/06/29/mark-zuckerberg-priscilla-chan-school-closure/
1•1vuio0pswjnm7•2m ago•0 comments

On Wanting to Believe

https://www.carsengrote.com/2025/06/on-wanting-to-believe.html
2•dante44•6m ago•0 comments

Largest Digital Camera Snaps Its First Photos of the Universe

https://www.wsj.com/science/space-astronomy/worlds-largest-digital-camera-snaps-its-first-photos-of-the-universe-68099904
1•gmays•8m ago•0 comments

The Mysterious Billionaire Behind the OnlyFans Porn Empire

https://www.wsj.com/business/media/only-fans-leonid-radvinsky-profile-706c914d
2•Geekette•12m ago•2 comments

AI-Generated Psych-Rock Band Rack Up Spotify Streams

https://www.stereogum.com/2313501/ai-generated-psych-rock-band-the-velvet-sundown-rack-up-hundreds-of-thousands-of-spotify-streams/news/
2•TrackerFF•13m ago•0 comments

Show HN: Free AI Thumbnail Tester (based on real YouTube data)

https://www.aithumbnail.so/tools/thumbnail-tester
1•sachou•14m ago•0 comments

Use keyword-only arguments in Python dataclasses

https://chipx86.blog/2025/06/29/tip-use-keyword-only-arguments-in-python-dataclasses/
2•Bogdanp•15m ago•0 comments

Thousands in Norway told they won up to millions in lottery error

https://www.bbc.com/news/articles/c15wn70v7z8o
2•ednite•21m ago•0 comments

OpenAI reportedly 'recalibrating' compensation in response to Meta hires

https://techcrunch.com/2025/06/29/openai-reportedly-recalibrating-compensation-in-response-to-meta-hires/
2•ednite•24m ago•1 comments

Orange Pi Nova Teased with Loongson 2K3000 as Loongson Expands Product Line

https://linuxgizmos.com/orange-pi-nova-teased-with-loongson-2k3000-as-loongson-expands-product-line/
4•chsum•27m ago•0 comments

How to Do Autocomplete

https://bonsai.io/blog/how-to-really-do-autocomplete/
2•softwaredoug•27m ago•0 comments

Why Extreme Couponers Have Given Up on Coupons

https://www.wsj.com/personal-finance/extreme-coupon-prices-savings-e7604515
1•lxm•41m ago•0 comments

How to Potty-Train a Co-Worker

https://www.nytimes.com/2025/06/28/business/co-worker-bathroom-issues-advice.html
2•lxm•42m ago•0 comments

Ask HN: Which Free Software or Open Source Project Needs Help?

2•em-bee•42m ago•1 comments

Early Retirement – What Fire Is Absolutely Not About

https://onboardedhq.substack.com/p/early-retirement-what-fire-is-absolutely
1•plentysun•46m ago•1 comments

Manifold: An open-source tool to run AI models for 90% less

https://github.com/Esrbwt1/manifold
1•esrbwt1•48m ago•0 comments

Automatic Beyond Belief

http://automaticbeyondbelief.org/
1•blahaj•55m ago•1 comments

An Incentive to Label

https://olshansky.substack.com/p/an-incentive-to-label
1•Olshansky•57m ago•0 comments

Scientists Uncover New Concerns About Billion-Dollar Heart Drug

https://scitechdaily.com/scientists-uncover-new-concerns-about-billion-dollar-heart-drug/
2•mhb•58m ago•0 comments

In the beginning was CAOS (1988)

https://web.archive.org/web/19991006031218/http://www.thule.no/haynie/caos.html
1•erickhill•58m ago•0 comments

The Hard Problem of Prompt Injection

https://alexcbecker.net/blog/prompt-injection.html
1•alexbecker•59m ago•0 comments

Show HN: Superclass – Classify Files, PDF, Images, Docx etc. with GPT

https://github.com/adaptive-scale/superclass
2•debarshri•1h ago•0 comments

WorldVLA: Towards Autoregressive Action World Model

https://arxiv.org/abs/2506.21539
2•chrsw•1h ago•0 comments

Show HN: AI-powered tracker of Trump executive orders

https://tonygaeta.com/labs/executive-orders
3•LightMorpheus•1h ago•0 comments

New VPN Service Can't Log Users by Design

https://torrentfreak.com/new-vpn-service-cant-log-users-by-design/
1•snoculars•1h ago•2 comments

Explosive increase of ticks that cause meat allergy in US due to climate crisis

https://www.theguardian.com/us-news/2025/jun/29/lone-star-ticks-increase-climate-crisis
5•OutOfHere•1h ago•5 comments

TrumpScript Make Python great again

https://github.com/samshadwell/TrumpScript
3•Bluestein•1h ago•0 comments

Faith No More's "Midlife Crisis" and the Observers Paradox

https://noahkalina.substack.com/p/newsletter-185-faith-no-mores-midlife
2•bookofjoe•1h ago•0 comments

I Missed VHS So I Made My Own [video]

https://www.youtube.com/watch?v=Jhhwn7OA_xY
1•guiambros•1h ago•1 comments

China Steals Language and Home Life from Tibetan Kids as Young as 4

https://www.wsj.com/world/china/tibet-dalai-lama-china-schools-4733d519
4•layer8•1h ago•2 comments