The document appears to be code or data that is not easily summarized due to its unstructured nature. It contains various symbols, brackets, and other characters with no clear meaning or context provided.
me
12 years AI
XP “Real World”
C -> C++ -> Java ->
Python -> Ruby ->
Scala -> Clojure
Langs
5.
me
12 years AI
XP “Real World”
C -> C++ -> Java -> * Joy of Clojure
Python -> Ruby -> * Clojure/core
Scala -> Clojure - Clojure
- ClojureScript
Langs Clojure
6.
me
12 years AI
XP
I❤ “Real World”
Java
C -> C++ -> Java -> * Joy of Clojure
Python -> Ruby -> * Clojure/core
Scala -> Clojure - Clojure
- ClojureScript
Langs Clojure
7.
me
12 years AI
XP “Real World”
C -> C++ -> Java -> * Joy of Clojure
Python -> Ruby -> * Clojure/core
Scala -> Clojure - Clojure
- ClojureScript
Langs Clojure
create table COFFEES
(COF_NAMEvarchar(32) NOT NULL,
SUP_ID int NOT NULL,
PRICE numeric(10,2) NOT NULL,
SALES integer NOT NULL,
TOTAL integer NOT NULL,
PRIMARY KEY (COF_NAME),
FOREIGN KEY (SUP_ID) REFERENCES SUPPLIERS
(SUP_ID));
Data
11.
create table COFFEES
(COF_NAMEvarchar(32) NOT NULL,
SUP_ID int NOT NULL,
PRICE numeric(10,2) NOT NULL,
SALES integer NOT NULL,
TOTAL integer NOT NULL,
PRIMARY KEY (COF_NAME),
FOREIGN KEY (SUP_ID) REFERENCES SUPPLIERS
(SUP_ID));
Data
12.
public static voidviewTable(Connection con) throws SQLException {
Statement stmt = null;
String query = "select COF_NAME, SUP_ID, " +
"PRICE, SALES, TOTAL from " +
dbName + ".COFFEES";
try {
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {
String coffeeName = rs.getString("COF_NAME");
int supplierID = rs.getInt("SUP_ID");
float price = rs.getFloat("PRICE");
int sales = rs.getInt("SALES");
int total = rs.getInt("TOTAL");
doPrint(coffeeName, supplierID, price, sales, total);
}
} catch (SQLException e ) {
JDBCTutorialUtilities.printSQLException(e);
} finally {
if (stmt != null) { stmt.close(); }
}
}
13.
public static voidviewTable(Connection con) throws SQLException {
Statement stmt = null;
String query = "select COF_NAME, SUP_ID, " +
"PRICE, SALES, TOTAL from " +
dbName + ".COFFEES";
try {
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {
String coffeeName = rs.getString("COF_NAME");
int supplierID = rs.getInt("SUP_ID");
float price = rs.getFloat("PRICE");
int sales = rs.getInt("SALES");
int total = rs.getInt("TOTAL");
doPrint(coffeeName, supplierID, price, sales, total);
}
} catch (SQLException e ) {
JDBCTutorialUtilities.printSQLException(e);
} finally {
if (stmt != null) { stmt.close(); }
}
}
Data
14.
public static voidviewTable(Connection con) throws SQLException {
Statement stmt = null;
String query = "select COF_NAME, SUP_ID, " +
"PRICE, SALES, TOTAL from " +
dbName + ".COFFEES";
try {
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(query);
while (rs.next()) {
String coffeeName = rs.getString("COF_NAME");
int supplierID = rs.getInt("SUP_ID");
float price = rs.getFloat("PRICE");
int sales = rs.getInt("SALES");
int total = rs.getInt("TOTAL");
doPrint(coffeeName, supplierID, price, sales, total);
}
} catch (SQLException e ) {
JDBCTutorialUtilities.printSQLException(e);
} finally {
if (stmt != null) { stmt.close(); }
}
}
Code
scalar data types
type example java equivalent
string "foo" String
character f Character
regex #"fo*" Pattern
integer 42 Int/Long/BigInteger
double 3.14159 Double
big double 3.14159M BigDecimal
boolean true Boolean
nil nil null
ratio 22/7 N/A
symbol foo, + N/A
keyword :foo, ::foo N/A
32
38.
composite data types
type properties
singly-linked,
list
insert at front
indexed,
vector
insert at rear
map key/value
set key
33
39.
data type literals
type literal
list (1 2 3)
vector [1 2 3]
{:a 100
map
:b 90}
set #{:a :b}
34
function call
semantics: fn call arg
(println "Hello World")
structure: symbol string
list
63
71.
function definition
define a fn fn name
docstring
(defn greet
"Returns a friendly greeting"
[your-name]
(str "Hello, " your-name))
arguments
fn body
64
72.
it's all data
symbol symbol
string
(defn greet
"Returns a friendly greeting"
[your-name]
(str "Hello, " your-name))
vector
list
65
73.
metadata
prefix with ^ class name or
arbitrary map
(defn ^String greet
"Returns a friendly greeting"
[your-name]
(str "Hello, " your-name))
66
74.
code as databenefits
easy to parse
regularity simplifies metaprogramming
data library = metaprogramming library
"language" features are library code
metadata
query-able
Primacy
of
Semantics
I also regard syntactical problems as essentially irrelevant to programming languages at
their present stage ... the urgent task in programming languages is to explore the field
of semantic possibilities.
— Christopher Strachey - “Fundamental Concepts in Programming Languages”
bit-> t e
nibbl
Unit Conversion y
e ab t e
CM->MI
MM->M
eg
me centimeters→shacklesb y
F->IN
gm efeet→meters
ab g a
ramsden-chains→fathoms
>e > minches→meters
IN->Y
yte
F->M
-xa > yards→meters
e t-b -
t e y feet→kilometers
Y->M
y t te
CM->Y
boc
F->MM
yards→centimeters
bit->byte →meters
M->MM
old-british-fathom
CM->M
F->Y
90.
Primacy
of
Syntax
one could say that all semantics is being represented as syntax
... semantics has vanished entirely to be replaced with pure syntax.
— John Shutt - “Primacy of Syntax”
91.
Length Specification - NIST Special Publication 330, 2008 Edition
- Checking the Net Contents of Packaged Goods - NIST 133
Unit of length
Base unit: meter
The meter is the length of the path travelled
by light in vacuum during a time interval of
1/299,792,458 of a second.
1 inch == 0.0254 meters
1 foot == 12 inches
1 yard == 3 feet
92.
Length Specification - NIST Special Publication 330, 2008 Edition
- Checking the Net Contents of Packaged Goods - NIST 133
(unit-of ‘length ::meter
“The meter is the length of the path travelled
by light in vacuum during a time interval of
1/299,792,458 of a second.”
::inch ‘== 0.0254 ::meter
::foot ‘== 12 ::inch
::yard ‘== 3 ::foot )
Primacy
of
Data
Acceptable or not, sir, it is the truth.
— Data - ST:TNG “Coming of Age”
96.
From the DSL
(defunits-oflength ::meter
“The meter is the length of
the path travelled by light in
vacuum during a time interval
of 1/299,792,458 of a second.”
::inch 0.0254
::foot [12 ::inch]
::yard [3 ::foot])
#21 you really want to deal with this code itself\n
#22 runs through pre-processor that substitutes the AST in place\n
#23 * camlp4 is the preprocessor. As a macro system this is actually not bad. \n* I didn’t mention everything (e.g. term-rewriting) \n* But... we came here to talk about...\n
#24 * To understand how Pure works is to understand FOIL\n
#81 * The meaning is king. \n* This is the root of all Turing completeness arguments\n* What is the best “programming language” to describe minderbinder?\n
#85 And what about abbreviations?\n... And what about other kinds of conversions? You see where this is going?\n
#86 And what about abbreviations?\n... And what about other kinds of conversions? You see where this is going?\n
#87 And what about abbreviations?\n... And what about other kinds of conversions? You see where this is going?\n
#88 And what about abbreviations?\n... And what about other kinds of conversions? You see where this is going?\n
#89 And what about abbreviations?\n... And what about other kinds of conversions? You see where this is going?\n
#90 All useful semantics become syntax and some langs include unit conv as syntactic elems. But this tightly couples the semantics with the syntax. People say Lisp has no syntax, but that’s not true. It has a lot of syntax... in fact it has an infinite syntax.\n
#91 If semantics are key then anything that implements the spec is fair game right? The best language is the specification from the manual.\n
#92 It’s all data. This fact lies at the heart of macrology. So I could generate all of those functions as before, BUT maybe there is a better way.\n
#93 what’s the fastest and most efficient way to multiply 2 values?\n