Code Monkey home page Code Monkey logo

cup's People

Contributors

marler8997 avatar mustafaquraish avatar weltspear 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

cup's Issues

Cannot build on macOS BigSur version11.6

Build Issue
Environment
macOS BigSur version 11.6

Description
I was trying to follow the installation guide.
I can't seem to build it on macOS BigSur.

What I did
First of all, I googled this error.

$ ./meta/bootstrap.sh
[+] Compiling the bootstrap compiler...
ld: dynamic main executables must link with libSystem.dylib for architecture x86_64

https://stackoverflow.com/a/65570573

In accordance with this, fixed.
(meta/bootstrap.sh)

   Darwin)
        cp bootstrap/macos.yasm bootstrap/cupcc.yasm
        yasm -f macho64 -o bootstrap/cupcc.o bootstrap/cupcc.yasm
        ld -o bootstrap/cupcc bootstrap/cupcc.o -macosx_version_min 11.6 -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem
        ;;

Then, I cannnot fix the next error.

$ ./meta/bootstrap.sh
[+] Compiling the bootstrap compiler...
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in func_die from bootstrap/cupcc.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
[+] Creating build/cupcc with bootstrap compiler...
[+] /usr/local/bin/yasm -fmacho64 -o build/cupcc.o build/cupcc.yasm
[+] /usr/bin/ld -o build/cupcc build/cupcc.o -lSystem
ld: library not found for -lSystem
std/common.cup:350:14: Child exited with non-zero status: (1)

[Idea] `with` blocks instead of `defer`

Maybe instead of using defer statements we can use with blocks:

struct A{
    a: i32,
}

fn new_a(): A*{
    ...
}

method A::close(){
    ...
}

fn main(){
    with let foo: A* = new_a(){
        ...
    }
}

Which essentially means:

struct A{
    a: i32,
}

fn new_a(): A*{
    ...
}

method A::close(){
    ...
}

fn main(){
    let foo: A* = new_a();
    ...
    foo::close();
}

Hello

First of all, i wanna thank you for this repo :)
This is not a issue, but a question, since obviously you have more experience than me, and im just trying to find something....
I was searching for more repos like this, a kind of "programming language", but i literally found nothing, if you had to know some code that could help i will be thankful. !
I basically would love to have it in c/cpp, but anything can work !

Thanks for your time, and hope you reply soon :)

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.