From a88d20944fa3186ca0ca3af36ead243726f7079b Mon Sep 17 00:00:00 2001 From: Fadi Shawki Date: Sun, 7 Apr 2024 14:35:40 +0200 Subject: [PATCH] thinking on introduction --- orbitmines.com/src/lib/organizations/temp.ts | 20 +++++----- .../src/lib/paper/layout/Reference.tsx | 39 +++++++++++++------ .../routes/papers/2024.AUniversalLanguage.tsx | 26 +++++++++++-- 3 files changed, 60 insertions(+), 25 deletions(-) diff --git a/orbitmines.com/src/lib/organizations/temp.ts b/orbitmines.com/src/lib/organizations/temp.ts index 3da0ed0..62c92b1 100644 --- a/orbitmines.com/src/lib/organizations/temp.ts +++ b/orbitmines.com/src/lib/organizations/temp.ts @@ -24,15 +24,15 @@ const res = string.split('\n') .replaceAll(/[- ]/g, "_") .toUpperCase(); - // return `${ref}: { - // reference: { - // title: '${title}', - // authors: [${authors.map(author => `{name: '${author}'}`).join(',')}], - // organizations: [${organizations.map(org => `ORGANIZATIONS.${org}`)}], - // year: '${year}', - // link: "${link}" - // }, status: Viewed.VIEWED, viewed_at: "2023, December" - // }` - return `REFERENCES.${ref}`; + return `${ref}: { + reference: { + title: '${title}', + authors: [${authors.map(author => `{name: '${author}'}`).join(',')}], + organizations: [${organizations.map(org => `ORGANIZATIONS.${org}`)}], + year: '${year}', + link: "${link}" + }, status: Viewed.VIEWED, viewed_at: "2023, December" + }` + // return `REFERENCES.${ref}`; }).join(',\n') console.log(res); \ No newline at end of file diff --git a/orbitmines.com/src/lib/paper/layout/Reference.tsx b/orbitmines.com/src/lib/paper/layout/Reference.tsx index 1362456..966fc0d 100644 --- a/orbitmines.com/src/lib/paper/layout/Reference.tsx +++ b/orbitmines.com/src/lib/paper/layout/Reference.tsx @@ -6,6 +6,7 @@ import {Col, Row} from "../../layout/flexbox"; import ORGANIZATIONS, {TOrganization, TProfile} from "../../organizations/ORGANIZATIONS"; import {RowProps} from "../../layout/flexbox/Row"; import CustomIcon from "../../layout/icons/CustomIcon"; +import {or} from "three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements"; export type FootnoteProps = { @@ -62,6 +63,7 @@ export const getFootnotes = (node: ReactNode): JSX.Element[] => { export type ReferenceStyle = { inline?: boolean, simple?: boolean, + render?: ReactNode is?: 'reference' | 'footnote', } export type ReferenceProps = { @@ -90,6 +92,15 @@ export type ReferenceProps = { notes?: { render: () => ReactNode, date: string }[] }; +const RefIcon = ({organization}: {organization: TOrganization}) => { + if (organization?.assets?.icon_png) + return ; + + if (organization?.assets?.icon) + return + + return <> +} export const Reference = (props: { reference?: ReferenceProps, target?: string } & React.HTMLAttributes & RowProps & ReferenceStyle & FootnoteProps) => { const { reference, @@ -98,6 +109,7 @@ export const Reference = (props: { reference?: ReferenceProps, target?: string } simple, inline = false, is = 'reference', + render, index, @@ -105,7 +117,7 @@ export const Reference = (props: { reference?: ReferenceProps, target?: string } ...otherProps } = props; - const { + let { title, subtitle, @@ -123,6 +135,9 @@ export const Reference = (props: { reference?: ReferenceProps, target?: string } notes, } = reference || {}; + if (link) + link = link.replace("https://orbitmines.com", "") + const footnote = () => ( } > - [{index}] + + [ + {index} + {link ? <> + {link.startsWith('https://github.com') ? : <>} + {link.startsWith('/') ? : <>} + : <>} + ] + ) @@ -148,7 +171,7 @@ export const Reference = (props: { reference?: ReferenceProps, target?: string } : _.compact([author ? `${author}.` : author, title ? `"${title}"` : '', journal, year ? `(${year})` : '', pointer]).join(' ') const inline_reference = () => React.createElement(link ? 'a' : 'span', { - ...(link ? { href: link.replace("https://orbitmines.com", ""), target } : {}), + ...(link ? { href: link, target } : {}), children: <> {display} @@ -164,15 +187,7 @@ export const Reference = (props: { reference?: ReferenceProps, target?: string } {React.createElement(link ? 'a' : 'span', { ...(link ? { href: link.replace("https://orbitmines.com", ""), target, className: 'child-mr-2' } : {}), children: <> - {(organizations ?? []).map(organization => { - if (organization?.assets?.icon_png) - return ; - - if (organization?.assets?.icon) - return - - return <> - })} + {(organizations ?? []).map(organization => )} })} diff --git a/orbitmines.com/src/routes/papers/2024.AUniversalLanguage.tsx b/orbitmines.com/src/routes/papers/2024.AUniversalLanguage.tsx index 8ed3fd9..1b83ba9 100644 --- a/orbitmines.com/src/routes/papers/2024.AUniversalLanguage.tsx +++ b/orbitmines.com/src/routes/papers/2024.AUniversalLanguage.tsx @@ -19,7 +19,7 @@ export const A_UNIVERSAL_LANGUAGE: Content = { draft: true, link: 'https://orbitmines.com/papers/a-universal-language', year: "2024", - date: "2024-04-30", + date: "2024-05-31", external: { // TODO // discord: {serverId: '1055502602365845534', channelId: '1190719376085766195', link: () => "https://discord.com/channels/1055502602365845534/1190719376085766195/1190719376085766195"} @@ -46,7 +46,7 @@ const AUniversalLanguage = () => { ...A_UNIVERSAL_LANGUAGE.reference, subtitle: renderable("", (value: any) => <> One Ray to rule them all, One Ray to find them,
One Ray to bring them all, and in the darkness bind them.
Explore a technical deep dive into Rays {} . Accompanied by a simple implementation of . + ...PROFILES.fadi_shawki}], organizations: [ORGANIZATIONS.github]}} />. Accompanied by a simple implementation of . ), pdf: { fonts: [JetBrainsMono], @@ -60,8 +60,28 @@ const AUniversalLanguage = () => { >
- This thing is, in essence, a language to understand inconsistencies. A conceptual framework to make sense of ambiguity: A story of how destructively confusing languages can be. Though to me, most importantly, it is here as infrastructure. Infrastructure for the design and implementation of a . + +
+ + A simple way of phrasing this, is that the concept of a (hyper-/)'Vertex', (hyper-/)'Edge', (hyper-/)'Graph', (hyper-/)'Rule', (hyper-/)'Tactic', (hyper-/)..., (hyper-/)'Rewrite' are merged into one thing: a Ray. It handles surrounding context, ignorances, equivalences, ..., differentiation (And if it cannot, then it offers a way of implementing it for all of the above). + +
+ + Though quite importantly, even if those previous words are complete nonsense to you: Either this, or projects following from this, will aid in your understanding. This is the start of a story which will provide infrastructure for communication between all sciences, (programming) languages, compilers, interfaces, ..., videogames. + +
+ + Let me show you how.