Code Monkey home page Code Monkey logo

yakshalang / yaksha Goto Github PK

View Code? Open in Web Editor NEW
186.0 0.0 13.0 8.22 MB

๐Ÿ˜ˆ Yaksha Programming Language - Offside rule + Lisp system for macros. ๐Ÿฃ WIP

Home Page: https://yakshalang.github.io/

License: GNU General Public License v3.0

CMake 0.18% Dockerfile 0.02% Shell 0.08% Batchfile 0.01% Python 3.68% C++ 30.32% C 62.13% HTML 0.06% Kotlin 0.02% Java 3.19% Lex 0.20% Common Lisp 0.05% PicoLisp 0.05%
programming-language compiler lisp-dialect offside-rule c99 compile-time compile-to-c transpiler offside

yaksha's People

Contributors

actions-user avatar jadogg avatar mshockwave avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yaksha's Issues

Embedded mode for the compiled code

Description

Add support for a fully embedded mode, where we do not use any of the yaksha lib, strings, sr, most complicated builtins, dynamic arrays.

README feedback

There is essentially no README. Your README is the first chance to speak to potential users who land on your repo.

What is the aim of this language?
What problems does it solve?
What are the expected skills of developers (Should you know haskell and be dissapointed with it's type system? Maybe you want a more expressive react.)


After looking at the docs for the standard lib, this looks like a close to typed python that maps more closely to C

The libs docs doesn't link to the tutorial, forcing me to go back to the README

This link https://yakshalang.github.io/documentation should be the first link for your docs. They are good. I have a much better feel for the philosophy of the language after reading this

YAMA proposals is a 404 https://github.com/YakshaLang/YAMA/tree/main/proposals

On the demos:
https://github.com/YakshaLang/YAMA/tree/main/proposals
explain that fractal tree is Yakasha compiled to WASM running in the browser. That's impressive.
https://yakshalang.github.io/static_demos/tree/wind_tree.html

Space blast looks fun, by default it was sized too big for my 14 inch Mac Book. Why don't you try a smaller default resolution. It's still impressive at non full screen.

I would recommend using github issues. It might not be your favorite, but it's more relatable to people looking to adopt your language.


After reading through your docs how does this sound as a description of your language:

"Looks like python, compiles to C, then to WASM so it can run in the browser. When you dig deeper there is an advanced lisp based macro language to help with zero cost meta programming."


There's a lot of good stuff here, talk about it and how it can be used.

Add support for fixed arrays in Yaksha

Description

Provide ability to create fixed size stack allocated arrays.

def receive_a(item_a: FixedArr[int, 3]) -> int:
    item_a[0] + item_a[2]

def main() -> int:
    a = fixedarr(1, 2, 3)
    b = fixedarr(1, 2, 3, receive_a(a))
    for (i = 0; i < len(b); i++): # <----------- len(b) simply becomes 4
        println(b[i])
    println(a[4]) # <------ this will result in an error
    0

Links

Generate AST export/import to JSON

Description

  • Instead of using a visitor to export json. have ast class generator generate necessary elements to serialize / deserialize AST.

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.