#racket

/

      • christiansen` is now known as christiansen
      • soegaard has quit
      • cemerick joined the channel
      • jbclements joined the channel
      • Nopezer has quit
      • khj has quit
      • Nopezer joined the channel
      • dented42 joined the channel
      • dan_f has quit
      • khj joined the channel
      • jbclements has quit
      • khj has quit
      • J_Arcane joined the channel
      • dan_f joined the channel
      • dan_f has quit
      • dan_f joined the channel
      • Lowl3v3l joined the channel
      • acertain joined the channel
      • ijp has quit
      • mejja joined the channel
      • vkirilichev joined the channel
      • jbclements joined the channel
      • jbclements has quit
      • pilne joined the channel
      • tennix
        What `#language racket/gui` uses for GUI widget, GTK or something else?
      • badkins_ joined the channel
      • badkins has quit
      • badkins joined the channel
      • badkins_ has quit
      • _sjs has quit
      • rekahsoft joined the channel
      • neuri8 has quit
      • neuri8 joined the channel
      • Lowl3v3l has quit
      • jbclements joined the channel
      • jbclements has quit
      • mizu_no_oto joined the channel
      • learningracket joined the channel
      • learningracket
        Anyone know how to use the Racket Docs to figure out what to (require) for a function
      • pilne has quit
      • pgriess joined the channel
      • jessicah` has quit
      • lexi-lambda
        learningracket: Normally it says in the little yellow boxes at the top of each section. If it doesn’t say, then it probably just comes from racket/base.
      • Also, if you search for a function or form, the search results will tell you which modules the bindings are provided by.
      • pgriess has quit
      • _sjs joined the channel
      • learningracket has quit
      • ArneBab_ joined the channel
      • ijp joined the channel
      • ArneBab has quit
      • jao has quit
      • dan_f has quit
      • dan_f joined the channel
      • mizu_no_oto joined the channel
      • christiansen is now known as christiansen`
      • mejja has quit
      • jbclements joined the channel
      • jbclements has quit
      • ijp has quit
      • rekahsoft has quit
      • badkins_ joined the channel
      • badkins__ joined the channel
      • badkins has quit
      • badkins joined the channel
      • badkins_ has quit
      • badkins__ has quit
      • badkins has quit
      • jeapostrophe has quit
      • Nopezer has quit
      • Nopezer joined the channel
      • jbclements joined the channel
      • jbclements has quit
      • electrum joined the channel
      • electrum
        What's up everyone
      • dented42 has quit
      • jeapostrophe joined the channel
      • tennix joined the channel
      • jeapostrophe has quit
      • dented42 joined the channel
      • jbclements joined the channel
      • jbclements has quit
      • lockdown has left the channel
      • ramteid joined the channel
      • Anyone got a second to help an idiot with some socket programming?
      • jeapostrophe joined the channel
      • jeapostrophe has quit
      • jeapostrophe joined the channel
      • jeapostrophe has quit
      • lexi-lambda
        Cute April Fools’ joke on the mailing list. :) (Is Ben not on IRC?)
      • electrum: I am sure you’re not an idiot, but I could still take a look if you’d like. ;)
      • electrum
        I would much appreciate it. I've used lisps/schemes for a while, but mostly for math, for for systems type programming
      • not for*
      • Anyway, I have to progr
      • jbclements joined the channel
      • ... I have to program a file transfer protocol in UDP implementing some reliable transfer. I just can't seem to decipher racket's socket programming features.
      • lexi-lambda
        electrum: Why on earth would you implement a file transfer protocol on top of UDP instead of TCP?
      • electrum
        Because I am required to for a class project, as a term-long exercise. :p
      • lexi-lambda
        Ah. Well, start by implementing TCP on top of UDP. ;)
      • (I’m joking. Mostly.)
      • electrum
        I wish I could. We have to use a stop-and-wait protocol, and additionally a moving window protocol
      • pasterack
      • electrum
        I didn't think that would do that. Well, that's my provisional "trying to get the sockets working"
      • jbclements has quit
      • lexi-lambda
        Ok. Well, I think you probably need to listen on the port before you try sending a packet, so you’ll probably need to use threads, or just make two separate programs and start the server before running the client.
      • (Disclaimer: I have not worked with Racket’s UDP library before, and it has been a little while since I wrote anything that dealt with UDP directly.)
      • electrum
        Yeah, they are listening in separate files, but for convenience I put them there. When I run the server, it blocks until I run the client. What happens when I run the client is that the server just prints 0 or #<eof> or something.
      • I can't get it to just print to the terminal the contents of bufstr.
      • Or, alternately, bufstr is being printed, but the packet never gets there.
      • lexi-lambda
        electrum: Well, for one thing, it looks like udp-receive! writes data into the buffer you give it, but you’ve only created a buffer of length zero, so your buffer will always be empty.
      • electrum
        Really? It won't lengthen itself?
      • lexi-lambda
        Nope. If you look at the docs, udp-receieve! accepts an optional start-pos and end-pos, and end-pos is just (byte-length bstr) by default.
      • Glancing over the docs, I’m trying to figure out how you get more data from an incompletely read packet.
      • electrum
        gaaaah.
      • lexi-lambda
        Oh. Gosh, it just throws the extra data away.
      • soegaard joined the channel
      • electrum
        I know that udp-receive! does tell you how many bytes it received, but that seems unhelpful considering it has already written.
      • I guess I'll have to set the buffer to the MSS of the network. 1500 bytes is usually it.
      • lexi-lambda
        Though I suppose that makes some sense, I think there’s a sensible upper limit on UDP datagram size.
      • Yeah.
      • You’ll need the return value to know how much of the buffer is actually valid data.
      • I find it a little odd that there is no wrapper around udp-recieve! that allocates the buffer for you and trims it to the right size, but you could definitely write such a wrapper yourself.
      • electrum
        substituting make-bytes 1500 does it exactly. What a silly issue.
      • lexi-lambda
        I’m not sure how much of a performance loss you would incur by not reusing the same buffer, but I would imagine it would be in the noise unless you’re receiving massive amounts of data.
      • electrum has quit
      • electrum joined the channel
      • electrum
        Did I flood the channel with the same messag?
      • The webchat kind of freaked out on me.
      • lexi-lambda
        Nope, all good from my end.
      • asumu
        tennix: re GUI, Racket uses native GUI libraries (and GTK on Linux/Unix).
      • electrum
        soegaard: What you suggested, the embedding the rows into the form, worked really well. Thanks for the help, and sorry for literally skipping town the minute you gave the answer. I was being hurried out of a class.
      • lexi-lambda
        cky: Added remove-first and remove-all after that conversation from the other day. :) http://lexi-lambda.github.io/racket-collections...
      • rudybot
      • vkirilichev joined the channel
      • vkirilichev joined the channel
      • endobson joined the channel
      • jusss joined the channel
      • jeapostrophe joined the channel
      • jeapostrophe has quit
      • jeapostrophe joined the channel
      • dan_f has quit
      • jbclements joined the channel
      • jeapostrophe has quit
      • electrum
        I've got a industry question concerning Racket. How much work here do people do with Racket? An interesting thing for me is, if I learn a language, what can I really do with it? I.e., am I going to have to write all my own libraries, is there a job for me?, etc.
      • jbclements has quit
      • m4burns has quit
      • m4burns joined the channel
      • numee has quit
      • Code_Man` joined the channel
      • soegaard has quit