Giter Site home page Giter Site logo

dvmason / zag-smalltalk Goto Github PK

View Code? Open in Web Editor NEW
128.0 128.0 6.0 11.6 MB

Smalltalk VM Written in Zig with methods stored as type-annotated ASTs

License: MIT License

Smalltalk 50.84% C 0.60% Rust 7.64% Makefile 0.01% Zig 40.77% Shell 0.06% Python 0.09%
compiler interpreter smalltalk zig

zag-smalltalk's People

Contributors

a2800276 avatar ahmadbeirkdar avatar codereport avatar dfranklinsmail avatar dvmason avatar janbaig 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zag-smalltalk's Issues

weird compilation issue

cd zig/zag
zig test -freference-trace --test-filter fubar arenas.zig

output

arenas.zig:69:26: error: struct 'arenas.Arena' depends on itself
pub const Arena = extern struct {
                  ~~~~~~~^~~~~~
referenced by:
    NurseryArena(509): arenas.zig:121:33
    NurseryArena: arenas.zig:116:19
    nurseryType: thread.zig:22:31
    Thread: thread.zig:18:15
    Self: thread.zig:21:18
    thread_size: thread.zig:23:48
    threadAvail: thread.zig:24:43
    nursery_size: thread.zig:25:31

fails repeatedly for me on linux-x86_64-gnu. Not only spuriously.

Related: #14353 ziglang/zig#14147 ziglang/zig#12325 ziglang/zig#8050

Compilation?

Any clues about how to compile/use this project?

Zig tracking issue

This is a tracking issue for upstream Zig. (see Third Party Tracking Issues)
Overall, Zig is really great and its cross-compilation abilities are great, but some (planned) proposals and bug fixes would make it better:

  • issue ziglang/zig#12325 (regression introduced in stage2) is blocking me being able to test conveniently. I have so far been able to avoid *anyopaque/@ptrCast but zig test foo.zig fails with circular definition error, so I have to zig test bar.zig (where foo.zig and bar.zig (correctly) refer to each other actually there are about six files that mutually refer to each other) and I worry that one day there won't be one I can start the test from.

Mist memory model for Zag

Re: https://www.youtube.com/watch?v=iw4FPqe8KdY&t=1093s 22:05 to 36:05

The above section of Martin McClure's Mist video describes a very simple, fast, exponential memory model involving binary-powers-of-2-sized bins for allocating objects. We need not lift this GC mechanism into the Smalltalk itself, at this early stage, as he is proposing for Mist. We could instead implement this GC design as C primitives on the VM side. In this way, objects on the heap will never move. This fact alone will increase execution speed and create more deterministic latencies.

Thoughts anyone?

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.