lexi-lambda changed the topic of #racket to: Racket v7.5 has been released: https://blog.racket-lang.org/2019/11/racket-v7-5.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
FreeFull has quit []
badkins has quit [Remote host closed the connection]
pie_ has joined #racket
badkins has joined #racket
p4bl0 has quit [Quit: WeeChat 2.3]
badkins has quit [Ping timeout: 265 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 268 seconds]
pie_ has quit [Quit: pie_]
badkins has joined #racket
orivej has joined #racket
catonano_ has joined #racket
badkins has quit [Ping timeout: 260 seconds]
catonano has quit [Ping timeout: 265 seconds]
catonano_ is now known as catonano
orivej has quit [Ping timeout: 240 seconds]
sword865 has joined #racket
pie_ has joined #racket
pie_ has quit [Client Quit]
brettgilio has quit [Quit: Quit]
libertyprime has joined #racket
ArneBab_ has quit [Ping timeout: 248 seconds]
badkins has joined #racket
k_sze has joined #racket
<k_sze> What is natipkg?
<k_sze> And why is --enable-shared not recommended when building racket?
badkins has quit [Ping timeout: 265 seconds]
<k_sze> (on Linux, let's say)
aidalgol has quit [Remote host closed the connection]
aidalgol has joined #racket
dddddd has quit [Ping timeout: 260 seconds]
<lexi-lambda> k_sze: This page has some information about natipkg in the section “Working with Native Libraries”: https://pkg-build.racket-lang.org/about.html
brettgilio has joined #racket
<k_sze> Thanks
tazmanoo has joined #racket
lockywolf_ has joined #racket
tazmanoo has quit [Quit: leaving]
brettgilio has quit [Ping timeout: 246 seconds]
brettgilio has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 258 seconds]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
libertyprime has quit [Ping timeout: 260 seconds]
libertyprime has joined #racket
orivej has joined #racket
libertyprime has quit [Quit: leaving]
wingsorc has quit [Ping timeout: 248 seconds]
endformationage has quit [Quit: WeeChat 2.6]
badkins has joined #racket
narimiran has joined #racket
badkins has quit [Ping timeout: 258 seconds]
lockywolf__ has quit [Ping timeout: 258 seconds]
lockywolf_ has joined #racket
orivej has quit [Ping timeout: 268 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
orivej has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
lockywolf_ has quit [Ping timeout: 260 seconds]
pounce has quit [Ping timeout: 250 seconds]
mzan has joined #racket
true-grue has joined #racket
mzan has quit [Ping timeout: 260 seconds]
iyzsong has joined #racket
mzan has joined #racket
ayerhart has quit [Quit: ayerhart]
cantstanya has quit [Ping timeout: 240 seconds]
mario-goulart has quit [Ping timeout: 240 seconds]
ayerhart has joined #racket
cantstanya has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
pilne has quit [Quit: Beware of programmers who carry screwdrivers.]
_whitelogger has joined #racket
vraid has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
dddddd has joined #racket
notzmv has quit [Ping timeout: 268 seconds]
_whitelogger has joined #racket
mario-goulart has joined #racket
AnimalClatter has joined #racket
AnimalClatter has left #racket [#racket]
sword865 has quit [Quit: Connection closed for inactivity]
catonano has quit [Quit: catonano]
mzan has quit [Quit: Leaving]
ziyourenxiang has quit [Quit: Leaving]
ziyourenxiang has joined #racket
cantstanya has quit [Ping timeout: 240 seconds]
wingsorc has joined #racket
cantstanya has joined #racket
orivej has quit [Ping timeout: 268 seconds]
ziyourenxiang has quit [Ping timeout: 240 seconds]
badkins has joined #racket
endobson has joined #racket
vraid has quit [Quit: Leaving]
aidalgol has quit [Ping timeout: 240 seconds]
mzan has joined #racket
pilne has joined #racket
FreeFull has joined #racket
vraid has joined #racket
sleepnap has joined #racket
aidalgol has joined #racket
Lowl3v3l has joined #racket
sauvin has quit [Ping timeout: 265 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sleepnap has left #racket [#racket]
Codaraxis has quit [Ping timeout: 265 seconds]
<samth> greghendershott: is eldoc somehow unable to use the information provided by racket-describe?
aidalgol has quit [Write error: Connection reset by peer]
badkins has joined #racket
efm has quit [Quit: Konversation terminated!]
camelCaser has quit [Ping timeout: 258 seconds]
camelCaser has joined #racket
Codaraxis has joined #racket
Codaraxis has quit [Remote host closed the connection]
Codaraxis has joined #racket
acummings has quit [Ping timeout: 258 seconds]
badkins has quit [Remote host closed the connection]
narimiran has quit [Ping timeout: 260 seconds]
badkins has joined #racket
eigenlicht has joined #racket
<eigenlicht> How to limit maximum recursion depth?
<dzoe> samth: thanks for the merge - but now it keeps me wondering whether flonums and extflonums documentation shouldn't state roughly the same ...
<samth> dzoe: i'm skeptical that the approach described in the docs is really a good one at all -- I've written a lot of code with unsafe and I basically never do that except when I'm trying to shrink code artificically
<samth> so I'm fine with just keeping it in the fixnum docs
<dzoe> However I am not using those actively in any current project and therefore I am not inclined to suggest changes I didn't "test" (as in actual real project)
<dzoe> I actually ended up with https://github.com/dzoep/futures-sort/blob/master/main.rkt#L10 - as the unsafe-vector-... is actually useful.
<dzoe> I like the thing that you can simply revert back to fx... and other safe versions and immediately get reasonable error messages.
<eigenlicht> Is there a way to set maximum recursion depth in racket?
<dzoe> And the accidental require of unsafe-vector-ref taught me that there are places where ->i is REALLY a good idea.
<dzoe> eigenlicht: You mean like setting a hard limit? I do not think so.
<eigenlicht> dzoe, then how can I make unit tests that can handle infinte recursion?
<vraid> eigenlicht: since recursion is a fundamental part of control flow, that seems like it could backfire
<dzoe> I would try something like (define (fact n) (displayln (length (continuation-mark-set->context (current-continuation-marks)))) (if (> n 0) (* n (fact (sub1 n))) 1)) if you really need it.
<dzoe> Try (fact 10) and see how the call stack grows.
<dzoe> But - as vraid has pointed out - I would be careful or it will backfire.
<eigenlicht> dzoe, is there a way to set at least a timeout?
<dzoe> eigenlicht: You can always spawn a thread and kill it after given amount of time.
<eigenlicht> dzoe, you mean I should use (require racket/engine)?
<vraid> possibly also rewrite the recursive functions to take an optional countdown argument..
<dzoe> eigenlicht: I would probably have to see the actual code to think about what may help here
Codaraxis has quit [Ping timeout: 260 seconds]
<eigenlicht> dzone, I just need to test solution of students on my unit tests (RackUnit), but I need handle inf recursion too.
notzmv has joined #racket
<eigenlicht> dzone, I thought there is an easy solution to this problem, but there isn't.
badkins has quit [Remote host closed the connection]
badkins has joined #racket
lockywolf_ has joined #racket
<dzoe> But if the recursive call is at the tail position, it does not nest in the call stack anyway.
<dzoe> So you definitely need to create some timeout constrain.
<dzoe> ephemeron: https://docs.racket-lang.org/reference/sync.html?q=namespace#%28def._%28%28quote._~23~25kernel%29._sync%2Ftimeout%29%29
<dzoe> Just run the rackunit test in a thread and the tread itself is an synchronizable event on which you can use sync/timeout.
<vraid> how would you test whether a solution is correct if it doesn't run to its end
<dzoe> I would assume it is more about students works hanging the grading framework...
<vraid> in that case, a timeout seems appropriate
badkins has quit [Remote host closed the connection]
<dzoe> eigenlicht: ^^
<dzoe> My <tab>-completion gets confused as midnight is approaching
Codaraxis has joined #racket
mzan has quit [Quit: Leaving]
lockywolf_ has quit [Ping timeout: 258 seconds]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
<lexi-lambda> eigenlicht: you want racket/sandbox, which can set both time and memory limits on execution
badkins has quit [Ping timeout: 260 seconds]
<lexi-lambda> an infinite loop will hit the timeout if the calls are tail calls and possibly the memory limit if they aren’t
<eigenlicht> thank you, everyone
<eigenlicht> lexi-lambda, thank you, will check out later
true-grue has quit [Read error: Connection reset by peer]