thank you for your comment
134 karma · joined April 25, 2015
# bash 4.0 way to switch to lowercase
ext="${ext,,}"Linux has wider, not better hardware support. If OpenBSD supports some hardware it simply works out of the box and is stable and rock solid.
$items = db("SELECT a,b,c FROM item
JOIN (SELECT id
FROM item
WHERE
<your-where-conditions>
ORDER BY id DESC
LIMIT <offset>, <limit>)
AS x ON
x.id = item.id"); import (
. "fmt"
)
....
// now call function without prefix
Println("Read more docs") ;calculate primes in a range
(define (primes from to)
(local (plist)
(for (i from to)
(if (= 1 (length (factor i)))
(push i plist -1)))
plist))
(set 'start (time-of-day))
; start child processes
(spawn 'p1 (primes 1 1000000))
(spawn 'p2 (primes 1000001 2000000))
(spawn 'p3 (primes 2000001 3000000))
(spawn 'p4 (primes 3000001 4000000))
; wait for a maximum of 60 seconds for all tasks to finish
; returns true if all finished in time
(sync 60000)
; p1, p2, p3 and p4 now each contain a lists of primes
(println "time spawn: " (- (time-of-day) start))
(println "time simple: " (time (primes 1 4000000)))
(exit)https://www.reddit.com/r/PHP/comments/59na74/sqlite_as_the_o...