Git Product home page Git Product logo

larva-lang's Introduction

larva-lang

一个用go做后端的语言

特点

  1. 语法贴近C++、Java、C#这一系列,吸收了Go中个人认为较好的一些设计,静态类型,编译到Go语言代码,后端利用Go的工具和环境

  2. 对Go语言语法较为晦涩或不太符合习惯的地方做了修改,例如类型系统采用Java和C#的方式(对象用引用传递);将Go的匿名包含改成了类似的usemethod机制; 等等

  3. 除语法的区别外,对Go语言的一些不足之处做了补充,例如支持泛型类和泛型函数,且实现方式为编译期展开(类似C++模板的处理),基本无性能损耗

  4. Larva源代码和Go语言目标代码的对应规则简单明了,Native代码采用嵌入式设计,但lib代码还是尽量会采用Larva自身实现

如何使用?

  • 文档已在逐步开发中,请访问doc目录阅读细节

大体进度和TODO

  1. 语法基本完成,编译器和runtime的剩余主要工作就是测试和修复bug,会根据具体情况调整语法

  2. 需补充必要的标准库

  3. 需补充文档

近期计划

  1. 补充文档
  2. 补充示例和测试用例
  3. 补充基础库

有问题联系

  • github:maopao-691515082

  • QQ:691515082

  • zhihu:冒泡

larva-lang's People

Contributors

addbook avatar maopao-691515082 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.