Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
// $ 6g echo.go && 6l -o echo echo.6 | |
// $ ./echo | |
// | |
// ~ in another terminal ~ | |
// | |
// $ nc localhost 3540 | |
package main | |
import ( |
// Written by claude-3-5-sonnet-20241022, based on https://github.com/paulsmith/aoc2024/blob/main/03/solution.zig | |
const std = @import("std"); | |
const startsWith = std.mem.startsWith; | |
const input = @embedFile("input.txt"); | |
const OpType = enum { | |
mul, | |
do_op, | |
dont_op, |
package bufscan | |
type GoToken struct { | |
Pos token.Pos | |
Tok token.Token | |
Lit string | |
} | |
type BufGoScanner struct { | |
scan *scanner.Scanner |
/** | |
* 8x8 monochrome bitmap fonts for rendering | |
* Author: Daniel Hepper <daniel@hepper.net> | |
* | |
* License: Public Domain | |
* | |
* Based on: | |
* // Summary: font8x8.h | |
* // 8x8 monochrome bitmap fonts for rendering | |
* // |
/** | |
* A simple preforking echo server in C. | |
* | |
* Building: | |
* | |
* $ gcc -Wall -o echo echo.c | |
* | |
* Usage: | |
* | |
* $ ./echo |
enum Kind { | |
File, | |
Directory, | |
} | |
struct Entry { | |
name: String, | |
kind: Kind, | |
size: usize, | |
parent: Option<usize>, |
CC=clang | |
CXX=clang++ | |
all: sum | |
sum.o: sum.c | |
$(CC) -g `llvm-config --cflags` -c $< | |
sum: sum.o | |
$(CXX) `llvm-config --cxxflags --ldflags --libs core executionengine jit interpreter analysis native --system-libs` $< -o $@ |
""" | |
jQuery templates use constructs like: | |
{{if condition}} print something{{/if}} | |
This, of course, completely screws up Django templates, | |
because Django thinks {{ and }} mean something. | |
Wrap {% verbatim %} and {% endverbatim %} around those | |
blocks of jQuery templates and this will try its best |
aka generic guidelines
It's late 2021, and Go is about to add "generics" (i.e., type parameters for types and functions) to upcoming release version 1.18.
Here is some guidance for Go programmers, cribbed from a talk by Ian Lance Taylor.