00:20
sagax has joined #racket
00:34
<
sagax >
how to inspect variable? how to get some like as type and struct?
00:38
<
sagax >
some like as - introspection
00:42
pera has quit [Ping timeout: 244 seconds]
00:46
YuGiOhJCJ has joined #racket
00:55
dharog has quit [Quit: WeeChat 2.2]
01:03
mfiano has quit [Quit: WeeChat 2.1]
01:04
selimcan has joined #racket
01:05
jokul has joined #racket
01:16
ZombieChicken has joined #racket
01:44
pera has joined #racket
01:45
selimcan has quit [Remote host closed the connection]
02:09
pera has quit [Quit: leaving]
02:21
selimcan has joined #racket
03:06
ubLIX has quit [Quit: ubLIX]
03:08
jonh has joined #racket
03:13
libertyprime has joined #racket
03:16
selimcan has quit [Ping timeout: 248 seconds]
03:19
<
sagax >
now i read about struct, and i think it's great
03:57
keep_learning_M has quit [Quit: This computer has gone to sleep]
04:00
Lowl3v3l has joined #racket
04:01
keep_learning_M has joined #racket
04:03
orivej has quit [Ping timeout: 245 seconds]
04:21
dddddd has quit [Remote host closed the connection]
04:37
Lowl3v3l has quit [Remote host closed the connection]
04:47
Arcaelyx has quit [Ping timeout: 246 seconds]
04:54
q9929t has joined #racket
05:05
Arcaelyx has joined #racket
05:05
endformationage has quit [Ping timeout: 244 seconds]
05:05
q9929t has quit [Quit: q9929t]
05:12
keep_learning_M has quit [Quit: This computer has gone to sleep]
05:16
sauvin has joined #racket
05:17
mfiano has joined #racket
05:23
keep_learning_M has joined #racket
05:27
keep_learning_M has quit [Client Quit]
05:28
soegaard has joined #racket
05:30
soegaard has quit [Client Quit]
07:00
FreeFull has quit []
07:14
mSSM has joined #racket
07:17
pmatos has joined #racket
07:18
aquiandres has quit [Quit: Leaving]
07:21
fridim has joined #racket
07:34
jcowan has quit [Quit: Connection closed for inactivity]
08:00
cpup has quit [Ping timeout: 245 seconds]
08:03
keep_learning_M has joined #racket
08:07
keep_learning_M has quit [Client Quit]
08:07
orivej has joined #racket
08:41
libertyprime has quit [Ping timeout: 245 seconds]
08:49
zipper has joined #racket
08:54
cpach has joined #racket
09:04
euhmeuh has joined #racket
09:25
manualcrank has quit [Quit: WeeChat 1.9.1]
09:45
zipper has quit [Ping timeout: 245 seconds]
09:47
zipper has joined #racket
09:47
pie_ has quit [Ping timeout: 252 seconds]
10:00
vraid has joined #racket
10:12
keep_learning_M has joined #racket
10:14
jcowan has joined #racket
10:21
dddddd has joined #racket
10:23
<
clacke_movim >
dzoe: will check out scribble/srcdoc!
10:24
keep_learning_M has quit [Quit: This computer has gone to sleep]
10:24
ShalokShalom has quit [Remote host closed the connection]
10:25
zipper has quit [Ping timeout: 245 seconds]
10:32
zipper has joined #racket
10:45
zipper has quit [Ping timeout: 272 seconds]
10:47
iyzsong has joined #racket
10:50
zipper has joined #racket
10:56
dimitarvp has joined #racket
11:15
zipper has quit [Quit: WeeChat 2.5]
11:24
keep_learning_M has joined #racket
12:14
keep_learning_M has quit [Quit: This computer has gone to sleep]
12:30
keep_learning_M has joined #racket
12:37
miskatonic has joined #racket
12:45
Sgeo_ has quit [Read error: Connection reset by peer]
12:45
Sgeo_ has joined #racket
12:54
thawes has joined #racket
13:17
FreeFull has joined #racket
13:18
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
13:22
ubLIX has joined #racket
13:28
keep_learning_M has quit [Quit: This computer has gone to sleep]
13:34
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
13:50
lockywolf has joined #racket
13:51
pie_ has joined #racket
13:52
rain1 has quit [Ping timeout: 248 seconds]
13:54
dimitarvp has quit [Read error: Connection reset by peer]
14:00
badkins has quit [Remote host closed the connection]
14:22
lockywolf has quit [Remote host closed the connection]
14:22
lockywolf has joined #racket
14:29
iyzsong has joined #racket
14:35
badkins has joined #racket
14:38
rain1 has joined #racket
14:41
endformationage has joined #racket
14:45
ZombieChicken has quit [Ping timeout: 252 seconds]
14:48
ZombieChicken has joined #racket
14:58
jao has joined #racket
15:02
johnjay has quit [Ping timeout: 245 seconds]
15:03
Arcaelyx has quit [Read error: Connection reset by peer]
15:05
Arcaelyx has joined #racket
15:06
Arcaelyx has quit [Read error: Connection reset by peer]
15:11
Arcaelyx has joined #racket
15:11
Arcaelyx has quit [Read error: Connection reset by peer]
15:12
johnjay has joined #racket
15:14
Arcaelyx has joined #racket
15:14
iyzsong has quit [Ping timeout: 258 seconds]
15:14
Arcaelyx has quit [Read error: Connection reset by peer]
15:19
sz0 has quit [Quit: Connection closed for inactivity]
15:33
selimcan has joined #racket
15:34
Arcaelyx has joined #racket
15:36
selimcan has quit [Remote host closed the connection]
15:38
Lowl3v3l has joined #racket
15:46
badkins has quit [Ping timeout: 272 seconds]
15:50
casaca has quit [Ping timeout: 268 seconds]
15:52
casaca has joined #racket
15:53
Arcaelyx has quit [Ping timeout: 248 seconds]
15:58
lockywolf_ has joined #racket
16:00
lockywolf has quit [Ping timeout: 252 seconds]
16:13
sagax has quit [Ping timeout: 252 seconds]
16:18
zacts has quit [Quit: WeeChat 1.9.1]
16:23
johnjay has quit [Ping timeout: 268 seconds]
16:23
sagax has joined #racket
16:31
johnjay has joined #racket
16:42
vraid has quit [Quit: Leaving]
16:44
casaca has quit [Ping timeout: 252 seconds]
16:46
casaca has joined #racket
16:47
badkins has joined #racket
16:52
thawes has quit [Ping timeout: 258 seconds]
16:54
johnjay has quit [Ping timeout: 258 seconds]
16:57
johnjay has joined #racket
17:01
johnjay has quit [Excess Flood]
17:10
efm has joined #racket
17:17
iclon_ has joined #racket
17:19
johnjay has joined #racket
17:20
iclon has quit [Ping timeout: 248 seconds]
17:26
Arcaelyx has joined #racket
17:28
ziyourenxiang has quit [Ping timeout: 252 seconds]
17:28
vraid has joined #racket
17:39
dustyweb has quit [Remote host closed the connection]
17:39
dustyweb has joined #racket
17:48
dharog has joined #racket
17:48
keep_learning_M has joined #racket
17:49
johnjay has quit [Remote host closed the connection]
17:53
mrm has quit [Ping timeout: 258 seconds]
17:56
keep_learning_M has quit [Quit: This computer has gone to sleep]
17:57
johnjay has joined #racket
17:58
YuGiOhJCJ has joined #racket
18:05
dharog has quit [Ping timeout: 252 seconds]
18:06
dvdmuckle has quit [Quit: Bouncer Surgery]
18:07
johnjay has quit [Ping timeout: 252 seconds]
18:08
dvdmuckle has joined #racket
18:10
johnjay has joined #racket
18:16
notzmv has joined #racket
18:22
zipper has joined #racket
18:24
<
zipper >
dzoe: Okay looking at scribble/srcdoc and I can't figure out how to actually use it
18:24
<
zipper >
Will I need to use it's functions to generate my docs?
18:25
<
zipper >
"For an example use, see the "file" collection’s "gif.rkt" source file and the corresponding extraction in "scribblings/gif.scrbl"" Where?
18:29
sauvin has quit [Ping timeout: 252 seconds]
18:33
badkins has quit [Ping timeout: 258 seconds]
18:33
selimcan has joined #racket
18:48
johnjay has quit [Read error: No route to host]
18:49
johnjay has joined #racket
18:51
sz0 has joined #racket
19:00
soegaard has joined #racket
19:03
<
selimcan >
zipper, уот из зе проблем
19:04
<
selimcan >
What's the problem?
19:04
Sgeo_ has quit [Read error: Connection reset by peer]
19:04
<
zipper >
selimcan: Well I don't know how to document merge sort from main.scrbl
19:04
Sgeo_ has joined #racket
19:04
<
zipper >
I don't speak Russ
19:05
<
selimcan >
zipper, I was trying to figure out how to use scrdoc myself a few weeks ago
19:06
<
zipper >
selimcan: Yeah the docs did mention for-doc
19:06
<
zipper >
tbh racket docs aren't friendly to beginners at all
19:06
<
zipper >
Let me see
19:07
<
selimcan >
In short, it works fine, although there is some duplication in dictionary.rkt
19:08
<
selimcan >
I mean, both definitions and documentation is in a single place, although all of the functions and arguments get duplicated
19:08
<
selimcan >
Which might be not something you're looking for
19:09
<
selimcan >
Certainly there is a way to avoid that by writing macros
19:10
badkins has joined #racket
19:21
<
zipper >
selimcan: You still around?
19:23
urbanslug has joined #racket
19:27
<
urbanslug >
selimcan: still here?
19:27
zipper has quit [Ping timeout: 252 seconds]
19:27
urbanslug is now known as zipper
19:27
<
selimcan >
hey zipper yep
19:29
<
zipper >
Let me push my stuff for you to see. One sec.
19:34
jao has quit [Ping timeout: 244 seconds]
19:36
soegaard has quit [Quit: soegaard]
19:39
<
selimcan >
zipper, not sure at this point
19:39
<
dzoe >
zipper: (provide (proc-doc/names .....))
19:39
<
dzoe >
And then in some scrbl file use @include-extracted[...]
19:39
<
selimcan >
zipper, indeed, seems to work without?
19:40
<
selimcan >
gotta run o/
19:40
selimcan has quit [Remote host closed the connection]
19:47
zipper has quit [Ping timeout: 245 seconds]
19:48
zipper has joined #racket
19:48
<
zipper >
dzoe: Sorry I have the worst internet connection
19:48
<
zipper >
But it can't
19:49
<
zipper >
If I move the main.rkt to racket-algos
19:52
englishm has quit [Excess Flood]
19:52
englishm has joined #racket
19:53
englishm has quit [Excess Flood]
19:53
englishm has joined #racket
19:54
zipper has quit [Ping timeout: 252 seconds]
19:54
englishm has quit [Excess Flood]
19:54
englishm has joined #racket
19:55
englishm has quit [Excess Flood]
19:55
englishm has joined #racket
19:55
zipper has joined #racket
20:02
zipper has quit [Ping timeout: 248 seconds]
20:04
zipper has joined #racket
20:05
lockywolf_ has quit [Read error: Connection reset by peer]
20:07
<
dzoe >
I'll clone it and look at it
20:09
<
zipper >
Okay I even tried adding a contact as explained in the doc
20:09
<
zipper >
Keep getting a syntax error
20:11
<
zipper >
dzoe: I pushed a commit containing the contract
20:11
<
dzoe >
Without the contract it cannot work
20:12
<
zipper >
Oh and forgot to push
20:12
<
dzoe >
I was just about to ask :)
20:12
<
zipper >
Just pushed
20:12
<
zipper >
The contract didn't help
20:12
<
zipper >
I'm running `scribble main.scrbl`
20:14
dvdmuckle has quit [Quit: Bouncer Surgery]
20:14
<
dzoe >
(provide (proc-doc/names merge-sort (-> list? list?) (l) @{Some documentation ... }))
20:15
<
dzoe >
This should be the right syntax.
20:15
dvdmuckle has joined #racket
20:15
<
dzoe >
(proc-doc/names identifier contract list-of-argument-identifiers documentation-text)
20:15
<
zipper >
Okay is there no other way?
20:16
<
zipper >
Something closer to a docstring?
20:16
<
zipper >
What if I have a lot of functions?
20:16
<
zipper >
Say two functions?
20:16
<
dzoe >
And the @{...} allows you to use scribble-like syntax.
20:17
<
dzoe >
(provide (proc-doc/names ...) (proc-doc/names ...) ... )
20:17
<
dzoe >
And all those form-doc, struct-doc ...
20:17
<
dzoe >
What do you mean by "docstring"?
20:17
ubLIX has quit [Quit: ubLIX]
20:18
<
dzoe >
Of course you can use "Some documentation" instead of @{} but @{} gives you way more possibilities.
20:18
<
dzoe >
Honestly I never used a string there ...
20:19
<
zipper >
dzoe: Let me show you a min
20:20
<
zipper >
A case where the documentation is within the fn
20:22
<
zipper >
or if I can write the conract with the fn and then scribble just uses that
20:23
<
dzoe >
Ah, not clojure, the semester has already entered :D
20:23
<
zipper >
dzoe: I was trying to give an example of a docstring
20:23
<
dzoe >
Ok, actually I don't see a difference here.
20:24
<
dzoe >
You provide the contract, the documentation and there is some syntax around that.
20:24
<
zipper >
Well in one case the doc is at the top of the module
20:24
<
dzoe >
No worries :) it's just that the students cannot grasp anything lisp-like and it gave me a headache this semester quite often.
20:24
Lowl3v3l has quit [Quit: Leaving.]
20:25
<
zipper >
dzoe: Oh you teach?
20:26
<
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.
20:28
<
zipper >
I'm struggling with some graph algorithms rn actually
20:28
<
zipper >
I can imagine how hard it is to learn algos in clj because most books have for and assignment.
20:28
<
zipper >
Took me a while to come up with the merge sort there LOL
20:29
<
zipper >
and if I could document the merge-sort fn from within the fn
20:30
<
dzoe >
I don't think that is possible in Racket.
20:30
<
dzoe >
The proc-doc provide form is the way to go.
20:30
<
zipper >
dzoe: Okay so say I want to document more than one fn how would I do it?
20:31
<
zipper >
One sec let me try it and fail
20:31
<
dzoe >
Actually I am pretty sure you can roll your own syntax to combine define+provide+proc-doc
20:32
<
dzoe >
And btw, merge-sort in clojure as an assignment gives headache to students, that's true :)
20:32
<
dzoe >
On the other hand, once they get past it, they are fine.
20:32
<
dzoe >
It's just different algorithm design than in imperative form.
20:35
<
zipper >
Unless I don't know how to write that contract
20:36
<
zipper >
Basically having multiple fns there
20:37
<
dzoe >
You have to use (proc-doc...) for each function.
20:37
<
dzoe >
But they can be in single provide form.
20:39
<
zipper >
yeah I figured it out.
20:39
<
zipper >
Can I have mutiple provides?
20:40
<
zipper >
Seems it works
20:40
<
zipper >
So I can have the doc right above it
20:40
<
zipper >
Now the other issue LOL
20:40
<
zipper >
Why can't I just move modules about in different dirs
20:47
kori has quit [Remote host closed the connection]
20:48
<
zipper >
dzoe: Might you have any idea why scribble insists on having the files be in the root?
20:48
<
zipper >
Probably something in my info.rkt
20:51
kori has joined #racket
21:01
zipper has quit [Ping timeout: 252 seconds]
21:01
urbanslug has joined #racket
21:02
urbanslug has quit [Client Quit]
21:15
YuGiOhJCJ has quit [Ping timeout: 260 seconds]
21:16
YuGiOhJCJ has joined #racket
21:29
jao has joined #racket
22:07
lockywolf has joined #racket
22:16
ubLIX has joined #racket
22:23
mSSM has quit [Ping timeout: 248 seconds]
22:28
jonh has left #racket ["WeeChat 1.9.1"]
22:54
vraid has quit [Ping timeout: 252 seconds]
23:06
keep_learning_M has joined #racket
23:34
keep_learning_M has quit [Quit: This computer has gone to sleep]
23:57
keep_learning_M has joined #racket