Giter VIP home page Giter VIP logo

picl's Introduction

PICL - PICL Is Crustacean Lisp

A LISP written in Rust.

The idea is to write a core in Rust that is just enough to bootstrap the rest in PICL itself.

Design ideas wish list

  • Simple, consistent API for data manipulation a la Clojure.

  • Simple pattern matching (more like destructuring)

  • Regex literals /.*(a|b)/ a la AWK?

    • Following the EDN syntax this should be #r".*(a|b)" to signify the start start of a regex as a reader level tag.
    • Alternatively, I have always really liked Julia's string macros work which seems similar to CL's reader macros and Hy's tag macros:
    (deftag my_tag (expr) `(~expr ~expr))
    
    • In Julia they are defined simply as any macro that is named as a single character followed by _str. They then get applied when that character is prepended to a string literal

    --> r"a regex literal", f"x = 3y + 2"

    • The reader/tag macros on the other hand match the EDN idea and are defined as (defreader ...) or (deftag ...) and then called like so:

    --> #my-tag FORM

    • They allow for longer tag names but not the nice string application.
    • ...TBH, why not both?!
    • https://docs.julialang.org/en/stable/manual/metaprogramming/
    • http://docs.hylang.org/en/stable/language/api.html#deftag
    • https://gist.github.com/chaitanyagupta/9324402

picl's People

Contributors

sminez avatar

Watchers

James Cloos avatar  avatar  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.