capfredf has joined #racket
cwebber has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
vraid has quit [Ping timeout: 256 seconds]
Codaraxis__ has joined #racket
Codaraxis_ has quit [Ping timeout: 256 seconds]
ur5us has joined #racket
vraid has joined #racket
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 260 seconds]
klf has quit [Quit: This computer has gone to sleep]
klf has joined #racket
mon_aaraj has quit [Quit: WeeChat 3.4]
s-liao has joined #racket
mon_aaraj has joined #racket
s-liao46 has joined #racket
s-liao has quit [Ping timeout: 256 seconds]
winny has quit [Remote host closed the connection]
winny has joined #racket
s-liao46 has quit [Ping timeout: 256 seconds]
ur5us has quit [Ping timeout: 240 seconds]
<winny> There is a `main` function that can be loaded in certain cases, but you really do want the `(module+ main ...)` thing you'll see online
s-liao has joined #racket
klf has quit [Quit: Leaving]
skapata has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
s-liao has quit [Ping timeout: 256 seconds]
s-liao has joined #racket
Fare has quit [Ping timeout: 256 seconds]
s-liao has quit [Ping timeout: 256 seconds]
s-liao has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
s-liao has quit [Ping timeout: 256 seconds]
notzmv has quit [Ping timeout: 260 seconds]
mdhughes has quit [Remote host closed the connection]
mdhughes has joined #racket
Fare has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
cynomys has joined #racket
Fare has quit [Ping timeout: 240 seconds]
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
Fare has joined #racket
ur5us has joined #racket
Fare has quit [Quit: Leaving]
Algernon69 has joined #racket
notzmv has joined #racket
Algernon91 has joined #racket
Algernon69 has quit [Ping timeout: 256 seconds]
tgbugs has quit [Ping timeout: 250 seconds]
ur5us has quit [Ping timeout: 240 seconds]
tgbugs has joined #racket
terrorjack5 has joined #racket
Avichi has joined #racket
terrorjack has quit [Ping timeout: 268 seconds]
chris2 has quit [Ping timeout: 268 seconds]
krono has quit [Ping timeout: 268 seconds]
terrorjack5 is now known as terrorjack
vraid_ has joined #racket
krono has joined #racket
vraid has quit [Ping timeout: 256 seconds]
chris2 has joined #racket
s-liao has joined #racket
s-liao has quit [Ping timeout: 256 seconds]
vraid_ is now known as vraid
ski has quit [Ping timeout: 250 seconds]
conjunctive has quit [Ping timeout: 260 seconds]
ski has joined #racket
conjunctive has joined #racket
capfredf has joined #racket
notzmv has quit [Ping timeout: 250 seconds]
b625e17 has quit [Ping timeout: 245 seconds]
capfredf has quit [Ping timeout: 256 seconds]
b625e17 has joined #racket
cynomys has quit [Ping timeout: 256 seconds]
Codaraxis__ has quit [Read error: Connection reset by peer]
ermo has quit [Read error: Connection reset by peer]
Codaraxis has joined #racket
Codaraxis has quit [Read error: Connection reset by peer]
Codaraxis has joined #racket
ermo has joined #racket
s-liao has joined #racket
s-liao has quit [Client Quit]
Codaraxis_ has joined #racket
Codaraxis has quit [Ping timeout: 256 seconds]
mon_aaraj has quit [Ping timeout: 256 seconds]
Avichi has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
libertyprime has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
cynomys has joined #racket
cynomys has quit [Client Quit]
Algernon91 has quit [Ping timeout: 245 seconds]
capfredf has joined #racket
capfredf has quit [Ping timeout: 268 seconds]
mon_aaraj has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
libertyprime has quit [Quit: leaving]
notzmv has joined #racket
capfredf has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
capfredf has quit [Ping timeout: 256 seconds]
Algernon91 has joined #racket
capfredf has joined #racket
s-liao has joined #racket
s-liao has quit [Client Quit]
s-liao has joined #racket
s-liao has quit [Client Quit]
Avichi has joined #racket
klf has joined #racket
Avichi has quit [Ping timeout: 256 seconds]
<klf> (for ([id sequence-expr] ...)
<klf> body ...+)
<klf> (for ([i 3])
<klf> (display i))
<klf> why is 3 a sequence-expr ?
<vraid> shorthand for (range 3) maybe?
<bremner> rudybot_: (sequence? 3)
<bremner> rudybot_: init racket
<rudybot_> bremner: error: with-limit: out of time
<rudybot_> bremner: your sandbox is ready
<bremner> rudybot_: (sequence? 3)
<rudybot_> bremner: ; Value: #t
<bremner> klf: ^
<bremner> you can follow the docs to the actual contract there
<bremner> "An exact number k that is a non-negative integer acts as a sequence similar to (in-range k), except that k by itself is not a stream."
<klf> rudybot_ is one lazy mf... (i guess it's still early)
<klf> What does the '+' in '...+' mean?
<klf> '...' alone denotes that there can be zero or more of the preceding pattern
<bremner> without checking, one or more
<klf> 👍
<klf> rudybot_, '"hello world"
<rudybot_> klf: your sandbox is ready
<rudybot_> klf: ; Value: "hello world"
<klf> rudybot_, (string->symbol "hello world")
<rudybot_> klf: ; Value: '|hello world|
<klf> Why don't I get an interned symobol in the first attempt?
<klf> rudybot_,'hello\ world' ; I get it here
<klf> rudybot_,'hello\ world ; I get it here
<rudybot_> klf: does anyone here run Emacs25 in OSX and use the GDB debugger? I installed Emacs 25.0.50 and GDB 7.8.1 through Homebrew, so fairly vanilla setup. Yet I seem to have a bug where any process (even a simple hello world program) run through m-x gdb hangs up Emacs (100% CPU infinitely) after finishing. gud-gdb works fine.
<rudybot_> klf: ; Value: '|hello world|
<klf> I broke rudybot_ yay!
<bremner> klf: quote is not about interning?
<klf> also, " in the same way that an identifier can be quoted to produce a symbol, a keyword can be quoted to produce a value." (https://docs.racket-lang.org/guide/keywords.html)
<klf> a string is not* an identifier.
<bremner> OK, but keywords are something different, not strings.
<bremner> rudybot_: '#:foo
<rudybot_> bremner: ; Value: '#:foo
<bremner> rudybot_: #:foo
<rudybot_> bremner: error: eval:1:0: #%datum: keyword used as an expression <NEWLINE> in: #:foo
<bremner> without the quote, the keyword isn't an expression
cwebber has quit [Remote host closed the connection]
skapata has joined #racket
skapata has quit [Changing host]
skapata has joined #racket
<klf> "Keywords are intended for use (unquoted) as special markers in argument lists and in certain syntactic forms. "
<klf> I see.
<bremner> roughly speaking, they behave like punctuation
<klf> let's take a look at the example in the docs:
<klf> (lambda () (printf "example\n"))
<klf> (with-output-to-file (build-path dir "stuff.txt")
<klf> ; optional #:mode argument can be 'text or 'binary
<klf> #:mode 'text
<klf> #:exists 'replace)
<klf> ; optional #:exists argument can be 'replace, 'truncate, ...
<klf> intutively, one would think that the '#:mode' "marker" (or so they call it) is not really necessary in "#mode 'text'"
<klf> err... I put an extra single quote in there. it should be "#mode 'text"
<bremner> it's the same as keyword arguments in e.g. python and common lisp. They are not only optional but the order can change
<klf> at the end of the day you are passing the symbol 'text as an argument to the function "with-output-to-file"
Codaraxis__ has joined #racket
Codaraxis_ has quit [Ping timeout: 256 seconds]
Codaraxis has joined #racket
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #racket
Codaraxis__ has quit [Ping timeout: 256 seconds]
skapata has quit [Remote host closed the connection]
Algernon91 has quit [Read error: Connection reset by peer]
Algernon91 has joined #racket
Algernon91 has quit [Ping timeout: 268 seconds]
Algernon666 has joined #racket
codingquark has quit [Ping timeout: 256 seconds]
codingquark has joined #racket
sagax has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
<klf> "The #lang at the start of a module file begins a shorthand for a module form"
<klf> Are these specific types of "shorthands" built-in and cannot be defined by the user?
capfredf has quit [Ping timeout: 256 seconds]
mon_aaraj has joined #racket
Algernon91 has joined #racket
Algernon666 has quit [Ping timeout: 268 seconds]
mon_aaraj has quit [Ping timeout: 256 seconds]
Avichi has joined #racket
mon_aaraj has joined #racket
mon_aaraj has quit [Ping timeout: 268 seconds]
capfredf has joined #racket
skapata has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
capfredf has quit [Ping timeout: 256 seconds]
Algernon91 has quit [Ping timeout: 268 seconds]
avelino has joined #racket
capfredf has joined #racket
avelino has quit [Quit: Client closed]
ur5us has joined #racket
skapata has quit [Remote host closed the connection]
Codaraxis has quit [Read error: Connection reset by peer]
Codaraxis has joined #racket
epony has quit [Quit: QUIT]
Vaelatern has quit [Ping timeout: 240 seconds]
Vaelatern has joined #racket
Vaelatern has quit [Changing host]
Vaelatern has joined #racket
cynomys has joined #racket
cynomys has quit [Quit: leaving]
mon_aaraj has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
skapata has joined #racket
notzmv has quit [Ping timeout: 268 seconds]
ermo has quit [Read error: Connection reset by peer]
johnjaye has joined #racket
ermo has joined #racket
Algernon91 has joined #racket
ermo has quit [Ping timeout: 268 seconds]
ermo has joined #racket
Algernon91 has quit [Ping timeout: 268 seconds]
cwebber has joined #racket
wwalker_ is now known as wwalker
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
notzmv has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
mon_aaraj has quit [Quit: WeeChat 3.4]
mon_aaraj has joined #racket
countvajhula has joined #racket
mon_aaraj has quit [Client Quit]
mon_aaraj has joined #racket
<countvajhula> btw thanks winny and samth re: favoring relative paths internally in libraries (saw your responses on the whitequark archive)
<countvajhula> I think that makes sense