Skip to content
View colbyn's full-sized avatar

Organizations

@SubSys@imager-io@subscript-publishing@SuperSwiftMarkup

Block or report colbyn

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
colbyn/README.md

Update

See my new WIP site colbyn.com!

(Before it just redirected to my old school notes.)

About Me

TODO

cool UI

Current Projects

Static Site Compiler (as opposed to a SSG) with an emphasis on simplicity, robustness, component based reusability, and with an eye for producing optimized static content in terms of machine legibility.

All file paths are relative, you can include files with relative paths and the compiler normalizes everything relative to the output directory at compile time. You can include files and pass in content, the included files can transform the passed in HTML AST via macro tags like enumerate, to turn a fragment to a tab view, and whatnot… Very useful. I can talk it more if anyone is interested. As an amateur compiler engineer I’d love for this to be used in the real world. Plus, nowadays machine legibility matters more than ever and especially because Google bot is no longer the primary concern so you may as well keep the site, content and metadata suitable for the lowest common denominator client, which nowadays are machines (the age of AI assistants that search and gather information on the user's behalf, all of which generally don't use google).

<!-- pages/index.html --><includesrc="../common/main.html"><h1>Hello World</h1></include><!-- common/main.html --><includesrc="header.html"></include><main><content></content></main><includesrc="footer.html"></include>

Working on a new DSL, a rewrite of the basic implementation from WebCompiler.

What I particularly love about the current system is that it can accommodate intermediate evaluations, for instance, chain of prompt reasoning via the breakpoint message where the LLM outputs will be substituted into a message element based on the provided role. E.g.

<promptname="question-1"><messagerole="system">You are a helpful assistant.</message><messagerole="user">What is heavier, a kilo of feathers or a pound of steel?</message><message-breakpointrole="assistant"></message-breakpoint><messagerole="user">Explain your reasoning.</message><message-breakpointrole="assistant"></message-breakpoint><messagerole="user">Would you like to revise your answer?</message><message-breakpointrole="assistant"></message-breakpoint><messagerole="user">Finally, after considering your thoughts, please state just the answer.</message></prompt>

Background

I've built complex pipelines that composed LLMs for generating 'publication quality' datasets.

Here is an example, for generating dictionary datasets.

<promptname="process">
<messagerole="system">
{% iferrors.size>2 %}
You will fix all JSON syntax errors, JSON schema model validation errors, and then compile the corrected JSON dataset.
{% else %}
{{ system_message }}
{% endif %}
</message>
<messagerole="user">{{ instructions }}</message>
{% forerrorinerrors %}
<messagerole="assistant">{{ error.response }}</message>
<messagerole="user">
{{ error.message }}
There is an issue with your compiled JSON object!
</message>
{% endfor %}
{% iferrors.size>0 %}
<messagerole="system">
Follow these instructions:
1. Take heed of the following schema:
{{json_schema}}
2. The task remains: populate the requested JSON object following the provided schema and then return the compiled data.
Hint: we do not want the schema but the data the schema represents.
</message>
{% endif %}
</prompt>

The goal here is to generalize the core ideas I've learned into a reusable, general purpose format.

Tentative DSL

<schemasrc="./schema-1.json" id="schema-1"></schema><promptname="fix-json-object" input:schema="of type Schema" input:json-value="of type String"><setresponse-format="json-object"></set><msgrole="system"><p>You previously returned invalid JSON that does not conform to the expected schema.</p><p>Your task is to fix the syntax and ensure the structure matches the schema exactly.</p><p>⚠️ Only return the **corrected JSON data** — do not include the schema, explanation, or any additional text.</p></msg><msgrole="user"><p>Here is the malformed JSON:</p><pfrom="json-value" format="pretty"></p></msg><msgrole="user"><p>Here is the expected JSON schema:</p><pfrom="schema" format="pretty"></p></msg></prompt><promptname="generate-user-profile" input:schema="of type Schema" input:json-value="of type String"><setresponse-format="json-object"></set><msgrole="system"><p>You are a strict JSON generator. Only return a JSON object conforming to the schema below.</p></msg><msgrole="user"><p>Create a user profile for a new user named Sarah. Include her name, age, and whether she is a
premium member.</p></msg><msgrole="user"><p>Here is the JSON schema:</p><pfrom="schema" format="pretty"></p></msg><breakpointtype="msg"
role="assistant"
verification="schema"></breakpoint></prompt>

Notes:

  • How should I accommodate validation loops? E.g.,
    {% forerrorinerrors %}
    <messagerole="assistant">{{ error.response }}</message>
    <messagerole="user">
    {{ error.message }}
    There is an issue with your compiled JSON object!
    </message>
    {% endfor %}

Other Projects

Legacy GitHub History

Miscellaneous

Ancient

Other Links

Contact

Pinned Loading

  1. SuperSwiftMarkup/SuperSwiftMarkdownPrototypeSuperSwiftMarkup/SuperSwiftMarkdownPrototypePublic

    A Better Markdown UI — Proof Of Concept

    Swift 88 3

  2. SuperSwiftDev/WebCompilerSuperSwiftDev/WebCompilerPublic

    Web Compiling & Bundling For Super Optimized Static Content Publishing On The Web

    Rust

  3. imager-io/imagerimager-io/imagerPublic

    Automated image compression for efficiently distributing images on the web.

    Rust 728 38

  4. imager-io/ffmpeg-dev-rsimager-io/ffmpeg-dev-rsPublic

    Rust - Self Contained FFmpeg Bindings

    C 54 13

  5. web-images-jsweb-images-jsPublic archive

    Safe† - Fast (and Non Blocking)‡ - Dependency free* - MIT License (with no GPL extras) - Image Loading, Resizing, Conversion and Processing

    Rust 4

  6. imager-io/x264-devimager-io/x264-devPublic

    Rust bindings to x264

    Rust 8 3