More on Julia!
First
off!
For a test, I stripped out all the SQLite code from my slow
running program and, unscientifically IMHO it’s pretty fast. The
“using sqlite” statement alone takes ~2 seconds. A run for
1,000,000 records, including all the other random # generating stuff
for dates, street address, name prefix/suffix and account mod10 check
for every account # AND writing each record to disk, took 19 seconds.
OK…Next topic!
Wrote a Julia directory processing
program. Very intuitive if you’re familiar with the linux file system
console commands!
OK…Next topic!
Using Python
modules in Julia. Seems straight forward…
HOWEVER IT IS
NOT WORKING FOR ME!!!!
Trying to use the Python Imaging Library
(PIL)
…………. Python ………….
Python
2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0
20160609] on linux2
Type “help”, “copyright”,
“credits” or “license” for more information.
>>>
import Image <<<
success
>>>
<<< No errors!
…………. Julia
………….
julia> ENV[“PYTHON”] =
“/usr/bin/python”
“/usr/bin/python”
julia>
using PyCall
julia> @pyimport Image
ERROR: PyError
(PyImport_ImportModule) <class
‘ModuleNotFoundError’>
ModuleNotFoundError(“No module
named ‘Image'”,) <<<<<<<<<<<
WELL IT’S THERE AS CAN BE SEEN ABOVE!
Stacktrace:
(1)
pyimport(::String) at
/home/bill/.julia/packages/PyCall/rUul9/src/PyCall.jl:486
(2)
top-level scope at
/home/bill/.julia/packages/PyCall/rUul9/src/PyCall.jl:536
julia>
OK…Next and final topic!
Found a way [better than
wall clock] to time program execution!
However it should be
noted that the “canonicalize” command below, as pointed out
on web page I found on this topic, is NOT documented in the 1.0
docs.
— Program Timing —
strTim=now()
println(“Start
“,strTim)
– program code here
—
endTim=now()
println(“End
“,endTim)
unixMs=endTim-strTim
println(“Elapased
“,canonicalize(Dates.CompoundPeriod(unixMs)))