frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: I built a programming language, inspired by Golang

https://github.com/nature-lang/nature
5•weiwenhao•4h ago
Hello, I'm the author of the nature programming language, which has reached an early usable version since its first commit in 2021 until today.

---

Why implement such a programming language?

go is a programming language that I use for my daily work, and the first time I used golang, I was amazed by its simple syntax, freedom of programming ideas, ease of cross-compilation and deployment, excellent and high-performance runtime implementations, and advanced concurrency style design based on goroutine, etc. But, golang also has some inconveniences

- The syntax is too concise, resulting in a lack of expressive power.

- The type system is not perfect

- Cumbersome error handling

- The automatic GC and preemptive scheduling design is excellent, but it also limits the scope of go.

- Package management

- interface{}

- ...

nature is designed to be a continuation and improvement of the go programming language, and to pursue certain differences. While improving the above problems, nature has a runtime, a GMP model, an allocator, a collector, a coroutine, a channel, a std, and so on, which are similar to those of go, but more concise. And nature also does not rely on llvm, with efficient compilation speed, easy cross-compilation and deployment.

Based on the features already implemented in the nature programming language, it is suitable for game engines and game development, scientific computing and AI, operating systems and the Internet of Things, the command line, and web development.

When nature is fully featured and optimized, it is expected that nature will be able to replace golang in any scenario (converting to readable golang code, using nature with minimal trial-and-error costs, and switching back to golang at any time). And as a general-purpose programming language, nature can compete with any other programming language of its type. [Note that this is not yet complete.]

---

I know, it's a little late, I spent too much time, just to bring another programming language, after all, the world is not short of programming languages. But when I really think about questions like "Should I continue? Can I do it well?", I realized I had already come a very, very long way.

---

Feel free to give me feedback, I'll answer any questions you may have.

Website: https://nature-lang.org The home page contains some examples of syntax features that you can try out in the playground.

Get started: https://nature-lang.org/docs/get-started contains a tutorial on how to install the program and advice on how to use it.

Syntax documentation: https://nature-lang.org/docs/syntax

Playground: https://nature-lang.org/playground Try it online

---

Contribution Guide

https://nature-lang.org/docs/contribute I have documented how the nature programming language is implemented.

nature has a proprietary compiler backend like golang, but the structure and implementation of the nature source code is very simple.

This makes it easy and fun to contribute to the nature programming language. Instead of just a compiler frontend + llvm, you can participate in SSA, SIMD, register allocation, assembler, linker, and other fun tasks to validate your learning and ideas. You can express your ideas through github issues and I'll guide you through the contribution process.

---

These are some of the smaller projects I've implemented with nature, and I really like the feel of writing code with nature.

https://github.com/weiwenhao/parker Lightweight packaging tool

https://github.com/weiwenhao/llama.n Llama2 nature language implementation

https://github.com/weiwenhao/tetris Tetris implementation based on raylib, macos only

https://github.com/weiwenhao/playground playground server api implementation

---

Lastly, I'm looking for a job, so if you think this project is okay, I hope you'll give me a star, it would help me a lot

Sockudo: High-Performance Pusher-Compatible WebSockets Built with Rust

https://sockudo.app/
1•kondro•24s ago•0 comments

The Meritocracy to Eugenics Pipeline

https://pluralistic.net/2025/05/20/big-cornflakes-energy/#caliper-pilled
1•rbanffy•36s ago•0 comments

Geoship – Bioceramic Geodesic Domes

https://www.geoship.is
1•jinjin2•38s ago•0 comments

EV battery maker pulled off 2025's biggest IPO

https://restofworld.org/2025/catl-stock-ipo-ev-battery/
1•donohoe•42s ago•0 comments

UN warns 14,000 babies could die within 48 hours under Israel siege of Gaza

https://www.independent.co.uk/news/world/middle-east/gaza-strip-babies-aid-israel-b2754287.html
3•pera•1m ago•0 comments

ChatGPT Helps Students Feign ADHD: An Analogue Study on AI-Assisted Coaching

https://link.springer.com/article/10.1007/s12207-025-09538-7
2•paulpauper•2m ago•0 comments

William James's Grief (2024)

