/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require("react"); const CompLibrary = require("../../core/CompLibrary.js"); const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */ const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; class HomeSplash extends React.Component { render() { const { siteConfig, language = "" } = this.props; const { baseUrl, docsUrl } = siteConfig; const docsPart = `${docsUrl ? `${docsUrl}/` : ""}`; const docUrl = (doc) => `${baseUrl}${docsPart}${doc}`; const SplashContainer = (props) => (
{props.children}
); const Logo = (props) => (
bfc logo
); const ProjectTitle = (props) => (

{props.title} {props.tagline}

); const PromoSection = (props) => (
{props.children}
); const Button = (props) => (
{props.children}
); return (
); } } class Index extends React.Component { render() { const { config: siteConfig, language = "" } = this.props; const { baseUrl } = siteConfig; const Block = (props) => ( ); const Optimising = () => ( {[ { content: "bfc uses traditional compiler techniques to reduce runtime and memory usage.\n\nbfc includes compile-time evaluation, dead code elimination, and constant folding.\n\n[Learn more about optimisations](/docs/optimisations).", image: `${baseUrl}img/racing_car.svg`, imageAlign: "left", title: "a fast compiler for a silly language", }, ]} ); const Overengineered = () => ( {[ { content: "An elaborate IR with position-preserving optimisations.\n\n[Extensive testing](/docs/testing), even testing idempotence and observational equivalence of optimisations.\n\nColoured [code diagnostics](/docs/getting-started#diagnostics) with position highlighting.\n\nGratuitous website.", image: `${baseUrl}img/hammer_wrench.svg`, imageAlign: "right", title: "utterly over-engineered", }, ]} ); return (
); } } module.exports = Index;