diff --git a/1_zapiski_g1smo.html b/1_zapiski_g1smo.html new file mode 100644 index 0000000..8f8ff01 --- /dev/null +++ b/1_zapiski_g1smo.html @@ -0,0 +1,359 @@ + + + + + + + +Zapiski #1 srečanja programerskega bralnega krožka SICP + + + + + +
+

Zapiski #1 srečanja programerskega bralnega krožka SICP

+
+

Table of Contents

+ +
+ +
+

1. Zanimivi izseki

+
+
+
+

1.1. str. 9

+
+
+

+Every reader should ask himself periodically "Toward what end, toward what end?" — but do not ask it too often lest you pass up the fun of programming for the constipation of bittersweet philosophy. +

+
+ +
+

+Lisp is a survivor, having been in use for about a quarter of a century. +

+
+
+
+
+

1.2. str. 11

+
+
+

+It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures. +

+
+
+
+
+

1.3. str. 18

+
+
+

+Thus, programs must be written for people to read, and only incidentally for machines to execute. +

+
+
+
+
+

1.4. str. 19

+
+
+

+Underlying our approach to this subject is our conviction that "computer science" is not a science and that its significance has little to do with computers. +

+
+
+
+
+

1.5. str. 27

+
+
+

+Finally, we would like to acknowledge the support of the organizations that have encouraged this work over the years, including support from Hewlett-Packard, made possible by Ira Goldstein and Joel Birnbaum, and support from DARPA, made possible by Bob Kahn. +

+
+ +

+Bob Kahn je mdr. soavtor protokolov TCP in IP, pionir omreževanja. V DARPA postal kasneje direktor IPTO (Informational Processing Techniques Office), kjer je ustanovil milijardo-dolarski projekt Strategic Copmuting Initiative, največjo investicijo ameriške federalne vlade v računalništvo ever ('83 do '93) - razvijali so proizvodnjo čipov in umetne inteligence. Ustrašili so se japoncev, podobno kot v 50ih sovjetov. +

+ +

+Po DARPA ustanovil CNRI (corporation for national research initiatives), neprofitno organizacijo kjer je delal tudi guido van rossum (avtor pythona). Tam so izdali python verzije 1.3 do 1.6 ter GNU mailman. +

+ +

+Preko očeta v sorodu s fizikom Hermanom Kahnom, ki je napisal knjigo o tem kako bi amerika lahko zmagala nuklearno vojno in postal inspiracija za dr. Strangelove-a v znanem Kubrickovem filmu. Ustanovil je Hudson institut, konzervativni think tank ki je začel pri premišljevanju hladnovojnih scenarijev in se razširil na polja ekonomije, zdravstva, šolstva in gemblanja. Delal je tudi v RAND korporaciji, močnem hladnovojnem inštitutu, vpletenem v vietnamsko vojno, iraško vojno, danes pa kuri "AI apokaliptični" scenarij. +

+
+
+ +
+

1.6. str. 77

+
+

+Stoy 1977 +

+
+
+
+
+

2. Vaje

+
+
+
+

2.1. 1.1 Kaj vrnejo izrazi?

+
+
+

2.2. 1.2 Pretvori izraz v prefix obliko

+
+
+
(/ (+ 5 4
+      (- 2
+         (- 3
+            (+ 6
+               1/3))))
+   (* 3
+      (- 6 2)
+      (- 2 7)))
+
+
+ +
+-43/180
+
+
+
+
+

2.3. 1.3 procedura, ki prejme 3 argumente in vrne vsoto kvadratov vecjih dveh

+
+
+
(define (vsota-vecjih-kvadratov a b c)
+  (cond ((<= a b c) (+ (* b b) (* c c)))
+        ((<= b a c) (+ (* a a) (* c c)))
+        (else (+ (* b b) (* a a)))))
+
+(vsota-vecjih-kvadratov 6 1 7)
+
+
+ +
+85
+
+
+
+
+

2.4. 1.4

