Re: [racket-users] link: bad variable linkage

2016-01-31 Thread jon stenerson
The simplest thing I can find: I have three files in two directories. The first directory, called junk, contains a.rkt and b.rkt. The second directory is a sibling to junk called local-libs and contains c.rkt. (local-libs is known to the package manager; it was installed via the DrRacket interf

Re: [racket-users] link: bad variable linkage

2016-01-31 Thread Robby Findler
Then it would be helpful to us if you could provide some (hopefully small) program and instructions to reproduce the problem. Thanks, Robby On Sun, Jan 31, 2016 at 4:51 PM, jon stenerson wrote: > Just using DrRacket 6.3 on Win 10. > > Jon > > > On 1/31/2016 3:22 PM, Robby Findler wrote: >> >> T

Re: [racket-users] link: bad variable linkage

2016-01-31 Thread jon stenerson
Just using DrRacket 6.3 on Win 10. Jon On 1/31/2016 3:22 PM, Robby Findler wrote: The compilation of racket is (not yet) deterministic so things like that can throw off internal tables in the .zo files (and a .zo files is loaded without checking dependencies, optimistically hoping that the file

Re: [racket-users] link: bad variable linkage

2016-01-31 Thread Robby Findler
The compilation of racket is (not yet) deterministic so things like that can throw off internal tables in the .zo files (and a .zo files is loaded without checking dependencies, optimistically hoping that the files are not changed). So: are you using "raco make" or somehow mangaging .zo files your

[racket-users] link: bad variable linkage

2016-01-31 Thread jon stenerson
I have some .rkt files and, depending on which file was edited most recently, either it works fine or it gives a compilation error. (By "edited" I mean just adding or subtracting a blank line to change the timestamp). I can submit a simplified example if nobody else has seen this problem. If t

Re: [racket-users] Making a text editor

2016-01-31 Thread Vincent St-Amour
Have you looked at rmacs? https://github.com/tonyg/rmacs Vincent On Sun, 31 Jan 2016 13:42:23 -0600, Kevin Forchione wrote: > > Hi guys, > I’ve been perusing the documentation on Racket GUI and am interested in > making a text editor. Is there any source code to model from? The > documentat

Re: [racket-users] Making a text editor

2016-01-31 Thread Jens Axel Søgaard
Perhaps you can get some ideas here? https://github.com/soegaard/bracket/blob/master/gui/racket-cas.rkt#L411 It's not the best example, but I don't know of a "Notepad" application written in Racket. /Jens Axel 2016-01-31 20:42 GMT+01:00 Kevin Forchione : > Hi guys, > I’ve been perusing th

Re: [racket-users] Making a text editor

2016-01-31 Thread Matthias Felleisen
I would not use 2htdp/image and 2htdp/universe to implement an editor. Drop down to the GUI hierarchy instead, unless you means a one-line “thing” as presented HtDP/2e. > On Jan 31, 2016, at 2:42 PM, Kevin Forchione wrote: > > Hi guys, > I’ve been perusing the documentation on Racket GUI

[racket-users] Making a text editor

2016-01-31 Thread Kevin Forchione
Hi guys, I’ve been perusing the documentation on Racket GUI and am interested in making a text editor. Is there any source code to model from? The documentation got me started, but there are features such as indenting, line numbering and keybindings that I’m interested in implementing. I’ve done

Re: [racket-users] Standardizing the threading macro and organizing packages

2016-01-31 Thread Alexis King
> On Jan 29, 2016, at 21:55, Brian Adkins wrote: > > Was any consensus reached on this? I've been working through some exercises > in Racket that a friend is implementing in Elixir, and I just came across a > "method chaining" situation. I ended up simply writing a wrapper function, > but usin

Re: [racket-users] Looking for suggestion on accumulating the paths of Graph from HtDP

2016-01-31 Thread Matthias Felleisen
I think you may wish to read How to Design Programs. Here are something that are missing: — data definitions (what’s a graph? what’s a path) — signatures — examples — tests Once you supply those missing pieces, you will make much more progress. If you post those, we can also help you make

[racket-users] Re: appending files

2016-01-31 Thread Scotty C
On Sunday, January 31, 2016 at 12:13:31 AM UTC-6, Scotty C wrote: > > that's what i did. so new performance data. this is with bytes instead of > > strings for data on the hard drive but bignums in the hash still. > > > > as a single large file and a hash with 203 buckets for 26.6 million >

[racket-users] Re: Standardizing the threading macro and organizing packages

2016-01-31 Thread Greg Trzeciak
On Thursday, October 8, 2015 at 5:09:20 AM UTC+2, Alexis King wrote: > While in St. Louis, I had a brief conversation with Jay, Alex, and Jack about > how we all happen to have our own implementation of Clojure’s threading > macro. That macro is called -> in Clojure, but I believe Greg’s rackjure

Re: [racket-users] Using local-expand to mostly expand a module?

2016-01-31 Thread Matthew Flatt
I think you need to use a trampoline for the module body's expansion, where you expand only one module-body form at a time and let `#%module-begin` finish up forms like `require` or `define-syntaxes` before you macro continues with later forms. The general pattern is that you have a macro `do-modu