Skip to content

Instantly share code, notes, and snippets.

View IainNZ's full-sized avatar

Iain Dunning IainNZ

View GitHub Profile
@IainNZ
IainNZ / raytracer.jl
Last active September 17, 2019 06:56
Raytracer in Julia
const delta = sqrt(eps(Float64))
immutable Vec
x::Float64
y::Float64
z::Float64
end
+(a::Vec, b::Vec) = Vec(a.x+b.x, a.y+b.y, a.z+b.z)
-(a::Vec, b::Vec) = Vec(a.x-b.x, a.y-b.y, a.z-b.z)
*(a::Float64, b::Vec) = Vec(a*b.x, a*b.y, a*b.z)
@IainNZ
IainNZ / julep2.md
Last active December 20, 2015 06:29
Julep 2: Package Requirements and Quality Standards
{
"metadata": {
"name": "What is multiple dispatch?"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
# solver.jl
module Solver
export solve
function solve_sub()
y = rand(1000,1000)
for busy = 1:100
y *= 10
y /= 10
@IainNZ
IainNZ / gist:2f32bbf96b5d595ee0fe
Last active August 29, 2015 14:01
[PackageEvaluator.jl] Your package DataFrames may have a testing issue.

This issue is being filed by a script, but if you reply, I will see it.

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their test (if available) on both the stable version of Julia (0.2) and the nightly build of the unstable version (0.3).

The results of this script are used to generate a package listing enhanced with testing results.

The status of this package, DataFrames, on...

pmedian
elapsed time: 0.074902602 seconds
Warning, MPS does not support maximization sense. Flipping objective coefficients.
elapsed time: 0.37340717 seconds
numLoc 1000 buildTime 0.075 writeTime 0.373 totalTime 0.448 MPS
elapsed time: 0.075964869 seconds
Warning, MPS does not support maximization sense. Flipping objective coefficients.
elapsed time: 0.3107861 seconds
numLoc 1000 buildTime 0.076 writeTime 0.311 totalTime 0.387 MPS
cont5
elapsed time: 0.049582814 seconds
elapsed time: 0.328209747 seconds
N 250 buildTime 0.050 writeTime 0.328 totalTime 0.378 MPS
elapsed time: 0.057842824 seconds
elapsed time: 0.323715819 seconds
N 250 buildTime 0.058 writeTime 0.324 totalTime 0.382 MPS
elapsed time: 0.051271069 seconds
elapsed time: 0.330348401 seconds
[idunning@che cont5]$ ./runpulp.sh | tee pulplog.log
N 250 buildTime 4.993 writeTime 1.270 totalTime 6.263 M
N 250 buildTime 5.149 writeTime 1.261 totalTime 6.409 M
N 250 buildTime 4.940 writeTime 1.244 totalTime 6.184 M
N 500 buildTime 18.229 writeTime 4.835 totalTime 23.064 M
N 500 buildTime 17.626 writeTime 4.808 totalTime 22.433 M
N 500 buildTime 18.356 writeTime 4.805 totalTime 23.161 M
N 750 buildTime 39.024 writeTime 12.051 totalTime 51.076 M
Instance parameters
(2.4019123140049112,2.6791717677439486,-8.08507581784363,1.0935793293105867)
[8.02,6.5,20.04]
[80.94,79.15,94.93]
2 180.22
3 201.52
(Array{Any,1},Array{Any,1},Array{Any,1}) ({nothing,[Sample([0.0])],[Sample([0.0,0.0])]},{[1,0]},{1})
Initial solve
Num stubs before feas check: 1

This is an automatic message from MechaJulia, a Julia bot that aims to help maintain Julia and its package ecosystem. If you think there is something wrong with this message, or have ideas for a new feature, please file an issue


  • It looks like you are adding a version 0.0.0, but this is discouraged. Consider tagging a "real" first version like 0.0.1 or, if you feel the package is not ready, encourage testers to obtain it with Pkg.clone