[ / / / / / / / / ] [ b / news+ / boards ] [ operate / meta ] [ ]

/templeos/ - The 64-Bit Temple Operating System

Discuss God and Code.

Catalog

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
dicesidesmodifier
Password (For file and post deletion.)

Allowed file types: jpg, jpeg, gif, png, webm, mp4
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 1 per post.


File: 1423946043541.gif (29.15 KB, 143x128, 143:128, 1412388670728.gif)

 No.32

here i'll start:
(defun gcd (a b)
(let (tmp)
(if (= b 0)
a
(gcd b (mod a b))))

 No.33

>>32
damn i fucked up:
(defun gcd (a b)
"greatest common divisor of a and b"
(if (= b 0)
a
(gcd b (mod a b))))

;; non-recursive version:
;; (defun gcd (a b)
;; (let (tmp)
;; (while (/= b 0)
;; (setq tmp (mod a b)
;; a b
;; b tmp))
;; a))

 No.37

>>32
>>33
Not HolyC
>>/out/

 No.38

>>33
I'm not really interested. TempleOS is 80,000 lines of code. Perhaps LISP could go in the remaining 20,000. A lot of people like functional languages. Perhaps, they would be good for video game A.I. opponents. I don't really know enough. I don't see anything wonderful – just trick problems that happen to work.

 No.51

i said post your favorite algorithms, why should they be in holyC? i never said add lisp to templeos, i said post your favorite algorithms.

 No.52

i said post your favorite algorithms, why should they be in holyC? i never said add lisp to templeos, i said post your favorite algorithms.

 No.53

>>52
I was the first person to factor to cubic root in magic pairs.

http://www.templeos.org/Wb/Demo/MagicPairs.html#l1



Delete Post [ ]
[]
[Return][Go to top][Catalog]
[ / / / / / / / / ] [ b / news+ / boards ] [ operate / meta ] [ ]