jOOQ / jOOU

jOOU - Unsigned Integers jOOU provides unsigned integer versions for the four Java integer types byte, short, int and long.
http://www.jooq.org/products
Apache License 2.0
229 stars 32 forks source link

Add caching of values to UByte. #1

Closed schallee closed 12 years ago

lukaseder commented 12 years ago

Thanks for these additions. As far as I can see they should be generally useful. I'll merge by the end of the week. The additions will be tracked here and released in 0.9.1, soon:

http://code.google.com/p/joou/issues/detail?id=1 http://code.google.com/p/joou/issues/detail?id=2

schallee commented 12 years ago

Thanks for these additions. As far as I can see they should be generally useful. I'll merge by the end of the week. The additions will be tracked here and released in 0.9.1, soon:

Cool. Thanks.

A couple of quick thoughts that might be useful:

Anyhows, thanks for making this project. I was putting together my own when I finally found yours. I may have some other minor additions in the future to (toHexString for example).

------>

lukaseder commented 12 years ago

Considering your thoughts:

1) Deciding about a repository:

Yes, I'm about to make a decision. It was more of a decision between SVN and Git. But I've learned that the GitHub repositories can also be accessed via SVN, so I'll give up on googlecode eventually

2) Removing the public constructors:

You are right. The unsigned number types should only be created / accessed via the factory methods in org.joou.Unsigned.

3) Adding caches for larger unsigned types:

That would be great! With all of those additions, I'd like to make you the co-author of this library, if that is ok with you? I'll check later how to grant access to you on GitHub, once I've migrated googlecode over here.

schallee commented 12 years ago

Yes, I'm about to make a decision. It was more of a decision between SVN and Git. But I've learned that the GitHub repositories can also be accessed via SVN, so I'll give up on googlecode eventual

I've done a lot of accessing svn from git so either works.

2) Removing the public constructors:

You are right. The unsigned number types should only be created / accessed via the factory methods in org.joou.Unsigned.

It's probably worth keeping the valueOf(…) factories in the classes themselves for symmetry with j.l.*

3) Adding caches for larger unsigned types:

That would be great! With all of those additions, I'd like to make you the co-author of this library, if that is ok with you? I'll check later how to grant access to you on GitHub, once I've migrated googlecode over here.

I'm good with whatever. I'm sadly a bit flaky on the consistency area but I'm trying to do better putting some things out there that other folks may find useful too. Thanks for putting together something that others can use and putting it out there so it can be accessed. I need to just push half my personal libraries and such out to git hub myself (I did one now). I don't have time or energy to maintain them (I have kids) but if there out there at least there's a possibility of someone else benefitting;)

------->

lukaseder commented 12 years ago

I've done a lot of accessing svn from git so either works.

GitHub is now the master.

It's probably worth keeping the valueOf(…) factories in the classes themselves for symmetry with j.l.*

Absolutely

I'm good with whatever. I'm sadly a bit flaky on the consistency area but I'm trying to do better putting some things out there that other folks may find useful too.

Yes yes. I'll review and change if I find it inconsistent, before releasing. So do as you feel! :-)

lukaseder commented 12 years ago

I have released 0.9.1:

Version 0.9.1

Features and improvements

1 - Add Unsigned.ubyte(int) and ubyte(long) constructors

2 - Cache all possible UByte values for improved performance

3 - Deprecate public constructors. Do not encourage to

   construct unsigned numbers directly