[racket-users] Struct declaration conflict if a file is required implicitly

2017-07-23 Thread Alejandro Sanchez
Hello everyone, I am working on this project: https://gitlab.com/HiPhish/MsgPack.rkt/ I am writing test cases and I ran into a problem with my ‘ext’ structure. It is declared in the file ‘msgpack/main.rkt’, which is required in the file ‘msgpack/pack.rkt’ (also in ‘msgpack/unpack.rkt’). For my

Re: [racket-users] Struct declaration conflict if a file is required implicitly

2017-07-23 Thread Alejandro Sanchez
Thank you so much! I feel so stupid now, that file path is a leftover from when the directory structure was different. Now it works perfectly. > On 23 Jul 2017, at 17:43, Ryan Culpepper wrote: > > On 07/23/2017 07:26 AM, Alejandro Sanchez wrote: >> Hello everyone, >>

[racket-users] [ANN] MessagePack implementation for Racke

2017-07-24 Thread Alejandro Sanchez
Hello dear Racketeers, I have been writing an implementation of the MessagePack protocol for Racket and I think the library is ready to be showcased now: https://gitlab.com/HiPhish/MsgPack.rkt ### What is MessagePack? ### MessagePack is a binary data se

Re: [racket-users] [ANN] MessagePack implementation for Racke

2017-07-24 Thread Alejandro Sanchez
all the test files in the test directory. > - On a style level, I think you should remove your lets and turn your > if/begin blocks into conds, for example: Good point. > > On Mon, Jul 24, 2017 at 9:17 AM, Alejandro Sanchez > wrote: >> Hello dear Racketeers, >> >

Re: [racket-users] [ANN] MessagePack implementation for Racke

2017-07-24 Thread Alejandro Sanchez
here. > > Vincent > > > > On Mon, 24 Jul 2017 08:17:30 -0500, > Alejandro Sanchez wrote: >> >> Hello dear Racketeers, >> >> I have been writing an implementation of the MessagePack protocol for Racket >> and I think the library is ready to

Re: [racket-users] [ANN] MessagePack implementation for Racke

2017-07-24 Thread Alejandro Sanchez
> On 24 Jul 2017, at 22:40, Jay McCarthy wrote: > > On Mon, Jul 24, 2017 at 3:18 PM, Alejandro Sanchez > wrote: >>> - I'm curious of the performance. In particular, I would expect that a >>> computed jump in unpack could do you good. Did you try that? >&g

Re: [racket-users] [ANN] MessagePack implementation for Racke

2017-07-25 Thread Alejandro Sanchez
Thank you all for your help. I have moved to project to a flat file structure now and reorganised everything hopefully to Racket standards (thank you, Philip), and I have changed the complicated contracts to use 'integer-in'. I think the API can stay as it is now, there is one struct and two functi

Re: [racket-users] [ANN] MessagePack implementation for Racke

2017-07-26 Thread Alejandro Sanchez
Here is what I get from profiling the different dispatch methods in 'unpack'. First I pack a positive fixnum which is among the first few conditions. Cond: cpu time: 810 real time: 3367 gc time: 0 cpu time: 815 real time: 3428 gc time: 0 cpu time: 815 real time: 3197 gc time: 0

Re: [racket-users] [ANN] MessagePack implementation for Racke

2017-07-26 Thread Alejandro Sanchez
On Tuesday, July 25, 2017 at 11:37:48 PM UTC+2, Lehi Toskin wrote: > One thing I'm curious about is what things can you and can you not pack? In > the README it shows bytes being packed, which seems a little obvious, but > what about (transparent) structs? Hashes? Lists? I'm very interested in th

[racket-users] Need help porting a library to Typed Racket

2017-08-01 Thread Alejandro Sanchez
Hello guys, I have been porting my MessagePack library to Typed Racket over the last few days and I am almost done, except for some minor things I would like to sort out first, so I was hoping some experienced Racketeers could help me out. Here is the repo, the branch is "typed": https://gitlab.c