https://www.frontporchrepublic.com/2024/12/william-jamess-grief/
2•benbreen•2m ago•0 comments

Analog - open source calendar

https://github.com/JeanMeijer/analog
1•JamesAdir•3m ago•0 comments

Some Miami schools are embracing AI

https://www.nytimes.com/2025/05/19/technology/ai-miami-schools-google-gemini.html
1•paulpauper•4m ago•0 comments

Show HN: AI agents that crawl the open, deep and dark web for real-time

https://goldenowl.ai
1•sabi_soltani•4m ago•0 comments

Fingers Wrinkle in the Same Pattern Every Time After Long Exposure to Water

https://www.discovermagazine.com/health/your-fingers-wrinkle-in-the-same-pattern-every-time-after-long-exposure-to
1•paulpauper•4m ago•0 comments

Malaysia Downplays Huawei Deal as US Checks China's AI Reach

https://www.bloomberg.com/news/articles/2025-05-20/malaysia-downplays-huawei-deal-as-us-aims-to-curb-china-ai-power
1•pdyc•4m ago•0 comments

Building AI-Powered Apps with Firebase AI Logic

https://firebase.blog/posts/2025/05/building-ai-apps/
1•LyalinDotCom•5m ago•0 comments

Towards a JSON API for the JDK

https://mail.openjdk.org/pipermail/core-libs-dev/2025-May/145905.html
1•jgon•5m ago•0 comments

Our vision for building a universal AI assistant

https://blog.google/technology/google-deepmind/gemini-universal-ai-assistant/
1•cuuupid•5m ago•0 comments

Scott Adams, Creator of 'Dilbert,' Says He Has the Same Cancer as Biden

https://www.nytimes.com/2025/05/20/us/scott-adams-dilbert-prostate-cancer-biden.html
1•reaperducer•6m ago•0 comments

What's New with Agents: ADK, Agent Engine, and A2A Enhancements

https://developers.googleblog.com/en/agents-adk-agent-engine-a2a-enhancements-google-io/
1•mrry•7m ago•0 comments

Gemini Diffusion

https://deepmind.google/models/gemini-diffusion/
2•og_kalu•8m ago•1 comments

Google Wants You to Pay $250 for a God-Tier Subscription to AI

https://gizmodo.com/googles-wants-you-to-pay-250-for-a-god-tier-subscription-to-ai-2000604285
1•rntn•8m ago•0 comments

AI Mode in Google Search

https://blog.google/products/search/google-search-ai-mode-update/
1•ChrisArchitect•8m ago•0 comments

Imagen 4

https://deepmind.google/models/imagen/
2•synthwave•10m ago•0 comments

Running the entire HEY test suite on different computers

https://twitter.com/dhh/status/1924832508157329844
1•wmf•10m ago•0 comments

Iterator helpers have become Baseline Newly available

https://web.dev/blog/baseline-iterator-helpers
1•feross•11m ago•0 comments

Veo 3: Video, meet audio

https://deepmind.google/models/veo/
2•meetpateltech•11m ago•0 comments

Thank You for Your Existence

https://daniel.haxx.se/email/2025-05-20.html
2•Vinnl•12m ago•0 comments

Gemini 2.5: Our most intelligent models are getting even better

https://blog.google/technology/google-deepmind/google-gemini-updates-io-2025/
4•meetpateltech•12m ago•0 comments

Introducing Veo 3 and Imagen 4, and a new tool for filmmaking called Flow

https://blog.google/technology/ai/generative-media-models-io-2025/
13•youssefarizk•12m ago•3 comments

Why Are Clinical Trials So Complicated? (2020)

https://www.science.org/content/blog-post/why-clinical-trials-so-complicated
1•Tomte•12m ago•0 comments

Where Did 'Jazz,' the Word, Come From? (2018)

https://www.wbgo.org/music/2018-02-26/where-did-jazz-the-word-come-from-follow-a-trail-of-clues-in-deep-dive-with-lewis-porter
1•Tomte•13m ago•0 comments

Teacher Drag a 6yr-Old with Autism by His Ankle Fed OCR Might Not Do Anything

https://www.propublica.org/article/garrison-school-illinois-autistic-student-dragged-ankle
1•frumper•14m ago•1 comments