Re: [racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Erich Rast
@gmail.com wrote: > Maybe: raco setup --doc-index > > On Thu, Nov 25, 2021 at 11:28 AM Stephen De Gabrielle > wrote: > >> My first guess would be to use raco to rebuild the docs - but I can’t >> remember the exact command. It’s probably in raco pkg >> >> &

[racket-users] Help not working after fresh installation of Racket 8.3

2021-11-25 Thread Erich Rast
On Linux Mint I installed Racket 8.3 as usual in local folder /home/nemo/racket. Now when I try to access the help in the browser (recent version of Firefox), any link I click results in an error message, for example: *Could not display "/home/nemo/racket/doc/quick/-index.html" The location is

[racket-users] Scribble warnings in package documentation

2018-09-26 Thread Erich Rast
I have a long package documentation and get lots of warnings - see below. Other than that, the docs work fine, should/can I ignore them? What do they mean anyway? Best, Erich WARNING: collected information for key multiple times: '(exporting-libraries #f); values: '(appy/gui) '(appy) WARNING:

Re: [racket-users] Scribble how to fix red underline keywords?

2018-09-04 Thread Erich Rast
Nevermind, I've got it working. I used the wrong for-label require after defmodule - with a relative path instead of an absolute path, as the manual says. It works fine now. Best, Erich On Tue, 4 Sep 2018 14:28:20 +0100 Erich Rast wrote: > Hi! I'm new to scribble and try to fix

[racket-users] Scribble how to fix red underline keywords?

2018-09-04 Thread Erich Rast
Hi! I'm new to scribble and try to fix keywords that are underlined in red. My package is called appy and appy/gui. These export all classes and other bindings of the package. In the scribble document I tried both: @(require (for-label racket) (for-label "../gui.rkt")) and @(require

Re: [racket-users] Where to put scribblings in 'multi package?

2018-08-29 Thread Erich Rast
On Wed, 29 Aug 2018 06:46:49 -0500 Philip McGrath wrote: > You don't need a multi-collection package to do this. If your > structure is: > > appy/ > | > |--info.rkt > |--main.rkt > |--gui.rkt > |--… > > Then `(require appy)` will import "main.rkt" and `(require appy/gui)` > will import "gui.rk

Re: [racket-users] Where to put scribblings in 'multi package?

2018-08-29 Thread Erich Rast
Thanks a lot Philip and Ryan! Splitting up the info.rkt file worked fine. The reason why I want this to be a multi-collection package is that the framework without anything gui-related is fairly small and should be required by default as (require appy). The GUI-related extensions on the other hand

[racket-users] Where to put scribblings in 'multi package?

2018-08-29 Thread Erich Rast
scrbl And "info.rkt" looks like this: #lang info (define version "0.1") (define pkg-desc "a framework for cross-platform end-user applications and their deployment") (define collection 'multi) (define distribution-preference 'source) (define pkg-authors &#

Re: [racket-users] Notifier/subscriber pattern, preventing event cycles: What's the best practice?

2018-08-09 Thread Erich Rast
On Wed, 8 Aug 2018 19:36:10 -0400 David Vanderson wrote: > > Is there a better solution to this problem? How do mature > > notifier/subscriber frameworks deal with these kind of problems? > > > The most straightforward solution I've seen puts the responsibility > on the view.  When the view get

[racket-users] Notifier/subscriber pattern, preventing event cycles: What's the best practice?

2018-08-08 Thread Erich Rast
I'm implementing a global blackboard for posting events and subscribing to them and I'm wondering about the best method to prevent cycles. Since this is e.g. for 'model-change and 'view-change events, I cannot generally guarantee that clients (subscribers or notifiers) have a "direct program flow"

[racket-users] Find out whether the debugger is running

2018-08-07 Thread Erich Rast
Hi! Is there a reliable way to find out whether a racket program is currently running in the debugger? I've got a deployment function that fails with a cryptic error message when the language is set to debugging in DrRacket and would like to print a warning in that case. Deployment ought be with

Re: [racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
te: > The arrows, docs information, etc that Check Syntax draws use a > data/interval-map to manage that kind of information on the side. > > https://docs.racket-lang.org/data/interval-map.html > > hth, > Robby > > On Fri, Jan 5, 2018 at 8:58 AM, Erich Rast wrote: >

[racket-users] Adding custom payload data to text%

2018-01-05 Thread Erich Rast
Hi all, Is there a way to associate custom payload data to individual characters and image snips in a text% instance? Maybe some package or framework class that already exists? I'd like to add custom data that is independent of styles but behaves like them. Basically, I need to keep track of arbi

Re: [racket-users] Editor-canvas% and transparent style = black?

2017-11-07 Thread Erich Rast
Here is how it looks on my machine: https://vimeo.com/241738557 On Tue, 7 Nov 2017 17:57:27 + Erich Rast wrote: > I thought this was a known bug that just never gets fixed. This has > given a black canvas when you click into the editor on my machine for > ages: > > #

Re: [racket-users] Editor-canvas% and transparent style = black?

2017-11-07 Thread Erich Rast
d frame show #t) On Tue, 07 Nov 2017 17:44:07 + Stephen De Gabrielle wrote: > If you pop you code on pasterack or a gist I’ll test on OS X and > windows > > S. > > On Tue, 7 Nov 2017 at 15:49, Erich Rast wrote: > > > Hi! > > > > This is something I&#

[racket-users] Editor-canvas% and transparent style = black?

2017-11-07 Thread Erich Rast
Hi! This is something I've been wondering for a while already but never had time to ask. When an editor-canvas% is set to transparent in its style list, and I type in it, then the whole editor gets black and nothing can be seen. Shouldn't it be gray, as the window background so it looks as if yo

[racket-users] Can this be optimized?

2017-09-26 Thread Erich Rast
According to profiling, the following sxml-handling function (consolidate sxp) is a major bottleneck in my application. It reduces all subsequent sxml text elements with the same attributes to one and is part of exporting from text% to xml. I'm not used to optimizing Racket code. Does somebody ha

Re: [racket-users] Printing Quickly

2017-07-25 Thread Erich Rast
This is difficult, since text% and everything on top of it is unfortunately rather slow and complex. My best advice is to limit or structure the amount of information displayed by the program, since the end user (including you) is likely even slower in parsing the information than racket is display

[racket-users] Putting everything in a single monolithic source file

2017-07-21 Thread Erich Rast
I'm using mostly racket-mode in emacs for development and even with helm and projectile mode greping info from the source directory is cumbersome. So I was thinking about putting my entire project into one source file with lots of explicit (module ...) declarations. This doesn't break modularity, I

[racket-users] Question about text% undo and on-change

2017-07-04 Thread Erich Rast
I have to integrate the undo/redo functionality of text% into a custom undo/redo system, because in my application nearly everything is undoable. Basically I need a reliable way to intercept and track the text%'s undo additions, so I can add an undoer to my undo system whenever text% adds an inter

[racket-users] Merging all snips in text% that can be merged

2017-06-15 Thread Erich Rast
Hi! Question: Is there some method to automatically merge all snips that can be merged? I haven't found it in the docs. If there is none, I'll do it with merge-with in snip% or in my xexpr directly that I'm using on top of text% as an exchange format. I was just wondering if I'm missing something

Re: [racket-users] Html to text, how to obtain a rough preview

2017-06-01 Thread Erich Rast
pict:show-pict img Best, Erich On Wed, 31 May 2017 01:34:26 -0400 Neil Van Dyke wrote: > Erich Rast wrote on 05/30/2017 04:37 PM: > > I've found out that it's far less trivial than expected, but not > > because of sxml or the tree walking itself. Often call/input-url

Re: [racket-users] Html to text, how to obtain a rough preview

2017-05-30 Thread Erich Rast
On Tue, 30 May 2017 11:30:00 -0400 Neil Van Dyke wrote: > Writing a procedure that does what you want should be pretty easy, > and then you can fine-tune it to your particular application. Recall > that SXML is mostly old-school Lisp lists. The procedure is mostly > just a straightforward recurs

[racket-users] Html to text, how to obtain a rough preview

2017-05-30 Thread Erich Rast
Hi all, I need a function to provide a rough textual preview (without formatting except newlines) of the content of a web page. So far I'm using this: (require net/url html-parsing sxml) (provide fetch fetch-string-content) (define (fetch url) (call/input-url url

[racket-users] Convert mouse coordinates in mouse-event% to window coordinates? And also for snip%...

2017-05-23 Thread Erich Rast
Hi, For me personally, coordinates are probably the most unintuitive aspect of Racket's GUI management. The problem comes up again and again, and I never get it right, so maybe someone can clarify this once and for all. I have a mouse-event% in on-event of a snip% and would like to display a floa

[racket-users] A new OOP programming construct? [slightly long post]

2017-03-30 Thread Erich Rast
Dear all, This is something I've been wondering for a long time and at the same time it's a suggestion for implementation, since I'm not familiar enough with higher Racket macrology. Often when I define a class it contains instances of other classes. To access them as a user of an instance of the

Re: [racket-users] Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
I found an easy solution that does what I want it do to. It's only suitable for non-editable snips, of course. Instead of checking whether draw-caret is a pair in draw, I simply use (not (equal? draw-caret 'no-caret)) That does the job. As for keyboard events, I think I'll handle them in the sn

