etaoins / arret Goto Github PK
View Code? Open in Web Editor NEWPure functional Lisp implemented in Rust
License: Apache License 2.0
Pure functional Lisp implemented in Rust
License: Apache License 2.0
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
This issue provides visibility into Renovate updates and their statuses. Learn more
These updates are awaiting their schedule. Click on a checkbox to get an update now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
, eslint
, eslint-plugin-prettier
)These updates await pending status checks. To force their creation now, click the checkbox below.
@types/glob
, @types/node
, @types/vscode
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
I came across Arret while experimenting with Tree-Sitter, and I really like the choices you've made in designing Arret.
What are Arret's capabilities in regards to binding to other Rust/C library interfaces? How much work is involved in putting together a web server example?
Cheers.
--- edit ---
I just realized I missed a large part of the documentation regarding RFI in the runtime.
https://rustdoc.arret-lang.org/arret_runtime/index.html
So, it looks like it would be possible I can definitely do more research from here, though.
This intuitively correct code does not compile:
(defn generic-typing #{[T Num]} ([input T]) -> T
(if (float? input)
(ann input Float)
(ann input Int)))
Within our current type inference architecture we have two options:
input
as T
in both branches. This is the current behaviour and allows input
to still satisfy T
.input
's type to Float
/Int
in the branches. This means input
no longer satisfies T
because we "forget" that it used to be a T
.The fundamental problem is we have no way of internally representing constrained versions of polymorphic types
There was an attempt to work around this by updating T
's bound in the branches. This allows the above example to compile. However, this is incorrect if multiple variables have type T
:
(defn generic-typing #{[T Num]} ([first T] [second T]) -> T
(if (float? first)
(ann second Float) ; <-- WRONG
(ann second Int)))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.