Coder Social home page Coder Social logo

osmium's Introduction

I usually go by Sinon online. I'm a 12th grader writing the RISC-V backend for Zig and doing ML inference at ZML.

I have great experience optimizing VMs, building linkers, low-level debugging, and many other things. I enjoy a more theoretical approach to computer science in the form of CFG optimization and scheduler-guided ISEL.

Notable projects aside from my work and Zig are:

  • Synthetic Navigation A De-fuzzing neural network I wrote in 9th grade. Sort of my entry into the world of machine learning. Wrote a paper about it as well for a science fair, it's in the repo.
  • Space Warp KSP2 Modding API. (Not my project, but I helped :)
  • Osmium A Python 3.10 (to be expanded) compiler and virtual machine.
  • SCC A (to-be) C11 complaint C compiler written in Zig.

Private project (for reasons), but still potentially notable is:

  • Vortan, A Glider Flight Computer written in C++ for the Tegra 20 SoC

Contact:

  • Discord: @telaxion
  • Email: daviru007 at icloud dot com

PS: If you can guess where my username originates, you'll get a banana ๐Ÿ˜‰.

osmium's People

Contributors

rexicon226 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

osmium's Issues

Tokenizer Improvements

Just need to do these:

// Operators
op_plus,
op_minus,
op_multiply,
op_divide,

op_increment,
op_plus_equal,
op_equal,
op_assign,

the names are a bit strange, should be something more on the order of

op_plus,
op_minus,
op_star,
op_slash,

this is simply because these symbols might easily be used for things other than dividing and multiplying.

op_increment,
op_plus_equal,
op_equal,
op_assign,

maybe something like:

op_plus_plus,
op_plus_equal,
op_equal,
op_equal_equal,

again, mostly because they can be used for something else that isn't related. The op tokens are completely meaning less and should simply provide what pattern was found. The parser then gives meaning to these operators.


Next is some fixes that are needed.

When provided with the input:

a = 1
    print(a)

the tokenizer spits out:

debug(tokenizer): Token: parser.Tokenizer.Kind.identifier
debug(tokenizer): Token: parser.Tokenizer.Kind.op_assign
debug(tokenizer): Token: parser.Tokenizer.Kind.number
debug(tokenizer): Token: parser.Tokenizer.Kind.newline
debug(tokenizer): Token: parser.Tokenizer.Kind.identifier
debug(tokenizer): Token: parser.Tokenizer.Kind.lparen
debug(tokenizer): Token: parser.Tokenizer.Kind.identifier
debug(tokenizer): Token: parser.Tokenizer.Kind.rparen
debug(tokenizer): Token: parser.Tokenizer.Kind.eof

there is no tab token between newline and identifier.

I'll add more as I find them.

implement all built-in functions

Lots of these are blocked by larger features that need to be added first.

List: https://docs.python.org/3.10/library/functions.html
Checklist:

  • abs()
  • aiter()
  • all()
  • any()
  • anext()
  • ascii()
  • bin()
  • bool()
  • breakpoint()
  • bytearray()
  • bytes()
  • callable()
  • chr()
  • classmethod()
  • compile()
  • complex()
  • delattr()
  • dict()
  • dir()
  • divmod()
  • enumerate()
  • eval()
  • exec()
  • filter()
  • float()
  • format()
  • frozenset()
  • getattr()
  • globals()
  • hasattr()
  • hash()
  • help()
  • hex()
  • id()
  • input()
  • int()
  • isinstance()
  • issubclass()
  • iter()
  • len()
  • list()
  • locals()
  • map()
  • max()
  • memoryview()
  • min()
  • next()
  • object()
  • oct()
  • open()
  • ord()
  • pow()
  • print()
  • property()
  • range()
  • repr()
  • reversed()
  • round()
  • set()
  • setattr()
  • slice()
  • sorted()
  • staticmethod()
  • str()
  • sum()
  • super()
  • tuple()
  • type()
  • vars()
  • zip()
  • __import__()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.