This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dumb_handle_map | |
// NOTE: ONLY TO SHOW WHAT A GENERATION IS DOING | |
// BUT DOES NO INSERTION WHATSOEVER | |
Handle_Map :: struct($T: typeid) { | |
entries: [dynamic]Entry(T), | |
} | |
Entry :: struct($T: typeid) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "core:fmt" | |
import "core:os" | |
error :: proc(s: string) -> ! { | |
fmt.eprintln("\n error:", s); os.exit(1) | |
} | |
one_to :: proc(n: int) -> List { | |
f :: proc(m, n: int) -> List { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You appear to be advocating a new: | |
[ ] functional [x] imperative [ ] object-oriented [x] procedural [ ] stack-based | |
[ ] "multi-paradigm" [ ] lazy [x] eager [x] statically-typed [ ] dynamically-typed | |
[ ] pure [x] impure [ ] non-hygienic [ ] visual [ ] beginner-friendly | |
[ ] non-programmer-friendly [ ] completely incomprehensible | |
programming language. Your language will not work. Here is why it will not work. | |
You appear to believe that: | |
[ ] Syntax is what makes programming difficult | |
[ ] Garbage collection is free [ ] Computers have infinite memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LLVM 17.0.1 Passes | |
## default<O0> | |
always-inline, | |
coro-cond( | |
coro-early, | |
cgscc( | |
coro-split |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* characters */ | |
newline = /* the Unicode code point U+000A */ . | |
unicode_char = /* an arbitrary Unicode codepoint except newline */ . | |
unicode_letter = /* a Unicode code point categorized as "Letter" */ . | |
unicode_digit = /* a Unicode code point categorized as "Number, decimal digit" */ . | |
letter = unicode_letter | "_" . | |
decimal_digit = "0" ... "9" . | |
binary_digit = "0" | "1" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package d3d11_main | |
import D3D11 "vendor:directx/d3d11" | |
import DXGI "vendor:directx/dxgi" | |
import D3D "vendor:directx/d3d_compiler" | |
import SDL "vendor:sdl2" | |
import glm "core:math/linalg/glsl" | |
// Based off https://gist.github.com/d7samurai/261c69490cce0620d0bfc93003cd1052 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package objc_test | |
import NS "vendor:darwin/Foundation" | |
import MTL "vendor:darwin/Metal" | |
import CA "vendor:darwin/QuartzCore" | |
import SDL "vendor:sdl2" | |
import "core:fmt" | |
import "core:os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WASM-4: https://wasm4.org/docs | |
package wasm4 | |
foreign import wasm4 "env" | |
#assert(size_of(int) == size_of(u32)) | |
// ┌───────────────────────────────────────────────────────────────────────────┐ | |
// │ │ | |
// │ Platform Constants │ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WASM-4: https://wasm4.org/docs | |
package wasm4 | |
foreign import wasm4 "env" | |
#assert(size_of(int) == size_of(u32)) | |
// ┌───────────────────────────────────────────────────────────────────────────┐ | |
// │ │ | |
// │ Platform Constants │ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "core:fmt" | |
import glm "core:math/linalg/glsl" | |
import "core:time" | |
import SDL "vendor:sdl2" | |
import gl "vendor:OpenGL" | |
main :: proc() { |
NewerOlder