frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Bithoven – A high-level, imperative language for Bitcoin Smart Contract

https://github.com/ChrisCho-H/bithoven
1•hyunhum•1h ago
Hey HN! I’m a researcher working on Bitcoin smart contracts, and today I’m releasing Bithoven—a high-level imperative language that compiles to native Bitcoin Script (Legacy, SegWit, and Taproot).

The Goal:

Raw Bitcoin Script is notoriously difficult to reason about. Writing raw Bitcoin Script today feels like writing Assembly in the 1970s. You have to mentally juggle the stack (`OP_SWAP`, `OP_ROT`), manually manage distinct execution branches, and pray you didn't leave a stack item unconsumed (which crashes the script). My goal was to bridge the gap between complex contract logic and raw opcodes, allowing developers to write readable, compile-time-safe code.

Key Features:

- Imperative Syntax: Write logic using familiar if/else and return statements instead of mental stack juggling.

- Type Safety: First-class support for bool, signature, string, and number types to prevent runtime errors.

- Targeted Compilation: Support for Legacy, SegWit, and Taproot compilation targets.

- Native Primitives: Built-in keywords for timelocks (older, after) and cryptography (sha256, checksig).

You can try it in the browser here (runs via WASM): https://bithoven-lang.github.io/bithoven/ide/

Here is an example of a Hashed Time-Locked Contract (HTLC):

  (condition: bool, sig_alice: signature)
  (condition: bool, preimage: string, sig_bob: signature)
  {
      if condition {
          // Relative locktime (Sequence)
          older 1000;
          return checksig (sig_alice, alice_pk);
      } else {
          // Hashlock verification
          verify sha256 sha256 preimage == hash;
          return checksig (sig_bob, bob_pk);
      }
  }
The project is free open source and the academic paper is currently under review. I’d love to hear any feedback. Thanks for checking it out!

Comments

hyunhum•1h ago
Docs: https://bithoven-lang.github.io/bithoven/docs/

Hong Kong Court Finds Jimmy Lai Guilty in National Security Trial

https://www.nytimes.com/live/2025/12/15/world/hong-kong-jimmy-lai
1•mothballed•58s ago•0 comments

Kensington TB800 Trackball now shipping

https://www.kensington.com/p/products/electronic-control-solutions/trackball-products/expert-mous...
1•mwexler•1m ago•1 comments

What Happened to Quantified Self?

https://www.natemeyvis.com/what-happened-to-quantified-self/
1•Theaetetus•3m ago•0 comments

Mad scientist swaps bicycle suspension springs for magnets

https://newatlas.com/bicycles/colin-furze-bicycle-suspension-magnets/
1•Brajeshwar•4m ago•0 comments

Lamborghini Thinks It Can Do More with Future Off-Road Sterrato Supercars

https://www.thedrive.com/news/lamborghini-thinks-it-can-do-even-more-with-future-off-road-sterrat...
1•PaulHoule•4m ago•0 comments

Brightest-ever lensed supernova reveals astronomy's coming revolution

https://bigthink.com/starts-with-a-bang/brightest-ever-lensed-supernova/
1•Brajeshwar•4m ago•0 comments

Making clean energy investments more successful with forecasting tools

https://techxplore.com/news/2025-12-energy-investments-successful-tools.html
1•Brajeshwar•4m ago•0 comments

Overload Protection: The Missing Pillar of Platform Engineering – InfoQ

https://www.infoq.com/articles/overload-protection-platform-engineering/
2•rbanffy•4m ago•0 comments

Nvidia Nemotron 3 Family of Models

https://research.nvidia.com/labs/nemotron/Nemotron-3/
1•ewt-nv•4m ago•0 comments

Societas Europaea

https://en.wikipedia.org/wiki/Societas_Europaea
1•simonebrunozzi•4m ago•0 comments

'My son is a hero': Family of man who tackled Sydney gunman

https://www.timesofisrael.com/my-son-is-a-hero-family-of-man-who-tackled-sydney-gunman-says-it-wa...
2•mhb•6m ago•0 comments

Rockstar co-founder Dan Houser on life after Grand Theft Auto

https://www.theguardian.com/games/2025/dec/15/dan-houser-grand-theft-auto-rockstar
1•n1b0m•6m ago•0 comments

Δⁿ Sort – A Notation for Making Invisible Math Steps Visible

https://ursaxza.substack.com/p/on-the-possibility-of-simplifying
1•ursAxZA•6m ago•0 comments

Do Electrons "Take Every Path"? A One‑Line Alternative to QED's G−2 Story

https://pajuhaan.medium.com/do-electrons-really-take-every-path-a-one-line-alternative-to-qeds-g-...
1•pajuhaan•6m ago•0 comments

Thousands of U.S. farmers have Parkinson's. They blame a deadly pesticide

https://www.mlive.com/news/2025/12/thousands-of-us-farmers-have-parkinsons-they-blame-a-deadly-pe...
2•bikenaga•7m ago•0 comments

DeepL

https://en.wikipedia.org/wiki/DeepL_Translator
1•simonebrunozzi•7m ago•0 comments

Understanding Online Communities as Ecosystems

https://citizensandtech.org/2025/12/online-communities-as-ecosystems/
1•gedankenstuecke•8m ago•0 comments

UV for Portable Python in Agent Skills

https://elite-ai-assisted-coding.dev/p/uv-for-portable-python-in-agent-skills
1•gmays•8m ago•0 comments

AI coding is now everywhere. But not everyone is convinced

https://www.technologyreview.com/2025/12/15/1128352/rise-of-ai-coding-developers-2026/
2•stikit•8m ago•0 comments

Timeline of Reddit

https://en.wikipedia.org/wiki/Timeline_of_Reddit
1•cainxinth•9m ago•0 comments

Spotify seems to be down

4•showsover•10m ago•1 comments

Build an AI inference server on Ubuntu

https://gjolly.fr/blog/llm-inference/
1•warenhor•13m ago•0 comments

Show HN: Sub-microsecond (890 ns) trading execution research system

https://submicro.krishnabajpai.me/
1•krish678•14m ago•0 comments

Ruby Users Forum is launching soon

https://waitlist.rubyforum.org/
1•jvrc•14m ago•1 comments

WSJ: Why Germany Wants a Divorce with China

https://www.wsj.com/world/europe/why-germany-wants-a-divorce-with-china-0d59fb81
2•alecco•20m ago•1 comments

Show HN: I built a simple Cursor alternative after Void slowed down

https://voideditor.com
2•Pterjudin•20m ago•2 comments

Show HN: Wan-Animate – AI video character animation and replacement based

https://wan-animate.com/
1•qzcanoe•21m ago•0 comments

Show HN: QueryGlow – Self-Hosted Database GUI (Postgres, MySQL, SQLite)

https://queryglow.com
1•iamMXFSCHR•22m ago•1 comments

ChatGPT's rivals, Kwai's quiet rise: the top Internet services of 2025

https://blog.cloudflare.com/radar-2025-year-in-review-internet-services/
3•fleahunter•22m ago•0 comments

FBI Wanted List: Fraudulent Remote IT Workers from DPRK

https://www.fbi.gov/wanted/cyber/fraudulent-remote-it-workers-from-dprk
4•smurda•23m ago•0 comments