Re: [racket-users] Re: Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
On Thu, 2 Mar 2017 03:32:08 -0800 (PST) Alex Harsanyi wrote: > You need to tell the snip admin that the snip needs to be redrawn. > In your select-this-snip method, add > > (send (get-admin) needs-update this 0 0 width height) > It still doesn't work. I'm using this: (define/public (sele

[racket-users] Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
Hi! I have a simple non-editable and non-resizable snip% class that in its draw function distinguishes whether it's selected or not. It works fine when I select it in a text% with the mouse. Now I want to select it in the text% when the user left-clicks on it, so I've overridden on-event and tried

[racket-users] Adding right-click functionality in a list-box%

2017-02-23 Thread Erich Rast
While I'm working on GUI issues another question came up. Is there a way to add right-click functionality to a list-box? I'd like the selection to jump to the respective row on a right-click (btw, right-clicking does change the selection when the list-box gets focus but not afterwards), and *then*

Re: [racket-users] Resize panels inside panels

2017-02-23 Thread Erich Rast
Your example works and made me realize that I've accidentally removed a list-box *inside* the panel rather than the panel itself in my application. No wonder it didn't work! Thank you so much! Best, Erich On Thu, 23 Feb 2017 05:17:23 -0700 Matthew Flatt wrote: > If so, is there a change that

[racket-users] Resize panels inside panels

2017-02-23 Thread Erich Rast
I have an editor-canvas A subclasses inside a vertical-panel subclass B and below A there is another vertical-panel subclass C in B. C is shown or hidden by removing and adding it via change-children in B. However, even though A has stretchable-height set to #t, it does not resize to fill the who

Re: [racket-users] How to attach all modules required by the current module to a namespace and then namespace-require them

2017-02-09 Thread Erich Rast
o get a reference to the enclosing module, and use > `module-path-index-join` on that value and "../core/internat.rkt" > to get a reference to the "../core/internat.rkt" module. > > At Thu, 9 Feb 2017 12:25:35 +, Erich Rast wrote: > > Out of general curiosity I&

[racket-users] How to attach all modules required by the current module to a namespace and then namespace-require them

2017-02-09 Thread Erich Rast
Out of general curiosity I'm still trying to figure out how a dynamic plugin system would work. So now I'd like to namespace-attach-module for all modules that the current module imports (and their submodules), and then namespace-require them. The problem is that I don't know how to attach modules

Re: [racket-users] How to implement a dynamic plugin system?

2017-02-08 Thread Erich Rast
at 2:36 PM, Matthias Felleisen > wrote: > > > > > Erich, your needs sound very much like those of DrRacket’s. > > You may wish to study how DrRacket loads tools (as in take > > a look at the source) — Matthias > > > > > > > > > > > > &

Re: [racket-users] How to implement a dynamic plugin system?

2017-02-07 Thread Erich Rast
Thanks for the advice. So I should use dynamic-require, but how? When I tried to use it like "require" it didn't have the desired effect - nothing was imported. I have to admit I'm struggling a bit with all the different ways of load/eval/require/enter code that I've found in the docs so far. Here

[racket-users] How to implement a dynamic plugin system?

2017-02-07 Thread Erich Rast
Hi all! I'm thinking about implementing a dynamic plugin system for a large application. Each plugin should have the full racket/gui language and a number of pre-defined imports from modules of the main application available. Plugins should reside in a relative directory and loadable on demand at

[racket-users] How to determine that an image file is valid and working in image-snip%

2017-01-31 Thread Erich Rast
Hi! Is there a correct/"best practice" cross-platform way to determine whether a given pathname obtained from on-drop-file of an editor-canvas% leads to a valid image file that can be displayed by an image-snip% in a text%? Is there an official function that checks an image file? (It may load the

Re: [racket-users] Best way to ensure threads finish in GUI application?

2017-01-31 Thread Erich Rast
ue, 31 Jan 2017 13:23:03 +, Erich Rast wrote: > > Hi, > > > > I was wondering what's the best way to ensure that threads end > > when a gui application is shut down, which synchronization > > mechanism I should use and which kind of program terminations would >

[racket-users] Best way to ensure threads finish in GUI application?

2017-01-31 Thread Erich Rast
Hi, I was wondering what's the best way to ensure that threads end when a gui application is shut down, which synchronization mechanism I should use and which kind of program terminations would be handled gracefully by this. I'm planning on delaying certain sqlite transactions in threads, since

[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"? With

Re: [racket-users] Macro question

2017-01-12 Thread Erich Rast
Nevermind, I got it working (or at least it seems to work): (define-syntax-rule (defpref ident default test?) (begin (define ident (case-lambda [() (pref 'ident)] [(value) (pref 'ident value)])) (pref 'ident default test?))) Best, Erich -- You received this mess

Re: [racket-users] Macro question

2017-01-12 Thread Erich Rast
Thanks for your your help. Unfortunately, I haven't managed to get my head around the phases and the question of when symbols are quoted or evaluated. I tried Matthew Buttericks change but it yields an error: "format-id: undefined; cannot reference an identifier before its definition phase: 1"

[racket-users] Macro question

2017-01-12 Thread Erich Rast
Hi all, I'm programming in Racket for many years and still haven't used macros or delved into how they work. Kind of embarrassing... anyway, it should be clear what I want to achieve in the code below. I like to wrap a module around framework/preferences, abstracting from the preference implementa

[racket-users] Bug that causes crash ... how to debug? (Linux, Racket 6.7 but also earlier versions)

2016-10-27 Thread Erich Rast
Hi! I have a bug that in the Linux version of a mid-sized program (closed source) that causes the program to immediately crash and also causes DrRacket to immediately crash once the command key is pressed in some editor in a tab panel of an open frame. No console output, hard crashes to desktop. T

[racket-users] Target is not an object, target #f for get-client-size

2016-09-15 Thread Erich Rast
I have a subclass of list-box% which overrides on-size and calculates relative column sizes based on get-client-size and some values provided by an init variable. However, if I don't check for "this" being an object, I get: send: target is not an object target: #f method name: get-client-size

Re: [racket-users] Re: List-box% using percentages to resize multiple columns

2016-09-09 Thread Erich Rast
You are right. I've checked it and it was a simple case of arguments switched - 120 pixel min-width was inadvertently switched for 20%. It works fine now, and on-size seems to be the right place for calculation, too. Thanks! Best, Erich On Thu, 8 Sep 2016 17:56:38 -0700 (PDT) Alex Harsanyi w

[racket-users] List-box% using percentages to resize multiple columns

2016-09-08 Thread Erich Rast
I'm trying to get a list-box% subclass to work with min-widths and percentage values, but I'm unable to figure out the correct total width to calculate the actual widths. Inside the listbox, I store the percentages in percentages and the minimum-widths in minimum-widths: (define/override (on-size

Re: [racket-users] Do I need a critical section here ... and if so, how to?

2016-09-01 Thread Erich Rast
? > ;--- > > Gustavo > > > > On Thu, Sep 1, 2016 at 6:44 AM, Erich Rast wrote: > > This question is also about style. Take an admittedly ugly > > counter like this > > > > ;; increasing counter for handles > > (define handle-counter 1) &g

[racket-users] Do I need a critical section here ... and if so, how to?

2016-09-01 Thread Erich Rast
This question is also about style. Take an admittedly ugly counter like this ;; increasing counter for handles (define handle-counter 1) (define (new-handle) (begin0 handle-counter (set! handle-counter (add1 handle-counter Various threads may call (new-handle) concurrently, so I ne

Re: [racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Erich Rast
ents > while waiting. > > Matthew > > At Wed, 31 Aug 2016 18:10:17 +0100, Erich Rast wrote: > > > Basically, I need to wait until the connection thread ends, before > > the application should quit, but at the same time the waiting may > > not block any processing o

[racket-users] Problem with threads and GUI event handling

2016-08-31 Thread Erich Rast
Hi! I have a problem with the interplay between the racket GUI main thread and other threads. My application connects to a socket and creates a GUI. Some of the GUI events are sent over the socket, and everything is highly asynchronous -- there are multiple threads and channels between them for so

Re: [racket-users] Re: Reliable equality testing of procedures

2015-11-05 Thread Erich Rast
> (struct measure (measuring-proc maximum-proc) > #:prop prop:procedure (struct-field-index measuring-proc)) > > (define footrule (measure footrule-proc footrule-maximum)) > Thanks a lot! I didn't know about this option. That seems like a good way of embedding the information into the measure

[racket-users] Reliable equality testing of procedures

2015-11-04 Thread Erich Rast
Hi, I have a number of functions for computing raw distance measures and functions to compute their maxima for a given number of items, so to normalize them to [0,1] I provide this: (define (normalize/distance measure maximum) (lambda (p q) (/ (measure p q) (maximum (full-domain-size p q)))

Re: [racket-users] Generating preorders

2015-09-23 Thread Erich Rast
You've just saved my day! Thanks a lot! Best, Erich On Wed, 23 Sep 2015 10:38:07 -0400 Josh Grams wrote: > On 2015-09-23 09:46AM, Erich Rast wrote: > >Someone on stackoverflow gave me a working implementation in Python 3 > > > >https://stackoverflow.com/questions/32

Re: [racket-users] Generating preorders

2015-09-23 Thread Erich Rast
Thanks Robby and Vincent for the advice. Yes, I should have been more precise, I need to generate all *total preorders* of a given size. The task is equivalent to generating all weak orders. I think my idea to do this on the basis of permutations is flawed and I'll start from scratch but it would

[racket-users] Generating preorders

2015-09-22 Thread Erich Rast
Hi, First of all, this is not a homework assignment. For some work in philosophy (modern philosophy, I guess) I need to generate all preorders from a given list up to a reasonable size of n=8. I didn't find any general algorithm for it, so I made up my own that unfortunately doesn't work correctly

Re: [racket] Library for date arithmetic?

2014-03-12 Thread Erich Rast
You could use SRFI 19, but it is also somewhat low-level. On Tue, 11 Mar 2014 16:32:18 -0300 Ismael Figueroa wrote: > Working with a custom handin-server, I have a date value which > represents a deadline, but I also want to allow late submission up to > 3 days later than that (well, an arbitra

[racket] Detecting cycle in directed graph

2014-02-14 Thread Erich Rast
I have a directed graph given as list of pairs ((from-node . to-node) ...) and need to detect whether adding a pair would create a cycle. Is there an easy way to do this already, e.g. some Planet package or snippet someone would like to share? I don't want to reinvent the wheel and this is not a

[racket] Suggestion for DrRacket

2014-02-14 Thread Erich Rast
When debugging is enabled, DrRacket could display on-line help for functions in the status line while the user is typing - rather than a red line with errors that usually just concern unclosed parens. What I mean is a one-line autocomplete in the status line that provides the first matching definit

Re: [racket] Is racket suitable for such a project?

2014-02-13 Thread Erich Rast
I would definitely use Ada for this kind of project. Racket is good for building a prototype and/or proof-of-concept in this case, though. Best, Erich On Mon, 10 Feb 2014 18:49:59 -0500 Yuhao Dong wrote: > Hi, > > I'm trying to decide between Racket and Go on writing my onion-routing > system

[racket] (Off) Re: Purely Functional needs "One Memory/Massively Parallel"

2014-02-05 Thread Erich Rast
I'm not sure I understand all of your points. Anyway I believe that purely functional programming is generally beneficial to massively parallel processing because "pure" functions do not alter state outside the function until the computation has ended. Purely functional programs require less synchr

Re: [racket] Racket v5.92

2014-01-25 Thread Erich Rast
Fantastic! Congratulations! One more question about the new package system: Is there a roadmap about Planet support, i.e. when will existing Planet packages cease to work? "foreseeable future" is a bit vague. I'm developing very slowly due to lack of spare-time and have a mid-size application wi

Re: [racket] Servlet static file paths, I just don't get it

2013-10-01 Thread Erich Rast
))) > > (serve/servlet dispatch ; answers requests > #:servlet-path "/lottery" ; is the default URL > #:extra-files-paths (list (build-path > (current-directory) "htdocs")) > #:port 8080 ; is the port >

Re: [racket] Servlet static file paths, I just don't get it

2013-09-29 Thread Erich Rast
t;http://your-server.com/images/Sloth.png";. If > you go to that URL, you'll see that it shows you the result of > respond-unknown. > > On Sat, Sep 28, 2013 at 4:05 PM, Erich Rast wrote: > > This is driving me nuts, I just cannot find the place where my > > servl

[racket] Servlet static file paths, I just don't get it

2013-09-28 Thread Erich Rast
This is driving me nuts, I just cannot find the place where my servlet gets static files from. I run the following "server.scm" in a directory in which there is also "htdocs/images/Sloth.png" but no matter what combination of img src file paths and extra-file-paths I try, respond-unknown does not w

[racket] How much memory does the web server need?

2013-09-18 Thread Erich Rast
Hi, I'm thinking about switching my static web pages from traditional hosting to a virtual server running Ubuntu. Since I'm very familiar with racket and like it, it'd be only natural to use it (so I can make the pages more dynamic in the long run and perhaps even add a few web apps). Now I wonde

Re: [racket] Bug all/13780 ... can someone confirm this?

2013-07-15 Thread Erich Rast
mplementation of > `get-current-mouse-state' needs to avoid it in 10.5 and earlier. > > At Sun, 14 Jul 2013 18:29:27 +0100, Erich Rast wrote: > > This bug is a minor show-stopper in my project ("minor" because I > > could simply remove the functionality that make

[racket] Bug all/13780 ... can someone confirm this?

2013-07-14 Thread Erich Rast
This bug is a minor show-stopper in my project ("minor" because I could simply remove the functionality that makes use of the function). The bug was filed on May 26 and nobody is assigned to it yet, so I wonder: Is it repeatable? Could someone else confirm it? Does it only occur in my particular VM

Re: [racket] files using tcp

2013-04-18 Thread Erich Rast
My P2PTools package on Planet has methods for sending and receiving files over TCP. Best, Erich On Thu, 18 Apr 2013 13:32:38 +0530 deepak verma wrote: > how can we send any kind of file using tcp.. > can someone illustrate using a simple code. Racket Users list: http:

Re: [racket] Detecting application-wide keyboard presses (without open frame or dialog)

2013-01-06 Thread Erich Rast
Great! That'll do. Thank you very much! -- Erich On Sun, 6 Jan 2013 10:15:16 -0700 Matthew Flatt wrote: > For modifier keys, at least, you can use `get-current-mouse-state' > (added in 5.3.1.x). > > > Is there a cross-platform way to detect a keyboard press without > > opening any frame? ___

[racket] Detecting application-wide keyboard presses (without open frame or dialog)

2013-01-06 Thread Erich Rast
Hi everybody, Is there a cross-platform way to detect a keyboard press, including command keys, without opening any frame? Something like get-key-press from the graphics legacy library but without viewport? I'd need this for detecting a key combination before the application's main frame opens in

[racket] Modular arithmetic

2012-12-20 Thread Erich Rast
Hi, For compatibility I need modular arithmetic for some standard numeric types such as signed 64bit integer, unsigned 64bit integer, signed 32 bit integer, and so on. Preferably it shouldn't be very slow. What's the best way to get this? Is there a package for this already? Best, Erich ___

Re: [racket] OPERATING SYSTEM ON A FPGA

2012-12-06 Thread Erich Rast
Reminder: If you need a space cadet keyboard to use an OS, it'll have lower chances of long-term success... However, the keyboard layout was pretty cool. On Wed, 5 Dec 2012 20:59:44 -0800 Joe Marshall wrote: > http://dspace.mit.edu/handle/1721.1/5731 > > "Those who cannot remember the past

Re: [racket] OPERATING SYSTEM ON A FPGA

2012-12-05 Thread Erich Rast
I personally think that the low level issues are not so important and have been playing with the thought of implementing high-level features of such an OS, i.e. user access control and distributed, sandboxed applications with reasonable process scheduling and resource control. However, I have given

Re: [racket] 80-bit precision in Racket

2012-11-14 Thread Erich Rast
Sorry, I feel the need to add my 2 cents to this. On Tue, 13 Nov 2012 22:43:08 -0800 (PST) Hugh Aguilar wrote: > > We are doing numerical integration of celestial bodies over large > >periods of time (100 years is a norm). > > I'm new to Scheme, so I may be totally wrong about this --- but, > i

[racket] Scribble - how to document init-fields of a mixin with or without default values

2012-10-18 Thread Erich Rast
Hi, I have a mixin with several init-fields, but it seems that scribble won't allow me to use @defconstructor/auto-super (Error defmixin: use does not match pattern) For example, in the following skeleton of a mixin, (define tooltip-mixin (mixin (window<%>) () (super-new) (init-field t

[racket] Web server and file upload/download examples

2012-10-08 Thread Erich Rast
Hi, I'm not very experienced with using the web server yet and am looking for advice and examples of how to download and upload files. I'm particularly interested in any example of uploading a file using a racket client (not a browser) to the web server, because it seems hard to understand this fr

Re: [racket] Scribble Planet problem

2012-10-03 Thread Erich Rast
Seems I have a certain talent of stumbling over Heisenbugs. :) I've applied your patches and will finalize the package soon. Thanks a lot, Danny! Best, Erich On Tue, 2 Oct 2012 15:38:10 -0600 Danny Yoo wrote: > Error traced. No scribble document should break the search index, but > for some

Re: [racket] Scribble Planet problem

2012-10-02 Thread Erich Rast
> Odd! Hmmm... Are your sources anywhere where we can check it out to > try it ourselves? I've uploaded them temporarily to launchpad: https://code.launchpad.net/~erich-snafu/+junk/fileutils Thanks a lot for your help. Best, Erich Racket Users list: http://lists.ra

Re: [racket] Scribble Planet problem

2012-10-02 Thread Erich Rast
Thanks Danny! The import statement shows up correctly now, but I still get a corrupted search function in the Racket documentation when the package is installed. I've overlooked an error during package installation earlier, here it is: make-script: unexpected value rendered: '((font ((class "badl

[racket] Scribble Planet problem

2012-10-02 Thread Erich Rast
Hi, I've developed a small library that I would like to put on Planet, but when I create the planet package and test-install it using raco planet fileinject, my scribble documentation messes up the Racket docs. My docs are listed in the documentation main page and can be viewed, but just before th

Re: [racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Erich Rast
> > A simpler possibility is to use a custodian I've tried a custodian and it worked fine. But then I've figured out that a simple exception handler also works, and in this case it has the advantage that the finalize-proc called at the end of my file transfer will terminate gracefully. (def

[racket] How to wait for tcp-accpt-evt unless the listener is or has been closed?

2012-09-13 Thread Erich Rast
Hi all, I have a question about tcp-listener. I've implemented a simple filetransfer protocol whose main listener loop is this: (define (start-listen local-port save-path from-ip progress-proc final-proc [timeout 60.0] [file-table (make-hash)]) (define listener (tcp-listen

Re: [racket] racket 5.4 syntax tweak wishlist

2012-09-10 Thread Erich Rast
> > * Colon keywords -- Make symbols beginning with the colon character > > read as keywords. > > +1, but I suspect that some people really prefer the #: because it > makes the fact that it's only syntax apparent? Count me among them. The #: is more consistent and typing one more character doesn

Re: [racket] Cross-Platform Secure RNG?

2012-07-12 Thread Erich Rast
I might be wrong but MRG32k3a doesn't seem to have been cryptanalyzed extensively enough to count as cryptographically secure. Probably it isn't. The crypto library on Planet has random-bytes and random-bytes! that ought to be more secure. (However, I do not know the code OpenSSL uses to gather en

Re: [racket] Ubuntu 12.04

2012-05-07 Thread Erich Rast
I can confirm that the latest stable release of DrRacket works fine on Xubuntu 12.04, too. On Sun, 6 May 2012 15:54:24 -0500 mauricio mejia wrote: > > the program is installed but does not load in Ubuntu 12.04 > Racket Users list:

Re: [racket] AES encryption/decryption support in Racket?...

2012-04-16 Thread Erich Rast
I've been using the "crypto" library of Dimitris Vyzovitis, which is also based on openssl. It hasn't been updated for a while, but works fine with symmetric algorithms. Best, Erich On Sun, 15 Apr 2012 17:13:00 +0200 Rüdiger Asche wrote: > Hi there, > > in my Racket code, I need to crypt/

Re: [racket] Documentation enhancement suggestions

2012-01-02 Thread Erich Rast
Oops...I didn't know that. Please disregard my last mail. Thanks a lot! > FWIW, in DrRacket, you can type f1 to search for the text that's at > the current insertion point and you can right click on a word to do a > similar search. Racket Users list: http://lists.racket-

Re: [racket] Documentation enhancement suggestions

2012-01-02 Thread Erich Rast
I personally have no quirks with the existing documentation, I think it's excellent. But here is another suggestion that I would find tremendously helpful: an auto-hover live help that pops up information about function definitions plus a short explanation of what the function does directly in the

Re: [racket] Mark Tarver is the man!

2012-01-02 Thread Erich Rast
On Sun, 1 Jan 2012 15:42:23 -0800 Mark Engelberg wrote: > The PLT team clearly cares passionately about creating and maintaining > real, usable languages and tools. That is why Racket exists. Very > few academic projects produce anything nearly as useful and > professional. I can wholeheartedl

Re: [racket] Text% efficiently iterating over items

2011-12-12 Thread Erich Rast
if not, then you do have to iterate snip by snip. The positions > inside string-snip%s are offsets from the position of the whole snip > for characters (is that what you're asking for when you say > text-snip%?). > > Robby > > On Mon, Dec 12, 2011 at 4:08 PM, Erich Rast

[racket] Text% efficiently iterating over items

2011-12-12 Thread Erich Rast
Is there a fast way to iterate over items or words in a text% instance starting from some position. For example, I'd like to go forward or backward starting from a position until a character in a given srfi14 char-set is found. Using a string returned get-text doesn't seem to work in general beca

Re: [racket] set! racket behaviour

2011-10-31 Thread Erich Rast
Doesn't really answer your question, but why not use something like this instead: (define inc (let ((counter 0)) (lambda () (set! counter (add1 counter)) counter))) Best, Erich On Mon, 2011-10-31 at 12:58 -0400, jkaczo...@aol.pl wrote: > Hi, > > I’m using DrRacket. > In an e

[racket] Text% and editor-canvas% typewriter scrolling

2011-10-30 Thread Erich Rast
Is it possible to (halfway easily) implement "typewriter" scrolling on the basis of an editor-canvas% and text%. I've discovered scroll-with-bottom-base which already goes in the right direction. Now here is what I'm looking for: - Editing always takes place on the same line, the edit line, whose

Re: [racket] arity of + versus <=

2011-10-27 Thread Erich Rast
Binary relations versus associative operations? Subjective opinion: I'm not saying it couldn't be otherwise, but to me the difference makes sense. At least (< 1) should always be an error in my opinion. Regarding (< 1 2 3 4) as a shortcut for 1 < 2 < 3 < 4, well, that's more debatable. Best, Er

[racket] Fullscreen frame and keyboard focus questions

2011-10-23 Thread Erich Rast
Hi, I've got a bit of a strange requirement. What I need: a text% with corresponding editor canvas centered on the screen filled with a background color or image. Various tools and "overlays" might show up on the background around the editor. Method 1: Make a frame% fullscreen and put vertical a

Re: [racket] Reliably disable/redirect console output

2011-10-17 Thread Erich Rast
On Mon, 2011-10-17 at 14:02 -0600, Ryan Culpepper wrote: > It's possible that the output happens when the main module's requires > are executed. Actually, yes, it's just that. I guess I'm paying the price now for having been a bit picky. Many of the initialization routines in my modules delibera

[racket] Reliably disable/redirect console output

2011-10-17 Thread Erich Rast
Is it possible to reliably disable/supress or redirect the console error and the ordinary output in a GRacket application? I tried: (let ((out (open-output-string)) (err (open-output-string))) (parameterize ((current-output-port out) (current-error-port err))

Re: [racket] Applicaton icon on windows

2011-10-16 Thread Erich Rast
ying is failing, but I do > believe that Racket rewrites the binaries to tell itself where to find > its code (sometimes embedding the code right in there at some known > offset), so if something is also doing that, it maybe is messing that > process up. > > Robby > > O

  1   2   >