If you really need conditional compilation - take a look at bzlib/os.
http://weblambda.blogspot.com/2009/09/conditional-module-inclusion-and.html
Cheers,
yc
On Wed, Jan 18, 2012 at 10:36 PM, Veer Singh wrote:
> Ignore the above post , I figured this out after reading little bit more ,
>
Hi all -
does anyone know whether the ODBC driver in ryanc/db.plt (I am aware it's
FFI-based) goes around the limitation of FFI calls serialize all racket
threads?
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lan
You can also try bzlib/http on planet - it can work with SSL via the
following call:
(require (planet bzlib/http/client))
(http-get )
(http-post )
Hope this helps.
yc
On Sat, Jun 18, 2011 at 8:05 AM, Matthias Felleisen wrote:
> I have modernized the language (not really necessary)
If I recall correctly there were suggestions to serve the help pages through
a local web server - was that tried and rejected?
Thanks,
yc
On Fri, May 6, 2011 at 12:57 PM, Eli Barzilay wrote:
> Four minutes ago, Jordan Schatz wrote:
> > This is the only way I am aware of to
an find this under
the planet cache directory)
There are other posts on the blog that covers both the design and the usage
of the code. Obviously they can use more improvements too - so definitely
let me know if you have more questions and/or finding deficiencies.
--
Cheers,
yc
http://yinsoche
Cool! Interested in releasing a driver for it on planet?
Does MysterX work with Mono in Linux/Mac?
On Sun, Feb 6, 2011 at 2:36 PM, Greg Hendershott
wrote:
> P.S. Just roughly, for eample: https://gist.github.com/813783
>
> On Sun, Feb 6, 2011 at 5:27 PM, Greg Hendershott
> wrote:
> >> I'd be v
Danny - thanks for the explanation on how it works and the links to the
paper. I will look into them.
Appreciated!
yc
On Sun, Jan 30, 2011 at 12:11 PM, Danny Yoo wrote:
>
> Hi YC,
>
> The current runtime has an interpreter that's explicitly managing the
> control stack, s
eventually be able to
> rely on having tail calls built in to the web.
>
Yeah I've heard about that too, but of course it will take sometime for the
change to propagate to all of the browsers in the wild ;)
Thanks for the info,
yc
_
Hi all -
I am wondering if there are documentations on how moby/wescheme solve the
tail call optimization issue to compile down to javascript. My google'fu is
failing me.
If not - can someone shed some light on how it's done?
Thanks,
yc
_
Thanks Robby - I am now able to get them installed.
On Sat, Jan 29, 2011 at 4:39 PM, Robby Findler
wrote:
> I don't know if it had to do with the problems on the server or not,
> but these both seem to be working now (in 5.0.1).
>
> Robby
_
For li
package: Server had no
matching package: Server had no matching package: Planet has matching
packages but none matches your criteria in: (planet
ryanc/require:1:3/require)
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
tion and expander
> accordingly, you get the Dybvig-Hieb-Bruggeman algorithm ("the syntax-case
> algorithm").
So does the relaxing mean we only use call-site's environment instead of
definition-site's environment? Or is there still an environment that the
macro def
On Sat, Dec 11, 2010 at 2:49 PM, YC wrote:
>
> On Sat, Dec 11, 2010 at 8:56 AM, Ryan Culpepper wrote:
>
>>
>> If you are only supporting syntax-rules, then I recommend implementing the
>> algorithm from "Macros that Work" by Clinger and Rees. Hygienic macr
extract and port the code you need, or use
> it as inspiration.
>
Good pointers, thanks.
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
are appreciated, thanks,
yc
On Wed, Dec 8, 2010 at 12:19 PM, YC wrote:
> Thanks Robby!
>
>
> On Wed, Dec 8, 2010 at 4:13 AM, Robby Findler > wrote:
>
>> PS: check out this paper for an algorithm:
>>
>> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.54
Cool - thanks!
On Fri, Dec 10, 2010 at 3:41 PM, Matthias Felleisen wrote:
>
> Oh that's 10 bucks. Dang.
>
> So YC, here is your answer:
>
> plt/collects/racklog/unify.rkt
>
>
_
For list-related administrative
Thanks for all the quick responses from Carl, Shriram, Justin, and Doug so
far.
Shriram - didn't realize this has homework implications or I would be more
careful ;)
Thanks,
yc
On Fri, Dec 10, 2010 at 2:48 PM, Doug Williams wrote:
> The inference collection has a unification algorith
Hi all -
does anyone know where I can find code for implementations of the
unification algorithm in racket?
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Thanks Robby!
On Wed, Dec 8, 2010 at 4:13 AM, Robby Findler
wrote:
> PS: check out this paper for an algorithm:
>
> http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.54.8909
>
> Robby
>
> On Wed, Dec 8, 2010 at 6:11 AM, Robby Findler
> wrote:
> > Yes, outside in. Inside out doesn't work b
#f))
=> ((lambda (g) (if g g #f)) (let ((h #t)) (if h #t #f)))
=> ((lambda (g) (if g g #f)) ((lambda (h) (if h #t #f)) #t))
Does (and should) it matter either way? Any inputs are appreciated.
Thanks,
yc
On Sun, Dec 5, 2010 at 11:21 AM, YC wrote:
>
>
> On Sun, Dec 5, 2010 a
(regexp-replace pat (port->bytes in) insert))
(regexp-replace pat in insert)))
> (regexp-replace*/out #px"[0-9]+" (open-input-string "1929,1939,1949,1959")
"+\\0" (current-output-port))
+1929,+1939,+1949,+1959
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
e the same for input-port source anyways.
>
> (I didn't follow that.)
I just mean that (regexp-replace* #rx"foo" in "bar") can return bytes or
string or an input-port, instead of having to take in an output-port, if we
do not want to add a
when the other regexp-*
functions do.
Are there reasons for the difference? Is it because input-port cannot be
written to? But since the string & bytes variants all generate new output,
that will seem to be the same for input-port source anyways.
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
ome back to
it months or years later, so it is very important to write legible and
understandable code. Good design and understandable code will pay dividends
even if it might not be the fastest code.
HTH. Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
amiliar with Python. I will study the code to see what I can glean
from it.
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
can share experiences on how to go about this "easily"?
Thanks,
yc
On Wed, Dec 1, 2010 at 8:13 PM, YC wrote:
>
>
> On Wed, Dec 1, 2010 at 7:39 PM, David Van Horn wrote:
>
>>
>> You can't substitute in values for variables that are set!; you need to
>
ching
(define (copy-lines in out) ;; out is in binary mode
(let loop ((line (read-line in 'any)))
(unless (eof-object? line)
(write-string (format (+:windows "~a\r\n" "~a\n") ;; if windows use
\r\n, else use \n
line) out)
(loop (read-
te version of Felleisen & Hieb, see this page:
>
> http://redex.plt-scheme.org/why-redex.html
Yes that makes sense. Thanks.
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
x27;s frames are on "the stack". I just mean that I
need to maintain my own stack of frames instead of relying on racket to do
so.
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
ate issues.
I agree that they are separate issues, but as the implementer I need to
consider them together to have a full solution. I.e. what are all of the
components I need to implement in order to have a minimal interpreter
(primitive types, lambda, define, se
inners:
> they usually have no idea what it's saying or why it matters. But
> your questions suggest you're at just the right point.
>
Thanks Shriram on the paper suggestion - I found it and will see how much I
can grok.
Cheers,
yc
___
aybe I am looking too far ahead, but it seems like I cannot get away from
needing my own call stack? Or am I missing something?
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
aintain my own
stack, and I was trying to see if there are simpler ways to approach the
problem.
Please let me know if this is still being unclear. Thanks.
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
ng an immutable hash for
environment) isn't the right approach. It feels like I need my own
call-stack to represent them, but that sounds "heavy" for a metacircular
interpreter.
Any thoughts are appreciated, thanks.
yc
_
For list-related
Hi all -
anyone knows how to control indentations in quack mode for define and with
like keywords?
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Thanks for the bug report, and the code has been patched with a newer
version on planet.
Do (require (planet bzlib/dbd-spgsql:1:3)) to retrieve the latest version.
Cheers,
yc
On Sun, Nov 28, 2010 at 3:32 PM, prad wrote:
> some of this is speculation since i'm just a couple of days
ou might have changed the code again it's probably easier to see
what's going on now if you show the latest code.
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
from (cons
(read-list-helper '()) list-so-far) back to the helper in order not to
terminate early, and you should also check for the end of the file as well.
Cheers,
yc
>
> On 15 November 2010 21:13, YC wrote:
>
>>
>> Correct - that's the idea for reading in a
trying to recursively parse the nested list. And for that you will need to
separate the checking of #\( from #\space and #\). #\( starts the nest,
skip #\space, and #\) returns from the current nesting.
Note you'll need additional logic if you want to parse multiple numeric
characters as a si
ase xml-write-mode ((html) "~a") (else
"")) (cdata-string cdata)) over dent out))
Cheers,
yc
On Wed, Nov 10, 2010 at 4:39 AM, Jay McCarthy wrote:
> I think a better thing to do is for users who want it to make
>
> make-cdata* and cdata-string*
>
> which add the wr
ill
produce the bytes.
I will leave make-output-port as an exercise, at least until others have
further questions.
HTH. Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
rivate/xexpr.rkt:
,(make-cdata #f #f (format-xexpr/errors val))])
and these do not look like they provide their own as
instructed in the cdata documentation.
Thoughts? Thanks,
yc
On Tue, Nov 9, 2010 at 9:06 PM, Jay McCarthy wrote:
> It is documented that way:
>
>
> http:/
e, ideally with motivating
> examples of tasks requiring all the various bizarre knobs and buttons
> of the abstraction (not necessarily all at once, of course)?
>
>
Don't know of any such documentations, but if you have a specific questions
it might
-string (last xexpr))
;; => ""
;; better as => "this is cdata"
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
we-have-the-value
So it seems that hash-ref by default also checks the type of the key besides
checking their hash-code - unless they have the same type, the keys will not
match even with the same hash-code. Is that correct?
Any thoughts are appreciated. Thanks.
yc
module (so that way the structs and parameters
are not evaluated multiple times), hence I was seeking a way to duplicate
the namespaces.
If the above thought process is not exactly how it works, please let me know
too. Thanks.
yc
_
For list-related adminis
namespace.
Any ideas are appreciated. Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Hi all -
has anyone have experiences installing user defined functions written in
racket/scheme into sqlite, say via jaymccarthy/sqlite?
If so - any pointers are appreciated. Thanks.
yc
_
For list-related administrative tasks:
http
net framework 2.0:
http://support.microsoft.com/kb/929110
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
to iterate over the list of vectors, then use vector-map to iterate
over the cells within the vectors to apply the regexp-replace* function.
(map (lambda (vector)
(vector-map (lambda (cell) )
vector))
)
HTH. Cheers,
yc
On Mon, Oct 18, 2010 at 2:23 PM, scouic wrote:
> Hi
On Thu, Oct 14, 2010 at 2:11 PM, YC wrote:
>
> This is due to the file being stored as a string in the database and
> retrieved back out as a string, and strings in xexprs are automatically
> escaped for HTML markers.
>
> To avoid this issue you need to first convert the strin
open-input-string )) if that's something you want to
explore.
Note - as you probably know, there are security issues with directly storing
html fragments and render them out unescaped, so you will want to account
for them eventually.
Cheers,
yc
_
gt; Robby
>
> On Fri, Oct 8, 2010 at 2:41 PM, Joe Marshall
> wrote:
> > On Fri, Oct 8, 2010 at 11:49 AM, YC wrote:
> >> Hi all -
> >> I have a rather curious question - is it possible to write a garbage
> >> collector in a pointerless language such as racket/sc
look like. I am wondering if this is one of the problems that needs to
live outside of racket/scheme environment.
Any thoughts/idea are appreciated. Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
is harder to parse than to generate. So I would say having a
translation layer will be the way to go for now, until in the future you are
ready to parse the request yourself, that's when the ol' good RFCs come in
handy.
Cheers,
yc
_
he concept of chunked
transfers in your representation.
Hope this helps as a starting point. Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Hi all -
does anyone know how to trace the racket/scheme class methods?
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
o this missing quote or not, as it could be just a
typo for the email, but having the actual error message will aid the
determination.
HTH. Cheers,
yc
On Thu, Sep 30, 2010 at 1:40 AM, Steve Knight wrote:
> Hello,
>
> I'm using Racket 5.0.1 (from emacs) and I'm having tro
aps are available for both x86 and ARM,
> so the majority of development and debugging takes place on x86, with
> final packaging being for ARM
--
Cheers,
yc
Taming the software dragon - http://dragonmaestro.com
_
For list-related adminis
Thanks Jens -
I agree with you reasonings and it seems what's left is to actually
try it out to see what obstacles will encounter.
Cheers,
yc
On Wednesday, September 15, 2010, Jens Axel Søgaard
wrote:
> 2010/9/15 YC :
>> On Wed, Sep 15, 2010 at 2:14 PM, Jens Axel Søg
Great!
On Wednesday, September 15, 2010, Robby Findler
wrote:
> On Wed, Sep 15, 2010 at 4:46 PM, YC wrote:
>>
>> On Wed, Sep 15, 2010 at 2:34 PM, Robby Findler
>> wrote:
>>>
>>> Not into local dlls, but planet should not stand in the way of
>>> c
load the app the first
time.
Would it work as above with planet code if it is compiled into a standalone
exe?
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
On Wed, Sep 15, 2010 at 2:14 PM, Jens Axel Søgaard wrote:
> 2010/9/15 YC :
>
> > ARM processor support
>
> This ought to be supported:
>http://groups.google.com/group/plt-scheme/msg/8b51211f8a6a88ca
Great!
> > limited memory usage
>
> This is a biggi
planet packages along with the exe so it can be
shipped together without going through planet
There might be other questions but those are on top of my head.
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
Use quai-quote and unquote to use variables within a list.
`((i . ,num))
instead of
'((i . num))
Cheers,
yc
On Wed, Sep 15, 2010 at 1:17 PM, michail bulgakov <
hofstadterthe...@gmail.com> wrote:
> Hi!
>
> I have almost no experience with scheme, but I started a projec
equire net/url)
(require/env cookie) ;; (require net/cookie)
;; maps date to (planet bzlib/date/srfi)
(define-require-env-alias! date (planet bzlib/date/srfi))
(require/env date)
(define-require-env-alias! xexpr-only (only-in xml xexpr? xexpr->string))
(require/env xexpr-only)
Hope this is
gt; (case "8"
> > > (("8" "9" "10") 'hello)
> > > (else 'goodbye)) -> goodbye
> > >
> > > I'm working in Pretty Big
> > >
> > > _
> > > For list-related administrative tasks:
> > > http://lists.racket-lang.org/listinfo/users
> >
>
> _
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>
--
Cheers,
yc
Taming the software dragon - http://dragonmaestro.com
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
do one, you can do the other.
I agree with Neil that we can use better understanding of the problem in
order to provide you with adequate ideas - I took a guess and missed. Love
to hear more.
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
cript file approach, but you might find the arguments file approach
works better in the sense that it does not have to create a sub process.
Hope this helps. If my assumptions are incorrect - please feel free to
clarify.
--
Cheers,
yc
Taming the software drago
*car* (hash-ref hash key)))
(define (value-ref hash key)
(*cdr* (hash-ref hash key)))
Then you have
> (encoding-ref A #\G)
11010001000
> (value-ref A #\G)
39
Hope this is what you are looking for.
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
On Thu, Aug 12, 2010 at 2:22 AM, YC wrote:
>
> (define A
> (make-hash (map (lambda (value)
> (cons (list-ref 128-A value) ;; key
> ;; encoding + value
> *(cons (list-ref ENCODING n) value)*))
>
auxiliary module (at phase 1) adds a binding at the right absolute phase, 0.
>
>
Thanks Ryan. I think I more or less get the idea of phase shifting now. It
would seem that if I ever define such function at phase 0, adding (require
(for-template)
e literal.ss it results in matching of both the empty and the if
clause), i.e. the only time I've noticed it not working is when literals are
involved.
Thanks.
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
(define-syntax (cond/ stx)
(syntax-case stx ()
(stx
(cond* #'stx))
))
(cond/ (#f 2) (*else* 5)) ;; works => 5
Any ideas on the differences are appreciated. Thanks.
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
ple, so that the spec is fairly stable before anyone
>> starts depending on it. I've also committed to doing a couple SRFIs on the
>> spec and libraries.)
>>
>> --
>> http://www.neilvandyke.org/
>>
>
>
> _
> For list-re
that
come from other browsers besides IE6, but I since found that I was my own
code mistake. So please disregard).
Thanks,
yc
On Sat, Jul 24, 2010 at 10:57 AM, Jay McCarthy wrote:
> I don't understand what you are saying is different.
>
> You say that "the Content-Disposition
Z:\Pictures\jelly_fish.jpg"
Content-Type: image/pjpeg
As far as I can tell, the header themselves should not have triggered the
difference. Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
On Thu, Jul 22, 2010 at 6:38 AM, Matthias Felleisen wrote:
>
> YC, this can all work out IF you organize your program like this:
>
> module A: define functions, export with contracts and only with contracts
> module B: import A and create the assoc lists from here
> mo
and they magically know
where they are being invoked, instead of having two separate wrappers.
Thanks for the explanation Robby. I will see what I can do with this.
Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
est2? are exposed via a module, i.e. they are "fixed"
once exposed outside of module, whether contracted or not - I would have
expected eq? would return #t for both cases in REPL.
Am I misunderstand what eq? is all about? Thanks.
yc
On Wed, Jul 21, 2010 at 5:40 PM, Robby Findler
wrote:
? table) continues to match.
Is there any particular reason for the divergence of the behaviors? I
verified the behavior in both v4.2.5 and v5.0. Thanks.
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
____
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>
--
Cheers,
yc
Taming the software dragon - http://dragonmaestro.com
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
e let me know if there are any questions/comments. Cheers,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
t; not exist.
>
> What's wrong with that? :'(
>
> _
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>
--
Cheers,
yc
Taming the software dragon - http://dragonmaestro.com
__
Thanks Robby for confirming that it works. I will see if there are
configuration issues on my side.
Thanks,
yc
On Sun, Jun 13, 2010 at 4:10 PM, Robby Findler
wrote:
> On Sun, Jun 13, 2010 at 1:58 PM, YC wrote:
> > I am trying to install planet package in racket, specifically
> l
appear to have any
maximum version number limits that would prohibit it from being downloaded.
Are there any changes to the way packages are being matched?
Thanks,
yc
_
For list-related administrative tasks:
http://lists.racket-lang.org/listinfo/users
86 matches
Mail list logo