On Tuesday, July 25, 2017 at 9:07:14 AM UTC-7, Jens Axel Søgaard wrote:
> The Interaction Window in DrRacket supports snips, picts etc., so it is
> reasonable that is slower than a terminal.
> But ... maybe it is possible to let the user choose a simpler interaction
> window. One that only suppor
Yes, you can use DrRacket to debug the file at
collects/db/private/sqlite3/connection.rkt. That one is likely the most
relevant one for you.
Alternatively, you could wait till Racket 6.10 is released which is very soon I
think. The bug fixes to the db library might reveal the correct error mess
After some poking around, here is what I can offer:
#lang racket
(module predicates racket
(provide discrete-dist-thing?)
;; -
;; dependencies
(require math/distributions)
;; -
;; implementation
(define (discrete
> On Jul 28, 2017, at 11:23 AM, James Geddes wrote:
>
> This is likely a typed-untyped interface newbie question.
>
> Briefly, how can I write a contract that asserts that some value has a type
> that is defined in an imported typed/racket library?
>
> In more detail, I am using the math/dist
This is likely a typed-untyped interface newbie question.
Briefly, how can I write a contract that asserts that some value has a type
that is defined in an imported typed/racket library?
In more detail, I am using the math/distributions library, which is written in
typed/racket. My module is wr
Specifically, as Robby said earlier, `list?` is memoized, so e.g. (first
(rest (build-list 10 values))) only pays this price once. And `list?`
rejects pairs that have cycles.
-Philip
On Fri, Jul 28, 2017 at 5:51 AM, Matthias Felleisen
wrote:
>
> first and rest were introduced in the teaching la
first and rest were introduced in the teaching languages first when we decided
it was about principles of design and cadadar was cute but nobody should have
care.
first and rest are about lists in other languages and the names say so. car and
cdr are about pairs (not that their names say so)
It could have been. I am not sure why (but it probably had something to do
with better checking for the teaching languages, Matthias may recall more).
Robby
On Fri, Jul 28, 2017 at 4:19 AM Daniel Prager
wrote:
> Interesting stuff, but if I may probe a little deeper into scheme history,
> why co
As soon as I sent it, I saw I was conflating lists with what CL calls
proper lists. I'll just link:
http://docs.racket-lang.org/reference/pairs.html
http://clhs.lisp.se/Body/t_list.htm
http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_sec_6.3.2
--
You received this messag
Interesting stuff, but if I may probe a little deeper into scheme history,
why couldn't first have simply been defined as a synonym for car (i.e.
first item in a pair) and rest a synonym for cdr?
Dan
On Fri, Jul 28, 2017 at 6:09 PM, Neil Van Dyke wrote:
> Daniel Prager wrote on 07/28/2017 01:03
Daniel Prager wrote on 07/28/2017 01:03 AM:
> `first` and `rest` need to check if the input is a list.
Why is that?
When Racket/Scheme/Lisp people speak of checking whether something is a
list, I think they usually mean in the sense of the predicate `list?`
(or `listp`), which is usually an
In general what is the opinion on replacing `first` and `rest` with `car` and
`cdr`, when considering readability?
I find `first` and `rest` very readable and remember that I got quite confused
when I started learning Racket with all the cadrdrdrd ;) I still think `first`
and `rest` reads bette
On Friday, July 28, 2017 at 2:02:56 AM UTC+2, gustavo wrote:
> I agree with the in-list explanation, but I want to remark a few details.
>
> >> I don't really understand the (in-list ...) thing. This seems to be
> >> internal magic to me.
>
> `in-list` is not a function, it's a macro that looks
On Thursday, July 27, 2017 at 10:17:00 PM UTC+2, Daniel Prager wrote:
> > Wow, are those timings for the "big" data set?!
>
>
> I use 1/5 of the data as a training set, in line with my understanding of the
> original article, which splits it in 5.
>
> I use the remaining 4/5 as a single validat
14 matches
Mail list logo