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

Pages: 1-

possible to use racket for programming?

Name: Anonymous 2018-02-04 14:40

have you tried?

Name: Anonymous 2018-02-04 16:05

I use it to create my chess-based strategy gaem

Name: Anonymous 2018-02-04 16:19

>>2
nice
I read the docs and I see you can make a website in it too?
But some things are not like scheme

Name: Anonymous 2018-02-04 16:37

racket is a scheme

Name: Anonymous 2018-02-04 16:44

I remember, when I was reading my SICP, there was some library for creating presentations for Scheme. Has anyone else workeed with that? Pretty cool, a useless toy feature for a useless toy language.

Name: Anonymous 2018-02-04 17:50

>>5
is it scribble?

Name: Anonymous 2018-02-05 1:54

>>5
It's fun to use, but it's locked in 4:3 and there's no way to change that without editing the source.

Name: Anonymous 2018-02-05 3:11

I do my prototyping in Racket through Dr Racket. If I care enough, that program will be ported to Chicken Scheme.

Name: Anonymous 2018-02-05 7:20

>>3
But some things are not like scheme
IIRC you can force Racket to use R5RS or R6RS

Name: Anonymous 2018-02-05 11:30

>>7
without editing the source
Where do you think you are boy?

Name: Anonymous 2018-02-05 11:32

check dubs

Name: Anonymous 2018-02-05 16:11

>>9
By adding a #lang bullshitte on the top of the file, which happens to be incompatible to RnRS.

Name: Anonymous 2018-02-06 7:29

>>12
can't you force it with a compiler/interpreter flag? that's pretty stupid if you can't

Name: Anonymous 2018-02-06 8:06

>>13
Nope, you can not.

Name: Anonymous 2018-02-06 8:09

>>14
well then, maybe you can just make a racket file with the #lang directive on top to act as a racket loader for standard scheme projects? it's a silly hack and I'd rather use flags but I guess it's better than nothing

Name: Anonymous 2018-02-06 8:12

>>15
I ended up making a script that auto-added the #lang bullshitte.
Since the racket module system is shitty as well I ended up replacing that as well while I was at it.

Name: Anonymous 2018-02-06 8:13

#!/bin/sh
TMP=$(mktemp)
printf %"s\n" "#lang racket" "(require compatibility/defmacro)" > $TMP

if [ -f "./order" ]
then
cat $TMP $(cat ./order | sed 's/\s.*$//') > out.sexpr
else
cat $TMP $(ls *.scm *.sexpr | sort) > out.sexpr
fi

racket -l errortrace -t out.sexpr

Name: Anonymous 2018-02-06 19:12

>>17
“I liken starting one's computing career with Unix, say as a undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act.” — Ken Pier, Xerox PARC

Name: Anonymous 2018-02-07 9:48

>>18
The first time I saw a shell script, I knew right there that I'd rather study Perl than deal with that shit.

Name: Anonymous 2018-02-07 10:58

>>19
Perl isn't much of an improvement

Name: Anonymous 2018-02-07 11:36

>>20
Still rather use it.

Name: Anonymous 2018-02-07 11:37

Or python.

Name: Anonymous 2018-02-07 11:43

>>22
python is pretty cool IMHO (inb4 'one word'), but I think it's as far from perl as a dynamic scripting language can get. it's all about human-readable code and easy manipulation of ad-hoc data structures, while perl looks like line noise and happily unpacks all the structures unless you specifically ask it not to

Name: Anonymous 2018-02-07 14:28

>>1

I used it to create a shell like DSL That was kinda nice to do and used Racket specific facilities. And to implement coroutines, but you can do that in any scheme. It has some interesting things though, like delimited continuations (shift/reset).

Name: Anonymous 2018-02-07 21:16

>>23
So you have to learn a bit of syntax. Personally, I prefer terse code over verbose. And perl's got a lot better control flow than sh or DCL.

Name: Anonymous 2018-02-08 5:08

>>23
There really isn't much difference. Python is used for the same shit Perl was used for and has about the same average code quality. You still have people badly extracting shit with buggy regexes that break all the time, and error messages? What are error messages? Dropping the user to a stack trace into Python internals is totally acceptable for user-facing software! On top of that, upgrading Python is a pain in the ass just like Perl used to be. I really don't see the difference.

Name: Anonymous 2018-02-08 7:08

>>25
terse is ok, the problem is that Perl promotes ''''''''''''''''''''''clever'''''''''''''''''''''' tricks achieve terseness. code golfing isn't just a game in this language how things are done. and we all know that this is a pretty stupid way to program.

>>26
oh, I agree that most of code written in Python sucks. but Python has good idioms and promotes a different coding style, it's just that shell and Perl scripters who migrated to it actively fight against it. if you write it the 'pythonic' way, you rarely if ever touch regexes because you work with lists, dicts and objects instead of strings (I've been programming in FIOC for years and I only used a regex once, and it was copied from an RFC anyway). of course the 'pythonic' way has its flaws, but they're of a completely different kind and mostly have to do with the language's shortcomings when it comes to FP and concurrency.

Name: Anonymous 2018-02-08 9:29

>>27
the problem is that Perl promotes ''''''''''''''''''''''clever'''''''''''''''''''''' tricks achieve terseness.
But so does Python

Name: Anonymous 2018-02-08 9:45

>>28
does it? IMHO Python encourages a fairly clear and readable style. the only things that are encouraged that might be seen as clever hacks are comprehension syntax and ternaries, but the syntax for them is more intuitive than Perlish sigil abuse

Name: not >>28 2018-02-08 11:50

>>29
Dictionaries as switch comes to mind.

Name: not >>29 2018-02-08 12:56

>>30
Maps as a mapping, how surprising.

Name: George Canto 2018-02-09 3:20

>>29-31
Actually, everything is a set, so hacks don't exist.

Name: retard 2018-02-09 5:53

Check my singles.

Name: Anonymous 2018-02-11 1:49

>>33
omg your're are retarded

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