+
+
+
+ + diff --git a/1_zapiski_g1smo.org b/1_zapiski_g1smo.org new file mode 100644 index 0000000..da14a0f --- /dev/null +++ b/1_zapiski_g1smo.org @@ -0,0 +1,66 @@ +#+TITLE: Zapiski #1 srečanja programerskega bralnega krožka SICP + +* Zanimivi izseki +** str. 9 +#+BEGIN_QUOTE +Every reader should ask himself periodically "Toward what end, toward what end?" — but do not ask it too often lest you pass up the fun of programming for the constipation of bittersweet philosophy. +#+END_QUOTE + +#+begin_quote +Lisp is a survivor, having been in use for about a quarter of a century. +#+end_quote +** str. 11 +#+begin_quote +It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures. +#+end_quote +** str. 18 +#+begin_quote +Thus, programs must be written for people to read, and only incidentally for machines to execute. +#+end_quote +** str. 19 +#+begin_quote +Underlying our approach to this subject is our conviction that "computer science" is not a science and that its significance has little to do with computers. +#+end_quote +** str. 27 +#+begin_quote +Finally, we would like to acknowledge the support of the organizations that have encouraged this work over the years, including support from Hewlett-Packard, made possible by Ira Goldstein and Joel Birnbaum, and support from DARPA, made possible by Bob Kahn. +#+end_quote + +Bob Kahn je mdr. soavtor protokolov TCP in IP, pionir omreževanja. V DARPA postal kasneje direktor IPTO (Informational Processing Techniques Office), kjer je ustanovil milijardo-dolarski projekt Strategic Copmuting Initiative, največjo investicijo ameriške federalne vlade v računalništvo ever ('83 do '93) - razvijali so proizvodnjo čipov in umetne inteligence. Ustrašili so se japoncev, podobno kot v 50ih sovjetov. + +Po DARPA ustanovil CNRI (corporation for national research initiatives), neprofitno organizacijo kjer je delal tudi guido van rossum (avtor pythona). Tam so izdali python verzije 1.3 do 1.6 ter GNU mailman. + +Preko očeta v sorodu s fizikom Hermanom Kahnom, ki je napisal knjigo o tem kako bi amerika lahko zmagala nuklearno vojno in postal inspiracija za dr. Strangelove-a v znanem Kubrickovem filmu. Ustanovil je Hudson institut, konzervativni think tank ki je začel pri premišljevanju hladnovojnih scenarijev in se razširil na polja ekonomije, zdravstva, šolstva in gemblanja. Delal je tudi v RAND korporaciji, močnem hladnovojnem inštitutu, vpletenem v vietnamsko vojno, iraško vojno, danes pa kuri "AI apokaliptični" scenarij. + +** str. 77 +Stoy 1977 +* Vaje +** 1.1 Kaj vrnejo izrazi? +** 1.2 Pretvori izraz v prefix obliko +#+begin_src scheme :exports both + (/ (+ 5 4 + (- 2 + (- 3 + (+ 6 + 1/3)))) + (* 3 + (- 6 2) + (- 2 7))) +#+end_src + +#+RESULTS: +: -43/180 +** 1.3 procedura, ki prejme 3 argumente in vrne vsoto kvadratov vecjih dveh + +#+begin_src scheme :exports both + (define (vsota-vecjih-kvadratov a b c) + (cond ((<= a b c) (+ (* b b) (* c c))) + ((<= b a c) (+ (* a a) (* c c))) + (else (+ (* b b) (* a a))))) + + (vsota-vecjih-kvadratov 6 1 7) +#+end_src + +#+RESULTS: +: 85 +** 1.4 diff --git a/README.org b/README.org new file mode 100644 index 0000000..c8ff003 --- /dev/null +++ b/README.org @@ -0,0 +1,18 @@ +#+TITLE: Programerski Bralni Krožek Kompot #1 SICP + +Beremo Structure and Interpretation of Computer Programs. + +Za bralni krožek se dogovarjamo prek (javne) mailing liste, na katero se lahko prijavite na https://liste.kompot.si/postorius/lists/bralni.kompot.si/ + +Za izgradnjo HTML strani, v emacsu evalviraš spodnjo kodo (~C-c C-c~). + +#+begin_src emacs-lisp + (setq org-html-postamble nil) + (find-file "index.org") + (org-html-export-to-html) + (previous-buffer) + (print "Sajt izgrajen!") +#+end_src + +#+RESULTS: +: Sajt izgrajen! diff --git a/index.html b/index.html new file mode 100644 index 0000000..9c301db --- /dev/null +++ b/index.html @@ -0,0 +1,251 @@ + + + + + + + +Kompotov programerski bralni krožek + + + + + + +
+

