This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[36mINFO[0m] Entry point EntryPoint { name: "main", execution_model: Vertex, work_group_size: WorkGroupSize { x: 0, y: 0, z: 0 } } | |
[[32mDEBUG[0m] SPIRV-Cross generated shader: | |
#include <metal_stdlib> | |
#include <simd/simd.h> | |
using namespace metal; | |
struct u_locals | |
{ | |
packed_float3 model_offs; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![cfg_attr(test, feature(rustc_private))] | |
use std::cell::UnsafeCell; | |
use std::marker::PhantomData; | |
use std::ops; | |
struct InvariantLifetime<'id>( | |
PhantomData<*mut &'id ()>); | |
impl<'id> InvariantLifetime<'id> { | |
#[inline] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build instructions | |
# Build initial libraries | |
cargo build --release | |
# Build executable as I have been doing. | |
#HASH = insert hash here \ | |
rustc src/lib.rs --crate-name libcukoo --crate-type bin \ | |
-C target-cpu=native -C prefer-dynamic -C opt-level=3 \ | |
-C metadata=$HASH -C extra-filename=-$HASH --out-dir ./target/release \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::ffi::OsStr; | |
use std::process::Command; | |
use std::borrow::Cow; | |
use std::convert::Into; | |
pub fn exec_slurp<'a>(cmd: &'a str, args: &[&OsStr]) -> Cow<'a, str> { | |
println!("exec_slurp({}, {:?})", cmd, args); | |
Command::new(cmd) | |
.args(args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The code below results in an error message I do not understand. | |
// | |
// This code is a Rust port of some F# code. Specifically, this: | |
// | |
// https://github.com/ericsink/LSM | |
// | |
// The snippet below has been pared down a lot to approximately | |
// the minimum necessary to retain the confusing error message. | |
// | |
// In general, the problem area seems to be the fact that I am |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(core)] | |
macro_rules! inherit { | |
{ | |
$(#[$flag_struct:meta])* struct $child:ident : $parent:ty { | |
$($(#[$flag_field:meta])* $field:ident: $ty:ty),* | |
} | |
} => { | |
extern crate core; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Char | |
import Dict | |
import Dict (Dict) | |
-- import Graphics.Element (..) | |
-- import Graphics.Input.Field as Field | |
-- import Graphics.Input (..) | |
import Html | |
import Html (..) | |
import Html.Attributes (..) | |
import Html.Events (..) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(optin_builtin_traits,unsafe_destructor)] | |
pub mod recursive_mutex { | |
#![allow(unstable)] | |
use std::cell::UnsafeCell; | |
use std::sync::Semaphore; | |
use std::sync::atomic::{AtomicUsize, Ordering}; | |
use std::thread::Thread; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::default::Default; | |
use std::num::Zero; | |
use std::slice::MutItems; | |
pub struct Matrix<T> { | |
values: Vec<T>, | |
rows: uint, | |
columns: uint, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use list::Node; | |
mod list { | |
use std::mem; | |
#[derive(Show)] | |
pub struct Node<T> { | |
pub data: T, | |
prev: Option<Box<Node<T>>>, | |
next: Option<Box<Node<T>>> |
NewerOlder