[racket-users] Re: Package Providing results from another package

2017-01-26 Thread Jack Firth
Usually when this situation arises, the collection is divided as you suggest into a `foo/base` module that has minimal dependencies and a small "kernel" API, while various `foo/X` modules provide things that either are logically not necessary in the base API or may trigger large dependencies.

Re: [racket-users] class copy constructors

2017-01-26 Thread Steve Byan's Lists
Never mind, I got it: (define baz% (class object% (init (foo 0)) (define bar foo) (super-new) (define/public (get-bar) bar) (define/public (copy-baz) (new baz% [foo (+ (get-bar) 2)] > (define a (new baz%)) > (send a get-bar) 0 > (define b (send a copy-baz))

[racket-users] class copy constructors

2017-01-26 Thread Steve Byan's Lists
I'm trying to make some simple use of Racket's class and object system, but I'm having trouble using the documentation to figure out how to accomplish something. I want to create both a no-argument default constructor and a copy-constructor. I don't see how to accomplish that. If I declare an

[racket-users] Package Providing results from another package

2017-01-26 Thread Deren Dohoda
I have a collection based on polynomial code I wrote which I intend to release at some time in the near future for some simple data processing routines. The somewhat optimized underlying data structure for random access use of one of my procedures would be a tree, but the somewhat optimized

Re: [racket-users] Thread and filesystem watching

2017-01-26 Thread David Storrs
Thanks for the help, everyone. This works great. I especially like handle-evt -- I had seen it in the Reference when I was reading about events but didn't understand what it did. It really makes this easy. On Wed, Jan 25, 2017 at 8:17 PM, Jon Zeppieri wrote: > On Wed,

[racket-users] [ANN] Simple, Deterministic Sets (dset)

2017-01-26 Thread Andrew Kent
Sets now also have a deterministic variant. Installation: `raco pkg install dset` Documentation: http://docs.racket-lang.org/dset/index.html Contributions welcome! https://github.com/pnwamk/dset Best, Andrew -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] Editor-canvas% how to set default style and use set-line-count correctly?

2017-01-26 Thread WarGrey Gyoudmon Ju
On Fri, Jan 27, 2017 at 1:46 AM, WarGrey Gyoudmon Ju wrote: > > (send card insert (make-object string-snip% "it's a bug of text%, > snip's style is not (convert)ed, also affects the following inputs") > All right, it is not a bug, it's just how it works. the snip's style

Re: [racket-users] Editor-canvas% how to set default style and use set-line-count correctly?

2017-01-26 Thread WarGrey Gyoudmon Ju
Update: this solution does work. I just found the reason why it did not work before. (define digivice (new frame% [width 800] [height 600] [label "Standard Style"])) (define card (make-object text%)) (define darc (new editor-canvas% [parent digivice] [editor card] [style '(no-border auto-hscroll

Re: [racket-users] Editor-canvas% how to set default style and use set-line-count correctly?

2017-01-26 Thread WarGrey Gyoudmon Ju
I have these two helpers (typed racket makes it a little verbose). (define change-style : (->* ((Instance Style<%>)) (#:font (Option (Instance Font%)) #:color (Option (Instance Color%)) #:background-color

Re: [racket-users] Best practice for using .../private files from packages (pict3d)

2017-01-26 Thread WarGrey Gyoudmon Ju
How about merging these primitive geometry APIs into math-lib? On Thu, Jan 26, 2017 at 8:53 PM, Jay McCarthy wrote: > I think that it is quite common for a big library (especially > something really big like pict3d) to create a lot of residual useful > code that could

Re: [racket-users] Racket v6.8

2017-01-26 Thread Greg Trzeciak
On Wednesday, January 25, 2017 at 2:03:46 PM UTC+1, gustavo wrote: > Is it possible to offer to run the migrate process automatically > during the setup? I guess most users (i.e. me) expect and want it. > > It would be also useful to check that the user had at least installed > one package in the

Re: [racket-users] Best practice for using .../private files from packages (pict3d)

2017-01-26 Thread Jay McCarthy
I think that it is quite common for a big library (especially something really big like pict3d) to create a lot of residual useful code that could conceivably be their own libraries. I suggest either [2] or [3] or even a new package for some sort of more primitive notion of geometry. Jay On Thu,

[racket-users] Best practice for using .../private files from packages (pict3d)

2017-01-26 Thread Tim Brown
Folks, I want to access files from a “private” directory of a package -- in this case pict3d -- but I was wondering what the best way to do this is. First a bit of context: I am using the pict3d library for a project which allows me to render and experiment on various 3D models. As an

[racket-users] Editor-canvas% how to set default style and use set-line-count correctly?

2017-01-26 Thread Erich Rast
Hi, I have an editor-canvas% subclass and want to set the default style, but adding it with name "Standard" to the-style-list doesn't work. Do I have to replace the style list of the canvas with a new one? Or does the default style of an editor-canvas% have to be called differently? "Basic"?

Re: [racket-users] Auto-generating pdf/html from xml/ascii-Input based on racket/scribble/texlive...possible?

2017-01-26 Thread Daniel Brunner
Well, it depends a bit on your use case. I use Scribble nowadays for a lot of documentation tasks (taking notes at meetings with customer, documentation of software, technical papers, business related documents). I even managed to get Scribble to use our company's LaTeX class. Am 25.01.2017 um