(majority? PERCENT :- #t)
This is throwing this error:
_: wildcard not allowed as an expression
Any idea of what I'm doing wrong?
Thanks again.
Jay McCarthy writes:
> I would do "raco pkg update --clone datalog" from "$PLTHOME/extra-pkgs"
>
> Jay
>
&g
Hello Jay, thanks for your time.
I'll try the update asap. One question to anyone, what would the the
canonical way of fetching such an update in racket's package system?
Jay McCarthy writes:
> On Wed, Sep 16, 2015 at 2:50 PM, Eduardo Bellani wrote:
>> Hello list
>
or/c exact-nonnegative-integer? #f)
(or/c exact-positive-integer? #f)))
symbol?
variable?)
contract from: /datalog/ast.rkt
Which I interpreted as the LOC being lost in the syntax generator. I
haven't being able to resolve that yet. Any light on the subject?
Thanks
ed? (http-read-headers
> in-port)) (http-pipe-data chunked? in-port out-pipe)
> (close-input-port in-port (or exn-raised in-pipe))
>
>
>
>
>
> On Jan 18, 2014, at 5:08 PM, Eduardo Bellani wrote:
>
> Btw, forgot to ask, any alternatives that could solve my pro
n of decoding.
>>
>> [*] To avoid interfering with the `exn:break?` exceptions
>> triggered by Ctl-C, you almost always want `exn:fail?` instead of
>> just `exn?`.
>>
>> At Sat, 18 Jan 2014 09:50:15 -0200, Eduardo Bellani wrote:
> Is there a way to install a handl
*] To avoid interfering with the `exn:break?` exceptions triggered
> by Ctl-C, you almost always want `exn:fail?` instead of just
> `exn?`.
>
> At Sat, 18 Jan 2014 09:50:15 -0200, Eduardo Bellani wrote: Is there
> a way to install a handler for the tcp-error exception? I have a
> funct
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Is there a way to install a handler for the tcp-error exception?
I have a function like this
(define (get-page link-url (max-tries 5))
(let loop ([current-try 0])
(with-handlers ([exn?
(? (e)
(if (> c
t;>
>> But solving it directly through the template is much better.
>
>
> Hi Eduardo,
>
>
> But do you even need macros for the problem? Could a plain vanilla function
> work as well? I just want to make sure I understand why we're in macro-land
> in the fir
hrough the template is much better.
Thanks again.
On Wed, Sep 19, 2012 at 6:45 PM, Danny Yoo wrote:
> On Wed, Sep 19, 2012 at 3:10 PM, Eduardo Bellani wrote:
>> Hello list.
>>
>> Could anyone give me a hand and explaing why this
>>
>> #lang racket
>> (struct
Hello list.
Could anyone give me a hand and explaing why this
#lang racket
(struct tst (attr1 attr2))
(define-syntax (list->struct stx)
(syntax-case stx ()
[(_ attr-list) #`(tst #,@attr-list)]))
Fails?
--
Eduardo Bellani
"Resolve to serve no more, and you are at on
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Truly it would be a great addition to drracket.
On 09/13/2012 06:06 PM, Asumu Takikawa wrote:
> On 2012-09-14 04:34:21 +0800, Yin Wang wrote:
>> I'm developing a tool for "diffing" program by parse trees and
>> not text. It is written in Racket and c
ut if you got
things correct. Its a major plus to program in lisp like languages,
because you can leverage the tree structure of the code more easily.
That's my view of it.
On 08/30/2012 07:19 PM, John Clements wrote:
>
> On Aug 30, 2012, at 3:04 PM, Neil Van Dyke wrote:
>
>>
*get out of DR
On Thu, Aug 30, 2012 at 7:00 PM, Eduardo Bellani wrote:
> Paredit is more structured than what I can get out of emacs. It does
> not allow me
> to get my sexps unbalanced. For instance, to close and align all the
> parens I just go on pressing ')' until
wrote:
> I've enabled auto parens and square with highlight et al in DR and use the
> sexp movement key combos and I'm pretty happy with it. I was never a heavy
> user of paredit in emacs, though an admirer.
>
>
> On Thu, Aug 30, 2012 at 5:43 PM, Eduardo Bellani wrote:
Of course one's IDE selection is very personal and
> YMMV.
>
>
>
> Racket Users list:
> http://lists.racket-lang.org/users
>
--
Eduardo Bellani
"Resolve to serve no more, and you are at once freed."
Racket Users list:
http://lists.racket-lang.org/users
Congratulations guys, keep up the good work.
On 06/12/2012 11:52 PM, Matthew Flatt wrote:
> Shriram Krishnamurthi has been selected as the 2012 winner of the
> SIGPLAN Robin Milner Young Researcher Award!
>
> The Milner Award is new this year, but with this year's precedent, it
> will surely prov
against this. Schlepping eclipse
>> projects from machine to machine is a giant pain, and one of the
>> things that I love about Racket is the lack of metadata and the
>> stripping of programs to their essence.
>
> Use Maven and you won't have such problems.
--
Eduardo Be
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Is there some sort of new project command for raco?
Something that would create a new project with a default skeleton
structure that is suggested by the racket community? If not, would
that be a good idea? There are precedents, with Leiningen for cloj
__
> Racket Users list:
> http://lists.racket-lang.org/users
--
Eduardo Bellani
"Resolve to serve no more, and you are at once freed."
Racket Users list:
http://lists.racket-lang.org/users
Thanks Matthew, worked like a charm.
On 05/17/2012 12:04 PM, Matthew Flatt wrote:
> You may need to install "gdkglext" and "gtkglext". See
>
> http://docs.racket-lang.org/gui/libs.html
>
> for more information.
>
> At Thu, 17 May 2012 11:56:39 -030
Hello racket team.
For some fun, I have tried to play around with the opengl library
again. For starters I've tried to run the gears.rkt example.
This message popped up:
"There was an error initializing OpenGL. Maybe OpenGL is not supported
on the current platform."
>From looking at the source
;
> check-expect: expects 2 arguments, but found only 1
>
> But there is only 1 argument the structure pos-manhatten.
>
> Roelof ____ Racket Users list:
> http://lists.racket-lang.org/users
- --
Eduardo Bellani
fear is an alarm, not a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
+1 on this.
On 03/02/2012 12:34 PM, Ray Racine wrote:
> I'd like to see more foundational libraries along the lines of
> say.
>
> - An Actor/Isolate high level message passing library over Places
> And Threads. All the necessary low-level primitives
n this view:
> [...]
> http://en.wikipedia.org/wiki/Thomae%27s_function
>
> Racket Users list:
> http://lists.racket-lang.org/users
--
Eduardo Bellani
fear is an alarm, not a compass.
Racket Users list:
http://lists.racket-lang.org/users
g
does not sound like a nice way to code this.
Thanks.
- --
Eduardo Bellani
fear is an alarm, not a compass.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk9Hk/cACgkQSbLl0kCTjGn4HwCfTfYx7O2Svgs1fU/iozNaH1If
tp8An2BcNHjnkvXP5FlC5N/4MTzp1Jdr
=LY9m
-END PGP
>>
>>
>>
>>
>> I suppose responding to this thread about Racket programming
>> isn't a bad idea, either
>
> Hahaha here is my little contribution then. I also have the Racket
> website linked on the word "programming languages" on my home
&
")])
(displayln x))
=>
#(1 1 16642 3 unreadable)
#(4 1 16642 3 unreadable)
Did anyone stumbled on this behavior before? Any hints?
Thanks all.
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Ah, ok.
Thanks Ryan.
On 10/20/2011 02:56 AM, Ryan Culpepper wrote:
> On 10/19/2011 08:39 PM, Eduardo Bellani wrote:
>> Hello list.
>>
>> This should be obvious, but due probably to my ignorance I am finding
>> more difficult than expected to find a function that co
hanks guys.
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk6fidoACgkQSbLl0kCTjGn0NQCeM3pbwAQioaH+YP8BMe28U0C0
JxIAn3yPIzLxia5rfEPgm12PlBV4mOat
=7PEI
-END PGP SIGN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Same here.
> I've used it. Nothing I can't live without. I'm happy for it to
> break in the name of progress.
>
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version:
__ For
>> list-related administrative tasks:
>> http://lists.racket-lang.org/listinfo/users
>>
>
> _____________ For list-related
> administrative tasks: http://lists.racket-lang.org/listinfo/users
- --
Eduar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello there folks.
I am trying to build in-source scribble documentation for classes and
methods and I am a bit confused as to how to proceed. Usually to
provide the contract and documentation for a procedure I code the
following:
(provide/doc
(pro
ompany we might look like we contributed a
> lot of money. But you're correct nevertheless -- Matthias
>
>
>
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk5XrJYACgkQSbLl0kCTjGkHGA
s problem on the radar?
>
>
>
>
> _
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version
em.
> Also, in your "handle" procedure, do you want to "display" to "out"?
>
Not really, that was just for initial testing purposes.
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECA
works very well if I read the input port with
read-line, but won't budge if I use something like port->string.
Can somebody shed a light on this?
Thanks for the time.
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYE
ed in the security aspects, access control, etc.
Would it be saved to video so the online community can check it out?
Thanks.
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk4JAbgACgkQSbLl0kCTjGk7XgCfaI03CHQgS8UFj2B
tions when they fail, so check that the raise an
> exn (use check-exn) when you expect them to raise an exception, and
> that they don't raise an exn (check-not-exn) when you don't expect
> them to.
>
> HTH,
> N.
>
> On Tue, Jun 21, 2011 at 12:19 AM, Eduardo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello list.
I have a small set of contracts that I am thinking of turning into a
planet package so I can use them across projects. My problem is, how do
I use the rackunit framework to test them? Here is the first few
contracts that I want to test:
#
sis, only on input and only for a short period of time. Is there
> a way to get old behavior back, it was very helpful?
>
I think I have seen this behavior on my friend's machine. It was an
ubuntu 10.10 64 bit if I am not mistaken.
--
Eduardo Bellani
omnia
ce for having all the GC code in place as normal, so that the
> usual code paths are used, and simply having the (conceptual)
> do-we-want-to-do-a-gc-cycle-now function always return false. I'd try
> to avoid running any blocks of code not already covered by users who are
> running
urrently no way to disable GC. I'll look into adding one.
>
>
>
> _
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
--
Eduardo Bellani
omnia mutantur, nihil interit.
___
That's one thing I love in this list, I'm always learning something new :)
On 05/06/2011 11:26 AM, Jos Koot wrote:
>
>
>> -Original Message-
>> From: dev-boun...@racket-lang.org
>> [mailto:dev-boun...@racket-lang.org] On Behalf Of Eduardo Bellan
ble items. My ideal output forms are HTML and
>> > odt (OpenOffice) files.
>> >
>> > _
>> > For list-related administrative tasks:
>> > http://lists.racket-lang.org/listinfo/users
>
>
>
>
> _
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
the time.
[1]
http://groups.google.com/group/racket-users/browse_thread/thread/e148c25ea668a719
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
of
> geometry management.
>
>
> At Thu, 31 Mar 2011 17:29:14 -0300, Eduardo Bellani wrote:
>> Could someone please explain why there is an invisible canvas in this
>> example?
>>
>> Env:
>> Linux 2.6.31-23-generic Ubuntu i686 GNU/Linux
>> rack
s invisible?
(define invisible-canvas (new bitmap-canvas%
[parent p]
[bitmap bitmap]))
(define visible-canvas (new bitmap-canvas%
[parent p2]
[bitmap bitmap]))
(send f show #t)
have compiled the latest git version like this
mkdir racket-places
cd racket-places
../src/configure --enable-places --prefix=/usr/racket-5.1.0.2-with-places
make
sudo make install
I end up with version 5.1.0.2--2011-02-05(-/f) [3m].
Any ideas?
--
Eduardo Bellani
omni
On 02/16/2011 05:32 PM, Eduardo Bellani wrote:
> ;; wget ftp://download.intel.com/research/silicon/moorespaper.pdf #works
>
> (require net/ftp)
>
> (define conn (ftp-establish-connection "download.intel.com" 21
> "anonymous" ""))
>
> (ft
quot;)
(ftp-download-file conn "/home/X" "moorespaper.pdf")
Thanks
On 02/16/2011 01:36 PM, Jay McCarthy wrote:
> I'm pretty sure it was committed in time.
>
> Jay
>
> 2011/2/16 Eduardo Bellani :
>> Is that fix available in the new 5.1 distribution? Or should I co
ls")
>>
>> This establishes a connection on the side to receive the data. There
>> is normally just one per transfer. Maybe the server is sending the
>> message multiple times? And so it is trying to open two? Can you use
>> WireShark to get a transcript of the session?
&g
t;./" "APAC.xls")
(ftp-close-connection conn)
the error is
ftp: exected result code 150, got 125 Data connection already open;
Transfer starting.
My version is 5.0.2/linux
Could anyone tell me what could be wrong?
--
Eduardo Bellani
omnia mutantur, nihil interit.
module-white-list (path->string module-path))
> (eval `(enter! ,(path->string module-path)))
>
>
>
> ;; start : ->
> (define (start (nap-interval 10))
> (enter-all-from-root)
> (sleep nap-interval)
> (start))
>
> On a direct note on your code:
modules)
(current-directory old-current-dir
;; start : ->
(define (start (nap-interval 10))
(enter-all-from-root)
(sleep nap-interval)
(start))
(start)
Thanks for the attention.
[1] http://zentest.rubyforge.org/ZenTest/
- --
Eduardo Bellani
omnia mutantur, nihil interit.
t when I tried to find it
>>>>>> yesterday
>>>>>> I couldn't (I don't remember the name or where in the documentation I
>>>>>> saw
>>>>>> it).
>>>>>>
>>>>>> Does anyone know what package
he menu or from any other page I saw.
Thanks for the attention.
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
(test "another-file")
(test me))
On 01/11/2011 08:38 PM, Ryan Culpepper wrote:
> On 01/11/2011 09:08 AM, Eduardo Bellani wrote:
>> Hello list.
>>
>> I am having a bit of a pain with trying to create a custom require
>> syntax. I am trying to sa
model/" *MODULE-NAME*)]))
(define-syntax models-test
(syntax-rules ()
[(_ model-name ...)
(values (string-append "../app/model/" model-name) ...)]))
;;target-test.rkt
(require "../auxiliary.rkt"
(model-test "a-model")
(my-model-test))
mes this)))
Could anyone help me as to why this does not work, or an alternative
approach?
Thanks in advance.
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
.
On 12/20/2010 07:48 PM, Robby Findler wrote:
> On Mon, Dec 20, 2010 at 1:02 PM, Eduardo Bellani wrote:
>> My output to your suggested approach is
>>
>> GC [minor] at 1514740 bytes; 818464 collected in 4 msec
>> GC [minor] at 2142928 bytes; 678980 collected in 4 msec
>
anything you wish to time in
> order to be sure that the gc time is being correctly attributed.
>
> Robby
>
> On Mon, Dec 20, 2010 at 1:12 PM, Robby Findler
> wrote:
>> Oh. You have the touch first. Try putting it second.
>>
>> Robby
>>
>> On Mon
this if you haven't yet:
>
>
> http://docs.racket-lang.org/guide/performance.html#%28part._effective-futures%29
>
> Robby
>
> On Mon, Dec 20, 2010 at 12:47 PM, Eduardo Bellani wrote:
>> Hello all
>>
>> I am trying to understand futures
(read-data DATA))
(void
(define (read-data some-data)
(for ([i (in-vector some-data)]) i))
(run-tests read-from-shared)
Thanks
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For list-related administ
obvious, or botched
> the config) neither Racket nor Geiser seem to provide just quite that.
> So I was looking at binding F5 to mode-compile and setting the correct
> Racket flags ... that I haven't figured out yet, because apparently
> I'm a numskull.
>
> Thank you.
t; Have you seen this already?:
>
> http://docs.racket-lang.org/guide/reflection.html
>
>
>
>
> _________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
--
Eduardo Bellani
omnia mutantur
gt; transparency? "non-transparent"?
>
How about opaque?
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzsOGUACgkQSbLl0
;hello")))
Then try anything with a c:x as a prefix.
I'm using version 5.0.1 in ubuntu 9.10
Any suggestions?
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
hat is going on?
Thanks.
On 11/09/2010 05:45 PM, Eduardo Bellani wrote:
> Thanks, worked like a charm!
>
> On 11/09/2010 03:38 PM, Ryan Culpepper wrote:
>> Eduardo Bellani wrote:
>>> But as you can see here:
>>>
>>> (define (diva-link:frame-mixin super%) .
Thanks, worked like a charm!
On 11/09/2010 03:38 PM, Ryan Culpepper wrote:
> Eduardo Bellani wrote:
>> But as you can see here:
>>
>> (define (diva-link:frame-mixin super%) ... )
>>
>> diva-link is a frame-mixin. So my problem is probably my lack of
>> under
ose-current-tab is a method on the frame, I believe.
>
> Robby
>
> On Tue, Nov 9, 2010 at 11:12 AM, Eduardo Bellani wrote:
>> Hello there.
>>
>> I am trying to add this keybinding, but without success:
>>
>> (keybinding "c:x;c:k" (λ (editor
nt-tab for class:
...plt/1/6/diva-link.ss:572:4
I am, as you can see, using divascheme. But from what I can see, this
diva-link should accept the close-current-tab method.
Any pointers?
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For li
nt-tab for class:
...plt/1/6/diva-link.ss:572:4
I am, as you can see, using divascheme. But from what I can see, this
diva-link should accept the close-current-tab method.
Any pointers?
--
Eduardo Bellani
omnia mutantur, nihil interit.
_
For li
;mult 0))
> ((:: "/") (values 'div 0
>
> When I try to compile it, I get
>regular-expression: undefined operator in: (:+ "[0-9]")
> How do I correct this?
>
>
>
>
> _
>
request -> html-response
; Consumes a request, and produces a page that displays
; all of the web content.
(define (start request)
(render-upload-page request))
(static-files-path "./")
(no-web-browser)
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
http://programming-puzzler.blogspot.com/2010/08/racket-vs-clojure.html
Any opinions on the subject?
- --
Eduardo Bellani
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with
restoring by hand after I
install a package, but I guess it is not the most friendly way to
install a package :)
Any suggestions?
- --
Eduardo Bellani
www.cnxs.com.br
omnia mutantur, nihil interit.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozi
76 matches
Mail list logo