Kompotov programerski bralni krožek

+ +
+

Kompotov programerski bralni krožek #1: SICP

+
+

+Beremo Structure and Interpretation of Computer Programs. +Za bralni krožek se dogovarjamo prek (javne) mailing liste, na katero se lahko prijavite na https://liste.kompot.si/postorius/lists/bralni.kompot.si/ +

+ + +
+

tb.jpg +

+
+
+
+ +
+

Srečanja

+
+
+
+

#1: sreda, 17. 4. 2024 18.45 v CTK

+
+

+Beremo uvod in do poglavja 1.2, približno 30 strani. +

+ +

+Link do dogodka na dogodki.kompot.si. +

+
+ +
+

zapiski

+
+ + + +

+Izvorna koda se nahaja na git.kompot.si. +

+
+
+
+
+
+ + diff --git a/index.org b/index.org new file mode 100644 index 0000000..d272f30 --- /dev/null +++ b/index.org @@ -0,0 +1,23 @@ + +#+TITLE: Kompotov programerski bralni krožek +#+OPTIONS: toc:nil num:nil html5-fancy:t +#+HTML_HEAD: + +* Kompotov programerski bralni krožek #1: SICP + +Beremo [[https://en.wikipedia.org/wiki/Structure_and_Interpretation_of_Computer_Programs][Structure and Interpretation of Computer Programs]]. +Za bralni krožek se dogovarjamo prek (javne) mailing liste, na katero se lahko prijavite na https://liste.kompot.si/postorius/lists/bralni.kompot.si/ + +[[file:./tb.jpg]] + +* Srečanja +** #1: sreda, 17. 4. 2024 18.45 v CTK +Beremo uvod in do poglavja 1.2, približno 30 strani. + +Link do [[https://dogodki.kompot.si/events/76672075-1c6f-48f1-bc37-05dde93371e50w][dogodka na dogodki.kompot.si]]. + +*** zapiski +- [[file:1_zapiski_g1smo.org][g1smo]] + + +Izvorna koda se nahaja na [[https://git.kompot.si/programerski-bralni-krozek/sicp][git.kompot.si]]. diff --git a/sicp.html b/sicp.html new file mode 100644 index 0000000..a2ce7c2 --- /dev/null +++ b/sicp.html @@ -0,0 +1,355 @@ + + + + + + + +Kompotov Programerski Bralni Krožek Kompot + + + + + + +
+

Kompotov Programerski Bralni Krožek Kompot

+

+Beremo Structure and Interpretation of Computer Programs. +

+ +

+SICP cover +

+ +
+

Srečanja

+
+
+

1. del (do poglavja 1.2)

+
+
+
+

Zanimivi izseki

+
+
+
+

str. 9

+
+
+

+Every reader should ask himself periodically "Toward what end, toward what end?" — but do not ask it too often lest you pass up the fun of programming for the constipation of bittersweet philosophy. +

+
+ +
+

+Lisp is a survivor, having been in use for about a quarter of a century. +

+
+
+
+
+

str. 11

+
+
+

+It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures. +

+
+
+
+
+

str. 18

+
+
+

+Thus, programs must be written for people to read, and only incidentally for machines to execute. +

