#racket

/

      • robm has quit
      • robm joined the channel
      • robm has quit
      • jbclements has quit
      • jbclements joined the channel
      • xilo joined the channel
      • maxiepoo has quit
      • ASau has quit
      • ormaaj joined the channel
      • ASau joined the channel
      • pierpa has quit
      • jbclements has quit
      • cipher
        can anyone recommend a good way to handle close-input-port in a safe way for net/url?
      • btyler joined the channel
      • ivanshmakov has quit
      • imrudbu joined the channel
      • asumu
        fridim_: what if you `raco setup -D` first?
      • vraid: I think that "interactive" there does not necessarily mean "not compiled"
      • btyler has quit
      • vraid
        oh?
      • can the repl be used in a compiled program?
      • mizu_no_oto joined the channel
      • asumu
        Well, yes, in the sense that you can call `read-eval-print-loop` or `eval` in a compiled program.
      • But that's possibly not what you mean?
      • nisstyre
        vraid: the whole language is available at runtime via eval of course
      • but you should avoid using eval at all costs, see: http://blog.racket-lang.org/2011/10/on-eval-in-...
      • rudybot
        Error
      • mizu_no_oto has quit
      • cored has quit
      • cored joined the channel
      • mithos28 joined the channel
      • r2q2 joined the channel
      • r2q2
        Hi i'm having an issue with syntax-parse
      • mithos28
        r2q2: can you put up a paste somewhere?
      • r2q2
        Yea sorry im starting up racket
      • Its saying expected the identifier match
      • btyler joined the channel
      • mithos28
        right.
      • What do you expect to happen?
      • r2q2
        I expect it to find the identifier
      • because i'm importing match already
      • mithos28
        but there is no identifier match in the input
      • it is just '((a b) c)
      • r2q2
        oh
      • oh ok
      • i understand now
      • thanks
      • mizu_no_oto joined the channel
      • ianjneu joined the channel
      • cored has quit
      • merijn has quit
      • demaseme joined the channel
      • demaseme
        Hello, everyone and good night!
      • Excuse me, I'd like some help about creating DrRacket executables in Ubuntu.
      • asumu
        demaseme: what's the problem?
      • demaseme
        asumu: well, I am obviosly a newb in this matters, I have my program, then I go to Racket>Make executable> Stand Alone & Gracket. It creates the file but I can't open it with Ubuntu's terminal
      • asumu: I can't open it by 2ble clicking either.
      • asumu: I'm asuming I may need an extra few lines at the begining of my code, I just don't know which ones.
      • asumu
        demaseme: if you right click and look at its properties, is it set as executable?
      • demaseme
        asumu: No, and if I try, it deselects, I can't change the user/group things either.
      • asumu
        I think that's your issue.
      • Are you the owner of the file?
      • demaseme
        asumu: Yes I am.
      • asumu: Well...actually...let me check something.
      • vraid
        nisstyre: oh, i'm okay with the potential of massive failure, as long as it gives me some flexibility
      • mizu_no_oto has quit
      • demaseme
        asumu: Okay, it works now, I was running DrRacket as su.
      • asumu: Now, is there any way I can get to see the interactions prompt when executing?
      • asumu
        demaseme: not sure what you mean. You have a executable you're running and you want to interact with it?
      • demaseme
        asumu: Yeah, sort of dumb...I use (get-text-from-user) to get some text, but I also use (printf) to print it. The get-text-from-user window displays but I can't see the text.
      • fridim_
        asumu, nop, raco setup -D doesn't help
      • asumu
        demaseme: are you sure you're outputting to the right output port? Also, does it help if you flush the buffer? (try `(flush-output)` after the `printf`).
      • stamourv`` has quit
      • fridim_
        I'll try with racket stable
      • stamourv`` joined the channel
      • demaseme
        asumu: Aw, I'm so dumb :P. I executed it from the Terminal and it works now! Thank you so much!
      • j3pl has quit
      • asumu
        demaseme: no problem, glad you got it working.
      • mizu_no_oto joined the channel
      • demaseme has quit
      • neilv joined the channel
      • cdidd has quit
      • Sgeo joined the channel
      • mizu_no_oto has quit
      • racycle has quit
      • ambrosebs joined the channel
      • cdidd joined the channel
      • mizu_no_oto joined the channel
      • adu joined the channel
      • adu
        why does "scribble --html" output something other than <pre> for @verbatim?
      • cdidd has quit
      • ianjneu has quit
      • I would expect @verbatim{a b\nc d} to be converted to <pre>a b\nc d</pre> but instead it's converted to http://pastie.org/8368503
      • how do I fix it?
      • the tables are a deal-breaker
      • cdidd joined the channel
      • jeapostrophe has quit
      • cdidd has quit
      • cdidd joined the channel
      • cdidd has quit
      • mizu_no_oto has quit
      • codabrink has quit
      • imrudbu is now known as ivanshmakov
      • bjz joined the channel
      • mithos28 has quit
      • dan_f_ joined the channel
      • dan_f has quit
      • dan_f_ is now known as dan_f
      • mithos28 joined the channel
      • when I try and write my own scribble module, I get "default-load-handler: cannot open input file path: .../doc/--html"
      • asumu
        adu: you want the \n to appear literally in the output?
      • Try \\n
      • adu
        no, I want @verbatim{} to do less processing
      • asumu: did you see my pastie?
      • I made a module with (require scriblib/render-cond)
      • and tried to redefine @verbatim with:
      • but I can't require it from scribble
      • I'm calling it with "scribble +m ../bscrbl.rkt --html scribble2bootstrap.scrbl"
      • racycle joined the channel
      • brianmwaters has quit
      • is there something I'm missing?
      • asumu: I would expect @verbatim{a b\nc d} to be converted to <pre>a b\nc d</pre> but instead it's converted to http://pastie.org/8368503
      • (requored from 1 hour ago)
      • requoted
      • how do I add a path to scribble?
      • asumu
        adu: I don't understand what you mean when you say you can't require it from scribble.
      • Are you saying that you get a duplicate import error?
      • adu
        when I require "@(require bscrbl)" which is my module, it says it can't find it
      • because it's in ..
      • so I tried to add it with +m ../bscrbl.rkt
      • asumu
        I don't think that's what the +m flag means. In any case, I think the easiest thing to do is to change your require to `@(require "../bscrbl.rkt")`
      • adu
        or @(require "ABSOLUTE_PATH/bscrbl.rkt")?
      • asumu
        You probably want a relative path in general.
      • I'm not actually sure absolute paths are valid module paths.
      • adu
        but then how do I build my documentation in many directories?
      • is there any way I can install it? so I don't have to add a path?
      • asumu
        If bscrbl.rkt needs to be used by several separate libraries that are in separate places in the filesystem, you probably should make it a package so that you can refer to it like @(require bscrbl)
      • adu
        yes! that's probably what I want
      • Sgeo
        Why am I looking at Racket after having looked at Tcl?
      • They're practically opposites... well, not a good way to describe that
      • adu
        Sgeo: why were you looking at Tcl?
      • Sgeo
        adu: I like the metaprogramming model of Tcl
      • adu
        Sgeo: I like the metaprogramming model of racket
      • Sgeo
        Tcl is very... eval based
      • adu
        you know, I could probably do much better by rewritting scribble from scratch
      • Sgeo
        Although you lose static analysis, which is bad. And lexical scoping, although Rebol is similar to Tcl but has something that sort of fakes it
      • Still no static analysis in Rebol though
      • adu
        Sgeo: care to comment on scribble?