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
ASCII: Looping 1000 times, length=8 | |
length: 2.787 microseconds | |
is_valid_ascii: 147.612 milliseconds (56000 allocations: 613 MB, 10.18% gc time) | |
Convert to UTF-8: 8.788 microseconds (1000 allocations: 16000 bytes) | |
Convert to UTF-16: 92.011 microseconds (2000 allocations: 109 KB) | |
Convert to UTF-32: 89.666 microseconds (2000 allocations: 125 KB) | |
ASCII:: Looping 1000 times, length=8 | |
UTF-8: 8, UTF-16: 16, UTF-32: 32 |
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
julia> dotest(1000000) | |
Length of string: 0 | |
ASCII reverse: 0.056237 seconds (2.00 M allocations: 91.553 MB, 11.00% gc time) | |
UTF-8 oldreverse: 0.037658 seconds (2.00 M allocations: 91.553 MB, 7.40% gc time) | |
UTF-8 newreverse: 0.003620 seconds | |
UTF-16 reverse: 0.046076 seconds (2.00 M allocations: 91.553 MB, 8.44% gc time) | |
UTF-32 reverse: 0.054243 seconds (2.00 M allocations: 91.553 MB, 6.92% gc time) | |
0.142451 seconds (6.00 M allocations: 274.666 MB, 7.32% gc time) | |
Length of string: 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
ld: warning: ld: warning: ld: warning: ignoring file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++.tbd, missing required architecture x86_64h in file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++.tbdignoring file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++abi.tbd, missing required architecture x86_64h in file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++abi.tbdignoring file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libSystem.tbd, missing required architecture x86_64h in file /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libSystem.tbd | |
Undefined symbols for architecture x86_64h: | |
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
function checked_abs{T<:Signed}(x::T) | |
x == typemin(T) && throw(OverflowError()) | |
abs(x) | |
end | |
function scott_abs{T<:Signed}(x::T) | |
(v = abs(x)) < 0 && throw(OverflowError()) | |
v | |
end | |
function testnoop(n) | |
local v::Int |
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
""" | |
@file snacks.jl | |
@author Scott Paul Jones | |
@copyright 2015 | |
@license MIT | |
@brief Build snack calendar for children, using constraint engine | |
Changes |
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 iconv | |
abstract ByteToUnicode | |
abstract UnicodeToByte | |
function get_table(enc) | |
inp = Vector{UInt8}(1) | |
badbytes = Set{UInt8}() | |
out = Vector{UInt32}(256) | |
cntinv = 0 |
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
22:05 $ julia | |
_ | |
_ _ _(_)_ | A fresh approach to technical computing | |
(_) | (_) (_) | Documentation: http://docs.julialang.org | |
_ _ _| |_ __ _ | Type "?help" for help. | |
| | | | | | |/ _` | | | |
| | |_| | | | (_| | | Version 0.5.0-dev+3301 (2016-03-28 22:55 UTC) | |
_/ |\__'_|_|_|\__'_| | Commit 9066e43 (0 days old master) | |
|__/ | x86_64-apple-darwin15.4.0 |
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
""" | |
@file ScienceFair.jl | |
@author Alex Matthew Jones-Martin | |
@copyright 2016 Gandalf Software, Inc. | |
@brief My science fair project | |
""" | |
module ScienceFair | |
end |
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
Name | Digits | Age | |
---|---|---|---|
Zachary | 2 | 12 | |
Natalie K | 3 | 12 | |
Berla O | 7 | 9 | |
Matt | 7 | 12 | |
Daniel | 7 | 10 | |
Jackson | 5 | 11 | |
Isabella | 7 | 10 | |
Thanos | 7 | 9 | |
Norah H | 2 | 10 |
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
function c1() | |
u = Array{Int}(4,4,3) | |
u[:,:,1] = [1 2 3 4 | |
1 3 3 4 | |
1 5 6 3 | |
5 2 3 1] | |
u[:,:,2] = [1 2 3 4 | |
1 3 3 4 | |
1 5 6 3 |