+
+
+
+
+

str. 19

+
+
+

+Underlying our approach to this subject is our conviction that "computer science" is not a science and that its significance has little to do with computers. +

+
+
+
+
+

str. 27

+
+
+

+Finally, we would like to acknowledge the support of the organizations that have encouraged this work over the years, including support from Hewlett-Packard, made possible by Ira Goldstein and Joel Birnbaum, and support from DARPA, made possible by Bob Kahn. +

+
+ +

+Bob Kahn je mdr. soavtor protokolov TCP in IP, pionir omreževanja. V DARPA postal kasneje direktor IPTO (Informational Processing Techniques Office), kjer je ustanovil milijardo-dolarski projekt Strategic Copmuting Initiative, največjo investicijo ameriške federalne vlade v računalništvo ever ('83 do '93) - razvijali so proizvodnjo čipov in umetne inteligence. Ustrašili so se japoncev, podobno kot v 50ih sovjetov. +

+ +

+Po DARPA ustanovil CNRI (corporation for national research initiatives), neprofitno organizacijo kjer je delal tudi guido van rossum (avtor pythona). Tam so izdali python verzije 1.3 do 1.6 ter GNU mailman. +

+ +

+Preko očeta v sorodu s fizikom Hermanom Kahnom, ki je napisal knjigo o tem kako bi amerika lahko zmagala nuklearno vojno in postal inspiracija za dr. Strangelove-a v znanem Kubrickovem filmu. Ustanovil je Hudson institut, konzervativni think tank ki je začel pri premišljevanju hladnovojnih scenarijev in se razširil na polja ekonomije, zdravstva, šolstva in gemblanja. Delal je tudi v RAND korporaciji, močnem hladnovojnem inštitutu, vpletenem v vietnamsko vojno, iraško vojno, danes pa kuri "AI apokaliptični" scenarij. +

+
+
+ +
+

str. 77

+
+

+Stoy 1977 +

+
+
+
+
+

Vaje

+
+
+
+

1.1 Kaj vrnejo izrazi?

+
+
+

1.2 Pretvori izraz v prefix obliko

+
+
+
(/ (+ 5 4
+      (- 2
+         (- 3
+            (+ 6
+               1/3))))
+   (* 3
+      (- 6 2)
+      (- 2 7)))
+
+
+ +
+-43/180
+
+
+
+
+

1.3 procedura, ki prejme 3 argumente in vrne vsoto kvadratov vecjih dveh

+
+
+
(define (vsota-vecjih-kvadratov a b c)
+  (cond ((<= a b c) (+ (* b b) (* c c)))
+        ((<= b a c) (+ (* a a) (* c c)))
+        (else (+ (* b b) (* a a)))))
+
+(vsota-vecjih-kvadratov 6 1 7)
+
+
+ +
+85
+
+
+
+
+

1.4

+
+
+
+
+
+

Author: Yuri

+

Created: 2024-04-19 pet 01:55

+

Validate

+
+ + diff --git a/style.css b/style.css new file mode 100644 index 0000000..2b74746 --- /dev/null +++ b/style.css @@ -0,0 +1,48 @@ +body { + padding: 1.5rem; + font-family: sans; +} +h1 { + display: none; +} +a { + color: #267CB9; + font-weight: bold; +} +p { + margin: .25rem 0 .5rem; +} +.figure { + padding: 0; +} +.figure p { + text-align: left; +} +.header a { + font-size: 20px; + font-weight: bold; +} + +#content { + margin-top: 3rem; + max-width: 50em; +} + +img { + width: 100%; +} + +@media screen and (min-width: 960px) { + .footer { + bottom: 0; + } +} + +@media screen and (max-width: 960px) { + .outline-2 { + clear: both; + } + img { + margin-bottom: 2rem; + } +} diff --git a/tb.jpg b/tb.jpg new file mode 100644 index 0000000..b2cd3e5 Binary files /dev/null and b/tb.jpg differ