Skip to content
项目

关于

一种数据流编程语言,程序以消息传递图的形式编写,默认所有内容都并行运行。它具有强静态类型,可编译为机器码,可与 Go 互操作,并支持通过节点编辑器进行可视化编程。它也非常适合 LLM。

编程语言与运行时

这些数字如何统计

可以做什么

  • Flow-Based Runtime - Everything runs in parallel by default
  • Hybrid Programming (WIP) - Program in both text and a visual editor
  • Powerful Compiler - Strict static types and machine code compilation
  • Go Interop - Call Go code from Neva and vice versa for gradual adoption and reuse of the ecosystem

实测星标增长

24小时
0
7天
0
15天
+1
1个月
+2

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Nevalang logo

Neva Programming Language

Back Neva on Open Collective

Tests CI Linting CI Go Report GitHub closed issues Discord OS License: MIT

Neva is a statically typed, compiled dataflow programming language.

Instead of writing step-by-step instructions, you create networks of nodes that exchange messages through ports.

Hello, World!

import {
  fmt
  runtime
}

def Main(start any) (stop any) {
	println fmt.Println
	panic runtime.Panic
	---
	:start -> 'Hello, World!' -> println:data
	println:res -> :stop
	println:err -> panic
}

This code imports fmt and runtime to use Println and Panic components, and defines Main with one input (start) and one output (stop). The two nodes are connected: when the program starts, 'Hello, World!' is sent to println; if printing fails, errors go to panic; after printing, the program ends.

Key Features

  • Flow-Based Runtime - Everything runs in parallel by default
  • Hybrid Programming (WIP) - Program in both text and a visual editor
  • Powerful Compiler - Strict static types and machine code compilation
  • Go Interop - Call Go code from Neva and vice versa for gradual adoption and reuse of the ecosystem
  • Modern Language Design - errors as values, pattern matching, null safety, etc.
  • And many more!

Architecture

Neva compiles to clean, dependency-free Go code using goroutines and channels for message passing. The Go compiler then produces optimized binaries for any supported platform.

flowchart LR
  source_code-->compiler-->|go_code| go_compiler

  subgraph compiler
    parser-->analyzer-->backend
  end

  go_compiler-->machine_code
  go_compiler-->wasm

Why?

  1. The control flow paradigm is well established, while dataflow is underrepresented.
  2. Existing visual tools lack the expressiveness of traditional languages.
  3. Many languages treat concurrency as an advanced feature, not the default.
  4. Not many languages compile to Go or interop with it, while it has a state-of-the-art runtime and standard library.

Contributing

  1. Join the Discord server or Telegram group
  2. Read the user documentation, developer documentation, AGENTS and CoC
  3. Support the project on Open Collective ❤️‍🔥

Community

Your support by donating to our open collective or joining us will show interest and motivate us to continue.

Open Collective Discord Telegram Reddit Twitter

⭐️ Star History

Support

We’re exploring a future of programming that few dare to build. If you believe in this direction, backing us on Open Collective keeps the work alive: https://opencollective.com/nevalang

Also give us a star to increase our chances of getting into GitHub trends. The more developers we reach, the more likely we are to build this future together.

GitHub Star

And tell the world about Neva! Every share helps us grow our community.

share on x share on facebook share on reddit share on telegram share on whatsapp share on hackernews share on linkedin

探索相关项目

加载中…