Skip to content

Instantly share code, notes, and snippets.

View mellinoe's full-sized avatar

Eric Mellino mellinoe

View GitHub Profile
d:\OSS\corefx\src\System.Xml.XPath.XmlDocument\src\System\Xml\XmlDocumentEx.cs(25): error : XPathTests.FunctionalTests.CoreFunctionLibrary.NodeSetFunctionsTests.NodeSetFunctionsTest22100: System.Null
ReferenceException : Object reference not set to an instance of an object. [D:\OSS\corefx\bin\tools\fxbuild.proj]
d:\OSS\corefx\src\System.Xml.XPath.XmlDocument\src\System\Xml\XmlDocumentEx.cs(25): error : at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)\r [D:\OSS\corefx\
bin\tools\fxbuild.proj]
d:\OSS\corefx\src\System.Xml.XPath.XmlDocument\src\System\Xml\XmlDocumentEx.cs(25): error : at System.Xml.XmlDocumentEx.GetNamespaceXml(XmlDocument xmlDocument) in d:\OSS\corefx\src\System.Xml.XPa
th.XmlDocument\src\System\Xml\XmlDocumentEx.cs:line 25\r [D:\OSS\corefx\bin\tools\fxbuild.proj]
d:\OSS\corefx\src\System.Xml.XPath.XmlDocument\src\System\Xml\XmlDocumentEx.cs(25): error : at System.Xml.DocumentXPathNavigator.MoveToNextNamespace(XPathNamespaceScope scope) in d:\OSS\c
@mellinoe
mellinoe / LinearToSRGB_VectorExample.cs
Last active July 15, 2018 01:23
A basic example to show how to vectorize an algorithm
using System;
using System.Diagnostics;
using System.Numerics;
class Program
{
static unsafe void Main(string[] args)
{
Console.WriteLine("Degree of vectorization: " + Vector<float>.Count);
Random rand = new Random();
T[] TripleSum(T[] first, T[] second, T[] third)
{
T[] output = new T[first.Length];
for (int i = 0; i < first.Length; i += Vector<T>.Count)
{
Vector<T> a = new Vector<T>(first, i);
Vector<T> b = new Vector<T>(second, i);
Vector<T> c = new Vector<T>(third, i);
Vector<T> sum = a + b + c;
eric@eric-Blade:~/projects/corefx/src$ $msbuild System.Reflection.Metadata/pkg/System.Reflection.Metadata.pkgproj
Microsoft (R) Build Engine version 14.1.0.0
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/7/2016 11:35:31 AM.
The target "ResolveReferences" listed in a BeforeTargets attribute at "/home/eric/projects/corefx/packages/Microsoft.DotNet.BuildTools.1.0.25-prerelease-00144/lib/FrameworkTargeting.targets (46,7)" does not exist in the project, and will be ignored.
The target "ResolveAssemblyReferences" listed in an AfterTargets attribute at "/home/eric/projects/corefx/packages/Microsoft.DotNet.BuildTools.1.0.25-prerelease-00144/lib/FrameworkTargeting.targets (89,54)" does not exist in the project, and will be ignored.
The target "ResolveReferences" listed in an AfterTargets attribute at "/home/eric/projects/corefx/packages/Microsoft.DotNet.BuildTools.1.0.25-prerelease-00144/lib/PackageLibs.targets (158,11)" does not exist in the project, and will be ignored.
Project "/home/e
Running: /Users/eric/projects/corefx/init-tools.sh
Installing 'https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/1.0.0.001718/dotnet-osx-x64.1.0.0.001718.tar.gz' to '/Users/eric/projects/corefx/Tools/dotnetcli/dotnet.tar'
Running: /Users/eric/projects/corefx/Tools/dotnetcli/bin/dotnet restore "/Users/eric/projects/corefx/Tools/1.0.25-prerelease-00208/project.json" --packages /Users/eric/projects/corefx/packages --source https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
log : Restoring packages for /Users/eric/projects/corefx/Tools/1.0.25-prerelease-00208/project.json...
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools/index.json
info : CACHE https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-buildtools/nuget/v3/flatcontainer/microsoft.dotnet.buildtools/1.0.25-prerelease-00208/microsoft.dotnet.buildtools.1.0.25-prerelease-00208.nupkg
log : Installing Microsoft.DotNet.BuildTools 1.0.25-prer
(lldb) bt all
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.
* thread #1: tid = 0x57ef34b, 0x00007fff86591eb2 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
* frame #0: 0x00007fff86591eb2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fff93322150 libsystem_pthread.dylib`_pthread_cond_wait + 767
frame #2: 0x000000010067c712 libcoreclr.dylib`___lldb_unnamed_function820$$libcoreclr.dylib + 322
frame #3: 0x000000010067c3e3 libcoreclr.dylib`___lldb_unnamed_function819$$libcoreclr.dylib + 515
frame #4: 0x0000000100680f78 libcoreclr.dylib`___lldb_unnamed_function883$$libcoreclr.dylib + 1752
frame #5: 0x0000000100881ed8 libcoreclr.dylib`___lldb_unnamed_function8086$$libcoreclr.dylib + 952
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="dotnet.myget dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" protocolVersion="3" />
<add key="dotnet.myget cli-deps" value="https://dotnet.myget.org/F/cli-deps/api/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
### System.Composition.AttributedModel ###
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>System.Composition.AttributedModel</id>
<version>1.0.31-beta-24223-0</version>
<title>System.Composition.AttributedModel</title>
<authors>Microsoft</authors>
<owners>microsoft,dotnetframework</owners>
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>System.Composition</id>
<version>1.0.31-beta-24223-0</version>
<title>System.Composition</title>
<authors>Microsoft</authors>
<owners>microsoft,dotnetframework</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<licenseUrl>http://go.microsoft.com/fwlink/?LinkId=329770</licenseUrl>
[Benchmark]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Matrix4x4ByValue()
{
Matrix4x4_Local m1 = Matrix4x4_Local.Identity;
Matrix4x4_Local m2 = Matrix4x4_Local.CreateScale(5, 6, 7);
Matrix4x4_Local m3 = Matrix4x4_Local.CreateTranslation(-10, -12, -14);
Matrix4x4_Local m4 = Matrix4x4_Local.CreateFromYawPitchRoll(1.5f, 2.5f, 3.5f);
Matrix4x4_Local result = Matrix4x4_Local.Multiply(m1, m2);
result = Matrix4x4_Local.Multiply(result, m3);