Skip to content

Instantly share code, notes, and snippets.

Nathan Vegdahl cessen

Block or report user

Report or block cessen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cessen
cessen / Rust2018_post.md
Last active Jan 26, 2018
#Rust2018 blog post
View Rust2018_post.md

#Rust2018

This is my contribution to the call for Rust blog posts.

I've been using Rust for various personal projects for quite a while now, and I confess that I have a lot to say about it! In fact, I've already said quite a bit about it before.

My experience with Rust has been overwhelmingly positive, and most of the things I still want (e.g. NLL, const functions, const generic parameters, SIMD intrinsics, etc.) are already well known and being worked on, so it seems silly to repeat them. Therefore, in this post I'm just going to highlight three small-ish things that have been mildly frustrating to me over the last year, but which I haven't seen mentioned recently.

BidirectionalIterator trait

@cessen
cessen / smith_ropey_update.patch
Created Jan 3, 2018
Update Smith to latest Ropey.
View smith_ropey_update.patch
diff --git a/Cargo.toml b/Cargo.toml
index d402e09..70043be 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,5 +9,5 @@ license = "MIT"
[dependencies]
clipboard = "0.1.2"
-ropey = "0.3.0"
+ropey = "0.5"
@cessen
cessen / gist:496fa51132325581c4d1112c9e878326
Created Apr 2, 2016
Warnings in appleseed master from g++ 5.2.1
View gist:496fa51132325581c4d1112c9e878326
In file included from /home/cessen/Projects/appleseed/appleseed/src/appleseed/foundation/math/bvh.h:36:0,
from /home/cessen/Projects/appleseed/appleseed/src/appleseed/renderer/kernel/intersection/curvetree.h:42,
from /home/cessen/Projects/appleseed/appleseed/src/appleseed/renderer/kernel/intersection/assemblytree.h:34,
from /home/cessen/Projects/appleseed/appleseed/src/appleseed/renderer/kernel/intersection/assemblytree.cpp:31:
/home/cessen/Projects/appleseed/appleseed/src/appleseed/foundation/math/bvh/bvh_intersector.h: In member function ‘void foundation::bvh::Intersector<Tree, Visitor, Ray, StackSize, N>::intersect_no_motion(const Tree&, const RayType&, const RayInfoType&, Visitor&) const [with Tree = renderer::CurveTree; Visitor = renderer::CurveLeafVisitor; Ray = foundation::Ray<float, 3ul>; long unsigned int StackSize = 64ul; long unsigned int N = 3ul; foundation::bvh::Intersector<Tree, Visitor, Ray, StackSize, N>::RayType = foundation::Ray<float, 3ul>;
You can’t perform that action at this time.