typed-racket
racketscript
typed-racket | racketscript | |
---|---|---|
5 | 14 | |
506 | 697 | |
2.0% | 0.9% | |
7.4 | 4.5 | |
9 days ago | 8 months ago | |
Racket | Racket | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
typed-racket
-
Experimenting with the new Typed Racket modes
Turns out, Shallow was slower than it needed to be for types of built-in math (+, *, ...). PR here: https://github.com/racket/typed-racket/pull/1316
- Racket->Rhombus: To Sexp or not to Sexp?
-
Coalton: How to Have Our (Typed) Cake and (Safely) Eat It Too, in Common Lisp
Last weekend, I put together a working sample for how to show multiple syntax errors from Racket macros. It works in DrRacket and racket-xp-mode. It's based on Typed Racket.
https://gist.github.com/srcreigh/f341b2adaa0fe37c241fdf15f37...
The well-documented Racket `raise-syntax-error` will let you display 1 syntax error at a time. It works by throwing an exception during macro expansion hence you only get 1 error in your IDE. That code lets you highlight 2+ errors.
Please build a type system in Racket! I would love to try it out.
Helpfully, the above sample code is an example of how to store compiler-level state. So next, just wrap all your base forms, add some type declaration syntax, type inference, etc.
I would love to have a language that can be used to define a customized type system in Racket.
Typed Racket is an incredible feat. Can you imagine adding an entire type system without writing a separate compiler? Using all the batteries included with your language?
However I don't like that Typed Racket enforces soundness with Runtime checks, I much prefer TypeScript style checking. I also have run into some pretty confusing messages ie [1]. Diversity is healthy, it'd be nice to have static typechecking systems to choose from for Racket.
[1] https://github.com/racket/typed-racket/issues/1021
-
Creating Languages in Racket (2011)
> I like how TS is unsound (has no runtime performance penalty for mixing untyped code), and is easily disabled via any if it's in the way.
This is already done. See https://github.com/racket/typed-racket/pull/952 for RFC and https://github.com/racket/typed-racket/pull/948 for the implementation.
racketscript
-
I'm really liking Racket but...
I don't think there's any mature projects that compile to WASM yet, but there's been some steady progress on that front. There's also a dialect of Racket that transpiles to Javascript and a #lang that lets you write Javascript using Racket syntax.
-
Racketscript
The github page has more information: https://github.com/racketscript/racketscript
And to answer the questions every Schemer will have, no the runtime doesn't yet support tail calls or continuations.
- Anyone aware of Racket projects that are in need of contributors? I am experienced in PL design and have two months worth of spare time. I have never contributed to an opensource project before besides taureg.
- Cleanest way to use python modules in Racket?
-
Using Racket for for games and other interactive content in the browser
You can use Racket in the browser with RacketScript
-
People that are creating programming languages. Why aren't you building it on top of Racket?
https://github.com/racketscript/racketscript It's still labeled experimental but in much the same way that Gmail is still technically in beta.
-
Adding Racket code in a website
You could try Racket on the client side…with RacketScript: https://github.com/racketscript/racketscript
- RacketScript experimental lightweight Racket to JavaScript (ECMAScript 6) compiler.
- Racketscript/Racketscript: Racket to JavaScript Compiler
- racketscript/racketscript: Racket to JavaScript Compiler
What are some alternatives?
iracket - Jupyter kernel for Racket
mediKanren - Proof-of-concept for reasoning over the SemMedDB knowledge base, using miniKanren + heuristics + indexing.
mlton - The MLton repository
gambit - Gambit is an efficient implementation of the Scheme programming language.
frog - Frog is a static blog generator implemented in Racket, targeting Bootstrap and able to use Pygments.
gui
sham - A DSL for runtime code generation in racket
whalesong - Whalesong: Racket to JavaScript compiler
algol60
biwascheme - Scheme interpreter written in JavaScript
oic-options-chains - ETL for OIC Options Chains
schism - A self-hosting Scheme to WebAssembly compiler