schism VS nearley

Compare schism vs nearley and see what are their differences.

schism

A self-hosting Scheme to WebAssembly compiler (by schism-lang)

nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript. (by kach)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
schism nearley
7 3
188 3,554
0.0% -
10.0 0.0
almost 4 years ago 9 months ago
JavaScript
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

schism

Posts with mentions or reviews of schism. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-15.
  • Scheme in Scheme on WASM in the Browser
    4 projects | news.ycombinator.com | 15 Dec 2023
    I don't know why you've been downvoted, I've given you an upvote for linking to an interesting project (even if it's linked in some way to Google). I'd also like to link to the updated GH link: <https://github.com/schism-lang/schism>.
  • Writing a C compiler in 500 lines of Python
    4 projects | news.ycombinator.com | 4 Sep 2023
    Looks like Schism (https://github.com/schism-lang/schism) got part of the way there, but it unfortunately seems to be dead.
  • Two-tier programming language
    6 projects | /r/ProgrammingLanguages | 19 Apr 2023
    It would be interesting to reboot something like Lush but using Wasm and Scheme with https://github.com/schism-lang/schism then you could use code generation internally be emitting wasm from your schism code and then reloading the entire environment.
  • Langjam 17-19 Feb
    3 projects | /r/lisp | 17 Feb 2023
  • Multiple assignment and tuple unpacking improve Python code readability
    4 projects | news.ycombinator.com | 8 May 2022
    I love E! Or at least the problems it is trying to solve. As you know Wasm also has a capabilities model. And it is fairly trivial to persist the Wasm heap, it just an array of bytes. I think Wasm aligns nicely.

    Chez is a great Scheme, but it doesn't have a Wasm backend. I find https://github.com/schism-lang/schism very interesting.

    As for C programs going crazy, well yeah. I did a thing where I would copy of the body of functions around in memory, it worked on some version of Linux and GCC, but only by accident. I would be much less comfortable doing this kind of circuit bending than modifying Python stack frames. If I were to achieve a similar goal in the future, I'd use TCC, generate C code and compile directly into memory.

    Framehacks aren't going to do the same thing, and one should have tests for it regardless. Framehacks get you tail calls, stack scope and a bunch of other nice properties.

    Happy Hacking!

  • Schism: A self-hosting Scheme to WebAssembly compiler
    1 project | news.ycombinator.com | 20 Jan 2022
  • Racketscript/Racketscript: Racket to JavaScript Compiler
    5 projects | news.ycombinator.com | 26 Sep 2021
    There is a WIP unofficial project from developers at Google called Schism [1].

    [1] https://github.com/schism-lang/schism

nearley

Posts with mentions or reviews of nearley. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-04.
  • Writing a C compiler in 500 lines of Python
    4 projects | news.ycombinator.com | 4 Sep 2023
    While I suspect I would learn more writing a tokenizer and parsing logic myself I find grammars much easier to read and maintain.

    ANTLR is pretty good and is supported across several languages and something I had previously used for some quick Elasticsearch query syntax munging in Python. It also means you can often start from an already existing grammar.

    The JS version of ANTLR didn't seem to work for me so for the SQL/JSONPath stuff ended up using the Moo lever and Nearly parser which was rather pleasant. https://nearley.js.org

  • Parser generators vs. handwritten parsers: surveying major languages in 2021
    11 projects | news.ycombinator.com | 21 Aug 2021
  • Applicative Parsing
    1 project | news.ycombinator.com | 1 Mar 2021
    Parsers in nearley.js [1] are written in a very readable EBNF-like DSL; then they get desugared down to a JS file that's a lot like your snippet.

    [1] https://github.com/kach/nearley

What are some alternatives?

When comparing schism and nearley you can also consider the following projects:

racketscript - Racket to JavaScript Compiler

PEG.js - PEG.js: Parser generator for JavaScript

biwascheme - Scheme interpreter written in JavaScript

Jison - Bison in JavaScript.

langjam

Chevrotain - Parser Building Toolkit for JavaScript

micrograd - A tiny scalar-valued autograd engine and a neural net library on top of it with PyTorch-like API

markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed

gambit - Gambit is an efficient implementation of the Scheme programming language.

xml2js - XML to JavaScript object converter.

cant - A programming argot

parse5 - HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.