antlr-tsql
racket
Our great sponsors
antlr-tsql | racket | |
---|---|---|
1 | 188 | |
7 | 4,695 | |
- | 0.7% | |
0.0 | 9.7 | |
over 4 years ago | 3 days ago | |
ANTLR | Racket | |
GNU Affero General Public License v3.0 | 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.
antlr-tsql
-
Racket v8.0
I'm currently working on a TSQL parser in Racket because I want to do some code analysis on a few huge stored proc files (some of which are over 30k lines of code). I didn't want to use existing parsers because the trees they produce are monstrous [1,2]. Tried doing some fancy grep work, but it was giving me way too many false matches and wasn't as sound as I would have liked.
I could use any language with reasonable parsing tools, but I like how flexible Racket is about it. Currently using megaparsack[3], but there are many different parsing tools available depending on your needs. Also, once you have done parsing, there are lots of convenient ways to manipulate the parse trees into whatever shape you need.
I also think Racket has a lot of tooling that would make it great for large code bases.
-It has great offline docs (scribble) which don't force you to use some comment based system like JavaDoc.
-It has a very powerful and fast contract system that can be attached either at definition time like most languages or only at module boundaries.
- While it has a macro system, it has a really good macro debugger (it lets you view how the code is iteratively expanded with options to show/hide the expansion of various macros). Since even non-hygienic macros deal with syntax objects and not just datums, macros don't even screw up error messages since line/column info is preserved!
- You compile to executables unlike most scripting languages.
- You can write some code with types and some with them, but unlike say TypeScript the boundary between typed and untyped code is sound since contracts are used to verify these boundaries.
- A lot of the time you don't even need types because most names (i.e. variables and functions) are verified at compile time (to be more specific, at macro expansion time).
- It has very aggressive sandboxing tools that let you control not only what names are visible to some untrusted code, but also control how much memory it uses without creating a new process.
- Safer global variables in the form of parameterize. Very convenient for stuff like when you need to temporarily change the stdout for a single call.
[1]: https://github.com/datacamp/antlr-tsql/blob/master/antlr_tsq...
racket
- Racket Language
-
Racket–the Language-Oriented Programming Language–version 8.12 is now available
Racket—the Language-Oriented Programming Language—version 8.12 is now available from https://racket-lang.org
See https://racket.discourse.group/t/racket-v8-12-is-now-availab... for the release announcement and highlights.
Thank you to the many people who contributed to this release!
Feedback Welcome
-
Racket version 8.11.1 is now available
Racket version 8.11.1 is now available from https://racket-lang.org/
-
Ask HN: Does anyone Lisp without Emacs?
Racket (https://racket-lang.org) has an IDE (DrRacket) which isn't EMACS. ARC (which powers hacker news) is (was?) written in Racket.
-
Douglas Crockford, author of ‘Javascript: the good parts’ and ‘How Javascript works’ will be giving the keynote presentation From Here To Lambda And Back Again at the thirteenth RacketCon.
Nice! Repeating a comment I just made on HN: I signed up for RacketCon, will be joining remotely. I am looking forward to it a lot. Usually I use the Racket language perhaps for 10% of my personal projects, but I am currently writing a Racket AI book, so all things Racket are of current interest. Past RacketCons have been a lot of fun. I usually use Common Lisp, but Racket is batteries included Scheme, and more, and is a very pleasant language and ecosystem. Just in case you don’t have Racket installed: https://racket-lang.org/
-
Douglas Crockford to Keynote 'From Here to Lambda and Back Again' at Racke
I signed up for RacketCon, joining remotely. I am looking forward to it a lot. Usually I use the Racket language perhaps for 10% of my personal projects, but I am currently writing a Racket AI book, so all things Racket are of current interest.
Past RacketCons have been a lot of fun.
I usually use Common Lisp, but Racket is batteries included Scheme, and more, and is a very pleasant language and ecosystem. Just in case you don’t have Racket installed: https://racket-lang.org/
-
Ask HN: What is the most suitable Scheme implementation to learn today?
I'd suggest Racket (https://racket-lang.org) which is a batteries-included language environment that includes scheme and has a lot of high-quality documentation.
Guile (https://www.gnu.org/software/guile/) isn't quite as learner-focused but is another great choice.
-
What Programming Languages are Best for Kids?
How did I get to the bottom of the page and not ONE person has recommended racket?
-
Setting up a Scheme coding environment in VS code?
The Racket fork of CS supports Apple Silicon natively, and can be installed independently: https://github.com/racket/racket/blob/master/racket/src/ChezScheme/BUILDING Chez adds a few features (threads, ffi, ...) to R6RS; there is a useful combined index to TSPL4 and the CS User Guide at http://cisco.github.io/ChezScheme/csug9.5/csug_1.html
-
Is SICP an overkill for a 14 year old?
If you're using SICP in Scheme (or are you doing the JS version?) then you may want to look at How to Design Programs. It uses Racket which is a Scheme descendent so much of the language you've learned in SICP will work in it without issue. It also has a pretty good set of GUI and drawing capabilities you can find through the Racket docs page and will use some of with HTDP.
What are some alternatives?
JSqlParser - JSqlParser parses an SQL statement and translate it into a hierarchy of Java classes. The generated hierarchy can be navigated using the Visitor Pattern
Visual Studio Code - Visual Studio Code
ActivityLog2 - Analyze data from swim, bike and run activities
clojure - The Clojure programming language
megaparsack - Racket parser combinators inspired by parsack and megaparsec
nannou - A Creative Coding Framework for Rust.
rhombus-brainstorming - Brainstorming and draft proposals for Rhombus [Moved to: https://github.com/racket/rhombus-prototype]
babashka - Native, fast starting Clojure interpreter for scripting
imgmac
coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.
NewPipe - A fork of NewPipe with SponsorBlock functionality.
guide.elm-lang.org - My book introducing you to Elm!