This file has been truncated, but you can view the full file.
This file contains 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
! Using GVN | |
t "print-mr" set | |
t "print-checks" set | |
"math.vectors.simd" test | |
Unit Test: { | |
[ V{ float } ] | |
[ [ { float-4 } declare norm-sq ] final-classes ] | |
} | |
Unit Test: { |
This file contains 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
def benchmarks(infile): | |
bms = (line.split() for line in open(infile)) | |
return {bm:float(secs) for bm, secs in bms} | |
lvn = benchmarks('lvn.bench') | |
gvn = benchmarks('gvn.bench') | |
def diff(bm): | |
return 100 * (gvn[bm] - lvn[bm]) / lvn[bm] |
This file contains 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
USING: assocs fry io io.encodings.utf8 io.files kernel | |
path-finding regexp sequences splitting tools.crossref vocabs | |
vocabs.hierarchy vocabs.loader ; | |
IN: circular-dependencies | |
: vocab-source-code ( vocab -- str ) | |
vocab-source-path [ utf8 file-contents ] [ "" ] if* ; | |
: using-line ( source -- vocabs ) | |
R/ USING: [^;]* ;/s all-matching-subseqs ?first |
This file contains 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
: fib ( a -- b b ) | |
{ fixnum } declare [ 0 1 ] dip [ [ + ] keep swap >fixnum ] times ; | |
After tweaking ##parallel-copy live-ranges, we get the following out-of-SSA CFG (I've taken the liberty of renaming the vregs per the leader-map): | |
=== word: fib, label: fib | |
=== Basic block #0 | |
##safepoint |
This file contains 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
source 'http://rubygems.org' | |
gem 'activesupport', '4.2.4' | |
gem 'stackprof' | |
gem 'fast_blank', require: false |
This file contains 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
source 'https://rubygems.org' | |
gem 'minitest', group: :test | |
gem 'goliath', | |
git: '[email protected]:postrank-labs/goliath.git', | |
ref: '1aeb2ae7e6d95a79897fda8d65bcdd4318336c53' | |
gem 'em-http-request' # required, but not declared...? |
This file contains 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
2.7.1 |
This file contains 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
require 'bundler/inline' | |
gemfile { gem 'honeycomb-beeline', source: 'https://rubygems.org' } | |
### Configuration ############################################################## | |
# | |
# We look at the event for the `app.drop` field. If true, we drop the event. If | |
# false, we keep the event. We'll then look at how adding the `app.drop` field | |
# in different ways to different spots affects the overall trace. | |
# | |
################################################################################ |
This file contains 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
defmodule Algorithm do | |
@enum ~w[forwarded x-forwarded-for x-client-ip x-real-ip] | |
@mapset MapSet.new(@enum) | |
def using_enum(input) do | |
Enum.filter(input, &Enum.member?(@enum, &1)) | |
end | |
def using_mapset(input) do | |
Enum.filter(input, &MapSet.member?(@mapset, &1)) |