samth changed the topic of #racket to: Racket v7.3 has been released: https://blog.racket-lang.org/2019/05/racket-v7-3.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
sagax has joined #racket
<sagax> hi all!
<sagax> how to inspect variable? how to get some like as type and struct?
<sagax> some like as - introspection
pera has quit [Ping timeout: 244 seconds]
YuGiOhJCJ has joined #racket
dharog has quit [Quit: WeeChat 2.2]
mfiano has quit [Quit: WeeChat 2.1]
selimcan has joined #racket
jokul has joined #racket
ZombieChicken has joined #racket
pera has joined #racket
selimcan has quit [Remote host closed the connection]
pera has quit [Quit: leaving]
selimcan has joined #racket
ubLIX has quit [Quit: ubLIX]
jonh has joined #racket
libertyprime has joined #racket
selimcan has quit [Ping timeout: 248 seconds]
<elcaro> sagax: apart from using things like (integer? x), you could try something like https://docs.racket-lang.org/describe
<sagax> now i read about struct, and i think it's great
keep_learning_M has quit [Quit: This computer has gone to sleep]
Lowl3v3l has joined #racket
keep_learning_M has joined #racket
orivej has quit [Ping timeout: 245 seconds]
dddddd has quit [Remote host closed the connection]
Lowl3v3l has quit [Remote host closed the connection]
Arcaelyx has quit [Ping timeout: 246 seconds]
q9929t has joined #racket
Arcaelyx has joined #racket
endformationage has quit [Ping timeout: 244 seconds]
q9929t has quit [Quit: q9929t]
keep_learning_M has quit [Quit: This computer has gone to sleep]
sauvin has joined #racket
mfiano has joined #racket
keep_learning_M has joined #racket
keep_learning_M has quit [Client Quit]
soegaard has joined #racket
soegaard has quit [Client Quit]
FreeFull has quit []
mSSM has joined #racket
pmatos has joined #racket
aquiandres has quit [Quit: Leaving]
fridim has joined #racket
jcowan has quit [Quit: Connection closed for inactivity]
cpup has quit [Ping timeout: 245 seconds]
keep_learning_M has joined #racket
keep_learning_M has quit [Client Quit]
orivej has joined #racket
libertyprime has quit [Ping timeout: 245 seconds]
zipper has joined #racket
cpach has joined #racket
euhmeuh has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
pie_ has quit [Ping timeout: 252 seconds]
vraid has joined #racket
keep_learning_M has joined #racket
jcowan has joined #racket
dddddd has joined #racket
<clacke_movim> dzoe: will check out scribble/srcdoc!
keep_learning_M has quit [Quit: This computer has gone to sleep]
ShalokShalom has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
zipper has quit [Ping timeout: 272 seconds]
iyzsong has joined #racket
zipper has joined #racket
dimitarvp has joined #racket
zipper has quit [Quit: WeeChat 2.5]
keep_learning_M has joined #racket
keep_learning_M has quit [Quit: This computer has gone to sleep]
keep_learning_M has joined #racket
miskatonic has joined #racket
Sgeo_ has quit [Read error: Connection reset by peer]
Sgeo_ has joined #racket
thawes has joined #racket
FreeFull has joined #racket
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
ubLIX has joined #racket
keep_learning_M has quit [Quit: This computer has gone to sleep]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
lockywolf has joined #racket
pie_ has joined #racket
rain1 has quit [Ping timeout: 248 seconds]
dimitarvp has quit [Read error: Connection reset by peer]
badkins has quit [Remote host closed the connection]
lockywolf has quit [Remote host closed the connection]
lockywolf has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #racket
badkins has joined #racket
rain1 has joined #racket
endformationage has joined #racket
ZombieChicken has quit [Ping timeout: 252 seconds]
ZombieChicken has joined #racket
jao has joined #racket
johnjay has quit [Ping timeout: 245 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
Arcaelyx has joined #racket
Arcaelyx has quit [Read error: Connection reset by peer]
Arcaelyx has joined #racket
Arcaelyx has quit [Read error: Connection reset by peer]
johnjay has joined #racket
Arcaelyx has joined #racket
iyzsong has quit [Ping timeout: 258 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
sz0 has quit [Quit: Connection closed for inactivity]
selimcan has joined #racket
Arcaelyx has joined #racket
selimcan has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
badkins has quit [Ping timeout: 272 seconds]
casaca has quit [Ping timeout: 268 seconds]
casaca has joined #racket
Arcaelyx has quit [Ping timeout: 248 seconds]
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 252 seconds]
sagax has quit [Ping timeout: 252 seconds]
zacts has quit [Quit: WeeChat 1.9.1]
johnjay has quit [Ping timeout: 268 seconds]
sagax has joined #racket
johnjay has joined #racket
vraid has quit [Quit: Leaving]
casaca has quit [Ping timeout: 252 seconds]
casaca has joined #racket
badkins has joined #racket
thawes has quit [Ping timeout: 258 seconds]
johnjay has quit [Ping timeout: 258 seconds]
johnjay has joined #racket
johnjay has quit [Excess Flood]
efm has joined #racket
iclon_ has joined #racket
johnjay has joined #racket
iclon has quit [Ping timeout: 248 seconds]
Arcaelyx has joined #racket
ziyourenxiang has quit [Ping timeout: 252 seconds]
vraid has joined #racket
dustyweb has quit [Remote host closed the connection]
dustyweb has joined #racket
dharog has joined #racket
keep_learning_M has joined #racket
johnjay has quit [Remote host closed the connection]
mrm has quit [Ping timeout: 258 seconds]
keep_learning_M has quit [Quit: This computer has gone to sleep]
johnjay has joined #racket
YuGiOhJCJ has joined #racket
dharog has quit [Ping timeout: 252 seconds]
dvdmuckle has quit [Quit: Bouncer Surgery]
johnjay has quit [Ping timeout: 252 seconds]
dvdmuckle has joined #racket
johnjay has joined #racket
notzmv has joined #racket
zipper has joined #racket
<zipper> dzoe: Okay looking at scribble/srcdoc and I can't figure out how to actually use it
<zipper> Will I need to use it's functions to generate my docs?
<zipper> "For an example use, see the "file" collection’s "gif.rkt" source file and the corresponding extraction in "scribblings/gif.scrbl"" Where?
sauvin has quit [Ping timeout: 252 seconds]
badkins has quit [Ping timeout: 258 seconds]
selimcan has joined #racket
johnjay has quit [Read error: No route to host]
johnjay has joined #racket
sz0 has joined #racket
soegaard has joined #racket
<zipper> Can anyone help me with scribble for inline docs as used here https://gist.github.com/urbanslug/af2fbc4e23dae3a8255bdc2169ffd92a
<selimcan> zipper, уот из зе проблем
<selimcan> What's the problem?
Sgeo_ has quit [Read error: Connection reset by peer]
<zipper> selimcan: Well I don't know how to document merge sort from main.scrbl
Sgeo_ has joined #racket
<zipper> I don't speak Russ
<selimcan> zipper, I was trying to figure out how to use scrdoc myself a few weeks ago
<zipper> selimcan: Yeah the docs did mention for-doc
<zipper> tbh racket docs aren't friendly to beginners at all
<zipper> Let me see
<selimcan> zipper, that's what dictionary.rkt renders to: http://taruen.com/apertiumpp/apertiumpp/
<selimcan> In short, it works fine, although there is some duplication in dictionary.rkt
<selimcan> I mean, both definitions and documentation is in a single place, although all of the functions and arguments get duplicated
<selimcan> Which might be not something you're looking for
<selimcan> Certainly there is a way to avoid that by writing macros
badkins has joined #racket
<selimcan> <selimcan> zipper, that's what dictionary.rkt renders to: http://taruen.com/apertiumpp/apertiumpp/
<zipper> selimcan: You still around?
urbanslug has joined #racket
<urbanslug> selimcan: still here?
zipper has quit [Ping timeout: 252 seconds]
urbanslug is now known as zipper
<selimcan> hey zipper yep
<selimcan> 'sup
<zipper> Let me push my stuff for you to see. One sec.
jao has quit [Ping timeout: 244 seconds]
soegaard has quit [Quit: soegaard]
<selimcan> zipper, not sure at this point
<dzoe> zipper: (provide (proc-doc/names .....))
<dzoe> And then in some scrbl file use @include-extracted[...]
<selimcan> zipper, indeed, seems to work without?
<selimcan> gotta run o/
selimcan has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
<zipper> dzoe: Sorry I have the worst internet connection
<zipper> My code here even expects to find main.rkt in the root dir first of all https://github.com/urbanslug/racket-algos/
<zipper> But it can't
<zipper> If I move the main.rkt to racket-algos
<zipper> *from
englishm has quit [Excess Flood]
englishm has joined #racket
englishm has quit [Excess Flood]
englishm has joined #racket
zipper has quit [Ping timeout: 252 seconds]
englishm has quit [Excess Flood]
englishm has joined #racket
englishm has quit [Excess Flood]
englishm has joined #racket
zipper has joined #racket
<zipper> dzoe: Sorry I have the worst connection. Did you see my question regarding https://github.com/urbanslug/racket-algos/ ?
zipper has quit [Ping timeout: 248 seconds]
zipper has joined #racket
lockywolf_ has quit [Read error: Connection reset by peer]
<dzoe> Yep
<dzoe> I'll clone it and look at it
<zipper> Okay I even tried adding a contact as explained in the doc
<zipper> Keep getting a syntax error
<zipper> dzoe: I pushed a commit containing the contract
<dzoe> Without the contract it cannot work
<zipper> Oh and forgot to push
<dzoe> I was just about to ask :)
<zipper> Just pushed
<zipper> The contract didn't help
<zipper> I'm running `scribble main.scrbl`
<dzoe> Got it
dvdmuckle has quit [Quit: Bouncer Surgery]
<dzoe> (provide (proc-doc/names merge-sort (-> list? list?) (l) @{Some documentation ... }))
<dzoe> This should be the right syntax.
dvdmuckle has joined #racket
<dzoe> (proc-doc/names identifier contract list-of-argument-identifiers documentation-text)
<zipper> Okay is there no other way?
<zipper> Something closer to a docstring?
<zipper> What if I have a lot of functions?
<zipper> Say two functions?
<dzoe> And the @{...} allows you to use scribble-like syntax.
<dzoe> (provide (proc-doc/names ...) (proc-doc/names ...) ... )
<dzoe> And all those form-doc, struct-doc ...
<dzoe> What do you mean by "docstring"?
ubLIX has quit [Quit: ubLIX]
<dzoe> Of course you can use "Some documentation" instead of @{} but @{} gives you way more possibilities.
<dzoe> Honestly I never used a string there ...
<zipper> dzoe: Let me show you a min
<zipper> A case where the documentation is within the fn
<zipper> or if I can write the conract with the fn and then scribble just uses that
<dzoe> Ah, not clojure, the semester has already entered :D
<zipper> dzoe: I was trying to give an example of a docstring
<dzoe> Ok, actually I don't see a difference here.
<dzoe> You provide the contract, the documentation and there is some syntax around that.
<zipper> Well in one case the doc is at the top of the module
<dzoe> No worries :) it's just that the students cannot grasp anything lisp-like and it gave me a headache this semester quite often.
Lowl3v3l has quit [Quit: Leaving.]
<zipper> dzoe: Oh you teach?
<dzoe> zipper: yep ... introductory course to algorithms at the local uni. First year / second semester students mostly. We use Clojure as they are going to need it in an AI class in the 5th semester.
<zipper> dzoe: WOW
<zipper> I'm struggling with some graph algorithms rn actually
<zipper> I can imagine how hard it is to learn algos in clj because most books have for and assignment.
<zipper> Took me a while to come up with the merge sort there LOL
<zipper> About the docs, what I meant was at least something like https://gist.github.com/urbanslug/af2fbc4e23dae3a8255bdc2169ffd92a#file-merge-sort-rkt-L7
<zipper> and if I could document the merge-sort fn from within the fn
<dzoe> I don't think that is possible in Racket.
<dzoe> The proc-doc provide form is the way to go.
<zipper> dzoe: Okay so say I want to document more than one fn how would I do it?
<zipper> One sec let me try it and fail
<dzoe> Actually I am pretty sure you can roll your own syntax to combine define+provide+proc-doc
<dzoe> And btw, merge-sort in clojure as an assignment gives headache to students, that's true :)
<dzoe> On the other hand, once they get past it, they are fine.
<dzoe> It's just different algorithm design than in imperative form.
<zipper> Unless I don't know how to write that contract
<zipper> Basically having multiple fns there
<zipper> nvm
<dzoe> You have to use (proc-doc...) for each function.
<dzoe> But they can be in single provide form.
<zipper> yeah I figured it out.
<zipper> Can I have mutiple provides?
<zipper> Yeah
<zipper> Seems it works
<zipper> So I can have the doc right above it
<zipper> Now the other issue LOL
<dzoe> Good :)
<zipper> Why can't I just move modules about in different dirs
kori has quit [Remote host closed the connection]
<zipper> dzoe: Might you have any idea why scribble insists on having the files be in the root?
<zipper> Probably something in my info.rkt
kori has joined #racket
zipper has quit [Ping timeout: 252 seconds]
urbanslug has joined #racket
urbanslug has quit [Client Quit]
YuGiOhJCJ has quit [Ping timeout: 260 seconds]
YuGiOhJCJ has joined #racket
jao has joined #racket
lockywolf has joined #racket
ubLIX has joined #racket
mSSM has quit [Ping timeout: 248 seconds]
jonh has left #racket ["WeeChat 1.9.1"]
vraid has quit [Ping timeout: 252 seconds]
keep_learning_M has joined #racket
keep_learning_M has quit [Quit: This computer has gone to sleep]
keep_learning_M has joined #racket