Add theming and a 'slick' theme based on Inter and JetBrains Mono
This commit is contained in:
BIN
website/Inter.var.woff2
Normal file
BIN
website/Inter.var.woff2
Normal file
Binary file not shown.
BIN
website/JetBrainsMono-Regular.woff2
Normal file
BIN
website/JetBrainsMono-Regular.woff2
Normal file
Binary file not shown.
199
website/LICENSE
199
website/LICENSE
@@ -1,3 +1,202 @@
|
||||
###########################
|
||||
For Inter (the font):
|
||||
###########################
|
||||
|
||||
Copyright (c) 2016-2020 The Inter Project Authors.
|
||||
"Inter" is trademark of Rasmus Andersson.
|
||||
https://github.com/rsms/inter
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION AND CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
|
||||
###########################
|
||||
For JetBrains Mono (the font):
|
||||
###########################
|
||||
|
||||
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
https://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
||||
|
||||
###########################
|
||||
For Recursive (the font):
|
||||
###########################
|
||||
|
||||
@@ -2,93 +2,13 @@
|
||||
<html lang="en-us">
|
||||
<meta charset="UTF-8">
|
||||
<head>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'Recursive';
|
||||
font-style: oblique 0deg 15deg;
|
||||
font-weight: 300 1000;
|
||||
font-display: swap;
|
||||
src: url(./Recursive.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
:root {
|
||||
--rec-wght: 400;
|
||||
--rec-slnt: 0;
|
||||
--rec-mono: 0;
|
||||
--rec-casl: 0;
|
||||
--rec-csrv: 0;
|
||||
}
|
||||
* {
|
||||
font-variation-settings: "wght" var(--rec-wght),
|
||||
"slnt" var(--rec-slnt),
|
||||
"MONO" var(--rec-mono),
|
||||
"CASL" var(--rec-casl),
|
||||
"CRSV" var(--rec-csrv);
|
||||
}
|
||||
body {
|
||||
max-width: 45em;
|
||||
margin: 1em auto;
|
||||
padding: 0 .62em;
|
||||
font: 1.2em/1.62 'Recursive', sans-serif;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
line-height:1.2;
|
||||
--rec-wght: 700;
|
||||
--rec-casl: 1;
|
||||
--rec-crsv: 1;
|
||||
}
|
||||
h1 {
|
||||
line-height:0.7;
|
||||
font-size: 4em;
|
||||
--rec-wght: 900;
|
||||
--rec-slnt: -15;
|
||||
text-decoration: underline;
|
||||
text-decoration-thickness: 0.4rem;
|
||||
//border-bottom: 0.08em solid;
|
||||
//border-left: 0.1em solid;
|
||||
//display: inline-block;
|
||||
}
|
||||
h2 { font-size: 3em; }
|
||||
h3 { font-size: 1.5em; }
|
||||
h4 { font-size: 1.2em; }
|
||||
i { --rec-slnt: -14; }
|
||||
b { --rec-wght: 600; }
|
||||
.run_container { position: relative; }
|
||||
.editor {
|
||||
font-family: 'Recursive', monospace;
|
||||
font-size: 1rem;
|
||||
--rec-mono: 1;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
height: 7em;
|
||||
letter-spacing: normal;
|
||||
tab-size: 4;
|
||||
}
|
||||
.output {
|
||||
margin-block-start: 1rem;
|
||||
font-family: 'Recursive', monospace;
|
||||
font-size: 1rem;
|
||||
--rec-mono: 1;
|
||||
tab-size: 4;
|
||||
height: 5em;
|
||||
width: 100%;
|
||||
}
|
||||
.run_button {
|
||||
font-family: 'Recursive', sans-serif;
|
||||
font-size: 1em;
|
||||
--rec-wght: 900;
|
||||
--rec-slnt: -15;
|
||||
--rec-casl: 1;
|
||||
--rec-crsv: 1;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
</style>
|
||||
<link id="theme" rel="stylesheet" type="text/css" href="slick.css"/>
|
||||
<!--<link id="theme" rel="stylesheet" type="text/css" href="recursive.css"/>-->
|
||||
</head>
|
||||
<body>
|
||||
<header><h1>Kraken</h1></header>
|
||||
<i>FOSS Fexprs: <a title="Kraken on GitHub" href="https://github.com/limvot/kraken">https://github.com/limvot/kraken</a></i>
|
||||
<button onclick="toggleTheme()" style="float: right;">Swap Theme</button>
|
||||
<br>
|
||||
<h3>Demo:</h3>
|
||||
<div class="run_container">
|
||||
@@ -103,7 +23,7 @@
|
||||
<h3>Concept:</h3>
|
||||
<ul>
|
||||
<li> Minimal, purely functional Kernel/Scheme as core language, with Kernel/Vau calculus inspiration oblivating the need for non-reader macros (<a title="Kernel/Vau calculus thesis" href="https://web.wpi.edu/Pubs/ETD/Available/etd-090110-124904/unrestricted/jshutt.pdf">Kernel/Vau calculus thesis</a>)
|
||||
<li> Partial evaluation to make fexprs fast (my PhD research!)
|
||||
<li> Partial evaluation to make fexprs fast (my PhD research! First paper on <a href="https://arxiv.org/abs/2303.12254">arXiv</a>)
|
||||
<li> Implement Type Systems as Macros (but using Fexprs instead of macros) (<a title="type systems as macros paper 1" href="http://www.ccs.neu.edu/home/stchang/pubs/ckg-popl2017.pdf">paper, up to System Fω</a>) (<a title="type systems as macros paper 2" href="https://www.ccs.neu.edu/home/stchang/pubs/cbtb-popl2020.pdf">second paper, up to dependent types</a>)
|
||||
<li> Use fexprs to bootstrap more complex features, like delimited continuations
|
||||
<li> Use above "type systems as fexprs" to add types and create a statically-typed language on top (with Algebraic Effects using the underlying delimited continuations, etc)
|
||||
@@ -152,6 +72,14 @@
|
||||
document.getElementById(new_output_name).value = "running...\n";
|
||||
Module.callMain(["-C", code]);
|
||||
}
|
||||
function toggleTheme() {
|
||||
let theme = document.getElementById('theme')
|
||||
if (theme.getAttribute("href") == "recursive.css") {
|
||||
theme.setAttribute("href", "slick.css");
|
||||
} else {
|
||||
theme.setAttribute("href", "recursive.css");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript" src="k_prime.js"></script>
|
||||
</body>
|
||||
|
||||
83
website/recursive.css
Normal file
83
website/recursive.css
Normal file
@@ -0,0 +1,83 @@
|
||||
@font-face {
|
||||
font-family: 'Recursive';
|
||||
font-style: oblique 0deg 15deg;
|
||||
font-weight: 300 1000;
|
||||
font-display: swap;
|
||||
src: url(./Recursive.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
:root {
|
||||
--rec-wght: 400;
|
||||
--rec-slnt: 0;
|
||||
--rec-mono: 0;
|
||||
--rec-casl: 0;
|
||||
--rec-csrv: 0;
|
||||
}
|
||||
* {
|
||||
font-variation-settings: "wght" var(--rec-wght),
|
||||
"slnt" var(--rec-slnt),
|
||||
"MONO" var(--rec-mono),
|
||||
"CASL" var(--rec-casl),
|
||||
"CRSV" var(--rec-csrv);
|
||||
}
|
||||
body {
|
||||
max-width: 45em;
|
||||
margin: 1em auto;
|
||||
padding: 0 .62em;
|
||||
font: 1.2em/1.62 'Recursive', sans-serif;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
line-height:1.2;
|
||||
--rec-wght: 700;
|
||||
--rec-casl: 1;
|
||||
--rec-crsv: 1;
|
||||
}
|
||||
h1 {
|
||||
letter-spacing: -0.015em;
|
||||
//line-height:0.2;
|
||||
line-height:0.2;
|
||||
font-size: 4em;
|
||||
--rec-wght: 900;
|
||||
--rec-slnt: -15;
|
||||
text-decoration: underline;
|
||||
text-decoration-thickness: 0.4rem;
|
||||
//border-bottom: 0.08em solid;
|
||||
//border-left: 0.1em solid;
|
||||
//display: inline-block;
|
||||
}
|
||||
h2 { font-size: 3em; }
|
||||
h3 { font-size: 1.5em; }
|
||||
h4 { font-size: 1.2em; }
|
||||
i { --rec-slnt: -14; }
|
||||
b { --rec-wght: 600; }
|
||||
.run_container { position: relative; }
|
||||
.editor {
|
||||
font-family: 'Recursive', monospace;
|
||||
font-size: 1rem;
|
||||
--rec-mono: 1;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
height: 7em;
|
||||
letter-spacing: normal;
|
||||
tab-size: 4;
|
||||
}
|
||||
.output {
|
||||
margin-block-start: 1rem;
|
||||
font-family: 'Recursive', monospace;
|
||||
font-size: 1rem;
|
||||
--rec-mono: 1;
|
||||
tab-size: 4;
|
||||
height: 5em;
|
||||
width: 100%;
|
||||
}
|
||||
.run_button {
|
||||
font-family: 'Recursive', sans-serif;
|
||||
font-size: 1em;
|
||||
--rec-wght: 900;
|
||||
--rec-slnt: -15;
|
||||
--rec-casl: 1;
|
||||
--rec-crsv: 1;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
77
website/slick.css
Normal file
77
website/slick.css
Normal file
@@ -0,0 +1,77 @@
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
font-style: oblique 0deg 10deg;
|
||||
src: url("./Inter.var.woff2?v=3.19") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'JetBrains Mono';
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("./JetBrainsMono-Regular.woff2") format("woff2");
|
||||
}
|
||||
:root {
|
||||
--rec-wght: 400;
|
||||
--rec-slnt: 0;
|
||||
}
|
||||
* {
|
||||
font-variation-settings: "wght" var(--rec-wght),
|
||||
"slnt" var(--rec-slnt);
|
||||
}
|
||||
body {
|
||||
max-width: 45em;
|
||||
margin: 1em auto;
|
||||
padding: 0 .62em;
|
||||
font: 1.2em/1.62 'Inter', sans-serif;
|
||||
}
|
||||
h1, h2, h3, h4 {
|
||||
line-height:1.0;
|
||||
--rec-wght: 700;
|
||||
}
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
--rec-wght: 900;
|
||||
letter-spacing: -0.025em;
|
||||
//--rec-slnt: -15;
|
||||
line-height:0.2;
|
||||
text-decoration: underline;
|
||||
text-decoration-thickness: 0.4rem;
|
||||
//border-bottom: 0.08em solid;
|
||||
//border-left: 0.1em solid;
|
||||
//display: inline-block;
|
||||
}
|
||||
h2 { font-size: 3em; }
|
||||
h3 { font-size: 1.5em; }
|
||||
h4 { font-size: 1.2em; }
|
||||
i { --rec-slnt: -14; }
|
||||
b { --rec-wght: 600; }
|
||||
.run_container { position: relative; }
|
||||
.editor {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 1rem;
|
||||
--rec-mono: 1;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
height: 7em;
|
||||
letter-spacing: normal;
|
||||
tab-size: 4;
|
||||
}
|
||||
.output {
|
||||
margin-block-start: 1rem;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 1rem;
|
||||
--rec-mono: 1;
|
||||
tab-size: 4;
|
||||
height: 5em;
|
||||
width: 100%;
|
||||
}
|
||||
.run_button {
|
||||
font-family: 'Inter', sans-serif;
|
||||
font-size: 1em;
|
||||
--rec-wght: 900;
|
||||
--rec-slnt: -15;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user