<samth>
friscosam: jcowan: that's no even copying -- it's creating a new thread cell every time you use parameterize, whether it's in a new thread or note
corpix has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
badkins has quit [Remote host closed the connection]
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
SGASAU has quit [Remote host closed the connection]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
catonano has quit [Quit: catonano]
jellie has joined #racket
TCZ has joined #racket
acarrico has joined #racket
TCZ has quit [Quit: Leaving]
acarrico has quit [Ping timeout: 256 seconds]
acarrico has joined #racket
catonano has joined #racket
sz0 has joined #racket
sagax has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 260 seconds]
dddddd has joined #racket
jellie has quit [Ping timeout: 256 seconds]
jellie has joined #racket
badkins has joined #racket
__monty__ has joined #racket
<__monty__>
I'm looking at Scribble and I like what I see. Is it compatible with any wiki software? (Along the lines of Gollum.)
badkins has quit [Ping timeout: 256 seconds]
<lexi-lambda>
__monty__: no
<__monty__>
Hmm, too bad. How about as a "wiki" without any web editing capabilities? So just a site with convenient internal references, an automatic sitemap and maybe search?
narimiran has joined #racket
notzmv has quit [Ping timeout: 265 seconds]
<bremner>
__monty__: you could look at frog, it is a static site generator that understands scribble
rgherdt has joined #racket
<__monty__>
bremner: Ah, yes. I'd seen this before. Would it also support pollen? I'm not sure how much that differs from scribble.
<bremner>
Don't know.
bitmapper has joined #racket
msiism has joined #racket
doyougnu has joined #racket
selimcan has joined #racket
<msiism>
I'm trying to write a small px-to-em calculator in Racket (as a beginner's exercise and because I need it). It's supposed to be a Unix command-line tool. Now, I've just had a look at command-line parsing in Racket. And...
<msiism>
The first thing I'm having trouble with is: current-command-line-arguments being a "parameter", not a list. I'm having trouble to understan what "parameter" really means here. I think, I might rather want to have a list of arguments.
<msiism>
So, I would have to convert that parameter to a list somehow.
<samth>
msiism: you want to use racket/cmdline
<msiism>
samth: I feared someone would say that…
izh_ has joined #racket
<msiism>
samth: I have already had a look at the "command-line" function. It seems extremelely complicated to me. I feel that doing just POSIX-style command-line parsing does really not require this.
badkins has joined #racket
pilne has joined #racket
<bitmapper>
msiism: if you want just the args, just call (command-line)
srji has quit [Ping timeout: 265 seconds]
srji has joined #racket
<msiism>
bitmapper: Oh… okay. I'll try that. I was already half-way into cheating by using r6rs. :)
badkins has quit [Remote host closed the connection]
rgherdt has quit [Ping timeout: 272 seconds]
badkins has joined #racket
<samth>
msiism: it's quite easy to use. I think for just taking a single argument, you want (command-line #:args (px) px)
<msiism>
samth: Ok, I'll give that a try and play with it a bit.
<samth>
for your application, I'd probably just write: `(command-line #:args (px) (display (convert (string->number px))))` where convert does your conversion
badkins has quit [Ping timeout: 260 seconds]
<msiism>
That works indeed. And I think I understand it. Looking at the description of 'command-line' still gives me the creeps.
izh_ has quit [Quit: Leaving]
<msiism>
I mean, it's probably very useful in a lot of cases. But parsing a few, even more than a few, POSIX-syle options, option-arguments and operands is a pretty dull business actually. There's just not so much to it.
<samth>
msiism: that seems horrible; i've had to parse arguments in sh too
<msiism>
I find it pretty stright-forward, to be quite honest. Maybe I'm a bit spoiled.
<samth>
you can certainly write code like that in racktet, but i wouldn't recommend it
<msiism>
The difference to functional programming there is obviously that you use have a "parse-and-assign" stage first and then act based on the assigned values. command-line is different.
<msiism>
I'll try to wrap my head around that.
KDr22 has quit [Ping timeout: 256 seconds]
<samth>
msiism: you can certainly write things that way -- that's what the code I linked to does
* msiism
looks at that again
<samth>
the way command-line is written you sadly need to do it somewhat imperatively, as that code does
doyougnu has quit [Ping timeout: 250 seconds]
<msiism>
I'm fine with that. That's (sort of) the way I've been thinking about parsing up until now.
sagax has joined #racket
<msiism>
Well, to be more exact, I've been thinking about it as chopping down a list in a while loop.
efm has quit [Read error: Connection reset by peer]
narimiran has quit [Quit: leaving]
jellie has quit [Ping timeout: 264 seconds]
sagax has quit [Remote host closed the connection]
jellie has joined #racket
sagax has joined #racket
KDr22 has joined #racket
selimcan has quit [Ping timeout: 265 seconds]
jellie has quit [Read error: Connection reset by peer]
selimcan has joined #racket
notzmv has joined #racket
emacsomancer has quit [Ping timeout: 250 seconds]
FreeFull has quit [Quit: rebooting]
notzmv is now known as Miffo
Miffo is now known as notzmv
FreeFull has joined #racket
vraid has quit [Ping timeout: 258 seconds]
__monty__ has quit [Quit: leaving]
selimcan has quit [Remote host closed the connection]
rgherdt has joined #racket
msiism has left #racket [#racket]
emacsomancer has joined #racket
true-grue has quit [Read error: Connection reset by peer]
selimcan has joined #racket
TCZ has joined #racket
zmt00 has quit [Quit: Leaving]
zmt00 has joined #racket
ArthurStrong has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
SGASAU has quit [Remote host closed the connection]
SGASAU has joined #racket
TCZ has quit [Quit: Leaving]
ArthurStrong has quit [Quit: leaving]
SGASAU has quit [Remote host closed the connection]