frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: SolScript – Write Solidity, compile to Solana programs

1•ticktockten•1h ago
Hey HN,

I built SolScript, a compiler that lets you write smart contracts in Solidity syntax and deploy them to Solana.

The problem: Solana has mass dev interest (17k+ active developers in 2025), but the Rust learning curve remains a 3-6 month barrier. Anchor helps, but you still need to grok ownership, lifetimes, and borrowing. Meanwhile, there are 30k+ Solidity developers who already know how to write smart contracts.

SolScript bridges that gap. You write this:

  contract Token {
      mapping(address => uint256) public balanceOf;

      function transfer(address to, uint256 amount) public {
          balanceOf[msg.sender] -= amount;
          balanceOf[to] += amount;
          emit Transfer(msg.sender, to, amount);
      }
  }
And it compiles to a native Solana program with automatic PDA derivation, account validation, and full Anchor compatibility.

How it works:

- Parser turns Solidity-like source into an AST - Type checker validates and annotates - Two codegen backends: (1) Anchor/Rust output that goes through cargo build-sbf, or (2) direct LLVM-to-BPF compilation - Mappings become PDAs automatically, account structs are derived from your type system

What's supported:

- State variables, structs, arrays, nested mappings - Events and custom errors - Modifiers (inlined) - Cross-program invocation (CPI) - SPL Token operations - msg.sender, block.timestamp equivalents

Current limitations:

- No msg.value for incoming SOL (use wrapped SOL or explicit transfers) - No Token 2022 support yet (planned for v0.4) - Modifiers are inlined, so keep them small

The output is standard Anchor/Rust code. You can eject anytime and continue in pure Rust. It's a launchpad, not a lock-in.

Written in Rust. Ships with a VS Code extension (LSP, syntax highlighting, go-to-definition, autocomplete).

Install: cargo install solscript-cli

Repo: https://github.com/cryptuon/solscript

I'd love feedback on the language design, the compilation approach, or use cases I haven't thought of. Happy to answer questions about the internals.

Report Claims iPhone 18 Pro Camera Will Get Major Sensor Upgrade

https://xthe.com/news/iphone-18-pro-camera-leak/
1•Sandhyaseo•48s ago•0 comments

Anyone want to share their developer onboarding horror stories?

https://calendly.com/benjamin-martin-prismic/15min
1•jeangilles•1m ago•1 comments

So you want to get into electronics?

https://dmytroengineering.com/content/write-ups/so-you-want-to-get-into-electronics
1•vitalnodo•1m ago•0 comments

The Hidden Engineering of Runways

https://practical.engineering/blog/2026/1/20/the-hidden-engineering-of-runways
2•crescit_eundo•3m ago•0 comments

Explainable Query Tagging (NLP)

https://emiruz.com/post/2026-01-17-qu-tagger/
1•usgroup•3m ago•0 comments

The Empathy of Instructions

https://seths.blog/2026/01/the-empathy-of-instructions/
1•zdw•3m ago•0 comments

Benchmarking OpenTelemetry: Can AI trace your failed login?

https://quesma.com/blog/introducing-otel-bench/
2•stared•4m ago•0 comments

Could ChatGPT convince you to buy something? AI gears up to sell ads

https://theconversation.com/could-chatgpt-convince-you-to-buy-something-threat-of-manipulation-lo...
1•zdw•5m ago•0 comments

Show HN: BlitzBrowser – Browsers in Docker with user data storage and proxy

https://github.com/blitzbrowser/blitzbrowser
1•sam_march•6m ago•1 comments

Show HN: An open-source personal finance simulator with AI features

https://www.ignidash.com
1•schelskedevco•6m ago•0 comments

The Unix Pipe Card Game

https://punkx.org/unix-pipe-game/
1•kykeonaut•6m ago•0 comments

WebAssembly Clouds: The World After Containers

https://wasmer.io/posts/wasm-clouds-the-world-after-containers
2•syrusakbary•7m ago•0 comments

Updated Debian 13: 13.3 released

https://www.debian.org/News/2026/20260110
2•teleforce•7m ago•0 comments

Help Less, AI Powered Autocomplete in Bash and Zsh

https://autocomplete.sh/
1•Owen-Grumbles•7m ago•0 comments

Developing with AI on Ubuntu

https://jnsgr.uk/2026/01/developing-with-ai-on-ubuntu
2•jnsgruk•7m ago•0 comments

Show HN: Loci – Visual knowledge map with auto-generated flashcards and FSRS

https://github.com/lmanhes/loci
2•omnitrol•8m ago•0 comments

Ask HN: Lessons from building AI automation for non-tech businesses

1•mishrapravin441•11m ago•0 comments

Interactive AAD Benchmarks: Automatic Differentiation for Derivatives Pricing

https://matlogica.com/technology/benchmarks/interactive-benchmarks/
1•NatalijaAAD•11m ago•0 comments

Canada's Military Has Modeled Hypothetical US Invasion

https://www.bloomberg.com/news/articles/2026-01-20/canada-s-military-has-modeled-hypothetical-us-...
3•belter•11m ago•1 comments

Show HN: Fastjsondiff – Fastest JSON Diff in Python Powered by Zig

https://github.com/adilkhash/fastjsondiff
2•adilkhash•12m ago•0 comments

Show HN: Promptcmd: AI prompts manager that turns prompts into runnable programs

https://promptcmd.sh/
2•tgalal•12m ago•0 comments

Orb and the End of Enterprise Software

https://kshitijgrover.com/orb-and-the-end-of-enterprise-software
1•nadis•13m ago•0 comments

Controlling the Wizzard

https://www.leadedsolder.com/2026/01/20/creativision-clone-snes-controller-board-prototype.html
1•zdw•13m ago•0 comments

Self-healing nuclear fuel could improve safety, reduce waste in reactors

https://techxplore.com/news/2025-12-nuclear-fuel-safety-reactors.html
1•PaulHoule•14m ago•0 comments

Ask HN: How do you keep system context from rotting over time?

1•kennethops•15m ago•0 comments

Show HN: ChartGPU – WebGPU charting library, 1M+ points at 60fps

https://github.com/ChartGPU/ChartGPU
2•huntergemmer•15m ago•0 comments

Attention Media ≠ Social Media

https://susam.net/attention-media-is-not-social-media.html
1•speckx•16m ago•0 comments

What to do about students using ChatGPT to do their homework?

https://blog.computationalcomplexity.org/2026/01/what-to-do-about-students-using-chatgpt.html
2•zdw•16m ago•0 comments

Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devs

https://github.com/mastra-ai/mastra
5•calcsam•17m ago•0 comments

Go-Native Durable Execution

https://www.dbos.dev/blog/how-we-built-golang-native-durable-execution
1•hmaxdml•17m ago•0 comments