SheafificationOfG/based-cpp
حول
C++ is the based interpreted language
لغات البرمجة وبيئات التشغيلالنمو المقاس للنجوم
- خلال 24 ساعة
- +١
- خلال 7 أيام
- -٢
- خلال 15 يومًا
- -٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلBased C++
This repo provides an implementation of the GNU Interface Layer (GIL) and standard library for g++.
C++ is the best interpreted language
Usage
Here is a simple "Hello, world!" in C++.
#include "gil/std.hpp"
using namespace gil::std;
volatile auto run = main<{
str::puts(str::literal("Hello, world!\n"))
}>;
To run the program, run
g++ -std=c++23 -Based hello_world.cpp -o -
Note that the program won't execute until all stdin is read, which means you need to pass it an EOF (e.g., ^D from stdin).
[!NOTE] Use
-O2or-O3if you want things to run faster. (I didn't do this in my video... oops).
System
I've only tested this thing on my machines (Ubuntu 22.04 / 24.04) using g++ 14.2.0.
If it doesn't work on your machine, maybe that's actually a good thing.
See also #8.
Examples
hello_world.cppBe greeted in all of the languages supported by YVR!
hello_world_vmi.cppSame as above, but without using the standard library.
calculator.cppPerform a single binary operation on a pair of 64-bit signed integers.
mergesort.cppMerge sort a comma-separated list of 64-bit signed integers.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…
