SICL
rescript-compiler
SICL | rescript-compiler | |
---|---|---|
26 | 95 | |
1,051 | 6,472 | |
- | 0.9% | |
9.9 | 9.5 | |
10 days ago | 4 days ago | |
TeX | OCaml | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
SICL
-
Ask HN: Guide for Implementing Common Lisp
This is a very approachable paper from 1990 on one way to do it with a C kernel bootstrapping to Common Lisp: https://www.softwarepreservation.org/projects/LISP/kcl/paper... Kyoto Common Lisp (KCL) is the ancestor of today's Embeddable Common Lisp (ECL).
SICL is probably the best modern version of CL written in CL from a design standpoint, even if it's not taking over SBCL's role anytime soon: https://github.com/robert-strandh/SICL It uses some fancy bootstrapping to have the whole language available early, e.g. their definition of class 'symbol is:
(defclass symbol (t)
-
An implementation of Common Lisp targeting Lua
That's pretty much the objective of SICL, which is "intentionally divided into many implementation-independent modules that are written in a totally or near-totally portable way, so as to allow other implementations to incorporate these modules from SICL, rather than having to maintain their own, perhaps implementation-specific versions".
https://github.com/robert-strandh/SICL
-
Strong typing, a hill I'm willing to die on
Gladly!
https://github.com/robert-strandh/SICL (which I wrote a decent chunk of the compiler backend of.)
-
lisp-in-lisp: an experimental implementation of the lisp interpreter in itself
I applaud your curiosity and initiative to explore. Are you aware of https://github.com/robert-strandh/SICL?
-
NSA urges orgs to use memory-safe programming languages
I mean this Klein and this SICL. Self and Common Lisp are memory-safe, though the implementations need capabilities to manipulate memory; SICL encapsulates them using first-class global environments.
-
Re-targeting (Lisp) compilers
There is significant overlap with SICL and its associated pieces which supply many of the other parts needed to make a Common Lisp. Some of these are Cluster which provides a portable and extensible assembler, Eclector which supplies a portable and extensible reader, Concrete-Syntax-Tree that supports source code tracking during compilation, ctype that implements the Common Lisp type system, and Clostrum that provides first-class environments for e.g. run-time, evaluation, and compilation. The SICL project has as one of its goals the creation of portable infrastructure for implementing Common Lisp, and these pieces are novel building blocks that were created as part of the project.
-
Question from a new Lisper
Not really; you can do it with primitive operations e.g. here is the list in the Cleavir compiler and a paper on "magic" in Jikes RVM. SBCL also has a "virtual op"/vop language for code generation, and vops are written to manipulate objects with assembly snippets.
-
When a young programmer who has been using C for several years is convinced that C is the best possible programming language and that people who don't prefer it just haven't use it enough, what is the best argument for Lisp vs C, given that they're already convinced in favor of C?
Both work. I basically never have to touch C or even FFI (cl+ssl being the main use of FFI for me), unless I am poking at SBCL guts in my spare time, and that isn't necessary either. I am sure many Haskell hackers are happy with their IO monad too.
-
Some questions from a new user.
It's used in operating systems, compilers and CLIs.
-
Open source compilers that use three address code as IR?
The Cleavir Common Lisp compiler uses three-address instructions in a control-flow graph, though it is intended more for production use than educational use.
rescript-compiler
- Borgo is a statically typed language that compiles to Go
-
Tired of Typescript? Check out ReScript!
ReScript is a fully typed language with an easy to understand JS like syntax, blazing fast compiler, that compiles to JavaScript. You can easily drop it into an existing project, and there is even a way to generate TypeScript types if you want to add it to a TypeScript project!
-
Learning Elm by porting a medium-sized web front end from React (2019)
If you’re a front-end developer, you should checkout ReScript[1], supposedly a JS-oriented successor of ReasonML and developed by the ReasonML team.
[1] https://rescript-lang.org/
-
ReScript: Rust like features for JavaScript
ReScript is "Fast, Simple, Fully Typed JavaScript from the Future". What that means is that ReScript has a lightning fast compiler, an easy to learn JS like syntax, strong static types, with amazing features like pattern matching and variant types. Until 2020 it was called "BuckleScript" and is closely related to ReasonML.
-
Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
As another commenter has already suggested, ReasonML has a lot of what you described here.
However, modern JS-oriented toolchain for ReasonML is called ReScript and you can learn more here: https://rescript-lang.org/
-
How does one write React apps in a purely functional style without making the entire codebase a mess?
ReScript (before BuckleScript) https://rescript-lang.org/ is a functional language that can also use OOP. Ideal for Javascript and Typescript projects, React and servers. It integrates perfectly with Javascript and Typescript code https://rescript-lang.org/docs/react/latest/introduction
-
Show HN: EdgeDB Cloud and 4.0 with FTS and Auth
Thank you!
We invited Gabriel because we think what he's building is pretty cool. It showcases so much about EdgeDB: its type system, data model, query language, composability, introspection, etc.
I'm not a ReScript user myself. What I know is that it's a functional programming language somewhat heavily inspired by OCaml. Their website goes into details [1]
[1] https://rescript-lang.org/
-
Strong typing, a hill I'm willing to die on
You might want to look into ReScript (https://rescript-lang.org/). It has strong static typing with type inference, and it is very fast.
-
Building React Components Using Unions in TypeScript
This is because a “Tagged Union”, another word for TypeScript’s Discriminated Union, is a way to “tag which one is in use right now… we check the tag to see”. Just like when you’re shopping and check the tag of a piece of clothing to see what the price is, what size it is, or what material it’s made out of. Languages like ReScript compile many of their Unions (called Variants) to JavaScript Objects that have a tag property.
-
Converting a JavaScript React app to a ReScript React app.
ReScript is "Fast, Simple, Fully Typed JavaScript from the Future". Let's take a look at how we can add it to an existing React project.
What are some alternatives?
HVM - A massively parallel, optimal functional runtime in Rust
svelte-wasm
clasp - clasp Common Lisp environment
Elm - Compiler for Elm, a functional language for reliable webapps.
whirlisp - A whirlwind Lisp adventure
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
one-more-re-nightmare - A fast regular expression compiler in Common Lisp
Fable: F# |> BABEL - F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
gophernotes - The Go kernel for Jupyter notebooks and nteract.
purescript - A strongly-typed language that compiles to JavaScript
river-runner - Uses USGS/MERIT Basin data to visualize the path of a rain droplet to its endpoint.
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems