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

DrRacket

Name: Anonymous 2012-01-05 20:15

>that feel when I have to use DrRacket for my first Computer Science course.

WHY?

Name: Anonymous 2012-01-05 20:24

What's wrong with DrRacket? I tried it once and it was kind of cool, complete with a running man icon at the lower-right corner. It is also capable of inserting random crap such as fractals and UML diagrams into the code and REPL buffers, which is kind of great (Emacs can do this, too, but it never does).

Name: Anonymous 2012-01-05 20:52

The running man icon isn't at the lower-right corner anymore...

I hate it because it's not like C++, Galaxy, or vJass.

It's a total mindfuck for me.
(define x = 3)

f(* g x)

I'm not even sure if I'm writing it right here, but it's hard for me to understand wtf is going on with these parameters n' shit.

Also I've never seen things written (* 2 3) or something like that before.

Name: Anonymous 2012-01-05 21:39

Read SICP.

Racket is not a bad language, and DrRacket is pretty cool.

Name: Anonymous 2012-01-05 22:08

>>3
Prefix notation isn't that hard to learn.

Name: Anonymous 2012-01-05 22:16

>>2
What's wrong with DrRacket?
not python

Name: Anonymous 2012-01-05 22:20

you are recoiling from prefix notation because it is not what you are used to

but soon you will become enlightened and lisp will make you cum

Name: Anonymous 2012-01-06 2:47

( * 2 3) = 6?

( * + - / 2 1 3 5 2) = ?

seems a bit pointless really

Name: Anonymous 2012-01-06 2:53

2/10 I at least laughed.

if by chance you are serious:
"German isn't unreadable -- I don't know German!"
~ Rich Hickey

Name: Anonymous 2012-01-06 4:01

>>8
( * + - / 2 1 3 5 2) = ?
Nan.

You'll get a different result for structuring it differently.

(* 2 (+ 1 (- 3 (/ 5 2))))

Name: Anonymous 2012-01-06 4:12

>>9 you mean (/ 2 10)

So, there is some actual point of writing it like that? (from a computational standpoint?)

( * 2 1 + 3 - (/ 5 2)) = ?

Besides just being different for the sake of it? ...Germans get taught german, fair enough, but who teaches math like this??

Name: Anonymous 2012-01-06 4:21

still,

(* 2 (+ 1 (- 3 (/ 5 2))))

or

(2 * (1 + (3 - (5 / 2)))) ?

Or just (3 + 1 - 5/2) * 2...

people-who-never-understood-bimdas optimized?

Name: Anonymous 2012-01-06 4:28

FORCED ANALYSIS OF ALL OPERATIONS, NAIVITY OVER

Name: VIPPER 2012-01-06 4:46

Why do you asshats even respond to a thread that has no content but imageboard filth whatsoever.

Name: Anonymous 2012-01-06 4:48

>>13 for bimdas, or bracketdas? (You probably should look at the equations either way, if you don't want a mistake..)

Couldn't the compiler (/ interpreter ?? no wonder..) do that for you (once / a hundred times+ respectively ^^)?

...Can it at least do (or allow things to be done) in parallel (like bimdas)?

Eg. (+ (* 2 5) (/ 1 4)) >> (+ 10 0.25) >> 10.25

like 2*5 + 1/4, as in (2*5) + (1/4), or ((2*5) + (1/4))

Name: Anonymous 2012-01-06 4:57

>>14 i don't know, why?

(back to imgboard plz...)

^u^

Name: Anonymous 2012-01-06 5:27


(* 2 (+ 1 (- 3 (/ 5 2))))

is like a retarded version of

((((5 / 2) - 3 ) + 1) * 2)

which (simply ignoring bimdas) would otherwise just be  5 / 2 - 3 + 1 * 2

[Keep it simple stupid]

Name: Anonymous 2012-01-06 5:30

Why do people still use * for times and / for division? It's not the 50's anymore. APL (1964) and ALGOL 68 (1968) used the real symbols. (2×5)+(1÷4) is valid ALGOL 68 and APL code. With Unicode, there's even less of an excuse today.

Name: Anonymous 2012-01-06 5:35

>>18
These characters are not printed on standard keyboard layouts which means a little bit of extra work is needed every time one would use such characters. They really ought to be in standard layouts.

Name: Anonymous 2012-01-06 6:30

>>18
I refuse to have sex with xmodmap tonight.

>>2
I dunno about modern DrRacket, but DrScheme was typical "hurr durr, I'm too cool to call MessageBoxW, have this shitty ugly dialog box instead"

Name: Anonymous 2012-01-06 6:55

Ok, /g/ won over /prog/. I'm out.

Name: Anonymous 2012-01-06 8:57

>>21
But... We'll miss you, anon-kun. Don't leave us.

Name: Anonymous 2012-01-06 10:54

>>22
I-it's not like I'm staying here for you or because I cannot leave or anything, i-idiot.

Name: Anonymous 2012-01-06 12:51

first Computer Science course
Scheme

Wait... did I just travel in time back to the 6.001 era?

Or is it The Second Coming of Lord Sussman?

Name: Anonymous 2012-01-06 12:53

>>24
No, you're just an ignorant jackass.

Name: Anonymous 2012-01-06 18:03

>>20
MessageBoxW
LOL!

Name: Anonymous 2012-01-06 20:30

>>24
Not all CS courses moved to Python, Java, C# for their teaching language.

Name: Anonymous 2012-01-06 20:41

>>26
On Linux, there is no ``Message Box Dubya''.

Name: Anonymous 2012-01-06 20:56

>>28
Yes there is, it's in the library called user32.dll supplied with the wine package.

Name: Anonymous 2012-01-06 23:56

>>17
OP back. Last post in this thread from me was here: >>3

This is retarded. I hate this language so much. Everything is needlessly complex about it. Mindf*ck almost looks palatable compared to it.

>>21
I do not visit any other sites for /prog/ related stuff.

>>24
Welcome to the University of Waterloo-- soon to be renamed the University of Chinktown.

Name: Anonymous 2012-01-07 1:04

>>1
I have to use that same language.
The reason teachers like to use it is
because Racket tells you exactly how you fuck
up and where the error is.

Name: Anonymous 2012-01-07 5:43

>>11

The point behind prefix notation is that it keep the rules simple and consistent, which helps when extending the language with macros and such. * / + - are treated just like normal functions.

In lisp, the first element between two parens is *always* a function and the remaining ones are *always* arguments to that function. If you allowed infix, then you'd suddenly have this really complicated exception rule that would make the language less malleable.

Name: Anonymous 2012-01-07 6:09

>>33
And not only that. The syntax of lisp is more or less a one-to-one representation of its own abstract syntax tree. Any experienced programmer learns to see past the syntax of any language and knows that a compiler or interpreter transforms the source code into an AST anyway, which will look a lot like lisp, only the set of functions and values will match the semantics of the source language.

Syntax is just eye-candy.

Name: Anonymous 2012-01-07 6:20

And not only that. The syntax of asm is more or less a one-to-one representation of its own binary representation. Any experienced programmer learns to see past the syntax of any language and knows that a compiler or interpreter transforms the source code into string of opcodes anyway, which will look a lot like asm, only the set of functions and values will match the semantics of the source language.

Syntax is just eye-candy.

Name: Anonymous 2012-01-07 6:23

>>33-34
fuck off you cock sucking retard

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2012-01-07 6:53

>>34
In their magical Lisp-world everything compiles to Lisp AST, even asm.

Name: Anonymous 2012-01-07 9:13

>>36
But I am writing a Sexp-based x86 assembler.

Name: Anonymous 2012-01-07 9:26

>>37
Do let me know when you finish it. I'm not very happy with the available ones. Enough to write something of my own, but I can't say I'm entirely happy with mine either.

Name: Anonymous 2012-01-07 14:58

>>37
Since you don't have to be source-compatible with VisiCalc, could you please use more sensible names for the registers.
? = a, c, d, b
r?x = ?x/e?x/r?x (full size, depending on mode)
r?q = r?x
r?d (or r?l) = e?x
r?w = ?x
r?b = ?l
r?h = ?h

? = s, d
?i = ?i/e?i/r?i (full size, depending on mode)
?iq = r?i
?id = e?i
?iw = ?i
?ib = ?il (AMD64 extension)

? = s, b
?p = ?p/e?p/r?p (full size, depending on mode)

Name: Anonymous 2012-01-07 21:58

>>32
>>33
>>34
Ahhhh just trying to understand what you're going on about is making my head asplode and I still have shit-tons of textbook reading to go through that is also mindnumbing/mindfucking me.

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