Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Optimize Your Loops

Name: FrozenVoid 2009-06-26 15:57

replace i%x=0 by i&x=0

Name: Anonymous 2009-06-26 16:01

lol assignment

Name: Anonymous 2009-06-26 16:10

LOLOLOLOL OP

Name: Anonymous 2009-06-26 16:41

Prelude Data.Bits> length [(a, b) | a <- [1..100], b <- [1..100], a `mod` b /= a .&. b]
8713

Name: Anonymous 2009-06-26 16:49

>>4
Presumably, it doesn't matter when they're different, if they always agree when one is zero.

Name: FrozenVoid 2009-06-26 17:18

>>1
Interesting,way too many false positives.
However this doesn't matter in some display loops, and i'm integrating it into next version of integsearch.c


______________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-26 17:25

>>4
(let ((limit 5))
    (let loop ((a limit)
               (b limit))
      (let ((x (bitwise-and a b))
            (y (modulo a b)))
        (cond ((= -1 a) #t)
              ((= 1 b) (loop (- a 1) limit))
              ((= 0 x) (if (= 0 y) (loop a (- b 1)) (list a b)))
              (else (loop a (- b 1)))))))

(5 2)

Name: FrozenVoid 2009-06-26 17:34

I've optimized it so only uses ints with 1bits set: like parseInt('111111...',2)
which works as good as %



___________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-26 17:37

>>6
Hey, why are frozenvoid still here? Stop infecting /prog/, javascript scum!

Name: FrozenVoid 2009-06-26 17:39

>>8 JavaScript is still better then your Toy-Language-of-The-Week

_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-26 18:14

>>10
Javascript was supposed to be scheme. Sorry you failed again.

Name: Anonymous 2009-06-26 18:43

Loop my anus

Name: Anonymous 2009-06-27 10:51

I'm happier with FV than with the bumble /b/s

At least he has char

Name: Anonymous 2009-06-27 12:04

At least he is invisible

Name: Anonymous 2009-06-27 13:39

>>14
like ur penis

Name: Anonymous 2009-06-27 13:43

>>15
Don't be silly. Women don't visit this board.

Name: Anonymous 2009-06-27 14:20

>>13
SPOILERS:/b/s are still there. A big /b/unch of them will probably infest this board even after summer ends.
>>10
>>8 JavaScript is still better then your Toy-Language-of-The-Week
then
Traceback (most recent call last):
  File "<
/prog/>", line 1, in <module>
    then
NameError: expected 'than'

Name: FrozenVoid 2009-06-27 16:42

>>17
``then'' is better then ``than''



_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-27 19:24

>>18
``then'' is better then ``than''
Traceback (most recent call last):
  File "<
/prog/>", line 1, in <module>
    then
NameError: expected 'than'

Name: Anonymous 2009-06-27 20:36

then:
subsequently or soon afterward (often used as sentence connectors); "then he left"; "go left first, then right"; "first came lightning, then thunder"; "we watched the late movie and then went to bed"; "and so home and to bed"
in that case or as a consequence; "if he didn't take it, then who did?"; "keep it then if you want to"; "the case, then, is closed"; "you've made up your mind then?"; "then you'll be rich"
at that time; "I was young then"; "prices were lower back then"; "science as it was then taught"
that time; that moment; "we will arrive before then"; "we were friends from then on"
then(a): at a specific prior time; "the then president"


than:
introduces a comparison, and is associated with comparatives

Name: FrozenVoid 2009-06-27 20:41

>>20
I'm a huge fucking faggot who doesn't know shit about the English language.


_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-27 21:07

>>21
agreed

Name: Anonymous 2009-06-27 21:08

>>21
I concur.

Name: FrozenVoid 2009-06-27 21:32

Fine than.
``than'' is better then ``than''



_____________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: FrozenVoid 2009-06-28 1:55

I see both the trolls and grammar nazis don't have a clue.
I use "then" because its phonetically identical to its pronunciation unlike "t'an".
Your English "rules" isn't my guiding principle.

_________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-28 2:12

>>25
phonetically identical
We do not speak here, we write and read. Your point is, uhm, void.

Name: FrozenVoid 2009-06-28 2:18

>>26 And where do the words you write come from as if not from the spoken language?



_______________________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2009-06-28 2:35

>>27
I wanted to post something else, but instead I'll say that you made me use the post hider. Thank you.

Name: Anonymous 2009-06-28 2:44

>>25
proof that the faggot is not a native english speaker.

Name: FrozenVoid 2009-06-28 3:13

Disregard everything said here; I suck cocks.


_________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: FrozenButts 2009-06-28 17:05

_________________________________
http://xs135.xs.to/xs135/09042/av922.jpg
orbis terrarum delenda est

Name: Anonymous 2010-12-09 22:34

Don't change these.
Name: Email:
Entire Thread Thread List