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

Racket ftw

Name: Anonymous 2014-11-09 11:18

Racket's compilation phases are much better than Common Lisp's "one big mess" approach. Global mutables visible at compile-time only? Importing modules for use in macros only? Separate compilation where the compile-time mutability in one module can never sip into another? Fuck yeah to all of that. They've got like unlimited number of phases, i.e. 0 is runtime, 1 is expansion time, 2 is the expansion time of macros used in phase 1, etc.

I made a typeclass system with Racket macros in a jiffy, and it's even better than in Haskell as it has first-class instances. You can inspect instances, modify them, choose which one to call, etc.

Fuck yeah Racket!

Name: Anonymous 2014-11-09 12:37

racket is the systemd of scheme

Name: Anonymous 2014-11-09 12:56

>>2
Racket is not Scheme. Scheme is shit.

Name: Anonymous 2014-11-09 18:43

Name: Anonymous 2014-11-09 20:17

>>4
Congratulations. Nobody uses that.

Name: Anonymous 2014-11-19 21:42

>>5
everybody uses eval-when, but it's not like it makes the common lisp situation that much better

Name: Anonymous 2014-11-30 15:12

So I've started learning Typed Racket. And guess what? It's shit!

E.g. this doesn't typecheck

(struct pt ((x : Fixnum) (y : Fixnum)))

(: dist (-> pt pt Flonum))
(def (dist p1 p2)
(sqrt
(+ (* (- (pt-x p1) (pt-x p2))
(- (pt-x p1) (pt-x p2)))
(* (- (pt-y p1) (pt-y p2))
(- (pt-y p1) (pt-y p2))))))


Type Checker: type mismatch
expected: Flonum
given: Number

Holy fuck, flonums don't unify with numbers, how retarded is that? These retards couldn't overload sqrt. No wonder LITHP idiots hate static typing - they suck at it!

Name: Anonymous 2014-11-30 15:18

Holy hairy armpit sweat smell in a perfume jar, Racket is indeed retarded and made for retards.

Type Checker: type mismatch
expected: Flonum
given: Positive-Byte in: 3

3 doesn't unify with Flonum. 3. Flonum. Type error. F u c k i n g g a y r e t a r d s.

Name: Anonymous 2014-11-30 18:57

>>6
I don't!

Name: Anonymous 2014-11-30 19:15

>>8

hot
i want mion's hairy armpits sweat smell in a perfurme jar

Name: Anonymous 2014-11-30 19:38

>>10
mion is a fine lady who doesn't grow armpit hair
kill yourself, nigger

Name: Anonymous 2014-11-30 22:28

>>7
*Racket idiots.
Also ML has the same problem.

Name: Anonymous 2014-12-01 0:52

>>9

I don't think it's even obscure..

Name: Anonymous 2014-12-01 1:08

obscure my anus

Name: Anonymous 2014-12-01 3:47

>>11

but i bet she forgets once in a while, she's always busy with something, plus she is really tomboyish
anyway, even without hair her armpit would get pretty sweaty from al the activity she does, must be a lovely fragance

Name: Anonymous 2014-12-01 6:38

>>12
But Haskell doesn't.

Prelude> :t sqrt
sqrt :: Floating a => a -> a

Name: Anonymous 2014-12-01 10:06

>>16
And neither does C...

Name: shit goblin 2014-12-01 11:56

C implicitly converts between floats and integers, despite they being completely different and incompatible objects, while conversion between them incurs high runtime cost. This leads to inefficient code, confusion and complicates semantics.

Name: shit goblin 2014-12-01 11:58

http://i.ytimg.com/vi/4Xj-E3himi4/maxresdefault.jpg

who wod thort i get confused?? XD

Name: Anonymous 2014-12-01 12:22

>>18
...whereas in Haskell the dispatch is static and the most efficient function is chosen automatically. So one can take sqrt 5 and get an answer that makes sense. Damn, typeclasses and ad hoc polymorphism are great.

Name: Anonymous 2014-12-01 17:17

>>20
Haskell doesn't perform dispatch.

Name: Anonymous 2014-12-01 19:02

>>21
Yeah, that's cool and all, but check these sweet dubs!

Name: Anonymous 2014-12-01 19:32

>>21
Of course it doesn't. The compiler does.

Name: Anonymous 2014-12-01 21:07

>>23
*implementation

Name: Anonymous 2014-12-01 21:10

>>23,24
No dispatch is happening, even at compile time.

Name: Anonymous 2014-12-02 4:32

>>1
Care to pots it on git hub?

Name: Anonymous 2014-12-02 6:25

>>26
I've smoken a lot of pots today.

Name: Anonymous 2014-12-02 7:33

>>25
Because you said so? OK.

Name: Anonymous 2014-12-03 5:08

>>28
I'm glad we are in agreement.

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