scamp-cpu
coollang-2020-fs
Our great sponsors
scamp-cpu | coollang-2020-fs | |
---|---|---|
12 | 5 | |
283 | 37 | |
- | - | |
8.4 | 9.2 | |
5 months ago | 3 months ago | |
Slash | F# | |
The Unlicense | 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.
scamp-cpu
-
500 Lines or Less β Writing a useful program in fewer than 500 line code β AOSA
Re the text editor, when I was writing an editor for my homemade CPU I used the one from this tutorial: https://viewsourcecode.org/snaptoken/kilo/index.html - it is 1000 lines of C.
I have diverged a bit from the tutorial because I didn't want syntax highlighting and I really wanted vi-style keybindings. Mine is at https://github.com/jes/scamp-cpu/blob/master/sys/kilo.sl (in my made-up programming language).
-
-π- 2021 Day 8 Solutions -π-
I made the computer myself: https://github.com/jes/scamp-cpu/
-
π AoC 2021 π [Adventure Time!]
PROJECT LINK: Solutions GitHub - CPU GitHub - YouTube
- Scamp CPU: A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system
- A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system
-
Designing a CPU for Advent of Code
In case you're interested, there's more about this project in the github repo: https://github.com/jes/scamp-cpu/ and on my blog: https://incoherency.co.uk/blog/tags/cpu.html
-
Scamp β a homebrew 16-bit CPU
This is really cool and unique. I poked around a bit, and the kernel is vaguely POSIX like, but written in a homegrown language with a compiler written in Perl[1].
[1] https://github.com/jes/scamp-cpu/blob/f260f52d950be90c2279f5...
-
My homebrew CPU is alive!
Actually, I just found this! That's pretty much what I was looking for. That's what I would have linked if it had been me posting. :) This looks like a really interesting computer project!
coollang-2020-fs
-
Course using F#: Write your own tiny programming system(s)
Looks interesting.
Once I saw it's a Czech university course using F#, I knew TomΓ‘Ε‘ PetΕΓΔek would be the lecturer :)
A couple years back, I wrote a compiler of tiny-ish scala subset in F# (the code is imperative, though)[1]
[1]: https://github.com/mykolav/coollang-2020-fs
-
Compiler of a small Scala subset into x86-64 assembly, in F#
The repo is on github: https://github.com/mykolav/coollang-2020-fs
-
Compiling a small Scala subset into x86-64 assembly
Go to the project's repository to explore the source code.
- Compiling a small Scala subset into x86-64 asm
-
Compiler Class
You might find [CS 6120: Advanced Compilers: The Self-Guided Online Course][1] interesting. I'm slowly working through it, but basically its focus is intermediate representations, optimizations, etc. A link to the course was on the first page of HN some time ago.
Also -- and you knew it was coming -- I've written a [toy-compiler of a Scala subset][2] myself :)
I'm new to F# and writing compilers, so I'm sure the code is full of rookie mistakes. Still, it works and does generate assembly and executables for Linux and Windows.
[1]: https://www.cs.cornell.edu/courses/cs6120/2020fa/self-guided...
[2]: https://github.com/mykolav/coollang-2020-fs
What are some alternatives?
aoc - Advent of Code solutions
selfie - An educational software system of a tiny self-compiling C compiler, a tiny self-executing RISC-V emulator, and a tiny self-hosting RISC-V hypervisor.
shecc - A self-hosting and educational C optimizing compiler
advent-of-code - My Advent of Code solutions through the years - mostly JS
proc - Procedural Intel x86_64 compiler from scratch, inspired by Fortran, Pascal and Assembly.
aoc - π advent of code 414β
jet - A Fast C and Python like Programming Language that puts the Developer first. WIP
advent-of-code - Advent of Code in python3
nelua-lang - Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code.
AoC - my personal repo for the advent of code yearly challenge
Fable: F# |> BABEL - F# to JavaScript, TypeScript, Python, Rust and Dart Compiler