aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/_old/tcpinfodump/main.go35
-rw-r--r--cmd/asbestos/html_templ.go56
-rw-r--r--cmd/asbestos/main.go2
-rw-r--r--cmd/aura/aura_templ.go16
-rw-r--r--cmd/aura/main.go2
-rw-r--r--cmd/hlang/hlang_templ.go48
-rw-r--r--cmd/hlang/http.go2
-rw-r--r--cmd/mi/services/glance/glance.go2
-rw-r--r--cmd/mi/services/glance/glance_templ.go2
-rw-r--r--cmd/mimi/modules/scheduling/scheduling.pb.go308
-rw-r--r--cmd/mimi/modules/scheduling/scheduling.twirp.go1115
-rw-r--r--cmd/mimi/modules/scheduling/scheduling_grpc.pb.go121
-rw-r--r--cmd/nomadicdemo/main.go2
-rw-r--r--cmd/nomadicdemo/main_templ.go2
-rw-r--r--cmd/stickers/main.go2
-rw-r--r--cmd/stickers/main_templ.go2
-rw-r--r--cmd/todayinmarch2020/html_templ.go31
-rw-r--r--cmd/todayinmarch2020/main.go2
-rw-r--r--cmd/within.website/html_templ.go56
-rw-r--r--cmd/within.website/main.go2
-rw-r--r--cmd/xedn/uplodr/pb/uplodr.pb.go190
-rw-r--r--cmd/xedn/uplodr/pb/uplodr_grpc.pb.go27
-rw-r--r--go.mod30
-rw-r--r--go.sum44
-rw-r--r--htmx/htmx.go2
-rw-r--r--htmx/htmx_templ.go17
-rw-r--r--xess/package.json2
-rw-r--r--xess/xess.go2
28 files changed, 1852 insertions, 270 deletions
diff --git a/cmd/_old/tcpinfodump/main.go b/cmd/_old/tcpinfodump/main.go
new file mode 100644
index 0000000..59c4e31
--- /dev/null
+++ b/cmd/_old/tcpinfodump/main.go
@@ -0,0 +1,35 @@
+package main
+
+import (
+ "encoding/json"
+ "fmt"
+ "log"
+ "net"
+
+ "github.com/mikioh/tcp"
+ "github.com/mikioh/tcpinfo"
+)
+
+func main() {
+ c, err := net.Dial("tcp", "golang.org:80")
+ if err != nil {
+ log.Fatal(err)
+ }
+ defer c.Close()
+
+ tc, err := tcp.NewConn(c)
+ if err != nil {
+ log.Fatal(err)
+ }
+ var o tcpinfo.Info
+ var b [256]byte
+ i, err := tc.Option(o.Level(), o.Name(), b[:])
+ if err != nil {
+ log.Fatal(err)
+ }
+ txt, err := json.Marshal(i)
+ if err != nil {
+ log.Fatal(err)
+ }
+ fmt.Println(string(txt))
+}
diff --git a/cmd/asbestos/html_templ.go b/cmd/asbestos/html_templ.go
index 7ac5c03..b1a0818 100644
--- a/cmd/asbestos/html_templ.go
+++ b/cmd/asbestos/html_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.793
+// templ: version: v0.3.857
package main
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -34,11 +34,11 @@ func NotFound() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -63,11 +63,11 @@ func allClear() templ.Component {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>Your data was not found in the dataset. No action is required on your part.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<p>Your data was not found in the dataset. No action is required on your part.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -92,7 +92,7 @@ func Error(why string) templ.Component {
templ_7745c5c3_Var3 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>Oopsie whoopsie uwu we made a fucky-wucky! A widdle fucko boingo! The code monkeys at our headquarters are working VEWY HARD to fix this!</p><p>Reason: ")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<p>Oopsie whoopsie uwu we made a fucky-wucky! A widdle fucko boingo! The code monkeys at our headquarters are working VEWY HARD to fix this!</p><p>Reason: ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -105,11 +105,11 @@ func Error(why string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -134,11 +134,11 @@ func Index() templ.Component {
templ_7745c5c3_Var5 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>TODO placeholder</p><input style=\"display: block\" class=\"form-control\" type=\"search\" name=\"search\" placeholder=\"Begin Typing To Search Users...\" hx-post=\"/search\" hx-trigger=\"input changed delay:500ms, search\" hx-target=\"#search-results\" hx-indicator=\".htmx-indicator\" hx-swap=\"innerHTML\"><br><div id=\"search-results\"></div>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "<p>TODO placeholder</p><input style=\"display: block\" class=\"form-control\" type=\"search\" name=\"search\" placeholder=\"Begin Typing To Search Users...\" hx-post=\"/search\" hx-trigger=\"input changed delay:500ms, search\" hx-target=\"#search-results\" hx-indicator=\".htmx-indicator\" hx-swap=\"innerHTML\"><br><div id=\"search-results\"></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -167,11 +167,11 @@ func headArea() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<style>\n .no-copy {\n -webkit-user-select: none; /* Safari */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Edge */\n }\n </style>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "<style>\n .no-copy {\n -webkit-user-select: none; /* Safari */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Edge */\n }\n </style>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -196,7 +196,7 @@ func footer() templ.Component {
templ_7745c5c3_Var7 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>A product of <a href=\"https://techaro.lol\">Techaro</a> <a href=\"https://bsky.app/profile/techaro.lol\">")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<p>A product of <a href=\"https://techaro.lol\">Techaro</a> <a href=\"https://bsky.app/profile/techaro.lol\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -209,11 +209,11 @@ func footer() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</a>, the only ethical AI company</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "</a>, the only ethical AI company</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -248,7 +248,7 @@ func Layout(title string, body templ.Component) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
@@ -273,12 +273,12 @@ func searchPage(authorDID string, posts []Post) templ.Component {
templ_7745c5c3_Var10 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<table><thead><tr><th>Created at</th><th>Text</th><th>Link</th></tr></thead> <tbody>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "<table><thead><tr><th>Created at</th><th>Text</th><th>Link</th></tr></thead> <tbody>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
for _, post := range posts {
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<tr><td>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 10, "<tr><td>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -291,7 +291,7 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</td><td>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 11, "</td><td>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -304,7 +304,7 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</td><td><a href=\"")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 12, "</td><td><a href=\"")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -313,12 +313,12 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("\">🔗</a></td></tr>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "\">🔗</a></td></tr>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</tbody></table><div id=\"dmca-notice\"><p>Since your data is in this dataset, here's what you can do about it:</p><p>Compose an email to <code>dmca@huggingface.co</code> with the subject line <code>DMCA Takedown Request</code> and something like the following body (rephrase this in your own words):</p><blockquote class=\"no-copy\">Hello,<br><br>I am writing to you to inform you that my data is present in the dataset <a href=\"https://huggingface.co/datasets/bluesky-community/one-million-bluesky-posts\">bluesky-community/one-million-bluesky-posts</a> and I did not consent to it being included. I would like to request that you remove my data from the dataset.<br><br>You can identify my data by searching for the following DID in the <code>author_did</code> column: <code>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "</tbody></table><div id=\"dmca-notice\"><p>Since your data is in this dataset, here's what you can do about it:</p><p>Compose an email to <code>dmca@huggingface.co</code> with the subject line <code>DMCA Takedown Request</code> and something like the following body (rephrase this in your own words):</p><blockquote class=\"no-copy\">Hello,<br><br>I am writing to you to inform you that my data is present in the dataset <a href=\"https://huggingface.co/datasets/bluesky-community/one-million-bluesky-posts\">bluesky-community/one-million-bluesky-posts</a> and I did not consent to it being included. I would like to request that you remove my data from the dataset.<br><br>You can identify my data by searching for the following DID in the <code>author_did</code> column: <code>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -331,7 +331,7 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</code><br><br>Thank you for your attention and patience in this matter.<br><br>Sincerely,<br><br>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</code><br><br>Thank you for your attention and patience in this matter.<br><br>Sincerely,<br><br>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -344,7 +344,7 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(", ")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, ", ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -357,7 +357,7 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<br>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 17, "<br>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -370,7 +370,7 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 18, " ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -392,11 +392,11 @@ func searchPage(authorDID string, posts []Post) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</blockquote><p>For more information, please refer to the <a href=\"https://huggingface.co/datasets/bluesky-community/one-million-bluesky-posts/discussions/12\">dataset page</a>.</p></div>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 19, "</blockquote><p>For more information, please refer to the <a href=\"https://huggingface.co/datasets/bluesky-community/one-million-bluesky-posts/discussions/12\">dataset page</a>.</p></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
diff --git a/cmd/asbestos/main.go b/cmd/asbestos/main.go
index 9ab1f8e..1f99589 100644
--- a/cmd/asbestos/main.go
+++ b/cmd/asbestos/main.go
@@ -15,7 +15,7 @@ import (
"within.website/x/xess"
)
-//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
+//go:generate go tool templ generate
var (
bind = flag.String("bind", ":8069", "http port to bind on")
diff --git a/cmd/aura/aura_templ.go b/cmd/aura/aura_templ.go
index 421d54b..174a3cc 100644
--- a/cmd/aura/aura_templ.go
+++ b/cmd/aura/aura_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.771
+// templ: version: v0.3.857
package main
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime"
func index() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -26,17 +29,20 @@ func index() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p><img src=\"/static/aura.webp\"></p><h2>Archive</h2><ul><li><a href=\"/sleepypony/\">Early DJ Sleepypony sets</a></li><li><a href=\"/BronyRadio/\">Early BronyRadio sets</a></li><li><a href=\"/var/93252527679639552/\">Current PonyvilleFM sets</a></li></ul>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<p><img src=\"/static/aura.webp\"></p><h2>Archive</h2><ul><li><a href=\"/sleepypony/\">Early DJ Sleepypony sets</a></li><li><a href=\"/BronyRadio/\">Early BronyRadio sets</a></li><li><a href=\"/var/93252527679639552/\">Current PonyvilleFM sets</a></li></ul>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func notFound() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -52,11 +58,11 @@ func notFound() templ.Component {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
diff --git a/cmd/aura/main.go b/cmd/aura/main.go
index 4f7a535..c364efd 100644
--- a/cmd/aura/main.go
+++ b/cmd/aura/main.go
@@ -27,7 +27,7 @@ import (
"within.website/x/xess"
)
-//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
+//go:generate go tool templ generate
var (
token = flag.String("token", "", "Token for authentication")
diff --git a/cmd/hlang/hlang_templ.go b/cmd/hlang/hlang_templ.go
index 2155e26..c704085 100644
--- a/cmd/hlang/hlang_templ.go
+++ b/cmd/hlang/hlang_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.731
+// templ: version: v0.3.857
package main
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime"
func navbar() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -26,17 +29,20 @@ func navbar() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<a href=\"/\">The h programming language</a> - <a href=\"/docs\">Docs</a> - <a href=\"/play\">Playground</a> - <a href=\"/faq\">FAQ</a>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<a href=\"/\">The h programming language</a> - <a href=\"/docs\">Docs</a> - <a href=\"/play\">Playground</a> - <a href=\"/faq\">FAQ</a>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func footer() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -52,17 +58,20 @@ func footer() templ.Component {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>From <a href=\"https://xeiaso.net\">Within</a></p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<p>From <a href=\"https://xeiaso.net\">Within</a></p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func homePage() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -78,17 +87,20 @@ func homePage() templ.Component {
templ_7745c5c3_Var3 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p><big>A simple, fast, open-source, complete and safe language for developing modern software for the web</big></p><hr><h2>Example Program</h2><code><pre>h</pre></code><p>Outputs:</p><code><pre>h</pre></code><hr><h2>Fast Compilation</h2><p>h probably compiles hundreds of characters of source per second. I didn't really test how fast it is, but when I was testing it the speed was fast enough that I didn't care to profile it.</p><hr><h2>Safety</h2><p>h is completely memory safe with no garbage collector or heap allocations. It does not allow memory leaks to happen, nor do any programs in h have the possibility to allocate memory.</p><ul><li>No null</li><li>Completely deterministic behavior</li><li>No mutable state</li><li>No persistence</li><li>All functions are pure functions</li><li>No sandboxing required</li></ul><hr><h2>Zero* Dependencies</h2><p>h generates <a href=\"http://webassembly.org\">WebAssembly</a>, so every binary produced by the compiler is completely dependency free save a single system call: <code>h.h</code>. This allows for modern, future-proof code that will work on all platforms.</p><hr><h2>Simple</h2><p>h has a <a href=\"/grammar/h.peg\">simple grammar</a> that gzips to 117 bytes. Creating a runtime environment for h is so trivial just about anyone can do it.</p><hr><h2>Platform Support</h2><p>h supports the following platforms:</p><ul><li>Google Chrome</li><li>Electron</li><li>Chromium Embedded Framework</li><li>Microsoft Edge</li><li>Pa'i</li></ul><hr><h2>International Out of the Box</h2><p>h supports multiple written and spoken languages with true contextual awareness. It not only supports the Latin <code>h</code> as input, it also accepts the <a href=\"http://lojban.org\">Lojbanic</a> <code>'</code> as well. This allows for full 100% internationalization into Lojban should your project needs require it.</p><hr><h2>Testimonials</h2><p>Not convinced? Take the word of people we probably didn't pay for their opinion.</p><ul><li>I don't see the point of this.</li><li>This solves all my problems. All of them. Just not in the way I expected it to.</li><li>Yes.</li><li>Perfect.</li><li>h is the backbone of my startup.</li></ul><hr><h2>Open-Source</h2><p>The h compiler and default runtime are <a href=\"https://github.com/Xe/x/tree/master/cmd/hlang\">open-source</a> free software sent out into the <a href=\"https://creativecommons.org/choose/zero/\">Public Domain</a>. You can use h for any purpose at all with no limitations or restrictions.</p><hr>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "<p><big>A simple, fast, open-source, complete and safe language for developing modern software for the web</big></p><hr><h2>Example Program</h2><code><pre>h</pre></code><p>Outputs:</p><code><pre>h</pre></code><hr><h2>Fast Compilation</h2><p>h probably compiles hundreds of characters of source per second. I didn't really test how fast it is, but when I was testing it the speed was fast enough that I didn't care to profile it.</p><hr><h2>Safety</h2><p>h is completely memory safe with no garbage collector or heap allocations. It does not allow memory leaks to happen, nor do any programs in h have the possibility to allocate memory.</p><ul><li>No null</li><li>Completely deterministic behavior</li><li>No mutable state</li><li>No persistence</li><li>All functions are pure functions</li><li>No sandboxing required</li></ul><hr><h2>Zero* Dependencies</h2><p>h generates <a href=\"http://webassembly.org\">WebAssembly</a>, so every binary produced by the compiler is completely dependency free save a single system call: <code>h.h</code>. This allows for modern, future-proof code that will work on all platforms.</p><hr><h2>Simple</h2><p>h has a <a href=\"/grammar/h.peg\">simple grammar</a> that gzips to 117 bytes. Creating a runtime environment for h is so trivial just about anyone can do it.</p><hr><h2>Platform Support</h2><p>h supports the following platforms:</p><ul><li>Google Chrome</li><li>Electron</li><li>Chromium Embedded Framework</li><li>Microsoft Edge</li><li>Pa'i</li></ul><hr><h2>International Out of the Box</h2><p>h supports multiple written and spoken languages with true contextual awareness. It not only supports the Latin <code>h</code> as input, it also accepts the <a href=\"http://lojban.org\">Lojbanic</a> <code>'</code> as well. This allows for full 100% internationalization into Lojban should your project needs require it.</p><hr><h2>Testimonials</h2><p>Not convinced? Take the word of people we probably didn't pay for their opinion.</p><ul><li>I don't see the point of this.</li><li>This solves all my problems. All of them. Just not in the way I expected it to.</li><li>Yes.</li><li>Perfect.</li><li>h is the backbone of my startup.</li></ul><hr><h2>Open-Source</h2><p>The h compiler and default runtime are <a href=\"https://github.com/Xe/x/tree/master/cmd/hlang\">open-source</a> free software sent out into the <a href=\"https://creativecommons.org/choose/zero/\">Public Domain</a>. You can use h for any purpose at all with no limitations or restrictions.</p><hr>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func docsPage() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -104,17 +116,20 @@ func docsPage() templ.Component {
templ_7745c5c3_Var4 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p><big id=\"comingsoon\">Coming soon...</big></p><script>\n Date.prototype.addDays = function(days) {\n var date = new Date(this.valueOf());\n date.setDate(date.getDate() + days);\n return date;\n }\n\n let date = new Date();\n date = date.addDays(1);\n document.getElementById(\"comingsoon\").innerHTML = \"Coming \" + date.toDateString();\n </script><hr>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "<p><big id=\"comingsoon\">Coming soon...</big></p><script>\n Date.prototype.addDays = function(days) {\n var date = new Date(this.valueOf());\n date.setDate(date.getDate() + days);\n return date;\n }\n\n let date = new Date();\n date = date.addDays(1);\n document.getElementById(\"comingsoon\").innerHTML = \"Coming \" + date.toDateString();\n </script><hr>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func faqPage() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -130,7 +145,7 @@ func faqPage() templ.Component {
templ_7745c5c3_Var5 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<h2>What are the instructions of h?</h2><p>h supports the following instructions:</p><ul><li><code>h</code></li><li><code>'</code></li></ul><p>All valid h instructions must be separated by a space (<code>\\0x20</code> or the spacebar on your computer). No other forms of whitespace are permitted. Any other characters will render your program <a href=\"http://jbovlaste.lojban.org/dict/gentoldra\">gentoldra</a>.</p><h2>How do I install and use h?</h2><p>With any computer running <a href=\"https://golang.org\">Go</a> 1.11 or higher:</p><code><pre>go get -u -v within.website/x/cmd/hlang</pre></code> Usage is simple: <code><pre>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "<h2>What are the instructions of h?</h2><p>h supports the following instructions:</p><ul><li><code>h</code></li><li><code>'</code></li></ul><p>All valid h instructions must be separated by a space (<code>\\0x20</code> or the spacebar on your computer). No other forms of whitespace are permitted. Any other characters will render your program <a href=\"http://jbovlaste.lojban.org/dict/gentoldra\">gentoldra</a>.</p><h2>How do I install and use h?</h2><p>With any computer running <a href=\"https://golang.org\">Go</a> 1.11 or higher:</p><code><pre>go get -u -v within.website/x/cmd/hlang</pre></code> Usage is simple: <code><pre>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -143,17 +158,20 @@ func faqPage() templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</pre></code><h2>What version is h?</h2><p>Version 1.0.1, this will hopefully be the only release.</p><h2>What is the h koan?</h2><p>And Jesus said unto the theologians, \"Who do you say that I am?\"</p><p>They replied: \"You are the eschatological manifestation of the ground of our being, the kerygma of which we find the ultimate meaning in our interpersonal relationships.\"</p><p>And Jesus said \"...What?\"</p><p>Some time passed and one of them spoke \"h\".</p><p>Jesus was enlightened.</p><h2>Why?</h2><p>That's a good question. The following blogposts may help you understand this more:</p><ul><li><a href=\"https://xeiaso.net/blog/the-origin-of-h-2015-12-14\">The Origin of h</a></li><li><a href=\"https://xeiaso.net/blog/formal-grammar-of-h-2019-05-19\">A Formal Grammar of h</a></li></ul><h2>Who wrote h?</h2><p><a href=\"https://xeiaso.net\">Within</a></p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "</pre></code><h2>What version is h?</h2><p>Version 1.0.1, this will hopefully be the only release.</p><h2>What is the h koan?</h2><p>And Jesus said unto the theologians, \"Who do you say that I am?\"</p><p>They replied: \"You are the eschatological manifestation of the ground of our being, the kerygma of which we find the ultimate meaning in our interpersonal relationships.\"</p><p>And Jesus said \"...What?\"</p><p>Some time passed and one of them spoke \"h\".</p><p>Jesus was enlightened.</p><h2>Why?</h2><p>That's a good question. The following blogposts may help you understand this more:</p><ul><li><a href=\"https://xeiaso.net/blog/the-origin-of-h-2015-12-14\">The Origin of h</a></li><li><a href=\"https://xeiaso.net/blog/formal-grammar-of-h-2019-05-19\">A Formal Grammar of h</a></li></ul><h2>Who wrote h?</h2><p><a href=\"https://xeiaso.net\">Within</a></p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func playgroundPage() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -169,10 +187,12 @@ func playgroundPage() templ.Component {
templ_7745c5c3_Var7 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p><small>Unfortunately, Javascript is required to use this page, sorry.</small></p><h2>Program</h2><input id=\"program\" type=\"text\" value=\"h\"> <input onClick=\"runProgram()\" type=\"button\" value=\"Run\"><p id=\"status\"></p><h3>Output</h3><code><pre id=\"output\"></pre></code><h4>AST</h4><code><pre id=\"ast_box\"></pre></code><p>Execution time (nanoseconds): <span id=\"exec_time\"></span></p><script>\n function runProgram() {\n const programData = document.getElementById(\"program\").value;\n const output = document.getElementById(\"output\");\n const astBox = document.getElementById(\"ast_box\");\n const execTime = document.getElementById(\"exec_time\");\n const status = document.getElementById(\"status\");\n\n status.innerHTML = \"submitting to the server...\";\n\n postData(\"/api/playground\", programData)\n .then(function(data) {\n if (data.err != null) {\n status.innerHTML = data.err;\n return;\n }\n\n status.innerHTML = \"success\";\n astBox.innerHTML = data.prog.ast;\n output.innerHTML = data.res.out;\n execTime.innerHTML = data.res.exec_duration;\n })\n .catch(function(error) {\n console.log(error);\n status.innerHTML = error + \". Please try again later?\";\n });\n }\n\n function postData(url = \"\", data = \"h\") {\n return fetch(url, {\n method: \"POST\",\n mode: \"cors\",\n cache: \"no-cache\",\n headers: {\n \"Content-Type\": \"text/plain\",\n },\n referrer: \"no-referrer\",\n body: data,\n }).then(response => response.json());\n }\n </script>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "<p><small>Unfortunately, Javascript is required to use this page, sorry.</small></p><h2>Program</h2><input id=\"program\" type=\"text\" value=\"h\"> <input onClick=\"runProgram()\" type=\"button\" value=\"Run\"><p id=\"status\"></p><h3>Output</h3><code><pre id=\"output\"></pre></code><h4>