bluebird
durin
Our great sponsors
bluebird | durin | |
---|---|---|
11 | 3 | |
25 | 13 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | about 2 years ago | |
C++ | Rust | |
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.
bluebird
-
Asking for opinions on the best way to specify an exclusive range in a for-loop
0 upto n and 0 thru n. I think I saw it in Bluebird first and really liked it.
-
Tips for implementing an AST
Instead of the classic visitor pattern, I found it easier to create a class that basically wraps a big switch statement that switches on an enum representing the kind of expression. You pass it an expression, and based on the enum returned by its kind() function you downcast the expression into the subclass you need. The code is here for reference. My AST code is here.
-
January 2022 monthly "What are you working on?" thread
I am working some again on my Ada-like language bluebird. I am making another attempt to use MLIR as an intermediate IR between the AST and LLVM IR (I made a brief attempt a few months ago just to look into it).
-
September 2021 monthly "What are you working on?" thread
I fworked some more towards adding pointers on my Ada-like programming language bluebird. I've finished adding pointer types and variables (as well as the operators for dereferencing/getting the address of objects), but I still need to add the ability to dereference and assign.
-
July 2021 monthly "What are you working on?" thread
I started to experiment with using MLIR to write a high-level IR for my language bluebird, which will hopefully reduce the work of implementing features I want to add such as generics and ranges, as well as allowing me to eventually write some optimizations. I am also considering rewriting my AST as an MLIR dialect, since MLIR provides a bunch of type-checking/error printing/support infrastructure.
-
June 2021 monthly "What are you working on?" thread
I continued implementing support for references (a restricted form of pointers) in my Ada-like language bluebird. I also am working on adding a cleanup pass between my parser/typechecker to handle stuff like type resolution of literals and constant folding.
-
May 2021 monthly "What are you working on?" thread
I didn’t add too many new features to my Ada-like language bluebird this month because of lots of projects/school stuff.
-
LLVM’s New Pass Manager
Here is a link to my optimizer pass setup for reference. This is just a simple optimization pipeline (I think clang has a setup where optimization stages are re-run multiple times to take advantage of inlining making more optimizations possible).
-
March 2021 monthly "What are you working on?" thread
I made some more progress on bluebird, my Ada-like language.
-
February 2021 monthly "What are you working on?" thread
I continued to make progress on the compiler for my Ada-inspired language bluebird. I will have less time to spend on it as classes began earlier last month, but I still hope to continue working on it. Things are getting to the point where adding a new feature isn’t as difficult as it was when doing so often meant writing the supporting code from nothing.
durin
-
Are there any low level, cross platform assembly languages that allow jumping to non labels?
So I think I may be one of the few people in the world who has actually implemented a GC using LLVM's statepoint infrastructure. It's poorly documented and there are some gotchas, but I'd say it's definitely usable, and it works with basically any collector design, including moving collectors (I'm using Immix) and has no runtime bookkeeping overhead and allows LLVM to optimize the code without worrying about GC, which is nice. It's actually gotten a bit better with LLVM 13, too. If you're curious what a LLVM-based GC looks like, mine is in this folder. Of course, if you just want some sort of GC, you can also just link it with Boehm which is quite easy and has pretty good performance - this is what e.g. Crystal does, although they're talking about switching.
-
September 2021 monthly "What are you working on?" thread
I also fixed lots of bugs in the GC and backend, so it should be a lot more stable now.
-
May 2021 monthly "What are you working on?" thread
Recently, I've been working on adding garbage collection to Pika. I've successfully written an Immix-based garbage collector that works with the LLVM GC support infrastructure, and I'm currently working on integrating the GC with Pika, or really Durin, the dependently-typed intermediate representation that Pika compiles to. Because types are passed around at runtime, objects of unknown type and size can be stored unboxed in polymorphic data structures; but that makes keeping track of type information for heap allocations somewhat harder, because type information needs to be allocated and constructed at runtime in some cases. It's an interesting design problem, because you want constructing type information to be fast; but the GC will run much more often, so maximizing tracing speed by avoiding e.g. indirection in type information is important; and you also want to construct as much type information as possible at compile time and embed it as constants.
What are some alternatives?
starlight - JS engine in Rust
c3c - Compiler for the C3 language
Cwerg - The best C-like language that can be implemented in 10kLOC.
never - Never: statically typed, embeddable functional programming language.
pika - A WIP little dependently-typed systems language
konna - A fast functional language based on two level type theory
Matrix - Easy-to-use Scientific Computing library in/for C++ available for Linux and Windows.
xvm - Ecstasy and XVM
imp - Imp is a statically typed and compiled scripting language with the goal of increasing programmer confidence.
The-Spiral-Language - Functional language with intensional polymorphism and first-class staging.
kesh - A simple little programming language that could one day compile to JavaScript.