Skip to content

Instantly share code, notes, and snippets.

View RealNeGate's full-sized avatar

Yasser Arguelles Snape RealNeGate

  • Washington, USA
View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <x86intrin.h>
const char keywords[][16] = {
"alignof",
"auto",
"break",
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <x86intrin.h>
#include <Windows.h>
enum {
TOKEN_ACCESSOR = '.',
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <x86intrin.h>
enum {
TOKEN_ACCESSOR = '.',
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <x86intrin.h>
const char keywords[][16] = {
"alignof",
"auto",
"break",
trial_0_0():
L0: # r1 terminates at r647
r2 = [i64 x 1] PARAM 0
r3 = [i64 x 1] PARAM 1
r4 = [i64 x 1] 396779542
r5 = [i32 x 1] 4271987557
r6 = LOCAL 4 (4 align)
r7 = [i32 x 1] TRUNC r3
r8 = [i32 x 1] TRUNC r3
r9 = [i32 x 1] r7 | r8
// the macros could be made to not do
// anything on codebases that wanna support both
#ifdef __CUIK_C__
#include <cuik.h>
#else
#define cuik_tag
#define cuik_tagged(val)
#define cuik_try_use(a, b) ((a) == (b))
#define cuik_tag_switch switch

Cuik ideas

Proposals:

  • using from C++ using i8 = signed char;
  • default args
  • binding generator
  • Valid ass print
  • Switch on string literals

Cool as fuck (basically guarenteed to go in):

#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdatomic.h>
#include <threads.h>
#define NUM_THREADS 8
static _Atomic size_t tasks_reserved;
static _Atomic size_t tasks_complete;

J.3 Implementation-defined behavior:

J.3.1 Translation

How a diagnostic is identified (3.10, 5.1.1.3).

TODO

Whether each nonempty sequence of white-space characters other than new-line is retained or replaced by one space character in translation phase 3 (5.1.1.2).

non-newline whitespace is replaced by the space ' '

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <x86intrin.h>
static const char keywords[][16] = {
"auto",
"break",
"case",